36 lines
1.0 MiB
36 lines
1.0 MiB
function hex_sha1(e){return binb2hex(core_sha1(str2binb(e),e.length*chrsz))}function b64_sha1(e){return binb2b64(core_sha1(str2binb(e),e.length*chrsz))}function str_sha1(e){return binb2str(core_sha1(str2binb(e),e.length*chrsz))}function hex_hmac_sha1(e,t){return binb2hex(core_hmac_sha1(e,t))}function b64_hmac_sha1(e,t){return binb2b64(core_hmac_sha1(e,t))}function str_hmac_sha1(e,t){return binb2str(core_hmac_sha1(e,t))}function sha1_vm_test(){return"a9993e364706816aba3e25717850c26c9cd0d89d"==hex_sha1("abc")}function core_sha1(e,t){e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(var n=Array(80),r=1732584193,i=-271733879,o=-1732584194,a=271733878,s=-1009589776,u=0;u<e.length;u+=16){for(var l=r,c=i,f=o,h=a,d=s,p=0;p<80;p++){p<16?n[p]=e[u+p]:n[p]=rol(n[p-3]^n[p-8]^n[p-14]^n[p-16],1);var m=safe_add(safe_add(rol(r,5),sha1_ft(p,i,o,a)),safe_add(safe_add(s,n[p]),sha1_kt(p)));s=a,a=o,o=rol(i,30),i=r,r=m}r=safe_add(r,l),i=safe_add(i,c),o=safe_add(o,f),a=safe_add(a,h),s=safe_add(s,d)}return Array(r,i,o,a,s)}function sha1_ft(e,t,n,r){return e<20?t&n|~t&r:e<40?t^n^r:e<60?t&n|t&r|n&r:t^n^r}function sha1_kt(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function core_hmac_sha1(e,t){var n=str2binb(e);n.length>16&&(n=core_sha1(n,e.length*chrsz));for(var r=Array(16),i=Array(16),o=0;o<16;o++)r[o]=909522486^n[o],i[o]=1549556828^n[o];var a=core_sha1(r.concat(str2binb(t)),512+t.length*chrsz);return core_sha1(i.concat(a),672)}function safe_add(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function rol(e,t){return e<<t|e>>>32-t}function str2binb(e){for(var t=Array(),n=(1<<chrsz)-1,r=0;r<e.length*chrsz;r+=chrsz)t[r>>5]|=(e.charCodeAt(r/chrsz)&n)<<32-chrsz-r%32;return t}function binb2str(e){for(var t="",n=(1<<chrsz)-1,r=0;r<32*e.length;r+=chrsz)t+=String.fromCharCode(e[r>>5]>>>32-chrsz-r%32&n);return t}function binb2hex(e){for(var t=hexcase?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*e.length;r++)n+=t.charAt(e[r>>2]>>8*(3-r%4)+4&15)+t.charAt(e[r>>2]>>8*(3-r%4)&15);return n}function binb2b64(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=0;r<4*e.length;r+=3)for(var i=(e[r>>2]>>8*(3-r%4)&255)<<16|(e[r+1>>2]>>8*(3-(r+1)%4)&255)<<8|e[r+2>>2]>>8*(3-(r+2)%4)&255,o=0;o<4;o++)n+=8*r+6*o>32*e.length?b64pad:t.charAt(i>>6*(3-o)&63);return n}function murmurhash3_32_gc(e,t){var n,r,i,o,a,s,u,l;for(n=3&e.length,r=e.length-n,i=t,a=3432918353,s=461845907,l=0;l<r;)u=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.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&e.charCodeAt(l+2))<<16;case 2:u^=(255&e.charCodeAt(l+1))<<8;case 1:u^=255&e.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^=e.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(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.Promise=e()}}(function(){var e,t,n;return function r(e,t,n){function i(a,s){if(!t[a]){if(!e[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=t[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return i(n?n:t)},c,c.exports,r,e,t,n)}return t[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,n){"use strict";t.exports=function(e){function t(e){var t=new n(e),r=t.promise();return t.setHowMany(1),t.setUnwrap(),t.init(),r}var n=e._SomePromiseArray;e.any=function(e){return t(e)},e.prototype.any=function(){return t(this)}}},{}],2:[function(e,t,n){"use strict";function r(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new c(16),this._normalQueue=new c(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=l}function i(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function o(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function a(e){this._normalQueue._pushOne(e),this._queueTick()}var s;try{throw new Error}catch(u){s=u}var l=e("./schedule"),c=e("./queue"),f=e("./util");r.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},r.prototype.hasCustomScheduler=function(){return this._customScheduler},r.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},r.prototype.disableTrampolineIfNecessary=function(){f.hasDevTools&&(this._trampolineEnabled=!1)},r.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},r.prototype.fatalError=function(e,t){t?(process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),process.exit(2)):this.throwLater(e)},r.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout(function(){e(t)},0);else try{this._schedule(function(){e(t)})}catch(n){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},f.hasDevTools?(r.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?i.call(this,e,t,n):this._schedule(function(){setTimeout(function(){e.call(t,n)},100)})},r.prototype.invoke=function(e,t,n){this._trampolineEnabled?o.call(this,e,t,n):this._schedule(function(){e.call(t,n)})},r.prototype.settlePromises=function(e){this._trampolineEnabled?a.call(this,e):this._schedule(function(){e._settlePromises()})}):(r.prototype.invokeLater=i,r.prototype.invoke=o,r.prototype.settlePromises=a),r.prototype._drainQueue=function(e){for(;e.length()>0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},t.exports=r,t.exports.firstLineError=s},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0===(50397184&this._bitField)&&this._resolveCallback(t.target)},u=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var l=n(o),c=new e(t);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(l),l instanceof e){var h={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:l};f._then(t,a,void 0,c,h),l._then(s,u,void 0,c,h),c._setOnCancel(l)}else c._resolveCallback(f);return c},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=this._bitField&-2097153},e.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";function r(){try{Promise===o&&(Promise=i)}catch(e){}return o}var i;"undefined"!=typeof Promise&&(i=Promise);var o=e("./promise")();o.noConflict=r,t.exports=o},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}t.exports=function(t){function n(e,n){var r;if(null!=e&&(r=e[n]),"function"!=typeof r){var i="Object "+s.classString(e)+" has no method '"+s.toString(n)+"'";throw new t.TypeError(i)}return r}function r(e){var t=this.pop(),r=n(e,t);return r.apply(e,this)}function i(e){return e[this]}function o(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}var a,s=e("./util"),u=s.canEvaluate;s.isIdentifier;t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(r,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t,n="number"==typeof e;if(n)t=o;else if(u){var r=a(e);t=null!==r?r:i}else t=i;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=o.tryCatch,s=o.errorObj,u=t._async;t.prototype["break"]=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),u.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var r=a(e).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),u.throwLater(r.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),u.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,n){"use strict";t.exports=function(t){function n(e,n,s){return function(u){var l=s._boundValue();e:for(var c=0;c<e.length;++c){var f=e[c];if(f===Error||null!=f&&f.prototype instanceof Error){if(u instanceof f)return o(n).call(l,u)}else if("function"==typeof f){var h=o(f).call(l,u);if(h===a)return h;if(h)return o(n).call(l,u)}else if(r.isObject(u)){for(var d=i(f),p=0;p<d.length;++p){var m=d[p];if(f[m]!=u[m])continue e}return o(n).call(l,u)}}return t}}var r=e("./util"),i=e("./es5").keys,o=r.tryCatch,a=r.errorObj;return n}},{"./es5":13,"./util":36}],8:[function(e,t,n){"use strict";t.exports=function(e){function t(){this._trace=new t.CapturedTrace(r())}function n(){if(i)return new t}function r(){var e=o.length-1;if(e>=0)return o[e]}var i=!1,o=[];return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},t.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,o.push(this._trace))},t.prototype._popContext=function(){if(void 0!==this._trace){var e=o.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},t.CapturedTrace=null,t.create=n,t.deactivateLongStackTraces=function(){},t.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,u=e.prototype._promiseCreated;t.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=u,i=!1},i=!0,e.prototype._pushContext=t.prototype._pushContext,e.prototype._popContext=t.prototype._popContext,e._peekContext=e.prototype._peekContext=r,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},t}},{}],9:[function(e,t,n){"use strict";t.exports=function(t,n){function r(e,t){return{promise:t}}function i(){return!1}function o(e,t,n){var r=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+R.toString(e));r._attachCancellationCallback(e)})}catch(i){return i}}function a(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?R.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function s(){return this._onCancelField}function u(e){this._onCancelField=e}function l(){this._cancellationParent=void 0,this._onCancelField=void 0}function c(e,t){if(0!==(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function f(e,t){0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function h(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function d(){this._trace=new N(this._peekContext())}function p(e,t){if(I(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=k(e);R.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),R.notEnumerableProp(e,"__stackCleaned__",!0)}}}function m(e,t,n,r,i){if(void 0===e&&null!==t&&G){if(void 0!==i&&i._returnedNonUndefined())return;if(0===(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),u=w(s),l=u.length-1;l>=0;--l){var c=u[l];if(!z.test(c)){var f=c.match(B);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(u.length>0)for(var h=u[0],l=0;l<s.length;++l)if(s[l]===h){l>0&&(a="\n"+s[l-1]);break}}var d="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(d,!0,t)}}function g(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),v(n)}function v(e,n,r){if(oe.warnings){var i,o=new L(e);if(n)r._attachExtraTrace(o);else if(oe.longStackTraces&&(i=t._peekContext()))i.attachExtraTrace(o);else{var a=k(o);o.stack=a.message+"\n"+a.stack.join("\n")}ee("warning",o)||C(o,"",!0)}}function y(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}function b(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function _(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],i=t.length-1,o=t[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(t[i]!==u)break;t.pop(),i--}t=r}}function w(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=" (No stack trace)"===r||H.test(r),o=i&&ne(r);i&&!o&&(V&&" "!==r.charAt(0)&&(r=" "+r),t.push(r))}return t}function x(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var r=t[n];if(" (No stack trace)"===r||H.test(r))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}function k(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?x(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:w(t)}}function C(e,t,n){if("undefined"!=typeof console){var r;if(R.isObject(e)){var i=e.stack;r=t+U(i,e)}else r=t+String(e);"function"==typeof O?O(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function E(e,t,n,r){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(o){P.throwLater(o)}"unhandledRejection"===e?ee(e,n,r)||i||C(n,"Unhandled rejection "):ee(e,r)}function $(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():R.toString(e);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(t))try{var r=JSON.stringify(e);t=r}catch(i){}0===t.length&&(t="(empty array)")}return"(<"+S(t)+">, no stack trace)"}function S(e){var t=41;return e.length<t?e:e.substr(0,t-3)+"..."}function A(){return"function"==typeof ie}function T(e){var t=e.match(re);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function D(e,t){if(A()){for(var n,r,i=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,u=0;u<i.length;++u){var l=T(i[u]);if(l){n=l.fileName,a=l.line;break}}for(var u=0;u<o.length;++u){var l=T(o[u]);if(l){r=l.fileName,s=l.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(ne=function(e){if(q.test(e))return!0;var t=T(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}}function N(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);ie(this,N),t>32&&this.uncycle()}var F,M,O,j=t._getDomain,P=t._async,L=e("./errors").Warning,R=e("./util"),I=R.canAttachTrace,q=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,z=/\((?:timers\.js):\d+:\d+\)/,B=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,H=null,U=null,V=!1,W=!(0==R.env("BLUEBIRD_DEBUG")),Y=!(0==R.env("BLUEBIRD_WARNINGS")||!W&&!R.env("BLUEBIRD_WARNINGS")),K=!(0==R.env("BLUEBIRD_LONG_STACK_TRACES")||!W&&!R.env("BLUEBIRD_LONG_STACK_TRACES")),G=0!=R.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(Y||!!R.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=e._bitField&-1048577|524288},t.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),P.invokeLater(this._notifyUnhandledRejection,this,void 0))},t.prototype._notifyUnhandledRejectionIsHandled=function(){E("rejectionHandled",F,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),E("unhandledRejection",M,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,n){return v(e,t,n||this)},t.onPossiblyUnhandledRejection=function(e){var t=j();M="function"==typeof e?null===t?e:R.domainBind(t,e):void 0},t.onUnhandledRejectionHandled=function(e){var t=j();F="function"==typeof e?null===t?e:R.domainBind(t,e):void 0};var Z=function(){};t.longStackTraces=function(){if(P.haveItemsQueued()&&!oe.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!oe.longStackTraces&&A()){var e=t.prototype._captureStackTrace,r=t.prototype._attachExtraTrace;oe.longStackTraces=!0,Z=function(){if(P.haveItemsQueued()&&!oe.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=r,n.deactivateLongStackTraces(),P.enableTrampoline(),oe.longStackTraces=!1},t.prototype._captureStackTrace=d,t.prototype._attachExtraTrace=p,n.activateLongStackTraces(),P.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return oe.longStackTraces&&A()};var X=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return R.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!R.global.dispatchEvent(n)}}if("function"==typeof Event){var e=new Event("CustomEvent");return R.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!R.global.dispatchEvent(n)}}var e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),R.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!R.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),J=function(){return R.isNode?function(){return process.emit.apply(process,arguments)}:R.global?function(e){var t="on"+e.toLowerCase(),n=R.global[t];return!!n&&(n.apply(R.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),Q={promiseCreated:r,promiseFulfilled:r,promiseRejected:r,promiseResolved:r,promiseCancelled:r,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:r},ee=function(e){var t=!1;try{t=J.apply(null,arguments)}catch(n){P.throwLater(n),t=!0}var r=!1;try{r=X(e,Q[e].apply(null,arguments))}catch(n){P.throwLater(n),r=!0}return r||t};t.config=function(e){if(e=Object(e),"longStackTraces"in e&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&Z()),"warnings"in e){var n=e.warnings;oe.warnings=!!n,G=oe.warnings,R.isObject(n)&&"wForgottenReturn"in n&&(G=!!n.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!oe.cancellation){if(P.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=l,t.prototype._propagateFrom=c,t.prototype._onCancel=s,t.prototype._setOnCancel=u,t.prototype._attachCancellationCallback=a,t.prototype._execute=o,te=c,oe.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!oe.monitoring?(oe.monitoring=!0,t.prototype._fireEvent=ee):!e.monitoring&&oe.monitoring&&(oe.monitoring=!1,t.prototype._fireEvent=i)),t},t.prototype._fireEvent=i,t.prototype._execute=function(e,t,n){try{e(t,n)}catch(r){return r}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var te=f,ne=function(){return!1},re=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;R.inherits(N,Error),n.CapturedTrace=N,N.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;e=this._length=r;for(var r=e-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(var r=0;r<e;++r){var a=t[r].stack,s=n[a];if(void 0!==s&&s!==r){s>0&&(t[s-1]._parent=void 0,t[s-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var u=r>0?t[r-1]:this;s<e-1?(u._parent=t[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)t[c]._length=l,l++;return}}}},N.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=k(e),n=t.message,r=[t.stack],i=this;void 0!==i;)r.push(w(i.stack.split("\n"))),i=i._parent;_(r),b(r),R.notEnumerableProp(e,"stack",y(n,r)),R.notEnumerableProp(e,"__stackCleaned__",!0)}};var ie=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():$(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,H=e,U=t;var n=Error.captureStackTrace;return ne=function(e){return q.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return H=/@/,U=t,V=!0,function(e){e.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?(U=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?$(t):t.toString()},null):(H=e,U=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(O=function(e){console.warn(e)},R.isNode&&process.stderr.isTTY?O=function(e,t){var n=t?"[33m":"[31m";console.warn(n+e+"[0m\n")}:R.isNode||"string"!=typeof(new Error).stack||(O=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var oe={warnings:Y,longStackTraces:!1,cancellation:!1,monitoring:!1};return K&&t.longStackTraces(),{longStackTraces:function(){return oe.longStackTraces},warnings:function(){return oe.warnings},cancellation:function(){return oe.cancellation},monitoring:function(){return oe.monitoring},propagateFromFunction:function(){return te},boundValueFunction:function(){return h},checkForgottenReturns:m,setBounds:D,warn:v,deprecated:g,CapturedTrace:N,fireDomEvent:X,fireGlobalEvent:J}}},{"./errors":12,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype["return"]=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype["throw"]=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){function n(){return o(this)}function r(e,n){return i(e,n,t,t)}var i=e.reduce,o=e.all;e.prototype.each=function(e){return i(this,e,t,0)._then(n,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return i(this,e,t,t)},e.each=function(e,r){return i(e,r,t,0)._then(n,void 0,void 0,e,void 0)},e.mapSeries=r}},{}],12:[function(e,t,n){"use strict";function r(e,t){function n(r){return this instanceof n?(f(this,"message","string"==typeof r?r:t),f(this,"name",e),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new n(r)}return c(n,Error),n}function i(e){return this instanceof i?(f(this,"name","OperationalError"),f(this,"message",e),this.cause=e,this.isOperational=!0,void(e instanceof Error?(f(this,"message",e.message),f(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new i(e)}var o,a,s=e("./es5"),u=s.freeze,l=e("./util"),c=l.inherits,f=l.notEnumerableProp,h=r("Warning","warning"),d=r("CancellationError","cancellation error"),p=r("TimeoutError","timeout error"),m=r("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch(g){o=r("TypeError","type error"),a=r("RangeError","range error")}for(var v="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),y=0;y<v.length;++y)"function"==typeof Array.prototype[v[y]]&&(m.prototype[v[y]]=Array.prototype[v[y]]);s.defineProperty(m.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),m.prototype.isOperational=!0;var b=0;m.prototype.toString=function(){var e=Array(4*b+1).join(" "),t="\n"+e+"AggregateError of:\n";b++,e=Array(4*b+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]=e+i[o];r=i.join("\n"),t+=r+"\n"}return b--,t},c(i,Error);var _=Error.__BluebirdErrorTypes__;_||(_=u({CancellationError:d,TimeoutError:p,OperationalError:i,RejectionError:i,AggregateError:m}),s.defineProperty(Error,"__BluebirdErrorTypes__",{value:_,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:o,RangeError:a,CancellationError:_.CancellationError,OperationalError:_.OperationalError,TimeoutError:_.TimeoutError,AggregateError:_.AggregateError,Warning:h}},{"./es5":13,"./util":36}],13:[function(e,t,n){var r=function(){"use strict";return void 0===this}();if(r)t.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(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(e){var t=[];for(var n in e)i.call(e,n)&&t.push(n);return t},u=function(e,t){return{value:e[t]}},l=function(e,t,n){return e[t]=n.value,e},c=function(e){return e},f=function(e){try{return Object(e).constructor.prototype}catch(t){return a}},h=function(e){try{return"[object Array]"===o.call(e)}catch(t){return!1}};t.exports={isArray:h,keys:s,names:s,defineProperty:l,getDescriptor:u,freeze:c,getPrototypeOf:f,isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,r){return n(this,e,r,t)},e.filter=function(e,r,i){return n(e,r,i,t)}}},{}],15:[function(e,t,n){"use strict";t.exports=function(t,n){function r(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function i(e){this.finallyHandler=e}function o(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function a(){return u.call(this,this.promise._target()._settledValue())}function s(e){if(!o(this,e))return f.e=e,f}function u(e){var r=this.promise,u=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?u.call(r._boundValue()):u.call(r._boundValue(),e);if(void 0!==l){r._setReturnedNonUndefined();var h=n(l,r);if(h instanceof t){if(null!=this.cancelPromise){if(h._isCancelled()){var d=new c("late cancellation observer");return r._attachExtraTrace(d),f.e=d,f}h.isPending()&&h._attachCancellationCallback(new i(this))}return h._then(a,s,void 0,this,void 0)}}}return r.isRejected()?(o(this),f.e=e,f):(o(this),e)}var l=e("./util"),c=t.CancellationError,f=l.errorObj;return r.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){o(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,i){return"function"!=typeof e?this.then():this._then(n,i,void 0,new r(this,t,e),void 0)},t.prototype.lastly=t.prototype["finally"]=function(e){return this._passThrough(e,0,u,u)},t.prototype.tap=function(e){return this._passThrough(e,1,u)},r}},{"./util":36}],16:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){function s(e,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=d(n[o])(e);if(r._popContext(),a===h){r._pushContext();var s=t.reject(h.e);return r._popContext(),s}var u=i(a,r);if(u instanceof t)return u}return null}function u(e,n,i,o){if(a.cancellation()){var s=new t(r),u=this._finallyPromise=new t(r);this._promise=s.lastly(function(){return u;
|
||
}),s._captureStackTrace(),s._setOnCancel(this)}else{var l=this._promise=new t(r);l._captureStackTrace()}this._stack=o,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(p):p,this._yieldedPromise=null,this._cancellationPhase=!1}var l=e("./errors"),c=l.TypeError,f=e("./util"),h=f.errorObj,d=f.tryCatch,p=[];f.inherits(u,o),u.prototype._isResolved=function(){return null===this._promise},u.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},u.prototype._promiseCancelled=function(){if(!this._isResolved()){var e,n="undefined"!=typeof this._generator["return"];if(n)this._promise._pushContext(),e=d(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();else{var r=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),e=d(this._generator["throw"]).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},u.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=d(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},u.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=d(this._generator["throw"]).call(this._generator,e);this._promise._popContext(),this._continue(t)},u.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},u.prototype.promise=function(){return this._promise},u.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},u.prototype._continue=function(e){var n=this._promise;if(e===h)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(e.e,!1);var r=e.value;if(e.done===!0)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(!(o instanceof t)&&(o=s(o,this._yieldHandlers,this._promise),null===o))return void this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",r)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));o=o._target();var a=o._bitField;0===(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&a)?t._async.invoke(this._promiseFulfilled,this,o._value()):0!==(16777216&a)?t._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()},t.coroutine=function(e,t){if("function"!=typeof e)throw new c("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,r=u,i=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new r((void 0),(void 0),n,i),a=o.promise();return o._generator=t,o._promiseFulfilled(void 0),a}},t.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new c("expecting a function but got "+f.classString(e));p.push(e)},t.spawn=function(e){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new u(e,this),i=r.promise();return r._run(t.spawn),i}}},{"./errors":12,"./util":36}],17:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util");s.canEvaluate,s.tryCatch,s.errorObj;t.join=function(){var e,t=arguments.length-1;if(t>0&&"function"==typeof arguments[t]){e=arguments[t];var r}var i=[].slice.call(arguments);e&&i.pop();var r=new n(i).promise();return void 0!==e?r.spread(e):r}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){function s(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var i=l();this._callback=null===i?t:c.domainBind(i,t),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}function u(e,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+c.classString(n));var a=0;if(void 0!==i){if("object"!=typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+c.classString(i)));if("number"!=typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+c.classString(i.concurrency)));a=i.concurrency}return a="number"==typeof a&&isFinite(a)&&a>=1?a:0,new s(e,n,a,o).promise()}var l=t._getDomain,c=e("./util"),f=c.tryCatch,h=c.errorObj,d=t._async;c.inherits(s,n),s.prototype._asyncInit=function(){this._init$(void 0,-2)},s.prototype._init=function(){},s.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),s=this._preservedValues,u=this._limit;if(n<0){if(n=n*-1-1,r[n]=e,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var l=this._promise,c=this._callback,d=l._boundValue();l._pushContext();var p=f(c).call(d,e,n,o),m=l._popContext();if(a.checkForgottenReturns(p,m,null!==s?"Promise.filter":"Promise.map",l),p===h)return this._reject(p.e),!0;var g=i(p,this._promise);if(g instanceof t){g=g._target();var v=g._bitField;if(0===(50397184&v))return u>=1&&this._inFlight++,r[n]=g,g._proxy(this,(n+1)*-1),!1;if(0===(33554432&v))return 0!==(16777216&v)?(this._reject(g._reason()),!0):(this._cancel(),!0);p=g._value()}r[n]=p}var y=++this._totalResolved;return y>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},s.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var r=e.pop();this._promiseFulfilled(n[r],r)}},s.prototype._filter=function(e,t){for(var n=t.length,r=new Array(n),i=0,o=0;o<n;++o)e[o]&&(r[i++]=t[o]);r.length=i,this._resolve(r)},s.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return u(this,e,t,null)},t.map=function(e,t,n,r){return u(e,t,n,r)}}},{"./util":36}],19:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util"),s=a.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+a.classString(e));return function(){var r=new t(n);r._captureStackTrace(),r._pushContext();var i=s(e).apply(this,arguments),a=r._popContext();return o.checkForgottenReturns(i,a,"Promise.method",r),r._resolveFromSyncValue(i),r}},t.attempt=t["try"]=function(e){if("function"!=typeof e)return i("expecting a function but got "+a.classString(e));var r=new t(n);r._captureStackTrace(),r._pushContext();var u;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],c=arguments[2];u=a.isArray(l)?s(e).apply(c,l):s(e).call(c,l)}else u=s(e)();var f=r._popContext();return o.checkForgottenReturns(u,f,"Promise.try",r),r._resolveFromSyncValue(u),r},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";function r(e){return e instanceof Error&&c.getPrototypeOf(e)===Error.prototype}function i(e){var t;if(r(e)){t=new l(e),t.name=e.name,t.message=e.message,t.stack=e.stack;for(var n=c.keys(e),i=0;i<n.length;++i){var o=n[i];f.test(o)||(t[o]=e[o])}return t}return a.markAsOriginatingFromRejection(e),e}function o(e,t){return function(n,r){if(null!==e){if(n){var o=i(s(n));e._attachExtraTrace(o),e._reject(o)}else if(t){var a=[].slice.call(arguments,1);e._fulfill(a)}else e._fulfill(r);e=null}}}var a=e("./util"),s=a.maybeWrapAsError,u=e("./errors"),l=u.OperationalError,c=e("./es5"),f=/^(?:name|message|stack|cause)$/;t.exports=o},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,t,n){"use strict";t.exports=function(t){function n(e,t){var n=this;if(!o.isArray(e))return r.call(n,e,t);var i=s(t).apply(n._boundValue(),[null].concat(e));i===u&&a.throwLater(i.e)}function r(e,t){var n=this,r=n._boundValue(),i=void 0===e?s(t).call(r,null):s(t).call(r,null,e);i===u&&a.throwLater(i.e)}function i(e,t){var n=this;if(!e){var r=new Error(e+"");r.cause=e,e=r}var i=s(t).call(n._boundValue(),e);i===u&&a.throwLater(i.e)}var o=e("./util"),a=t._async,s=o.tryCatch,u=o.errorObj;t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var o=r;void 0!==t&&Object(t).spread&&(o=n),this._then(o,i,void 0,this,e)}return this}}},{"./util":36}],22:[function(e,t,n){"use strict";t.exports=function(){function n(){}function r(e,t){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));if(e.constructor!==i)throw new y("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}function i(e){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,e!==_&&(r(this,e),this._resolveFromExecutor(e)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function o(e){this.promise._resolveCallback(e)}function a(e){this.promise._rejectCallback(e,!1)}function s(e){var t=new i(_);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}var u,l=function(){return new y("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},c=function(){return new i.PromiseInspection(this._target())},f=function(e){return i.reject(new y(e))},h={},d=e("./util");u=d.isNode?function(){var e=process.domain;return void 0===e&&(e=null),e}:function(){return null},d.notEnumerableProp(i,"_getDomain",u);var p=e("./es5"),m=e("./async"),g=new m;p.defineProperty(i,"_async",{value:g});var v=e("./errors"),y=i.TypeError=v.TypeError;i.RangeError=v.RangeError;var b=i.CancellationError=v.CancellationError;i.TimeoutError=v.TimeoutError,i.OperationalError=v.OperationalError,i.RejectionError=v.OperationalError,i.AggregateError=v.AggregateError;var _=function(){},w={},x={},k=e("./thenables")(i,_),C=e("./promise_array")(i,_,k,f,n),E=e("./context")(i),$=E.create,S=e("./debuggability")(i,E),A=(S.CapturedTrace,e("./finally")(i,k)),T=e("./catch_filter")(x),D=e("./nodeback"),N=d.errorObj,F=d.tryCatch;return i.prototype.toString=function(){return"[object Promise]"},i.prototype.caught=i.prototype["catch"]=function(e){var t=arguments.length;if(t>1){var n,r=new Array(t-1),i=0;for(n=0;n<t-1;++n){var o=arguments[n];if(!d.isObject(o))return f("expecting an object but got A catch statement predicate "+d.classString(o));r[i++]=o}return r.length=i,e=arguments[n],this.then(void 0,T(r,e,this))}return this.then(void 0,e)},i.prototype.reflect=function(){return this._then(c,c,void 0,this,void 0)},i.prototype.then=function(e,t){if(S.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+d.classString(e);arguments.length>1&&(n+=", "+d.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},i.prototype.done=function(e,t){var n=this._then(e,t,void 0,void 0,void 0);n._setIsFinal()},i.prototype.spread=function(e){return"function"!=typeof e?f("expecting a function but got "+d.classString(e)):this.all()._then(e,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new C(this).promise()},i.prototype.error=function(e){return this.caught(d.originatesFromRejection,e)},i.getNewLibraryCopy=t.exports,i.is=function(e){return e instanceof i},i.fromNode=i.fromCallback=function(e){var t=new i(_);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=F(e)(D(t,n));return r===N&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},i.all=function(e){return new C(e).promise()},i.cast=function(e){var t=k(e);return t instanceof i||(t=new i(_),t._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(e){var t=new i(_);return t._captureStackTrace(),t._rejectCallback(e,!0),t},i.setScheduler=function(e){if("function"!=typeof e)throw new y("expecting a function but got "+d.classString(e));return g.setScheduler(e)},i.prototype._then=function(e,t,n,r,o){var a=void 0!==o,s=a?o:new i(_),l=this._target(),c=l._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===r&&0!==(2097152&this._bitField)&&(r=0!==(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var f=u();if(0!==(50397184&c)){var h,p,m=l._settlePromiseCtx;0!==(33554432&c)?(p=l._rejectionHandler0,h=e):0!==(16777216&c)?(p=l._fulfillmentHandler0,h=t,l._unsetRejectionIsUnhandled()):(m=l._settlePromiseLateCancellationObserver,p=new b("late cancellation observer"),l._attachExtraTrace(p),h=t),g.invoke(m,l,{handler:null===f?h:"function"==typeof h&&d.domainBind(f,h),promise:s,receiver:r,value:p})}else l._addCallbacks(e,t,s,r,f);return s},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},i.prototype._setLength=function(e){this._bitField=this._bitField&-65536|65535&e},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},i.prototype._setAsyncGuaranteed=function(){g.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},i.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==h)return void 0===t&&this._isBound()?this._boundValue():t},i.prototype._promiseAt=function(e){return this[4*e-4+2]},i.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},i.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(e){var t=(e._bitField,e._fulfillmentHandler0),n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=h),this._addCallbacks(t,n,r,i,null)},i.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=h),this._addCallbacks(n,r,i,o,null)},i.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=null===i?e:d.domainBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=null===i?t:d.domainBind(i,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"==typeof e&&(this[a+0]=null===i?e:d.domainBind(i,e)),"function"==typeof t&&(this[a+1]=null===i?t:d.domainBind(i,t))}return this._setLength(o+1),o},i.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},i.prototype._resolveCallback=function(e,t){if(0===(117506048&this._bitField)){if(e===this)return this._rejectCallback(l(),!1);var n=k(e,this);if(!(n instanceof i))return this._fulfill(e);t&&this._propagateFrom(n,2);var r=n._target();if(r===this)return void this._reject(l());var o=r._bitField;if(0===(50397184&o)){var a=this._length();a>0&&r._migrateCallback0(this);for(var s=1;s<a;++s)r._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(r)}else if(0!==(33554432&o))this._fulfill(r._value());else if(0!==(16777216&o))this._reject(r._reason());else{var u=new b("late cancellation observer");r._attachExtraTrace(u),this._reject(u)}}},i.prototype._rejectCallback=function(e,t,n){var r=d.ensureErrorObject(e),i=r===e;if(!i&&!n&&S.warnings()){var o="a promise was rejected with a non-error: "+d.classString(e);this._warn(o,!0)}this._attachExtraTrace(r,!!t&&i),this._reject(e)},i.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(e,function(e){t._resolveCallback(e)},function(e){t._rejectCallback(e,n)});n=!1,this._popContext(),void 0!==r&&t._rejectCallback(r,!0)},i.prototype._settlePromiseFromHandler=function(e,t,n,r){var i=r._bitField;if(0===(65536&i)){r._pushContext();var o;t===w?n&&"number"==typeof n.length?o=F(e).apply(this._boundValue(),n):(o=N,o.e=new y("cannot .spread() a non-array: "+d.classString(n))):o=F(e).call(t,n);var a=r._popContext();i=r._bitField,0===(65536&i)&&(o===x?r._reject(n):o===N?r._rejectCallback(o.e,!1):(S.checkForgottenReturns(o,a,"",r,this),r._resolveCallback(o)))}},i.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},i.prototype._followee=function(){return this._rejectionHandler0},i.prototype._setFollowee=function(e){this._rejectionHandler0=e},i.prototype._settlePromise=function(e,t,r,o){var a=e instanceof i,s=this._bitField,u=0!==(134217728&s);0!==(65536&s)?(a&&e._invokeInternalOnCancel(),r instanceof A&&r.isFinallyHandler()?(r.cancelPromise=e,F(t).call(r,o)===N&&e._reject(N.e)):t===c?e._fulfill(c.call(r)):r instanceof n?r._promiseCancelled(e):a||e instanceof C?e._cancel():r.cancel()):"function"==typeof t?a?(u&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,r,o,e)):t.call(r,o,e):r instanceof n?r._isResolved()||(0!==(33554432&s)?r._promiseFulfilled(o,e):r._promiseRejected(o,e)):a&&(u&&e._setAsyncGuaranteed(),0!==(33554432&s)?e._fulfill(o):e._reject(o))},i.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,r=e.receiver,o=e.value;"function"==typeof t?n instanceof i?this._settlePromiseFromHandler(t,r,o,n):t.call(r,o,n):n instanceof i&&n._reject(o)},i.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},i.prototype._settlePromise0=function(e,t,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,e,i,t)},i.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},i.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=l();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!==(134217728&t)?this._settlePromises():g.settlePromises(this))}},i.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16))return this._setRejected(),this._fulfillmentHandler0=e,this._isFinal()?g.fatalError(e,d.isNode):void((65535&t)>0?g.settlePromises(this):this._ensurePossibleRejectionHandled())},i.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},i.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},i.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!==(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var e=this._bitField;return 0!==(33554432&e)?this._rejectionHandler0:0!==(16777216&e)?this._fulfillmentHandler0:void 0},i.defer=i.pending=function(){S.deprecated("Promise.defer","new Promise");var e=new i(_);return{promise:e,resolve:o,reject:a}},d.notEnumerableProp(i,"_makeSelfResolutionError",l),e("./method")(i,_,k,f,S),e("./bind")(i,_,k,S),e("./cancel")(i,C,f,S),e("./direct_resolve")(i),e("./synchronous_inspection")(i),e("./join")(i,C,k,_,g,u),i.Promise=i,i.version="3.4.7",e("./map.js")(i,C,f,k,_,S),e("./call_get.js")(i),e("./using.js")(i,f,k,$,_,S),e("./timers.js")(i,_,S),e("./generators.js")(i,f,_,k,n,S),e("./nodeify.js")(i),e("./promisify.js")(i,_),e("./props.js")(i,C,k,f),e("./race.js")(i,_,k,f),e("./reduce.js")(i,C,f,k,_,S),e("./settle.js")(i,C,S),e("./some.js")(i,C,f),e("./filter.js")(i,_),e("./each.js")(i,_),e("./any.js")(i),d.toFastProperties(i),d.toFastProperties(i.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new i(_)),S.setBounds(m.firstLineError,d.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){function a(e){switch(e){case-2:return[];case-3:return{}}}function s(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var u=e("./util");u.isArray;return u.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function l(e,n){var o=r(this._values,this._promise);if(o instanceof t){o=o._target();var s=o._bitField;if(this._values=o,0===(50397184&s))return this._promise._setAsyncGuaranteed(),o._then(l,this._reject,void 0,this,n);if(0===(33554432&s))return 0!==(16777216&s)?this._reject(o._reason()):this._cancel();o=o._value()}if(o=u.asArray(o),null===o){var c=i("expecting an array or an iterable object but got "+u.classString(o)).reason();return void this._promise._rejectCallback(c,!1)}return 0===o.length?void(n===-5?this._resolveEmptyArray():this._resolve(a(n))):void this._iterate(o)},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<n;++s){var u=r(e[s],i);u instanceof t?(u=u._target(),a=u._bitField):a=null,o?null!==a&&u.suppressUnhandledRejections():null!==a?0===(50397184&a)?(u._proxy(this,s),this._values[s]=u):o=0!==(33554432&a)?this._promiseFulfilled(u._value(),s):0!==(16777216&a)?this._promiseRejected(u._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(u,s)}o||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n<e.length;++n)e[n]instanceof t&&e[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}},{"./util":36}],24:[function(e,t,n){"use strict";t.exports=function(t,n){function r(e){return!x.test(e)}function i(e){try{return e.__isPromisified__===!0}catch(t){return!1}}function o(e,t,n){var r=d.getDataPropertyOrDefault(e,t+n,_);return!!r&&i(r)}function a(e,t,n){for(var r=0;r<e.length;r+=2){var i=e[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new y("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}function s(e,t,n,r){for(var s=d.inheritedDataKeys(e),u=[],l=0;l<s.length;++l){var c=s[l],f=e[c],h=r===k||k(c,f,e);"function"!=typeof f||i(f)||o(e,c,t)||!r(c,f,e,h)||u.push(c,f)}return a(u,t,n),u}function u(e,r,i,o,a,s){function u(){var i=r;r===h&&(i=this);var o=new t(n);o._captureStackTrace();var a="string"==typeof c&&this!==l?this[c]:e,u=p(o,s);try{a.apply(i,m(arguments,u))}catch(f){o._rejectCallback(g(f),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var l=function(){return this}(),c=e;return"string"==typeof c&&(e=o),d.notEnumerableProp(u,"__isPromisified__",!0),u}function l(e,t,n,r,i){for(var o=new RegExp(C(t)+"$"),a=s(e,t,o,n),u=0,l=a.length;u<l;u+=2){var c=a[u],f=a[u+1],p=c+t;if(r===E)e[p]=E(c,h,c,f,t,i);else{var m=r(f,function(){return E(c,h,c,f,t,i)});d.notEnumerableProp(m,"__isPromisified__",!0),e[p]=m}}return d.toFastProperties(e),e}function c(e,t,n){return E(e,t,void 0,e,null,n)}var f,h={},d=e("./util"),p=e("./nodeback"),m=d.withAppended,g=d.maybeWrapAsError,v=d.canEvaluate,y=e("./errors").TypeError,b="Async",_={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],x=new RegExp("^(?:"+w.join("|")+")$"),k=function(e){return d.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e},C=function(e){return e.replace(/([$])/,"\\$")},E=v?f:u;t.promisify=function(e,t){if("function"!=typeof e)throw new y("expecting a function but got "+d.classString(e));if(i(e))return e;t=Object(t);var n=void 0===t.context?h:t.context,o=!!t.multiArgs,a=c(e,n,o);return d.copyDescriptors(e,a,r),a},t.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new y("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");t=Object(t);var n=!!t.multiArgs,r=t.suffix;"string"!=typeof r&&(r=b);var i=t.filter;"function"!=typeof i&&(i=k);var o=t.promisifier;if("function"!=typeof o&&(o=E),!d.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a=d.inheritedDataKeys(e),s=0;s<a.length;++s){var u=e[a[s]];"constructor"!==a[s]&&d.isClass(u)&&(l(u.prototype,r,i,o,n),l(u,r,i,o,n))}return l(e,r,i,o,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){function o(e){var t,n=!1;if(void 0!==s&&e instanceof s)t=f(e),n=!0;else{var r=c.keys(e),i=r.length;t=new Array(2*i);for(var o=0;o<i;++o){var a=r[o];t[o]=e[a],t[o+i]=a}}this.constructor$(t),this._isMap=n,this._init$(void 0,-3)}function a(e){var n,a=r(e);return l(a)?(n=a instanceof t?a._then(t.props,void 0,void 0,void 0,void 0):new o(a).promise(),a instanceof t&&n._propagateFrom(a,2),n):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var s,u=e("./util"),l=u.isObject,c=e("./es5");"function"==typeof Map&&(s=Map);var f=function(){function e(e,r){this[t]=e,this[t+n]=r,t++}var t=0,n=0;return function(r){n=r.size,t=0;var i=new Array(2*r.size);return r.forEach(e,i),i}}(),h=function(e){for(var t=new s,n=e.length/2|0,r=0;r<n;++r){var i=e[n+r],o=e[r];t.set(i,o)}return t};u.inherits(o,n),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;if(n>=this._length){var r;if(this._isMap)r=h(this._values);else{r={};for(var i=this.length(),o=0,a=this.length();o<a;++o)r[this._values[o+i]]=this._values[o]}return this._resolve(r),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return a(this)},t.props=function(e){return a(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e,t,n,r,i){for(var o=0;o<i;++o)n[o+r]=e[o+t],e[o+t]=void 0}function i(e){this._capacity=e,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(e){return this._capacity<e},i.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1);var n=this._front+t&this._capacity-1;this[n]=e,this._length=t+1},i.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=e,this[i+1&o]=t,this[i+2&o]=n,this._length=r},i.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e;var n=this._front,i=this._length,o=n+i&t-1;r(this,0,this,t,o)},t.exports=i},{}],27:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){function o(e,o){var u=r(e);if(u instanceof t)return s(u);if(e=a.asArray(e),null===e)return i("expecting an array or an iterable object but got "+a.classString(e));var l=new t(n);void 0!==o&&l._propagateFrom(o,3);for(var c=l._fulfill,f=l._reject,h=0,d=e.length;h<d;++h){var p=e[h];(void 0!==p||h in e)&&t.cast(p)._then(c,f,void 0,l,null)}return l}var a=e("./util"),s=function(e){return e.then(function(t){return o(t,e)})};t.race=function(e){return o(e,void 0)},t.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){function s(e,n,r,i){this.constructor$(e);var a=h();this._fn=null===a?n:d.domainBind(a,n),void 0!==r&&(r=t.resolve(r),r._attachCancellationCallback(this)),this._initialValue=r,this._currentCancellable=null,i===o?this._eachValues=Array(this._length):0===i?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function l(e,t,n,i){if("function"!=typeof t)return r("expecting a function but got "+d.classString(t));var o=new s(e,t,n,i);return o.promise()}function c(e){this.accum=e,this.array._gotAccum(e);var n=i(this.value,this.array._promise);return n instanceof t?(this.array._currentCancellable=n,n._then(f,void 0,void 0,this,void 0)):f.call(this,n)}function f(e){var n=this.array,r=n._promise,i=p(n._fn);r._pushContext();var o;o=void 0!==n._eachValues?i.call(r._boundValue(),e,this.index,this.length):i.call(r._boundValue(),this.accum,e,this.index,this.length),o instanceof t&&(n._currentCancellable=o);var s=r._popContext();return a.checkForgottenReturns(o,s,void 0!==n._eachValues?"Promise.each":"Promise.reduce",r),o}var h=t._getDomain,d=e("./util"),p=d.tryCatch;d.inherits(s,n),s.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==o&&this._eachValues.push(e)},s.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(e){
|
||
this._promise._resolveCallback(e),this._values=null},s.prototype._resultCancelled=function(e){return e===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel()))},s.prototype._iterate=function(e){this._values=e;var n,r,i=e.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=t.resolve(e[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;r<i;++r){var o={accum:null,value:e[r],index:r,length:i,array:this};n=n._then(c,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(u,u,void 0,n,this)},t.prototype.reduce=function(e,t){return l(this,e,t,null)},t.reduce=function(e,t,n,r){return l(e,t,n,r)}}},{"./util":36}],29:[function(e,t,n){"use strict";var r,i=e("./util"),o=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")},a=i.getNativePromise();if(i.isNode&&"undefined"==typeof MutationObserver){var s=global.setImmediate,u=process.nextTick;r=i.isRecentNode?function(e){s.call(global,e)}:function(e){u.call(process,e)}}else if("function"==typeof a&&"function"==typeof a.resolve){var l=a.resolve();r=function(e){l.then(e)}}else r="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"!=typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:o:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver(function(){e.classList.toggle("foo"),n=!1});i.observe(r,t);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver(function(){r.disconnect(),n()});r.observe(e,t),o()}}();t.exports=r},{"./util":36}],30:[function(e,t,n){"use strict";t.exports=function(t,n,r){function i(e){this.constructor$(e)}var o=t.PromiseInspection,a=e("./util");a.inherits(i,n),i.prototype._promiseResolved=function(e,t){this._values[e]=t;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(e,t){var n=new o;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},i.prototype._promiseRejected=function(e,t){var n=new o;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new i(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){function i(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(e),o=n.promise();return n.setHowMany(t),n.init(),o}var a=e("./util"),s=e("./errors").RangeError,u=e("./errors").AggregateError,l=a.isArray,c={};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 e=l(this._values);!this._isResolved()&&e&&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(e){this._howMany=e},i.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},i.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new u,t=this.length();t<this._values.length;++t)this._values[t]!==c&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(e){this._values.push(e)},i.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new s(t)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return o(e,t)},t.prototype.some=function(e){return o(this,e)},t._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0===(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!==(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536===(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!==(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){function r(e,r){if(c(e)){if(e instanceof t)return e;var i=o(e);if(i===l){r&&r._pushContext();var u=t.reject(i.e);return r&&r._popContext(),u}if("function"==typeof i){if(a(e)){var u=new t(n);return e._then(u._fulfill,u._reject,void 0,u,null),u}return s(e,i,r)}}return e}function i(e){return e.then}function o(e){try{return i(e)}catch(t){return l.e=t,l}}function a(e){try{return f.call(e,"_promise0")}catch(t){return!1}}function s(e,r,i){function o(e){s&&(s._resolveCallback(e),s=null)}function a(e){s&&(s._rejectCallback(e,f,!0),s=null)}var s=new t(n),c=s;i&&i._pushContext(),s._captureStackTrace(),i&&i._popContext();var f=!0,h=u.tryCatch(r).call(e,o,a);return f=!1,s&&h===l&&(s._rejectCallback(h.e,!0,!0),s=null),c}var u=e("./util"),l=u.errorObj,c=u.isObject,f={}.hasOwnProperty;return r}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){function i(e){this.handle=e}function o(e){return clearTimeout(this.handle),e}function a(e){throw clearTimeout(this.handle),e}var s=e("./util"),u=t.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var l=function(e){return c(+this).thenReturn(e)},c=t.delay=function(e,o){var a,s;return void 0!==o?(a=t.resolve(o)._then(l,null,null,e,void 0),r.cancellation()&&o instanceof t&&a._setOnCancel(o)):(a=new t(n),s=setTimeout(function(){a._fulfill()},+e),r.cancellation()&&a._setOnCancel(new i(s)),a._captureStackTrace()),a._setAsyncGuaranteed(),a};t.prototype.delay=function(e){return c(e,this)};var f=function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new u("operation timed out"):new u(t),s.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()};t.prototype.timeout=function(e,t){e=+e;var n,s,u=new i(setTimeout(function(){n.isPending()&&f(n,t,s)},e));return r.cancellation()?(s=this.then(),n=s._then(o,a,void 0,u,void 0),n._setOnCancel(u)):n=this._then(o,a,void 0,u,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){function s(e){setTimeout(function(){throw e},0)}function u(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}function l(e,n){function i(){if(a>=l)return c._fulfill();var o=u(e[a++]);if(o instanceof t&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),e.promise)}catch(f){return s(f)}if(o instanceof t)return o._then(i,s,null,null,null)}i()}var a=0,l=e.length,c=new t(o);return i(),c}function c(e,t,n){this._data=e,this._promise=t,this._context=n}function f(e,t,n){this.constructor$(e,t,n)}function h(e){return c.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function d(e){this.length=e,this.promise=null,this[e-1]=null}var p=e("./util"),m=e("./errors").TypeError,g=e("./util").inherits,v=p.errorObj,y=p.tryCatch,b={};c.prototype.data=function(){return this._data},c.prototype.promise=function(){return this._promise},c.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():b},c.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==b?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},c.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},g(f,c),f.prototype.doDispose=function(e,t){var n=this.data();return n.call(e,e,t)},d.prototype._resultCancelled=function(){for(var e=this.length,n=0;n<e;++n){var r=this[n];r instanceof t&&r.cancel()}},t.using=function(){var e=arguments.length;if(e<2)return n("you must pass at least 2 arguments to Promise.using");var i=arguments[e-1];if("function"!=typeof i)return n("expecting a function but got "+p.classString(i));var o,s=!0;2===e&&Array.isArray(arguments[0])?(o=arguments[0],e=o.length,s=!1):(o=arguments,e--);for(var u=new d(e),f=0;f<e;++f){var m=o[f];if(c.isDisposer(m)){var g=m;m=m.promise(),m._setDisposable(g)}else{var b=r(m);b instanceof t&&(m=b._then(h,null,null,{resources:u,index:f},void 0))}u[f]=m}for(var _=new Array(u.length),f=0;f<_.length;++f)_[f]=t.resolve(u[f]).reflect();var w=t.all(_).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return v.e=n.error(),v;if(!n.isFulfilled())return void w.cancel();e[t]=n.value()}x._pushContext(),i=y(i);var r=s?i.apply(void 0,e):i(e),o=x._popContext();return a.checkForgottenReturns(r,o,"Promise.using",x),r}),x=w.lastly(function(){var e=new t.PromiseInspection(w);return l(u,e)});return u.promise=x,x._setOnCancel(u),x},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new f(e,this,i());throw new m}}},{"./errors":12,"./util":36}],36:[function(e,t,n){"use strict";function r(){try{var e=T;return T=null,e.apply(this,arguments)}catch(t){return A.e=t,A}}function i(e){return T=e,r}function o(e){return null==e||e===!0||e===!1||"string"==typeof e||"number"==typeof e}function a(e){return"function"==typeof e||"object"==typeof e&&null!==e}function s(e){return o(e)?new Error(g(e)):e}function u(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n<r;++n)i[n]=e[n];return i[n]=t,i}function l(e,t,n){if(!$.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var r=Object.getOwnPropertyDescriptor(e,t);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function c(e,t,n){if(o(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return $.defineProperty(e,t,r),e}function f(e){throw e}function h(e){try{if("function"==typeof e){var t=$.names(e.prototype),n=$.isES5&&t.length>1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),i=M.test(e+"")&&$.names(e).length>0;if(n||r||i)return!0}return!1}catch(o){return!1}}function d(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e}function p(e){return O.test(e)}function m(e,t,n){for(var r=new Array(e),i=0;i<e;++i)r[i]=t+i+n;return r}function g(e){try{return e+""}catch(t){return"[no string representation]"}}function v(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function y(e){try{c(e,"isOperational",!0)}catch(t){}}function b(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||e.isOperational===!0)}function _(e){return v(e)&&$.propertyIsWritable(e,"stack")}function w(e){return{}.toString.call(e)}function x(e,t,n){for(var r=$.names(e),i=0;i<r.length;++i){var o=r[i];if(n(o))try{$.defineProperty(t,o,$.getDescriptor(e,o))}catch(a){}}}function k(e){return I?process.env[e]:void 0}function C(){if("function"==typeof Promise)try{var e=new Promise(function(){});if("[object Promise]"==={}.toString.call(e))return Promise}catch(t){}}function E(e,t){return e.bind(t)}var $=e("./es5"),S="undefined"==typeof navigator,A={e:{}},T,D="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0!==this?this:null,N=function(e,t){function n(){this.constructor=e,this.constructor$=t;for(var n in t.prototype)r.call(t.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=t.prototype[n])}var r={}.hasOwnProperty;return n.prototype=t.prototype,e.prototype=new n,e.prototype},F=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if($.isES5){var n=Object.getOwnPropertyNames;return function(e){for(var r=[],i=Object.create(null);null!=e&&!t(e);){var o;try{o=n(e)}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(e,u);null!=l&&null==l.get&&null==l.set&&r.push(u)}}e=$.getPrototypeOf(e)}return r}}var r={}.hasOwnProperty;return function(n){if(t(n))return[];var i=[];e:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<e.length;++a)if(r.call(e[a],o))continue e;i.push(o)}return i}}(),M=/this\s*\.\s*\S+\s*=/,O=/^[a-z$_][a-z$_0-9]*$/i,j=function(){return"stack"in new Error?function(e){return _(e)?e:new Error(g(e))}:function(e){if(_(e))return e;try{throw new Error(g(e))}catch(t){return t}}}(),P=function(e){return $.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var L="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],r=e[Symbol.iterator]();!(t=r.next()).done;)n.push(t.value);return n};P=function(e){return $.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?L(e):null}}var R="undefined"!=typeof process&&"[object process]"===w(process).toLowerCase(),I="undefined"!=typeof process&&"undefined"!=typeof process.env,q={isClass:h,isIdentifier:p,inheritedDataKeys:F,getDataPropertyOrDefault:l,thrower:f,isArray:$.isArray,asArray:P,notEnumerableProp:c,isPrimitive:o,isObject:a,isError:v,canEvaluate:S,errorObj:A,tryCatch:i,inherits:N,withAppended:u,maybeWrapAsError:s,toFastProperties:d,filledRange:m,toString:g,canAttachTrace:_,ensureErrorObject:j,originatesFromRejection:b,markAsOriginatingFromRejection:y,classString:w,copyDescriptors:x,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:R,hasEnvVariables:I,env:k,global:D,getNativePromise:C,domainBind:E};q.isRecentNode=q.isNode&&function(){var e=process.versions.node.split(".").map(Number);return 0===e[0]&&e[1]>10||e[0]>0}(),q.isNode&&q.toFastProperties(process);try{throw new Error}catch(z){q.lastLineError=z}t.exports=q},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise),function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=oe.type(e);return"function"!==n&&!oe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,n){if(oe.isFunction(t))return oe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return oe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(me.test(t))return oe.filter(t,e,n);t=oe.filter(t,e)}return oe.grep(e,function(e){return Q.call(t,e)>-1!==n})}function i(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t={};return oe.each(e.match(we)||[],function(e,n){t[n]=!0}),t}function a(){G.removeEventListener("DOMContentLoaded",a),e.removeEventListener("load",a),oe.ready()}function s(){this.expando=oe.expando+s.uid++}function u(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Ae,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Se.test(n)?oe.parseJSON(n):n)}catch(i){}$e.set(e,t,n)}else n=void 0;return n}function l(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return oe.css(e,t,"")},u=s(),l=n&&n[3]||(oe.cssNumber[t]?"":"px"),c=(oe.cssNumber[t]||"px"!==l&&+u)&&De.exec(oe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,oe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function c(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&oe.nodeName(e,t)?oe.merge([e],n):n}function f(e,t){for(var n=0,r=e.length;n<r;n++)Ee.set(e[n],"globalEval",!t||Ee.get(t[n],"globalEval"))}function h(e,t,n,r,i){for(var o,a,s,u,l,h,d=t.createDocumentFragment(),p=[],m=0,g=e.length;m<g;m++)if(o=e[m],o||0===o)if("object"===oe.type(o))oe.merge(p,o.nodeType?[o]:o);else if(Le.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(Oe.exec(o)||["",""])[1].toLowerCase(),u=Pe[s]||Pe._default,a.innerHTML=u[1]+oe.htmlPrefilter(o)+u[2],h=u[0];h--;)a=a.lastChild;oe.merge(p,a.childNodes),a=d.firstChild,a.textContent=""}else p.push(t.createTextNode(o));for(d.textContent="",m=0;o=p[m++];)if(r&&oe.inArray(o,r)>-1)i&&i.push(o);else if(l=oe.contains(o.ownerDocument,o),a=c(d.appendChild(o),"script"),l&&f(a),n)for(h=0;o=a[h++];)je.test(o.type||"")&&n.push(o);return d}function d(){return!0}function p(){return!1}function m(){try{return G.activeElement}catch(e){}}function g(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)g(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=p;else if(!i)return e;return 1===o&&(a=i,i=function(e){return oe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=oe.guid++)),e.each(function(){oe.event.add(this,t,i,r,n)})}function v(e,t){return oe.nodeName(e,"table")&&oe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function b(e){var t=Ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Ee.hasData(e)&&(o=Ee.access(e),a=Ee.set(t,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;n<r;n++)oe.event.add(t,i,l[i][n])}$e.hasData(e)&&(s=$e.access(e),u=oe.extend({},s),$e.set(t,u))}}function w(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function x(e,t,n,r){t=X.apply([],t);var i,o,a,s,u,l,f=0,d=e.length,p=d-1,m=t[0],g=oe.isFunction(m);if(g||d>1&&"string"==typeof m&&!re.checkClone&&He.test(m))return e.each(function(i){var o=e.eq(i);g&&(t[0]=m.call(this,i,o.html())),x(o,t,n,r)});if(d&&(i=h(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=oe.map(c(i,"script"),y),s=a.length;f<d;f++)u=i,f!==p&&(u=oe.clone(u,!0,!0),s&&oe.merge(a,c(u,"script"))),n.call(e[f],u,f);if(s)for(l=a[a.length-1].ownerDocument,oe.map(a,b),f=0;f<s;f++)u=a[f],je.test(u.type||"")&&!Ee.access(u,"globalEval")&&oe.contains(l,u)&&(u.src?oe._evalUrl&&oe._evalUrl(u.src):oe.globalEval(u.textContent.replace(Ve,"")))}return e}function k(e,t,n){for(var r,i=t?oe.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||oe.cleanData(c(r)),r.parentNode&&(n&&oe.contains(r.ownerDocument,r)&&f(c(r,"script")),r.parentNode.removeChild(r));return e}function C(e,t){var n=oe(t.createElement(e)).appendTo(t.body),r=oe.css(n[0],"display");return n.detach(),r}function E(e){var t=G,n=Ye[e];return n||(n=C(e,t),"none"!==n&&n||(We=(We||oe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=We[0].contentDocument,t.write(),t.close(),n=C(e,t),We.detach()),Ye[e]=n),n}function $(e,t,n){var r,i,o,a,s=e.style;return n=n||Ze(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||oe.contains(e.ownerDocument,e)||(a=oe.style(e,t)),n&&!re.pixelMarginRight()&&Ge.test(a)&&Ke.test(t)&&(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 S(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function A(e){if(e in rt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=nt.length;n--;)if(e=nt[n]+t,e in rt)return e}function T(e,t,n){var r=De.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function D(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=oe.css(e,n+Ne[o],!0,i)),r?("content"===n&&(a-=oe.css(e,"padding"+Ne[o],!0,i)),"margin"!==n&&(a-=oe.css(e,"border"+Ne[o]+"Width",!0,i))):(a+=oe.css(e,"padding"+Ne[o],!0,i),"padding"!==n&&(a+=oe.css(e,"border"+Ne[o]+"Width",!0,i)));return a}function N(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Ze(e),a="border-box"===oe.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(i=$(e,t,o),(i<0||null==i)&&(i=e.style[t]),Ge.test(i))return i;r=a&&(re.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+D(e,t,n||(a?"border":"content"),r,o)+"px"}function F(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)r=e[a],r.style&&(o[a]=Ee.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Fe(r)&&(o[a]=Ee.access(r,"olddisplay",E(r.nodeName)))):(i=Fe(r),"none"===n&&i||Ee.set(r,"olddisplay",i?n:oe.css(r,"display"))));for(a=0;a<s;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function M(e,t,n,r,i){return new M.prototype.init(e,t,n,r,i)}function O(){return e.setTimeout(function(){it=void 0}),it=oe.now()}function j(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=Ne[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function P(e,t,n){for(var r,i=(I.tweeners[t]||[]).concat(I.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function L(e,t,n){var r,i,o,a,s,u,l,c,f=this,h={},d=e.style,p=e.nodeType&&Fe(e),m=Ee.get(e,"fxshow");n.queue||(s=oe._queueHooks(e,"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--,oe.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],l=oe.css(e,"display"),c="none"===l?Ee.get(e,"olddisplay")||E(e.nodeName):l,"inline"===c&&"none"===oe.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],at.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;p=!0}h[r]=m&&m[r]||oe.style(e,r)}else l=void 0;if(oe.isEmptyObject(h))"inline"===("none"===l?E(e.nodeName):l)&&(d.display=l);else{m?"hidden"in m&&(p=m.hidden):m=Ee.access(e,"fxshow",{}),o&&(m.hidden=!p),p?oe(e).show():f.done(function(){oe(e).hide()}),f.done(function(){var t;Ee.remove(e,"fxshow");for(t in h)oe.style(e,t,h[t])});for(r in h)a=P(p?m[r]:0,r,f),r in m||(m[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function R(e,t){var n,r,i,o,a;for(n in e)if(r=oe.camelCase(n),i=t[r],o=e[n],oe.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=oe.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function I(e,t,n){var r,i,o=0,a=I.prefilters.length,s=oe.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=it||O(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),o<1&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:oe.extend({},t),opts:oe.extend(!0,{specialEasing:{},easing:oe.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||O(),duration:n.duration,tweens:[],createTween:function(t,n){var r=oe.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(R(c,l.opts.specialEasing);o<a;o++)if(r=I.prefilters[o].call(l,e,c,l.opts))return oe.isFunction(r.stop)&&(oe._queueHooks(l.elem,l.opts.queue).stop=oe.proxy(r.stop,r)),r;return oe.map(c,P,l),oe.isFunction(l.opts.start)&&l.opts.start.call(e,l),oe.fx.timer(oe.extend(u,{elem:e,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 q(e){return e.getAttribute&&e.getAttribute("class")||""}function z(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(we)||[];if(oe.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function B(e,t,n,r){function i(s){var u;return o[s]=!0,oe.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===$t;return i(t.dataTypes[0])||!o["*"]&&i("*")}function H(e,t){var n,r,i=oe.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&oe.extend(!0,e,r),e}function U(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.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]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function V(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.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&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function W(e,t,n,r){var i;if(oe.isArray(t))oe.each(t,function(t,i){n||Dt.test(e)?r(e,i):W(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==oe.type(t))r(e,t);else for(i in t)W(e+"["+i+"]",t[i],n,r)}function Y(e){return oe.isWindow(e)?e:9===e.nodeType&&e.defaultView}var K=[],G=e.document,Z=K.slice,X=K.concat,J=K.push,Q=K.indexOf,ee={},te=ee.toString,ne=ee.hasOwnProperty,re={},ie="2.2.4",oe=function(e,t){return new oe.fn.init(e,t)},ae=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,se=/^-ms-/,ue=/-([\da-z])/gi,le=function(e,t){return t.toUpperCase()};oe.fn=oe.prototype={jquery:ie,constructor:oe,selector:"",length:0,toArray:function(){return Z.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:Z.call(this)},pushStack:function(e){var t=oe.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return oe.each(this,e)},map:function(e){return this.pushStack(oe.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(Z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:J,sort:K.sort,splice:K.splice},oe.extend=oe.fn.extend=function(){var e,t,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||oe.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],r=e[t],a!==r&&(l&&r&&(oe.isPlainObject(r)||(i=oe.isArray(r)))?(i?(i=!1,o=n&&oe.isArray(n)?n:[]):o=n&&oe.isPlainObject(n)?n:{},a[t]=oe.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},oe.extend({expando:"jQuery"+(ie+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===oe.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!oe.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==oe.type(e)||e.nodeType||oe.isWindow(e))return!1;if(e.constructor&&!ne.call(e,"constructor")&&!ne.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||ne.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ee[te.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=oe.trim(e),e&&(1===e.indexOf("use strict")?(t=G.createElement("script"),t.text=e,G.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(se,"ms-").replace(ue,le)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;i<r&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ae,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?oe.merge(r,"string"==typeof e?[e]:e):J.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:Q.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)r=!t(e[o],o),
|
||
r!==s&&i.push(e[o]);return i},map:function(e,t,r){var i,o,a=0,s=[];if(n(e))for(i=e.length;a<i;a++)o=t(e[a],a,r),null!=o&&s.push(o);else for(a in e)o=t(e[a],a,r),null!=o&&s.push(o);return X.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),oe.isFunction(e))return r=Z.call(arguments,2),i=function(){return e.apply(t||this,r.concat(Z.call(arguments)))},i.guid=e.guid=e.guid||oe.guid++,i},now:Date.now,support:re}),"function"==typeof Symbol&&(oe.fn[Symbol.iterator]=K[Symbol.iterator]),oe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ee["[object "+t+"]"]=t.toLowerCase()});var ce=function(e){function t(e,t,n,r){var i,o,a,s,u,l,f,d,p=t&&t.ownerDocument,m=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return n;if(!r&&((t?t.ownerDocument||t:q)!==F&&N(t),t=t||F,O)){if(11!==m&&(l=ve.exec(e)))if(i=l[1]){if(9===m){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(p&&(a=p.getElementById(i))&&R(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&w.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(w.qsa&&!V[e+" "]&&(!j||!j.test(e))){if(1!==m)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(be,"\\$&"):t.setAttribute("id",s=I),f=E(e),o=f.length,u=he.test(s)?"#"+s:"[id='"+s+"']";o--;)f[o]=u+" "+h(f[o]);d=f.join(","),p=ye.test(e)&&c(t.parentNode)||t}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(g){}finally{s===I&&t.removeAttribute("id")}}}return S(e.replace(se,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>x.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=F.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)x.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Y)-(~e.sourceIndex||Y);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function h(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=B++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,l,c=[z,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[I]||(t[I]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(s=u[r])&&s[0]===z&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function v(e,t,n,i,o,a){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,a)),r(function(r,a,s,u){var l,c,f,h=[],d=[],p=a.length,v=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:g(v,h,e,s,u),b=n?o||(r?e:p||i)?[]:a:y;if(n&&n(y,b,s,u),i)for(l=g(b,d),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(b[d[c]]=!(y[d[c]]=f));if(r){if(o||e){if(o){for(l=[],c=b.length;c--;)(f=b[c])&&l.push(y[c]=f);o(null,b=[],l,u)}for(c=b.length;c--;)(f=b[c])&&(l=o?ee(r,f):h[c])>-1&&(r[l]=!(a[l]=f))}}else b=g(b===a?b.splice(p,b.length):b),o?o(null,a,b,u):J.apply(a,b)})}function y(e){for(var t,n,r,i=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],s=o?1:0,u=d(function(e){return e===t},a,!0),l=d(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==A)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=x.relative[e[s].type])c=[d(p(c),n)];else{if(n=x.filter[e[s].type].apply(null,e[s].matches),n[I]){for(r=++s;r<i&&!x.relative[e[r].type];r++);return v(s>1&&p(c),s>1&&h(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<r&&y(e.slice(s,r)),r<i&&y(e=e.slice(r)),r<i&&h(e))}c.push(n)}return p(c)}function b(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,l){var c,f,h,d=0,p="0",m=r&&[],v=[],y=A,b=r||o&&x.find.TAG("*",l),_=z+=null==y?1:Math.random()||.1,w=b.length;for(l&&(A=a===F||a||l);p!==w&&null!=(c=b[p]);p++){if(o&&c){for(f=0,a||c.ownerDocument===F||(N(c),s=!O);h=e[f++];)if(h(c,a||F,s)){u.push(c);break}l&&(z=_)}i&&((c=!h&&c)&&d--,r&&m.push(c))}if(d+=p,i&&p!==d){for(f=0;h=n[f++];)h(m,v,a,s);if(r){if(d>0)for(;p--;)m[p]||v[p]||(v[p]=Z.call(u));v=g(v)}J.apply(u,v),l&&!r&&v.length>0&&d+n.length>1&&t.uniqueSort(u)}return l&&(z=_,A=y),m};return i?r(a):a}var _,w,x,k,C,E,$,S,A,T,D,N,F,M,O,j,P,L,R,I="sizzle"+1*new Date,q=e.document,z=0,B=0,H=n(),U=n(),V=n(),W=function(e,t){return e===t&&(D=!0),0},Y=1<<31,K={}.hasOwnProperty,G=[],Z=G.pop,X=G.push,J=G.push,Q=G.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",oe=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),le=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),he=new RegExp("^"+re+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,_e=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=function(){N()};try{J.apply(G=Q.call(q.childNodes),q.childNodes),G[q.childNodes.length].nodeType}catch(ke){J={apply:G.length?function(e,t){X.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},C=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},N=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:q;return r!==F&&9===r.nodeType&&r.documentElement?(F=r,M=F.documentElement,O=!C(F),(n=F.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xe,!1):n.attachEvent&&n.attachEvent("onunload",xe)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(F.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ge.test(F.getElementsByClassName),w.getById=i(function(e){return M.appendChild(e).id=I,!F.getElementsByName||!F.getElementsByName(I).length}),w.getById?(x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&O){var n=t.getElementById(e);return n?[n]:[]}},x.filter.ID=function(e){var t=e.replace(_e,we);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(_e,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),x.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&O)return t.getElementsByClassName(e)},P=[],j=[],(w.qsa=ge.test(F.querySelectorAll))&&(i(function(e){M.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||j.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+I+"-]").length||j.push("~="),e.querySelectorAll(":checked").length||j.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||j.push(".#.+[+~]")}),i(function(e){var t=F.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&j.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||j.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),j.push(",.*:")})),(w.matchesSelector=ge.test(L=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&i(function(e){w.disconnectedMatch=L.call(e,"div"),L.call(e,"[s!='']:x"),P.push("!=",oe)}),j=j.length&&new RegExp(j.join("|")),P=P.length&&new RegExp(P.join("|")),t=ge.test(M.compareDocumentPosition),R=t||ge.test(M.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===F||e.ownerDocument===q&&R(q,e)?-1:t===F||t.ownerDocument===q&&R(q,t)?1:T?ee(T,e)-ee(T,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===F?-1:t===F?1:i?-1:o?1:T?ee(T,e)-ee(T,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===q?-1:u[r]===q?1:0},F):F},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==F&&N(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&O&&!V[n+" "]&&(!P||!P.test(n))&&(!j||!j.test(n)))try{var r=L.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,F,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==F&&N(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==F&&N(e);var n=x.attrHandle[t.toLowerCase()],r=n&&K.call(x.attrHandle,t.toLowerCase())?n(e,t,!O):void 0;return void 0!==r?r:w.attributes||!O?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(D=!w.detectDuplicates,T=!w.sortStable&&e.slice(0),e.sort(W),D){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return T=null,e},k=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=k(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=k(t);return n},x=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(_e,we),e[3]=(e[3]||e[4]||e[5]||"").replace(_e,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(_e,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);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(ae," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,h,d,p,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(g){if(o){for(;m;){for(h=t;h=h[m];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(h=g,f=h[I]||(h[I]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[e]||[],d=l[0]===z&&l[1],b=d&&l[2],h=d&&g.childNodes[d];h=++d&&h&&h[m]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===t){c[e]=[z,d,b];break}}else if(y&&(h=t,f=h[I]||(h[I]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[e]||[],d=l[0]===z&&l[1],b=d),b===!1)for(;(h=++d&&h&&h[m]||(b=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&(f=h[I]||(h[I]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),c[e]=[z,b]),h!==t)););return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,n){var i,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=$(e.replace(se,"$1"));return i[I]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(_e,we),function(t){return(t.textContent||t.innerText||k(t)).indexOf(e)>-1}}),lang:r(function(e){return he.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(_e,we).toLowerCase(),function(t){var n;do if(n=O?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===M},focus:function(e){return e===F.activeElement&&(!F.hasFocus||F.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},x.pseudos.nth=x.pseudos.eq;for(_ in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[_]=s(_);for(_ in{submit:!0,reset:!0})x.pseudos[_]=u(_);return f.prototype=x.filters=x.pseudos,x.setFilters=new f,E=t.tokenize=function(e,n){var r,i,o,a,s,u,l,c=U[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=x.preFilter;s;){r&&!(i=ue.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=le.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(se," ")}),s=s.slice(r.length));for(a in x.filter)!(i=de[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?t.error(e):U(e,u).slice(0)},$=t.compile=function(e,t){var n,r=[],i=[],o=V[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=y(t[n]),o[I]?r.push(o):i.push(o);o=V(e,b(i,r)),o.selector=e}return o},S=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,f=!r&&E(e=l.selector||e);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===t.nodeType&&O&&x.relative[o[1].type]){if(t=(x.find.ID(a.matches[0].replace(_e,we),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=de.needsContext.test(e)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(r=u(a.matches[0].replace(_e,we),ye.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&h(o),!e)return J.apply(n,r),n;break}}return(l||$(e,f))(r,t,!O,n,!t||ye.test(e)&&c(t.parentNode)||t),n},w.sortStable=I.split("").sort(W).join("")===I,w.detectDuplicates=!!D,N(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(F.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);oe.find=ce,oe.expr=ce.selectors,oe.expr[":"]=oe.expr.pseudos,oe.uniqueSort=oe.unique=ce.uniqueSort,oe.text=ce.getText,oe.isXMLDoc=ce.isXML,oe.contains=ce.contains;var fe=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&oe(e).is(n))break;r.push(e)}return r},he=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},de=oe.expr.match.needsContext,pe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,me=/^.[^:#\[\.,]*$/;oe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?oe.find.matchesSelector(r,e)?[r]:[]:oe.find.matches(e,oe.grep(t,function(e){return 1===e.nodeType}))},oe.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(oe(e).filter(function(){for(t=0;t<n;t++)if(oe.contains(i[t],this))return!0}));for(t=0;t<n;t++)oe.find(e,i[t],r);return r=this.pushStack(n>1?oe.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&de.test(e)?oe(e):e||[],!1).length}});var ge,ve=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ye=oe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||ge,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ve.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof oe?t[0]:t,oe.merge(this,oe.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:G,!0)),pe.test(r[1])&&oe.isPlainObject(t))for(r in t)oe.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=G.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=G,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):oe.isFunction(e)?void 0!==n.ready?n.ready(e):e(oe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),oe.makeArray(e,this))};ye.prototype=oe.fn,ge=oe(G);var be=/^(?:parents|prev(?:Until|All))/,_e={children:!0,contents:!0,next:!0,prev:!0};oe.fn.extend({has:function(e){var t=oe(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(oe.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=de.test(e)||"string"!=typeof e?oe(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&oe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?oe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?Q.call(oe(e),this[0]):Q.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(oe.uniqueSort(oe.merge(this.get(),oe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),oe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return fe(e,"parentNode")},parentsUntil:function(e,t,n){return fe(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return fe(e,"nextSibling")},prevAll:function(e){return fe(e,"previousSibling")},nextUntil:function(e,t,n){return fe(e,"nextSibling",n)},prevUntil:function(e,t,n){return fe(e,"previousSibling",n)},siblings:function(e){return he((e.parentNode||{}).firstChild,e)},children:function(e){return he(e.firstChild)},contents:function(e){return e.contentDocument||oe.merge([],e.childNodes)}},function(e,t){oe.fn[e]=function(n,r){var i=oe.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=oe.filter(r,i)),this.length>1&&(_e[e]||oe.uniqueSort(i),be.test(e)&&i.reverse()),this.pushStack(i)}});var we=/\S+/g;oe.Callbacks=function(e){e="string"==typeof e?o(e):oe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,l=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<a.length;)a[u].apply(n[0],n[1])===!1&&e.stopOnFalse&&(u=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(u=a.length-1,s.push(n)),function r(t){oe.each(t,function(t,n){oe.isFunction(n)?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==oe.type(n)&&r(n)})}(arguments),n&&!t&&l()),this},remove:function(){return oe.each(arguments,function(e,t){for(var n;(n=oe.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?oe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=s=[],n||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},oe.extend({Deferred:function(e){var t=[["resolve","done",oe.Callbacks("once memory"),"resolved"],["reject","fail",oe.Callbacks("once memory"),"rejected"],["notify","progress",oe.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return oe.Deferred(function(n){oe.each(t,function(t,o){var a=oe.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&oe.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?oe.extend(e,r):r}},i={};return r.pipe=r.then,oe.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[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),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=Z.call(arguments),a=o.length,s=1!==a||e&&oe.isFunction(e.promise)?a:0,u=1===s?e:oe.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?Z.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&oe.isFunction(o[i].promise)?o[i].promise().progress(l(i,n,t)).done(l(i,r,o)).fail(u.reject):--s;return s||u.resolveWith(r,o),u.promise()}});var xe;oe.fn.ready=function(e){return oe.ready.promise().done(e),this},oe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?oe.readyWait++:oe.ready(!0)},ready:function(e){(e===!0?--oe.readyWait:oe.isReady)||(oe.isReady=!0,e!==!0&&--oe.readyWait>0||(xe.resolveWith(G,[oe]),oe.fn.triggerHandler&&(oe(G).triggerHandler("ready"),oe(G).off("ready"))))}}),oe.ready.promise=function(t){return xe||(xe=oe.Deferred(),"complete"===G.readyState||"loading"!==G.readyState&&!G.documentElement.doScroll?e.setTimeout(oe.ready):(G.addEventListener("DOMContentLoaded",a),e.addEventListener("load",a))),xe.promise(t)},oe.ready.promise();var ke=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===oe.type(n)){i=!0;for(s in n)ke(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,oe.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(oe(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},Ce=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};s.uid=1,s.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!Ce(e))return{};var t=e[this.expando];return t||(t={},Ce(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,oe.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{oe.isArray(t)?r=t.concat(t.map(oe.camelCase)):(i=oe.camelCase(t),t in o?r=[t,i]:(r=i,r=r in o?[r]:r.match(we)||[])),n=r.length;for(;n--;)delete o[r[n]]}(void 0===t||oe.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!oe.isEmptyObject(t)}};var Ee=new s,$e=new s,Se=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ae=/[A-Z]/g;oe.extend({hasData:function(e){return $e.hasData(e)||Ee.hasData(e)},data:function(e,t,n){return $e.access(e,t,n)},removeData:function(e,t){$e.remove(e,t)},_data:function(e,t,n){return Ee.access(e,t,n)},_removeData:function(e,t){Ee.remove(e,t)}}),oe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=$e.get(o),1===o.nodeType&&!Ee.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=oe.camelCase(r.slice(5)),u(o,r,i[r])));Ee.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){$e.set(this,e)}):ke(this,function(t){var n,r;if(o&&void 0===t){if(n=$e.get(o,e)||$e.get(o,e.replace(Ae,"-$&").toLowerCase()),void 0!==n)return n;if(r=oe.camelCase(e),n=$e.get(o,r),void 0!==n)return n;if(n=u(o,r,void 0),void 0!==n)return n}else r=oe.camelCase(e),this.each(function(){var n=$e.get(this,r);$e.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&$e.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){$e.remove(this,e)})}}),oe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Ee.get(e,t),n&&(!r||oe.isArray(n)?r=Ee.access(e,t,oe.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=oe.queue(e,t),r=n.length,i=n.shift(),o=oe._queueHooks(e,t),a=function(){oe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ee.get(e,n)||Ee.access(e,n,{empty:oe.Callbacks("once memory").add(function(){Ee.remove(e,[t+"queue",n])})})}}),oe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?oe.queue(this[0],e):void 0===t?this:this.each(function(){var n=oe.queue(this,e,t);oe._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&oe.dequeue(this,e)})},dequeue:function(e){return this.each(function(){oe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=oe.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=Ee.get(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,De=new RegExp("^(?:([+-])=|)("+Te+")([a-z%]*)$","i"),Ne=["Top","Right","Bottom","Left"],Fe=function(e,t){return e=t||e,"none"===oe.css(e,"display")||!oe.contains(e.ownerDocument,e)},Me=/^(?:checkbox|radio)$/i,Oe=/<([\w:-]+)/,je=/^$|\/(?:java|ecma)script/i,Pe={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,"",""]};Pe.optgroup=Pe.option,Pe.tbody=Pe.tfoot=Pe.colgroup=Pe.caption=Pe.thead,Pe.th=Pe.td;var Le=/<|&#?\w+;/;!function(){var e=G.createDocumentFragment(),t=e.appendChild(G.createElement("div")),n=G.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),re.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",re.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Re=/^key/,Ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qe=/^([^.]*)(?:\.(.+)|)/;oe.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,d,p,m,g=Ee.get(e);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=oe.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(t){return"undefined"!=typeof oe&&oe.event.triggered!==t.type?oe.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(we)||[""],l=t.length;l--;)s=qe.exec(t[l])||[],d=m=s[1],p=(s[2]||"").split(".").sort(),d&&(f=oe.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=oe.event.special[d]||{},c=oe.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&oe.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||(h=u[d]=[],h.delegateCount=0,f.setup&&f.setup.call(e,r,p,a)!==!1||e.addEventListener&&e.addEventListener(d,a)),
|
||
f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),oe.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,d,p,m,g=Ee.hasData(e)&&Ee.get(e);if(g&&(u=g.events)){for(t=(t||"").match(we)||[""],l=t.length;l--;)if(s=qe.exec(t[l])||[],d=m=s[1],p=(s[2]||"").split(".").sort(),d){for(f=oe.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,h=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&m!==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(e,c));a&&!h.length&&(f.teardown&&f.teardown.call(e,p,g.handle)!==!1||oe.removeEvent(e,d,g.handle),delete u[d])}else for(d in u)oe.event.remove(e,d+t[l],n,r,!0);oe.isEmptyObject(u)&&Ee.remove(e,"handle events")}},dispatch:function(e){e=oe.event.fix(e);var t,n,r,i,o,a=[],s=Z.call(arguments),u=(Ee.get(this,"events")||{})[e.type]||[],l=oe.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=oe.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,r=((oe.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n<s;n++)o=t[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?oe(i,this).index(u)>-1:oe.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||G,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[oe.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Ie.test(i)?this.mouseHooks:Re.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new oe.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=G),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==m()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===m()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&oe.nodeName(this,"input"))return this.click(),!1},_default:function(e){return oe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},oe.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},oe.Event=function(e,t){return this instanceof oe.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?d:p):this.type=e,t&&oe.extend(this,t),this.timeStamp=e&&e.timeStamp||oe.now(),void(this[oe.expando]=!0)):new oe.Event(e,t)},oe.Event.prototype={constructor:oe.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=d,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=d,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=d,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},oe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){oe.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||oe.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),oe.fn.extend({on:function(e,t,n,r){return g(this,e,t,n,r)},one:function(e,t,n,r){return g(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,oe(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=p),this.each(function(){oe.event.remove(this,e,n,t)})}});var ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Be=/<script|<style|<link/i,He=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^true\/(.*)/,Ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;oe.extend({htmlPrefilter:function(e){return e.replace(ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=oe.contains(e.ownerDocument,e);if(!(re.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||oe.isXMLDoc(e)))for(a=c(s),o=c(e),r=0,i=o.length;r<i;r++)w(o[r],a[r]);if(t)if(n)for(o=o||c(e),a=a||c(s),r=0,i=o.length;r<i;r++)_(o[r],a[r]);else _(e,s);return a=c(s,"script"),a.length>0&&f(a,!u&&c(e,"script")),s},cleanData:function(e){for(var t,n,r,i=oe.event.special,o=0;void 0!==(n=e[o]);o++)if(Ce(n)){if(t=n[Ee.expando]){if(t.events)for(r in t.events)i[r]?oe.event.remove(n,r):oe.removeEvent(n,r,t.handle);n[Ee.expando]=void 0}n[$e.expando]&&(n[$e.expando]=void 0)}}}),oe.fn.extend({domManip:x,detach:function(e){return k(this,e,!0)},remove:function(e){return k(this,e)},text:function(e){return ke(this,function(e){return void 0===e?oe.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.appendChild(e)}})},prepend:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(oe.cleanData(c(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return oe.clone(this,e,t)})},html:function(e){return ke(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Be.test(e)&&!Pe[(Oe.exec(e)||["",""])[1].toLowerCase()]){e=oe.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(oe.cleanData(c(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return x(this,arguments,function(t){var n=this.parentNode;oe.inArray(this,e)<0&&(oe.cleanData(c(this)),n&&n.replaceChild(t,this))},e)}}),oe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){oe.fn[e]=function(e){for(var n,r=[],i=oe(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),oe(i[a])[t](n),J.apply(r,n.get());return this.pushStack(r)}});var We,Ye={HTML:"block",BODY:"block"},Ke=/^margin/,Ge=new RegExp("^("+Te+")(?!px)[a-z%]+$","i"),Ze=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Xe=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i},Je=G.documentElement;!function(){function t(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Je.appendChild(a);var t=e.getComputedStyle(s);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,s.style.marginRight="50%",i="4px"===t.marginRight,Je.removeChild(a)}var n,r,i,o,a=G.createElement("div"),s=G.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",re.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),oe.extend(re,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==r&&t(),r},pixelMarginRight:function(){return null==r&&t(),i},reliableMarginLeft:function(){return null==r&&t(),o},reliableMarginRight:function(){var t,n=s.appendChild(G.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",Je.appendChild(a),t=!parseFloat(e.getComputedStyle(n).marginRight),Je.removeChild(a),s.removeChild(n),t}}))}();var Qe=/^(none|table(?!-c[ea]).+)/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"},nt=["Webkit","O","Moz","ms"],rt=G.createElement("div").style;oe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,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(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=oe.camelCase(t),u=e.style;return t=oe.cssProps[s]||(oe.cssProps[s]=A(s)||s),a=oe.cssHooks[t]||oe.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t]:(o=typeof n,"string"===o&&(i=De.exec(n))&&i[1]&&(n=l(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(oe.cssNumber[s]?"":"px")),re.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,a,s=oe.camelCase(t);return t=oe.cssProps[s]||(oe.cssProps[s]=A(s)||s),a=oe.cssHooks[t]||oe.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=$(e,t,r)),"normal"===i&&t in tt&&(i=tt[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),oe.each(["height","width"],function(e,t){oe.cssHooks[t]={get:function(e,n,r){if(n)return Qe.test(oe.css(e,"display"))&&0===e.offsetWidth?Xe(e,et,function(){return N(e,t,r)}):N(e,t,r)},set:function(e,n,r){var i,o=r&&Ze(e),a=r&&D(e,t,r,"border-box"===oe.css(e,"boxSizing",!1,o),o);return a&&(i=De.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=oe.css(e,t)),T(e,n,a)}}}),oe.cssHooks.marginLeft=S(re.reliableMarginLeft,function(e,t){if(t)return(parseFloat($(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),oe.cssHooks.marginRight=S(re.reliableMarginRight,function(e,t){if(t)return Xe(e,{display:"inline-block"},$,[e,"marginRight"])}),oe.each({margin:"",padding:"",border:"Width"},function(e,t){oe.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Ne[r]+t]=o[r]||o[r-2]||o[0];return i}},Ke.test(e)||(oe.cssHooks[e+t].set=T)}),oe.fn.extend({css:function(e,t){return ke(this,function(e,t,n){var r,i,o={},a=0;if(oe.isArray(t)){for(r=Ze(e),i=t.length;a<i;a++)o[t[a]]=oe.css(e,t[a],!1,r);return o}return void 0!==n?oe.style(e,t,n):oe.css(e,t)},e,t,arguments.length>1)},show:function(){return F(this,!0)},hide:function(){return F(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Fe(this)?oe(this).show():oe(this).hide()})}}),oe.Tween=M,M.prototype={constructor:M,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||oe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(oe.cssNumber[n]?"":"px")},cur:function(){var e=M.propHooks[this.prop];return e&&e.get?e.get(this):M.propHooks._default.get(this)},run:function(e){var t,n=M.propHooks[this.prop];return this.options.duration?this.pos=t=oe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=oe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){oe.fx.step[e.prop]?oe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[oe.cssProps[e.prop]]&&!oe.cssHooks[e.prop]?e.elem[e.prop]=e.now:oe.style(e.elem,e.prop,e.now+e.unit)}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},oe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},oe.fx=M.prototype.init,oe.fx.step={};var it,ot,at=/^(?:toggle|show|hide)$/,st=/queueHooks$/;oe.Animation=oe.extend(I,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return l(n.elem,e,De.exec(t),n),n}]},tweener:function(e,t){oe.isFunction(e)?(t=e,e=["*"]):e=e.match(we);for(var n,r=0,i=e.length;r<i;r++)n=e[r],I.tweeners[n]=I.tweeners[n]||[],I.tweeners[n].unshift(t)},prefilters:[L],prefilter:function(e,t){t?I.prefilters.unshift(e):I.prefilters.push(e)}}),oe.speed=function(e,t,n){var r=e&&"object"==typeof e?oe.extend({},e):{complete:n||!n&&t||oe.isFunction(e)&&e,duration:e,easing:n&&t||t&&!oe.isFunction(t)&&t};return r.duration=oe.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in oe.fx.speeds?oe.fx.speeds[r.duration]:oe.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){oe.isFunction(r.old)&&r.old.call(this),r.queue&&oe.dequeue(this,r.queue)},r},oe.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Fe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=oe.isEmptyObject(e),o=oe.speed(t,n,r),a=function(){var t=I(this,oe.extend({},e),o);(i||Ee.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=oe.timers,a=Ee.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&st.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||oe.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Ee.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=oe.timers,a=r?r.length:0;for(n.finish=!0,oe.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),oe.each(["toggle","show","hide"],function(e,t){var n=oe.fn[t];oe.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(j(t,!0),e,r,i)}}),oe.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){oe.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),oe.timers=[],oe.fx.tick=function(){var e,t=0,n=oe.timers;for(it=oe.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||oe.fx.stop(),it=void 0},oe.fx.timer=function(e){oe.timers.push(e),e()?oe.fx.start():oe.timers.pop()},oe.fx.interval=13,oe.fx.start=function(){ot||(ot=e.setInterval(oe.fx.tick,oe.fx.interval))},oe.fx.stop=function(){e.clearInterval(ot),ot=null},oe.fx.speeds={slow:600,fast:200,_default:400},oe.fn.delay=function(t,n){return t=oe.fx?oe.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=G.createElement("input"),t=G.createElement("select"),n=t.appendChild(G.createElement("option"));e.type="checkbox",re.checkOn=""!==e.value,re.optSelected=n.selected,t.disabled=!0,re.optDisabled=!n.disabled,e=G.createElement("input"),e.value="t",e.type="radio",re.radioValue="t"===e.value}();var ut,lt=oe.expr.attrHandle;oe.fn.extend({attr:function(e,t){return ke(this,oe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){oe.removeAttr(this,e)})}}),oe.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?oe.prop(e,t,n):(1===o&&oe.isXMLDoc(e)||(t=t.toLowerCase(),i=oe.attrHooks[t]||(oe.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void oe.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=oe.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!re.radioValue&&"radio"===t&&oe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(we);if(o&&1===e.nodeType)for(;n=o[i++];)r=oe.propFix[n]||n,oe.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),ut={set:function(e,t,n){return t===!1?oe.removeAttr(e,n):e.setAttribute(n,n),n}},oe.each(oe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=lt[t]||oe.find.attr;lt[t]=function(e,t,r){var i,o;return r||(o=lt[t],lt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,lt[t]=o),i}});var ct=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;oe.fn.extend({prop:function(e,t){return ke(this,oe.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[oe.propFix[e]||e]})}}),oe.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&oe.isXMLDoc(e)||(t=oe.propFix[t]||t,i=oe.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=oe.find.attr(e,"tabindex");return t?parseInt(t,10):ct.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),re.optSelected||(oe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),oe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){oe.propFix[this.toLowerCase()]=this});var ht=/[\t\r\n\f]/g;oe.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(oe.isFunction(e))return this.each(function(t){oe(this).addClass(e.call(this,t,q(this)))});if("string"==typeof e&&e)for(t=e.match(we)||[];n=this[u++];)if(i=q(n),r=1===n.nodeType&&(" "+i+" ").replace(ht," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=oe.trim(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(oe.isFunction(e))return this.each(function(t){oe(this).removeClass(e.call(this,t,q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(we)||[];n=this[u++];)if(i=q(n),r=1===n.nodeType&&(" "+i+" ").replace(ht," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=oe.trim(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):oe.isFunction(e)?this.each(function(n){oe(this).toggleClass(e.call(this,n,q(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=oe(this),o=e.match(we)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=q(this),t&&Ee.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Ee.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+q(n)+" ").replace(ht," ").indexOf(t)>-1)return!0;return!1}});var dt=/\r/g,pt=/[\x20\t\r\n\f]+/g;oe.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=oe.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,oe(this).val()):e,null==i?i="":"number"==typeof i?i+="":oe.isArray(i)&&(i=oe.map(i,function(e){return null==e?"":e+""})),t=oe.valHooks[this.type]||oe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=oe.valHooks[i.type]||oe.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(dt,""):null==n?"":n)}}}),oe.extend({valHooks:{option:{get:function(e){var t=oe.find.attr(e,"value");return null!=t?t:oe.trim(oe.text(e)).replace(pt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(n=r[u],(n.selected||u===i)&&(re.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!oe.nodeName(n.parentNode,"optgroup"))){if(t=oe(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=oe.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=oe.inArray(oe.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),oe.each(["radio","checkbox"],function(){oe.valHooks[this]={set:function(e,t){if(oe.isArray(t))return e.checked=oe.inArray(oe(e).val(),t)>-1}},re.checkOn||(oe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var mt=/^(?:focusinfocus|focusoutblur)$/;oe.extend(oe.event,{trigger:function(t,n,r,i){var o,a,s,u,l,c,f,h=[r||G],d=ne.call(t,"type")?t.type:t,p=ne.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||G,3!==r.nodeType&&8!==r.nodeType&&!mt.test(d+oe.event.triggered)&&(d.indexOf(".")>-1&&(p=d.split("."),d=p.shift(),p.sort()),l=d.indexOf(":")<0&&"on"+d,t=t[oe.expando]?t:new oe.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:oe.makeArray(n,[t]),f=oe.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!oe.isWindow(r)){for(u=f.delegateType||d,mt.test(u+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||G)&&h.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||d,c=(Ee.get(a,"events")||{})[t.type]&&Ee.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&Ce(a)&&(t.result=c.apply(a,n),t.result===!1&&t.preventDefault());return t.type=d,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!Ce(r)||l&&oe.isFunction(r[d])&&!oe.isWindow(r)&&(s=r[l],s&&(r[l]=null),oe.event.triggered=d,r[d](),oe.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=oe.extend(new oe.Event,n,{type:e,isSimulated:!0});oe.event.trigger(r,null,t)}}),oe.fn.extend({trigger:function(e,t){return this.each(function(){oe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return oe.event.trigger(e,t,n,!0)}}),oe.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(e,t){oe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),oe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),re.focusin="onfocusin"in e,re.focusin||oe.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){oe.event.simulate(t,e.target,oe.event.fix(e))};oe.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Ee.access(r,t);i||r.addEventListener(e,n,!0),Ee.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Ee.access(r,t)-1;i?Ee.access(r,t,i):(r.removeEventListener(e,n,!0),Ee.remove(r,t))}}});var gt=e.location,vt=oe.now(),yt=/\?/;oe.parseJSON=function(e){return JSON.parse(e+"")},oe.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(r){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||oe.error("Invalid XML: "+t),n};var bt=/#.*$/,_t=/([?&])_=[^&]*/,wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,xt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kt=/^(?:GET|HEAD)$/,Ct=/^\/\//,Et={},$t={},St="*/".concat("*"),At=G.createElement("a");At.href=gt.href,oe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gt.href,type:"GET",isLocal:xt.test(gt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":St,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":oe.parseJSON,"text xml":oe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?H(H(e,oe.ajaxSettings),t):H(oe.ajaxSettings,e)},ajaxPrefilter:z(Et),ajaxTransport:z($t),ajax:function(t,n){function r(t,n,r,s){var l,f,y,b,w,k=n;2!==_&&(_=2,u&&e.clearTimeout(u),i=void 0,a=s||"",x.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(b=U(h,x,r)),b=V(h,b,x,l),l?(h.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(oe.lastModified[o]=w),w=x.getResponseHeader("etag"),w&&(oe.etag[o]=w)),204===t||"HEAD"===h.type?k="nocontent":304===t?k="notmodified":(k=b.state,f=b.data,y=b.error,l=!y)):(y=k,!t&&k||(k="error",t<0&&(t=0))),x.status=t,x.statusText=(n||k)+"",l?m.resolveWith(d,[f,k,x]):m.rejectWith(d,[x,k,y]),x.statusCode(v),v=void 0,c&&p.trigger(l?"ajaxSuccess":"ajaxError",[x,h,l?f:y]),g.fireWith(d,[x,k]),c&&(p.trigger("ajaxComplete",[x,h]),--oe.active||oe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,h=oe.ajaxSetup({},n),d=h.context||h,p=h.context&&(d.nodeType||d.jquery)?oe(d):oe.event,m=oe.Deferred(),g=oe.Callbacks("once memory"),v=h.statusCode||{},y={},b={},_=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===_){if(!s)for(s={};t=wt.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===_?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return _||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return _||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(_<2)for(t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return i&&i.abort(t),r(0,t),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,h.url=((t||h.url||gt.href)+"").replace(bt,"").replace(Ct,gt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=oe.trim(h.dataType||"*").toLowerCase().match(we)||[""],null==h.crossDomain){l=G.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=At.protocol+"//"+At.host!=l.protocol+"//"+l.host}catch(k){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=oe.param(h.data,h.traditional)),B(Et,h,n,x),2===_)return x;c=oe.event&&h.global,c&&0===oe.active++&&oe.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!kt.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(yt.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=_t.test(o)?o.replace(_t,"$1_="+vt++):o+(yt.test(o)?"&":"?")+"_="+vt++)),h.ifModified&&(oe.lastModified[o]&&x.setRequestHeader("If-Modified-Since",oe.lastModified[o]),oe.etag[o]&&x.setRequestHeader("If-None-Match",oe.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+St+"; q=0.01":""):h.accepts["*"]);for(f in h.headers)x.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(h.beforeSend.call(d,x,h)===!1||2===_))return x.abort();w="abort";for(f in{success:1,error:1,complete:1})x[f](h[f]);if(i=B($t,h,n,x)){if(x.readyState=1,c&&p.trigger("ajaxSend",[x,h]),2===_)return x;h.async&&h.timeout>0&&(u=e.setTimeout(function(){x.abort("timeout")},h.timeout));try{_=1,i.send(y,r)}catch(k){if(!(_<2))throw k;r(-1,k)}}else r(-1,"No Transport");return x},getJSON:function(e,t,n){return oe.get(e,t,n,"json")},getScript:function(e,t){return oe.get(e,void 0,t,"script")}}),oe.each(["get","post"],function(e,t){oe[t]=function(e,n,r,i){return oe.isFunction(n)&&(i=i||r,r=n,n=void 0),oe.ajax(oe.extend({url:e,type:t,dataType:i,data:n,success:r},oe.isPlainObject(e)&&e))}}),oe._evalUrl=function(e){return oe.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},oe.fn.extend({wrapAll:function(e){var t;return oe.isFunction(e)?this.each(function(t){oe(this).wrapAll(e.call(this,t))}):(this[0]&&(t=oe(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return oe.isFunction(e)?this.each(function(t){oe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=oe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=oe.isFunction(e);return this.each(function(n){oe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){oe.nodeName(this,"body")||oe(this).replaceWith(this.childNodes)}).end()}}),oe.expr.filters.hidden=function(e){return!oe.expr.filters.visible(e)},oe.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Tt=/%20/g,Dt=/\[\]$/,Nt=/\r?\n/g,Ft=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;oe.param=function(e,t){var n,r=[],i=function(e,t){t=oe.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=oe.ajaxSettings&&oe.ajaxSettings.traditional),oe.isArray(e)||e.jquery&&!oe.isPlainObject(e))oe.each(e,function(){i(this.name,this.value)});else for(n in e)W(n,e[n],t,i);return r.join("&").replace(Tt,"+")},oe.fn.extend({serialize:function(){return oe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=oe.prop(this,"elements");return e?oe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!oe(this).is(":disabled")&&Mt.test(this.nodeName)&&!Ft.test(e)&&(this.checked||!Me.test(e))}).map(function(e,t){var n=oe(this).val();return null==n?null:oe.isArray(n)?oe.map(n,function(e){
|
||
return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}}),oe.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Ot={0:200,1223:204},jt=oe.ajaxSettings.xhr();re.cors=!!jt&&"withCredentials"in jt,re.ajax=jt=!!jt,oe.ajaxTransport(function(t){var n,r;if(re.cors||jt&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ot[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}}),oe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return oe.globalEval(e),e}}}),oe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),oe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=oe("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),G.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Pt=[],Lt=/(=)\?(?=&|$)|\?\?/;oe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pt.pop()||oe.expando+"_"+vt++;return this[e]=!0,e}}),oe.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(Lt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=oe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Lt,"$1"+i):t.jsonp!==!1&&(t.url+=(yt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||oe.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?oe(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Pt.push(i)),a&&oe.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),oe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||G;var r=pe.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=h([e],t,i),i&&i.length&&oe(i).remove(),oe.merge([],r.childNodes))};var Rt=oe.fn.load;oe.fn.load=function(e,t,n){if("string"!=typeof e&&Rt)return Rt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=oe.trim(e.slice(s)),e=e.slice(0,s)),oe.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&oe.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?oe("<div>").append(oe.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},oe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){oe.fn[t]=function(e){return this.on(t,e)}}),oe.expr.filters.animated=function(e){return oe.grep(oe.timers,function(t){return e===t.elem}).length},oe.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=oe.css(e,"position"),f=oe(e),h={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=oe.css(e,"top"),u=oe.css(e,"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),oe.isFunction(t)&&(t=t.call(e,n,oe.extend({},s))),null!=t.top&&(h.top=t.top-s.top+a),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):f.css(h)}},oe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){oe.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return t=o.documentElement,oe.contains(t,r)?(i=r.getBoundingClientRect(),n=Y(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===oe.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),oe.nodeName(e[0],"html")||(r=e.offset()),r.top+=oe.css(e[0],"borderTopWidth",!0),r.left+=oe.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-oe.css(n,"marginTop",!0),left:t.left-r.left-oe.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===oe.css(e,"position");)e=e.offsetParent;return e||Je})}}),oe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;oe.fn[e]=function(r){return ke(this,function(e,r,i){var o=Y(e);return void 0===i?o?o[t]:e[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),oe.each(["top","left"],function(e,t){oe.cssHooks[t]=S(re.pixelPosition,function(e,n){if(n)return n=$(e,t),Ge.test(n)?oe(e).position()[t]+"px":n})}),oe.each({Height:"height",Width:"width"},function(e,t){oe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){oe.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return ke(this,function(t,n,r){var i;return oe.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?oe.css(t,n,a):oe.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),oe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),oe.fn.andSelf=oe.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return oe});var It=e.jQuery,qt=e.$;return oe.noConflict=function(t){return e.$===oe&&(e.$=qt),t&&e.jQuery===oe&&(e.jQuery=It),oe},t||(e.jQuery=e.$=oe),oe}),function(){function e(e,t){return e.set(t[0],t[1]),e}function t(e,t){return e.add(t),e}function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function i(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function o(e,t){for(var n=null==e?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function u(e,t){var n=null==e?0:e.length;return!!n&&b(e,t,0)>-1}function l(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function c(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function f(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function h(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function d(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function p(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function m(e){return e.split("")}function g(e){return e.match(Rt)||[]}function v(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function y(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function b(e,t,n){return t===t?W(e,t,n):y(e,w,n)}function _(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function w(e){return e!==e}function x(e,t){var n=null==e?0:e.length;return n?S(e,t)/n:Fe}function k(e){return function(t){return null==t?Q:t[e]}}function C(e){return function(t){return null==e?Q:e[t]}}function E(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function $(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function S(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==Q&&(n=n===Q?o:n+o)}return n}function A(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function T(e,t){return c(t,function(t){return[t,e[t]]})}function D(e){return function(t){return e(t)}}function N(e,t){return c(t,function(t){return e[t]})}function F(e,t){return e.has(t)}function M(e,t){for(var n=-1,r=e.length;++n<r&&b(t,e[n],0)>-1;);return n}function O(e,t){for(var n=e.length;n--&&b(t,e[n],0)>-1;);return n}function j(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function P(e){return"\\"+Xn[e]}function L(e,t){return null==e?Q:e[t]}function R(e){return Bn.test(e)}function I(e){return Hn.test(e)}function q(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function z(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function B(e,t){return function(n){return e(t(n))}}function H(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==ae||(e[n]=ae,o[i++]=n)}return o}function U(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function W(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Y(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function K(e){return R(e)?Z(e):pr(e)}function G(e){return R(e)?X(e):m(e)}function Z(e){for(var t=qn.lastIndex=0;qn.test(e);)++t;return t}function X(e){return e.match(qn)||[]}function J(e){return e.match(zn)||[]}var Q,ee="4.17.4",te=200,ne="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",re="Expected a function",ie="__lodash_hash_undefined__",oe=500,ae="__lodash_placeholder__",se=1,ue=2,le=4,ce=1,fe=2,he=1,de=2,pe=4,me=8,ge=16,ve=32,ye=64,be=128,_e=256,we=512,xe=30,ke="...",Ce=800,Ee=16,$e=1,Se=2,Ae=3,Te=1/0,De=9007199254740991,Ne=1.7976931348623157e308,Fe=NaN,Me=4294967295,Oe=Me-1,je=Me>>>1,Pe=[["ary",be],["bind",he],["bindKey",de],["curry",me],["curryRight",ge],["flip",we],["partial",ve],["partialRight",ye],["rearg",_e]],Le="[object Arguments]",Re="[object Array]",Ie="[object AsyncFunction]",qe="[object Boolean]",ze="[object Date]",Be="[object DOMException]",He="[object Error]",Ue="[object Function]",Ve="[object GeneratorFunction]",We="[object Map]",Ye="[object Number]",Ke="[object Null]",Ge="[object Object]",Ze="[object Promise]",Xe="[object Proxy]",Je="[object RegExp]",Qe="[object Set]",et="[object String]",tt="[object Symbol]",nt="[object Undefined]",rt="[object WeakMap]",it="[object WeakSet]",ot="[object ArrayBuffer]",at="[object DataView]",st="[object Float32Array]",ut="[object Float64Array]",lt="[object Int8Array]",ct="[object Int16Array]",ft="[object Int32Array]",ht="[object Uint8Array]",dt="[object Uint8ClampedArray]",pt="[object Uint16Array]",mt="[object Uint32Array]",gt=/\b__p \+= '';/g,vt=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,_t=/[&<>"']/g,wt=RegExp(bt.source),xt=RegExp(_t.source),kt=/<%-([\s\S]+?)%>/g,Ct=/<%([\s\S]+?)%>/g,Et=/<%=([\s\S]+?)%>/g,$t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,St=/^\w*$/,At=/^\./,Tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dt=/[\\^$.*+?()[\]{}|]/g,Nt=RegExp(Dt.source),Ft=/^\s+|\s+$/g,Mt=/^\s+/,Ot=/\s+$/,jt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pt=/\{\n\/\* \[wrapped with (.+)\] \*/,Lt=/,? & /,Rt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,It=/\\(\\)?/g,qt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zt=/\w*$/,Bt=/^[-+]0x[0-9a-f]+$/i,Ht=/^0b[01]+$/i,Ut=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Wt=/^(?:0|[1-9]\d*)$/,Yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kt=/($^)/,Gt=/['\n\r\u2028\u2029\\]/g,Zt="\\ud800-\\udfff",Xt="\\u0300-\\u036f",Jt="\\ufe20-\\ufe2f",Qt="\\u20d0-\\u20ff",en=Xt+Jt+Qt,tn="\\u2700-\\u27bf",nn="a-z\\xdf-\\xf6\\xf8-\\xff",rn="\\xac\\xb1\\xd7\\xf7",on="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",an="\\u2000-\\u206f",sn=" \\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",un="A-Z\\xc0-\\xd6\\xd8-\\xde",ln="\\ufe0e\\ufe0f",cn=rn+on+an+sn,fn="['’]",hn="["+Zt+"]",dn="["+cn+"]",pn="["+en+"]",mn="\\d+",gn="["+tn+"]",vn="["+nn+"]",yn="[^"+Zt+cn+mn+tn+nn+un+"]",bn="\\ud83c[\\udffb-\\udfff]",_n="(?:"+pn+"|"+bn+")",wn="[^"+Zt+"]",xn="(?:\\ud83c[\\udde6-\\uddff]){2}",kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Cn="["+un+"]",En="\\u200d",$n="(?:"+vn+"|"+yn+")",Sn="(?:"+Cn+"|"+yn+")",An="(?:"+fn+"(?:d|ll|m|re|s|t|ve))?",Tn="(?:"+fn+"(?:D|LL|M|RE|S|T|VE))?",Dn=_n+"?",Nn="["+ln+"]?",Fn="(?:"+En+"(?:"+[wn,xn,kn].join("|")+")"+Nn+Dn+")*",Mn="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",On="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",jn=Nn+Dn+Fn,Pn="(?:"+[gn,xn,kn].join("|")+")"+jn,Ln="(?:"+[wn+pn+"?",pn,xn,kn,hn].join("|")+")",Rn=RegExp(fn,"g"),In=RegExp(pn,"g"),qn=RegExp(bn+"(?="+bn+")|"+Ln+jn,"g"),zn=RegExp([Cn+"?"+vn+"+"+An+"(?="+[dn,Cn,"$"].join("|")+")",Sn+"+"+Tn+"(?="+[dn,Cn+$n,"$"].join("|")+")",Cn+"?"+$n+"+"+An,Cn+"+"+Tn,On,Mn,mn,Pn].join("|"),"g"),Bn=RegExp("["+En+Zt+en+ln+"]"),Hn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Un=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Vn=-1,Wn={};Wn[st]=Wn[ut]=Wn[lt]=Wn[ct]=Wn[ft]=Wn[ht]=Wn[dt]=Wn[pt]=Wn[mt]=!0,Wn[Le]=Wn[Re]=Wn[ot]=Wn[qe]=Wn[at]=Wn[ze]=Wn[He]=Wn[Ue]=Wn[We]=Wn[Ye]=Wn[Ge]=Wn[Je]=Wn[Qe]=Wn[et]=Wn[rt]=!1;var Yn={};Yn[Le]=Yn[Re]=Yn[ot]=Yn[at]=Yn[qe]=Yn[ze]=Yn[st]=Yn[ut]=Yn[lt]=Yn[ct]=Yn[ft]=Yn[We]=Yn[Ye]=Yn[Ge]=Yn[Je]=Yn[Qe]=Yn[et]=Yn[tt]=Yn[ht]=Yn[dt]=Yn[pt]=Yn[mt]=!0,Yn[He]=Yn[Ue]=Yn[rt]=!1;var Kn={"À":"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","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Gn={"&":"&","<":"<",">":">",'"':""","'":"'"},Zn={"&":"&","<":"<",">":">",""":'"',"'":"'"},Xn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jn=parseFloat,Qn=parseInt,er="object"==typeof global&&global&&global.Object===Object&&global,tr="object"==typeof self&&self&&self.Object===Object&&self,nr=er||tr||Function("return this")(),rr="object"==typeof exports&&exports&&!exports.nodeType&&exports,ir=rr&&"object"==typeof module&&module&&!module.nodeType&&module,or=ir&&ir.exports===rr,ar=or&&er.process,sr=function(){try{return ar&&ar.binding&&ar.binding("util")}catch(e){}}(),ur=sr&&sr.isArrayBuffer,lr=sr&&sr.isDate,cr=sr&&sr.isMap,fr=sr&&sr.isRegExp,hr=sr&&sr.isSet,dr=sr&&sr.isTypedArray,pr=k("length"),mr=C(Kn),gr=C(Gn),vr=C(Zn),yr=function _r(m){function C(e){if(lu(e)&&!wh(e)&&!(e instanceof X)){if(e instanceof Z)return e;if(_c.call(e,"__wrapped__"))return aa(e)}return new Z(e)}function W(){}function Z(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=Q}function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Me,this.__views__=[]}function Rt(){var e=new X(this.__wrapped__);return e.__actions__=qi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qi(this.__views__),e}function Zt(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Xt(){var e=this.__wrapped__.value(),t=this.__dir__,n=wh(e),r=t<0,i=n?e.length:0,o=Do(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,d=Zc(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return wi(e,this.__actions__);var p=[];e:for(;u--&&h<d;){l+=t;for(var m=-1,g=e[l];++m<f;){var v=c[m],y=v.iteratee,b=v.type,_=y(g);if(b==Se)g=_;else if(!_){if(b==$e)continue e;break e}}p[h++]=g}return p}function Jt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qt(){this.__data__=sf?sf(null):{},this.size=0}function en(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function tn(e){var t=this.__data__;if(sf){var n=t[e];return n===ie?Q:n}return _c.call(t,e)?t[e]:Q}function nn(e){var t=this.__data__;return sf?t[e]!==Q:_c.call(t,e)}function rn(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sf&&t===Q?ie:t,this}function on(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function an(){this.__data__=[],this.size=0}function sn(e){var t=this.__data__,n=Fn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Oc.call(t,n,1),--this.size,!0}function un(e){var t=this.__data__,n=Fn(t,e);return n<0?Q:t[n][1]}function ln(e){return Fn(this.__data__,e)>-1}function cn(e,t){var n=this.__data__,r=Fn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function hn(){this.size=0,this.__data__={hash:new Jt,map:new(nf||on),string:new Jt}}function dn(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t}function pn(e){return $o(this,e).get(e)}function mn(e){return $o(this,e).has(e)}function gn(e,t){var n=$o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new fn;++t<n;)this.add(e[t])}function yn(e){return this.__data__.set(e,ie),this}function bn(e){return this.__data__.has(e)}function _n(e){var t=this.__data__=new on(e);this.size=t.size}function wn(){this.__data__=new on,this.size=0}function xn(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function kn(e){return this.__data__.get(e)}function Cn(e){return this.__data__.has(e)}function En(e,t){var n=this.__data__;if(n instanceof on){var r=n.__data__;if(!nf||r.length<te-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new fn(r)}return n.set(e,t),this.size=n.size,this}function $n(e,t){var n=wh(e),r=!n&&_h(e),i=!n&&!r&&kh(e),o=!n&&!r&&!i&&Ah(e),a=n||r||i||o,s=a?A(e.length,dc):[],u=s.length;for(var l in e)!t&&!_c.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ro(l,u))||s.push(l);return s}function Sn(e){var t=e.length;return t?e[ni(0,t-1)]:Q}function An(e,t){return na(qi(e),qn(t,0,e.length))}function Tn(e){return na(qi(e))}function Dn(e,t,n){(n===Q||Gs(e[t],n))&&(n!==Q||t in e)||Pn(e,t,n)}function Nn(e,t,n){var r=e[t];_c.call(e,t)&&Gs(r,n)&&(n!==Q||t in e)||Pn(e,t,n)}function Fn(e,t){for(var n=e.length;n--;)if(Gs(e[n][0],t))return n;return-1}function Mn(e,t,n,r){return bf(e,function(e,i,o){t(r,e,n(e),o)}),r}function On(e,t){return e&&zi(t,Uu(t),e)}function jn(e,t){return e&&zi(t,Vu(t),e)}function Pn(e,t,n){"__proto__"==t&&Rc?Rc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ln(e,t){for(var n=-1,r=t.length,i=ac(r),o=null==e;++n<r;)i[n]=o?Q:zu(e,t[n]);return i}function qn(e,t,n){return e===e&&(n!==Q&&(e=e<=n?e:n),t!==Q&&(e=e>=t?e:t)),e}function zn(e,t,n,r,o,a){var s,u=t&se,l=t&ue,c=t≤if(n&&(s=o?n(e,r,o,a):n(e)),s!==Q)return s;if(!uu(e))return e;var f=wh(e);if(f){if(s=Mo(e),!u)return qi(e,s)}else{var h=Nf(e),d=h==Ue||h==Ve;if(kh(e))return Ai(e,u);if(h==Ge||h==Le||d&&!o){if(s=l||d?{}:Oo(e),!u)return l?Hi(e,jn(s,e)):Bi(e,On(s,e))}else{if(!Yn[h])return o?e:{};s=jo(e,h,zn,u)}}a||(a=new _n);var p=a.get(e);if(p)return p;a.set(e,s);var m=c?l?xo:wo:l?Vu:Uu,g=f?Q:m(e);return i(g||e,function(r,i){g&&(i=r,r=e[i]),Nn(s,i,zn(r,t,n,i,e,a))}),s}function Bn(e){var t=Uu(e);return function(n){return Hn(n,e,t)}}function Hn(e,t,n){var r=n.length;if(null==e)return!r;for(e=fc(e);r--;){var i=n[r],o=t[i],a=e[i];if(a===Q&&!(i in e)||!o(a))return!1}return!0}function Kn(e,t,n){if("function"!=typeof e)throw new pc(re);return Of(function(){e.apply(Q,n)},t)}function Gn(e,t,n,r){var i=-1,o=u,a=!0,s=e.length,f=[],h=t.length;if(!s)return f;n&&(t=c(t,D(n))),r?(o=l,a=!1):t.length>=te&&(o=F,a=!1,t=new vn(t));e:for(;++i<s;){var d=e[i],p=null==n?d:n(d);if(d=r||0!==d?d:0,a&&p===p){for(var m=h;m--;)if(t[m]===p)continue e;f.push(d)}else o(t,p,r)||f.push(d)}return f}function Zn(e,t){var n=!0;return bf(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Xn(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(s===Q?a===a&&!_u(a):n(a,s)))var s=a,u=o}return u}function er(e,t,n,r){var i=e.length;for(n=$u(n),n<0&&(n=-n>i?0:i+n),r=r===Q||r>i?i:$u(r),r<0&&(r+=i),r=n>r?0:Su(r);n<r;)e[n++]=t;return e}function tr(e,t){var n=[];return bf(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function rr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Lo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?rr(s,t-1,n,r,i):f(i,s):r||(i[i.length]=s)}return i}function ir(e,t){return e&&wf(e,t,Uu)}function ar(e,t){return e&&xf(e,t,Uu)}function sr(e,t){return s(t,function(t){return ou(e[t])})}function pr(e,t){t=$i(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[ra(t[n++])];return n&&n==r?e:Q}function yr(e,t,n){var r=t(e);return wh(e)?r:f(r,n(e))}function wr(e){return null==e?e===Q?nt:Ke:Lc&&Lc in fc(e)?To(e):Zo(e)}function xr(e,t){return e>t}function kr(e,t){return null!=e&&_c.call(e,t)}function Cr(e,t){return null!=e&&t in fc(e)}function Er(e,t,n){return e>=Zc(t,n)&&e<Gc(t,n)}function $r(e,t,n){for(var r=n?l:u,i=e[0].length,o=e.length,a=o,s=ac(o),f=1/0,h=[];a--;){var d=e[a];a&&t&&(d=c(d,D(t))),f=Zc(d.length,f),s[a]=!n&&(t||i>=120&&d.length>=120)?new vn(a&&d):Q}d=e[0];var p=-1,m=s[0];e:for(;++p<i&&h.length<f;){var g=d[p],v=t?t(g):g;if(g=n||0!==g?g:0,!(m?F(m,v):r(h,v,n))){for(a=o;--a;){var y=s[a];if(!(y?F(y,v):r(e[a],v,n)))continue e}m&&m.push(v),h.push(g)}}return h}function Sr(e,t,n,r){return ir(e,function(e,i,o){t(r,n(e),i,o)}),r}function Ar(e,t,r){t=$i(t,e),e=Jo(e,t);var i=null==e?e:e[ra(Ea(t))];return null==i?Q:n(i,e,r)}function Tr(e){return lu(e)&&wr(e)==Le}function Dr(e){return lu(e)&&wr(e)==ot}function Nr(e){return lu(e)&&wr(e)==ze}function Fr(e,t,n,r,i){return e===t||(null==e||null==t||!lu(e)&&!lu(t)?e!==e&&t!==t:Mr(e,t,n,r,Fr,i))}function Mr(e,t,n,r,i,o){var a=wh(e),s=wh(t),u=a?Re:Nf(e),l=s?Re:Nf(t);u=u==Le?Ge:u,l=l==Le?Ge:l;var c=u==Ge,f=l==Ge,h=u==l;if(h&&kh(e)){if(!kh(t))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new _n),a||Ah(e)?vo(e,t,n,r,i,o):yo(e,t,u,n,r,i,o);if(!(n&ce)){var d=c&&_c.call(e,"__wrapped__"),p=f&&_c.call(t,"__wrapped__");if(d||p){var m=d?e.value():e,g=p?t.value():t;return o||(o=new _n),i(m,g,n,r,o)}}return!!h&&(o||(o=new _n),bo(e,t,n,r,i,o))}function Or(e){return lu(e)&&Nf(e)==We}function jr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=fc(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===Q&&!(u in e))return!1}else{var f=new _n;if(r)var h=r(l,c,u,e,t,f);if(!(h===Q?Fr(c,l,ce|fe,r,f):h))return!1}}return!0}function Pr(e){if(!uu(e)||Ho(e))return!1;var t=ou(e)?$c:Ut;return t.test(ia(e))}function Lr(e){return lu(e)&&wr(e)==Je}function Rr(e){return lu(e)&&Nf(e)==Qe}function Ir(e){return lu(e)&&su(e.length)&&!!Wn[wr(e)]}function qr(e){return"function"==typeof e?e:null==e?Ol:"object"==typeof e?wh(e)?Wr(e[0],e[1]):Vr(e):Bl(e)}function zr(e){if(!Uo(e))return Kc(e);var t=[];for(var n in fc(e))_c.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Br(e){if(!uu(e))return Go(e);var t=Uo(e),n=[];for(var r in e)("constructor"!=r||!t&&_c.call(e,r))&&n.push(r);return n}function Hr(e,t){return e<t}function Ur(e,t){var n=-1,r=Zs(e)?ac(e.length):[];return bf(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function Vr(e){var t=So(e);return 1==t.length&&t[0][2]?Wo(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Wr(e,t){return qo(e)&&Vo(t)?Wo(ra(e),t):function(n){var r=zu(n,e);return r===Q&&r===t?Hu(n,e):Fr(t,r,ce|fe)}}function Yr(e,t,n,r,i){e!==t&&wf(t,function(o,a){if(uu(o))i||(i=new _n),Kr(e,t,a,n,Yr,r,i);else{var s=r?r(e[a],o,a+"",e,t,i):Q;s===Q&&(s=o),Dn(e,a,s)}},Vu)}function Kr(e,t,n,r,i,o,a){var s=e[n],u=t[n],l=a.get(u);if(l)return void Dn(e,n,l);var c=o?o(s,u,n+"",e,t,a):Q,f=c===Q;if(f){var h=wh(u),d=!h&&kh(u),p=!h&&!d&&Ah(u);c=u,h||d||p?wh(s)?c=s:Xs(s)?c=qi(s):d?(f=!1,c=Ai(u,!0)):p?(f=!1,c=ji(u,!0)):c=[]:vu(u)||_h(u)?(c=s,_h(s)?c=Tu(s):(!uu(s)||r&&ou(s))&&(c=Oo(u))):f=!1}f&&(a.set(u,c),i(c,u,r,o,a),a["delete"](u)),Dn(e,n,c)}function Gr(e,t){var n=e.length;if(n)return t+=t<0?n:0,Ro(t,n)?e[t]:Q}function Zr(e,t,n){var r=-1;t=c(t.length?t:[Ol],D(Eo()));var i=Ur(e,function(e,n,i){var o=c(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return $(i,function(e,t){return Li(e,t,n)})}function Xr(e,t){return Jr(e,t,function(t,n){return Hu(e,n)})}function Jr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=pr(e,a);n(s,a)&&ui(o,$i(a,e),s)}return o}function Qr(e){return function(t){return pr(t,e)}}function ei(e,t,n,r){var i=r?_:b,o=-1,a=t.length,s=e;for(e===t&&(t=qi(t)),n&&(s=c(e,D(n)));++o<a;)for(var u=0,l=t[o],f=n?n(l):l;(u=i(s,f,u,r))>-1;)s!==e&&Oc.call(s,u,1),Oc.call(e,u,1);return e}function ti(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Ro(i)?Oc.call(e,i,1):yi(e,i)}}return e}function ni(e,t){return e+Hc(Qc()*(t-e+1))}function ri(e,t,n,r){for(var i=-1,o=Gc(Bc((t-e)/(n||1)),0),a=ac(o);o--;)a[r?o:++i]=e,e+=n;return a}function ii(e,t){var n="";if(!e||t<1||t>De)return n;do t%2&&(n+=e),t=Hc(t/2),t&&(e+=e);while(t);return n}function oi(e,t){return jf(Xo(e,t,Ol),e+"")}function ai(e){return Sn(rl(e))}function si(e,t){var n=rl(e);return na(n,qn(t,0,n.length))}function ui(e,t,n,r){if(!uu(e))return e;t=$i(t,e);for(var i=-1,o=t.length,a=o-1,s=e;null!=s&&++i<o;){var u=ra(t[i]),l=n;if(i!=a){var c=s[u];l=r?r(c,u,s):Q,l===Q&&(l=uu(c)?c:Ro(t[i+1])?[]:{})}Nn(s,u,l),s=s[u]}return e}function li(e){return na(rl(e))}function ci(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=ac(i);++r<i;)o[r]=e[r+t];return o}function fi(e,t){var n;return bf(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function hi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=je){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!_u(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return di(e,t,Ol,n)}function di(e,t,n,r){t=n(t);for(var i=0,o=null==e?0:e.length,a=t!==t,s=null===t,u=_u(t),l=t===Q;i<o;){var c=Hc((i+o)/2),f=n(e[c]),h=f!==Q,d=null===f,p=f===f,m=_u(f);if(a)var g=r||p;else g=l?p&&(r||h):s?p&&h&&(r||!d):u?p&&h&&!d&&(r||!m):!d&&!m&&(r?f<=t:f<t);g?i=c+1:o=c}return Zc(o,Oe)}function pi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Gs(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function mi(e){return"number"==typeof e?e:_u(e)?Fe:+e}function gi(e){if("string"==typeof e)return e;if(wh(e))return c(e,gi)+"";if(_u(e))return vf?vf.call(e):"";var t=e+"";return"0"==t&&1/e==-Te?"-0":t}function vi(e,t,n){var r=-1,i=u,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=l;else if(o>=te){var f=t?null:Sf(e);if(f)return U(f);a=!1,i=F,c=new vn}else c=t?[]:s;e:for(;++r<o;){var h=e[r],d=t?t(h):h;if(h=n||0!==h?h:0,a&&d===d){for(var p=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),s.push(h)}else i(c,d,n)||(c!==s&&c.push(d),s.push(h))}return s}function yi(e,t){return t=$i(t,e),e=Jo(e,t),null==e||delete e[ra(Ea(t))]}function bi(e,t,n,r){return ui(e,t,n(pr(e,t)),r)}function _i(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ci(e,r?0:o,r?o+1:i):ci(e,r?o+1:0,r?i:o)}function wi(e,t){var n=e;return n instanceof X&&(n=n.value()),h(t,function(e,t){return t.func.apply(t.thisArg,f([e],t.args))},n)}function xi(e,t,n){var r=e.length;if(r<2)return r?vi(e[0]):[];for(var i=-1,o=ac(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=Gn(o[i]||a,e[s],t,n));return vi(rr(o,1),t,n)}function ki(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:Q;n(a,e[r],s)}return a}function Ci(e){return Xs(e)?e:[]}function Ei(e){return"function"==typeof e?e:Ol}function $i(e,t){return wh(e)?e:qo(e,t)?[e]:Pf(Nu(e))}function Si(e,t,n){var r=e.length;return n=n===Q?r:n,!t&&n>=r?e:ci(e,t,n)}function Ai(e,t){if(t)return e.slice();var n=e.length,r=Dc?Dc(n):new e.constructor(n);return e.copy(r),r}function Ti(e){var t=new e.constructor(e.byteLength);return new Tc(t).set(new Tc(e)),t}function Di(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ni(t,n,r){var i=n?r(z(t),se):z(t);return h(i,e,new t.constructor)}function Fi(e){var t=new e.constructor(e.source,zt.exec(e));return t.lastIndex=e.lastIndex,t}function Mi(e,n,r){var i=n?r(U(e),se):U(e);return h(i,t,new e.constructor)}function Oi(e){return gf?fc(gf.call(e)):{}}function ji(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Pi(e,t){if(e!==t){var n=e!==Q,r=null===e,i=e===e,o=_u(e),a=t!==Q,s=null===t,u=t===t,l=_u(t);if(!s&&!l&&!o&&e>t||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function Li(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=Pi(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}function Ri(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,u=t.length,l=Gc(o-a,0),c=ac(u+l),f=!r;++s<u;)c[s]=t[s];for(;++i<a;)(f||i<o)&&(c[n[i]]=e[i]);for(;l--;)c[s++]=e[i++];return c}function Ii(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,u=-1,l=t.length,c=Gc(o-s,0),f=ac(c+l),h=!r;++i<c;)f[i]=e[i];for(var d=i;++u<l;)f[d+u]=t[u];for(;++a<s;)(h||i<o)&&(f[d+n[a]]=e[i++]);return f}function qi(e,t){var n=-1,r=e.length;for(t||(t=ac(r));++n<r;)t[n]=e[n];return t}function zi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):Q;u===Q&&(u=e[s]),
|
||
i?Pn(n,s,u):Nn(n,s,u)}return n}function Bi(e,t){return zi(e,Tf(e),t)}function Hi(e,t){return zi(e,Df(e),t)}function Ui(e,t){return function(n,i){var o=wh(n)?r:Mn,a=t?t():{};return o(n,e,Eo(i,2),a)}}function Vi(e){return oi(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:Q,a=i>2?n[2]:Q;for(o=e.length>3&&"function"==typeof o?(i--,o):Q,a&&Io(n[0],n[1],a)&&(o=i<3?Q:o,i=1),t=fc(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}function Wi(e,t){return function(n,r){if(null==n)return n;if(!Zs(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=fc(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function Yi(e){return function(t,n,r){for(var i=-1,o=fc(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(n(o[u],u,o)===!1)break}return t}}function Ki(e,t,n){function r(){var t=this&&this!==nr&&this instanceof r?o:e;return t.apply(i?n:this,arguments)}var i=t&he,o=Xi(e);return r}function Gi(e){return function(t){t=Nu(t);var n=R(t)?G(t):Q,r=n?n[0]:t.charAt(0),i=n?Si(n,1).join(""):t.slice(1);return r[e]()+i}}function Zi(e){return function(t){return h(Tl(ll(t).replace(Rn,"")),e,"")}}function Xi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=yf(e.prototype),r=e.apply(n,t);return uu(r)?r:n}}function Ji(e,t,r){function i(){for(var a=arguments.length,s=ac(a),u=a,l=Co(i);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:H(s,l);if(a-=c.length,a<r)return lo(e,t,to,i.placeholder,Q,s,c,Q,Q,r-a);var f=this&&this!==nr&&this instanceof i?o:e;return n(f,this,s)}var o=Xi(e);return i}function Qi(e){return function(t,n,r){var i=fc(t);if(!Zs(t)){var o=Eo(n,3);t=Uu(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:Q}}function eo(e){return _o(function(t){var n=t.length,r=n,i=Z.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new pc(re);if(i&&!a&&"wrapper"==ko(o))var a=new Z([],(!0))}for(r=a?r:n;++r<n;){o=t[r];var s=ko(o),u="wrapper"==s?Af(o):Q;a=u&&Bo(u[0])&&u[1]==(be|me|ve|_e)&&!u[4].length&&1==u[9]?a[ko(u[0])].apply(a,u[3]):1==o.length&&Bo(o)?a[s]():a.thru(o)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&wh(r))return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function to(e,t,n,r,i,o,a,s,u,l){function c(){for(var v=arguments.length,y=ac(v),b=v;b--;)y[b]=arguments[b];if(p)var _=Co(c),w=j(y,_);if(r&&(y=Ri(y,r,i,p)),o&&(y=Ii(y,o,a,p)),v-=w,p&&v<l){var x=H(y,_);return lo(e,t,to,c.placeholder,n,y,x,s,u,l-v)}var k=h?n:this,C=d?k[e]:e;return v=y.length,s?y=Qo(y,s):m&&v>1&&y.reverse(),f&&u<v&&(y.length=u),this&&this!==nr&&this instanceof c&&(C=g||Xi(C)),C.apply(k,y)}var f=t&be,h=t&he,d=t&de,p=t&(me|ge),m=t&we,g=d?Q:Xi(e);return c}function no(e,t){return function(n,r){return Sr(n,e,t(r),{})}}function ro(e,t){return function(n,r){var i;if(n===Q&&r===Q)return t;if(n!==Q&&(i=n),r!==Q){if(i===Q)return r;"string"==typeof n||"string"==typeof r?(n=gi(n),r=gi(r)):(n=mi(n),r=mi(r)),i=e(n,r)}return i}}function io(e){return _o(function(t){return t=c(t,D(Eo())),oi(function(r){var i=this;return e(t,function(e){return n(e,i,r)})})})}function oo(e,t){t=t===Q?" ":gi(t);var n=t.length;if(n<2)return n?ii(t,e):t;var r=ii(t,Bc(e/K(t)));return R(t)?Si(G(r),0,e).join(""):r.slice(0,e)}function ao(e,t,r,i){function o(){for(var t=-1,u=arguments.length,l=-1,c=i.length,f=ac(c+u),h=this&&this!==nr&&this instanceof o?s:e;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++t];return n(h,a?r:this,f)}var a=t&he,s=Xi(e);return o}function so(e){return function(t,n,r){return r&&"number"!=typeof r&&Io(t,n,r)&&(n=r=Q),t=Eu(t),n===Q?(n=t,t=0):n=Eu(n),r=r===Q?t<n?1:-1:Eu(r),ri(t,n,r,e)}}function uo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Au(t),n=Au(n)),e(t,n)}}function lo(e,t,n,r,i,o,a,s,u,l){var c=t&me,f=c?a:Q,h=c?Q:a,d=c?o:Q,p=c?Q:o;t|=c?ve:ye,t&=~(c?ye:ve),t&pe||(t&=~(he|de));var m=[e,t,i,d,f,p,h,s,u,l],g=n.apply(Q,m);return Bo(e)&&Mf(g,m),g.placeholder=r,ea(g,e,t)}function co(e){var t=cc[e];return function(e,n){if(e=Au(e),n=null==n?0:Zc($u(n),292)){var r=(Nu(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Nu(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}function fo(e){return function(t){var n=Nf(t);return n==We?z(t):n==Qe?V(t):T(t,e(t))}}function ho(e,t,n,r,i,o,a,s){var u=t&de;if(!u&&"function"!=typeof e)throw new pc(re);var l=r?r.length:0;if(l||(t&=~(ve|ye),r=i=Q),a=a===Q?a:Gc($u(a),0),s=s===Q?s:$u(s),l-=i?i.length:0,t&ye){var c=r,f=i;r=i=Q}var h=u?Q:Af(e),d=[e,t,n,r,i,c,f,o,a,s];if(h&&Ko(d,h),e=d[0],t=d[1],n=d[2],r=d[3],i=d[4],s=d[9]=d[9]===Q?u?0:e.length:Gc(d[9]-l,0),!s&&t&(me|ge)&&(t&=~(me|ge)),t&&t!=he)p=t==me||t==ge?Ji(e,t,s):t!=ve&&t!=(he|ve)||i.length?to.apply(Q,d):ao(e,t,n,r);else var p=Ki(e,t,n);var m=h?kf:Mf;return ea(m(p,d),e,t)}function po(e,t,n,r){return e===Q||Gs(e,vc[n])&&!_c.call(r,n)?t:e}function mo(e,t,n,r,i,o){return uu(e)&&uu(t)&&(o.set(t,e),Yr(e,t,Q,mo,o),o["delete"](t)),e}function go(e){return vu(e)?Q:e}function vo(e,t,n,r,i,o){var a=n&ce,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,f=!0,h=n&fe?new vn:Q;for(o.set(e,t),o.set(t,e);++c<s;){var d=e[c],m=t[c];if(r)var g=a?r(m,d,c,t,e,o):r(d,m,c,e,t,o);if(g!==Q){if(g)continue;f=!1;break}if(h){if(!p(t,function(e,t){if(!F(h,t)&&(d===e||i(d,e,n,r,o)))return h.push(t)})){f=!1;break}}else if(d!==m&&!i(d,m,n,r,o)){f=!1;break}}return o["delete"](e),o["delete"](t),f}function yo(e,t,n,r,i,o,a){switch(n){case at:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ot:return!(e.byteLength!=t.byteLength||!o(new Tc(e),new Tc(t)));case qe:case ze:case Ye:return Gs(+e,+t);case He:return e.name==t.name&&e.message==t.message;case Je:case et:return e==t+"";case We:var s=z;case Qe:var u=r&ce;if(s||(s=U),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=fe,a.set(e,t);var c=vo(s(e),s(t),r,i,o,a);return a["delete"](e),c;case tt:if(gf)return gf.call(e)==gf.call(t)}return!1}function bo(e,t,n,r,i,o){var a=n&ce,s=wo(e),u=s.length,l=wo(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var h=s[f];if(!(a?h in t:_c.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var m=a;++f<u;){h=s[f];var g=e[h],v=t[h];if(r)var y=a?r(v,g,h,t,e,o):r(g,v,h,e,t,o);if(!(y===Q?g===v||i(g,v,n,r,o):y)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var b=e.constructor,_=t.constructor;b!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _)&&(p=!1)}return o["delete"](e),o["delete"](t),p}function _o(e){return jf(Xo(e,Q,va),e+"")}function wo(e){return yr(e,Uu,Tf)}function xo(e){return yr(e,Vu,Df)}function ko(e){for(var t=e.name+"",n=lf[t],r=_c.call(lf,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Co(e){var t=_c.call(C,"placeholder")?C:e;return t.placeholder}function Eo(){var e=C.iteratee||jl;return e=e===jl?qr:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n=e.__data__;return zo(t)?n["string"==typeof t?"string":"hash"]:n.map}function So(e){for(var t=Uu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Vo(i)]}return t}function Ao(e,t){var n=L(e,t);return Pr(n)?n:Q}function To(e){var t=_c.call(e,Lc),n=e[Lc];try{e[Lc]=Q;var r=!0}catch(i){}var o=kc.call(e);return r&&(t?e[Lc]=n:delete e[Lc]),o}function Do(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Zc(t,e+a);break;case"takeRight":e=Gc(e,t-a)}}return{start:e,end:t}}function No(e){var t=e.match(Pt);return t?t[1].split(Lt):[]}function Fo(e,t,n){t=$i(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=ra(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&su(i)&&Ro(a,i)&&(wh(e)||_h(e)))}function Mo(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&_c.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Oo(e){return"function"!=typeof e.constructor||Uo(e)?{}:yf(Nc(e))}function jo(e,t,n,r){var i=e.constructor;switch(t){case ot:return Ti(e);case qe:case ze:return new i((+e));case at:return Di(e,r);case st:case ut:case lt:case ct:case ft:case ht:case dt:case pt:case mt:return ji(e,r);case We:return Ni(e,r,n);case Ye:case et:return new i(e);case Je:return Fi(e);case Qe:return Mi(e,r,n);case tt:return Oi(e)}}function Po(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(jt,"{\n/* [wrapped with "+t+"] */\n")}function Lo(e){return wh(e)||_h(e)||!!(jc&&e&&e[jc])}function Ro(e,t){return t=null==t?De:t,!!t&&("number"==typeof e||Wt.test(e))&&e>-1&&e%1==0&&e<t}function Io(e,t,n){if(!uu(n))return!1;var r=typeof t;return!!("number"==r?Zs(n)&&Ro(t,n.length):"string"==r&&t in n)&&Gs(n[t],e)}function qo(e,t){if(wh(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!_u(e))||(St.test(e)||!$t.test(e)||null!=t&&e in fc(t))}function zo(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Bo(e){var t=ko(e),n=C[t];if("function"!=typeof n||!(t in X.prototype))return!1;if(e===n)return!0;var r=Af(n);return!!r&&e===r[0]}function Ho(e){return!!xc&&xc in e}function Uo(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||vc;return e===n}function Vo(e){return e===e&&!uu(e)}function Wo(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==Q||e in fc(n)))}}function Yo(e){var t=js(e,function(e){return n.size===oe&&n.clear(),e}),n=t.cache;return t}function Ko(e,t){var n=e[1],r=t[1],i=n|r,o=i<(he|de|be),a=r==be&&n==me||r==be&&n==_e&&e[7].length<=t[8]||r==(be|_e)&&t[7].length<=t[8]&&n==me;if(!o&&!a)return e;r&he&&(e[2]=t[2],i|=n&he?0:pe);var s=t[3];if(s){var u=e[3];e[3]=u?Ri(u,s,t[4]):s,e[4]=u?H(e[3],ae):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?Ii(u,s,t[6]):s,e[6]=u?H(e[5],ae):t[6]),s=t[7],s&&(e[7]=s),r&be&&(e[8]=null==e[8]?t[8]:Zc(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function Go(e){var t=[];if(null!=e)for(var n in fc(e))t.push(n);return t}function Zo(e){return kc.call(e)}function Xo(e,t,r){return t=Gc(t===Q?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=Gc(i.length-t,0),s=ac(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=ac(t+1);++o<t;)u[o]=i[o];return u[t]=r(s),n(e,this,u)}}function Jo(e,t){return t.length<2?e:pr(e,ci(t,0,-1))}function Qo(e,t){for(var n=e.length,r=Zc(t.length,n),i=qi(e);r--;){var o=t[r];e[r]=Ro(o,n)?i[o]:Q}return e}function ea(e,t,n){var r=t+"";return jf(e,Po(r,oa(No(r),n)))}function ta(e){var t=0,n=0;return function(){var r=Xc(),i=Ee-(r-n);if(n=r,i>0){if(++t>=Ce)return arguments[0]}else t=0;return e.apply(Q,arguments)}}function na(e,t){var n=-1,r=e.length,i=r-1;for(t=t===Q?r:t;++n<t;){var o=ni(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function ra(e){if("string"==typeof e||_u(e))return e;var t=e+"";return"0"==t&&1/e==-Te?"-0":t}function ia(e){if(null!=e){try{return bc.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function oa(e,t){return i(Pe,function(n){var r="_."+n[0];t&n[1]&&!u(e,r)&&e.push(r)}),e.sort()}function aa(e){if(e instanceof X)return e.clone();var t=new Z(e.__wrapped__,e.__chain__);return t.__actions__=qi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function sa(e,t,n){t=(n?Io(e,t,n):t===Q)?1:Gc($u(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,o=0,a=ac(Bc(r/t));i<r;)a[o++]=ci(e,i,i+=t);return a}function ua(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}function la(){var e=arguments.length;if(!e)return[];for(var t=ac(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return f(wh(n)?qi(n):[n],rr(t,1))}function ca(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===Q?1:$u(t),ci(e,t<0?0:t,r)):[]}function fa(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===Q?1:$u(t),t=r-t,ci(e,0,t<0?0:t)):[]}function ha(e,t){return e&&e.length?_i(e,Eo(t,3),!0,!0):[]}function da(e,t){return e&&e.length?_i(e,Eo(t,3),!0):[]}function pa(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Io(e,t,n)&&(n=0,r=i),er(e,t,n,r)):[]}function ma(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:$u(n);return i<0&&(i=Gc(r+i,0)),y(e,Eo(t,3),i)}function ga(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==Q&&(i=$u(n),i=n<0?Gc(r+i,0):Zc(i,r-1)),y(e,Eo(t,3),i,!0)}function va(e){var t=null==e?0:e.length;return t?rr(e,1):[]}function ya(e){var t=null==e?0:e.length;return t?rr(e,Te):[]}function ba(e,t){var n=null==e?0:e.length;return n?(t=t===Q?1:$u(t),rr(e,t)):[]}function _a(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function wa(e){return e&&e.length?e[0]:Q}function xa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:$u(n);return i<0&&(i=Gc(r+i,0)),b(e,t,i)}function ka(e){var t=null==e?0:e.length;return t?ci(e,0,-1):[]}function Ca(e,t){return null==e?"":Yc.call(e,t)}function Ea(e){var t=null==e?0:e.length;return t?e[t-1]:Q}function $a(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==Q&&(i=$u(n),i=i<0?Gc(r+i,0):Zc(i,r-1)),t===t?Y(e,t,i):y(e,w,i,!0)}function Sa(e,t){return e&&e.length?Gr(e,$u(t)):Q}function Aa(e,t){return e&&e.length&&t&&t.length?ei(e,t):e}function Ta(e,t,n){return e&&e.length&&t&&t.length?ei(e,t,Eo(n,2)):e}function Da(e,t,n){return e&&e.length&&t&&t.length?ei(e,t,Q,n):e}function Na(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Eo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return ti(e,i),n}function Fa(e){return null==e?e:ef.call(e)}function Ma(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Io(e,t,n)?(t=0,n=r):(t=null==t?0:$u(t),n=n===Q?r:$u(n)),ci(e,t,n)):[]}function Oa(e,t){return hi(e,t)}function ja(e,t,n){return di(e,t,Eo(n,2))}function Pa(e,t){var n=null==e?0:e.length;if(n){var r=hi(e,t);if(r<n&&Gs(e[r],t))return r}return-1}function La(e,t){return hi(e,t,!0)}function Ra(e,t,n){return di(e,t,Eo(n,2),!0)}function Ia(e,t){var n=null==e?0:e.length;if(n){var r=hi(e,t,!0)-1;if(Gs(e[r],t))return r}return-1}function qa(e){return e&&e.length?pi(e):[]}function za(e,t){return e&&e.length?pi(e,Eo(t,2)):[]}function Ba(e){var t=null==e?0:e.length;return t?ci(e,1,t):[]}function Ha(e,t,n){return e&&e.length?(t=n||t===Q?1:$u(t),ci(e,0,t<0?0:t)):[]}function Ua(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===Q?1:$u(t),t=r-t,ci(e,t<0?0:t,r)):[]}function Va(e,t){return e&&e.length?_i(e,Eo(t,3),!1,!0):[]}function Wa(e,t){return e&&e.length?_i(e,Eo(t,3)):[]}function Ya(e){return e&&e.length?vi(e):[]}function Ka(e,t){return e&&e.length?vi(e,Eo(t,2)):[]}function Ga(e,t){return t="function"==typeof t?t:Q,e&&e.length?vi(e,Q,t):[]}function Za(e){if(!e||!e.length)return[];var t=0;return e=s(e,function(e){if(Xs(e))return t=Gc(e.length,t),!0}),A(t,function(t){return c(e,k(t))})}function Xa(e,t){if(!e||!e.length)return[];var r=Za(e);return null==t?r:c(r,function(e){return n(t,Q,e)})}function Ja(e,t){return ki(e||[],t||[],Nn)}function Qa(e,t){return ki(e||[],t||[],ui)}function es(e){var t=C(e);return t.__chain__=!0,t}function ts(e,t){return t(e),e}function ns(e,t){return t(e)}function rs(){return es(this)}function is(){return new Z(this.value(),this.__chain__)}function os(){this.__values__===Q&&(this.__values__=Cu(this.value()));var e=this.__index__>=this.__values__.length,t=e?Q:this.__values__[this.__index__++];return{done:e,value:t}}function as(){return this}function ss(e){for(var t,n=this;n instanceof W;){var r=aa(n);r.__index__=0,r.__values__=Q,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function us(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:ns,args:[Fa],thisArg:Q}),new Z(t,this.__chain__)}return this.thru(Fa)}function ls(){return wi(this.__wrapped__,this.__actions__)}function cs(e,t,n){var r=wh(e)?a:Zn;return n&&Io(e,t,n)&&(t=Q),r(e,Eo(t,3))}function fs(e,t){var n=wh(e)?s:tr;return n(e,Eo(t,3))}function hs(e,t){return rr(ys(e,t),1)}function ds(e,t){return rr(ys(e,t),Te)}function ps(e,t,n){return n=n===Q?1:$u(n),rr(ys(e,t),n)}function ms(e,t){var n=wh(e)?i:bf;return n(e,Eo(t,3))}function gs(e,t){var n=wh(e)?o:_f;return n(e,Eo(t,3))}function vs(e,t,n,r){e=Zs(e)?e:rl(e),n=n&&!r?$u(n):0;var i=e.length;return n<0&&(n=Gc(i+n,0)),bu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&b(e,t,n)>-1}function ys(e,t){var n=wh(e)?c:Ur;return n(e,Eo(t,3))}function bs(e,t,n,r){return null==e?[]:(wh(t)||(t=null==t?[]:[t]),n=r?Q:n,wh(n)||(n=null==n?[]:[n]),Zr(e,t,n))}function _s(e,t,n){var r=wh(e)?h:E,i=arguments.length<3;return r(e,Eo(t,4),n,i,bf)}function ws(e,t,n){var r=wh(e)?d:E,i=arguments.length<3;return r(e,Eo(t,4),n,i,_f)}function xs(e,t){var n=wh(e)?s:tr;return n(e,Ps(Eo(t,3)))}function ks(e){var t=wh(e)?Sn:ai;return t(e)}function Cs(e,t,n){t=(n?Io(e,t,n):t===Q)?1:$u(t);var r=wh(e)?An:si;return r(e,t)}function Es(e){var t=wh(e)?Tn:li;return t(e)}function $s(e){if(null==e)return 0;if(Zs(e))return bu(e)?K(e):e.length;var t=Nf(e);return t==We||t==Qe?e.size:zr(e).length}function Ss(e,t,n){var r=wh(e)?p:fi;return n&&Io(e,t,n)&&(t=Q),r(e,Eo(t,3))}function As(e,t){if("function"!=typeof t)throw new pc(re);return e=$u(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ts(e,t,n){return t=n?Q:t,t=e&&null==t?e.length:t,ho(e,be,Q,Q,Q,Q,t)}function Ds(e,t){var n;if("function"!=typeof t)throw new pc(re);return e=$u(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=Q),n}}function Ns(e,t,n){t=n?Q:t;var r=ho(e,me,Q,Q,Q,Q,Q,t);return r.placeholder=Ns.placeholder,r}function Fs(e,t,n){t=n?Q:t;var r=ho(e,ge,Q,Q,Q,Q,Q,t);return r.placeholder=Fs.placeholder,r}function Ms(e,t,n){function r(t){var n=h,r=d;return h=d=Q,y=t,m=e.apply(r,n)}function i(e){return y=e,g=Of(s,t),b?r(e):m}function o(e){var n=e-v,r=e-y,i=t-n;return _?Zc(i,p-r):i}function a(e){var n=e-v,r=e-y;return v===Q||n>=t||n<0||_&&r>=p}function s(){var e=lh();return a(e)?u(e):void(g=Of(s,o(e)))}function u(e){return g=Q,w&&h?r(e):(h=d=Q,m)}function l(){g!==Q&&$f(g),y=0,h=v=d=g=Q}function c(){return g===Q?m:u(lh())}function f(){var e=lh(),n=a(e);if(h=arguments,d=this,v=e,n){if(g===Q)return i(v);if(_)return g=Of(s,t),r(v)}return g===Q&&(g=Of(s,t)),m}var h,d,p,m,g,v,y=0,b=!1,_=!1,w=!0;if("function"!=typeof e)throw new pc(re);return t=Au(t)||0,uu(n)&&(b=!!n.leading,_="maxWait"in n,p=_?Gc(Au(n.maxWait)||0,t):p,w="trailing"in n?!!n.trailing:w),f.cancel=l,f.flush=c,f}function Os(e){return ho(e,we)}function js(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new pc(re);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(js.Cache||fn),n}function Ps(e){if("function"!=typeof e)throw new pc(re);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ls(e){return Ds(2,e)}function Rs(e,t){if("function"!=typeof e)throw new pc(re);return t=t===Q?t:$u(t),oi(e,t)}function Is(e,t){if("function"!=typeof e)throw new pc(re);return t=null==t?0:Gc($u(t),0),oi(function(r){var i=r[t],o=Si(r,0,t);return i&&f(o,i),n(e,this,o)})}function qs(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new pc(re);return uu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ms(e,t,{leading:r,maxWait:t,trailing:i})}function zs(e){return Ts(e,1)}function Bs(e,t){return mh(Ei(t),e)}function Hs(){if(!arguments.length)return[];var e=arguments[0];return wh(e)?e:[e]}function Us(e){return zn(e,le)}function Vs(e,t){return t="function"==typeof t?t:Q,zn(e,le,t)}function Ws(e){return zn(e,se|le)}function Ys(e,t){return t="function"==typeof t?t:Q,zn(e,se|le,t)}function Ks(e,t){return null==t||Hn(e,t,Uu(t))}function Gs(e,t){return e===t||e!==e&&t!==t}function Zs(e){return null!=e&&su(e.length)&&!ou(e)}function Xs(e){return lu(e)&&Zs(e)}function Js(e){return e===!0||e===!1||lu(e)&&wr(e)==qe}function Qs(e){return lu(e)&&1===e.nodeType&&!vu(e)}function eu(e){if(null==e)return!0;if(Zs(e)&&(wh(e)||"string"==typeof e||"function"==typeof e.splice||kh(e)||Ah(e)||_h(e)))return!e.length;var t=Nf(e);if(t==We||t==Qe)return!e.size;if(Uo(e))return!zr(e).length;for(var n in e)if(_c.call(e,n))return!1;return!0}function tu(e,t){return Fr(e,t)}function nu(e,t,n){n="function"==typeof n?n:Q;var r=n?n(e,t):Q;return r===Q?Fr(e,t,Q,n):!!r}function ru(e){if(!lu(e))return!1;var t=wr(e);return t==He||t==Be||"string"==typeof e.message&&"string"==typeof e.name&&!vu(e)}function iu(e){return"number"==typeof e&&Wc(e)}function ou(e){if(!uu(e))return!1;var t=wr(e);return t==Ue||t==Ve||t==Ie||t==Xe}function au(e){return"number"==typeof e&&e==$u(e)}function su(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=De}function uu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function lu(e){return null!=e&&"object"==typeof e}function cu(e,t){return e===t||jr(e,t,So(t))}function fu(e,t,n){return n="function"==typeof n?n:Q,jr(e,t,So(t),n)}function hu(e){return gu(e)&&e!=+e}function du(e){if(Ff(e))throw new uc(ne);return Pr(e)}function pu(e){return null===e}function mu(e){return null==e}function gu(e){return"number"==typeof e||lu(e)&&wr(e)==Ye}function vu(e){if(!lu(e)||wr(e)!=Ge)return!1;var t=Nc(e);if(null===t)return!0;var n=_c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&bc.call(n)==Cc}function yu(e){return au(e)&&e>=-De&&e<=De}function bu(e){return"string"==typeof e||!wh(e)&&lu(e)&&wr(e)==et}function _u(e){return"symbol"==typeof e||lu(e)&&wr(e)==tt}function wu(e){return e===Q}function xu(e){return lu(e)&&Nf(e)==rt}function ku(e){return lu(e)&&wr(e)==it}function Cu(e){if(!e)return[];if(Zs(e))return bu(e)?G(e):qi(e);if(Pc&&e[Pc])return q(e[Pc]());var t=Nf(e),n=t==We?z:t==Qe?U:rl;return n(e)}function Eu(e){if(!e)return 0===e?e:0;if(e=Au(e),e===Te||e===-Te){var t=e<0?-1:1;return t*Ne}return e===e?e:0}function $u(e){var t=Eu(e),n=t%1;return t===t?n?t-n:t:0}function Su(e){return e?qn($u(e),0,Me):0}function Au(e){if("number"==typeof e)return e;if(_u(e))return Fe;if(uu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=uu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ft,"");var n=Ht.test(e);return n||Vt.test(e)?Qn(e.slice(2),n?2:8):Bt.test(e)?Fe:+e}function Tu(e){return zi(e,Vu(e))}function Du(e){return e?qn($u(e),-De,De):0===e?e:0}function Nu(e){return null==e?"":gi(e)}function Fu(e,t){var n=yf(e);return null==t?n:On(n,t)}function Mu(e,t){return v(e,Eo(t,3),ir)}function Ou(e,t){return v(e,Eo(t,3),ar)}function ju(e,t){return null==e?e:wf(e,Eo(t,3),Vu)}function Pu(e,t){return null==e?e:xf(e,Eo(t,3),Vu)}function Lu(e,t){return e&&ir(e,Eo(t,3))}function Ru(e,t){return e&&ar(e,Eo(t,3))}function Iu(e){return null==e?[]:sr(e,Uu(e))}function qu(e){return null==e?[]:sr(e,Vu(e))}function zu(e,t,n){var r=null==e?Q:pr(e,t);return r===Q?n:r}function Bu(e,t){return null!=e&&Fo(e,t,kr)}function Hu(e,t){return null!=e&&Fo(e,t,Cr)}function Uu(e){return Zs(e)?$n(e):zr(e)}function Vu(e){return Zs(e)?$n(e,!0):Br(e)}function Wu(e,t){var n={};return t=Eo(t,3),ir(e,function(e,r,i){Pn(n,t(e,r,i),e)}),n}function Yu(e,t){var n={};return t=Eo(t,3),ir(e,function(e,r,i){Pn(n,r,t(e,r,i))}),n}function Ku(e,t){return Gu(e,Ps(Eo(t)))}function Gu(e,t){if(null==e)return{};var n=c(xo(e),function(e){return[e]});return t=Eo(t),Jr(e,n,function(e,n){return t(e,n[0])})}function Zu(e,t,n){t=$i(t,e);var r=-1,i=t.length;for(i||(i=1,e=Q);++r<i;){var o=null==e?Q:e[ra(t[r])];o===Q&&(r=i,o=n),e=ou(o)?o.call(e):o}return e}function Xu(e,t,n){return null==e?e:ui(e,t,n)}function Ju(e,t,n,r){return r="function"==typeof r?r:Q,null==e?e:ui(e,t,n,r)}function Qu(e,t,n){var r=wh(e),o=r||kh(e)||Ah(e);if(t=Eo(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:uu(e)&&ou(a)?yf(Nc(e)):{}}return(o?i:ir)(e,function(e,r,i){return t(n,e,r,i)}),n}function el(e,t){return null==e||yi(e,t)}function tl(e,t,n){return null==e?e:bi(e,t,Ei(n))}function nl(e,t,n,r){return r="function"==typeof r?r:Q,null==e?e:bi(e,t,Ei(n),r)}function rl(e){return null==e?[]:N(e,Uu(e))}function il(e){return null==e?[]:N(e,Vu(e))}function ol(e,t,n){return n===Q&&(n=t,t=Q),n!==Q&&(n=Au(n),n=n===n?n:0),t!==Q&&(t=Au(t),t=t===t?t:0),qn(Au(e),t,n)}function al(e,t,n){return t=Eu(t),n===Q?(n=t,t=0):n=Eu(n),e=Au(e),Er(e,t,n)}function sl(e,t,n){if(n&&"boolean"!=typeof n&&Io(e,t,n)&&(t=n=Q),n===Q&&("boolean"==typeof t?(n=t,t=Q):"boolean"==typeof e&&(n=e,e=Q)),e===Q&&t===Q?(e=0,t=1):(e=Eu(e),t===Q?(t=e,e=0):t=Eu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Qc();return Zc(e+i*(t-e+Jn("1e-"+((i+"").length-1))),t)}return ni(e,t)}function ul(e){return ed(Nu(e).toLowerCase())}function ll(e){return e=Nu(e),e&&e.replace(Yt,mr).replace(In,"")}function cl(e,t,n){e=Nu(e),t=gi(t);var r=e.length;n=n===Q?r:qn($u(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function fl(e){return e=Nu(e),e&&xt.test(e)?e.replace(_t,gr):e}function hl(e){return e=Nu(e),e&&Nt.test(e)?e.replace(Dt,"\\$&"):e}function dl(e,t,n){e=Nu(e),t=$u(t);var r=t?K(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return oo(Hc(i),n)+e+oo(Bc(i),n)}function pl(e,t,n){e=Nu(e),t=$u(t);var r=t?K(e):0;return t&&r<t?e+oo(t-r,n):e}function ml(e,t,n){e=Nu(e),t=$u(t);var r=t?K(e):0;return t&&r<t?oo(t-r,n)+e:e}function gl(e,t,n){return n||null==t?t=0:t&&(t=+t),Jc(Nu(e).replace(Mt,""),t||0)}function vl(e,t,n){return t=(n?Io(e,t,n):t===Q)?1:$u(t),ii(Nu(e),t)}function yl(){var e=arguments,t=Nu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function bl(e,t,n){return n&&"number"!=typeof n&&Io(e,t,n)&&(t=n=Q),(n=n===Q?Me:n>>>0)?(e=Nu(e),e&&("string"==typeof t||null!=t&&!$h(t))&&(t=gi(t),!t&&R(e))?Si(G(e),0,n):e.split(t,n)):[]}function _l(e,t,n){return e=Nu(e),n=null==n?0:qn($u(n),0,e.length),t=gi(t),e.slice(n,n+t.length)==t}function wl(e,t,n){var r=C.templateSettings;n&&Io(e,t,n)&&(t=Q),e=Nu(e),t=Mh({},t,r,po);var i,o,a=Mh({},t.imports,r.imports,po),s=Uu(a),u=N(a,s),l=0,c=t.interpolate||Kt,f="__p += '",h=hc((t.escape||Kt).source+"|"+c.source+"|"+(c===Et?qt:Kt).source+"|"+(t.evaluate||Kt).source+"|$","g"),d="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Vn+"]")+"\n";e.replace(h,function(t,n,r,a,s,u){return r||(r=a),f+=e.slice(l,u).replace(Gt,P),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+t.length,t}),f+="';\n";var p=t.variable;p||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(gt,""):f).replace(vt,"$1").replace(yt,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"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 m=td(function(){return lc(s,d+"return "+f).apply(Q,u)});if(m.source=f,ru(m))throw m;return m}function xl(e){return Nu(e).toLowerCase()}function kl(e){return Nu(e).toUpperCase()}function Cl(e,t,n){if(e=Nu(e),e&&(n||t===Q))return e.replace(Ft,"");if(!e||!(t=gi(t)))return e;var r=G(e),i=G(t),o=M(r,i),a=O(r,i)+1;return Si(r,o,a).join("")}function El(e,t,n){if(e=Nu(e),e&&(n||t===Q))return e.replace(Ot,"");if(!e||!(t=gi(t)))return e;var r=G(e),i=O(r,G(t))+1;return Si(r,0,i).join("")}function $l(e,t,n){if(e=Nu(e),e&&(n||t===Q))return e.replace(Mt,"");if(!e||!(t=gi(t)))return e;var r=G(e),i=M(r,G(t));return Si(r,i).join("")}function Sl(e,t){var n=xe,r=ke;if(uu(t)){var i="separator"in t?t.separator:i;n="length"in t?$u(t.length):n,r="omission"in t?gi(t.omission):r}e=Nu(e);var o=e.length;if(R(e)){var a=G(e);o=a.length}if(n>=o)return e;var s=n-K(r);if(s<1)return r;var u=a?Si(a,0,s).join(""):e.slice(0,s);if(i===Q)return u+r;if(a&&(s+=u.length-s),$h(i)){if(e.slice(s).search(i)){var l,c=u;for(i.global||(i=hc(i.source,Nu(zt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,f===Q?s:f)}}else if(e.indexOf(gi(i),s)!=s){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r}function Al(e){return e=Nu(e),e&&wt.test(e)?e.replace(bt,vr):e}function Tl(e,t,n){return e=Nu(e),t=n?Q:t,t===Q?I(e)?J(e):g(e):e.match(t)||[]}function Dl(e){var t=null==e?0:e.length,r=Eo();return e=t?c(e,function(e){if("function"!=typeof e[1])throw new pc(re);return[r(e[0]),e[1]]}):[],oi(function(r){for(var i=-1;++i<t;){var o=e[i];if(n(o[0],this,r))return n(o[1],this,r)}})}function Nl(e){return Bn(zn(e,se))}function Fl(e){return function(){return e}}function Ml(e,t){return null==e||e!==e?t:e}function Ol(e){return e}function jl(e){return qr("function"==typeof e?e:zn(e,se))}function Pl(e){return Vr(zn(e,se))}function Ll(e,t){return Wr(e,zn(t,se))}function Rl(e,t,n){var r=Uu(t),o=sr(t,r);null!=n||uu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=sr(t,Uu(t)));var a=!(uu(n)&&"chain"in n&&!n.chain),s=ou(e);return i(o,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=qi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,f([this.value()],arguments))})}),e}function Il(){return nr._===this&&(nr._=Ec),this}function ql(){}function zl(e){return e=$u(e),oi(function(t){return Gr(t,e)})}function Bl(e){return qo(e)?k(ra(e)):Qr(e)}function Hl(e){return function(t){return null==e?Q:pr(e,t)}}function Ul(){return[]}function Vl(){return!1}function Wl(){return{}}function Yl(){return""}function Kl(){return!0}function Gl(e,t){if(e=$u(e),e<1||e>De)return[];var n=Me,r=Zc(e,Me);t=Eo(t),e-=Me;for(var i=A(r,t);++n<e;)t(n);return i}function Zl(e){return wh(e)?c(e,ra):_u(e)?[e]:qi(Pf(Nu(e)))}function Xl(e){var t=++wc;return Nu(e)+t}function Jl(e){return e&&e.length?Xn(e,Ol,xr):Q}function Ql(e,t){return e&&e.length?Xn(e,Eo(t,2),xr):Q}function ec(e){return x(e,Ol)}function tc(e,t){return x(e,Eo(t,2))}function nc(e){return e&&e.length?Xn(e,Ol,Hr):Q}function rc(e,t){return e&&e.length?Xn(e,Eo(t,2),Hr):Q}function ic(e){return e&&e.length?S(e,Ol):0}function oc(e,t){return e&&e.length?S(e,Eo(t,2)):0}m=null==m?nr:br.defaults(nr.Object(),m,br.pick(nr,Un));var ac=m.Array,sc=m.Date,uc=m.Error,lc=m.Function,cc=m.Math,fc=m.Object,hc=m.RegExp,dc=m.String,pc=m.TypeError,mc=ac.prototype,gc=lc.prototype,vc=fc.prototype,yc=m["__core-js_shared__"],bc=gc.toString,_c=vc.hasOwnProperty,wc=0,xc=function(){var e=/[^.]+$/.exec(yc&&yc.keys&&yc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),kc=vc.toString,Cc=bc.call(fc),Ec=nr._,$c=hc("^"+bc.call(_c).replace(Dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sc=or?m.Buffer:Q,Ac=m.Symbol,Tc=m.Uint8Array,Dc=Sc?Sc.allocUnsafe:Q,Nc=B(fc.getPrototypeOf,fc),Fc=fc.create,Mc=vc.propertyIsEnumerable,Oc=mc.splice,jc=Ac?Ac.isConcatSpreadable:Q,Pc=Ac?Ac.iterator:Q,Lc=Ac?Ac.toStringTag:Q,Rc=function(){try{var e=Ao(fc,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ic=m.clearTimeout!==nr.clearTimeout&&m.clearTimeout,qc=sc&&sc.now!==nr.Date.now&&sc.now,zc=m.setTimeout!==nr.setTimeout&&m.setTimeout,Bc=cc.ceil,Hc=cc.floor,Uc=fc.getOwnPropertySymbols,Vc=Sc?Sc.isBuffer:Q,Wc=m.isFinite,Yc=mc.join,Kc=B(fc.keys,fc),Gc=cc.max,Zc=cc.min,Xc=sc.now,Jc=m.parseInt,Qc=cc.random,ef=mc.reverse,tf=Ao(m,"DataView"),nf=Ao(m,"Map"),rf=Ao(m,"Promise"),of=Ao(m,"Set"),af=Ao(m,"WeakMap"),sf=Ao(fc,"create"),uf=af&&new af,lf={},cf=ia(tf),ff=ia(nf),hf=ia(rf),df=ia(of),pf=ia(af),mf=Ac?Ac.prototype:Q,gf=mf?mf.valueOf:Q,vf=mf?mf.toString:Q,yf=function(){function e(){}return function(t){if(!uu(t))return{};if(Fc)return Fc(t);e.prototype=t;var n=new e;return e.prototype=Q,n}}();C.templateSettings={escape:kt,evaluate:Ct,interpolate:Et,variable:"",imports:{_:C}},C.prototype=W.prototype,C.prototype.constructor=C,Z.prototype=yf(W.prototype),
|
||
Z.prototype.constructor=Z,X.prototype=yf(W.prototype),X.prototype.constructor=X,Jt.prototype.clear=Qt,Jt.prototype["delete"]=en,Jt.prototype.get=tn,Jt.prototype.has=nn,Jt.prototype.set=rn,on.prototype.clear=an,on.prototype["delete"]=sn,on.prototype.get=un,on.prototype.has=ln,on.prototype.set=cn,fn.prototype.clear=hn,fn.prototype["delete"]=dn,fn.prototype.get=pn,fn.prototype.has=mn,fn.prototype.set=gn,vn.prototype.add=vn.prototype.push=yn,vn.prototype.has=bn,_n.prototype.clear=wn,_n.prototype["delete"]=xn,_n.prototype.get=kn,_n.prototype.has=Cn,_n.prototype.set=En;var bf=Wi(ir),_f=Wi(ar,!0),wf=Yi(),xf=Yi(!0),kf=uf?function(e,t){return uf.set(e,t),e}:Ol,Cf=Rc?function(e,t){return Rc(e,"toString",{configurable:!0,enumerable:!1,value:Fl(t),writable:!0})}:Ol,Ef=oi,$f=Ic||function(e){return nr.clearTimeout(e)},Sf=of&&1/U(new of([,-0]))[1]==Te?function(e){return new of(e)}:ql,Af=uf?function(e){return uf.get(e)}:ql,Tf=Uc?function(e){return null==e?[]:(e=fc(e),s(Uc(e),function(t){return Mc.call(e,t)}))}:Ul,Df=Uc?function(e){for(var t=[];e;)f(t,Tf(e)),e=Nc(e);return t}:Ul,Nf=wr;(tf&&Nf(new tf(new ArrayBuffer(1)))!=at||nf&&Nf(new nf)!=We||rf&&Nf(rf.resolve())!=Ze||of&&Nf(new of)!=Qe||af&&Nf(new af)!=rt)&&(Nf=function(e){var t=wr(e),n=t==Ge?e.constructor:Q,r=n?ia(n):"";if(r)switch(r){case cf:return at;case ff:return We;case hf:return Ze;case df:return Qe;case pf:return rt}return t});var Ff=yc?ou:Vl,Mf=ta(kf),Of=zc||function(e,t){return nr.setTimeout(e,t)},jf=ta(Cf),Pf=Yo(function(e){var t=[];return At.test(e)&&t.push(""),e.replace(Tt,function(e,n,r,i){t.push(r?i.replace(It,"$1"):n||e)}),t}),Lf=oi(function(e,t){return Xs(e)?Gn(e,rr(t,1,Xs,!0)):[]}),Rf=oi(function(e,t){var n=Ea(t);return Xs(n)&&(n=Q),Xs(e)?Gn(e,rr(t,1,Xs,!0),Eo(n,2)):[]}),If=oi(function(e,t){var n=Ea(t);return Xs(n)&&(n=Q),Xs(e)?Gn(e,rr(t,1,Xs,!0),Q,n):[]}),qf=oi(function(e){var t=c(e,Ci);return t.length&&t[0]===e[0]?$r(t):[]}),zf=oi(function(e){var t=Ea(e),n=c(e,Ci);return t===Ea(n)?t=Q:n.pop(),n.length&&n[0]===e[0]?$r(n,Eo(t,2)):[]}),Bf=oi(function(e){var t=Ea(e),n=c(e,Ci);return t="function"==typeof t?t:Q,t&&n.pop(),n.length&&n[0]===e[0]?$r(n,Q,t):[]}),Hf=oi(Aa),Uf=_o(function(e,t){var n=null==e?0:e.length,r=Ln(e,t);return ti(e,c(t,function(e){return Ro(e,n)?+e:e}).sort(Pi)),r}),Vf=oi(function(e){return vi(rr(e,1,Xs,!0))}),Wf=oi(function(e){var t=Ea(e);return Xs(t)&&(t=Q),vi(rr(e,1,Xs,!0),Eo(t,2))}),Yf=oi(function(e){var t=Ea(e);return t="function"==typeof t?t:Q,vi(rr(e,1,Xs,!0),Q,t)}),Kf=oi(function(e,t){return Xs(e)?Gn(e,t):[]}),Gf=oi(function(e){return xi(s(e,Xs))}),Zf=oi(function(e){var t=Ea(e);return Xs(t)&&(t=Q),xi(s(e,Xs),Eo(t,2))}),Xf=oi(function(e){var t=Ea(e);return t="function"==typeof t?t:Q,xi(s(e,Xs),Q,t)}),Jf=oi(Za),Qf=oi(function(e){var t=e.length,n=t>1?e[t-1]:Q;return n="function"==typeof n?(e.pop(),n):Q,Xa(e,n)}),eh=_o(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Ln(t,e)};return!(t>1||this.__actions__.length)&&r instanceof X&&Ro(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:ns,args:[i],thisArg:Q}),new Z(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(Q),e})):this.thru(i)}),th=Ui(function(e,t,n){_c.call(e,n)?++e[n]:Pn(e,n,1)}),nh=Qi(ma),rh=Qi(ga),ih=Ui(function(e,t,n){_c.call(e,n)?e[n].push(t):Pn(e,n,[t])}),oh=oi(function(e,t,r){var i=-1,o="function"==typeof t,a=Zs(e)?ac(e.length):[];return bf(e,function(e){a[++i]=o?n(t,e,r):Ar(e,t,r)}),a}),ah=Ui(function(e,t,n){Pn(e,n,t)}),sh=Ui(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),uh=oi(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Io(e,t[0],t[1])?t=[]:n>2&&Io(t[0],t[1],t[2])&&(t=[t[0]]),Zr(e,rr(t,1),[])}),lh=qc||function(){return nr.Date.now()},ch=oi(function(e,t,n){var r=he;if(n.length){var i=H(n,Co(ch));r|=ve}return ho(e,r,t,n,i)}),fh=oi(function(e,t,n){var r=he|de;if(n.length){var i=H(n,Co(fh));r|=ve}return ho(t,r,e,n,i)}),hh=oi(function(e,t){return Kn(e,1,t)}),dh=oi(function(e,t,n){return Kn(e,Au(t)||0,n)});js.Cache=fn;var ph=Ef(function(e,t){t=1==t.length&&wh(t[0])?c(t[0],D(Eo())):c(rr(t,1),D(Eo()));var r=t.length;return oi(function(i){for(var o=-1,a=Zc(i.length,r);++o<a;)i[o]=t[o].call(this,i[o]);return n(e,this,i)})}),mh=oi(function(e,t){var n=H(t,Co(mh));return ho(e,ve,Q,t,n)}),gh=oi(function(e,t){var n=H(t,Co(gh));return ho(e,ye,Q,t,n)}),vh=_o(function(e,t){return ho(e,_e,Q,Q,Q,t)}),yh=uo(xr),bh=uo(function(e,t){return e>=t}),_h=Tr(function(){return arguments}())?Tr:function(e){return lu(e)&&_c.call(e,"callee")&&!Mc.call(e,"callee")},wh=ac.isArray,xh=ur?D(ur):Dr,kh=Vc||Vl,Ch=lr?D(lr):Nr,Eh=cr?D(cr):Or,$h=fr?D(fr):Lr,Sh=hr?D(hr):Rr,Ah=dr?D(dr):Ir,Th=uo(Hr),Dh=uo(function(e,t){return e<=t}),Nh=Vi(function(e,t){if(Uo(t)||Zs(t))return void zi(t,Uu(t),e);for(var n in t)_c.call(t,n)&&Nn(e,n,t[n])}),Fh=Vi(function(e,t){zi(t,Vu(t),e)}),Mh=Vi(function(e,t,n,r){zi(t,Vu(t),e,r)}),Oh=Vi(function(e,t,n,r){zi(t,Uu(t),e,r)}),jh=_o(Ln),Ph=oi(function(e){return e.push(Q,po),n(Mh,Q,e)}),Lh=oi(function(e){return e.push(Q,mo),n(Bh,Q,e)}),Rh=no(function(e,t,n){e[t]=n},Fl(Ol)),Ih=no(function(e,t,n){_c.call(e,t)?e[t].push(n):e[t]=[n]},Eo),qh=oi(Ar),zh=Vi(function(e,t,n){Yr(e,t,n)}),Bh=Vi(function(e,t,n,r){Yr(e,t,n,r)}),Hh=_o(function(e,t){var n={};if(null==e)return n;var r=!1;t=c(t,function(t){return t=$i(t,e),r||(r=t.length>1),t}),zi(e,xo(e),n),r&&(n=zn(n,se|ue|le,go));for(var i=t.length;i--;)yi(n,t[i]);return n}),Uh=_o(function(e,t){return null==e?{}:Xr(e,t)}),Vh=fo(Uu),Wh=fo(Vu),Yh=Zi(function(e,t,n){return t=t.toLowerCase(),e+(n?ul(t):t)}),Kh=Zi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Gh=Zi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zh=Gi("toLowerCase"),Xh=Zi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Jh=Zi(function(e,t,n){return e+(n?" ":"")+ed(t)}),Qh=Zi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ed=Gi("toUpperCase"),td=oi(function(e,t){try{return n(e,Q,t)}catch(r){return ru(r)?r:new uc(r)}}),nd=_o(function(e,t){return i(t,function(t){t=ra(t),Pn(e,t,ch(e[t],e))}),e}),rd=eo(),id=eo(!0),od=oi(function(e,t){return function(n){return Ar(n,e,t)}}),ad=oi(function(e,t){return function(n){return Ar(e,n,t)}}),sd=io(c),ud=io(a),ld=io(p),cd=so(),fd=so(!0),hd=ro(function(e,t){return e+t},0),dd=co("ceil"),pd=ro(function(e,t){return e/t},1),md=co("floor"),gd=ro(function(e,t){return e*t},1),vd=co("round"),yd=ro(function(e,t){return e-t},0);return C.after=As,C.ary=Ts,C.assign=Nh,C.assignIn=Fh,C.assignInWith=Mh,C.assignWith=Oh,C.at=jh,C.before=Ds,C.bind=ch,C.bindAll=nd,C.bindKey=fh,C.castArray=Hs,C.chain=es,C.chunk=sa,C.compact=ua,C.concat=la,C.cond=Dl,C.conforms=Nl,C.constant=Fl,C.countBy=th,C.create=Fu,C.curry=Ns,C.curryRight=Fs,C.debounce=Ms,C.defaults=Ph,C.defaultsDeep=Lh,C.defer=hh,C.delay=dh,C.difference=Lf,C.differenceBy=Rf,C.differenceWith=If,C.drop=ca,C.dropRight=fa,C.dropRightWhile=ha,C.dropWhile=da,C.fill=pa,C.filter=fs,C.flatMap=hs,C.flatMapDeep=ds,C.flatMapDepth=ps,C.flatten=va,C.flattenDeep=ya,C.flattenDepth=ba,C.flip=Os,C.flow=rd,C.flowRight=id,C.fromPairs=_a,C.functions=Iu,C.functionsIn=qu,C.groupBy=ih,C.initial=ka,C.intersection=qf,C.intersectionBy=zf,C.intersectionWith=Bf,C.invert=Rh,C.invertBy=Ih,C.invokeMap=oh,C.iteratee=jl,C.keyBy=ah,C.keys=Uu,C.keysIn=Vu,C.map=ys,C.mapKeys=Wu,C.mapValues=Yu,C.matches=Pl,C.matchesProperty=Ll,C.memoize=js,C.merge=zh,C.mergeWith=Bh,C.method=od,C.methodOf=ad,C.mixin=Rl,C.negate=Ps,C.nthArg=zl,C.omit=Hh,C.omitBy=Ku,C.once=Ls,C.orderBy=bs,C.over=sd,C.overArgs=ph,C.overEvery=ud,C.overSome=ld,C.partial=mh,C.partialRight=gh,C.partition=sh,C.pick=Uh,C.pickBy=Gu,C.property=Bl,C.propertyOf=Hl,C.pull=Hf,C.pullAll=Aa,C.pullAllBy=Ta,C.pullAllWith=Da,C.pullAt=Uf,C.range=cd,C.rangeRight=fd,C.rearg=vh,C.reject=xs,C.remove=Na,C.rest=Rs,C.reverse=Fa,C.sampleSize=Cs,C.set=Xu,C.setWith=Ju,C.shuffle=Es,C.slice=Ma,C.sortBy=uh,C.sortedUniq=qa,C.sortedUniqBy=za,C.split=bl,C.spread=Is,C.tail=Ba,C.take=Ha,C.takeRight=Ua,C.takeRightWhile=Va,C.takeWhile=Wa,C.tap=ts,C.throttle=qs,C.thru=ns,C.toArray=Cu,C.toPairs=Vh,C.toPairsIn=Wh,C.toPath=Zl,C.toPlainObject=Tu,C.transform=Qu,C.unary=zs,C.union=Vf,C.unionBy=Wf,C.unionWith=Yf,C.uniq=Ya,C.uniqBy=Ka,C.uniqWith=Ga,C.unset=el,C.unzip=Za,C.unzipWith=Xa,C.update=tl,C.updateWith=nl,C.values=rl,C.valuesIn=il,C.without=Kf,C.words=Tl,C.wrap=Bs,C.xor=Gf,C.xorBy=Zf,C.xorWith=Xf,C.zip=Jf,C.zipObject=Ja,C.zipObjectDeep=Qa,C.zipWith=Qf,C.entries=Vh,C.entriesIn=Wh,C.extend=Fh,C.extendWith=Mh,Rl(C,C),C.add=hd,C.attempt=td,C.camelCase=Yh,C.capitalize=ul,C.ceil=dd,C.clamp=ol,C.clone=Us,C.cloneDeep=Ws,C.cloneDeepWith=Ys,C.cloneWith=Vs,C.conformsTo=Ks,C.deburr=ll,C.defaultTo=Ml,C.divide=pd,C.endsWith=cl,C.eq=Gs,C.escape=fl,C.escapeRegExp=hl,C.every=cs,C.find=nh,C.findIndex=ma,C.findKey=Mu,C.findLast=rh,C.findLastIndex=ga,C.findLastKey=Ou,C.floor=md,C.forEach=ms,C.forEachRight=gs,C.forIn=ju,C.forInRight=Pu,C.forOwn=Lu,C.forOwnRight=Ru,C.get=zu,C.gt=yh,C.gte=bh,C.has=Bu,C.hasIn=Hu,C.head=wa,C.identity=Ol,C.includes=vs,C.indexOf=xa,C.inRange=al,C.invoke=qh,C.isArguments=_h,C.isArray=wh,C.isArrayBuffer=xh,C.isArrayLike=Zs,C.isArrayLikeObject=Xs,C.isBoolean=Js,C.isBuffer=kh,C.isDate=Ch,C.isElement=Qs,C.isEmpty=eu,C.isEqual=tu,C.isEqualWith=nu,C.isError=ru,C.isFinite=iu,C.isFunction=ou,C.isInteger=au,C.isLength=su,C.isMap=Eh,C.isMatch=cu,C.isMatchWith=fu,C.isNaN=hu,C.isNative=du,C.isNil=mu,C.isNull=pu,C.isNumber=gu,C.isObject=uu,C.isObjectLike=lu,C.isPlainObject=vu,C.isRegExp=$h,C.isSafeInteger=yu,C.isSet=Sh,C.isString=bu,C.isSymbol=_u,C.isTypedArray=Ah,C.isUndefined=wu,C.isWeakMap=xu,C.isWeakSet=ku,C.join=Ca,C.kebabCase=Kh,C.last=Ea,C.lastIndexOf=$a,C.lowerCase=Gh,C.lowerFirst=Zh,C.lt=Th,C.lte=Dh,C.max=Jl,C.maxBy=Ql,C.mean=ec,C.meanBy=tc,C.min=nc,C.minBy=rc,C.stubArray=Ul,C.stubFalse=Vl,C.stubObject=Wl,C.stubString=Yl,C.stubTrue=Kl,C.multiply=gd,C.nth=Sa,C.noConflict=Il,C.noop=ql,C.now=lh,C.pad=dl,C.padEnd=pl,C.padStart=ml,C.parseInt=gl,C.random=sl,C.reduce=_s,C.reduceRight=ws,C.repeat=vl,C.replace=yl,C.result=Zu,C.round=vd,C.runInContext=_r,C.sample=ks,C.size=$s,C.snakeCase=Xh,C.some=Ss,C.sortedIndex=Oa,C.sortedIndexBy=ja,C.sortedIndexOf=Pa,C.sortedLastIndex=La,C.sortedLastIndexBy=Ra,C.sortedLastIndexOf=Ia,C.startCase=Jh,C.startsWith=_l,C.subtract=yd,C.sum=ic,C.sumBy=oc,C.template=wl,C.times=Gl,C.toFinite=Eu,C.toInteger=$u,C.toLength=Su,C.toLower=xl,C.toNumber=Au,C.toSafeInteger=Du,C.toString=Nu,C.toUpper=kl,C.trim=Cl,C.trimEnd=El,C.trimStart=$l,C.truncate=Sl,C.unescape=Al,C.uniqueId=Xl,C.upperCase=Qh,C.upperFirst=ed,C.each=ms,C.eachRight=gs,C.first=wa,Rl(C,function(){var e={};return ir(C,function(t,n){_c.call(C.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),C.VERSION=ee,i(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){C[e].placeholder=C}),i(["drop","take"],function(e,t){X.prototype[e]=function(n){n=n===Q?1:Gc($u(n),0);var r=this.__filtered__&&!t?new X(this):this.clone();return r.__filtered__?r.__takeCount__=Zc(n,r.__takeCount__):r.__views__.push({size:Zc(n,Me),type:e+(r.__dir__<0?"Right":"")}),r},X.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),i(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==$e||n==Ae;X.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Eo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),i(["head","last"],function(e,t){var n="take"+(t?"Right":"");X.prototype[e]=function(){return this[n](1).value()[0]}}),i(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[n](1)}}),X.prototype.compact=function(){return this.filter(Ol)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=oi(function(e,t){return"function"==typeof e?new X(this):this.map(function(n){return Ar(n,e,t)})}),X.prototype.reject=function(e){return this.filter(Ps(Eo(e)))},X.prototype.slice=function(e,t){e=$u(e);var n=this;return n.__filtered__&&(e>0||t<0)?new X(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==Q&&(t=$u(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(Me)},ir(X.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=C[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(C.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof X,u=a[0],l=s||wh(t),c=function(e){var t=i.apply(C,f([e],a));return r&&h?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=o&&!h,m=s&&!d;if(!o&&l){t=m?t:new X(this);var g=e.apply(t,a);return g.__actions__.push({func:ns,args:[c],thisArg:Q}),new Z(g,h)}return p&&m?e.apply(this,a):(g=this.thru(c),p?r?g.value()[0]:g.value():g)})}),i(["pop","push","shift","sort","splice","unshift"],function(e){var t=mc[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);C.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(wh(i)?i:[],e)}return this[n](function(n){return t.apply(wh(n)?n:[],e)})}}),ir(X.prototype,function(e,t){var n=C[t];if(n){var r=n.name+"",i=lf[r]||(lf[r]=[]);i.push({name:t,func:n})}}),lf[to(Q,de).name]=[{name:"wrapper",func:Q}],X.prototype.clone=Rt,X.prototype.reverse=Zt,X.prototype.value=Xt,C.prototype.at=eh,C.prototype.chain=rs,C.prototype.commit=is,C.prototype.next=os,C.prototype.plant=ss,C.prototype.reverse=us,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=ls,C.prototype.first=C.prototype.head,Pc&&(C.prototype[Pc]=as),C},br=yr();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(nr._=br,define(function(){return br})):ir?((ir.exports=br)._=br,rr._=br):nr._=br}.call(this),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.MessageFormat=e()}}(function(){var e;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(e,t,n){function r(e){this.mf=e,this.lc=null,this.locales={},this.runtime={},this.formatters={}}var i=e("reserved-words"),o=e("messageformat-parser").parse;t.exports=r,r.propname=function(e,t){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(e)&&["break","continue","delete","else","for","function","if","in","new","return","this","typeof","var","void","while","with","case","catch","default","do","finally","instanceof","switch","throw","try"].indexOf(e)<0)return t?t+"."+e:e;var n=JSON.stringify(e);return t?t+"["+n+"]":n},r.funcname=function(e){var t=e.trim().replace(/\W+/g,"_");return i.check(t,"es2015",!0)||/^\d/.test(t)?"_"+t:t},r.bidiMarkText=function(e,t){function n(e){var t=["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"];return new RegExp("^"+t.join("|^")).test(e)}var r=JSON.stringify(n(t)?"":"");return r+" + "+e+" + "+r},r.prototype.cases=function(e,t){var n=!0,i=e.cases.map(function(e){"other"===e.key&&(n=!1);var i=e.tokens.map(function(e){return this.token(e,t)},this);return r.propname(e.key)+": "+(i.join(" + ")||'""')},this);if(n)throw new Error("No 'other' form found in "+JSON.stringify(e));return"{ "+i.join(", ")+" }"},r.prototype.token=function(e,t){if("string"==typeof e)return JSON.stringify(e);var n,i=[r.propname(e.arg,"d")];switch(e.type){case"argument":return this.mf.bidiSupport?r.bidiMarkText(i[0],this.lc):i[0];case"select":n="select",i.push(this.cases(e,this.mf.strictNumberSign?null:t)),this.runtime.select=!0;break;case"selectordinal":n="plural",i.push(0,r.funcname(this.lc),this.cases(e,e),1),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"plural":n="plural",i.push(e.offset||0,r.funcname(this.lc),this.cases(e,e)),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"function":if(this.mf.intlSupport&&!(e.key in this.mf.fmt)&&e.key in this.mf.constructor.formatters){var o=this.mf.constructor.formatters[e.key];this.mf.fmt[e.key]="function"==typeof o(this.mf)?o(this.mf):o}if(!this.mf.fmt[e.key])throw new Error("Formatting function "+JSON.stringify(e.key)+" not found!");if(i.push(JSON.stringify(this.lc)),e.params)switch(e.params.length){case 0:break;case 1:i.push(JSON.stringify(e.params[0]));break;default:i.push(JSON.stringify(e.params))}n=r.propname(e.key,"fmt"),this.formatters[e.key]=!0;break;case"octothorpe":if(!t)return'"#"';n="number",i=[r.propname(t.arg,"d"),JSON.stringify(t.arg)],t.offset&&i.push(t.offset),this.runtime.number=!0}if(!n)throw new Error("Parser error for token "+JSON.stringify(e));return n+"("+i.join(", ")+")"},r.prototype.compile=function(e,t,n){if("object"!=typeof e){this.lc=t;var r=n[t]||{cardinal:[],ordinal:[]},i=o(e,r).map(function(e){return this.token(e)},this);return"function(d) { return "+(i.join(" + ")||'""')+"; }"}var a={};for(var s in e){var u=n.hasOwnProperty(s)?s:t;a[s]=this.compile(e[s],u,n)}return a}},{"messageformat-parser":8,"reserved-words":10}],2:[function(e,t,n){function r(t,n){for(var r=e("make-plural/plurals"),i=e("make-plural/pluralCategories"),o=t;o;o=o.replace(/[-_]?[^-_]*$/,"")){var a=r[o];if(a){var s=n?{cardinal:[],ordinal:[]}:i[o]||{},u=function(){return a.apply(this,arguments)};return u.toString=function(){return a.toString()},u.cardinal=s.cardinal,u.ordinal=s.ordinal,u}}throw new Error("Localisation function not found for locale "+JSON.stringify(t))}function i(e){if(this.pluralFuncs={},e)if("string"==typeof e)this.pluralFuncs[e]=r(e);else if(Array.isArray(e))e.forEach(function(e){this.pluralFuncs[e]=r(e)},this);else if("object"==typeof e)for(var t in e)if(e.hasOwnProperty(t)){if("function"!=typeof e[t])throw new Error("Expected function value for locale "+JSON.stringify(t));this.pluralFuncs[t]=e[t]}this.fmt={},this.runtime=new a(this)}var o=e("./compiler"),a=e("./runtime");i.defaultLocale="en",i.escape=function(e){return e.replace(/[#{}\\]/g,"\\$&")},i.formatters={number:function(e){return new Function("v,lc,p","return new Intl.NumberFormat(lc,\n p=='integer' ? {maximumFractionDigits:0}\n : p=='percent' ? {style:'percent'}\n : p=='currency' ? {style:'currency', currency:'"+(e.currency||"USD")+"', minimumFractionDigits:2, maximumFractionDigits:2}\n : {}).format(v)")},date:function(e,t,n){var r={day:"numeric",month:"short",year:"numeric"};switch(n){case"full":r.weekday="long";case"long":r.month="long";break;case"short":r.month="numeric"}return new Date(e).toLocaleDateString(t,r)},time:function(e,t,n){var r={second:"numeric",minute:"numeric",hour:"numeric"};switch(n){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}return new Date(e).toLocaleTimeString(t,r)}},i.prototype.addFormatters=function(e){for(var t in e)e.hasOwnProperty(t)&&(this.fmt[t]=e[t]);return this},i.prototype.disablePluralKeyChecks=function(){this.noPluralKeyChecks=!0;for(var e in this.pluralFuncs)this.pluralFuncs.hasOwnProperty(e)&&(this.pluralFuncs[e].cardinal=[],this.pluralFuncs[e].ordinal=[]);return this},i.prototype.setBiDiSupport=function(e){return this.bidiSupport=!!e||"undefined"==typeof e,this},i.prototype.setIntlSupport=function(e){return this.intlSupport=!!e||"undefined"==typeof e,this},i.prototype.setStrictNumberSign=function(e){return this.strictNumberSign=!!e||"undefined"==typeof e,this.runtime.setStrictNumber(this.strictNumberSign),this},i.prototype.compile=function(e,t){function n(e,t){if(t||(t=0),"object"!=typeof e)return e;for(var r=[],i="",a=0;a<t;++a)i+=" ";for(var s in e)r.push("\n"+i+" "+o.propname(s)+": "+n(e[s],t+1));return"{"+r.join(",")+"\n"+i+"}"}var a;if(0==Object.keys(this.pluralFuncs).length)t||(t=i.defaultLocale),a={},a[t]=r(t,this.noPluralKeyChecks);else if(t){if(a={},a[t]=this.pluralFuncs[t],!a[t])throw new Error("Locale "+JSON.stringify(t)+"not found in "+JSON.stringify(this.pluralFuncs)+"!")}else a=this.pluralFuncs,t=Object.keys(a)[0];var s=new o(this),u=s.compile(e,t,a);if("object"!=typeof e){var l=new Function("number, plural, select, fmt",o.funcname(t),"return "+u),c=this.runtime;return l(c.number,c.plural,c.select,this.fmt,a[t])}var f=this.runtime.toString(a,s)+"\n",h=n(u),d=new Function(f+"return "+h)();if(d.hasOwnProperty("toString"))throw new Error("The top-level message key `toString` is reserved");return d.toString=function(e){switch(e||""){case"exports":var t=[];for(var r in u)t.push(o.propname(r,"exports")+" = "+n(u[r]));return f+t.join(";\n");case"module.exports":return f+"module.exports = "+h;case"export default":return f+"export default "+h;case"":return f+"return "+h;default:return e.indexOf(".")>-1?f+e+" = "+h:f+["(function (root, G) {",' if (typeof define === "function" && define.amd) { define(G); }',' else if (typeof exports === "object") { module.exports = G; }'," else { "+o.propname(e,"root")+" = G; }","})(this, "+h+");"].join("\n")}},d},t.exports=i},{"./compiler":1,"./runtime":3,"make-plural/pluralCategories":6,"make-plural/plurals":7}],3:[function(e,t,n){function r(e){this.mf=e,this.setStrictNumber(e.strictNumberSign)}function i(e,t,n){if(!n)return e;if(isNaN(e))throw new Error("Can't apply offset:"+n+" to argument `"+t+"` with non-numerical value "+JSON.stringify(e)+".");return e-n}function o(e,t,n){if(isNaN(e))throw new Error("Argument `"+t+"` has non-numerical value "+JSON.stringify(e)+".");return e-(n||0)}var a=e("./compiler");t.exports=r,r.prototype.setStrictNumber=function(e){this.number=e?o:i},r.prototype.plural=function(e,t,n,r,i){if({}.hasOwnProperty.call(r,e))return r[e];t&&(e-=t);var o=n(e,i);return o in r?r[o]:r.other},r.prototype.select=function(e,t){return{}.hasOwnProperty.call(t,e)?t[e]:t.other},r.prototype.toString=function(e,t){function n(e,t){if("object"!=typeof e){var r=e.toString().replace(/^(function )\w*/,"$1"),i=/([ \t]*)\S.*$/.exec(r);return i?r.replace(new RegExp("^"+i[1],"mg"),""):r}var o=[];for(var s in e)0==t?o.push("var "+s+" = "+n(e[s],t+1)+";\n"):o.push(a.propname(s)+": "+n(e[s],t+1));if(0==t)return o.join("");if(0==o.length)return"{}";for(var i=" ";--t;)i+=" ";return"{\n"+o.join(",\n").replace(/^/gm,i)+"\n}"}var r={};Object.keys(t.locales).forEach(function(t){r[a.funcname(t)]=e[t]}),Object.keys(t.runtime).forEach(function(e){r[e]=this[e]},this);var i=Object.keys(t.formatters),o=this.mf.fmt;return i.length&&(r.fmt=i.reduce(function(e,t){return e[t]=o[t],e},{})),n(r,0)}},{"./compiler":1}],4:[function(e,t,n){function r(e,t){return d.isUndefined(t)?""+t:d.isNumber(t)&&!isFinite(t)?t.toString():d.isFunction(t)||d.isRegExp(t)?t.toString():t}function i(e,t){return d.isString(e)?e.length<t?e:e.slice(0,t):e}function o(e){return i(JSON.stringify(e.actual,r),128)+" "+e.operator+" "+i(JSON.stringify(e.expected,r),128)}function a(e,t,n,r,i){throw new g.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function s(e,t){e||a(e,!0,t,"==",g.ok)}function u(e,t){if(e===t)return!0;if(d.isBuffer(e)&&d.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return d.isDate(e)&&d.isDate(t)?e.getTime()===t.getTime():d.isRegExp(e)&&d.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:d.isObject(e)||d.isObject(t)?c(e,t):e==t}function l(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function c(e,t){if(d.isNullOrUndefined(e)||d.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(d.isPrimitive(e)||d.isPrimitive(t))return e===t;var n=l(e),r=l(t);if(n&&!r||!n&&r)return!1;if(n)return e=p.call(e),t=p.call(t),u(e,t);var i,o,a=v(e),s=v(t);if(a.length!=s.length)return!1;for(a.sort(),s.sort(),o=a.length-1;o>=0;o--)if(a[o]!=s[o])return!1;for(o=a.length-1;o>=0;o--)if(i=a[o],!u(e[i],t[i]))return!1;return!0}function f(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||t.call({},e)===!0)}function h(e,t,n,r){var i;d.isString(n)&&(r=n,n=null);try{t()}catch(o){i=o}if(r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&a(i,n,"Missing expected exception"+r),!e&&f(i,n)&&a(i,n,"Got unwanted exception"+r),e&&i&&n&&!f(i,n)||!e&&i)throw i}var d=e("util/"),p=Array.prototype.slice,m=Object.prototype.hasOwnProperty,g=t.exports=s;g.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=o(this),this.generatedMessage=!0);var t=e.stackStartFunction||a;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=t.name,s=r.indexOf("\n"+i);if(s>=0){var u=r.indexOf("\n",s+1);r=r.substring(u+1)}this.stack=r}}},d.inherits(g.AssertionError,Error),g.fail=a,g.ok=s,g.equal=function(e,t,n){e!=t&&a(e,t,n,"==",g.equal)},g.notEqual=function(e,t,n){e==t&&a(e,t,n,"!=",g.notEqual)},g.deepEqual=function(e,t,n){u(e,t)||a(e,t,n,"deepEqual",g.deepEqual)},g.notDeepEqual=function(e,t,n){u(e,t)&&a(e,t,n,"notDeepEqual",g.notDeepEqual)},g.strictEqual=function(e,t,n){e!==t&&a(e,t,n,"===",g.strictEqual)},g.notStrictEqual=function(e,t,n){e===t&&a(e,t,n,"!==",g.notStrictEqual)},g["throws"]=function(e,t,n){h.apply(this,[!0].concat(p.call(arguments)))},g.doesNotThrow=function(e,t){h.apply(this,[!1].concat(p.call(arguments)))},g.ifError=function(e){if(e)throw e};var v=Object.keys||function(e){var t=[];for(var n in e)m.call(e,n)&&t.push(n);return t}},{"util/":13}],5:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],6:[function(t,n,r){var i=[{cardinal:["other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["one","other"]},{cardinal:["one","two","other"],ordinal:["other"]}];!function(t,i){"function"==typeof e&&e.amd?e(i):"object"==typeof r?n.exports=i:t.pluralCategories=i}(this,{af:i[1],ak:i[1],am:i[1],ar:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},as:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},asa:i[1],ast:i[1],az:{cardinal:["one","other"],ordinal:["one","few","many","other"]},be:{cardinal:["one","few","many","other"],ordinal:["few","other"]},bem:i[1],bez:i[1],bg:i[1],bh:i[1],bm:i[0],bn:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},bo:i[0],br:{cardinal:["one","two","few","many","other"],ordinal:["other"]},brx:i[1],bs:{cardinal:["one","few","other"],ordinal:["other"]},ca:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:{cardinal:["one","few","many","other"],ordinal:["other"]},cy:{cardinal:["zero","one","two","few","many","other"],ordinal:["zero","one","two","few","many","other"]},da:i[1],de:i[1],dsb:{cardinal:["one","two","few","other"],ordinal:["other"]},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:{cardinal:["one","other"],ordinal:["one","two","few","other"]},eo:i[1],es:i[1],et:i[1],eu:i[1],fa:i[1],ff:i[1],fi:i[1],fil:i[2],fo:i[1],fr:i[2],fur:i[1],fy:i[1],ga:{cardinal:["one","two","few","many","other"],ordinal:["one","other"]},gd:{cardinal:["one","two","few","other"],ordinal:["other"]},gl:i[1],gsw:i[1],gu:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},guw:i[1],gv:{cardinal:["one","two","few","many","other"],ordinal:["other"]},ha:i[1],haw:i[1],he:{cardinal:["one","two","many","other"],ordinal:["other"]},hi:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},hr:{cardinal:["one","few","other"],ordinal:["other"]},hsb:{cardinal:["one","two","few","other"],ordinal:["other"]},hu:i[2],hy:i[2],id:i[0],ig:i[0],ii:i[0],"in":i[0],is:i[1],it:{cardinal:["one","other"],ordinal:["many","other"]},iu:i[3],iw:{cardinal:["one","two","many","other"],ordinal:["other"]},ja:i[0],jbo:i[0],jgo:i[1],ji:i[1],jmc:i[1],jv:i[0],jw:i[0],ka:{cardinal:["one","other"],ordinal:["one","many","other"]},kab:i[1],kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:{cardinal:["one","other"],ordinal:["many","other"]},kkj:i[1],kl:i[1],km:i[0],kn:i[1],ko:i[0],ks:i[1],ksb:i[1],ksh:{cardinal:["zero","one","other"],ordinal:["other"]},ku:i[1],kw:i[3],ky:i[1],lag:{cardinal:["zero","one","other"],ordinal:["other"]},lb:i[1],lg:i[1],lkt:i[0],ln:i[1],lo:{cardinal:["other"],ordinal:["one","other"]},lt:{cardinal:["one","few","many","other"],ordinal:["other"]},lv:{cardinal:["zero","one","other"],ordinal:["other"]},mas:i[1],mg:i[1],mgo:i[1],mk:{cardinal:["one","other"],ordinal:["one","two","many","other"]},ml:i[1],mn:i[1],mo:{cardinal:["one","few","other"],ordinal:["one","other"]},mr:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ms:{cardinal:["other"],ordinal:["one","other"]},mt:{cardinal:["one","few","many","other"],ordinal:["other"]},my:i[0],nah:i[1],naq:i[3],nb:i[1],nd:i[1],ne:i[2],nl:i[1],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[1],ny:i[1],nyn:i[1],om:i[1],or:i[1],os:i[1],pa:i[1],pap:i[1],pl:{cardinal:["one","few","many","other"],ordinal:["other"]},prg:{cardinal:["zero","one","other"],ordinal:["other"]},ps:i[1],pt:i[1],"pt-PT":i[1],rm:i[1],ro:{cardinal:["one","few","other"],ordinal:["one","other"]},rof:i[1],root:i[0],ru:{cardinal:["one","few","many","other"],ordinal:["other"]},rwk:i[1],sah:i[0],saq:i[1],sdh:i[1],se:i[3],seh:i[1],ses:i[0],sg:i[0],sh:{cardinal:["one","few","other"],ordinal:["other"]},shi:{cardinal:["one","few","other"],ordinal:["other"]},si:i[1],sk:{cardinal:["one","few","many","other"],ordinal:["other"]},sl:{cardinal:["one","two","few","other"],ordinal:["other"]},sma:i[3],smi:i[3],smj:i[3],smn:i[3],sms:i[3],sn:i[1],so:i[1],sq:{cardinal:["one","other"],ordinal:["one","many","other"]},sr:{cardinal:["one","few","other"],ordinal:["other"]},ss:i[1],ssy:i[1],st:i[1],sv:i[2],sw:i[1],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[1],tig:i[1],tk:i[1],tl:i[2],tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:i[1],ug:i[1],uk:{cardinal:["one","few","many","other"],ordinal:["few","other"]},ur:i[1],uz:i[1],ve:i[1],vi:{cardinal:["other"],ordinal:["one","other"]},vo:i[1],vun:i[1],wa:i[1],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[1],yo:i[0],zh:i[0],zu:i[1]})},{}],7:[function(t,n,r){var i=[function(e,t){return"other"},function(e,t){return t?"other":1==e?"one":"other"},function(e,t){return t?"other":0==e||1==e?"one":"other"},function(e,t){var n=String(e).split("."),r=!n[1];return t?"other":1==e&&r?"one":"other"}];!function(t,i){"function"==typeof e&&e.amd?e(i):"object"==typeof r?n.exports=i:t.plurals=i}(this,{af:i[1],ak:i[2],am:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ar:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":i>=3&&i<=10?"few":i>=11&&i<=99?"many":"other"},as:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},asa:i[1],ast:i[3],az:function(e,t){var n=String(e).split("."),r=n[0],i=r.slice(-1),o=r.slice(-2),a=r.slice(-3);return t?1==i||2==i||5==i||7==i||8==i||20==o||50==o||70==o||80==o?"one":3==i||4==i||100==a||200==a||300==a||400==a||500==a||600==a||700==a||800==a||900==a?"few":0==r||6==i||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},be:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?2!=i&&3!=i||12==o||13==o?"other":"few":1==i&&11!=o?"one":i>=2&&i<=4&&(o<12||o>14)?"few":r&&0==i||i>=5&&i<=9||o>=11&&o<=14?"many":"other";
|
||
},bem:i[1],bez:i[1],bg:i[1],bh:i[2],bm:i[0],bn:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},bo:i[0],br:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==i&&11!=o&&71!=o&&91!=o?"one":2==i&&12!=o&&72!=o&&92!=o?"two":(3==i||4==i||9==i)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=e&&r&&0==a?"many":"other"},brx:i[1],bs:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},ca:function(e,t){var n=String(e).split("."),r=!n[1];return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&r?"one":"other"},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1];return t?"other":1==e&&i?"one":r>=2&&r<=4&&i?"few":i?"other":"many"},cy:function(e,t){return t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e,t){var n=String(e).split("."),r=n[0],i=Number(n[0])==e;return t?"other":1!=e&&(i||0!=r&&1!=r)?"other":"one"},de:i[3],dsb:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-2),s=i.slice(-2);return t?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"},eo:i[1],es:i[1],et:i[3],eu:i[1],fa:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ff:function(e,t){return t?"other":e>=0&&e<2?"one":"other"},fi:i[3],fil:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=i.slice(-1);return t?1==e?"one":"other":o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},fo:i[1],fr:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},fur:i[1],fy:i[3],ga:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},gd:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},gl:i[3],gsw:i[1],gu:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},guw:i[2],gv:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":!i||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?i?"other":"many":"few"},ha:i[1],haw:i[1],he:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=Number(n[0])==e,a=o&&n[0].slice(-1);return t?"other":1==e&&i?"one":2==r&&i?"two":i&&(e<0||e>10)&&o&&0==a?"many":"other"},hi:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},hr:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},hsb:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-2),s=i.slice(-2);return t?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},hu:function(e,t){return t?1==e||5==e?"one":"other":1==e?"one":"other"},hy:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},id:i[0],ig:i[0],ii:i[0],"in":i[0],is:function(e,t){var n=String(e).split("."),r=n[0],i=Number(n[0])==e,o=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==o&&11!=a||!i?"one":"other"},it:function(e,t){var n=String(e).split("."),r=!n[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},iu:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},iw:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=Number(n[0])==e,a=o&&n[0].slice(-1);return t?"other":1==e&&i?"one":2==r&&i?"two":i&&(e<0||e>10)&&o&&0==a?"many":"other"},ja:i[0],jbo:i[0],jgo:i[1],ji:i[3],jmc:i[1],jv:i[0],jw:i[0],ka:function(e,t){var n=String(e).split("."),r=n[0],i=r.slice(-2);return t?1==r?"one":0==r||i>=2&&i<=20||40==i||60==i||80==i?"many":"other":1==e?"one":"other"},kab:function(e,t){return t?"other":e>=0&&e<2?"one":"other"},kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-1);return t?6==i||9==i||r&&0==i&&0!=e?"many":"other":1==e?"one":"other"},kkj:i[1],kl:i[1],km:i[0],kn:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ko:i[0],ks:i[1],ksb:i[1],ksh:function(e,t){return t?"other":0==e?"zero":1==e?"one":"other"},ku:i[1],kw:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},ky:i[1],lag:function(e,t){var n=String(e).split("."),r=n[0];return t?"other":0==e?"zero":0!=r&&1!=r||0==e?"other":"one"},lb:i[1],lg:i[1],lkt:i[0],ln:i[2],lo:function(e,t){return t&&1==e?"one":"other"},lt:function(e,t){var n=String(e).split("."),r=n[1]||"",i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?"other":1==o&&(a<11||a>19)?"one":o>=2&&o<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},lv:function(e,t){var n=String(e).split("."),r=n[1]||"",i=r.length,o=Number(n[0])==e,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-2),l=r.slice(-1);return t?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==l&&11!=u||2!=i&&1==l?"one":"other"},mas:i[1],mg:i[2],mgo:i[1],mk:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1);return t?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":o&&1==a||1==u?"one":"other"},ml:i[1],mn:i[1],mo:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},mr:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":e>=0&&e<=1?"one":"other"},ms:function(e,t){return t&&1==e?"one":"other"},mt:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-2);return t?"other":1==e?"one":0==e||i>=2&&i<=10?"few":i>=11&&i<=19?"many":"other"},my:i[0],nah:i[1],naq:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},nb:i[1],nd:i[1],ne:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},nl:i[3],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[2],ny:i[1],nyn:i[1],om:i[1],or:i[1],os:i[1],pa:i[2],pap:i[1],pl:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&i?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&1!=r&&(0==o||1==o)||i&&o>=5&&o<=9||i&&a>=12&&a<=14?"many":"other"},prg:function(e,t){var n=String(e).split("."),r=n[1]||"",i=r.length,o=Number(n[0])==e,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-2),l=r.slice(-1);return t?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==l&&11!=u||2!=i&&1==l?"one":"other"},ps:i[1],pt:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?"other":r&&e>=0&&e<=2&&2!=e?"one":"other"},"pt-PT":i[3],rm:i[1],ro:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},rof:i[1],root:i[0],ru:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==o&&11!=a?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&0==o||i&&o>=5&&o<=9||i&&a>=11&&a<=14?"many":"other"},rwk:i[1],sah:i[0],saq:i[1],sdh:i[1],se:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},seh:i[1],ses:i[0],sg:i[0],sh:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},shi:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},si:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"";return t?"other":0==e||1==e||0==r&&1==i?"one":"other"},sk:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1];return t?"other":1==e&&i?"one":r>=2&&r<=4&&i?"few":i?"other":"many"},sl:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":i&&(3==o||4==o)||!i?"few":"other"},sma:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smi:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smj:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smn:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sms:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sn:i[1],so:i[1],sq:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?1==e?"one":4==i&&14!=o?"many":"other":1==e?"one":"other"},sr:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},ss:i[1],ssy:i[1],st:i[1],sv:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1!=o&&2!=o||11==a||12==a?"other":"one":1==e&&r?"one":"other"},sw:i[3],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[2],tig:i[1],tk:i[1],tl:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=i.slice(-1);return t?1==e?"one":"other":o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},ug:i[1],uk:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=Number(n[0])==e,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-1),l=r.slice(-2);return t?3==a&&13!=s?"few":"other":i&&1==u&&11!=l?"one":i&&u>=2&&u<=4&&(l<12||l>14)?"few":i&&0==u||i&&u>=5&&u<=9||i&&l>=11&&l<=14?"many":"other"},ur:i[3],uz:i[1],ve:i[1],vi:function(e,t){return t&&1==e?"one":"other"},vo:i[1],vun:i[1],wa:i[2],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[3],yo:i[0],zh:i[0],zu:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"}})},{}],8:[function(e,t,n){"use strict";function r(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function i(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}function o(e,t){function n(e,t){return{type:"literal",text:e,ignoreCase:t}}function r(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function o(){return{type:"end"}}function a(e){return{type:"other",description:e}}function s(t){var n,r=Le[t];if(r)return r;for(n=t-1;!Le[n];)n--;for(r=Le[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Le[t]=r,r}function u(e,t){var n=s(e),r=s(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function l(e){je<Re||(je>Re&&(Re=je,Ie=[]),Ie.push(e))}function c(e,t,n){return new i(i.buildMessage(e,t),e,t,n)}function f(){var e,t;for(e=[],t=h();t!==T;)e.push(t),t=h();return e}function h(){var t,n,r;if(t=d(),t===T&&(t=p(),t===T&&(t=m(),t===T&&(t=g(),t===T&&(t=je,35===e.charCodeAt(je)?(n=F,je++):(n=T,0===qe&&l(M)),n!==T&&(Pe=t,n=O()),t=n,t===T))))){if(t=je,n=[],r=C(),r!==T)for(;r!==T;)n.push(r),r=C();else n=T;n!==T&&(Pe=t,n=j(n)),t=n}return t}function d(){var t,n,r,i,o,a;return t=je,123===e.charCodeAt(je)?(n=P,je++):(n=T,0===qe&&l(L)),n!==T?(r=S(),r!==T?(i=v(),i!==T?(o=S(),o!==T?(125===e.charCodeAt(je)?(a=R,je++):(a=T,0===qe&&l(I)),a!==T?(Pe=t,n=q(i),t=n):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T),t}function p(){var t,n,r,i,o,a,s,u,c,f,h,d,p,m;if(t=je,123===e.charCodeAt(je)?(n=P,je++):(n=T,0===qe&&l(L)),n!==T)if(r=S(),r!==T)if(i=v(),i!==T)if(o=S(),o!==T)if(44===e.charCodeAt(je)?(a=z,je++):(a=T,0===qe&&l(B)),a!==T)if(s=S(),s!==T)if(e.substr(je,6)===H?(u=H,je+=6):(u=T,0===qe&&l(U)),u!==T)if(c=S(),c!==T)if(44===e.charCodeAt(je)?(f=z,je++):(f=T,0===qe&&l(B)),f!==T)if(h=S(),h!==T){if(d=[],p=y(),p!==T)for(;p!==T;)d.push(p),p=y();else d=T;d!==T?(p=S(),p!==T?(125===e.charCodeAt(je)?(m=R,je++):(m=T,0===qe&&l(I)),m!==T?(Pe=t,n=V(i,d),t=n):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)}else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;return t}function m(){var t,n,r,i,o,a,s,u,c,f,h,d,p,m,g;if(t=je,123===e.charCodeAt(je)?(n=P,je++):(n=T,0===qe&&l(L)),n!==T)if(r=S(),r!==T)if(i=v(),i!==T)if(o=S(),o!==T)if(44===e.charCodeAt(je)?(a=z,je++):(a=T,0===qe&&l(B)),a!==T)if(s=S(),s!==T)if(e.substr(je,6)===W?(u=W,je+=6):(u=T,0===qe&&l(Y)),u===T&&(e.substr(je,13)===K?(u=K,je+=13):(u=T,0===qe&&l(G))),u!==T)if(c=S(),c!==T)if(44===e.charCodeAt(je)?(f=z,je++):(f=T,0===qe&&l(B)),f!==T)if(h=S(),h!==T)if(d=w(),d===T&&(d=null),d!==T){if(p=[],m=b(),m!==T)for(;m!==T;)p.push(m),m=b();else p=T;p!==T?(m=S(),m!==T?(125===e.charCodeAt(je)?(g=R,je++):(g=T,0===qe&&l(I)),g!==T?(Pe=t,n=Z(i,u,d,p),t=n):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)}else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;return t}function g(){var t,n,r,i,o,a,s,u,c,f,h;if(t=je,123===e.charCodeAt(je)?(n=P,je++):(n=T,0===qe&&l(L)),n!==T)if(r=S(),r!==T)if(i=v(),i!==T)if(o=S(),o!==T)if(44===e.charCodeAt(je)?(a=z,je++):(a=T,0===qe&&l(B)),a!==T)if(s=S(),s!==T)if(u=v(),u!==T)if(c=S(),c!==T){for(f=[],h=k();h!==T;)f.push(h),h=k();f!==T?(125===e.charCodeAt(je)?(h=R,je++):(h=T,0===qe&&l(I)),h!==T?(Pe=t,n=X(i,u,f),t=n):(je=t,t=T)):(je=t,t=T)}else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;else je=t,t=T;return t}function v(){var t,n,r,i,o;if(t=je,n=je,J.test(e.charAt(je))?(r=e.charAt(je),je++):(r=T,0===qe&&l(Q)),r!==T){for(i=[],ee.test(e.charAt(je))?(o=e.charAt(je),je++):(o=T,0===qe&&l(te));o!==T;)i.push(o),ee.test(e.charAt(je))?(o=e.charAt(je),je++):(o=T,0===qe&&l(te));i!==T?(r=[r,i],n=r):(je=n,n=T)}else je=n,n=T;return t=n!==T?e.substring(t,je):n}function y(){var e,t,n,r,i;return e=je,t=S(),t!==T?(n=v(),n!==T?(r=S(),r!==T?(i=_(),i!==T?(Pe=e,t=ne(n,i),e=t):(je=e,e=T)):(je=e,e=T)):(je=e,e=T)):(je=e,e=T),e}function b(){var e,t,n,r,i;return e=je,t=S(),t!==T?(n=x(),n!==T?(r=S(),r!==T?(i=_(),i!==T?(Pe=e,t=ne(n,i),e=t):(je=e,e=T)):(je=e,e=T)):(je=e,e=T)):(je=e,e=T),e}function _(){var t,n,r,i,o,a;if(t=je,123===e.charCodeAt(je)?(n=P,je++):(n=T,0===qe&&l(L)),n!==T)if(r=je,i=S(),i!==T?(o=je,qe++,123===e.charCodeAt(je)?(a=P,je++):(a=T,0===qe&&l(L)),qe--,a!==T?(je=o,o=void 0):o=T,o!==T?(i=[i,o],r=i):(je=r,r=T)):(je=r,r=T),r===T&&(r=null),r!==T){for(i=[],o=h();o!==T;)i.push(o),o=h();i!==T?(o=S(),o!==T?(125===e.charCodeAt(je)?(a=R,je++):(a=T,0===qe&&l(I)),a!==T?(Pe=t,n=re(i),t=n):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)}else je=t,t=T;else je=t,t=T;return t}function w(){var t,n,r,i,o,a,s,u;return t=je,n=S(),n!==T?(e.substr(je,6)===ie?(r=ie,je+=6):(r=T,0===qe&&l(oe)),r!==T?(i=S(),i!==T?(58===e.charCodeAt(je)?(o=ae,je++):(o=T,0===qe&&l(se)),o!==T?(a=S(),a!==T?(s=E(),s!==T?(u=S(),u!==T?(Pe=t,n=ue(s),t=n):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T),t}function x(){var t,n,r;return t=v(),t===T&&(t=je,61===e.charCodeAt(je)?(n=le,je++):(n=T,0===qe&&l(ce)),n!==T?(r=E(),r!==T?(Pe=t,n=ue(r),t=n):(je=t,t=T)):(je=t,t=T)),t}function k(){var t,n,r,i,o,a;return t=je,n=S(),n!==T?(44===e.charCodeAt(je)?(r=z,je++):(r=T,0===qe&&l(B)),r!==T?(i=S(),i!==T?(o=v(),o!==T?(a=S(),a!==T?(Pe=t,n=fe(o),t=n):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T),t}function C(){var t,n,r,i,o,a;return he.test(e.charAt(je))?(t=e.charAt(je),je++):(t=T,0===qe&&l(de)),t===T&&(t=je,e.substr(je,2)===pe?(n=pe,je+=2):(n=T,0===qe&&l(me)),n!==T&&(Pe=t,n=ge()),t=n,t===T&&(t=je,e.substr(je,2)===ve?(n=ve,je+=2):(n=T,0===qe&&l(ye)),n!==T&&(Pe=t,n=be()),t=n,t===T&&(t=je,e.substr(je,2)===_e?(n=_e,je+=2):(n=T,0===qe&&l(we)),n!==T&&(Pe=t,n=xe()),t=n,t===T&&(t=je,e.substr(je,2)===ke?(n=ke,je+=2):(n=T,0===qe&&l(Ce)),n!==T&&(Pe=t,n=Ee()),t=n,t===T&&(t=je,e.substr(je,2)===$e?(n=$e,je+=2):(n=T,0===qe&&l(Se)),n!==T?(r=$(),r!==T?(i=$(),i!==T?(o=$(),o!==T?(a=$(),a!==T?(Pe=t,n=Ae(r,i,o,a),t=n):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)):(je=t,t=T)))))),t}function E(){var t,n,r;if(t=je,n=[],Te.test(e.charAt(je))?(r=e.charAt(je),je++):(r=T,0===qe&&l(De)),r!==T)for(;r!==T;)n.push(r),Te.test(e.charAt(je))?(r=e.charAt(je),je++):(r=T,0===qe&&l(De));else n=T;return t=n!==T?e.substring(t,je):n}function $(){var t;return Ne.test(e.charAt(je))?(t=e.charAt(je),je++):(t=T,0===qe&&l(Fe)),t}function S(){var t,n,r;for(t=je,n=[],Me.test(e.charAt(je))?(r=e.charAt(je),je++):(r=T,0===qe&&l(Oe));r!==T;)n.push(r),Me.test(e.charAt(je))?(r=e.charAt(je),je++):(r=T,0===qe&&l(Oe));return t=n!==T?e.substring(t,je):n}t=void 0!==t?t:{};var A,T={},D={start:f},N=f,F="#",M=n("#",!1),O=function(){return{type:"octothorpe"}},j=function(e){return e.join("")},P="{",L=n("{",!1),R="}",I=n("}",!1),q=function(e){return{type:"argument",arg:e}},z=",",B=n(",",!1),H="select",U=n("select",!1),V=function(e,t){return{type:"select",arg:e,cases:t}},W="plural",Y=n("plural",!1),K="selectordinal",G=n("selectordinal",!1),Z=function(e,n,r,i){var o=("selectordinal"===n?t.ordinal:t.cardinal)||["zero","one","two","few","many","other"];return o&&o.length&&i.forEach(function(t){if(isNaN(t.key)&&o.indexOf(t.key)<0)throw new Error("Invalid key `"+t.key+"` for argument `"+e+"`. Valid "+n+" keys for this locale are `"+o.join("`, `")+"`, and explicit keys like `=0`.")}),{type:n,arg:e,offset:r||0,cases:i}},X=function(e,t,n){return{type:"function",arg:e,key:t,params:n}},J=/^[0-9a-zA-Z$_]/,Q=r([["0","9"],["a","z"],["A","Z"],"$","_"],!1,!1),ee=/^[^ \t\n\r,.+={}]/,te=r([" ","\t","\n","\r",",",".","+","=","{","}"],!0,!1),ne=function(e,t){return{key:e,tokens:t}},re=function(e){return e},ie="offset",oe=n("offset",!1),ae=":",se=n(":",!1),ue=function(e){return e},le="=",ce=n("=",!1),fe=function(e){return e},he=/^[^{}#\\\0-\x08\x0E-\x1F\x7F]/,de=r(["{","}","#","\\",["\0","\b"],["",""],""],!0,!1),pe="\\\\",me=n("\\\\",!1),ge=function(){return"\\"},ve="\\#",ye=n("\\#",!1),be=function(){return"#"},_e="\\{",we=n("\\{",!1),xe=function(){return"{"},ke="\\}",Ce=n("\\}",!1),Ee=function(){return"}"},$e="\\u",Se=n("\\u",!1),Ae=function(e,t,n,r){return String.fromCharCode(parseInt("0x"+e+t+n+r))},Te=/^[0-9]/,De=r([["0","9"]],!1,!1),Ne=/^[0-9a-fA-F]/,Fe=r([["0","9"],["a","f"],["A","F"]],!1,!1),Me=/^[ \t\n\r]/,Oe=r([" ","\t","\n","\r"],!1,!1),je=0,Pe=0,Le=[{line:1,column:1}],Re=0,Ie=[],qe=0;if("startRule"in t){if(!(t.startRule in D))throw new Error("Can't start parsing from rule \""+t.startRule+'".');N=D[t.startRule]}if(A=N(),A!==T&&je===e.length)return A;throw A!==T&&je<e.length&&l(o()),c(Ie,Re<e.length?e.charAt(Re):null,Re<e.length?u(Re,Re+1):u(Re,Re))}r(i,Error),i.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function o(e){return u[e.type](e)}function a(e){var t,n,r=new Array(e.length);for(t=0;t<e.length;t++)r[t]=o(e[t]);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}function s(e){return e?'"'+r(e)+'"':"end of input"}var u={literal:function(e){return'"'+r(e.text)+'"'},"class":function(e){var t,n="";for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?i(e.parts[t][0])+"-"+i(e.parts[t][1]):i(e.parts[t]);return"["+(e.inverted?"^":"")+n+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};return"Expected "+a(e)+" but "+s(t)+" found."},t.exports={SyntaxError:i,parse:o}},{}],9:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function a(e){if(h===clearTimeout)return clearTimeout(e);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(e);try{return h(e)}catch(t){try{return h.call(null,e)}catch(t){return h.call(this,e)}}}function s(){g&&p&&(g=!1,p.length?m=p.concat(m):v=-1,m.length&&u())}function u(){if(!g){var e=o(s);g=!0;for(var t=m.length;t;){for(p=m,m=[];++v<t;)p&&p[v].run();v=-1,t=m.length}p=null,g=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var f,h,d=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(e){f=r}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(e){h=i}}();var p,m=[],g=!1,v=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new l(e,t)),1!==m.length||g||o(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],10:[function(e,t,n){t.exports=e("./reserved-words")},{"./reserved-words":11}],11:[function(e,t,n){function r(){var e=Array.prototype.map.call(arguments,function(e){return"string"==typeof e?e:Object.keys(e).join(" ")}).join(" ");return e.split(/\s+/).reduce(function(e,t){return e[t]=!0,e},{})}var i=e("assert"),o={es3:3,es5:5,es2015:6,es7:7,es6:6,"default":5,next:6},a=n.KEYWORDS={};n.check=function(e,t,n){t=t||o["default"];var r=o[t]||t;return n&&r>=5&&(r+="-strict"),i(a[r],"Unknown dialect"),a[r][e]},a[3]=r("break else new var","case finally return void","catch for switch while","continue function this with","default if throw","delete in try","do instanceof typeof","abstract enum int short","boolean export interface static","byte extends long super","char final native synchronized","class float package throws","const goto private transient","debugger implements protected volatile","double import public","null true false"),a[5]=r("break do instanceof typeof","case else new var","catch finally return void","continue for switch while","debugger function this with","default if throw","delete in try","class enum extends super","const export import","null true false"),a["5-strict"]=r(a[5],"implements let private public yield","interface package protected static"),a[6]=r("break do in typeof","case else instanceof var","catch export new void","class extends return while","const finally super with","continue for switch yield","debugger function this","default if throw","delete import try","enum await","null true false"),a["6-strict"]=r(a[6],"let static","implements package protected","interface private public")},{assert:4}],12:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],13:[function(e,t,n){(function(t,r){function i(e,t){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&n._extend(r,t),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,e,r.depth)}function o(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(e,t,r){if(e.customInspect&&t&&$(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return b(i)||(i=u(e,i,r)),i}var o=l(e,t);if(o)return o;var a=Object.keys(t),m=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),E(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(t);if(0===a.length){if($(t)){var g=t.name?": "+t.name:"";return e.stylize("[Function"+g+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(C(t))return e.stylize(Date.prototype.toString.call(t),"date");if(E(t))return c(t)}var v="",y=!1,_=["{","}"];if(p(t)&&(y=!0,_=["[","]"]),$(t)){var w=t.name?": "+t.name:"";v=" [Function"+w+"]"}if(x(t)&&(v=" "+RegExp.prototype.toString.call(t)),C(t)&&(v=" "+Date.prototype.toUTCString.call(t)),E(t)&&(v=" "+c(t)),0===a.length&&(!y||0==t.length))return _[0]+v+_[1];if(r<0)return x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return k=y?f(e,t,r,m,a):a.map(function(n){return h(e,t,r,m,n,y)}),e.seen.pop(),d(k,v,_)}function l(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)N(t,String(a))?o.push(h(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))}),o}function h(e,t,n,r,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?u(e,l.value,null):u(e,l.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e,t,n){var r=0,i=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function v(e){return null==e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function _(e){return"symbol"==typeof e}function w(e){return void 0===e}function x(e){return k(e)&&"[object RegExp]"===A(e)}function k(e){return"object"==typeof e&&null!==e}function C(e){return k(e)&&"[object Date]"===A(e)}function E(e){return k(e)&&("[object Error]"===A(e)||e instanceof Error)}function $(e){return"function"==typeof e}function S(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function A(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}function D(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var F=/%[sdj%]/g;n.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(i(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(F,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),s=r[n];n<o;s=r[++n])a+=g(s)||!k(s)?" "+s:" "+i(s);return a},n.deprecate=function(e,i){function o(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}if(w(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var a=!1;return o};var M,O={};n.debuglog=function(e){if(w(M)&&(M=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!O[e])if(new RegExp("\\b"+e+"\\b","i").test(M)){var r=t.pid;O[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else O[e]=function(){};return O[e]},n.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=m,n.isNull=g,n.isNullOrUndefined=v,n.isNumber=y,n.isString=b,n.isSymbol=_,n.isUndefined=w,n.isRegExp=x,n.isObject=k,n.isDate=C,n.isError=E,n.isFunction=$,n.isPrimitive=S,n.isBuffer=e("./support/isBuffer");var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",D(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!k(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":12,_process:9,inherits:5}]},{},[2])(2)}),function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(e?e+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+i;return n<o.length?ye(o[n]):e}),s+="\nhttp://errors.angularjs.org/1.5.5/"+(e?e+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(ye(o[r]));return new t(s)}}function n(e){if(null==e||$(e))return!1;if(Wr(e)||w(e)||jr&&e instanceof jr)return!0;var t="length"in Object(e)&&e.length;return x(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function r(e,t,i){var o,a;if(e)if(C(e))for(o in e)"prototype"==o||"length"==o||"name"==o||e.hasOwnProperty&&!e.hasOwnProperty(o)||t.call(i,e[o],o,e);else if(Wr(e)||n(e)){var s="object"!=typeof e;for(o=0,a=e.length;o<a;o++)(s||o in e)&&t.call(i,e[o],o,e)}else if(e.forEach&&e.forEach!==r)e.forEach(t,i,e);else if(_(e))for(o in e)t.call(i,e[o],o,e);else if("function"==typeof e.hasOwnProperty)for(o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e);else for(o in e)Tr.call(e,o)&&t.call(i,e[o],o,e);
|
||
return e}function i(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function o(e){return function(t,n){e(n,t)}}function a(){return++Vr}function s(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function u(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(b(a)||C(a))for(var l=Object.keys(a),c=0,f=l.length;c<f;c++){var h=l[c],d=a[h];n&&b(d)?k(d)?e[h]=new Date(d.valueOf()):E(d)?e[h]=new RegExp(d):d.nodeName?e[h]=d.cloneNode(!0):j(d)?e[h]=d.clone():(b(e[h])||(e[h]=Wr(d)?[]:{}),u(e[h],[d],!0)):e[h]=d}}return s(e,r),e}function l(e){return u(e,Rr.call(arguments,1),!1)}function c(e){return u(e,Rr.call(arguments,1),!0)}function f(e){return parseInt(e,10)}function h(e,t){return l(Object.create(e),t)}function d(){}function p(e){return e}function m(e){return function(){return e}}function g(e){return C(e.toString)&&e.toString!==zr}function v(e){return"undefined"==typeof e}function y(e){return"undefined"!=typeof e}function b(e){return null!==e&&"object"==typeof e}function _(e){return null!==e&&"object"==typeof e&&!Br(e)}function w(e){return"string"==typeof e}function x(e){return"number"==typeof e}function k(e){return"[object Date]"===zr.call(e)}function C(e){return"function"==typeof e}function E(e){return"[object RegExp]"===zr.call(e)}function $(e){return e&&e.window===e}function S(e){return e&&e.$evalAsync&&e.$watch}function A(e){return"[object File]"===zr.call(e)}function T(e){return"[object FormData]"===zr.call(e)}function D(e){return"[object Blob]"===zr.call(e)}function N(e){return"boolean"==typeof e}function F(e){return e&&C(e.then)}function M(e){return e&&x(e.length)&&Yr.test(zr.call(e))}function O(e){return"[object ArrayBuffer]"===zr.call(e)}function j(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function P(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function L(e){return Dr(e.nodeName||e[0]&&e[0].nodeName)}function R(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function I(e,t){function n(e,t){var n,r=t.$$hashKey;if(Wr(e))for(var o=0,a=e.length;o<a;o++)t.push(i(e[o]));else if(_(e))for(n in e)t[n]=i(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=i(e[n]));else for(n in e)Tr.call(e,n)&&(t[n]=i(e[n]));return s(t,r),t}function i(e){if(!b(e))return e;var t=a.indexOf(e);if(t!==-1)return u[t];if($(e)||S(e))throw Hr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=o(e);return void 0===i&&(i=Wr(e)?[]:Object.create(Br(e)),r=!0),a.push(e),u.push(i),r?n(e,i):i}function o(e){switch(zr.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(i(e.buffer));case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(C(e.cloneNode))return e.cloneNode(!0)}var a=[],u=[];if(t){if(M(t)||O(t))throw Hr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Hr("cpi","Can't copy! Source and destination are identical.");return Wr(t)?t.length=0:r(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),a.push(e),u.push(t),n(e,t)}return i(e)}function q(e,t){if(Wr(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(b(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function z(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,a=typeof t;if(o==a&&"object"==o){if(!Wr(e)){if(k(e))return!!k(t)&&z(e.getTime(),t.getTime());if(E(e))return!!E(t)&&e.toString()==t.toString();if(S(e)||S(t)||$(e)||$(t)||Wr(t)||k(t)||E(t))return!1;i=me();for(r in e)if("$"!==r.charAt(0)&&!C(e[r])){if(!z(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&y(t[r])&&!C(t[r]))return!1;return!0}if(!Wr(t))return!1;if((n=e.length)==t.length){for(r=0;r<n;r++)if(!z(e[r],t[r]))return!1;return!0}}return!1}function B(e,t,n){return e.concat(Rr.call(t,n))}function H(e,t){return Rr.call(e,t||0)}function U(e,t){var n=arguments.length>2?H(arguments,2):[];return!C(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,B(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function V(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:$(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":S(n)&&(r="$SCOPE"),r}function W(e,t){if(!v(e))return x(t)||(t=t?2:null),JSON.stringify(e,V,t)}function Y(e){return w(e)?JSON.parse(e):e}function K(e,t){e=e.replace(Jr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function G(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Z(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset(),i=K(t,r);return G(e,n*(i-r))}function X(e){e=jr(e).clone();try{e.empty()}catch(t){}var n=jr("<div>").append(e).html();try{return e[0].nodeType===ii?Dr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Dr(t)})}catch(t){return Dr(n)}}function J(e){try{return decodeURIComponent(e)}catch(t){}}function Q(e){var t={};return r((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),n!==-1&&(r=e.substring(0,n),i=e.substring(n+1)),r=J(r),y(r)&&(i=!y(i)||J(i),Tr.call(t,r)?Wr(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function ee(e){var t=[];return r(e,function(e,n){Wr(e)?r(e,function(e){t.push(ne(n,!0)+(e===!0?"":"="+ne(e,!0)))}):t.push(ne(n,!0)+(e===!0?"":"="+ne(e,!0)))}),t.length?t.join("&"):""}function te(e){return ne(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ne(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function re(e,t){var n,r,i=Qr.length;for(r=0;r<i;++r)if(n=Qr[r]+t,w(n=e.getAttribute(n)))return n;return null}function ie(e,t){var n,i,o={};r(Qr,function(t){var r=t+"app";!n&&e.hasAttribute&&e.hasAttribute(r)&&(n=e,i=e.getAttribute(r))}),r(Qr,function(t){var r,o=t+"app";!n&&(r=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))}),n&&(o.strictDi=null!==re(n,"strict-di"),t(n,i?[i]:[],o))}function oe(t,n,i){b(i)||(i={});var o={strictDi:!1};i=l(o,i);var a=function(){if(t=jr(t),t.injector()){var r=t[0]===e.document?"document":X(t);throw Hr("btstrpd","App already bootstrapped with this element '{0}'",r.replace(/</,"<").replace(/>/,">"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=nt(n,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return e&&s.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!u.test(e.name)?a():(e.name=e.name.replace(u,""),Ur.resumeBootstrap=function(e){return r(e,function(e){n.push(e)}),a()},void(C(Ur.resumeDeferredBootstrap)&&Ur.resumeDeferredBootstrap()))}function ae(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function se(e){var t=Ur.element(e).injector();if(!t)throw Hr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function ue(e,t){return t=t||"_",e.replace(ei,function(e,n){return(n?t:"")+e.toLowerCase()})}function le(){var t;if(!ti){var n=Xr();Pr=v(n)?e.jQuery:n?e[n]:void 0,Pr&&Pr.fn.on?(jr=Pr,l(Pr.fn,{scope:ki.scope,isolateScope:ki.isolateScope,controller:ki.controller,injector:ki.injector,inheritedData:ki.inheritedData}),t=Pr.cleanData,Pr.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)n=Pr._data(r,"events"),n&&n.$destroy&&Pr(r).triggerHandler("$destroy");t(e)}):jr=Te,Ur.element=jr,ti=!0}}function ce(e,t,n){if(!e)throw Hr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function fe(e,t,n){return n&&Wr(e)&&(e=e[e.length-1]),ce(C(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function he(e,t){if("hasOwnProperty"===e)throw Hr("badname","hasOwnProperty is not a valid {0} name",t)}function de(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&C(e)?U(o,e):e}function pe(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=jr(Rr.call(e,0,i))),t.push(n));return t||e}function me(){return Object.create(null)}function ge(e){function n(e,t,n){return e[t]||(e[t]=n())}var r=t("$injector"),i=t("ng"),o=n(e,"angular",Object);return o.$$minErr=o.$$minErr||t,n(o,"module",function(){var e={};return function(t,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(t,"module"),o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,r){return r||(r=i),function(){return r[n||"push"]([e,t,arguments]),c}}function n(e,n){return function(r,o){return o&&C(o)&&(o.$$moduleName=t),i.push([e,n,arguments]),c}}if(!o)throw r("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.",t);var i=[],s=[],u=[],l=e("$injector","invoke","push",s),c={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(e){return u.push(e),this}};return a&&l(a),c})}})}function ve(e){var t=[];return JSON.stringify(e,function(e,n){if(n=V(e,n),b(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}function ye(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):v(e)?"undefined":"string"!=typeof e?ve(e):e}function be(n){l(n,{bootstrap:oe,copy:I,extend:l,merge:c,equals:z,element:jr,forEach:r,injector:nt,noop:d,bind:U,toJson:W,fromJson:Y,identity:p,isUndefined:v,isDefined:y,isString:w,isFunction:C,isObject:b,isNumber:x,isElement:j,isArray:Wr,version:ui,isDate:k,lowercase:Dr,uppercase:Nr,callbacks:{counter:0},getTestability:se,$$minErr:t,$$csp:Zr,reloadWithDebugInfo:ae}),(Lr=ge(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:kn}),e.provider("$compile",dt).directive({a:No,input:Zo,textarea:Zo,form:Po,script:Va,select:Ka,style:Za,option:Ga,ngBind:Qo,ngBindHtml:ta,ngBindTemplate:ea,ngClass:ra,ngClassEven:oa,ngClassOdd:ia,ngCloak:aa,ngController:sa,ngForm:Lo,ngHide:Ra,ngIf:ca,ngInclude:fa,ngInit:da,ngNonBindable:Ta,ngPluralize:Ma,ngRepeat:Oa,ngShow:La,ngStyle:Ia,ngSwitch:qa,ngSwitchWhen:za,ngSwitchDefault:Ba,ngOptions:Fa,ngTransclude:Ua,ngModel:$a,ngList:pa,ngChange:na,pattern:Ja,ngPattern:Ja,required:Xa,ngRequired:Xa,minlength:es,ngMinlength:es,maxlength:Qa,ngMaxlength:Qa,ngValue:Jo,ngModelOptions:Aa}).directive({ngInclude:ha}).directive(Fo).directive(ua),e.provider({$anchorScroll:rt,$animate:Ii,$animateCss:Bi,$$animateJs:Li,$$animateQueue:Ri,$$AnimateRunner:zi,$$animateAsyncRun:qi,$browser:lt,$cacheFactory:ct,$controller:bt,$document:_t,$exceptionHandler:wt,$filter:Ln,$$forceReflow:Ki,$interpolate:jt,$interval:Pt,$http:Nt,$httpParamSerializer:kt,$httpParamSerializerJQLike:Ct,$httpBackend:Mt,$xhrFactory:Ft,$location:Zt,$log:Xt,$parse:vn,$rootScope:xn,$q:yn,$$q:bn,$sce:Sn,$sceDelegate:$n,$sniffer:An,$templateCache:ft,$templateRequest:Tn,$$testability:Dn,$timeout:Nn,$window:On,$$rAF:wn,$$jqLite:Ze,$$HashMap:Si,$$cookieReader:Pn})}])}function _e(){return++ci}function we(e){return e.replace(di,function(e,t,n,r){return r?n.toUpperCase():n}).replace(pi,"Moz$1")}function xe(e){return!yi.test(e)}function ke(e){var t=e.nodeType;return t===ni||!t||t===ai}function Ce(e){for(var t in li[e.ng339])return!0;return!1}function Ee(e){for(var t=0,n=e.length;t<n;t++)Me(e[t])}function $e(e,t){var n,i,o,a,s=t.createDocumentFragment(),u=[];if(xe(e))u.push(t.createTextNode(e));else{for(n=n||s.appendChild(t.createElement("div")),i=(bi.exec(e)||["",""])[1].toLowerCase(),o=wi[i]||wi._default,n.innerHTML=o[1]+e.replace(_i,"<$1></$2>")+o[2],a=o[0];a--;)n=n.lastChild;u=B(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",r(u,function(e){s.appendChild(e)}),s}function Se(t,n){n=n||e.document;var r;return(r=vi.exec(t))?[n.createElement(r[1])]:(r=$e(t,n))?r.childNodes:[]}function Ae(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Te(e){if(e instanceof Te)return e;var t;if(w(e)&&(e=Kr(e),t=!0),!(this instanceof Te)){if(t&&"<"!=e.charAt(0))throw gi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Te(e)}t?Ie(this,Se(e)):Ie(this,e)}function De(e){return e.cloneNode(!0)}function Ne(e,t){if(t||Me(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Me(n[r])}function Fe(e,t,n,i){if(y(i))throw gi("offargs","jqLite#off() does not support the `selector` argument");var o=Oe(e),a=o&&o.events,s=o&&o.handle;if(s)if(t){var u=function(t){var r=a[t];y(n)&&R(r||[],n),y(n)&&r&&r.length>0||(hi(e,t,s),delete a[t])};r(t.split(" "),function(e){u(e),mi[e]&&u(mi[e])})}else for(t in a)"$destroy"!==t&&hi(e,t,s),delete a[t]}function Me(e,t){var n=e.ng339,r=n&&li[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Fe(e)),delete li[n],e.ng339=void 0}}function Oe(e,t){var n=e.ng339,r=n&&li[n];return t&&!r&&(e.ng339=n=_e(),r=li[n]={events:{},data:{},handle:void 0}),r}function je(e,t,n){if(ke(e)){var r=y(n),i=!r&&t&&!b(t),o=!t,a=Oe(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];l(s,t)}}}function Pe(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Le(e,t){t&&e.setAttribute&&r(t.split(" "),function(t){e.setAttribute("class",Kr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Kr(t)+" "," ")))})}function Re(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(e){e=Kr(e),n.indexOf(" "+e+" ")===-1&&(n+=e+" ")}),e.setAttribute("class",Kr(n))}}function Ie(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function qe(e,t){return ze(e,"$"+(t||"ngController")+"Controller")}function ze(e,t,n){e.nodeType==ai&&(e=e.documentElement);for(var r=Wr(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(y(n=jr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===si&&e.host}}function Be(e){for(Ne(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function He(e,t){t||Ne(e);var n=e.parentNode;n&&n.removeChild(e)}function Ue(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):jr(n).on("load",t)}function Ve(e,t){var n=Ci[t.toLowerCase()];return n&&Ei[L(e)]&&n}function We(e){return $i[e]}function Ye(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(v(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};var s=i.specialHandlerWrapper||Ke;o>1&&(i=q(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}function Ke(e,t,n){n.call(e,t)}function Ge(e,t,n){var r=t.relatedTarget;r&&(r===e||xi.call(e,r))||n.call(e,t)}function Ze(){this.$get=function(){return l(Te,{hasClass:function(e,t){return e.attr&&(e=e[0]),Pe(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Re(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Le(e,t)}})}}function Xe(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"==r||"object"==r&&null!==e?e.$$hashKey=r+":"+(t||a)():r+":"+e}function Je(e,t){if(t){var n=0;this.nextUid=function(){return++n}}r(e,this.put,this)}function Qe(e){var t=Function.prototype.toString.call(e).replace(Fi,""),n=t.match(Ai)||t.match(Ti);return n}function et(e){var t=Qe(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function tt(e,t,n){var i,o,a;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw w(n)&&n||(n=e.name||et(e)),Mi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o=Qe(e),r(o[1].split(Di),function(e){e.replace(Ni,function(e,t,n){i.push(n)})})}e.$inject=i}}else Wr(e)?(a=e.length-1,fe(e[a],"fn"),i=e.slice(0,a)):fe(e,"fn",!0);return i}function nt(e,t){function n(e){return function(t,n){return b(t)?void r(t,o(e)):e(t,n)}}function i(e,t){if(he(e,"service"),(C(t)||Wr(t))&&(t=k.instantiate(t)),!t.$get)throw Mi("pget","Provider '{0}' must define $get factory method.",e);return x[e+g]=t}function a(e,t){return function(){var n=S.invoke(t,this);if(v(n))throw Mi("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return i(e,{$get:n!==!1?a(e,t):t})}function u(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function l(e,t){return s(e,m(t),!1)}function c(e,t){he(e,"constant"),x[e]=t,E[e]=t}function f(e,t){var n=k.get(e+g),r=n.$get;n.$get=function(){var e=S.invoke(r,n);return S.invoke(t,null,{$delegate:e})}}function h(e){ce(v(e)||Wr(e),"modulesToLoad","not an array");var t,n=[];return r(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=k.get(r[0]);i[r[1]].apply(i,r[2])}}if(!_.get(e)){_.put(e,!0);try{w(e)?(t=Lr(e),n=n.concat(h(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):C(e)?n.push(k.invoke(e)):Wr(e)?n.push(k.invoke(e)):fe(e,"module")}catch(i){throw Wr(e)&&(e=e[e.length-1]),i.message&&i.stack&&i.stack.indexOf(i.message)==-1&&(i=i.message+"\n"+i.stack),Mi("modulerr","Failed to instantiate module {0} due to:\n{1}",e,i.stack||i.message||i)}}}),n}function d(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===p)throw Mi("cdep","Circular dependency found: {0}",t+" <- "+y.join(" <- "));return e[t]}try{return y.unshift(t),e[t]=p,e[t]=n(t,r)}catch(i){throw e[t]===p&&delete e[t],i}finally{y.shift()}}function i(e,n,i){for(var o=[],a=nt.$$annotate(e,t,i),s=0,u=a.length;s<u;s++){var l=a[s];if("string"!=typeof l)throw Mi("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(e){return!(Or<=11)&&("function"==typeof e&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(e)))}function a(e,t,n,r){"string"==typeof n&&(r=n,n=null);var a=i(e,n,r);return Wr(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var r=Wr(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:nt.$$annotate,has:function(t){return x.hasOwnProperty(t+g)||e.hasOwnProperty(t)}}}t=t===!0;var p={},g="Provider",y=[],_=new Je([],(!0)),x={$provide:{provider:n(i),factory:n(s),service:n(u),value:n(l),constant:n(c),decorator:f}},k=x.$injector=d(x,function(e,t){throw Ur.isString(t)&&y.push(t),Mi("unpr","Unknown provider: {0}",y.join(" <- "))}),E={},$=d(E,function(e,t){var n=k.get(e+g,t);return S.invoke(n.$get,n,void 0,e)}),S=$;x["$injector"+g]={$get:m($)};var A=h(e);return S=$.get("$injector"),S.strictDi=t,r(A,function(e){e&&S.invoke(e)}),S}function rt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===L(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(C(e))e=e();else if(j(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else x(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=w(e)?e:n.hash();var t;e?(t=u.getElementById(e))?a(t):(t=i(u.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var u=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Ue(function(){r.$evalAsync(s)})}),s}]}function it(e,t){return e||t?e?t?(Wr(e)&&(e=e.join(" ")),Wr(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function ot(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===ji)return n}}function at(e){w(e)&&(e=e.split(" "));var t=me();return r(e,function(e){e.length&&(t[e]=!0)}),t}function st(e){return b(e)?e:{}}function ut(e,t,n,i){function o(e){try{e.apply(null,H(arguments,1))}finally{if(y--,0===y)for(;b.length;)try{b.pop()()}catch(t){n.error(t)}}}function a(e){var t=e.indexOf("#");return t===-1?"":e.substr(t)}function s(){C=null,u(),l()}function u(){_=E(),_=v(_)?null:_,z(_,A)&&(_=A),A=_}function l(){x===c.url()&&w===_||(x=c.url(),w=_,r($,function(e){e(c.url(),_)}))}var c=this,f=e.location,h=e.history,p=e.setTimeout,m=e.clearTimeout,g={};c.isMock=!1;var y=0,b=[];c.$$completeOutstandingRequest=o,c.$$incOutstandingRequestCount=function(){y++},c.notifyWhenNoOutstandingRequests=function(e){0===y?e():b.push(e)};var _,w,x=f.href,k=t.find("base"),C=null,E=i.history?function(){try{return h.state}catch(e){}}:d;u(),w=_,c.url=function(t,n,r){if(v(r)&&(r=null),f!==e.location&&(f=e.location),h!==e.history&&(h=e.history),t){var o=w===r;if(x===t&&(!i.history||o))return c;var s=x&&zt(x)===zt(t);return x=t,w=r,!i.history||s&&o?(s&&!C||(C=t),n?f.replace(t):s?f.hash=a(t):f.href=t,f.href!==t&&(C=t)):(h[n?"replaceState":"pushState"](r,"",t),u(),w=_),c}return C||f.href.replace(/%27/g,"'")},c.state=function(){return _};var $=[],S=!1,A=null;c.onUrlChange=function(t){return S||(i.history&&jr(e).on("popstate",s),jr(e).on("hashchange",s),S=!0),$.push(t),t},c.$$applicationDestroyed=function(){jr(e).off("hashchange popstate",s)},c.$$checkUrlChange=l,c.baseHref=function(){var e=k.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(e,t){var n;return y++,n=p(function(){delete g[n],o(e)},t||0),g[n]=!0,n},c.defer.cancel=function(e){return!!g[e]&&(delete g[e],m(e),o(d),!0)}}function lt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new ut(e,r,t,n)}]}function ct(){this.$get=function(){function e(e,r){function i(e){e!=h&&(d?d==e&&(d=e.n):d=e,o(e.n,e.p),o(e,h),h=e,h.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=l({},r,{id:e}),u=me(),c=r&&r.capacity||Number.MAX_VALUE,f=me(),h=null,d=null;return n[e]={put:function(e,t){if(!v(t)){if(c<Number.MAX_VALUE){var n=f[e]||(f[e]={key:e});i(n)}return e in u||a++,u[e]=t,a>c&&this.remove(d.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=f[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=f[e];if(!t)return;t==h&&(h=t.p),t==d&&(d=t.n),o(t.n,t.p),delete f[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=me(),a=0,f=me(),h=d=null},destroy:function(){u=null,s=null,f=null,delete n[e]},info:function(){return l({},s,{size:a})}}}var n={};return e.info=function(){var e={};return r(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function ft(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function ht(){}function dt(t,n){function i(e,t,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=me();return r(e,function(e,r){if(e in E)return void(o[r]=E[e]);var a=e.match(i);if(!a)throw Hi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,r,e,n?"controller bindings definition":"isolate scope definition");o[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r},a[4]&&(E[e]=o[r])}),o}function a(e,t){var n={isolateScope:null,bindToController:null};if(b(e.scope)&&(e.bindToController===!0?(n.bindToController=i(e.scope,t,!0),n.isolateScope={}):n.isolateScope=i(e.scope,t,!1)),b(e.bindToController)&&(n.bindToController=i(e.bindToController,t,!0)),b(n.bindToController)){var r=e.controller,o=e.controllerAs;if(!r)throw Hi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!yt(r,o))throw Hi("noident","Cannot bind to controller without identifier for directive '{0}'.",t)}return n}function s(e){var t=e.charAt(0);if(!t||t!==Dr(t))throw Hi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Hi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}var u={},c="Directive",f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,g=/(([\w\-]+)(?:\:([^;]+))?;?)/,_=P("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/,E=me();this.directive=function T(e,n){return he(e,"directive"),w(e)?(s(e),ce(n,"directiveFactory"),u.hasOwnProperty(e)||(u[e]=[],t.factory(e+c,["$injector","$exceptionHandler",function(t,n){var i=[];return r(u[e],function(r,o){try{var a=t.invoke(r);C(a)?a={compile:m(a)}:!a.compile&&a.link&&(a.compile=m(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||e,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"EA",a.$$moduleName=r.$$moduleName,i.push(a)}catch(s){n(s)}}),i}])),u[e].push(n)):r(e,o(T)),this},this.component=function(e,t){function n(e){function n(t){return C(t)||Wr(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var o=t.template||t.templateUrl?t.template:"",a={controller:i,controllerAs:yt(t.controller)||t.controllerAs||"$ctrl",template:n(o),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return r(t,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}var i=t.controller||function(){};return r(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,C(i)&&(i[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return y(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var $=!0;this.debugInfoEnabled=function(e){return y(e)?($=e,this):$};var A=10;this.onChangesTtl=function(e){return arguments.length?(A=e,this):A},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,i,o,s,m,y,E,T,D){function F(){try{if(!--be)throw ge=void 0,Hi("infchng","{0} $onChanges() iterations reached. Aborting!\n",A);y.$apply(function(){for(var e=0,t=ge.length;e<t;++e)ge[e]();ge=void 0})}finally{be++}}function M(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function O(e,t,n){ye.innerHTML="<span "+t+">";var r=ye.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function j(e,t){try{e.addClass(t)}catch(n){}}function P(t,n,r,i,o){t instanceof jr||(t=jr(t));for(var a=/\S+/,s=0,u=t.length;s<u;s++){var l=t[s];l.nodeType===ii&&l.nodeValue.match(a)&&Ae(l,t[s]=e.document.createElement("span"))}var c=q(t,n,t,r,i,o);P.$$addScopeClass(t);var f=null;return function(e,n,r){ce(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,s=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=I(s));var u;if(u="html"!==f?jr(ae(f,jr("<div>").append(t).html())):n?ki.clone.call(t):t,a)for(var l in a)u.data("$"+l+"Controller",a[l].instance);return P.$$addScopeInfo(u,e),n&&n(u,e),c&&c(e,u,u,i),u}}function I(e){var t=e&&e[0];return t&&"foreignobject"!==L(t)&&zr.call(t).match(/SVG/)?"svg":"html"}function q(e,t,n,r,i,o){function a(e,n,r,i){var o,a,s,u,l,c,f,h,m;if(d){var g=n.length;for(m=new Array(g),l=0;l<p.length;l+=3)f=p[l],m[f]=n[f]}else m=n;for(l=0,c=p.length;l<c;)s=m[p[l++]],o=p[l++],a=p[l++],o?(o.scope?(u=e.$new(),P.$$addScopeInfo(jr(s),u)):u=e,h=o.transcludeOnThisElement?B(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?B(e,t):null,o(a,u,s,r,h)):a&&a(e,s.childNodes,void 0,i)}for(var s,u,l,c,f,h,d,p=[],m=0;m<e.length;m++)s=new M,u=U(e[m],[],s,0===m?r:void 0,i),l=u.length?K(u,e[m],s,t,n,null,[],[],o):null,l&&l.scope&&P.$$addScopeClass(s.$$element),f=l&&l.terminal||!(c=e[m].childNodes)||!c.length?null:q(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||f)&&(p.push(m,l,f),h=!0,d=d||l),o=null;return h?a:null}function B(e,t,n){function r(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=me();for(var o in t.$$slots)t.$$slots[o]?i[o]=B(e,t.$$slots[o],n):i[o]=null;return r}function U(e,t,n,r,i){var o,a,s=e.nodeType,u=n.$attr;switch(s){case ni:Q(t,mt(L(e)),"E",r,i);for(var l,c,h,d,p,m,v=e.attributes,y=0,_=v&&v.length;y<_;y++){var x=!1,k=!1;l=v[y],c=l.name,p=Kr(l.value),d=mt(c),(m=Ce.test(d))&&(c=c.replace(Vi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var C=d.match(Ee);C&&ee(C[1])&&(x=c,k=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),h=mt(c.toLowerCase()),u[h]=c,!m&&n.hasOwnProperty(h)||(n[h]=p,Ve(e,h)&&(n[h]=!0)),le(e,t,p,h,m),Q(t,h,"A",r,i,x,k)}if(a=e.className,b(a)&&(a=a.animVal),w(a)&&""!==a)for(;o=g.exec(a);)h=mt(o[2]),Q(t,h,"C",r,i)&&(n[h]=Kr(o[3])),a=a.substr(o.index+o[0].length);break;case ii:if(11===Or)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===ii;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);oe(t,e.nodeValue);break;case oi:try{o=f.exec(e.nodeValue),o&&(h=mt(o[1]),Q(t,h,"M",r,i)&&(n[h]=Kr(o[2])))}catch(E){}}return t.sort(re),t}function V(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Hi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==ni&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return jr(r)}function W(e,t,n){return function(r,i,o,a,s){return i=V(i[0],t,n),e(r,i,o,a,s)}}function Y(e,t,n,r,i,o){var a;return e?P(t,n,r,i,o):function(){return a||(a=P(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function K(e,t,n,o,a,s,u,c,f){function h(e,t,n,r){e&&(n&&(e=W(e,n,r)),e.require=p.require,e.directiveName=m,(E===p||p.$$isolateScope)&&(e=he(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=W(t,n,r)),t.require=p.require,t.directiveName=m,(E===p||p.$$isolateScope)&&(t=he(t,{isolateScope:!0})),c.push(t))}function d(e,i,o,a,s){function f(e,t,n,r){var i;if(S(e)||(r=n,n=t,t=e,e=void 0),N&&(i=y),n||(n=N?w.parent():w),!r)return s(e,t,i,n,R);var o=s.$$slots[r];if(o)return o(e,t,i,n,R);if(v(o))throw Hi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,X(w))}var h,d,p,m,g,y,_,w,A,T;t===o?(A=n,w=n.$$element):(w=jr(o),A=new M(w,n)),g=i,E?m=i.$new(!0):x&&(g=i.$parent),s&&(_=f,_.$$boundTransclude=s,_.isSlotFilled=function(e){return!!s.$$slots[e]}),k&&(y=Z(w,A,_,k,m,i,E)),
|
||
E&&(P.$$addScopeInfo(w,m,!0,!($&&($===E||$===E.$$originalDirective))),P.$$addScopeClass(w,!0),m.$$isolateBindings=E.$$isolateBindings,T=pe(i,A,m,m.$$isolateBindings,E),T.removeWatches&&m.$on("$destroy",T.removeWatches));for(var D in y){var F=k[D],O=y[D],j=F.$$bindings.bindToController;O.identifier&&j?O.bindingInfo=pe(g,A,O.instance,j,F):O.bindingInfo={};var L=O();L!==O.instance&&(O.instance=L,w.data("$"+F.name+"Controller",L),O.bindingInfo.removeWatches&&O.bindingInfo.removeWatches(),O.bindingInfo=pe(g,A,O.instance,j,F))}for(r(k,function(e,t){var n=e.require;e.bindToController&&!Wr(n)&&b(n)&&l(y[t].instance,G(t,n,w,y))}),r(y,function(e){var t=e.instance;C(t.$onChanges)&&t.$onChanges(e.bindingInfo.initialChanges),C(t.$onInit)&&t.$onInit(),C(t.$onDestroy)&&g.$on("$destroy",function(){t.$onDestroy()})}),h=0,d=u.length;h<d;h++)p=u[h],de(p,p.isolateScope?m:i,w,A,p.require&&G(p.directiveName,p.require,w,y),_);var R=i;for(E&&(E.template||null===E.templateUrl)&&(R=m),e&&e(R,o.childNodes,void 0,s),h=c.length-1;h>=0;h--)p=c[h],de(p,p.isolateScope?m:i,w,A,p.require&&G(p.directiveName,p.require,w,y),_);r(y,function(e){var t=e.instance;C(t.$postLink)&&t.$postLink()})}f=f||{};for(var p,m,g,y,_,w=-Number.MAX_VALUE,x=f.newScopeDirective,k=f.controllerDirectives,E=f.newIsolateScopeDirective,$=f.templateDirective,A=f.nonTlbTranscludeDirective,T=!1,D=!1,N=f.hasElementTranscludeDirective,F=n.$$element=jr(t),O=s,j=o,R=!1,I=!1,q=0,z=e.length;q<z;q++){p=e[q];var B=p.$$start,K=p.$$end;if(B&&(F=V(t,B,K)),g=void 0,w>p.priority)break;if((_=p.scope)&&(p.templateUrl||(b(_)?(ie("new/isolated scope",E||x,p,F),E=p):ie("new/isolated scope",E,p,F)),x=x||p),m=p.name,!R&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(var Q,ee=q+1;Q=e[ee++];)if(Q.transclude&&!Q.$$tlb||Q.replace&&(Q.templateUrl||Q.template)){I=!0;break}R=!0}if(!p.templateUrl&&p.controller&&(_=p.controller,k=k||me(),ie("'"+m+"' controller",k[m],p,F),k[m]=p),_=p.transclude)if(T=!0,p.$$tlb||(ie("transclusion",A,p,F),A=p),"element"==_)N=!0,w=p.priority,g=F,F=n.$$element=jr(P.$$createComment(m,n[m])),t=F[0],fe(a,H(g),t),g[0].$$parentNode=g[0].parentNode,j=Y(I,g,o,w,O&&O.name,{nonTlbTranscludeDirective:A});else{var re=me();if(g=jr(De(t)).contents(),b(_)){g=[];var oe=me(),se=me();r(_,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,oe[e]=t,re[t]=null,se[t]=n}),r(F.contents(),function(e){var t=oe[mt(L(e))];t?(se[t]=!0,re[t]=re[t]||[],re[t].push(e)):g.push(e)}),r(se,function(e,t){if(!e)throw Hi("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ue in re)re[ue]&&(re[ue]=Y(I,re[ue],o))}F.empty(),j=Y(I,g,o,void 0,void 0,{needsNewScope:p.$$isolateScope||p.$$newScope}),j.$$slots=re}if(p.template)if(D=!0,ie("template",$,p,F),$=p,_=C(p.template)?p.template(F,n):p.template,_=ke(_),p.replace){if(O=p,g=xe(_)?[]:vt(ae(p.templateNamespace,Kr(_))),t=g[0],1!=g.length||t.nodeType!==ni)throw Hi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m,"");fe(a,F,t);var le={$attr:{}},ce=U(t,[],le),ge=e.splice(q+1,e.length-(q+1));(E||x)&&J(ce,E,x),e=e.concat(ce).concat(ge),te(n,le),z=e.length}else F.html(_);if(p.templateUrl)D=!0,ie("template",$,p,F),$=p,p.replace&&(O=p),d=ne(e.splice(q,e.length-q),F,n,a,T&&j,u,c,{controllerDirectives:k,newScopeDirective:x!==p&&x,newIsolateScopeDirective:E,templateDirective:$,nonTlbTranscludeDirective:A}),z=e.length;else if(p.compile)try{y=p.compile(F,n,j),C(y)?h(null,y,B,K):y&&h(y.pre,y.post,B,K)}catch(ve){i(ve,X(F))}p.terminal&&(d.terminal=!0,w=Math.max(w,p.priority))}return d.scope=x&&x.scope===!0,d.transcludeOnThisElement=T,d.templateOnThisElement=D,d.transclude=j,f.hasElementTranscludeDirective=N,d}function G(e,t,n,i){var o;if(w(t)){var a=t.match(x),s=t.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(o=i&&i[s],o=o&&o.instance),!o){var c="$"+s+"Controller";o=u?n.inheritedData(c):n.data(c)}if(!o&&!l)throw Hi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(Wr(t)){o=[];for(var f=0,h=t.length;f<h;f++)o[f]=G(e,t[f],n,i)}else b(t)&&(o={},r(t,function(t,r){o[r]=G(e,t,n,i)}));return o||null}function Z(e,t,n,r,i,o,a){var s=me();for(var u in r){var l=r[u],c={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=l.controller;"@"==f&&(f=t[l.name]);var h=m(f,c,!0,l.controllerAs);s[l.name]=h,e.data("$"+l.name+"Controller",h.instance)}return s}function J(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=h(e[r],{$$isolateScope:t,$$newScope:n})}function Q(e,n,r,o,s,l,f){if(n===s)return null;var d=null;if(u.hasOwnProperty(n))for(var p,m=t.get(n+c),g=0,y=m.length;g<y;g++)try{if(p=m[g],(v(o)||o>p.priority)&&p.restrict.indexOf(r)!=-1){if(l&&(p=h(p,{$$start:l,$$end:f})),!p.$$bindings){var _=p.$$bindings=a(p,p.name);b(_.isolateScope)&&(p.$$isolateBindings=_.isolateScope)}e.push(p),d=p}}catch(w){i(w)}return d}function ee(e){if(u.hasOwnProperty(e))for(var n,r=t.get(e+c),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function te(e,t){var n=t.$attr,i=e.$attr,o=e.$$element;r(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),r(t,function(t,r){"class"==r?(j(o,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==r?(o.attr("style",o.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==r.charAt(0)||e.hasOwnProperty(r)||(e[r]=t,i[r]=n[r])})}function ne(e,t,n,i,a,s,u,l){var c,f,d=[],p=t[0],m=e.shift(),g=h(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),v=C(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,y=m.templateNamespace;return t.empty(),o(v).then(function(o){var h,_,w,x;if(o=ke(o),m.replace){if(w=xe(o)?[]:vt(ae(y,Kr(o))),h=w[0],1!=w.length||h.nodeType!==ni)throw Hi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,v);_={$attr:{}},fe(i,t,h);var k=U(h,[],_);b(m.scope)&&J(k,!0),e=k.concat(e),te(n,_)}else h=p,t.html(o);for(e.unshift(g),c=K(e,h,n,a,t,m,s,u,l),r(i,function(e,n){e==h&&(i[n]=t[0])}),f=q(t[0].childNodes,a);d.length;){var C=d.shift(),E=d.shift(),$=d.shift(),S=d.shift(),A=t[0];if(!C.$$destroyed){if(E!==p){var T=E.className;l.hasElementTranscludeDirective&&m.replace||(A=De(h)),fe($,jr(E),A),j(jr(A),T)}x=c.transcludeOnThisElement?B(C,c.transclude,S):S,c(f,C,A,i,x)}}d=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(d?d.push(t,n,r,o):(c.transcludeOnThisElement&&(o=B(t,c.transclude,i)),c(f,t,n,r,o)))}}function re(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function ie(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Hi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,X(r))}function oe(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&P.$$addBindingClass(t),function(e,t){var i=t.parent();n||P.$$addBindingClass(i),P.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}function ae(t,n){switch(t=Dr(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function se(e,t){if("srcdoc"==t)return E.HTML;var n=L(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?E.RESOURCE_URL:void 0}function le(e,t,r,i,o){var a=se(e,i);o=_[i]||o;var s=n(r,!0,a,o);if(s){if("multiple"===i&&"select"===L(e))throw Hi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",X(e));t.push({priority:100,compile:function(){return{pre:function(e,t,u){var l=u.$$observers||(u.$$observers=me());if(k.test(i))throw Hi("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!==r&&(s=c&&n(c,!0,a,o),r=c),s&&(u[i]=s(e),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!=t?u.$updateClass(e,t):u.$set(i,e)}))}}}})}}function fe(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]==a){t[i++]=r;for(var l=i,c=l+s-1,f=t.length;l<f;l++,c++)c<f?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.document.createDocumentFragment();for(i=0;i<s;i++)h.appendChild(n[i]);for(jr.hasData(a)&&(jr.data(r,jr.data(a)),jr(a).off("$destroy")),jr.cleanData(h.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function he(e,t){return l(function(){return e.apply(null,arguments)},e,t)}function de(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(s){i(s,X(n))}}function pe(e,t,i,o,a){function u(t,n,r){C(i.$onChanges)&&n!==r&&(ge||(e.$$postDigest(F),ge=[]),c||(c={},ge.push(l)),c[t]&&(r=c[t].previousValue),c[t]=new pt(r,n))}function l(){i.$onChanges(c),c=void 0}var c,f=[],h={};return r(o,function(r,o){var l,c,p,m,g,v=r.attrName,y=r.optional,b=r.mode;switch(b){case"@":y||Tr.call(t,v)||(i[o]=t[v]=void 0),t.$observe(v,function(e){if(w(e)||N(e)){var t=i[o];u(o,e,t),i[o]=e}}),t.$$observers[v].$$scope=e,l=t[v],w(l)?i[o]=n(l)(e):N(l)&&(i[o]=l),h[o]=new pt(Ui,i[o]);break;case"=":if(!Tr.call(t,v)){if(y)break;t[v]=void 0}if(y&&!t[v])break;c=s(t[v]),m=c.literal?z:function(e,t){return e===t||e!==e&&t!==t},p=c.assign||function(){throw l=i[o]=c(e),Hi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,a.name)},l=i[o]=c(e);var _=function(t){return m(t,i[o])||(m(t,l)?p(e,t=i[o]):i[o]=t),l=t};_.$stateful=!0,g=r.collection?e.$watchCollection(t[v],_):e.$watch(s(t[v],_),null,c.literal),f.push(g);break;case"<":if(!Tr.call(t,v)){if(y)break;t[v]=void 0}if(y&&!t[v])break;c=s(t[v]),i[o]=c(e),h[o]=new pt(Ui,i[o]),g=e.$watch(c,function(e,t){e===t&&(t=i[o]),u(o,e,t),i[o]=e},c.literal),f.push(g);break;case"&":if(c=t.hasOwnProperty(v)?s(t[v]):d,c===d&&y)break;i[o]=function(t){return c(e,t)}}}),{initialChanges:h,removeWatches:f.length&&function(){for(var e=0,t=f.length;e<t;++e)f[e]()}}}var ge,ve=/^\w/,ye=e.document.createElement("div"),be=A;M.prototype={$normalize:mt,$addClass:function(e){e&&e.length>0&&T.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&T.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=gt(e,t);n&&n.length&&T.addClass(this.$$element,n);var r=gt(t,e);r&&r.length&&T.removeClass(this.$$element,r)},$set:function(e,t,n,o){var a,s=this.$$element[0],u=Ve(s,e),l=We(e),c=e;if(u?(this.$$element.prop(e,t),o=u):l&&(this[l]=t,c=l),this[e]=t,o?this.$attr[e]=o:(o=this.$attr[e],o||(this.$attr[e]=o=ue(e,"-"))),a=L(this.$$element),"a"===a&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=D(t,"src"===e);else if("img"===a&&"srcset"===e){for(var f="",h=Kr(t),d=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(h)?d:/(,)/,m=h.split(p),g=Math.floor(m.length/2),y=0;y<g;y++){var b=2*y;f+=D(Kr(m[b]),!0),f+=" "+Kr(m[b+1])}var _=Kr(m[2*y]).split(/\s/);f+=D(Kr(_[0]),!0),2===_.length&&(f+=" "+Kr(_[1])),this[e]=t=f}n!==!1&&(null===t||v(t)?this.$$element.removeAttr(o):ve.test(o)?this.$$element.attr(o,t):O(this.$$element[0],o,t));var w=this.$$observers;w&&r(w[c],function(e){try{e(t)}catch(n){i(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=me()),i=r[e]||(r[e]=[]);return i.push(t),y.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||v(n[e])||t(n[e])}),function(){R(i,t)}}};var _e=n.startSymbol(),we=n.endSymbol(),ke="{{"==_e&&"}}"==we?p:function(e){return e.replace(/\{\{/g,_e).replace(/}}/g,we)},Ce=/^ngAttr[A-Z]/,Ee=/^(.+)Start$/;return P.$$addBindingInfo=$?function(e,t){var n=e.data("$binding")||[];Wr(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:d,P.$$addBindingClass=$?function(e){j(e,"ng-binding")}:d,P.$$addScopeInfo=$?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:d,P.$$addScopeClass=$?function(e,t){j(e,t?"ng-isolate-scope":"ng-scope")}:d,P.$$createComment=function(t,n){var r="";return $&&(r=" "+(t||"")+": "+(n||"")+" "),e.document.createComment(r)},P}]}function pt(e,t){this.previousValue=e,this.currentValue=t}function mt(e){return we(e.replace(Vi,""))}function gt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function vt(e){e=jr(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];n.nodeType===oi&&Ir.call(e,t,1)}return e}function yt(e,t){if(t&&w(t))return t;if(w(e)){var n=Yi.exec(e);if(n)return n[3]}}function bt(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){he(t,"controller"),b(t)?l(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(e,n,r,i){if(!e||!b(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);e.$scope[n]=r}return function(t,a,s,u){var c,f,h,d;if(s=s===!0,u&&w(u)&&(d=u),w(t)){if(f=t.match(Yi),!f)throw Wi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);h=f[1],d=d||f[3],t=e.hasOwnProperty(h)?e[h]:de(a.$scope,h,!0)||(n?de(i,h,!0):void 0),fe(t,h,!0)}if(s){var p=(Wr(t)?t[t.length-1]:t).prototype;c=Object.create(p||null),d&&o(a,d,c,h||t.name);var m;return m=l(function(){var e=r.invoke(t,c,a,h);return e!==c&&(b(e)||C(e))&&(c=e,d&&o(a,d,c,h||t.name)),c},{instance:c,identifier:d})}return c=r.instantiate(t,a,h),d&&o(a,d,c,h||t.name),c}}]}function _t(){this.$get=["$window",function(e){return jr(e.document)}]}function wt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function xt(e){return b(e)?k(e)?e.toISOString():W(e):e}function kt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return i(e,function(e,n){null===e||v(e)||(Wr(e)?r(e,function(e){t.push(ne(n)+"="+ne(xt(e)))}):t.push(ne(n)+"="+ne(xt(e))))}),t.join("&")}}}function Ct(){this.$get=function(){return function(e){function t(e,o,a){null===e||v(e)||(Wr(e)?r(e,function(e,n){t(e,o+"["+(b(e)?n:"")+"]")}):b(e)&&!k(e)?i(e,function(e,n){t(e,o+(a?"":"[")+n+(a?"":"]"))}):n.push(ne(o)+"="+ne(xt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function Et(e,t){if(w(e)){var n=e.replace(Qi,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(Gi)||$t(n))&&(e=Y(n))}}return e}function $t(e){var t=e.match(Xi);return t&&Ji[t[0]].test(e)}function St(e){function t(e,t){e&&(i[e]=i[e]?i[e]+", "+t:t)}var n,i=me();return w(e)?r(e.split("\n"),function(e){n=e.indexOf(":"),t(Dr(Kr(e.substr(0,n))),Kr(e.substr(n+1)))}):b(e)&&r(e,function(e,n){t(Dr(n),Kr(e))}),i}function At(e){var t;return function(n){if(t||(t=St(e)),n){var r=t[Dr(n)];return void 0===r&&(r=null),r}return t}}function Tt(e,t,n,i){return C(i)?i(e,t,n):(r(i,function(r){e=r(e,t,n)}),e)}function Dt(e){return 200<=e&&e<300}function Nt(){var e=this.defaults={transformResponse:[Et],transformRequest:[function(e){return!b(e)||A(e)||D(e)||T(e)?e:W(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:q(Zi),put:q(Zi),patch:q(Zi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(e){return y(e)?(n=!!e,this):n};var i=!0;this.useLegacyPromiseExtensions=function(e){return y(e)?(i=!!e,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,u,c,f,h){function d(n){function o(e){var t=l({},e);return t.data=Tt(e.data,e.headers,e.status,u.transformResponse),Dt(e.status)?t:f.reject(t)}function a(e,t){var n,i={};return r(e,function(e,r){C(e)?(n=e(t),null!=n&&(i[r]=n)):i[r]=e}),i}function s(t){var n,r,i,o=e.headers,s=l({},t.headers);o=l({},o.common,o[Dr(t.method)]);e:for(n in o){r=Dr(n);for(i in s)if(Dr(i)===r)continue e;s[n]=o[n]}return a(s,q(t))}if(!b(n))throw t("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(n.url))throw t("$http")("badreq","Http request configuration url must be a string. Received: {0}",n.url);var u=l({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},n);u.headers=s(n),u.method=Nr(u.method),u.paramSerializer=w(u.paramSerializer)?h.get(u.paramSerializer):u.paramSerializer;var c=function(t){var n=t.headers,i=Tt(t.data,At(n),void 0,t.transformRequest);return v(i)&&r(n,function(e,t){"content-type"===Dr(t)&&delete n[t]}),v(t.withCredentials)&&!v(e.withCredentials)&&(t.withCredentials=e.withCredentials),g(t,i).then(o,o)},d=[c,void 0],p=f.when(u);for(r(k,function(e){(e.request||e.requestError)&&d.unshift(e.request,e.requestError),(e.response||e.responseError)&&d.push(e.response,e.responseError)});d.length;){var m=d.shift(),y=d.shift();p=p.then(m,y)}return i?(p.success=function(e){return fe(e,"fn"),p.then(function(t){e(t.data,t.status,t.headers,u)}),p},p.error=function(e){return fe(e,"fn"),p.then(null,function(t){e(t.data,t.status,t.headers,u)}),p}):(p.success=to("success"),p.error=to("error")),p}function p(e){r(arguments,function(e){d[e]=function(t,n){return d(l({},n||{},{method:e,url:t}))}})}function m(e){r(arguments,function(e){d[e]=function(t,n,r){return d(l({},r||{},{method:e,url:t,data:n}))}})}function g(t,i){function o(e){if(e){var t={};return r(e,function(e,r){t[r]=function(t){function r(){e(t)}n?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}}),t}}function u(e,t,r,i){function o(){l(t,e,r,i)}m&&(Dt(e)?m.put(E,[e,t,St(r),i]):m.remove(E)),n?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function l(e,n,r,i){n=n>=-1?n:0,(Dt(n)?w.resolve:w.reject)({data:e,status:n,headers:At(r),config:t,statusText:i})}function h(e){l(e.data,e.status,q(e.headers()),e.statusText)}function p(){var e=d.pendingRequests.indexOf(t);e!==-1&&d.pendingRequests.splice(e,1)}var m,g,w=f.defer(),k=w.promise,C=t.headers,E=_(t.url,t.paramSerializer(t.params));if(d.pendingRequests.push(t),k.then(p,p),!t.cache&&!e.cache||t.cache===!1||"GET"!==t.method&&"JSONP"!==t.method||(m=b(t.cache)?t.cache:b(e.cache)?e.cache:x),m&&(g=m.get(E),y(g)?F(g)?g.then(h,h):Wr(g)?l(g[1],g[0],q(g[2]),g[3]):l(g,200,{},"OK"):m.put(E,k)),v(g)){var $=Mn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;$&&(C[t.xsrfHeaderName||e.xsrfHeaderName]=$),a(t.method,E,i,u,C,t.timeout,t.withCredentials,t.responseType,o(t.eventHandlers),o(t.uploadEventHandlers))}return k}function _(e,t){return t.length>0&&(e+=(e.indexOf("?")==-1?"?":"&")+t),e}var x=u("$http");e.paramSerializer=w(e.paramSerializer)?h.get(e.paramSerializer):e.paramSerializer;var k=[];return r(o,function(e){k.unshift(w(e)?h.get(e):h.invoke(e))}),d.pendingRequests=[],p("get","delete","head","jsonp"),m("post","put","patch"),d.defaults=e,d}]}function Ft(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Mt(){this.$get=["$browser","$window","$document","$xhrFactory",function(e,t,n,r){return Ot(e,r,e.defer,t.angular.callbacks,n[0])}]}function Ot(e,t,n,i,o){function a(e,t,n){var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=e,r.async=!0,a=function(e){hi(r,"load",a),hi(r,"error",a),o.body.removeChild(r),r=null;var s=-1,u="unknown";e&&("load"!==e.type||i[t].called||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},fi(r,"load",a),fi(r,"error",a),o.body.appendChild(r),a}return function(o,s,u,l,c,f,h,p,m,g){function b(){x&&x(),k&&k.abort()}function _(t,r,i,o,a){y($)&&n.cancel($),x=k=null,t(r,i,o,a),e.$$completeOutstandingRequest(d)}if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"==Dr(o)){var w="_"+(i.counter++).toString(36);i[w]=function(e){i[w].data=e,i[w].called=!0};var x=a(s.replace("JSON_CALLBACK","angular.callbacks."+w),w,function(e,t){_(l,e,i[w].data,"",t),i[w]=d})}else{var k=t(o,s);k.open(o,s,!0),r(c,function(e,t){y(e)&&k.setRequestHeader(t,e)}),k.onload=function(){var e=k.statusText||"",t="response"in k?k.response:k.responseText,n=1223===k.status?204:k.status;0===n&&(n=t?200:"file"==Fn(s).protocol?404:0),_(l,n,t,k.getAllResponseHeaders(),e)};var C=function(){_(l,-1,null,null,"")};if(k.onerror=C,k.onabort=C,r(m,function(e,t){k.addEventListener(t,e)}),r(g,function(e,t){k.upload.addEventListener(t,e)}),h&&(k.withCredentials=!0),p)try{k.responseType=p}catch(E){if("json"!==p)throw E}k.send(v(u)?null:u)}if(f>0)var $=n(b,f);else F(f)&&f.then(b)}}function jt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(d,e).replace(p,t)}function s(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=W(e)}return e}function u(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function c(o,c,d,p){function g(e){try{return e=F(e),p&&!y(e)?e:s(e)}catch(t){r(no.interr(o,t))}}if(!o.length||o.indexOf(e)===-1){var b;if(!c){var _=a(o);b=m(_),b.exp=o,b.expressions=[],b.$$watchDelegate=u}return b}p=!!p;for(var w,x,k,E=0,$=[],S=[],A=o.length,T=[],D=[];E<A;){if((w=o.indexOf(e,E))==-1||(x=o.indexOf(t,w+f))==-1){E!==A&&T.push(a(o.substring(E)));break}E!==w&&T.push(a(o.substring(E,w))),k=o.substring(w+f,x),$.push(k),S.push(n(k,g)),E=x+h,D.push(T.length),T.push("")}if(d&&T.length>1&&no.throwNoconcat(o),!c||$.length){var N=function(e){for(var t=0,n=$.length;t<n;t++){if(p&&v(e[t]))return;T[D[t]]=e[t]}return T.join("")},F=function(e){return d?i.getTrusted(d,e):i.valueOf(e)};return l(function(e){var t=0,n=$.length,i=new Array(n);try{for(;t<n;t++)i[t]=S[t](e);return N(i)}catch(a){r(no.interr(o,a))}},{exp:o,expressions:$,$$watchDelegate:function(e,t){var n;return e.$watchGroup(S,function(r,i){var o=N(r);C(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var f=e.length,h=t.length,d=new RegExp(e.replace(/./g,o),"g"),p=new RegExp(t.replace(/./g,o),"g");return c.startSymbol=function(){return e},c.endSymbol=function(){return t},c}]}function Pt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,u,l){function c(){f?o.apply(null,h):o(m)}var f=arguments.length>4,h=f?H(arguments,4):[],d=t.setInterval,p=t.clearInterval,m=0,g=y(l)&&!l,v=(g?r:n).defer(),b=v.promise;return u=y(u)?u:0,b.$$intervalId=d(function(){g?i.defer(c):e.$evalAsync(c),v.notify(m++),u>0&&m>=u&&(v.resolve(m),p(b.$$intervalId),delete a[b.$$intervalId]),g||e.$apply()},s),a[b.$$intervalId]=v,b}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function Lt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=te(t[n]);return t.join("/")}function Rt(e,t){var n=Fn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||io[n.protocol]||null}function It(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=Fn(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=Q(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function qt(e,t){if(0===t.indexOf(e))return t.substr(e.length)}function zt(e){var t=e.indexOf("#");return t==-1?e:e.substr(0,t)}function Bt(e){return e.replace(/(#.+)|#$/,"$1")}function Ht(e){return e.substr(0,zt(e).lastIndexOf("/")+1)}function Ut(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Vt(e,t,n){this.$$html5=!0,n=n||"",Rt(e,this),this.$$parse=function(e){var n=qt(t,e);if(!w(n))throw oo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);It(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ee(this.$$search),n=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Lt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+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 y(o=qt(e,r))?(a=o,s=y(o=qt(n,o))?t+(qt("/",o)||o):e+a):y(o=qt(t,r))?s=t+o:t==r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function Wt(e,t,n){Rt(e,this),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o,a=qt(e,r)||qt(t,r);v(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",v(a)&&(e=r,this.replace())):(o=qt(n,a),v(o)&&(o=a)),It(o,this),this.$$path=i(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var t=ee(this.$$search),r=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Lt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return zt(e)==zt(t)&&(this.$$parse(t),!0)}}function Yt(e,t,n){this.$$html5=!0,Wt.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e==zt(r)?o=r:(a=qt(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=ee(this.$$search),r=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Lt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function Kt(e){return function(){return this[e]}}function Gt(e,t){return function(n){return v(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Zt(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(e){return N(e)?(t.enabled=e,this):b(e)?(N(e.enabled)&&(t.enabled=e.enabled),N(e.requireBase)&&(t.requireBase=e.requireBase),N(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(a){throw l.url(i),l.$$state=o,a}}function u(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c,f,h=r.baseHref(),d=r.url();if(t.enabled){if(!h&&t.requireBase)throw oo("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=Ut(d)+(h||"/"),c=i.history?Vt:Yt}else f=zt(d),c=Wt;var p=Ht(f);l=new c(f,p,"#"+e),l.$$parseLinkUrl(d,d),l.$$state=r.state();var m=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=jr(e.target);"a"!==L(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");b(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=Fn(s.animVal).href),m.test(s)||!s||i.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(e.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),Bt(l.absUrl())!=Bt(d)&&r.url(l.absUrl(),!0);var g=!0;return r.onUrlChange(function(e,t){return v(qt(p,e))?void(a.location.href=e):(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;e=Bt(e),l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(g=!1,u(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var e=Bt(r.url()),t=Bt(l.absUrl()),o=r.state(),a=l.$$replace,c=e!==t||l.$$html5&&i.history&&o!==l.$$state;(g||c)&&(g=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(c&&s(t,a,o===l.$$state?null:l.$$state),u(e,o)))})),l.$$replace=!1}),l}]}function Xt(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function i(e){return e instanceof Error&&(e.stack?e=e.message&&e.stack.indexOf(e.message)===-1?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function o(e){var t=n.console||{},o=t[e]||t.log||d,a=!1;try{a=!!o.apply}catch(s){}return a?function(){var e=[];return r(arguments,function(t){e.push(i(t))}),o.apply(t,e)}:function(e,t){o(e,null==t?"":t)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Jt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw so("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Qt(e){return e+""}function en(e,t){if(e){if(e.constructor===e)throw so("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw so("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw so("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw so("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function tn(e,t){if(e){if(e.constructor===e)throw so("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===uo||e===lo||e===co)throw so("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function nn(e,t){if(e&&(e===(0).constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw so("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t)}function rn(e,t){return"undefined"!=typeof e?e:t}function on(e,t){return"undefined"==typeof e?t:"undefined"==typeof t?e:e+t}function an(e,t){var n=e(t);return!n.$stateful}function sn(e,t){var n,i;switch(e.type){case mo.Program:n=!0,r(e.body,function(e){sn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case mo.Literal:e.constant=!0,e.toWatch=[];break;case mo.UnaryExpression:sn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case mo.BinaryExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case mo.LogicalExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case mo.ConditionalExpression:sn(e.test,t),sn(e.alternate,t),sn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case mo.Identifier:e.constant=!1,e.toWatch=[e];break;case mo.MemberExpression:sn(e.object,t),e.computed&&sn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case mo.CallExpression:n=!!e.filter&&an(t,e.callee.name),i=[],r(e.arguments,function(e){sn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&an(t,e.callee.name)?i:[e];break;case mo.AssignmentExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case mo.ArrayExpression:n=!0,i=[],r(e.elements,function(e){sn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i;break;case mo.ObjectExpression:n=!0,i=[],r(e.properties,function(e){sn(e.value,t),n=n&&e.value.constant,e.value.constant||i.push.apply(i,e.value.toWatch)}),e.constant=n,e.toWatch=i;break;case mo.ThisExpression:e.constant=!1,e.toWatch=[];break;case mo.LocalsExpression:e.constant=!1,e.toWatch=[]}}function un(e){if(1==e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function ln(e){return e.type===mo.Identifier||e.type===mo.MemberExpression}function cn(e){if(1===e.body.length&&ln(e.body[0].expression))return{type:mo.AssignmentExpression,left:e.body[0].expression,right:{type:mo.NGValueParameter},operator:"="}}function fn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===mo.Literal||e.body[0].expression.type===mo.ArrayExpression||e.body[0].expression.type===mo.ObjectExpression)}function hn(e){return e.constant}function dn(e,t){this.astBuilder=e,this.$filter=t}function pn(e,t){this.astBuilder=e,this.$filter=t}function mn(e){return"constructor"==e;
|
||
}function gn(e){return C(e.valueOf)?e.valueOf():vo.call(e)}function vn(){var e,t,n=me(),i=me(),o={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(e,t){o[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(a){function s(e,t,r){var o,s,l;switch(r=r||_,typeof e){case"string":e=e.trim(),l=e;var g=r?i:n;if(o=g[l],!o){":"===e.charAt(0)&&":"===e.charAt(1)&&(s=!0,e=e.substring(2));var y=r?b:v,w=new po(y),x=new go(w,a,y);o=x.parse(e),o.constant?o.$$watchDelegate=p:s?o.$$watchDelegate=o.literal?h:f:o.inputs&&(o.$$watchDelegate=c),r&&(o=u(o)),g[l]=o}return m(o,t);case"function":return m(e,t);default:return m(d,t)}}function u(e){function t(t,n,r,i){var o=_;_=!0;try{return e(t,n,r,i)}finally{_=o}}if(!e)return e;t.$$watchDelegate=e.$$watchDelegate,t.assign=u(e.assign),t.constant=e.constant,t.literal=e.literal;for(var n=0;e.inputs&&n<e.inputs.length;++n)e.inputs[n]=u(e.inputs[n]);return t.inputs=e.inputs,t}function l(e,t){return null==e||null==t?e===t:("object"!=typeof e||(e=gn(e),"object"!=typeof e))&&(e===t||e!==e&&t!==t)}function c(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var s=l;return a=a[0],e.$watch(function(e){var t=a(e);return l(t,s)||(o=r(e,void 0,void 0,[t]),s=t&&gn(t)),o},t,n,i)}for(var u=[],c=[],f=0,h=a.length;f<h;f++)u[f]=l,c[f]=null;return e.$watch(function(e){for(var t=!1,n=0,i=a.length;n<i;n++){var s=a[n](e);(t||(t=!l(s,u[n])))&&(c[n]=s,u[n]=s&&gn(s))}return t&&(o=r(e,void 0,void 0,c)),o},t,n,i)}function f(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,C(t)&&t.apply(this,arguments),y(e)&&r.$$postDigest(function(){y(o)&&i()})},n)}function h(e,t,n,i){function o(e){var t=!0;return r(e,function(e){y(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return i(e)},function(e,n,r){s=e,C(t)&&t.call(this,e,n,r),o(e)&&r.$$postDigest(function(){o(s)&&a()})},n)}function p(e,t,n,r){var i;return i=e.$watch(function(e){return i(),r(e)},t,n)}function m(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=n!==h&&n!==f,o=i?function(n,i,o,a){var s=r&&a?a[0]:e(n,i,o,a);return t(s,n,i)}:function(n,r,i,o){var a=e(n,r,i,o),s=t(a,n,r);return y(a)?s:a};return e.$$watchDelegate&&e.$$watchDelegate!==c?o.$$watchDelegate=e.$$watchDelegate:t.$stateful||(o.$$watchDelegate=c,r=!e.inputs,o.inputs=e.inputs?e.inputs:[e]),o}var g=Zr().noUnsafeEval,v={csp:g,expensiveChecks:!1,literals:I(o),isIdentifierStart:C(e)&&e,isIdentifierContinue:C(t)&&t},b={csp:g,expensiveChecks:!0,literals:I(o),isIdentifierStart:C(e)&&e,isIdentifierContinue:C(t)&&t},_=!1;return s.$$runningExpensiveChecks=function(){return _},s}]}function yn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return _n(function(t){e.$evalAsync(t)},t)}]}function bn(){this.$get=["$browser","$exceptionHandler",function(e,t){return _n(function(t){e.defer(t)},t)}]}function _n(e,n){function i(){this.$$state={status:0}}function o(e,t){return function(n){t.call(e,n)}}function a(e){var t,r,i;i=e.pending,e.processScheduled=!1,e.pending=void 0;for(var o=0,a=i.length;o<a;++o){r=i[o][0],t=i[o][e.status];try{C(t)?r.resolve(t(e.value)):1===e.status?r.resolve(e.value):r.reject(e.value)}catch(s){r.reject(s),n(s)}}}function s(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){a(t)}))}function u(){this.promise=new i}function c(e){var t=new u,n=0,i=Wr(e)?[]:{};return r(e,function(e,r){n++,g(e).then(function(e){i.hasOwnProperty(r)||(i[r]=e,--n||t.resolve(i))},function(e){i.hasOwnProperty(r)||t.reject(e)})}),0===n&&t.resolve(i),t.promise}var f=t("$q",TypeError),h=function(){var e=new u;return e.resolve=o(e,e.resolve),e.reject=o(e,e.reject),e.notify=o(e,e.notify),e};l(i.prototype,{then:function(e,t,n){if(v(e)&&v(t)&&v(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&s(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return m(t,!0,e)},function(t){return m(t,!1,e)},t)}}),l(u.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(f("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){function t(e){u||(u=!0,a.$$resolve(e))}function r(e){u||(u=!0,a.$$reject(e))}var i,a=this,u=!1;try{(b(e)||C(e))&&(i=e&&e.then),C(i)?(this.promise.$$state.status=-1,i.call(e,t,r,o(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,s(this.promise.$$state))}catch(l){r(l),n(l)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;o<a;o++){i=r[o][0],e=r[o][3];try{i.notify(C(e)?e(t):t)}catch(s){n(s)}}})}});var d=function(e){var t=new u;return t.reject(e),t.promise},p=function(e,t){var n=new u;return t?n.resolve(e):n.reject(e),n.promise},m=function(e,t,n){var r=null;try{C(n)&&(r=n())}catch(i){return p(i,!1)}return F(r)?r.then(function(){return p(e,t)},function(e){return p(e,!1)}):p(e,t)},g=function(e,t,n,r){var i=new u;return i.resolve(e),i.promise.then(t,n,r)},y=g,_=function(e){function t(e){r.resolve(e)}function n(e){r.reject(e)}if(!C(e))throw f("norslvr","Expected resolverFn, got '{0}'",e);var r=new u;return e(t,n),r.promise};return _.prototype=i.prototype,_.defer=h,_.reject=d,_.when=g,_.resolve=y,_.all=c,_}function wn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function xn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=a(),this.$$ChildScope=null}return t.prototype=e,t}var i=10,o=t("$rootScope"),s=null,u=null;this.digestTtl=function(e){return arguments.length&&(i=e),i},this.$get=["$exceptionHandler","$parse","$browser",function(t,l,c){function f(e){e.currentScope.$$destroyed=!0}function h(e){9===Or&&(e.$$childHead&&h(e.$$childHead),e.$$nextSibling&&h(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function p(){this.$id=a(),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 m(e){if(E.$$phase)throw o("inprog","{0} already in progress",E.$$phase);E.$$phase=e}function g(){E.$$phase=null}function y(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function _(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function w(){}function x(){for(;A.length;)try{A.shift()()}catch(e){t(e)}u=null}function k(){null===u&&(u=c.defer(function(){E.$apply(x)}))}p.prototype={constructor:p,$new:function(t,n){var r;return n=n||this,t?(r=new p,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(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,(t||n!=this)&&r.$on("$destroy",f),r},$watch:function(e,t,n,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,a=o.$$watchers,u={fn:t,last:w,get:i,exp:r||e,eq:!!n};return s=null,C(t)||(u.fn=d),a||(a=o.$$watchers=[]),a.unshift(u),y(this,1),function(){R(a,u)>=0&&y(o,-1),s=null}},$watchGroup:function(e,t){function n(){u=!1,l?(l=!1,t(o,o,s)):t(o,i,s)}var i=new Array(e.length),o=new Array(e.length),a=[],s=this,u=!1,l=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(o,o,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,r){o[0]=e,i[0]=n,t(o,e===n?o:i,r)}):(r(e,function(e,t){var r=s.$watch(e,function(e,r){o[t]=e,i[t]=r,u||(u=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function r(e){o=e;var t,r,i,s,u;if(!v(o)){if(b(o))if(n(o)){a!==d&&(a=d,g=a.length=0,f++),t=o.length,g!==t&&(f++,a.length=g=t);for(var l=0;l<t;l++)u=a[l],s=o[l],i=u!==u&&s!==s,i||u===s||(f++,a[l]=s)}else{a!==p&&(a=p={},g=0,f++),t=0;for(r in o)Tr.call(o,r)&&(t++,s=o[r],u=a[r],r in a?(i=u!==u&&s!==s,i||u===s||(f++,a[r]=s)):(g++,a[r]=s,f++));if(g>t){f++;for(r in a)Tr.call(o,r)||(g--,delete a[r])}}else a!==o&&(a=o,f++);return f}}function i(){if(m?(m=!1,t(o,o,u)):t(o,s,u),c)if(b(o))if(n(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var r in o)Tr.call(o,r)&&(s[r]=o[r])}else s=o}r.$stateful=!0;var o,a,s,u=this,c=t.length>1,f=0,h=l(e,r),d=[],p={},m=!0,g=0;return this.$watch(h,i)},$digest:function(){var e,n,r,a,l,f,h,d,p,v,y,b,_=i,k=this,A=[];m("$digest"),c.$$checkUrlChange(),this===E&&null!==u&&(c.defer.cancel(u),x()),s=null;do{for(d=!1,v=k;$.length;){try{b=$.shift(),b.scope.$eval(b.expression,b.locals)}catch(T){t(T)}s=null}e:do{if(f=v.$$watchers)for(h=f.length;h--;)try{if(e=f[h])if(l=e.get,(n=l(v))===(r=e.last)||(e.eq?z(n,r):"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))){if(e===s){d=!1;break e}}else d=!0,s=e,e.last=e.eq?I(n,null):n,a=e.fn,a(n,r===w?n:r,v),_<5&&(y=4-_,A[y]||(A[y]=[]),A[y].push({msg:C(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:n,oldVal:r}))}catch(T){t(T)}if(!(p=v.$$watchersCount&&v.$$childHead||v!==k&&v.$$nextSibling))for(;v!==k&&!(p=v.$$nextSibling);)v=v.$parent}while(v=p);if((d||$.length)&&!_--)throw g(),o("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",i,A)}while(d||$.length);for(g();S.length;)try{S.shift()()}catch(T){t(T)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===E&&c.$$applicationDestroyed(),y(this,-this.$$watchersCount);for(var t in this.$$listenerCount)_(this,this.$$listenerCount[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$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=d,this.$on=this.$watch=this.$watchGroup=function(){return d},this.$$listeners={},this.$$nextSibling=null,h(this)}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){E.$$phase||$.length||c.defer(function(){$.length&&E.$digest()}),$.push({scope:this,expression:l(e),locals:t})},$$postDigest:function(e){S.push(e)},$apply:function(e){try{m("$apply");try{return this.$eval(e)}finally{g()}}catch(n){t(n)}finally{try{E.$digest()}catch(n){throw t(n),n}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&A.push(t),e=l(e),k()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);r!==-1&&(n[r]=null,_(i,1,e))}},$emit:function(e,n){var r,i,o,a=[],s=this,u=!1,l={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=B([l],arguments,1);do{for(r=s.$$listeners[e]||a,l.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,c)}catch(f){t(f)}else r.splice(i,1),i--,o--;if(u)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,n){var r=this,i=r,o=r,a={name:e,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[e])return a;for(var s,u,l,c=B([a],arguments,1);i=o;){for(a.currentScope=i,s=i.$$listeners[e]||[],u=0,l=s.length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(f){t(f)}else s.splice(u,1),u--,l--;if(!(o=i.$$listenerCount[e]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var E=new p,$=E.$$asyncQueue=[],S=E.$$postDigestQueue=[],A=E.$$applyAsyncQueue=[];return E}]}function kn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=Fn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Cn(e){if("self"===e)return e;if(w(e)){if(e.indexOf("***")>-1)throw yo("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Gr(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(E(e))return new RegExp("^"+e.source+"$");throw yo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function En(e){var t=[];return y(e)&&r(e,function(e){t.push(Cn(e))}),t}function $n(){this.SCE_CONTEXTS=bo;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=En(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=En(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Mn(t):!!e.exec(t.href)}function i(n){var i,o,a=Fn(n.toString()),s=!1;for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!0;break}if(s)for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!1;break}return s}function o(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function a(e,t){var n=f.hasOwnProperty(e)?f[e]:null;if(!n)throw yo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||v(t)||""===t)return t;if("string"!=typeof t)throw yo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof c?e.$$unwrapTrustedValue():e}function u(e,t){if(null===t||v(t)||""===t)return t;var n=f.hasOwnProperty(e)?f[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===bo.RESOURCE_URL){if(i(t))return t;throw yo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===bo.HTML)return l(t);throw yo("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(e){throw yo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),f={};return f[bo.HTML]=o(c),f[bo.CSS]=o(c),f[bo.URL]=o(c),f[bo.JS]=o(c),f[bo.RESOURCE_URL]=o(f[bo.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function Sn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Or<8)throw yo("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 i=q(bo);i.isEnabled=function(){return e},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=p),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:t(n,function(t){return i.getTrusted(e,t)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return r(bo,function(e,t){var n=Dr(t);i[we("parse_as_"+n)]=function(t){return o(e,t)},i[we("get_trusted_"+n)]=function(t){return a(e,t)},i[we("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function An(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=e.chrome&&e.chrome.app&&e.chrome.app.runtime,a=!o&&e.history&&e.history.pushState,s=f((/android (\d+)/.exec(Dr((e.navigator||{}).userAgent))||[])[1]),u=/Boxee/i.test((e.navigator||{}).userAgent),l=t[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,h=l.body&&l.body.style,d=!1,p=!1;if(h){for(var m in h)if(r=c.exec(m)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in h&&"webkit"),d=!!("transition"in h||n+"Transition"in h),p=!!("animation"in h||n+"Animation"in h),!s||d&&p||(d=w(h.webkitTransition),p=w(h.webkitAnimation))}return{history:!(!a||s<4||u),hasEvent:function(e){if("input"===e&&Or<=11)return!1;if(v(i[e])){var t=l.createElement("div");i[e]="on"+e in t}return i[e]},csp:Zr(),vendorPrefix:n,transitions:d,animations:p,android:s}}]}function Tn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,r,i){function o(a,s){function u(e){if(!s)throw _o("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText);return r.reject(e)}o.totalPendingRequests++,w(a)&&t.get(a)||(a=i.getTrustedResourceUrl(a));var c=n.defaults&&n.defaults.transformResponse;return Wr(c)?c=c.filter(function(e){return e!==Et}):c===Et&&(c=null),n.get(a,l({cache:t,transformResponse:c},e))["finally"](function(){o.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},u)}return o.totalPendingRequests=0,o}]}function Dn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var i={};return i.findBindings=function(e,t,n){var i=e.getElementsByClassName("ng-binding"),o=[];return r(i,function(e){var i=Ur.element(e).data("$binding");i&&r(i,function(r){if(n){var i=new RegExp("(^|\\s)"+Gr(t)+"(\\s|\\||$)");i.test(r)&&o.push(e)}else r.indexOf(t)!=-1&&o.push(e)})}),o},i.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},i.getLocation=function(){return n.url()},i.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},i.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},i}]}function Nn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){C(o)||(u=s,s=o,o=d);var l,c=H(arguments,3),f=y(u)&&!u,h=(f?r:n).defer(),p=h.promise;return l=t.defer(function(){try{h.resolve(o.apply(null,c))}catch(t){h.reject(t),i(t)}finally{delete a[p.$$timeoutId]}f||e.$apply()},s),p.$$timeoutId=l,a[l]=h,p}var a={};return o.cancel=function(e){return!!(e&&e.$$timeoutId in a)&&(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},o}]}function Fn(e){var t=e;return Or&&(wo.setAttribute("href",t),t=wo.href),wo.setAttribute("href",t),{href:wo.href,protocol:wo.protocol?wo.protocol.replace(/:$/,""):"",host:wo.host,search:wo.search?wo.search.replace(/^\?/,""):"",hash:wo.hash?wo.hash.replace(/^#/,""):"",hostname:wo.hostname,port:wo.port,pathname:"/"===wo.pathname.charAt(0)?wo.pathname:"/"+wo.pathname}}function Mn(e){var t=w(e)?Fn(e):e;return t.protocol===xo.protocol&&t.host===xo.host}function On(){this.$get=m(e)}function jn(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var n=e[0]||{},r={},i="";return function(){var e,o,a,s,u,l=n.cookie||"";if(l!==i)for(i=l,e=i.split("; "),r={},a=0;a<e.length;a++)o=e[a],s=o.indexOf("="),s>0&&(u=t(o.substring(0,s)),v(r[u])&&(r[u]=t(o.substring(s+1))));return r}}function Pn(){this.$get=jn}function Ln(e){function t(i,o){if(b(i)){var a={};return r(i,function(e,n){a[n]=t(n,e)}),a}return e.factory(i+n,o)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Bn),t("date",rr),t("filter",Rn),t("json",ir),t("limitTo",or),t("lowercase",To),t("number",Hn),t("orderBy",ar),t("uppercase",Do)}function Rn(){return function(e,r,i){if(!n(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}var o,a,s=zn(r);switch(s){case"function":o=r;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=In(r,i,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function In(e,t,n){var r,i=b(e)&&"$"in e;return t===!0?t=z:C(t)||(t=function(e,t){return!v(e)&&(null===e||null===t?e===t:!(b(t)||b(e)&&!g(e))&&(e=Dr(""+e),t=Dr(""+t),e.indexOf(t)!==-1))}),r=function(r){return i&&!b(r)?qn(r,e.$,t,!1):qn(r,e,t,n)}}function qn(e,t,n,r,i){var o=zn(e),a=zn(t);if("string"===a&&"!"===t.charAt(0))return!qn(e,t.substring(1),n,r);if(Wr(e))return e.some(function(e){return qn(e,t,n,r)});switch(o){case"object":var s;if(r){for(s in e)if("$"!==s.charAt(0)&&qn(e[s],t,n,!0))return!0;return!i&&qn(e,t,n,!1)}if("object"===a){for(s in t){var u=t[s];if(!C(u)&&!v(u)){var l="$"===s,c=l?e:e[s];if(!qn(c,u,n,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function zn(e){return null===e?"null":typeof e}function Bn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return v(n)&&(n=t.CURRENCY_SYM),v(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Wn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Hn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Wn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Un(e){var t,n,r,i,o,a=0;for((n=e.indexOf(Co))>-1&&(e=e.replace(Co,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)==Eo;r++);if(r==(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)==Eo;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>ko&&(t=t.splice(0,ko-1),a=n-1,n=1),{d:t,e:a,i:n}}function Vn(e,t,n,r){var i=e.d,o=i.length-e.i;t=v(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);f&&(i.unshift(f),e.i++)}function Wn(e,t,n,r,i){if(!w(e)&&!x(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",l="";if(a)l="∞";else{o=Un(u),Vn(o,i,t.minFrac,t.maxFrac);var c=o.d,f=o.i,h=o.e,d=[];for(s=c.reduce(function(e,t){return e&&!t},!0);f<0;)c.unshift(0),f++;f>0?d=c.splice(f):(d=c,c=[0]);var p=[];for(c.length>=t.lgSize&&p.unshift(c.splice(-t.lgSize).join(""));c.length>t.gSize;)p.unshift(c.splice(-t.gSize).join(""));c.length&&p.unshift(c.join("")),l=p.join(n),d.length&&(l+=r+d.join("")),h&&(l+="e+"+h)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Yn(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,i="-")),e=""+e;e.length<t;)e=Eo+e;return n&&(e=e.substr(e.length-t)),i+e}function Kn(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&n==-12&&(a=12),Yn(a,t,r,i)}}function Gn(e,t,n){return function(r,i){var o=r["get"+e](),a=(n?"STANDALONE":"")+(t?"SHORT":""),s=Nr(a+e);return i[s][o]}}function Zn(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Yn(Math[r>0?"floor":"ceil"](r/60),2)+Yn(Math.abs(r%60),2)}function Xn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Jn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Qn(e){return function(t){var n=Xn(t.getFullYear()),r=Jn(t),i=+r-+n,o=1+Math.round(i/6048e5);return Yn(o,e)}}function er(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function tr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function nr(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function rr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=f(t[9]+t[10]),o=f(t[9]+t[11])),a.call(r,f(t[1]),f(t[2])-1,f(t[3]));var u=f(t[4]||0)-i,l=f(t[5]||0)-o,c=f(t[6]||0),h=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,l,c,h),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var a,s,u="",l=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,w(n)&&(n=Ao.test(n)?f(n):t(n)),x(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;i;)s=So.exec(i),s?(l=B(l,s,1),i=l.pop()):(l.push(i),i=null);var c=n.getTimezoneOffset();return o&&(c=K(o,c),n=Z(n,o,!0)),r(l,function(t){a=$o[t],u+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function ir(){return function(e,t){return v(t)&&(t=2),W(e,t)}}function or(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):f(t),isNaN(t)?e:(x(e)&&(e=e.toString()),Wr(e)||w(e)?(n=!n||isNaN(n)?0:f(n),n=n<0?Math.max(0,e.length+n):n,t>=0?e.slice(n,n+t):0===n?e.slice(t,e.length):e.slice(Math.max(0,n+t),n)):e)}}function ar(e){function r(t,n){return n=n?-1:1,t.map(function(t){var r=1,i=p;if(C(t))i=t;else if(w(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(r="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=e(t),i.constant))){var o=i();i=function(e){return e[o]}}return{get:i,descending:r*n}})}function i(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e,t){return"function"==typeof e.valueOf&&(e=e.valueOf(),i(e))?e:g(e)&&(e=e.toString(),i(e))?e:t}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"string"===n?e=e.toLowerCase():"object"===n&&(e=o(e,t)),{value:e,type:n}}function s(e,t){var n=0;return e.type===t.type?e.value!==t.value&&(n=e.value<t.value?-1:1):n=e.type<t.type?-1:1,n}return function(e,i,o){function u(e,t){return{value:e,predicateValues:c.map(function(n){return a(n.get(e),t)})}}function l(e,t){for(var n=0,r=0,i=c.length;r<i&&!(n=s(e.predicateValues[r],t.predicateValues[r])*c[r].descending);++r);return n}if(null==e)return e;if(!n(e))throw t("orderBy")("notarray","Expected array but received: {0}",e);Wr(i)||(i=[i]),0===i.length&&(i=["+"]);var c=r(i,o);c.push({get:function(){return{}},descending:o?-1:1});var f=Array.prototype.map.call(e,u);return f.sort(l),e=f.map(function(e){return e.value})}}function sr(e){return C(e)&&(e={link:e}),e.restrict=e.restrict||"AC",m(e)}function ur(e,t){e.$name=t}function lr(e,t,n,i,o){var a=this,s=[];a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(t.name||t.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=Mo,a.$rollbackViewValue=function(){r(s,function(e){e.$rollbackViewValue()})},a.$commitViewValue=function(){r(s,function(e){e.$commitViewValue()})},a.$addControl=function(e){he(e.$name,"input"),s.push(e),e.$name&&(a[e.$name]=e),e.$$parentForm=a},a.$$renameControl=function(e,t){var n=e.$name;a[n]===e&&delete a[n],a[t]=e,e.$name=t},a.$removeControl=function(e){e.$name&&a[e.$name]===e&&delete a[e.$name],r(a.$pending,function(t,n){a.$setValidity(n,null,e)}),r(a.$error,function(t,n){a.$setValidity(n,null,e)}),r(a.$$success,function(t,n){a.$setValidity(n,null,e)}),R(s,e),e.$$parentForm=Mo},Cr({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(r){var i=r.indexOf(n);i===-1&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(R(r,n),0===r.length&&delete e[t])},$animate:i}),a.$setDirty=function(){i.removeClass(e,va),i.addClass(e,ya),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(e,va,ya+" "+Oo),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(s,function(e){e.$setPristine()})},a.$setUntouched=function(){r(s,function(e){e.$setUntouched()})},a.$setSubmitted=function(){i.addClass(e,Oo),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function cr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function fr(e,t,n,r,i,o){hr(e,t,n,r,i,o),cr(r)}function hr(e,t,n,r,i,o){var a=Dr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,l()})}var u,l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Kr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",l),Ko[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(Yo,function(e){if(!u){var t=this[Ar],n=t.badInput,r=t.typeMismatch;u=o.defer(function(){u=null,t.badInput===n&&t.typeMismatch===r||l(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function dr(e,t){if(k(e))return e;if(w(e)){Uo.lastIndex=0;var n=Uo.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=Xn(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}function pr(e,t){return function(n,i){var o,a;if(k(n))return n;if(w(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ro.test(n))return new Date(n);if(e.lastIndex=0,o=e.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function mr(e,t,n,r){return function(i,o,a,s,u,l,c){function f(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function h(e){return y(e)&&!k(e)?n(e)||void 0:e}gr(i,o,a,s),hr(i,o,a,s,u,l);var d,p=s&&s.$options&&s.$options.timezone;if(s.$$parserName=e,s.$parsers.push(function(e){if(s.$isEmpty(e))return null;if(t.test(e)){var r=n(e,d);return p&&(r=Z(r,p)),r}}),s.$formatters.push(function(e){if(e&&!k(e))throw Ca("datefmt","Expected `{0}` to be a date",e);return f(e)?(d=e,d&&p&&(d=Z(d,p,!0)),c("date")(e,r,p)):(d=null,"")}),y(a.min)||a.ngMin){var m;s.$validators.min=function(e){return!f(e)||v(m)||n(e)>=m},a.$observe("min",function(e){m=h(e),s.$validate()})}if(y(a.max)||a.ngMax){var g;s.$validators.max=function(e){return!f(e)||v(g)||n(e)<=g},a.$observe("max",function(e){g=h(e),s.$validate()})}}}function gr(e,t,n,r){var i=t[0],o=r.$$hasNativeValidators=b(i.validity);o&&r.$parsers.push(function(e){var n=t.prop(Ar)||{};return n.badInput||n.typeMismatch?void 0:e})}function vr(e,t,n,r,i,o){if(gr(e,t,n,r),hr(e,t,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(e){return r.$isEmpty(e)?null:zo.test(e)?parseFloat(e):void 0}),r.$formatters.push(function(e){if(!r.$isEmpty(e)){if(!x(e))throw Ca("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),y(n.min)||n.ngMin){var a;r.$validators.min=function(e){return r.$isEmpty(e)||v(a)||e>=a},n.$observe("min",function(e){y(e)&&!x(e)&&(e=parseFloat(e,10)),a=x(e)&&!isNaN(e)?e:void 0,r.$validate()})}if(y(n.max)||n.ngMax){var s;r.$validators.max=function(e){return r.$isEmpty(e)||v(s)||e<=s},n.$observe("max",function(e){y(e)&&!x(e)&&(e=parseFloat(e,10)),s=x(e)&&!isNaN(e)?e:void 0,r.$validate()})}}function yr(e,t,n,r,i,o){hr(e,t,n,r,i,o),cr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Io.test(n)}}function br(e,t,n,r,i,o){hr(e,t,n,r,i,o),cr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||qo.test(n)}}function _r(e,t,n,r){v(n.name)&&t.attr("name",a());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function wr(e,t,n,r,i){var o;if(y(r)){if(o=e(r),!o.constant)throw Ca("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function xr(e,t,n,r,i,o,a,s){var u=wr(s,e,"ngTrueValue",n.ngTrueValue,!0),l=wr(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){
|
||
r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return z(e,u)}),r.$parsers.push(function(e){return e?u:l})}function kr(e,t){return e="ngClass"+e,["$animate",function(n){function i(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function o(e){var t=[];return Wr(e)?(r(e,function(e){t=t.concat(o(e))}),t):w(e)?e.split(" "):b(e)?(r(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,s,u){function l(e){var t=f(e,1);u.$addClass(t)}function c(e){var t=f(e,-1);u.$removeClass(t)}function f(e,t){var n=s.data("$classCounts")||me(),i=[];return r(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&i.push(e))}),s.data("$classCounts",n),i.join(" ")}function h(e,t){var r=i(t,e),o=i(e,t);r=f(r,1),o=f(o,-1),r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function d(e){if(t===!0||a.$index%2===t){var n=o(e||[]);if(p){if(!z(e,p)){var r=o(p);h(r,n)}}else l(n)}p=Wr(e)?e.map(function(e){return q(e)}):q(e)}var p;a.$watch(u[e],d,!0),u.$observe("class",function(t){d(a.$eval(u[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var s=o(a.$eval(u[e]));i===t?l(s):c(s)}})}}}]}function Cr(e){function t(e,t,s){v(t)?n("$pending",e,s):r("$pending",e,s),N(t)?t?(c(a.$error,e,s),l(a.$$success,e,s)):(l(a.$error,e,s),c(a.$$success,e,s)):(c(a.$error,e,s),c(a.$$success,e,s)),a.$pending?(i(wa,!0),a.$valid=a.$invalid=void 0,o("",null)):(i(wa,!1),a.$valid=Er(a.$error),a.$invalid=!a.$valid,o("",a.$valid));var u;u=a.$pending&&a.$pending[e]?void 0:!a.$error[e]&&(!!a.$$success[e]||null),o(e,u),a.$$parentForm.$setValidity(e,u,a)}function n(e,t,n){a[e]||(a[e]={}),l(a[e],t,n)}function r(e,t,n){a[e]&&c(a[e],t,n),Er(a[e])&&(a[e]=void 0)}function i(e,t){t&&!u[e]?(f.addClass(s,e),u[e]=!0):!t&&u[e]&&(f.removeClass(s,e),u[e]=!1)}function o(e,t){e=e?"-"+ue(e,"-"):"",i(ma+e,t===!0),i(ga+e,t===!1)}var a=e.ctrl,s=e.$element,u={},l=e.set,c=e.unset,f=e.$animate;u[ga]=!(u[ma]=s.hasClass(ma)),a.$setValidity=t}function Er(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function $r(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var Sr=/^\/(.+)\/([a-z]*)$/,Ar="validity",Tr=Object.prototype.hasOwnProperty,Dr=function(e){return w(e)?e.toLowerCase():e},Nr=function(e){return w(e)?e.toUpperCase():e},Fr=function(e){return w(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Mr=function(e){return w(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)&-33)}):e};"i"!=="I".toLowerCase()&&(Dr=Fr,Nr=Mr);var Or,jr,Pr,Lr,Rr=[].slice,Ir=[].splice,qr=[].push,zr=Object.prototype.toString,Br=Object.getPrototypeOf,Hr=t("ng"),Ur=e.angular||(e.angular={}),Vr=0;Or=e.document.documentMode,d.$inject=[],p.$inject=[];var Wr=Array.isArray,Yr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Kr=function(e){return w(e)?e.trim():e},Gr=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Zr=function(){function t(){try{return new Function(""),!1}catch(e){return!0}}if(!y(Zr.rules)){var n=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Zr.rules={noUnsafeEval:!r||r.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!r||r.indexOf("no-inline-style")!==-1}}else Zr.rules={noUnsafeEval:t(),noInlineStyle:!1}}return Zr.rules},Xr=function(){if(y(Xr.name_))return Xr.name_;var t,n,r,i,o=Qr.length;for(n=0;n<o;++n)if(r=Qr[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Xr.name_=i},Jr=/:/g,Qr=["ng-","data-ng-","ng:","x-ng-"],ei=/[A-Z]/g,ti=!1,ni=1,ri=2,ii=3,oi=8,ai=9,si=11,ui={full:"1.5.5",major:1,minor:5,dot:5,codeName:"material-conspiration"};Te.expando="ng339";var li=Te.cache={},ci=1,fi=function(e,t,n){e.addEventListener(t,n,!1)},hi=function(e,t,n){e.removeEventListener(t,n,!1)};Te._data=function(e){return this.cache[e[this.expando]]||{}};var di=/([\:\-\_]+(.))/g,pi=/^moz([A-Z])/,mi={mouseleave:"mouseout",mouseenter:"mouseover"},gi=t("jqLite"),vi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,yi=/<|&#?\w+;/,bi=/<([\w:-]+)/,_i=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wi={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,"",""]};wi.optgroup=wi.option,wi.tbody=wi.tfoot=wi.colgroup=wi.caption=wi.thead,wi.th=wi.td;var xi=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},ki=Te.prototype={ready:function(t){function n(){r||(r=!0,t())}var r=!1;"complete"===e.document.readyState?e.setTimeout(n):(this.on("DOMContentLoaded",n),Te(e).on("load",n))},toString:function(){var e=[];return r(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return jr(e>=0?this[e]:this[this.length+e])},length:0,push:qr,sort:[].sort,splice:[].splice},Ci={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Ci[Dr(e)]=e});var Ei={};r("input,select,option,textarea,button,form,details".split(","),function(e){Ei[e]=!0});var $i={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:je,removeData:Me,hasData:Ce,cleanData:Ee},function(e,t){Te[t]=e}),r({data:je,inheritedData:ze,scope:function(e){return jr.data(e,"$scope")||ze(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return jr.data(e,"$isolateScope")||jr.data(e,"$isolateScopeNoTemplate")},controller:qe,injector:function(e){return ze(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Pe,css:function(e,t,n){return t=we(t),y(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,n){var r=e.nodeType;if(r!==ii&&r!==ri&&r!==oi){var i=Dr(t);if(Ci[i]){if(!y(n))return e[t]||(e.attributes.getNamedItem(t)||d).specified?i:void 0;n?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(y(n))e.setAttribute(t,n);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?void 0:o}}},prop:function(e,t,n){return y(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(v(t)){var n=e.nodeType;return n===ni||n===ii?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(v(t)){if(e.multiple&&"select"===L(e)){var n=[];return r(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){return v(t)?e.innerHTML:(Ne(e,!0),void(e.innerHTML=t))},empty:Be},function(e,t){Te.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Be&&v(2==e.length&&e!==Pe&&e!==qe?t:n)){if(b(t)){for(r=0;r<o;r++)if(e===je)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=v(a)?Math.min(o,1):o,u=0;u<s;u++){var l=e(this[u],t,n);a=a?a+l:l}return a}for(r=0;r<o;r++)e(this[r],t,n);return this}}),r({removeData:Me,on:function(e,t,n,r){if(y(r))throw gi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ke(e)){var i=Oe(e,!0),o=i.events,a=i.handle;a||(a=i.handle=Ye(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length,l=function(t,r,i){var s=o[t];s||(s=o[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||i||fi(e,t,a)),s.push(n)};u--;)t=s[u],mi[t]?(l(mi[t],Ge),l(t,void 0,!0)):l(t)}},off:Fe,one:function(e,t,n){e=jr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,i=e.parentNode;Ne(e),r(new Te(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(e){var t=[];return r(e.childNodes,function(e){e.nodeType===ni&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===ni||n===si){t=new Te(t);for(var r=0,i=t.length;r<i;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===ni){var n=e.firstChild;r(new Te(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Ae(e,jr(t).eq(0).clone()[0])},remove:He,detach:function(e){He(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new Te(t);for(var i=0,o=t.length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Re,removeClass:Le,toggleClass:function(e,t,n){t&&r(t.split(" "),function(t){var r=n;v(r)&&(r=!Pe(e,t)),(r?Re:Le)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==si?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:De,triggerHandler:function(e,t,n){var i,o,a,s=t.type||t,u=Oe(e),c=u&&u.events,f=c&&c[s];f&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:d,type:s,target:e},t.type&&(i=l(i,t)),o=q(f),a=n?[i].concat(n):[i],r(o,function(t){i.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){Te.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)v(i)?(i=e(this[o],t,n,r),y(i)&&(i=jr(i))):Ie(i,e(this[o],t,n,r));return y(i)?i:this},Te.prototype.bind=Te.prototype.on,Te.prototype.unbind=Te.prototype.off}),Je.prototype={put:function(e,t){this[Xe(e,this.nextUid)]=t},get:function(e){return this[Xe(e,this.nextUid)]},remove:function(e){var t=this[e=Xe(e,this.nextUid)];return delete this[e],t}};var Si=[function(){this.$get=[function(){return Je}]}],Ai=/^([^\(]+?)=>/,Ti=/^[^\(]*\(\s*([^\)]*)\)/m,Di=/,/,Ni=/^\s*(_?)(\S+?)\1\s*$/,Fi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Mi=t("$injector");nt.$$annotate=tt;var Oi=t("$animate"),ji=1,Pi="ng-animate",Li=function(){this.$get=d},Ri=function(){var e=new Je,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(e,t,n){var i=!1;return t&&(t=w(t)?t.split(" "):Wr(t)?t:[],r(t,function(t){t&&(i=!0,e[t]=n)})),i}function a(){r(t,function(t){var n=e.get(t);if(n){var i=at(t.attr("class")),o="",a="";r(n,function(e,t){var n=!!i[t];e!==n&&(e?o+=(o.length?" ":"")+t:a+=(a.length?" ":"")+t)}),r(t,function(e){o&&Re(e,o),a&&Le(e,a)}),e.remove(t)}}),t.length=0}function s(n,r,s){var u=e.get(n)||{},l=o(u,r,!0),c=o(u,s,!1);(l||c)&&(e.put(n,u),t.push(n),1===t.length&&i.$$postDigest(a))}return{enabled:d,on:d,off:d,pin:d,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Ii=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Oi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+Pi+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw Oi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Pi)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=ot(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&jr(r),i=i&&jr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",st(o))},move:function(n,r,i,o){return r=r&&jr(r),i=i&&jr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",st(o))},leave:function(t,n){return e.push(t,"leave",st(n),function(){t.remove()})},addClass:function(t,n,r){return r=st(r),r.addClass=it(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=st(r),r.removeClass=it(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=st(i),i.addClass=it(i.addClass,n),i.removeClass=it(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=st(o),o.from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=it(o.tempClasses,i),e.push(t,"animate",o)}}}]}],qi=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},zi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,i,o){function a(e){this.setHost(e);var t=n(),r=function(e){o(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){var n=i[0];n&&n.hidden?r(e):t(e)},this._state=0}var s=0,u=1,l=2;return a.chain=function(e,t){function n(){return r===e.length?void t(!0):void e[r](function(e){return e===!1?void t(!1):(r++,void n())})}var r=0;n()},a.all=function(e,t){function n(n){o=o&&n,++i===e.length&&t(o)}var i=0,o=!0;r(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){this._state===l?e():this._doneCallbacks.push(e)},progress:d,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},"catch":function(e){return this.getPromise()["catch"](e)},"finally":function(e){return this.getPromise()["finally"](e)},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(e){var t=this;t._state===s&&(t._state=u,t._tick(function(){t._resolve(e)}))},_resolve:function(e){this._state!==l&&(r(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=l)}},a}]},Bi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),s||u.complete(),s=!0}),u}function o(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=I(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var s,u=new n;return{start:i,end:i}}}]},Hi=t("$compile"),Ui=new ht;dt.$inject=["$provide","$$sanitizeUriProvider"],pt.prototype.isFirstChange=function(){return this.previousValue===Ui};var Vi=/^((?:x|data)[\:\-_])/i,Wi=t("$controller"),Yi=/^(\S+)(\s+as\s+([\w$]+))?$/,Ki=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof jr&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Gi="application/json",Zi={"Content-Type":Gi+";charset=utf-8"},Xi=/^\[|^\{(?!\{)/,Ji={"[":/]$/,"{":/}$/},Qi=/^\)\]\}',?\n/,eo=t("$http"),to=function(e){return function(){throw eo("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",e)}},no=Ur.$interpolateMinErr=t("$interpolate");no.throwNoconcat=function(e){throw no("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",e)},no.interr=function(e,t){return no("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var ro=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,io={http:80,https:443,ftp:21},oo=t("$location"),ao={$$html5:!1,$$replace:!1,absUrl:Kt("$$absUrl"),url:function(e){if(v(e))return this.$$url;var t=ro.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:Kt("$$protocol"),host:Kt("$$host"),port:Kt("$$port"),path:Gt("$$path",function(e){return e=null!==e?e.toString():"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(w(e)||x(e))e=e.toString(),this.$$search=Q(e);else{if(!b(e))throw oo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=I(e,{}),r(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:v(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Gt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};r([Yt,Wt,Vt],function(e){e.prototype=Object.create(ao),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Vt||!this.$$html5)throw oo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=v(t)?null:t,this}});var so=t("$parse"),uo=Function.prototype.call,lo=Function.prototype.apply,co=Function.prototype.bind,fo=me();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){fo[e]=!0});var ho={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},po=function(e){this.options=e};po.prototype={constructor:po,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=fo[t],o=fo[n],a=fo[r];if(i||o||a){var s=a?r:o?n:t;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(e,t){return t.indexOf(e)!==-1},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\x0B"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw so("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Dr(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,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=ho[o];n+=s||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var mo=function(e,t){this.lexer=e,this.options=t};mo.Program="Program",mo.ExpressionStatement="ExpressionStatement",mo.AssignmentExpression="AssignmentExpression",mo.ConditionalExpression="ConditionalExpression",mo.LogicalExpression="LogicalExpression",mo.BinaryExpression="BinaryExpression",mo.UnaryExpression="UnaryExpression",mo.CallExpression="CallExpression",mo.MemberExpression="MemberExpression",mo.Identifier="Identifier",mo.Literal="Literal",mo.ArrayExpression="ArrayExpression",mo.Property="Property",mo.ObjectExpression="ObjectExpression",mo.ThisExpression="ThisExpression",mo.LocalsExpression="LocalsExpression",mo.NGValueParameter="NGValueParameter",mo.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:mo.Program,body:e}},expressionStatement:function(){return{type:mo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e,t=this.expression();e=this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:mo.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:mo.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:mo.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:mo.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:mo.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:mo.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:mo.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:mo.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:mo.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=I(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:mo.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:mo.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:mo.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:mo.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:mo.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do e.push(this.expression());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:mo.Identifier,name:e.text}},constant:function(){return{type:mo.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:mo.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:mo.Property,kind:"init"},this.peek().constant?e.key=this.constant():this.peek().identifier?e.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),e.value=this.expression(),t.push(e)}while(this.expect(","));return this.consume("}"),{type:mo.ObjectExpression,properties:t}},throwError:function(e,t){throw so("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw so("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw so("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{"this":{type:mo.ThisExpression},$locals:{type:mo.LocalsExpression}}},dn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},sn(i,n.$filter);var o,a="";if(this.stage="assign",o=cn(i)){this.state.computing="assign";var s=this.nextId();this.recurse(o,s),this.return_(s),a="fn.assign="+this.generateFunction("assign","s,v,l")}var u=un(i.body);n.stage="inputs",r(u,function(e,t){var r="fn"+t;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(e,i),n.return_(i),n.state.inputs.push(r),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",c=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,Jt,en,tn,Qt,nn,rn,on,e);return this.state=this.stage=void 0,c.literal=fn(i),c.constant=hn(i),c},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return r(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return r(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,i,o,a){var s,u,l,c,f=this;if(i=i||d,!a&&y(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,i,o,!0));switch(e.type){case mo.Program:r(e.body,function(t,n){f.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?f.current().body.push(u,";"):f.return_(u)});break;case mo.Literal:c=this.escape(e.value),this.assign(t,c),i(c);break;case mo.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),c=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,c),i(c);break;case mo.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){u=e}),c="+"===e.operator?this.plus(s,u):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(u,0):"("+s+")"+e.operator+"("+u+")",this.assign(t,c),i(c);break;case mo.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_("&&"===e.operator?t:f.not(t),f.lazyRecurse(e.right,t)),i(t);break;case mo.ConditionalExpression:t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse(e.alternate,t),f.lazyRecurse(e.consequent,t)),i(t);break;case mo.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),Jt(e.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",e.name)),function(){f.if_("inputs"===f.stage||"s",function(){o&&1!==o&&f.if_(f.not(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",e.name))})},t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),(f.state.expensiveChecks||mn(e.name))&&f.addEnsureSafeObject(t),i(t);break;case mo.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,s,void 0,function(){f.if_(f.notNull(s),function(){o&&1!==o&&f.addEnsureSafeAssignContext(s),e.computed?(u=f.nextId(),f.recurse(e.property,u),f.getStringValue(u),f.addEnsureSafeMemberName(u),o&&1!==o&&f.if_(f.not(f.computedMember(s,u)),f.lazyAssign(f.computedMember(s,u),"{}")),c=f.ensureSafeObject(f.computedMember(s,u)),f.assign(t,c),n&&(n.computed=!0,n.name=u)):(Jt(e.property.name),o&&1!==o&&f.if_(f.not(f.nonComputedMember(s,e.property.name)),f.lazyAssign(f.nonComputedMember(s,e.property.name),"{}")),c=f.nonComputedMember(s,e.property.name),(f.state.expensiveChecks||mn(e.property.name))&&(c=f.ensureSafeObject(c)),f.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){f.assign(t,"undefined")}),i(t)},!!o);break;case mo.CallExpression:t=t||this.nextId(),e.filter?(u=f.filter(e.callee.name),l=[],r(e.arguments,function(e){var t=f.nextId();f.recurse(e,t),l.push(t)}),c=u+"("+l.join(",")+")",f.assign(t,c),i(t)):(u=f.nextId(),s={},l=[],f.recurse(e.callee,u,s,function(){f.if_(f.notNull(u),function(){f.addEnsureSafeFunction(u),r(e.arguments,function(e){f.recurse(e,f.nextId(),void 0,function(e){l.push(f.ensureSafeObject(e))})}),s.name?(f.state.expensiveChecks||f.addEnsureSafeObject(s.context),c=f.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):c=u+"("+l.join(",")+")",c=f.ensureSafeObject(c),f.assign(t,c)},function(){f.assign(t,"undefined")}),i(t)}));break;case mo.AssignmentExpression:if(u=this.nextId(),s={},!ln(e.left))throw so("lval","Trying to assign a value to a non l-value");this.recurse(e.left,void 0,s,function(){f.if_(f.notNull(s.context),function(){f.recurse(e.right,u),f.addEnsureSafeObject(f.member(s.context,s.name,s.computed)),f.addEnsureSafeAssignContext(s.context),c=f.member(s.context,s.name,s.computed)+e.operator+u,f.assign(t,c),i(t||c)})},1);break;case mo.ArrayExpression:l=[],r(e.elements,function(e){f.recurse(e,f.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),i(c);break;case mo.ObjectExpression:l=[],r(e.properties,function(e){f.recurse(e.value,f.nextId(),void 0,function(t){l.push(f.escape(e.key.type===mo.Identifier?e.key.name:""+e.key.value)+":"+t);
|
||
})}),c="{"+l.join(",")+"}",this.assign(t,c),i(c);break;case mo.ThisExpression:this.assign(t,"s"),i("s");break;case mo.LocalsExpression:this.assign(t,"l"),i("l");break;case mo.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/[$_a-zA-Z][$_a-zA-Z0-9]*/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(w(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if("undefined"==typeof e)return"undefined";throw so("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},pn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,sn(i,n.$filter);var o,a;(o=cn(i))&&(a=this.recurse(o));var s,u=un(i.body);u&&(s=[],r(u,function(e,t){var r=n.recurse(e);e.input=r,s.push(r),e.watchId=t}));var l=[];r(i.body,function(e){l.push(n.recurse(e.expression))});var c=0===i.body.length?d:1===i.body.length?l[0]:function(e,t){var n;return r(l,function(r){n=r(e,t)}),n};return a&&(c.assign=function(e,t,n){return a(e,n,t)}),s&&(c.inputs=s),c.literal=fn(i),c.constant=hn(i),c},recurse:function(e,t,n){var i,o,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case mo.Literal:return this.value(e.value,t);case mo.UnaryExpression:return o=this.recurse(e.argument),this["unary"+e.operator](o,t);case mo.BinaryExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case mo.LogicalExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case mo.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case mo.Identifier:return Jt(e.name,s.expression),s.identifier(e.name,s.expensiveChecks||mn(e.name),t,n,s.expression);case mo.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(Jt(e.property.name,s.expression),o=e.property.name),e.computed&&(o=this.recurse(e.property)),e.computed?this.computedMember(i,o,t,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,t,n,s.expression);case mo.CallExpression:return a=[],r(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(o=this.$filter(e.callee.name)),e.filter||(o=this.recurse(e.callee,!0)),e.filter?function(e,n,r,i){for(var s=[],u=0;u<a.length;++u)s.push(a[u](e,n,r,i));var l=o.apply(void 0,s,i);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,i){var u,l=o(e,n,r,i);if(null!=l.value){en(l.context,s.expression),tn(l.value,s.expression);for(var c=[],f=0;f<a.length;++f)c.push(en(a[f](e,n,r,i),s.expression));u=en(l.value.apply(l.context,c),s.expression)}return t?{value:u}:u};case mo.AssignmentExpression:return i=this.recurse(e.left,!0,1),o=this.recurse(e.right),function(e,n,r,a){var u=i(e,n,r,a),l=o(e,n,r,a);return en(u.value,s.expression),nn(u.context),u.context[u.name]=l,t?{value:l}:l};case mo.ArrayExpression:return a=[],r(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case mo.ObjectExpression:return a=[],r(e.properties,function(e){a.push({key:e.key.type===mo.Identifier?e.key.name:""+e.key.value,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case mo.ThisExpression:return function(e){return t?{value:e}:e};case mo.LocalsExpression:return function(e,n){return t?{value:n}:n};case mo.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=y(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=y(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=on(s,u);return n?{value:l}:l}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=(y(s)?s:0)-(y(u)?u:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n,r,i){return function(o,a,s,u){var l=a&&e in a?a:o;r&&1!==r&&l&&!l[e]&&(l[e]={});var c=l?l[e]:void 0;return t&&en(c,i),n?{context:l,name:e,value:c}:c}},computedMember:function(e,t,n,r,i){return function(o,a,s,u){var l,c,f=e(o,a,s,u);return null!=f&&(l=t(o,a,s,u),l=Qt(l),Jt(l,i),r&&1!==r&&(nn(f),f&&!f[l]&&(f[l]={})),c=f[l],en(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(e,t,n,r,i,o){return function(a,s,u,l){var c=e(a,s,u,l);i&&1!==i&&(nn(c),c&&!c[t]&&(c[t]={}));var f=null!=c?c[t]:void 0;return(n||mn(t))&&en(f,o),r?{context:c,name:t,value:f}:f}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var go=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new mo(e,n),this.astCompiler=n.csp?new pn(this.ast,t):new dn(this.ast,t)};go.prototype={constructor:go,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var vo=Object.prototype.valueOf,yo=t("$sce"),bo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},_o=t("$compile"),wo=e.document.createElement("a"),xo=Fn(e.location.href);jn.$inject=["$document"],Ln.$inject=["$provide"];var ko=22,Co=".",Eo="0";Bn.$inject=["$locale"],Hn.$inject=["$locale"];var $o={yyyy:Kn("FullYear",4,0,!1,!0),yy:Kn("FullYear",2,0,!0,!0),y:Kn("FullYear",1,0,!1,!0),MMMM:Gn("Month"),MMM:Gn("Month",!0),MM:Kn("Month",2,1),M:Kn("Month",1,1),LLLL:Gn("Month",!1,!0),dd:Kn("Date",2),d:Kn("Date",1),HH:Kn("Hours",2),H:Kn("Hours",1),hh:Kn("Hours",2,-12),h:Kn("Hours",1,-12),mm:Kn("Minutes",2),m:Kn("Minutes",1),ss:Kn("Seconds",2),s:Kn("Seconds",1),sss:Kn("Milliseconds",3),EEEE:Gn("Day"),EEE:Gn("Day",!0),a:er,Z:Zn,ww:Qn(2),w:Qn(1),G:tr,GG:tr,GGG:tr,GGGG:nr},So=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Ao=/^\-?\d+$/;rr.$inject=["$locale"];var To=m(Dr),Do=m(Nr);ar.$inject=["$parse"];var No=m({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===zr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Fo={};r(Ci,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=mt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Fo[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r($i,function(e,t){Fo[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Sr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),r(["src","srcset","href"],function(e){var t=mt("ng-"+e);Fo[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===zr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(Or&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null))})}}}});var Mo={$addControl:d,$$renameControl:ur,$removeControl:d,$setValidity:d,$setDirty:d,$setPristine:d,$setSubmitted:d},Oo="ng-submitted";lr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var jo=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||d}var i={name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:lr,compile:function(n,i){n.addClass(va).addClass(ma);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};fi(n[0],"submit",u),n.on("$destroy",function(){t(function(){hi(n[0],"submit",u)},0,!1)})}var c=a[1]||s.$$parentForm;c.$addControl(s);var f=o?r(s.$name):d;o&&(f(e,s),i.$observe(o,function(t){s.$name!==t&&(f(e,void 0),s.$$parentForm.$$renameControl(s,t),(f=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),f(e,void 0),l(s,Mo)})}}}};return i}]},Po=jo(),Lo=jo(!0),Ro=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Io=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,qo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,zo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Bo=/^(\d{4,})-(\d{2})-(\d{2})$/,Ho=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Uo=/^(\d{4,})-W(\d\d)$/,Vo=/^(\d{4,})-(\d\d)$/,Wo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yo="keydown wheel mousedown",Ko=me();r("date,datetime-local,month,time,week".split(","),function(e){Ko[e]=!0});var Go={text:fr,date:mr("date",Bo,pr(Bo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":mr("datetimelocal",Ho,pr(Ho,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:mr("time",Wo,pr(Wo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:mr("week",Uo,dr,"yyyy-Www"),month:mr("month",Vo,pr(Vo,["yyyy","MM"]),"yyyy-MM"),number:vr,url:yr,email:br,radio:_r,checkbox:xr,hidden:d,button:d,submit:d,reset:d,file:d},Zo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Go[Dr(a.type)]||Go.text)(i,o,a,s[0],t,e,n,r)}}}}],Xo=/^(true|false|\d+)$/,Jo=function(){return{restrict:"A",priority:100,compile:function(e,t){return Xo.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Qo=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=v(e)?"":e})}}}}],ea=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=v(e)?"":e})}}}}],ta=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(e){return(e||"").toString()});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){r.html(e.getTrustedHtml(o(t))||"")})}}}}],na=m({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),ra=kr("",!0),ia=kr("Odd",0),oa=kr("Even",1),aa=sr({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),sa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ua={},la={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=mt("ng-"+e);ua[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};la[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var ca=["$animate","$compile",function(e,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++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=pe(s.clone),e.leave(l).then(function(){l=null}),s=null))})}}}],fa=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ur.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,d,p=0,m=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),d&&(n.leave(d).then(function(){h=null}),h=d,d=null)};r.$watch(o,function(o){var u=function(){!y(s)||s&&!r.$eval(s)||t()},h=++p;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&h===p){var t=r.$new();l.template=e;var s=c(t,function(e){m(),n.enter(e,null,i).then(u)});f=t,d=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||h===p&&(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),l.template=null)})}}}}],ha=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return zr.call(r[0]).match(/SVG/)?(r.empty(),void t($e(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void t(r.contents())(n))}}}],da=sr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),pa=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var o=t.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?Kr(o):o,u=function(e){if(!v(e)){var t=[];return e&&r(e.split(s),function(e){e&&t.push(a?Kr(e):e)}),t}};i.$parsers.push(u),i.$formatters.push(function(e){if(Wr(e))return e.join(o)}),i.$isEmpty=function(e){return!e||!e.length}}}},ma="ng-valid",ga="ng-invalid",va="ng-pristine",ya="ng-dirty",ba="ng-untouched",_a="ng-touched",wa="ng-pending",xa="ng-empty",ka="ng-not-empty",Ca=t("ngModel"),Ea=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,n,i,o,a,s,u,l,c){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,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=void 0,this.$name=c(n.name||"",!1)(e),this.$$parentForm=Mo;var f,h=o(n.ngModel),p=h.assign,m=h,g=p,b=null,_=this;this.$$setOptions=function(e){if(_.$options=e,e&&e.getterSetter){var t=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");m=function(e){var n=h(e);return C(n)&&(n=t(e)),n},g=function(e,t){C(h(e))?r(e,{$$$p:t}):p(e,t)}}else if(!h.assign)throw Ca("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,X(i))},this.$render=d,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){_.$isEmpty(e)?(a.removeClass(i,ka),a.addClass(i,xa)):(a.removeClass(i,xa),a.addClass(i,ka))};var w=0;Cr({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:a}),this.$setPristine=function(){_.$dirty=!1,_.$pristine=!0,a.removeClass(i,ya),a.addClass(i,va)},this.$setDirty=function(){_.$dirty=!0,_.$pristine=!1,a.removeClass(i,va),a.addClass(i,ya),_.$$parentForm.$setDirty()},this.$setUntouched=function(){_.$touched=!1,_.$untouched=!0,a.setClass(i,ba,_a)},this.$setTouched=function(){_.$touched=!0,_.$untouched=!1,a.setClass(i,_a,ba)},this.$rollbackViewValue=function(){s.cancel(b),_.$viewValue=_.$$lastCommittedViewValue,_.$render()},this.$validate=function(){if(!x(_.$modelValue)||!isNaN(_.$modelValue)){var e=_.$$lastCommittedViewValue,t=_.$$rawModelValue,n=_.$valid,r=_.$modelValue,i=_.$options&&_.$options.allowInvalid;_.$$runValidators(t,e,function(e){i||n===e||(_.$modelValue=e?t:void 0,_.$modelValue!==r&&_.$$writeModelToScope())})}},this.$$runValidators=function(e,t,n){function i(){var e=_.$$parserName||"parse";return v(f)?(s(e,null),!0):(f||(r(_.$validators,function(e,t){s(t,null)}),r(_.$asyncValidators,function(e,t){s(t,null)})),s(e,f),f)}function o(){var n=!0;return r(_.$validators,function(r,i){var o=r(e,t);n=n&&o,s(i,o)}),!!n||(r(_.$asyncValidators,function(e,t){s(t,null)}),!1)}function a(){var n=[],i=!0;r(_.$asyncValidators,function(r,o){var a=r(e,t);if(!F(a))throw Ca("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then(function(){s(o,!0)},function(){i=!1,s(o,!1)}))}),n.length?l.all(n).then(function(){u(i)},d):u(!0)}function s(e,t){c===w&&_.$setValidity(e,t)}function u(e){c===w&&n(e)}w++;var c=w;return i()&&o()?void a():void u(!1)},this.$commitViewValue=function(){var e=_.$viewValue;s.cancel(b),(_.$$lastCommittedViewValue!==e||""===e&&_.$$hasNativeValidators)&&(_.$$updateEmptyClasses(e),_.$$lastCommittedViewValue=e,_.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){_.$modelValue!==o&&_.$$writeModelToScope()}var n=_.$$lastCommittedViewValue,r=n;if(f=!v(r)||void 0)for(var i=0;i<_.$parsers.length;i++)if(r=_.$parsers[i](r),v(r)){f=!1;break}x(_.$modelValue)&&isNaN(_.$modelValue)&&(_.$modelValue=m(e));var o=_.$modelValue,a=_.$options&&_.$options.allowInvalid;_.$$rawModelValue=r,a&&(_.$modelValue=r,t()),_.$$runValidators(r,_.$$lastCommittedViewValue,function(e){a||(_.$modelValue=e?r:void 0,t())})},this.$$writeModelToScope=function(){g(e,_.$modelValue),r(_.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})},this.$setViewValue=function(e,t){_.$viewValue=e,_.$options&&!_.$options.updateOnDefault||_.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=_.$options;i&&y(i.debounce)&&(n=i.debounce,x(n)?r=n:x(n[t])?r=n[t]:x(n["default"])&&(r=n["default"])),s.cancel(b),r?b=s(function(){_.$commitViewValue()},r):u.$$phase?_.$commitViewValue():e.$apply(function(){_.$commitViewValue()})},e.$watch(function(){var t=m(e);if(t!==_.$modelValue&&(_.$modelValue===_.$modelValue||t===t)){_.$modelValue=_.$$rawModelValue=t,f=void 0;for(var n=_.$formatters,r=n.length,i=t;r--;)i=n[r](i);_.$viewValue!==i&&(_.$$updateEmptyClasses(i),_.$viewValue=_.$$lastCommittedViewValue=i,_.$render(),_.$$runValidators(t,i,d))}return t})}],$a=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ea,priority:1,compile:function(t){return t.addClass(va).addClass(ba).addClass(ma),{pre:function(e,t,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(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],Sa=/(\s+|^)default(\s+|$)/,Aa=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=I(e.$eval(t.ngModelOptions)),y(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Kr(this.$options.updateOn.replace(Sa,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Ta=sr({terminal:!0,priority:1e3}),Da=t("ngOptions"),Na=/^\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","$document","$parse",function(t,i,o){function a(e,t,r){function i(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&n(e))t=e;else{t=[];for(var r in e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t.push(r)}return t}var s=e.match(Na);if(!s)throw Da("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,X(t));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],h=o(s[2]?s[1]:u),d=c&&o(c),p=d||h,m=f&&o(f),g=f?function(e,t){return m(r,t)}:function(e){return Xe(e)},v=function(e,t){return g(e,k(e,t))},y=o(s[2]||s[1]),b=o(s[3]||""),_=o(s[4]||""),w=o(s[8]),x={},k=l?function(e,t){return x[l]=t,x[u]=e,x}:function(e){return x[u]=e,x};return{trackBy:f,getTrackByValue:v,getWatchables:o(w,function(e){var t=[];e=e||[];for(var n=a(e),i=n.length,o=0;o<i;o++){var u=e===n?o:n[o],l=e[u],c=k(l,u),f=g(l,c);if(t.push(f),s[2]||s[1]){var h=y(r,c);t.push(h)}if(s[4]){var d=_(r,c);t.push(d)}}return t}),getOptions:function(){for(var e=[],t={},n=w(r)||[],o=a(n),s=o.length,u=0;u<s;u++){var l=n===o?u:o[u],c=n[l],h=k(c,l),d=p(r,h),m=g(d,h),x=y(r,h),C=b(r,h),E=_(r,h),$=new i(m,d,x,C,E);e.push($),t[m]=$}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return f?Ur.copy(e.viewValue):e.viewValue}}}}}function s(e,n,o,s){function c(e,t){var n=u.cloneNode(!1);t.appendChild(n),f(e,n)}function f(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}function h(){var e=k&&p.readValue();if(k)for(var t=k.items.length-1;t>=0;t--){var r=k.items[t];He(r.group?r.element.parentNode:r.element)}k=C.getOptions();var i={};if(w&&n.prepend(d),k.items.forEach(function(e){var t;y(e.group)?(t=i[e.group],t||(t=l.cloneNode(!1),E.appendChild(t),t.label=e.group,i[e.group]=t),c(e,t)):c(e,E)}),n[0].appendChild(E),m.$render(),!m.$isEmpty(e)){var o=p.readValue(),a=C.trackBy||g;(a?z(e,o):e===o)||(m.$setViewValue(o),m.$render())}}for(var d,p=s[0],m=s[1],g=o.multiple,v=0,b=n.children(),_=b.length;v<_;v++)if(""===b[v].value){d=b.eq(v);break}var w=!!d,x=jr(u.cloneNode(!1));x.val("?");var k,C=a(o.ngOptions,n,e),E=i[0].createDocumentFragment(),$=function(){w||n.prepend(d),n.val(""),d.prop("selected",!0),d.attr("selected",!0)},S=function(){w||d.remove()},A=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},T=function(){x.remove()};g?(m.$isEmpty=function(e){return!e||0===e.length},p.writeValue=function(e){k.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=k.getOptionFromViewValue(e);t&&(t.element.selected=!0)})},p.readValue=function(){var e=n.val()||[],t=[];return r(e,function(e){var n=k.selectValueMap[e];n&&!n.disabled&&t.push(k.getViewValueFromOption(n))}),t},C.trackBy&&e.$watchCollection(function(){if(Wr(m.$viewValue))return m.$viewValue.map(function(e){return C.getTrackByValue(e)})},function(){m.$render()})):(p.writeValue=function(e){var t=k.getOptionFromViewValue(e);t?(n[0].value!==t.selectValue&&(T(),S(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||w?(T(),$()):(S(),A())},p.readValue=function(){var e=k.selectValueMap[n.val()];return e&&!e.disabled?(S(),T(),k.getViewValueFromOption(e)):null},C.trackBy&&e.$watch(function(){return C.getTrackByValue(m.$viewValue)},function(){m.$render()})),w?(d.remove(),t(d)(e),d.removeClass("ng-scope")):d=jr(u.cloneNode(!1)),n.empty(),h(),e.$watchCollection(C.getWatchables,h)}var u=e.document.createElement("option"),l=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=d},post:s}}}],Ma=["$locale","$interpolate","$log",function(e,t,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(e){s.text(e||"")}var c,f=u.count,h=u.$attr.when&&s.attr(u.$attr.when),p=u.offset||0,m=a.$eval(h)||{},g={},y=t.startSymbol(),b=t.endSymbol(),_=y+f+"-"+p+b,w=Ur.noop;r(u,function(e,t){var n=o.exec(t);if(n){var r=(n[1]?"-":"")+Dr(n[2]);m[r]=s.attr(u.$attr[t])}}),r(m,function(e,n){g[n]=t(e.replace(i,_))}),a.$watch(f,function(t){var r=parseFloat(t),i=isNaN(r);if(i||r in m||(r=e.pluralCat(r-p)),r!==c&&!(i&&x(c)&&isNaN(c))){w();var o=g[r];v(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=d,l()):w=a.$watch(o,l),c=r}})}}}],Oa=["$parse","$animate","$compile",function(e,i,o){var a="$$NG_REMOVED",s=t("ngRepeat"),u=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0===(1&t))},l=function(e){return e.clone[0]},c=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,f){var h=f.ngRepeat,d=o.$$createComment("end ngRepeat",h),p=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var m=p[1],g=p[2],v=p[3],y=p[4];if(p=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!p)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var b=p[3]||p[1],_=p[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);var w,x,k,C,E={$id:Xe};return y?w=e(y):(k=function(e,t){return Xe(t)},C=function(e){return e}),function(e,t,o,f,p){w&&(x=function(t,n,r){return _&&(E[_]=t),E[b]=n,E.$index=r,w(e,E)});var m=me();e.$watchCollection(g,function(o){var f,g,y,w,E,$,S,A,T,D,N,F,M=t[0],O=me();if(v&&(e[v]=o),n(o))T=o,A=x||k;else{A=x||C,T=[];for(var j in o)Tr.call(o,j)&&"$"!==j.charAt(0)&&T.push(j)}for(w=T.length,N=new Array(w),f=0;f<w;f++)if(E=o===T?f:T[f],$=o[E],S=A(E,$,f),m[S])D=m[S],delete m[S],O[S]=D,N[f]=D;else{if(O[S])throw r(N,function(e){e&&e.scope&&(m[e.id]=e)}),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}",h,S,$);N[f]={id:S,scope:void 0,clone:void 0},O[S]=!0}for(var P in m){if(D=m[P],F=pe(D.clone),i.leave(F),F[0].parentNode)for(f=0,g=F.length;f<g;f++)F[f][a]=!0;D.scope.$destroy()}for(f=0;f<w;f++)if(E=o===T?f:T[f],$=o[E],D=N[f],D.scope){y=M;do y=y.nextSibling;while(y&&y[a]);l(D)!=y&&i.move(pe(D.clone),null,M),M=c(D),u(D.scope,f,b,$,_,E,w)}else p(function(e,t){D.scope=t;var n=d.cloneNode(!1);e[e.length++]=n,i.enter(e,null,M),M=n,D.clone=e,O[D.id]=D,u(D.scope,f,b,$,_,E,w)});m=O})}}}}],ja="ng-hide",Pa="ng-hide-animate",La=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,ja,{tempClasses:Pa})})}}}],Ra=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,ja,{tempClasses:Pa})})}}}],Ia=sr(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&r(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),qa=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=o.ngSwitch||o.on,u=[],l=[],c=[],f=[],h=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var i,o;for(i=0,o=c.length;i<o;++i)e.cancel(c[i]);for(c.length=0,i=0,o=f.length;i<o;++i){var s=pe(l[i].clone);f[i].$destroy();var d=c[i]=e.leave(s);d.then(h(c,i))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&r(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],za=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),Ba=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Ha=t("ngTransclude"),Ua=sr({restrict:"EAC",link:function(e,t,n,r,i){function o(e){e.length&&(t.empty(),t.append(e))}if(n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),!i)throw Ha("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",X(t));var a=n.ngTransclude||n.ngTranscludeSlot;i(o,null,a)}}),Va=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Wa={$setViewValue:d,$render:d},Ya=["$element","$scope",function(t,n){var r=this,i=new Je;r.ngModelCtrl=Wa,r.unknownOption=jr(e.document.createElement("option")),
|
||
r.renderUnknownOption=function(e){var n="? "+Xe(e)+" ?";r.unknownOption.val(n),t.prepend(r.unknownOption),t.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=d}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),t.val()},r.writeValue=function(e){r.hasOption(e)?(r.removeUnknownOption(),t.val(e),""===e&&r.emptyOption.prop("selected",!0)):null==e&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(e)},r.addOption=function(e,t){if(t[0].nodeType!==oi){he(e,'"option value"'),""===e&&(r.emptyOption=t);var n=i.get(e)||0;i.put(e,n+1),r.ngModelCtrl.$render(),$r(t)}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.remove(e),""===e&&(r.emptyOption=void 0)):i.put(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.registerOption=function(e,t,n,i,o){if(i){var a;n.$observe("value",function(e){y(a)&&r.removeOption(a),a=e,r.addOption(e,t)})}else o?e.$watch(o,function(e,i){n.$set("value",e),i!==e&&r.removeOption(i),r.addOption(e,t)}):r.addOption(n.value,t);t.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Ka=function(){function e(e,t,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,t.on("change",function(){e.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return r(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Je(e);r(t.find("option"),function(e){e.selected=y(n.get(e.value))})};var s,u=NaN;e.$watch(function(){u!==o.$viewValue||z(s,o.$viewValue)||(s=q(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length}}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Ya,priority:1,link:{pre:e,post:t}}},Ga=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if(y(n.value))var r=e(n.value,!0);else{var i=e(t.text(),!0);i||n.$set("value",t.text())}return function(e,t,n){var o="$selectController",a=t.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(e,t,n,r,i)}}}}],Za=m({restrict:"E",terminal:!1}),Xa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},Ja=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(w(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,X(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||v(o)||o.test(t)}}}}},Qa=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=f(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},es=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=f(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};return e.angular.bootstrap?void(e.console&&console.log("WARNING: Tried to load angular more than once.")):(le(),be(Ur),Ur.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return t==-1?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r),o=(e*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.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"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],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",localeID:"en_US",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),void jr(e.document).ready(function(){ie(e.document,oe)}))}(window),!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(e,t){"use strict";function n(){function e(e,n){return t.extend(Object.create(e),n)}function n(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(e,t,n,r){var o="?"===r||"*?"===r?"?":null,a="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),t=t||"",""+(o?"":t)+"(?:"+(o?t:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+e+"$",n?"i":""),r}var r={};this.when=function(e,i){var o=t.copy(i);if(t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,e&&n(e,o)),e){var a="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";r[a]=t.extend({redirectTo:e},n(a,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,a,u,l,c){function f(e,t){var n=t.keys,r={};if(!t.regexp)return null;var i=t.regexp.exec(e);if(!i)return null;for(var o=1,a=i.length;o<a;++o){var s=n[o-1],u=i[o];s&&u&&(r[s.name]=u)}return r}function h(e){var r=b.current;g=p(),v=g&&r&&g.$$route===r.$$route&&t.equals(g.pathParams,r.pathParams)&&!g.reloadOnSearch&&!y,v||!r&&!g||n.$broadcast("$routeChangeStart",g,r).defaultPrevented&&e&&e.preventDefault()}function d(){var e=b.current,r=g;v?(e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e)):(r||e)&&(y=!1,b.current=r,r&&r.redirectTo&&(t.isString(r.redirectTo)?i.path(m(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 e,n,i=t.extend({},r.resolve);return t.forEach(i,function(e,n){i[n]=t.isString(e)?u.get(e):u.invoke(e,null,null,n)}),t.isDefined(e=r.template)?t.isFunction(e)&&(e=e(r.params)):t.isDefined(n=r.templateUrl)&&(t.isFunction(n)&&(n=n(r.params)),t.isDefined(n)&&(r.loadedTemplateUrl=c.valueOf(n),e=l(n))),t.isDefined(e)&&(i.$template=e),a.all(i)}}).then(function(i){r==b.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))},function(t){r==b.current&&n.$broadcast("$routeChangeError",r,e,t)}))}function p(){var n,o;return t.forEach(r,function(r,a){!o&&(n=f(i.path(),r))&&(o=e(r,{params:t.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&e(r[null],{params:{},pathParams:{}})}function m(e,n){var r=[];return t.forEach((e||"").split(":"),function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var g,v,y=!1,b={routes:r,reload:function(){y=!0;var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,y=!1}};n.$evalAsync(function(){h(e),e.defaultPrevented||d()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw s("norout","Tried updating route when with no current route");e=t.extend({},this.current.params,e),i.path(m(this.current.$$route.originalPath,e)),i.search(e)}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",d),b}]}function r(){this.$get=function(){return{}}}function i(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function l(){d&&(r.cancel(d),d=null),f&&(f.$destroy(),f=null),h&&(d=r.leave(h),d.then(function(){d=null}),h=null)}function c(){var a=e.current&&e.current.locals,s=a&&a.$template;if(t.isDefined(s)){var c=i.$new(),d=e.current,g=u(c,function(e){r.enter(e,null,h||o).then(function(){!t.isDefined(p)||p&&!i.$eval(p)||n()}),l()});h=g,f=d.scope=c,f.$emit("$viewContentLoaded"),f.$eval(m)}else l()}var f,h,d,p=a.autoscroll,m=a.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function o(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var s=e(i.contents());if(o.controller){a.$scope=r;var u=t(o.controller,a);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}r[o.resolveAs||"$resolve"]=a,s(r)}}}var a=t.module("ngRoute",["ng"]).provider("$route",n),s=t.$$minErr("ngRoute");a.provider("$routeParams",r),a.directive("ngView",i),a.directive("ngView",o),i.$inject=["$route","$anchorScroll","$animate"],o.$inject=["$compile","$controller","$route"]}(window,window.angular),function(e,t){"use strict";function n(){var e=!1;this.$get=["$$sanitizeUri",function(n){return e&&t.extend(x,_),function(e){var t=[];return o(e,u(t,function(e,t){return!/^unsafe:/.test(n(e,t))})),t.join("")}}],this.enableSvg=function(n){return t.isDefined(n)?(e=n,this):e}}function r(e){var n=[],r=u(n,t.noop);return r.chars(e),n.join("")}function i(e,n){var r,i={},o=e.split(",");for(r=0;r<o.length;r++)i[n?t.lowercase(o[r]):o[r]]=!0;return i}function o(t,n){null===t||void 0===t?t="":"string"!=typeof t&&(t=""+t),c.innerHTML=t;var r=5;do{if(0===r)throw f("uinput","Failed to sanitize html because the input is unstable");r--,e.document.documentMode&&l(c),t=c.innerHTML,c.innerHTML=t}while(t!==c.innerHTML);for(var i=c.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),a(i.attributes));break;case 3:n.chars(i.textContent)}var o;if(!(o=i.firstChild)&&(1==i.nodeType&&n.end(i.nodeName.toLowerCase()),o=i.nextSibling,!o))for(;null==o&&(i=i.parentNode,i!==c);)o=i.nextSibling,1==i.nodeType&&n.end(i.nodeName.toLowerCase());i=o}for(;i=c.firstChild;)c.removeChild(i)}function a(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function s(e){return e.replace(/&/g,"&").replace(h,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(d,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function u(e,n){var r=!1,i=t.bind(e,e.push);return{start:function(e,o){e=t.lowercase(e),!r&&w[e]&&(r=e),r||x[e]!==!0||(i("<"),i(e),t.forEach(o,function(r,o){var a=t.lowercase(o),u="img"===e&&"src"===a||"background"===a;$[a]!==!0||k[a]===!0&&!n(r,u)||(i(" "),i(o),i('="'),i(s(r)),i('"'))}),i(">"))},end:function(e){e=t.lowercase(e),r||x[e]!==!0||p[e]===!0||(i("</"),i(e),i(">")),e==r&&(r=!1)},chars:function(e){r||i(s(e))}}}function l(t){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.indexOf("ns1:")||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&l(s),s=t.nextSibling,s&&l(s)}var c,f=t.$$minErr("$sanitize"),h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=/([^\#-~ |!])/g,p=i("area,br,col,hr,img,wbr"),m=i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),g=i("rp,rt"),v=t.extend({},g,m),y=t.extend({},m,i("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,section,table,ul")),b=t.extend({},g,i("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")),_=i("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"),w=i("script,style"),x=t.extend({},p,y,b,v),k=i("background,cite,href,longdesc,src,xlink:href"),C=i("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"),E=i("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),$=t.extend({},k,E,C);!function(e){var t;if(!e.document||!e.document.implementation)throw f("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)c=r[0];else{var i=t.createElement("html");c=t.createElement("body"),i.appendChild(c),t.appendChild(i)}}(e),t.module("ngSanitize",[]).provider("$sanitize",n),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),a=t.isString;return function(s,u,l){function c(e){e&&g.push(r(e))}function f(e,n){var r;if(g.push("<a "),t.isFunction(l)&&(l=l(e)),t.isObject(l))for(r in l)g.push(r+'="'+l[r]+'" ');else l={};!t.isDefined(u)||"target"in l||g.push('target="',u,'" '),g.push('href="',e.replace(/"/g,"""),'">'),c(n),g.push("</a>")}if(null==s||""===s)return s;if(!a(s))throw o("notstring","Expected string but received: {0}",s);for(var h,d,p,m=s,g=[];h=m.match(n);)d=h[0],h[2]||h[4]||(d=(h[3]?"http://":"mailto:")+d),p=h.index,c(m.substr(0,p)),f(d,h[0].replace(i,"")),m=m.substring(p+h[0].length);return c(m),e(g.join(""))}}])}(window,window.angular),function(e,t){"use strict";function n(e,t,n){if(!e)throw me("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(B(e)&&(e=e.join(" ")),B(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var r="";return e=B(e)?e:e&&H(e)&&e.length?e.split(/\s+/):[],z(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof q)switch(e.length){case 0:return[];case 1:if(e[0].nodeType===G)return e;break;default:return q(u(e))}if(e.nodeType===G)return q(e)}function u(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType==G)return n}}function l(e,t,n){z(t,function(t){e.addClass(t,n)})}function c(e,t,n){z(t,function(t){e.removeClass(t,n)})}function f(e){return function(t,n){n.addClass&&(l(e,t,n.addClass),n.addClass=null),n.removeClass&&(c(e,t,n.removeClass),n.removeClass=null)}}function h(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||L;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=L},e.$$prepared=!0}return e}function d(e,t){p(e,t),m(e,t)}function p(e,t){t.from&&(e.css(t.from),t.from=null)}function m(e,t){t.to&&(e.css(t.to),t.to=null)}function g(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=v(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=C(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==L?r.domOperation:null;return I(r,i),u&&(r.domOperation=u),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function v(e,t,n){function r(e){H(e)&&(e=e.split(" "));var t={};return z(e,function(e){e.length&&(t[e]=!0)}),t}var i=1,o=-1,a={};e=r(e),t=r(t),z(t,function(e,t){a[t]=i}),n=r(n),z(n,function(e,t){a[t]=a[t]===i?null:o});var s={addClass:"",removeClass:""};return z(a,function(t,n){var r,a;t===i?(r="addClass",a=!e[n]):t===o&&(r="removeClass",a=e[n]),a&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function y(e){return e instanceof t.element?e[0]:e}function b(e,t,n){var r="";t&&(r=o(t,J,!0)),n.addClass&&(r=C(r,o(n.addClass,Z))),n.removeClass&&(r=C(r,o(n.removeClass,X))),r.length&&(n.preparationClasses=r,e.addClass(r))}function _(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function w(e,t){var n=t?"-"+t+"s":"";return k(e,[de,n]),[de,n]}function x(e,t){var n=t?"paused":"",r=j+le;return k(e,[r,n]),[r,n]}function k(e,t){var n=t[0],r=t[1];e.style[n]=r}function C(e,t){return e?t?e+" "+t:e:t}function E(e){return[he,e+"s"]}function $(e,t){var n=t?fe:de;return[n,e+"s"]}function S(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return z(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=A(n)),0===n&&(n=null),r[t]=n}}),r}function A(e){var t=0,n=e.split(/\s*,\s*/);return z(n,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function T(e){return 0===e||null!=e}function D(e,t){var n=M,r=e+"s";return t?n+=ie:r+=" linear all",[n,r]}function N(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function F(e,t,n){z(n,function(n){e[n]=W(e[n])?e[n]:t.style.getPropertyValue(n)})}var M,O,j,P,L=t.noop,R=t.copy,I=t.extend,q=t.element,z=t.forEach,B=t.isArray,H=t.isString,U=t.isObject,V=t.isUndefined,W=t.isDefined,Y=t.isFunction,K=t.isElement,G=1,Z="-add",X="-remove",J="ng-",Q="-active",ee="-prepare",te="ng-animate",ne="$$ngAnimateChildren",re="";V(e.ontransitionend)&&W(e.onwebkittransitionend)?(re="-webkit-",M="WebkitTransition",O="webkitTransitionEnd transitionend"):(M="transition",O="transitionend"),V(e.onanimationend)&&W(e.onwebkitanimationend)?(re="-webkit-",j="WebkitAnimation",P="webkitAnimationEnd animationend"):(j="animation",P="animationend");var ie="Duration",oe="Property",ae="Delay",se="TimingFunction",ue="IterationCount",le="PlayState",ce=9999,fe=j+ae,he=j+ie,de=M+ae,pe=M+ie,me=t.$$minErr("ng"),ge=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o<t.length;o++)t[o]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}],ve=["$interpolate",function(e){return{link:function(n,r,i){function o(e){e="on"===e||"true"===e,r.data(ne,e)}var a=i.ngAnimateChildren;t.isString(a)&&0===a.length?r.data(ne,!0):(o(e(a)(n)),i.$observe("ngAnimateChildren",o))}}}],ye="$$animateCss",be=1e3,_e=3,we=1.5,xe={transitionDuration:pe,transitionDelay:de,transitionProperty:M+oe,animationDuration:he,animationDelay:fe,animationIterationCount:j+ue},ke={transitionDuration:pe,transitionDelay:de,animationDuration:he,animationDelay:fe},Ce=["$animateProvider",function(e){var t=N(),n=N();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,r,s,u,l,c,g,v){function b(e,t){var n="$$ngAnimateParentKey",r=e.parentNode,i=r[n]||(r[n]=++q);return i+"-"+e.getAttribute("class")+"-"+t}function _(n,r,i,o){var a=t.get(i);return a||(a=S(e,n,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),t.put(i,a),a}function C(i,a,s,u){var l;if(t.count(s)>0&&(l=n.get(s),!l)){var c=o(a,"-stagger");r.addClass(i,c),l=S(e,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 A(e){H.push(e),g.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=l(),r=0;r<H.length;r++)H[r](e);H.length=0})}function N(e,t,n){var r=_(e,t,n,xe),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 I=f(r),q=0,H=[];return function(e,n){function l(){g()}function f(){g(!0)}function g(t){if(!(Y||G&&K)){Y=!0,K=!1,U.$$skipPreparationClasses||r.removeClass(e,xe),r.removeClass(e,Ee),x(W,!1),w(W,!1),z(le,function(e){W.style[e[0]]=""}),I(e,U),d(e,U),Object.keys(V).length&&z(V,function(e,t){e?W.style.setProperty(t,e):W.style.removeProperty(t)}),U.onDone&&U.onDone(),de&&de.length&&e.off(de.join(" "),q);var n=e.data(ye);n&&(u.cancel(n[0].timer),e.removeData(ye)),ee&&ee.complete(!t)}}function _(e){Ie.blockTransition&&w(W,e),Ie.blockKeyframeAnimation&&x(W,!!e)}function S(){return ee=new s({end:l,cancel:f}),A(L),g(),{$$willAnimate:!1,start:function(){return ee},end:l}}function q(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(_e));Math.max(n-ue,0)>=re&&r>=ie&&(G=!0,g())}function H(){function t(){if(!Y){if(_(!1),z(le,function(e){var t=e[0],n=e[1];W.style[t]=n}),I(e,U),r.addClass(e,Ee),Ie.recalculateTimingStyles){if(Ce=W.className+" "+xe,Ae=b(W,Ce),Le=N(W,Ce,Ae),Re=Le.maxDelay,ne=Math.max(Re,0),ie=Le.maxDuration,0===ie)return void g();Ie.hasTransitions=Le.transitionDuration>0,Ie.hasAnimations=Le.animationDuration>0}if(Ie.applyAnimationDelay&&(Re="boolean"!=typeof U.delay&&T(U.delay)?parseFloat(U.delay):Re,ne=Math.max(Re,0),Le.animationDelay=Re,qe=$(Re,!0),le.push(qe),W.style[qe[0]]=qe[1]),re=ne*be,ae=ie*be,U.easing){var t,i=U.easing;Ie.hasTransitions&&(t=M+se,le.push([t,i]),W.style[t]=i),Ie.hasAnimations&&(t=j+se,le.push([t,i]),W.style[t]=i)}Le.transitionDuration&&de.push(O),Le.animationDuration&&de.push(P),ue=Date.now();var o=re+we*ae,a=ue+o,s=e.data(ye)||[],l=!0;if(s.length){var c=s[0];l=a>c.expectedEndTime,l?u.cancel(c.timer):s.push(g)}if(l){var f=u(n,o,!1);s[0]={timer:f,expectedEndTime:a},s.push(g),e.data(ye,s)}de.length&&e.on(de.join(" "),q),U.to&&(U.cleanupStyles&&F(V,W,Object.keys(U.to)),m(e,U))}}function n(){var t=e.data(ye);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(ye)}}if(!Y){if(!W.parentNode)return void g();var i=function(e){if(G)K&&e&&(K=!1,g());else if(K=!e,Le.animationDuration){var t=x(W,K);K?le.push(t):a(le,t)}},o=je>0&&(Le.transitionDuration&&0===Te.transitionDuration||Le.animationDuration&&0===Te.animationDuration)&&Math.max(Te.animationDelay,Te.transitionDelay);o?u(t,Math.floor(o*je*be),!1):t(),te.resume=function(){i(!0)},te.pause=function(){i(!1)}}}var U=n||{};U.$$prepared||(U=h(R(U)));var V={},W=y(e);if(!W||!W.parentNode||!v.enabled())return S();var Y,K,G,ee,te,ne,re,ie,ae,ue,le=[],fe=e.attr("class"),he=i(U),de=[];if(0===U.duration||!c.animations&&!c.transitions)return S();var pe=U.event&&B(U.event)?U.event.join(" "):U.event,me=pe&&U.structural,ge="",ve="";me?ge=o(pe,J,!0):pe&&(ge=pe),U.addClass&&(ve+=o(U.addClass,Z)),U.removeClass&&(ve.length&&(ve+=" "),ve+=o(U.removeClass,X)),U.applyClassesEarly&&ve.length&&I(e,U);var xe=[ge,ve].join(" ").trim(),Ce=fe+" "+xe,Ee=o(xe,Q),$e=he.to&&Object.keys(he.to).length>0,Se=(U.keyframeStyle||"").length>0;if(!Se&&!$e&&!xe)return S();var Ae,Te;if(U.stagger>0){var De=parseFloat(U.stagger);Te={transitionDelay:De,animationDelay:De,transitionDuration:0,animationDuration:0}}else Ae=b(W,Ce),Te=C(W,xe,Ae,ke);U.$$skipPreparationClasses||r.addClass(e,xe);var Ne;if(U.transitionStyle){var Fe=[M,U.transitionStyle];k(W,Fe),le.push(Fe)}if(U.duration>=0){Ne=W.style[M].length>0;var Me=D(U.duration,Ne);k(W,Me),le.push(Me)}if(U.keyframeStyle){var Oe=[j,U.keyframeStyle];k(W,Oe),le.push(Oe)}var je=Te?U.staggerIndex>=0?U.staggerIndex:t.count(Ae):0,Pe=0===je;Pe&&!U.skipBlocking&&w(W,ce);var Le=N(W,Ce,Ae),Re=Le.maxDelay;ne=Math.max(Re,0),ie=Le.maxDuration;var Ie={};if(Ie.hasTransitions=Le.transitionDuration>0,Ie.hasAnimations=Le.animationDuration>0,Ie.hasTransitionAll=Ie.hasTransitions&&"all"==Le.transitionProperty,Ie.applyTransitionDuration=$e&&(Ie.hasTransitions&&!Ie.hasTransitionAll||Ie.hasAnimations&&!Ie.hasTransitions),Ie.applyAnimationDuration=U.duration&&Ie.hasAnimations,Ie.applyTransitionDelay=T(U.delay)&&(Ie.applyTransitionDuration||Ie.hasTransitions),Ie.applyAnimationDelay=T(U.delay)&&Ie.hasAnimations,Ie.recalculateTimingStyles=ve.length>0,(Ie.applyTransitionDuration||Ie.applyAnimationDuration)&&(ie=U.duration?parseFloat(U.duration):ie,Ie.applyTransitionDuration&&(Ie.hasTransitions=!0,Le.transitionDuration=ie,Ne=W.style[M+oe].length>0,le.push(D(ie,Ne))),Ie.applyAnimationDuration&&(Ie.hasAnimations=!0,Le.animationDuration=ie,le.push(E(ie)))),0===ie&&!Ie.recalculateTimingStyles)return S();if(null!=U.delay){var qe;"boolean"!=typeof U.delay&&(qe=parseFloat(U.delay),ne=Math.max(qe,0)),Ie.applyTransitionDelay&&le.push($(qe)),Ie.applyAnimationDelay&&le.push($(qe,!0))}return null==U.duration&&Le.transitionDuration>0&&(Ie.recalculateTimingStyles=Ie.recalculateTimingStyles||Pe),re=ne*be,ae=ie*be,U.skipBlocking||(Ie.blockTransition=Le.transitionDuration>0,Ie.blockKeyframeAnimation=Le.animationDuration>0&&Te.animationDelay>0&&0===Te.animationDuration),U.from&&(U.cleanupStyles&&F(V,W,Object.keys(U.from)),p(e,U)),Ie.blockTransition||Ie.blockKeyframeAnimation?_(ie):U.skipBlocking||w(W,!1),{$$willAnimate:!0,end:l,start:function(){if(!Y)return te={end:l,cancel:f,resume:null,pause:null},ee=new s(te),A(H),ee}}}}]}],Ee=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.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(e,a,s,u,l,c,h){function d(e){return e.replace(/\bng-\S+\b/g,"")}function p(e,t){return H(e)&&(e=e.split(" ")),H(t)&&(t=t.split(" ")),e.filter(function(e){return t.indexOf(e)===-1}).join(" ")}function m(t,a,u){function l(e){var t={},n=y(e).getBoundingClientRect();return z(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=b.scrollTop;break;case"left":r+=b.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function c(){var t=e(g,{addClass:i,delay:!0,from:l(a)});return t.$$willAnimate?t:null}function f(e){return e.attr("class")||""}function h(){var t=d(f(u)),n=p(t,v),r=p(v,t),a=e(g,{to:l(u),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function m(){g.remove(),a.removeClass(n),u.removeClass(n)}var g=q(y(a).cloneNode(!0)),v=d(f(g));a.addClass(n),u.addClass(n),g.addClass(r),w.append(g);var _,x=c();if(!x&&(_=h(),!_))return m();var k=x||_;return{start:function(){function e(){n&&n.end()}var t,n=k.start();return n.done(function(){return n=null,!_&&(_=h())?(n=_.start(),n.done(function(){n=null,m(),t.complete()}),n):(m(),void t.complete())}),t=new s({end:e,cancel:e})}}}function g(e,t,n,r){var i=v(e,L),o=v(t,L),a=[];if(z(r,function(e){var t=e.out,r=e["in"],i=m(n,t,r);i&&a.push(i)}),i||o||0!==a.length)return{start:function(){function e(){z(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),z(a,function(e){t.push(e.start())});var n=new s({end:e,cancel:e});return s.all(t,function(e){n.complete(e)}),n}}}function v(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=C(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return L;var b=h[0].body,_=y(u),w=q(t(_)||b.contains(_)?_:b);f(c);return function(e){return e.from&&e.to?g(e.from,e.to,e.classes,e.anchors):v(e)}}]}],$e=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=B(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=e.$$registeredAnimations[a];s&&!i[a]&&(r.push(t.get(s)),i[a]=!0)}return r}var o=f(r);return function(e,t,r,a){function s(){a.domOperation(),o(e,a)}function u(){p=!0,s(),d(e,a)}function l(e,t,r,i,o){var a;switch(r){case"animate":a=[t,i.from,i.to,o];break;case"setClass":a=[t,v,y,o];break;case"addClass":a=[t,v,o];break;case"removeClass":a=[t,y,o];break;default:a=[t,o]}a.push(i);var s=e.apply(e,a);if(s)if(Y(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(Y(s))return s;return L}function c(e,t,r,i,o){var a=[];return z(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,u=function(e){a||(a=!0,(o||L)(e),i.complete(!e))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=l(s,e,t,r,function(e){var t=e===!1;u(t)}),i})}),a}function f(e,t,r,i,o){var a=c(e,t,r,i,o);if(0===a.length){var s,u;"beforeSetClass"===o?(s=c(e,"removeClass",r,i,"beforeRemoveClass"),u=c(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=c(e,"removeClass",r,i,"removeClass"),u=c(e,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),u&&(a=a.concat(u))}if(0!==a.length)return function(e){var t=[];return a.length&&z(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){z(t,function(t){e?t.cancel():t.end()})}}}var p=!1;3===arguments.length&&U(r)&&(a=r,r=null),a=h(a),r||(r=e.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var m,g,v=a.addClass,y=a.removeClass,b=i(r);if(b.length){var _,w;"leave"==t?(w="leave",_="afterLeave"):(w="before"+t.charAt(0).toUpperCase()+t.substr(1),_=t),"enter"!==t&&"move"!==t&&(m=f(e,t,a,b,w)),g=f(e,t,a,b,_)}if(m||g){var x;return{$$willAnimate:!0,end:function(){return x?x.end():(u(),x=new n,x.complete(!0)),x},start:function(){function e(e){u(e),x.complete(e)}function t(t){p||((r||L)(t),e(t))}if(x)return x;x=new n;var r,i=[];return m&&i.push(function(e){r=m(e)}),i.length?i.push(function(e){s(),e(!0)}):s(),g&&i.push(function(e){r=g(e)}),x.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(i,e),x}}}}}]}],Se=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,i=t.options,o=t.classes;return e(n,r,o,i)}return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){function e(){return function(){z(o,function(e){e.end()})}}function n(e){a.complete(e)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),t.all(o,n);var a=new t({
|
||
end:e(),cancel:e()});return a}}}return n(e)}}]}],Ae="data-ng-animate",Te="$ngAnimatePin",De=["$animateProvider",function(r){function i(e){if(!e)return null;var t=e.split(m),n=Object.create(null);return z(t,function(e){n[e]=!0}),n}function o(e,t){if(e&&t){var n=i(t);return e.split(m).some(function(e){return n[e]})}}function a(e,t,n,r){return v[e].some(function(e){return e(t,n,r)})}function l(e,t){var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var c=1,p=2,m=" ",v=this.rules={skip:[],cancel:[],join:[]};v.join.push(function(e,t,n){return!t.structural&&l(t)}),v.skip.push(function(e,t,n){return!t.structural&&!l(t)}),v.skip.push(function(e,t,n){return"leave"==n.event&&t.structural}),v.skip.push(function(e,t,n){return n.structural&&n.state===p&&!t.structural}),v.cancel.push(function(e,t,n){return n.structural&&t.structural}),v.cancel.push(function(e,t,n){return n.state===p&&t.structural}),v.cancel.push(function(e,t,n){if(n.structural)return!1;var r=t.addClass,i=t.removeClass,a=n.addClass,s=n.removeClass;return!(V(r)&&V(i)||V(a)&&V(s))&&(o(r,s)||o(i,a))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(i,o,m,v,w,x,k,C,E,$){function S(){var e=!1;return function(t){e?t():o.$$postDigest(function(){e=!0,t()})}}function A(e,t){return g(e,t,{})}function T(e,t,n){var r=y(t),i=y(e),o=[],a=Q[n];return a&&z(a,function(e){ie.call(e.node,r)?o.push(e.callback):"leave"===n&&ie.call(e.node,i)&&o.push(e.callback)}),o}function D(e,t,n){var r=u(t);return e.filter(function(e){var t=e.node===r&&(!n||e.callback===n);return!t})}function N(e,t){"close"!==e||t[0].parentNode||oe.off(t)}function F(e,t,n){function r(t,n,r,o){E(function(){var t=T(m,e,n);t.length?i(function(){z(t,function(t){t(e,r,o)}),N(r,e)}):N(r,e)}),t.progress(n,r,o)}function u(t){_(e,w),re(e,w),d(e,w),w.domOperation(),C.complete(!t)}var f,m,w=R(n);e=s(e),e&&(f=y(e),m=e.parent()),w=h(w);var C=new k,E=S();if(B(w.addClass)&&(w.addClass=w.addClass.join(" ")),w.addClass&&!H(w.addClass)&&(w.addClass=null),B(w.removeClass)&&(w.removeClass=w.removeClass.join(" ")),w.removeClass&&!H(w.removeClass)&&(w.removeClass=null),w.from&&!U(w.from)&&(w.from=null),w.to&&!U(w.to)&&(w.to=null),!f)return u(),C;var $=[f.className,w.addClass,w.removeClass].join(" ");if(!te($))return u(),C;var D=["enter","move","leave"].indexOf(t)>=0,F=v[0].hidden,j=!X||F||Z.get(f),I=!j&&Y.get(f)||{},q=!!I.state;if(j||q&&I.state==c||(j=!P(e,m,t)),j)return F&&r(C,t,"start"),u(),F&&r(C,t,"close"),C;D&&M(e);var V={structural:D,element:e,event:t,addClass:w.addClass,removeClass:w.removeClass,close:u,options:w,runner:C};if(q){var W=a("skip",e,V,I);if(W)return I.state===p?(u(),C):(g(e,I,V),I.runner);var K=a("cancel",e,V,I);if(K)if(I.state===p)I.runner.end();else{if(!I.structural)return g(e,I,V),I.runner;I.close()}else{var G=a("join",e,V,I);if(G){if(I.state!==p)return b(e,D?t:null,w),t=V.event=I.event,w=g(e,I,V),I.runner;A(e,V)}}}else A(e,V);var J=V.structural;if(J||(J="animate"===V.event&&Object.keys(V.options.to||{}).length>0||l(V)),!J)return u(),O(e),C;var Q=(I.counter||0)+1;return V.counter=Q,L(e,c,V),o.$$postDigest(function(){var n=Y.get(f),i=!n;n=n||{};var o=e.parent()||[],a=o.length>0&&("animate"===n.event||n.structural||l(n));if(i||n.counter!==Q||!a)return i&&(re(e,w),d(e,w)),(i||D&&n.event!==t)&&(w.domOperation(),C.end()),void(a||O(e));t=!n.structural&&l(n,!0)?"setClass":n.event,L(e,p);var s=x(e,t,n.options);C.setHost(s),r(C,t,"start",{}),s.done(function(n){u(!n);var i=Y.get(f);i&&i.counter===Q&&O(y(e)),r(C,t,"close",{})})}),C}function M(e){var t=y(e),n=t.querySelectorAll("["+Ae+"]");z(n,function(e){var t=parseInt(e.getAttribute(Ae)),n=Y.get(e);if(n)switch(t){case p:n.runner.end();case c:Y.remove(e)}})}function O(e){var t=y(e);t.removeAttribute(Ae),Y.remove(t)}function j(e,t){return y(e)===y(t)}function P(e,t,n){var r,i=q(v[0].body),o=j(e,i)||"HTML"===e[0].nodeName,a=j(e,m),s=!1,u=Z.get(y(e)),l=q.data(e[0],Te);for(l&&(t=l),t=y(t);t&&(a||(a=j(t,m)),t.nodeType===G);){var c=Y.get(t)||{};if(!s){var f=Z.get(t);if(f===!0&&u!==!1){u=!0;break}f===!1&&(u=!1),s=c.structural}if(V(r)||r===!0){var h=q.data(t,ne);W(h)&&(r=h)}if(s&&r===!1)break;if(o||(o=j(t,i)),o&&a)break;t=a||!(l=q.data(t,Te))?t.parentNode:y(l)}var d=(!s||r)&&u!==!0;return d&&a&&o}function L(e,t,n){n=n||{},n.state=t;var r=y(e);r.setAttribute(Ae,t);var i=Y.get(r),o=i?I(i,n):n;Y.put(r,o)}var Y=new w,Z=new w,X=null,J=o.$watch(function(){return 0===C.totalPendingRequests},function(e){e&&(J(),o.$$postDigest(function(){o.$$postDigest(function(){null===X&&(X=!0)})}))}),Q={},ee=r.classNameFilter(),te=ee?function(e){return ee.test(e)}:function(){return!0},re=f(E),ie=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},oe={on:function(e,t,n){var r=u(t);Q[e]=Q[e]||[],Q[e].push({node:r,callback:n}),q(t).on("$destroy",function(){var i=Y.get(r);i||oe.off(e,t,n)})},off:function(e,n,r){if(1!==arguments.length||t.isString(arguments[0])){var i=Q[e];i&&(Q[e]=1===arguments.length?null:D(i,n,r))}else{n=arguments[0];for(var o in Q)Q[o]=D(Q[o],n)}},pin:function(e,t){n(K(e),"element","not an element"),n(K(t),"parentElement","not an element"),e.data(Te,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,F(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!X;else{var r=K(e);if(r){var i=y(e),o=Z.get(i);1===n?t=!o:Z.put(i,!t)}else t=X=!!e}return t}};return oe}]}],Ne=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function i(e){return e.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,s,u,l,c,p){function m(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,r=n.parentNode;o.put(n,e);for(var a;r;){if(a=o.get(r)){a.processed||(a=t(a));break}r=r.parentNode}return(a||i).children.push(e),e}function n(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var i=r.length,o=0,a=[];for(t=0;t<r.length;t++){var s=r[t];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(e){o++,r.push(e)}),i--}return a.length&&n.push(a),n}var r,i={children:[]},o=new c;for(r=0;r<e.length;r++){var a=e[r];o.put(a.domNode,e[r]={domNode:a.domNode,fn:a.fn,children:[]})}for(r=0;r<e.length;r++)t(e[r]);return n(i)}var g=[],v=f(e);return function(c,f,b){function _(e){var t="["+o+"]",n=e.hasAttribute(o)?[e]:e.querySelectorAll(t),r=[];return z(n,function(e){var t=e.getAttribute(o);t&&t.length&&r.push(e)}),r}function w(e){var t=[],n={};z(e,function(e,r){var i=e.element,a=y(i),s=e.event,u=["enter","move"].indexOf(s)>=0,l=e.structural?_(a):[];if(l.length){var c=u?"to":"from";z(l,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][c]={animationID:r,element:q(e)}})}else t.push(e)});var r={},i={};return z(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,t.push(e[u])))}var c=e[a.animationID],f=e[s.animationID],h=a.animationID.toString();if(!i[h]){var d=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:[]};d.classes.length?t.push(d):(t.push(c),t.push(f))}i[h].anchors.push({out:a.element,"in":s.element})}),t}function x(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}function k(e){for(var t=a.length-1;t>=0;t--){var n=a[t];if(u.has(n)){var r=u.get(n),i=r(e);if(i)return i}}}function C(){c.addClass(te),N&&e.addClass(c,N),F&&(e.removeClass(c,F),F=null)}function E(e,t){function n(e){i(e).setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function $(){var e=i(c);!e||"leave"===f&&b.$$domOperationFired||e.end()}function S(t){c.off("$destroy",$),n(c),v(c,b),d(c,b),b.domOperation(),N&&e.removeClass(c,N),c.removeClass(te),T.complete(!t)}b=h(b);var A=["enter","move","leave"].indexOf(f)>=0,T=new l({end:function(){S()},cancel:function(){S(!0)}});if(!a.length)return S(),T;t(c,T);var D=r(c.attr("class"),r(b.addClass,b.removeClass)),N=b.tempClasses;N&&(D+=" "+N,b.tempClasses=null);var F;return A&&(F="ng-"+f+ee,e.addClass(c,F)),g.push({element:c,classes:D,event:f,structural:A,options:b,beforeStart:C,close:S}),c.on("$destroy",$),g.length>1?T:(s.$$postDigest(function(){var e=[];z(g,function(t){i(t.element)?e.push(t):t.close()}),g.length=0;var t=w(e),n=[];z(t,function(e){n.push({domNode:y(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close,r=e.anchors?e.from.element||e.to.element:e.element;if(i(r)){var o=k(e);o&&(t=o.start)}if(t){var a=t();a.done(function(e){n(!e)}),E(e,a)}else n()}})}),p(m(n))}),T)}}]}],Fe=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r["for"],function(r){a&&e.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[]).directive("ngAnimateSwap",Fe).directive("ngAnimateChildren",ve).factory("$$rAFScheduler",ge).provider("$$animateQueue",De).provider("$$animation",Ne).provider("$animateCss",Ce).provider("$$animateCssDriver",Ee).provider("$$animateJs",$e).provider("$$animateJsDriver",Se)}(window,window.angular),function(e,t){"use strict";function n(){function e(e,t,r,i){return function(a,s,u){var l=u.$normalize(t);!n[l]||o(s,r)||u[l]||a.$watch(u[e],function(e){e=i?!e:!!e,s.attr(t,e)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(e){n=t.extend(n,e)},this.$get=function(){return{config:function(e){return n[e]},$$watchExpr:e}}}var r=t.module("ngAria",["ng"]).provider("$aria",n),i=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],o=function(e,t){if(t.indexOf(e[0].nodeName)!==-1)return!0};r.directive("ngShow",["$aria",function(e){return e.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(e){return e.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(e){return e.$$watchExpr("ngValue","aria-checked",i,!1)}]).directive("ngChecked",["$aria",function(e){return e.$$watchExpr("ngChecked","aria-checked",i,!1)}]).directive("ngReadonly",["$aria",function(e){return e.$$watchExpr("ngReadonly","aria-readonly",i,!1)}]).directive("ngRequired",["$aria",function(e){return e.$$watchExpr("ngRequired","aria-required",i,!1)}]).directive("ngModel",["$aria",function(e){function t(t,n,r,a){return e.config(n)&&!r.attr(t)&&(a||!o(r,i))}function n(e,t){return!t.attr("role")&&t.attr("type")===e&&"INPUT"!==t[0].nodeName}function r(e,t){var n=e.type,r=e.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(i,o){var a=r(o,i);return{pre:function(e,t,n,r){"checkbox"===a&&(r.$isEmpty=function(e){return e===!1})},post:function(r,i,o,s){function u(){return s.$modelValue}function l(e){var t=o.value==s.$viewValue;i.attr("aria-checked",t)}function c(){i.attr("aria-checked",!s.$isEmpty(s.$viewValue))}var f=t("tabindex","tabindex",i,!1);switch(a){case"radio":case"checkbox":n(a,i)&&i.attr("role",a),t("aria-checked","ariaChecked",i,!1)&&r.$watch(u,"radio"===a?l:c),f&&i.attr("tabindex",0);break;case"range":if(n(a,i)&&i.attr("role","slider"),e.config("ariaValue")){var h=!i.attr("aria-valuemin")&&(o.hasOwnProperty("min")||o.hasOwnProperty("ngMin")),d=!i.attr("aria-valuemax")&&(o.hasOwnProperty("max")||o.hasOwnProperty("ngMax")),p=!i.attr("aria-valuenow");h&&o.$observe("min",function(e){i.attr("aria-valuemin",e)}),d&&o.$observe("max",function(e){i.attr("aria-valuemax",e)}),p&&r.$watch(u,function(e){i.attr("aria-valuenow",e)})}f&&i.attr("tabindex",0)}!o.hasOwnProperty("ngRequired")&&s.$validators.required&&t("aria-required","ariaRequired",i,!1)&&o.$observe("required",function(){i.attr("aria-required",!!o.required)}),t("aria-invalid","ariaInvalid",i,!0)&&r.$watch(function(){return s.$invalid},function(e){i.attr("aria-invalid",!!e)})}}}}}]).directive("ngDisabled",["$aria",function(e){return e.$$watchExpr("ngDisabled","aria-disabled",i,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(e,t,n,r){t.attr("aria-live")||t.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(e,t){return{restrict:"A",compile:function(n,r){var a=t(r.ngClick,null,!0);return function(t,n,r){o(n,i)||(e.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),e.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),e.config("bindKeypress")&&!r.ngKeypress&&n.on("keypress",function(e){function n(){a(t,{$event:e})}var r=e.which||e.keyCode;32!==r&&13!==r||t.$apply(n)}))}}}}]).directive("ngDblclick",["$aria",function(e){return function(t,n,r){!e.config("tabindex")||n.attr("tabindex")||o(n,i)||n.attr("tabindex",0)}}])}(window,window.angular),function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():t()}(this,function(){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),r=function(){var r=e.preferredLanguage();angular.isString(r)?e.use(r):n.put(t,e.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t))["catch"](r):r():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(){"use strict";var e,t,n=null,r=!1,i=!1;t={sanitize:function(e,t){return"text"===t&&(e=a(e)),e},escape:function(e,t){return"text"===t&&(e=o(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=s(e,a)),e},escapeParameters:function(e,t){return"params"===t&&(e=s(e,o)),e}},t.escaped=t.escapeParameters,this.addStrategy=function(e,n){return t[e]=n,this},this.removeStrategy=function(e){return delete t[e],this},this.useStrategy=function(e){return r=!0,n=e,this},this.$get=["$injector","$log",function(o,a){var s={},u=function(e,n,r){return angular.forEach(r,function(r){if(angular.isFunction(r))e=r(e,n);else if(angular.isFunction(t[r]))e=t[r](e,n);else{if(!angular.isString(t[r]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'");if(!s[t[r]])try{s[t[r]]=o.get(t[r])}catch(i){throw s[t[r]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'")}e=s[t[r]](e,n)}}),e},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")&&(e=o.get("$sanitize")),{useStrategy:function(e){return function(t){e.useStrategy(t)}}(this),sanitize:function(e,t,r){if(n||l(),arguments.length<3&&(r=n),!r)return e;var i=angular.isArray(r)?r:[r];return u(e,t,i)}}}];var o=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},a=function(t){if(!e)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 e(t)},s=function(e,t,n){if(angular.isObject(e)){var r=angular.isArray(e)?[]:{};if(n){if(n.indexOf(e)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(e),angular.forEach(e,function(e,i){r[i]=s(e,t,n)}),n.splice(-1,1),r}return angular.isNumber(e)?e:t(e)}}function n(e,t,n,r){"use strict";var i,o,a,s,u,l,c,f,h,d,p,m,g,v,y,b={},_=[],w=e,x=[],k="translate-cloak",C=!1,E=!1,$=".",S=!1,A=0,T=!0,D="default",N={"default":function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():t}},F="2.10.0",M=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var e,n,i=t.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(e=0;e<i.languages.length;e++)if(n=i.languages[e],n&&n.length)return n;for(e=0;e<o.length;e++)if(n=i[o[e]],n&&n.length)return n;return null};M.displayName="angular-translate/service: getFirstBrowserLanguage";var O=function(){var e=M()||"";return N[D]&&(e=N[D](e)),e};O.displayName="angular-translate/service: getLocale";var j=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P=function(){return this.toString().replace(/^\s+|\s+$/g,"")},L=function(e){if(e){for(var t=[],n=angular.lowercase(e),r=0,i=_.length;r<i;r++)t.push(angular.lowercase(_[r]));if(j(t,n)>-1)return e;if(o){var a;for(var s in o){var u=!1,l=Object.prototype.hasOwnProperty.call(o,s)&&angular.lowercase(s)===angular.lowercase(e);if("*"===s.slice(-1)&&(u=s.slice(0,-1)===e.slice(0,s.length-1)),(l||u)&&(a=o[s],j(t,angular.lowercase(a))>-1))return a}}var c=e.split("_");return c.length>1&&j(t,angular.lowercase(c[0]))>-1?c[0]:void 0}},R=function(e,t){if(!e&&!t)return b;if(e&&!t){if(angular.isString(e))return b[e]}else angular.isObject(b[e])||(b[e]={}),angular.extend(b[e],I(t));return this};this.translations=R,this.cloakClassName=function(e){return e?(k=e,this):k},this.nestedObjectDelimeter=function(e){return e?($=e,this):$};var I=function(e,t,n,r){var i,o,a,s;t||(t=[]),n||(n={});for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s=e[i],angular.isObject(s)?I(s,t.concat(i),n,i):(o=t.length?""+t.join($)+$+i:i,t.length&&i===r&&(a=""+t.join($),n[a]="@:"+o),n[o]=s));return n};I.displayName="flatObject",this.addInterpolation=function(e){return x.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return d=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(q(e),this):i};var q=function(e){return e&&(i=e),i};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(g=e,this):g},this.translationNotFoundIndicatorRight=function(e){return e?(v=e,this):v},this.fallbackLanguage=function(e){return z(e),this};var z=function(e){return e?(angular.isString(e)?(s=!0,a=[e]):angular.isArray(e)&&(s=!1,a=e),angular.isString(i)&&j(a,i)<0&&a.push(i),this):s?a[0]:a};this.use=function(e){if(e){if(!b[e]&&!p)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return u=e,this}return u};var B=function(e){return e?(w=e,this):f?f+w:w};this.storageKey=B,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return p=e,m=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return c=e,this},this.storagePrefix=function(e){return e?(f=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return h=e,this},this.usePostCompiling=function(e){return C=!!e,this},this.forceAsyncReload=function(e){return E=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},D=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():O();return i=_.length?L(t)||t:t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(_=e,t&&(o=t),this):_},this.useLoaderCache=function(e){return e===!1?y=void 0:e===!0?y=!0:"undefined"==typeof e?y="$translationCache":e&&(y=e),this},this.directivePriority=function(e){return void 0===e?A:(A=e,this)},this.statefulFilter=function(e){return void 0===e?T:(T=e,this)},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,r){var o,f,_,D=t.get(d||"$translateDefaultInterpolation"),N=!1,M={},O={},H=function(e,t,n,s,l){var h=l&&l!==u?L(l)||l:u;if(angular.isArray(e)){var d=function(e){for(var i={},o=[],a=function(e){var o=r.defer(),a=function(t){i[e]=t,o.resolve([e,t])};return H(e,t,n,s,l).then(a,a),o.promise},u=0,c=e.length;u<c;u++)o.push(a(e[u]));return r.all(o).then(function(){return i})};return d(e)}var p=r.defer();e&&(e=P.apply(e));var m=function(){var e=i?O[i]:O[h];if(f=0,c&&!e){var t=o.get(w);if(e=O[t],a&&a.length){var n=j(a,t);f=0===n?1:0,j(a,i)<0&&a.push(i)}}return e}();if(m){var g=function(){l||(h=u),ne(e,t,n,s,h).then(p.resolve,p.reject)};g.displayName="promiseResolved",m["finally"](g)}else ne(e,t,n,s,h).then(p.resolve,p.reject);return p.promise},U=function(e){return g&&(e=[g,e].join(" ")),v&&(e=[e,v].join(" ")),e},V=function(e){u=e,c&&o.put(H.storageKey(),u),n.$emit("$translateChangeSuccess",{language:e}),D.setLocale(u);var t=function(e,t){M[t].setLocale(u)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(M,t),n.$emit("$translateChangeEnd",{language:e})},W=function(e){if(!e)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:e}),N=!0;var o=y;"string"==typeof o&&(o=t.get(o));var a=angular.extend({},m,{key:e,$http:angular.extend({},{cache:o},m.$http)}),s=function(t){var r={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,function(e){angular.extend(r,I(e))}):angular.extend(r,I(t)),N=!1,i.resolve({key:e,table:r}),n.$emit("$translateLoadingEnd",{language:e})};s.displayName="onLoaderSuccess";var u=function(e){n.$emit("$translateLoadingError",{language:e}),i.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return u.displayName="onLoaderError",t.get(p)(a).then(s,u),i.promise};if(c&&(o=t.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(e){var n=t.get(e);n.setLocale(i||u),M[n.getInterpolationIdentifier()]=n};Y.displayName="interpolationFactoryAdder",angular.forEach(x,Y)}var K=function(e){var t=r.defer();if(Object.prototype.hasOwnProperty.call(b,e))t.resolve(b[e]);else if(O[e]){var n=function(e){R(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",O[e].then(n,t.reject)}else t.reject();return t.promise},G=function(e,t,n,i){var o=r.defer(),a=function(r){if(Object.prototype.hasOwnProperty.call(r,t)){i.setLocale(e);var a=r[t];"@:"===a.substr(0,2)?G(e,a.substr(2),n,i).then(o.resolve,o.reject):o.resolve(i.interpolate(r[t],n)),i.setLocale(u)}else o.reject()};return a.displayName="fallbackTranslationResolver",K(e).then(a,o.reject),o.promise},Z=function(e,t,n,r){var i,o=b[e];if(o&&Object.prototype.hasOwnProperty.call(o,t)){if(r.setLocale(e),i=r.interpolate(o[t],n),"@:"===i.substr(0,2))return Z(e,i.substr(2),n,r);r.setLocale(u)}return i},X=function(e,n){if(h){var r=t.get(h)(e,u,n);return void 0!==r?r:e}return e},J=function(e,t,n,i,o){var s=r.defer();if(e<a.length){var u=a[e];G(u,t,n,i).then(s.resolve,function(){J(e+1,t,n,i,o).then(s.resolve)})}else o?s.resolve(o):s.resolve(X(t,n));return s.promise},Q=function(e,t,n,r){var i;if(e<a.length){var o=a[e];i=Z(o,t,n,r),i||(i=Q(e+1,t,n,r))}return i},ee=function(e,t,n,r){return J(_>0?_:f,e,t,n,r)},te=function(e,t,n){return Q(_>0?_:f,e,t,n)},ne=function(e,t,n,i,o){var s=r.defer(),u=o?b[o]:b,l=n?M[n]:D;if(u&&Object.prototype.hasOwnProperty.call(u,e)){var c=u[e];"@:"===c.substr(0,2)?H(c.substr(2),t,n,i,o).then(s.resolve,s.reject):s.resolve(l.interpolate(c,t))}else{var f;h&&!N&&(f=X(e,t)),o&&a&&a.length?ee(e,t,l,i).then(function(e){s.resolve(e)},function(e){s.reject(U(e))}):h&&!N&&f?i?s.resolve(i):s.resolve(f):i?s.resolve(i):s.reject(U(e))}return s.promise},re=function(e,t,n,r){var i,o=r?b[r]:b,s=D;if(M&&Object.prototype.hasOwnProperty.call(M,n)&&(s=M[n]),o&&Object.prototype.hasOwnProperty.call(o,e)){var u=o[e];i="@:"===u.substr(0,2)?re(u.substr(2),t,n,r):s.interpolate(u,t)}else{var l;h&&!N&&(l=X(e,t)),r&&a&&a.length?(f=0,i=te(e,t,s)):i=h&&!N&&l?l:U(e)}return i},ie=function(e){l===e&&(l=void 0),O[e]=void 0};H.preferredLanguage=function(e){return e&&q(e),i},H.cloakClassName=function(){return k},H.nestedObjectDelimeter=function(){return $},H.fallbackLanguage=function(e){if(void 0!==e&&null!==e){if(z(e),p&&a&&a.length)for(var t=0,n=a.length;t<n;t++)O[a[t]]||(O[a[t]]=W(a[t]));H.use(H.use())}return s?a[0]:a},H.useFallbackLanguage=function(e){if(void 0!==e&&null!==e)if(e){var t=j(a,e);t>-1&&(_=t)}else _=0},H.proposedLanguage=function(){return l},H.storage=function(){return o},H.negotiateLocale=L,H.use=function(e){if(!e)return u;var t=r.defer();n.$emit("$translateChangeStart",{language:e});var i=L(e);return i&&(e=i),l=e,!E&&b[e]||!p||O[e]?O[e]?O[e].then(function(e){return l===e.key&&V(e.key),t.resolve(e.key),e},function(e){return!u&&a&&a.length>0?H.use(a[0]).then(t.resolve,t.reject):t.reject(e)}):(t.resolve(e),V(e)):(O[e]=W(e).then(function(n){return R(n.key,n.table),t.resolve(n.key),l===e&&V(n.key),n},function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),r.reject(e)}),O[e]["finally"](function(){ie(e)})),t.promise},H.storageKey=function(){return B()},H.isPostCompilingEnabled=function(){return C},H.isForceAsyncReloadEnabled=function(){return E},H.refresh=function(e){function t(){o.resolve(),n.$emit("$translateRefreshEnd",{language:e})}function i(){o.reject(),n.$emit("$translateRefreshEnd",{language:e})}if(!p)throw new Error("Couldn't refresh translation table, no loader registered!");var o=r.defer();if(n.$emit("$translateRefreshStart",{language:e}),e)if(b[e]){var s=function(n){R(n.key,n.table),e===u&&V(u),t()};s.displayName="refreshPostProcessor",W(e).then(s,i)}else i();else{var l=[],c={};if(a&&a.length)for(var f=0,h=a.length;f<h;f++)l.push(W(a[f])),c[a[f]]=!0;u&&!c[u]&&l.push(W(u));var d=function(e){b={},angular.forEach(e,function(e){R(e.key,e.table)}),u&&V(u),t()};d.displayName="refreshPostProcessor",r.all(l).then(d,i)}return o.promise},H.instant=function(e,t,n,r){var o=r&&r!==u?L(r)||r:u;if(null===e||angular.isUndefined(e))return e;if(angular.isArray(e)){for(var s={},l=0,c=e.length;l<c;l++)s[e[l]]=H.instant(e[l],t,n,r);return s}if(angular.isString(e)&&e.length<1)return e;e&&(e=P.apply(e));var f,d=[];i&&d.push(i),o&&d.push(o),a&&a.length&&(d=d.concat(a));for(var p=0,m=d.length;p<m;p++){var y=d[p];if(b[y]&&"undefined"!=typeof b[y][e]&&(f=re(e,t,n,o)),"undefined"!=typeof f)break}return f||""===f||(g||v?f=U(e):(f=D.interpolate(e,t),h&&!N&&(f=X(e,t)))),f},H.versionInfo=function(){return F},H.loaderCache=function(){return y},H.directivePriority=function(){return A},H.statefulFilter=function(){return T},H.isReady=function(){return S};var oe=r.defer();oe.promise.then(function(){S=!0}),H.onReady=function(e){var t=r.defer();return angular.isFunction(e)&&t.promise.then(e),S?t.resolve():oe.promise.then(t.resolve),t.promise};var ae=n.$on("$translateReady",function(){oe.resolve(),ae(),ae=null}),se=n.$on("$translateChangeEnd",function(){oe.resolve(),se(),se=null});if(p){if(angular.equals(b,{})&&H.use()&&H.use(H.use()),a&&a.length)for(var ue=function(e){return R(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},le=0,ce=a.length;le<ce;le++){var fe=a[le];!E&&b[fe]||(O[fe]=W(fe).then(ue))}}else n.$emit("$translateReady",{language:H.use()});return H}]}function r(e,t){"use strict";var n,r={},i="default";return r.setLocale=function(e){n=e},r.getInterpolationIdentifier=function(){return i},r.useSanitizeValueStrategy=function(e){return t.useStrategy(e),this},r.interpolate=function(n,r){r=r||{},r=t.sanitize(r,"params");var i=e(n)(r);return i=t.sanitize(i,"text")},r}function i(e,t,n,r,i,a){"use strict";var s=function(){return this.toString().replace(/^\s+|\s+$/g,"")};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(t,u){var l=u.translateValues?u.translateValues:void 0,c=u.translateInterpolation?u.translateInterpolation:void 0,f=t[0].outerHTML.match(/translate-value-+/i),h="^(.*)("+n.startSymbol()+".*"+n.endSymbol()+")(.*)",d="^(.*)"+n.startSymbol()+"(.*)"+n.endSymbol()+"(.*)";return function(t,p,m){t.interpolateParams={},t.preText="",t.postText="",t.translateNamespace=o(t);var g={},v=function(e,n,r){if(n.translateValues&&angular.extend(e,i(n.translateValues)(t.$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);e[a]=r[o]}},y=function(e){if(angular.isFunction(y._unwatchOld)&&(y._unwatchOld(),y._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var r=s.apply(p.text()),i=r.match(h);if(angular.isArray(i)){t.preText=i[1],t.postText=i[3],g.translate=n(i[2])(t.$parent);var o=r.match(d);angular.isArray(o)&&o[2]&&o[2].length&&(y._unwatchOld=t.$watch(o[2],function(e){g.translate=e,C()}))}else g.translate=r?r:void 0}else g.translate=e;C()},b=function(e){m.$observe(e,function(t){g[e]=t,C()})};v(t.interpolateParams,m,u);var _=!0;m.$observe("translate",function(e){"undefined"==typeof e?y(""):""===e&&_||(g.translate=e,C()),_=!1});for(var w in m)m.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&b(w);if(m.$observe("translateDefault",function(e){t.defaultText=e,C()}),l&&m.$observe("translateValues",function(e){e&&t.$parent.$watch(function(){angular.extend(t.interpolateParams,i(e)(t.$parent))})}),f){var x=function(e){m.$observe(e,function(n){var r=angular.lowercase(e.substr(14,1))+e.substr(15);t.interpolateParams[r]=n})};for(var k in m)Object.prototype.hasOwnProperty.call(m,k)&&"translateValue"===k.substr(0,14)&&"translateValues"!==k&&x(k)}var C=function(){for(var e in g)g.hasOwnProperty(e)&&void 0!==g[e]&&E(e,g[e],t,t.interpolateParams,t.defaultText,t.translateNamespace)},E=function(t,n,r,i,o,a){n?(a&&"."===n.charAt(0)&&(n=a+n),e(n,i,c,o,r.translateLanguage).then(function(e){$(e,r,!0,t)},function(e){$(e,r,!1,t)})):$(n,r,!1,t)},$=function(t,n,i,o){if("translate"===o){i||"undefined"==typeof n.defaultText||(t=n.defaultText),p.empty().append(n.preText+t+n.postText);var a=e.isPostCompilingEnabled(),s="undefined"!=typeof u.translateCompile,l=s&&"false"!==u.translateCompile;(a&&!s||l)&&r(p.contents())(n)}else{i||"undefined"==typeof n.defaultText||(t=n.defaultText);var c=m.$attr[o];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),p.attr(c,t)}};(l||f||m.translateDefault)&&t.$watch("interpolateParams",C,!0),t.$watch("translateLanguage",C);var S=a.$on("$translateChangeSuccess",C);p.text().length?y(m.translate?m.translate:""):m.translate&&y(m.translate),C(),t.$on("$destroy",S)}}}}function o(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?o(e.$parent):void 0}function a(e,t){"use strict";return{compile:function(n){var r=function(){n.addClass(e.cloakClassName())},i=function(){n.removeClass(e.cloakClassName())};return e.onReady(function(){i()}),r(),function(n,o,a){a.translateCloak&&a.translateCloak.length&&(a.$observe("translateCloak",function(t){e(t).then(i,r)}),t.$on("$translateChangeSuccess",function(){e(a.translateCloak).then(i,r)}))}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=o(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace;
|
||
}}}}}function o(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?o(e.$parent):void 0}function u(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",function(t){e.translateLanguage=t})}}}}function l(e,t){"use strict";var n=function(n,r,i,o){return angular.isObject(r)||(r=e(r)(this)),t.instant(n,r,i,o)};return t.statefulFilter()&&(n.$stateful=!0),n}function c(e){"use strict";return e("translations")}return angular.module("pascalprecht.translate",["ng"]).run(e),e.$inject=["$translate"],e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",t),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","$rootScope"],a.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",s),s.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",u),u.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",l),l.$inject=["$parse","$translate"],l.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",c),c.$inject=["$cacheFactory"],c.displayName="$translationCache","pascalprecht.translate"}),function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():t()}(this,function(){function e(){"use strict";function e(e,t){this.name=e,this.isActive=!0,this.tables={},this.priority=t||0}function t(e){return Object.prototype.hasOwnProperty.call(a,e)}function n(e){return angular.isString(e)&&""!==e}function r(e){if(!n(e))throw new TypeError("Invalid type of a first argument, a non-empty string expected.");return t(e)&&a[e].isActive}function i(e,t){for(var n in t)t[n]&&t[n].constructor&&t[n].constructor===Object?(e[n]=e[n]||{},i(e[n],t[n])):e[n]=t[n];return e}function o(){var e=[];for(var t in a)a[t].isActive&&e.push(a[t]);return e.sort(function(e,t){return e.priority-t.priority}),e}e.prototype.parseUrl=function(e,t){return angular.isFunction(e)?e(this.name,t):e.replace(/\{part\}/g,this.name).replace(/\{lang\}/g,t)},e.prototype.getTable=function(e,t,n,r,i,o){if(this.tables[e])return t.when(this.tables[e]);var a=this;return n(angular.extend({method:"GET",url:this.parseUrl(i,e)},r)).then(function(t){return a.tables[e]=t.data,t.data},function(){return o?o(a.name,e).then(function(t){return a.tables[e]=t,t},function(){return t.reject(a.name)}):t.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 t(r)||(a[r]=new e(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 t(i)||(a[i]=new e(i),a[i].isActive=!1),a[i].tables[r]=o,this},this.deletePart=function(e){if(!n(e))throw new TypeError("Couldn't delete part, first arg has to be string.");return t(e)&&(a[e].isActive=!1),this},this.isPartAvailable=r,this.$get=["$rootScope","$injector","$q","$http",function(s,u,l,c){var f=function(e){if(!n(e.key))throw new TypeError("Unable to load data, a key is not a non-empty string.");if(!n(e.urlTemplate)&&!angular.isFunction(e.urlTemplate))throw new TypeError("Unable to load data, a urlTemplate is not a non-empty string or not a function.");var t=e.loadFailureHandler;if(void 0!==t){if(!angular.isString(t))throw new Error("Unable to load data, a loadFailureHandler is not a string.");t=u.get(t)}var r=[],a=o();return angular.forEach(a,function(n){r.push(n.getTable(e.key,l,c,e.$http,e.urlTemplate,t)),n.urlTemplate=e.urlTemplate}),l.all(r).then(function(){var t={};return a=o(),angular.forEach(a,function(n){i(t,n.tables[e.key])}),t},function(){return l.reject(e.key)})};return f.addPart=function(r,i){if(!n(r))throw new TypeError("Couldn't add part, first arg has to be a string");return t(r)?a[r].isActive||(a[r].isActive=!0,s.$emit("$translatePartialLoaderStructureChanged",r)):(a[r]=new e(r,i),s.$emit("$translatePartialLoaderStructureChanged",r)),f},f.deletePart=function(e,r){if(!n(e))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(t(e)){var i=a[e].isActive;if(r){var o=u.get("$translate"),l=o.loaderCache();"string"==typeof l&&(l=u.get(l)),"object"==typeof l&&angular.forEach(a[e].tables,function(t,n){l.remove(a[e].parseUrl(a[e].urlTemplate,n))}),delete a[e]}else a[e].isActive=!1;i&&s.$emit("$translatePartialLoaderStructureChanged",e)}return f},f.isPartLoaded=function(e,t){return angular.isDefined(a[e])&&angular.isDefined(a[e].tables[t])},f.getRegisteredParts=function(){var e=[];return angular.forEach(a,function(t){t.isActive&&e.push(t.name)}),e},f.isPartAvailable=r,f}]}return angular.module("pascalprecht.translate").provider("$translatePartialLoader",e),e.displayName="$translatePartialLoader","pascalprecht.translate"}),function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():t()}(this,function(){function e(e,t){"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 t(angular.extend({url:[r.prefix,n.key,r.suffix].join(""),method:"GET",params:""},n.$http)).then(function(e){return e.data},function(){return e.reject(n.key)})},i=[],o=n.files.length,a=0;a<o;a++)i.push(r({prefix:n.files[a].prefix,key:n.key,suffix:n.files[a].suffix}));return e.all(i).then(function(e){for(var t=e.length,n={},r=0;r<t;r++)for(var i in e[r])n[i]=e[r][i];return n})}}return angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",e),e.$inject=["$q","$http"],e.displayName="$translateStaticFilesLoader","pascalprecht.translate"}),function(e,t){"function"==typeof define&&define.amd?define(["messageformat"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("messageformat")):t(MessageFormat)}(this,function(e){function t(t,n,r){"use strict";var i={},o=n.get(r),a=new e("en"),s="messageformat";return o||(o=n(r)),o.put("en",a),i.setLocale=function(t){a=o.get(t),a||(a=new e(t),o.put(t,a))},i.getInterpolationIdentifier=function(){return s},i.useSanitizeValueStrategy=function(e){return t.useStrategy(e),this},i.interpolate=function(e,n){n=n||{},n=t.sanitize(n,"params");var r=o.get(e+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(e)(n),r=t.sanitize(r,"text"),o.put(e+angular.toJson(n),r)}return r},i}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").factory("$translateMessageFormatInterpolation",t),t.$inject=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE"],t.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return mr.apply(null,arguments)}function t(e){mr=e}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){var t;for(t in e)return!1;return!0}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,r){return vt(e,t,n,r,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function h(e){return null==e._pf&&(e._pf=f()),e._pf}function d(e){if(null==e._isValid){var t=h(e),n=vr.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function p(e){var t=c(NaN);return null!=e?l(h(t),e):h(t).userInvalidated=!0,t}function m(e){return void 0===e}function g(e,t){var n,r,i;if(m(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),m(t._i)||(e._i=t._i),m(t._f)||(e._f=t._f),m(t._l)||(e._l=t._l),m(t._strict)||(e._strict=t._strict),m(t._tzm)||(e._tzm=t._tzm),m(t._isUTC)||(e._isUTC=t._isUTC),m(t._offset)||(e._offset=t._offset),m(t._pf)||(e._pf=h(t)),m(t._locale)||(e._locale=t._locale),yr.length>0)for(n in yr)r=yr[n],i=t[r],m(i)||(e[r]=i);return e}function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),br===!1&&(br=!0,e.updateOffset(this),br=!1)}function y(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function w(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&_(e[r])!==_(t[r]))&&a++;return a+o}function x(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,n){var r=!0;return l(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),r){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){i+="\n["+a+"] ";for(var s in arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}x(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function C(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),_r[t]||(x(n),_r[t]=!0)}function E(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function $(e){var t,n;for(n in e)t=e[n],E(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function S(e,t){var n,i=l({},e);for(n in t)u(t,n)&&(r(e[n])&&r(t[n])?(i[n]={},l(i[n],e[n]),l(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)u(e,n)&&!u(t,n)&&r(e[n])&&(i[n]=l({},i[n]));return i}function A(e){null!=e&&this.set(e)}function T(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r}function D(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function N(){return this._invalidDate}function F(e){return this._ordinal.replace("%d",e)}function M(e,t,n,r){var i=this._relativeTime[n];return E(i)?i(e,t,n,r):i.replace(/%d/i,e)}function O(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)}function j(e,t){var n=e.toLowerCase();Dr[n]=Dr[n+"s"]=Dr[t]=e}function P(e){return"string"==typeof e?Dr[e]||Dr[e.toLowerCase()]:void 0}function L(e){var t,n,r={};for(n in e)u(e,n)&&(t=P(n),t&&(r[t]=e[n]));return r}function R(e,t){Nr[e]=t}function I(e){var t=[];for(var n in e)t.push({unit:n,priority:Nr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function q(t,n){return function(r){return null!=r?(B(this,t,r),e.updateOffset(this,n),this):z(this,t)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function B(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function H(e){return e=P(e),E(this[e])?this[e]():this}function U(e,t){if("object"==typeof e){e=L(e);for(var n=I(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=P(e),E(this[e]))return this[e](t);return this}function V(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function W(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(jr[e]=i),t&&(jr[t[0]]=function(){return V(i.apply(this,arguments),t[1],t[2])}),n&&(jr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function K(e){var t,n,r=e.match(Fr);for(t=0,n=r.length;t<n;t++)jr[r[t]]?r[t]=jr[r[t]]:r[t]=Y(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=r[i]instanceof Function?r[i].call(t,e):r[i];return o}}function G(e,t){return e.isValid()?(t=Z(t,e.localeData()),Or[t]=Or[t]||K(t),Or[t](e)):e.localeData().invalidDate()}function Z(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Mr.lastIndex=0;r>=0&&Mr.test(e);)e=e.replace(Mr,n),Mr.lastIndex=0,r-=1;return e}function X(e,t,n){Qr[e]=E(t)?t:function(e,r){return e&&n?n:t}}function J(e,t){return u(Qr,e)?Qr[e](t._strict,t._locale):new RegExp(Q(e))}function Q(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),o(t)&&(r=function(e,n){n[t]=_(e)}),n=0;n<e.length;n++)ei[e[n]]=r}function ne(e,t){te(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function re(e,t,n){null!=t&&u(ei,e)&&ei[e](t,n._a,n,e)}function ie(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function oe(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fi).test(t)?"format":"standalone"][e.month()]:this._months}function ae(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fi.test(t)?"format":"standalone"][e.month()]:this._monthsShort}function se(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(i=ci.call(this._shortMonthsParse,a),i!==-1?i:null):(i=ci.call(this._longMonthsParse,a),i!==-1?i:null):"MMM"===t?(i=ci.call(this._shortMonthsParse,a),i!==-1?i:(i=ci.call(this._longMonthsParse,a),i!==-1?i:null)):(i=ci.call(this._longMonthsParse,a),i!==-1?i:(i=ci.call(this._shortMonthsParse,a),i!==-1?i:null))}function ue(e,t,n){var r,i,o;if(this._monthsParseExact)return se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=c([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"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!o(t))return e;return n=Math.min(e.date(),ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ce(t){return null!=t?(le(this,t),e.updateOffset(this,!0),this):z(this,"Month")}function fe(){return ie(this.year(),this.month())}function he(e){return this._monthsParseExact?(u(this,"_monthsRegex")||pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=pi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function de(e){return this._monthsParseExact?(u(this,"_monthsRegex")||pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=mi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=c([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=ee(r[t]),i[t]=ee(i[t]);for(t=0;t<24;t++)o[t]=ee(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function me(e){return ge(e)?366:365}function ge(e){return e%4===0&&e%100!==0||e%400===0}function ve(){return ge(this.year())}function ye(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function be(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function _e(e,t,n){var r=7+t-n,i=(7+be(e,0,r).getUTCDay()-t)%7;return-i+r-1}function we(e,t,n,r,i){var o,a,s=(7+n-r)%7,u=_e(e,r,i),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=me(o)+l):l>me(e)?(o=e+1,a=l-me(e)):(o=e,a=l),{year:o,dayOfYear:a}}function xe(e,t,n){var r,i,o=_e(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+ke(i,t,n)):a>ke(e.year(),t,n)?(r=a-ke(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function ke(e,t,n){var r=_e(e,t,n),i=_e(e+1,t,n);return(me(e)-r+i)/7}function Ce(e){return xe(e,this._week.dow,this._week.doy).week}function Ee(){return this._week.dow}function $e(){return this._week.doy}function Se(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ae(e){var t=xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Te(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function De(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ne(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function Fe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Me(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Oe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=ci.call(this._weekdaysParse,a),i!==-1?i:null):"ddd"===t?(i=ci.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=ci.call(this._minWeekdaysParse,a),i!==-1?i:null):"dddd"===t?(i=ci.call(this._weekdaysParse,a),i!==-1?i:(i=ci.call(this._shortWeekdaysParse,a),i!==-1?i:(i=ci.call(this._minWeekdaysParse,a),i!==-1?i:null))):"ddd"===t?(i=ci.call(this._shortWeekdaysParse,a),i!==-1?i:(i=ci.call(this._weekdaysParse,a),i!==-1?i:(i=ci.call(this._minWeekdaysParse,a),i!==-1?i:null))):(i=ci.call(this._minWeekdaysParse,a),i!==-1?i:(i=ci.call(this._weekdaysParse,a),i!==-1?i:(i=ci.call(this._shortWeekdaysParse,a),i!==-1?i:null)))}function je(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Oe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=c([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Pe(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Te(e,this.localeData()),this.add(e-t,"d")):t}function Le(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Re(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=De(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ie(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=wi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qe(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ze(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ki),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Be(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=ee(s[t]),u[t]=ee(u[t]),l[t]=ee(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function He(){return this.hours()%12||12}function Ue(){return this.hours()||24}function Ve(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function We(e,t){return t._meridiemParse}function Ye(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ke(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ge(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,r,i,o=0;o<e.length;){for(i=Ge(e[o]).split("-"),t=i.length,n=Ge(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=Xe(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&w(i,n,!0)>=t-1)break;t--}o++}return null}function Xe(e){var t=null;if(!Ai[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Ci._abbr,require("./locale/"+e),Je(t)}catch(n){}return Ai[e]}function Je(e,t){var n;return e&&(n=m(t)?tt(e):Qe(e,t),n&&(Ci=n)),Ci._abbr}function Qe(e,t){if(null!==t){var n=Si;if(t.abbr=e,null!=Ai[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ai[e]._config;else if(null!=t.parentLocale){if(null==Ai[t.parentLocale])return Ti[t.parentLocale]||(Ti[t.parentLocale]=[]),Ti[t.parentLocale].push({name:e,config:t}),null;n=Ai[t.parentLocale]._config}return Ai[e]=new A(S(n,t)),Ti[e]&&Ti[e].forEach(function(e){Qe(e.name,e.config)}),Je(e),Ai[e]}return delete Ai[e],null}function et(e,t){if(null!=t){var n,r=Si;null!=Ai[e]&&(r=Ai[e]._config),t=S(r,t),n=new A(t),n.parentLocale=Ai[e],Ai[e]=n,Je(e)}else null!=Ai[e]&&(null!=Ai[e].parentLocale?Ai[e]=Ai[e].parentLocale:null!=Ai[e]&&delete Ai[e]);return Ai[e]}function tt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ci;if(!n(e)){if(t=Xe(e))return t;e=[e]}return Ze(e)}function nt(){return kr(Ai)}function rt(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[ni]<0||n[ni]>11?ni:n[ri]<1||n[ri]>ie(n[ti],n[ni])?ri:n[ii]<0||n[ii]>24||24===n[ii]&&(0!==n[oi]||0!==n[ai]||0!==n[si])?ii:n[oi]<0||n[oi]>59?oi:n[ai]<0||n[ai]>59?ai:n[si]<0||n[si]>999?si:-1,h(e)._overflowDayOfYear&&(t<ti||t>ri)&&(t=ri),h(e)._overflowWeeks&&t===-1&&(t=ui),h(e)._overflowWeekday&&t===-1&&(t=li),h(e).overflow=t),e}function it(e){var t,n,r,i,o,a,s=e._i,u=Di.exec(s)||Ni.exec(s);if(u){for(h(e).iso=!0,t=0,n=Mi.length;t<n;t++)if(Mi[t][1].exec(u[1])){i=Mi[t][0],r=Mi[t][2]!==!1;break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=Oi.length;t<n;t++)if(Oi[t][1].exec(u[3])){o=(u[2]||" ")+Oi[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Fi.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),ct(e)}else e._isValid=!1}function ot(t){var n=ji.exec(t._i);return null!==n?void(t._d=new Date((+n[1]))):(it(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function at(e,t,n){return null!=e?e:null!=t?t:n}function st(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ut(e){var t,n,r,i,o=[];if(!e._d){for(r=st(e),e._w&&null==e._a[ri]&&null==e._a[ni]&<(e),e._dayOfYear&&(i=at(e._a[ti],r[ti]),e._dayOfYear>me(i)&&(h(e)._overflowDayOfYear=!0),n=be(i,0,e._dayOfYear),e._a[ni]=n.getUTCMonth(),e._a[ri]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ii]&&0===e._a[oi]&&0===e._a[ai]&&0===e._a[si]&&(e._nextDay=!0,e._a[ii]=0),e._d=(e._useUTC?be:ye).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ii]=24)}}function lt(e){var t,n,r,i,o,a,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=at(t.GG,e._a[ti],xe(yt(),1,4).year),r=at(t.W,1),i=at(t.E,1),(i<1||i>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var l=xe(yt(),o,a);n=at(t.gg,e._a[ti],l.year),r=at(t.w,l.week),null!=t.d?(i=t.d,(i<0||i>6)&&(u=!0)):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>ke(n,o,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=we(n,r,i,o,a),e._a[ti]=s.year,e._dayOfYear=s.dayOfYear)}function ct(t){if(t._f===e.ISO_8601)return void it(t);t._a=[],h(t).empty=!0;var n,r,i,o,a,s=""+t._i,u=s.length,l=0;for(i=Z(t._f,t._locale).match(Fr)||[],n=0;n<i.length;n++)o=i[n],r=(s.match(J(o,t))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&h(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),jr[o]?(r?h(t).empty=!1:h(t).unusedTokens.push(o),re(o,r,t)):t._strict&&!r&&h(t).unusedTokens.push(o);h(t).charsLeftOver=u-l,s.length>0&&h(t).unusedInput.push(s),t._a[ii]<=12&&h(t).bigHour===!0&&t._a[ii]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[ii]=ft(t._locale,t._a[ii],t._meridiem),ut(t),rt(t)}function ft(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ht(e){var t,n,r,i,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],ct(t),d(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));l(e,n||t)}function dt(e){if(!e._d){var t=L(e._i);e._a=s([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ut(e)}}function pt(e){var t=new v(rt(mt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function mt(e){var t=e._i,r=e._f;return e._locale=e._locale||tt(e._l),null===t||void 0===r&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),y(t)?new v(rt(t)):(a(t)?e._d=t:n(r)?ht(e):r?ct(e):gt(e),d(e)||(e._d=null),e))}function gt(t){var r=t._i;void 0===r?t._d=new Date(e.now()):a(r)?t._d=new Date(r.valueOf()):"string"==typeof r?ot(t):n(r)?(t._a=s(r.slice(0),function(e){return parseInt(e,10)}),ut(t)):"object"==typeof r?dt(t):o(r)?t._d=new Date(r):e.createFromInputFallback(t)}function vt(e,t,o,a,s){var u={};return o!==!0&&o!==!1||(a=o,o=void 0),(r(e)&&i(e)||n(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=o,u._i=e,u._f=t,u._strict=a,pt(u)}function yt(e,t,n,r){return vt(e,t,n,r,!1)}function bt(e,t){var r,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return yt();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](r)||(r=t[i]);return r}function _t(){var e=[].slice.call(arguments,0);return bt("isBefore",e)}function wt(){var e=[].slice.call(arguments,0);return bt("isAfter",e)}function xt(e){var t=L(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=tt(),this._bubble()}function kt(e){return e instanceof xt}function Ct(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Et(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+V(~~(e/60),2)+t+V(~~e%60,2)})}function $t(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ii)||["-",0,0],o=+(60*i[1])+_(i[2]);return 0===o?0:"+"===i[0]?o:-o}function St(t,n){var r,i;return n._isUTC?(r=n.clone(),i=(y(t)||a(t)?t.valueOf():yt(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),e.updateOffset(r,!1),r):yt(t).local()}function At(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Tt(t,n){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(t=$t(Zr,t),null===t)return this}else Math.abs(t)<16&&(t=60*t);return!this._isUTC&&n&&(r=At(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!n||this._changeInProgress?Vt(this,qt(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),
|
||
this}return this._isUTC?i:At(this)}function Dt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Nt(e){return this.utcOffset(0,e)}function Ft(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(At(this),"m")),this}function Mt(){if(null!=this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var e=$t(Gr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ot(e){return!!this.isValid()&&(e=e?yt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function jt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pt(){if(!m(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=mt(e),e._a){var t=e._isUTC?c(e._a):yt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Lt(){return!!this.isValid()&&!this._isUTC}function Rt(){return!!this.isValid()&&this._isUTC}function It(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function qt(e,t){var n,r,i,a=e,s=null;return kt(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(a={},t?a[t]=e:a.milliseconds=e):(s=qi.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:_(s[ri])*n,h:_(s[ii])*n,m:_(s[oi])*n,s:_(s[ai])*n,ms:_(Ct(1e3*s[si]))*n}):(s=zi.exec(e))?(n="-"===s[1]?-1:1,a={y:zt(s[2],n),M:zt(s[3],n),w:zt(s[4],n),d:zt(s[5],n),h:zt(s[6],n),m:zt(s[7],n),s:zt(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Ht(yt(a.from),yt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new xt(a),kt(e)&&u(e,"_locale")&&(r._locale=e._locale),r}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Bt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ht(e,t){var n;return e.isValid()&&t.isValid()?(t=St(t,e),e.isBefore(t)?n=Bt(e,t):(n=Bt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ut(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=qt(n,r),Vt(this,i,e),this}}function Vt(t,n,r,i){var o=n._milliseconds,a=Ct(n._days),s=Ct(n._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*r),a&&B(t,"Date",z(t,"Date")+a*r),s&&le(t,z(t,"Month")+s*r),i&&e.updateOffset(t,a||s))}function Wt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yt(t,n){var r=t||yt(),i=St(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",a=n&&(E(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,yt(r)))}function Kt(){return new v(this)}function Gt(e,t){var n=y(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=P(m(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Zt(e,t){var n=y(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=P(m(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Xt(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Jt(e,t){var n,r=y(e)?e:yt(e);return!(!this.isValid()||!r.isValid())&&(t=P(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Qt(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function en(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function tn(e,t,n){var r,i,o,a;return this.isValid()?(r=St(e,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),t=P(t),"year"===t||"month"===t||"quarter"===t?(a=nn(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(o=this-r,a="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-i)/864e5:"week"===t?(o-i)/6048e5:o),n?a:b(a)):NaN):NaN}function nn(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function rn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function on(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?E(Date.prototype.toISOString)?this.toDate().toISOString():G(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):G(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function an(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]';return this.format(n+r+i+o)}function sn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=G(this,t);return this.localeData().postformat(n)}function un(e,t){return this.isValid()&&(y(e)&&e.isValid()||yt(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ln(e){return this.from(yt(),e)}function cn(e,t){return this.isValid()&&(y(e)&&e.isValid()||yt(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.to(yt(),e)}function hn(e){var t;return void 0===e?this._locale._abbr:(t=tt(e),null!=t&&(this._locale=t),this)}function dn(){return this._locale}function pn(e){switch(e=P(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function mn(e){return e=P(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function gn(){return this._d.valueOf()-6e4*(this._offset||0)}function vn(){return Math.floor(this.valueOf()/1e3)}function yn(){return new Date(this.valueOf())}function bn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _n(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function wn(){return this.isValid()?this.toISOString():null}function xn(){return d(this)}function kn(){return l({},h(this))}function Cn(){return h(this).overflow}function En(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function $n(e,t){W(0,[e,e.length],0,t)}function Sn(e){return Nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function An(e){return Nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Tn(){return ke(this.year(),1,4)}function Dn(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function Nn(e,t,n,r,i){var o;return null==e?xe(this,r,i).year:(o=ke(e,r,i),t>o&&(t=o),Fn.call(this,e,t,n,r,i))}function Fn(e,t,n,r,i){var o=we(e,t,n,r,i),a=be(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Mn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function On(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function jn(e,t){t[si]=_(1e3*("0."+e))}function Pn(){return this._isUTC?"UTC":""}function Ln(){return this._isUTC?"Coordinated Universal Time":""}function Rn(e){return yt(1e3*e)}function In(){return yt.apply(null,arguments).parseZone()}function qn(e){return e}function zn(e,t,n,r){var i=tt(),o=c().set(r,t);return i[n](o,e)}function Bn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return zn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=zn(e,r,n,"month");return i}function Hn(e,t,n,r){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i=tt(),a=e?i._week.dow:0;if(null!=n)return zn(t,(n+a)%7,r,"day");var s,u=[];for(s=0;s<7;s++)u[s]=zn(t,(s+a)%7,r,"day");return u}function Un(e,t){return Bn(e,t,"months")}function Vn(e,t){return Bn(e,t,"monthsShort")}function Wn(e,t,n){return Hn(e,t,n,"weekdays")}function Yn(e,t,n){return Hn(e,t,n,"weekdaysShort")}function Kn(e,t,n){return Hn(e,t,n,"weekdaysMin")}function Gn(){var e=this._data;return this._milliseconds=Ji(this._milliseconds),this._days=Ji(this._days),this._months=Ji(this._months),e.milliseconds=Ji(e.milliseconds),e.seconds=Ji(e.seconds),e.minutes=Ji(e.minutes),e.hours=Ji(e.hours),e.months=Ji(e.months),e.years=Ji(e.years),this}function Zn(e,t,n,r){var i=qt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Xn(e,t){return Zn(this,e,t,1)}function Jn(e,t){return Zn(this,e,t,-1)}function Qn(e){return e<0?Math.floor(e):Math.ceil(e)}function er(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Qn(nr(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=b(o/1e3),u.seconds=e%60,t=b(e/60),u.minutes=t%60,n=b(t/60),u.hours=n%24,a+=b(n/24),i=b(tr(a)),s+=i,a-=Qn(nr(i)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function tr(e){return 4800*e/146097}function nr(e){return 146097*e/4800}function rr(e){var t,n,r=this._milliseconds;if(e=P(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+tr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(nr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ir(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12)}function or(e){return function(){return this.as(e)}}function ar(e){return e=P(e),this[e+"s"]()}function sr(e){return function(){return this._data[e]}}function ur(){return b(this.days()/7)}function lr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function cr(e,t,n){var r=qt(e).abs(),i=mo(r.as("s")),o=mo(r.as("m")),a=mo(r.as("h")),s=mo(r.as("d")),u=mo(r.as("M")),l=mo(r.as("y")),c=i<go.s&&["s",i]||o<=1&&["m"]||o<go.m&&["mm",o]||a<=1&&["h"]||a<go.h&&["hh",a]||s<=1&&["d"]||s<go.d&&["dd",s]||u<=1&&["M"]||u<go.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,lr.apply(null,c)}function fr(e){return void 0===e?mo:"function"==typeof e&&(mo=e,!0)}function hr(e,t){return void 0!==go[e]&&(void 0===t?go[e]:(go[e]=t,!0))}function dr(e){var t=this.localeData(),n=cr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function pr(){var e,t,n,r=vo(this._milliseconds)/1e3,i=vo(this._days),o=vo(this._months);e=b(r/60),t=b(e/60),r%=60,e%=60,n=b(o/12),o%=12;var a=n,s=o,u=i,l=t,c=e,f=r,h=this.asSeconds();return h?(h<0?"-":"")+"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 mr,gr;gr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var vr=gr,yr=e.momentProperties=[],br=!1,_r={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var wr;wr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var xr,kr=wr,Cr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Er={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"},$r="Invalid date",Sr="%d",Ar=/\d{1,2}/,Tr={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"},Dr={},Nr={},Fr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Mr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Or={},jr={},Pr=/\d/,Lr=/\d\d/,Rr=/\d{3}/,Ir=/\d{4}/,qr=/[+-]?\d{6}/,zr=/\d\d?/,Br=/\d\d\d\d?/,Hr=/\d\d\d\d\d\d?/,Ur=/\d{1,3}/,Vr=/\d{1,4}/,Wr=/[+-]?\d{1,6}/,Yr=/\d+/,Kr=/[+-]?\d+/,Gr=/Z|[+-]\d\d:?\d\d/gi,Zr=/Z|[+-]\d\d(?::?\d\d)?/gi,Xr=/[+-]?\d+(\.\d{1,3})?/,Jr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Qr={},ei={},ti=0,ni=1,ri=2,ii=3,oi=4,ai=5,si=6,ui=7,li=8;xr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};var ci=xr;W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),j("month","M"),R("month",8),X("M",zr),X("MM",zr,Lr),X("MMM",function(e,t){return t.monthsShortRegex(e)}),X("MMMM",function(e,t){return t.monthsRegex(e)}),te(["M","MM"],function(e,t){t[ni]=_(e)-1}),te(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ni]=i:h(n).invalidMonth=e});var fi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,hi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),di="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),pi=Jr,mi=Jr;W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),j("year","y"),R("year",1),X("Y",Kr),X("YY",zr,Lr),X("YYYY",Vr,Ir),X("YYYYY",Wr,qr),X("YYYYYY",Wr,qr),te(["YYYYY","YYYYYY"],ti),te("YYYY",function(t,n){n[ti]=2===t.length?e.parseTwoDigitYear(t):_(t)}),te("YY",function(t,n){n[ti]=e.parseTwoDigitYear(t)}),te("Y",function(e,t){t[ti]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var gi=q("FullYear",!0);W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),R("week",5),R("isoWeek",5),X("w",zr),X("ww",zr,Lr),X("W",zr),X("WW",zr,Lr),ne(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=_(e)});var vi={dow:0,doy:6};W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),X("d",zr),X("e",zr),X("E",zr),X("dd",function(e,t){return t.weekdaysMinRegex(e)}),X("ddd",function(e,t){return t.weekdaysShortRegex(e)}),X("dddd",function(e,t){return t.weekdaysRegex(e)}),ne(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),ne(["d","e","E"],function(e,t,n,r){t[r]=_(e)});var yi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_i="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wi=Jr,xi=Jr,ki=Jr;W("H",["HH",2],0,"hour"),W("h",["hh",2],0,He),W("k",["kk",2],0,Ue),W("hmm",0,0,function(){return""+He.apply(this)+V(this.minutes(),2)}),W("hmmss",0,0,function(){return""+He.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)}),Ve("a",!0),Ve("A",!1),j("hour","h"),R("hour",13),X("a",We),X("A",We),X("H",zr),X("h",zr),X("HH",zr,Lr),X("hh",zr,Lr),X("hmm",Br),X("hmmss",Hr),X("Hmm",Br),X("Hmmss",Hr),te(["H","HH"],ii),te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),te(["h","hh"],function(e,t,n){t[ii]=_(e),h(n).bigHour=!0}),te("hmm",function(e,t,n){var r=e.length-2;t[ii]=_(e.substr(0,r)),t[oi]=_(e.substr(r)),h(n).bigHour=!0}),te("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ii]=_(e.substr(0,r)),t[oi]=_(e.substr(r,2)),t[ai]=_(e.substr(i)),h(n).bigHour=!0}),te("Hmm",function(e,t,n){var r=e.length-2;t[ii]=_(e.substr(0,r)),t[oi]=_(e.substr(r))}),te("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ii]=_(e.substr(0,r)),t[oi]=_(e.substr(r,2)),t[ai]=_(e.substr(i))});var Ci,Ei=/[ap]\.?m?\.?/i,$i=q("Hours",!0),Si={calendar:Cr,longDateFormat:Er,invalidDate:$r,ordinal:Sr,ordinalParse:Ar,relativeTime:Tr,months:hi,monthsShort:di,week:vi,weekdays:yi,weekdaysMin:_i,weekdaysShort:bi,meridiemParse:Ei},Ai={},Ti={},Di=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ni=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fi=/Z|[+-]\d\d(?::?\d\d)?/,Mi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Oi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ji=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=k("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){};var Pi=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Li=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()}),Ri=function(){return Date.now?Date.now():+new Date};Et("Z",":"),Et("ZZ",""),X("Z",Zr),X("ZZ",Zr),te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=$t(Zr,e)});var Ii=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var qi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,zi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;qt.fn=xt.prototype;var Bi=Ut(1,"add"),Hi=Ut(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ui=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),$n("gggg","weekYear"),$n("ggggg","weekYear"),$n("GGGG","isoWeekYear"),$n("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),X("G",Kr),X("g",Kr),X("GG",zr,Lr),X("gg",zr,Lr),X("GGGG",Vr,Ir),X("gggg",Vr,Ir),X("GGGGG",Wr,qr),X("ggggg",Wr,qr),ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=_(e)}),ne(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),W("Q",0,"Qo","quarter"),j("quarter","Q"),R("quarter",7),X("Q",Pr),te("Q",function(e,t){t[ni]=3*(_(e)-1)}),W("D",["DD",2],"Do","date"),j("date","D"),R("date",9),X("D",zr),X("DD",zr,Lr),X("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),te(["D","DD"],ri),te("Do",function(e,t){t[ri]=_(e.match(zr)[0],10)});var Vi=q("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),R("dayOfYear",4),X("DDD",Ur),X("DDDD",Rr),te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_(e)}),W("m",["mm",2],0,"minute"),j("minute","m"),R("minute",14),X("m",zr),X("mm",zr,Lr),te(["m","mm"],oi);var Wi=q("Minutes",!1);W("s",["ss",2],0,"second"),j("second","s"),R("second",15),X("s",zr),X("ss",zr,Lr),te(["s","ss"],ai);var Yi=q("Seconds",!1);W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),R("millisecond",16),X("S",Ur,Pr),X("SS",Ur,Lr),X("SSS",Ur,Rr);var Ki;for(Ki="SSSS";Ki.length<=9;Ki+="S")X(Ki,Yr);for(Ki="S";Ki.length<=9;Ki+="S")te(Ki,jn);var Gi=q("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var Zi=v.prototype;Zi.add=Bi,Zi.calendar=Yt,Zi.clone=Kt,Zi.diff=tn,Zi.endOf=mn,Zi.format=sn,Zi.from=un,Zi.fromNow=ln,Zi.to=cn,Zi.toNow=fn,Zi.get=H,Zi.invalidAt=Cn,Zi.isAfter=Gt,Zi.isBefore=Zt,Zi.isBetween=Xt,Zi.isSame=Jt,Zi.isSameOrAfter=Qt,Zi.isSameOrBefore=en,Zi.isValid=xn,Zi.lang=Ui,Zi.locale=hn,Zi.localeData=dn,Zi.max=Li,Zi.min=Pi,Zi.parsingFlags=kn,Zi.set=U,Zi.startOf=pn,Zi.subtract=Hi,Zi.toArray=bn,Zi.toObject=_n,Zi.toDate=yn,Zi.toISOString=on,Zi.inspect=an,Zi.toJSON=wn,Zi.toString=rn,Zi.unix=vn,Zi.valueOf=gn,Zi.creationData=En,Zi.year=gi,Zi.isLeapYear=ve,Zi.weekYear=Sn,Zi.isoWeekYear=An,Zi.quarter=Zi.quarters=Mn,Zi.month=ce,Zi.daysInMonth=fe,Zi.week=Zi.weeks=Se,Zi.isoWeek=Zi.isoWeeks=Ae,Zi.weeksInYear=Dn,Zi.isoWeeksInYear=Tn,Zi.date=Vi,Zi.day=Zi.days=Pe,Zi.weekday=Le,Zi.isoWeekday=Re,Zi.dayOfYear=On,Zi.hour=Zi.hours=$i,Zi.minute=Zi.minutes=Wi,Zi.second=Zi.seconds=Yi,Zi.millisecond=Zi.milliseconds=Gi,Zi.utcOffset=Tt,Zi.utc=Nt,Zi.local=Ft,Zi.parseZone=Mt,Zi.hasAlignedHourOffset=Ot,Zi.isDST=jt,Zi.isLocal=Lt,Zi.isUtcOffset=Rt,Zi.isUtc=It,Zi.isUTC=It,Zi.zoneAbbr=Pn,Zi.zoneName=Ln,Zi.dates=k("dates accessor is deprecated. Use date instead.",Vi),Zi.months=k("months accessor is deprecated. Use month instead",ce),Zi.years=k("years accessor is deprecated. Use year instead",gi),Zi.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Dt),Zi.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pt);var Xi=A.prototype;Xi.calendar=T,Xi.longDateFormat=D,Xi.invalidDate=N,Xi.ordinal=F,Xi.preparse=qn,Xi.postformat=qn,Xi.relativeTime=M,Xi.pastFuture=O,Xi.set=$,Xi.months=oe,Xi.monthsShort=ae,Xi.monthsParse=ue,Xi.monthsRegex=de,Xi.monthsShortRegex=he,Xi.week=Ce,Xi.firstDayOfYear=$e,Xi.firstDayOfWeek=Ee,Xi.weekdays=Ne,Xi.weekdaysMin=Me,Xi.weekdaysShort=Fe,Xi.weekdaysParse=je,Xi.weekdaysRegex=Ie,Xi.weekdaysShortRegex=qe,Xi.weekdaysMinRegex=ze,Xi.isPM=Ye,Xi.meridiem=Ke,Je("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===_(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=k("moment.lang is deprecated. Use moment.locale instead.",Je),e.langData=k("moment.langData is deprecated. Use moment.localeData instead.",tt);var Ji=Math.abs,Qi=or("ms"),eo=or("s"),to=or("m"),no=or("h"),ro=or("d"),io=or("w"),oo=or("M"),ao=or("y"),so=sr("milliseconds"),uo=sr("seconds"),lo=sr("minutes"),co=sr("hours"),fo=sr("days"),ho=sr("months"),po=sr("years"),mo=Math.round,go={s:45,m:45,h:22,d:26,M:11},vo=Math.abs,yo=xt.prototype;return yo.abs=Gn,yo.add=Xn,yo.subtract=Jn,yo.as=rr,yo.asMilliseconds=Qi,yo.asSeconds=eo,yo.asMinutes=to,yo.asHours=no,yo.asDays=ro,yo.asWeeks=io,yo.asMonths=oo,yo.asYears=ao,yo.valueOf=ir,yo._bubble=er,yo.get=ar,yo.milliseconds=so,yo.seconds=uo,yo.minutes=lo,yo.hours=co,yo.days=fo,yo.weeks=ur,yo.months=ho,yo.years=po,yo.humanize=dr,yo.toISOString=pr,yo.toString=pr,yo.toJSON=pr,yo.locale=hn,yo.localeData=dn,yo.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pr),yo.lang=Ui,W("X",0,0,"unix"),W("x",0,0,"valueOf"),X("x",Kr),X("X",Xr),te("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),te("x",function(e,t,n){n._d=new Date(_(e))}),e.version="2.17.1",t(yt),e.fn=Zi,e.min=_t,e.max=wt,e.now=Ri,e.utc=c,e.unix=Rn,e.months=Un,e.isDate=a,e.locale=Je,e.invalid=p,e.duration=qt,e.isMoment=y,e.weekdays=Wn,e.parseZone=In,e.localeData=tt,e.isDuration=kt,e.monthsShort=Vn,e.weekdaysMin=Kn,e.defineLocale=Qe,e.updateLocale=et,e.locales=nt,e.weekdaysShort=Yn,e.normalizeUnits=P,e.relativeTimeRounding=fr,e.relativeTimeThreshold=hr,e.calendarFormat=Wt,e.prototype=Zi,e}),function(){var e,t,n,r,o,a,s,u,l,c,f,h,d={}.hasOwnProperty,p=function(e,t){function n(){this.constructor=e}for(var r in t)d.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};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(e,t){return e},container:function(e,t){return e.parent()},errorsWrapper:"<ul />",errorElem:"<li />"},listeners:{onFieldValidate:function(e,t){return!1},onFormSubmit:function(e,t,n){},onFieldError:function(e,t,n){},onFieldSuccess:function(e,t,n){}}},f={notnull:function(e){return e.length>0},notblank:function(e){return _.isString(e)&&""!==e.replace(/^\s+/g,"").replace(/\s+$/g,"")},required:function(e){var t,n,r;if(_.isArray(e)){for(n=0,r=e.length;n<r;n++)if(t=e[n],f.required(e[i]))return!0;return!1}return f.notnull(e)&&f.notblank(e)},type:function(e,t){var n;switch(n=null,t){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(e)||(e="http://"+e),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(e)},regexp:function(e,t,n){return new RegExp(t,n.options.regexpFlag||"").test(e)},minlength:function(e,t){return e.length>=t},maxlength:function(e,t){return e.length<=t},rangelength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},min:function(e,t){return Number(e)>=t},max:function(e,t){return Number(e)<=t},range:function(e,t){return e>=t[0]&&e<=t[1]},equalto:function(e,t,n){return n.options.validateIfUnchanged=!0,e===$(t).val()},mincheck:function(e,t){return f.minlength(e,t)},maxcheck:function(e,t){return f.maxlength(e,t)},rangecheck:function(e,t){return f.rangelength(e,t)}},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(e,t){return _.isArray(t)||(t=[t]),e.indexOf("%s")>=0?e.replace(/%s/g,function(e){return String(t.shift())}):e.indexOf("%e")>=0?e.replace(/%e/g,function(e){return String($(t.shift()).val())}):e},c=function(e){return parseInt(e,10)},h=function(e){var t,i,a;if(t=$(this),!t.is("form, input, select, textarea"))throw"element is not a valid element for checksley";if(i=t.data("checksley"),void 0!==i&&null!==i||(a={},_.isPlainObject(e)&&(a=e),i=t.is("input[type=radio], input[type=checkbox]")?new r(t,e):t.is("input, select, textarea")?new n(t,e):new o(t,e)),!_.isString(e))return i;switch(e){case"validate":return i.validate();case"destroy":return i.destroy();case"reset":return i.reset()}},e=function(){function e(e){void 0===e?this.jq=window.jQuery||window.Zepto:this.jq=e,this.messages={"default":{defaultMessage:"Invalid"}},this.lang=this.detectLang()}return e.prototype.updateDefaults=function(e){return _.merge(s,e)},e.prototype.updateValidators=function(e){return _.extend(f,e)},e.prototype.updateMessages=function(e,t,n){return null==n&&(n=!1),void 0===this.messages[e]&&(this.messages[e]={}),n?this.messages[e]=t:_.merge(this.messages[e],t)},e.prototype.injectPlugin=function(){return this.jq.fn.checksley=h},e.prototype.setLang=function(e){return this.lang=e},e.prototype.detectLang=function(){return this.jq("html").attr("lang")||"default"},e.prototype.getMessage=function(e,t){var n;return void 0===t&&(t=this.lang),l=this.messages[t],void 0===l&&(l={}),n=l[e],void 0===n?"default"===t?this.getMessage("defaultMessage",t):this.getMessage(e,"default"):n},e}(),n=function(){function e(e,t){null==t&&(t={}),this.id=_.uniqueId("field-"),this.element=$(e),this.validatedOnce=!1,this.options=_.merge({},s,t),this.isRadioOrCheckbox=!1,this.validators=f,this.resetConstraints(),this.bindEvents(),this.bindData()}return e.prototype.bindData=function(){return this.element.data("checksley-field",this)},e.prototype.unbindData=function(){return this.element.data("checksley-field",null)},e.prototype.focus=function(){return this.element.focus()},e.prototype.eventValidate=function(e){var t,n;return t=this.element.data("trigger"),n=this.getValue(),"keyup"===e.type&&!/keyup/i.test(t)&&!this.validatedOnce||("change"===e.type&&!/change/i.test(t)&&!this.validatedOnce||(n.length<this.options.validationMinlength&&!this.validatedOnce||this.validate()))},e.prototype.unbindEvents=function(){return this.element.off("."+this.id)},e.prototype.bindEvents=function(){var e;if(this.unbindEvents(),e=this.element.data("trigger"),_.isString(e)&&this.element.on(""+e+"."+this.id,_.bind(this.eventValidate,this)),this.element.is("select")&&"change"!==e&&this.element.on("change."+this.id,_.bind(this.eventValidate,this)),"keyup"!==e)return this.element.on("keyup."+this.id,_.bind(this.eventValidate,this))},e.prototype.errorClassTarget=function(){return this.element},e.prototype.resetHtml5Constraints=function(){var e,t,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(t=this.element.attr("min"),e=this.element.attr("max"),t&&e)return this.constraints[n]={valid:!0,params:[c(t),c(e)],fn:this.validators[n]}}},e.prototype.resetConstraints=function(){var e,t,n,r;this.constraints={},this.valid=!0,this.required=!1,this.resetHtml5Constraints(),this.element.addClass("checksley-validated"),n=this.validators,r=[];for(e in n)t=n[e],void 0!==this.element.data(e)&&(this.constraints[e]={valid:!0,params:this.element.data(e),fn:t},"required"===e?r.push(this.required=!0):r.push(void 0));return r},e.prototype.hasConstraints=function(){return!_.isEmpty(this.constraints)},e.prototype.validate=function(e){return this.validatedOnce=!0,this.hasConstraints()?this.options.listeners.onFieldValidate(this.element,this)?(this.reset(),null):this.required||""!==this.getValue()?this.applyValidators(e):(this.reset(),null):null},e.prototype.applyValidators=function(e){var t,n,r,i,o,a;void 0!==e&&null!==e||(e=this.options.showErrors),i=this.getValue(),o=!0,n=this.options.listeners,e&&this.removeErrors(),a=this.constraints;for(r in a)t=a[r],t.valid=t.fn(this.getValue(),t.params,this),t.valid===!1?(o=!1,e&&this.manageError(r,t),n.onFieldError(this.element,t,this)):n.onFieldSuccess(this.element,t,this);return this.handleClasses(o),o},e.prototype.handleClasses=function(e){var t,n,r;switch(t=this.options.errors.classHandler(this.element,!1),n=this.options.errorClass,r=this.options.successClass,e){case null:return t.removeClass(n),t.removeClass(r);case!1:return t.removeClass(r),t.addClass(n);case!0:return t.removeClass(n),t.addClass(r)}},e.prototype.manageError=function(e,t){var n,r;return n=this.element.data(),r=void 0!==n.errorMessage?n.errorMessage:"type"===e?a.getMessage("type")[t.params]:a.getMessage(e),void 0===r&&(r=a.getMessage("default")),t.params&&(r=u(r,_.clone(t.params,!0))),this.addError(this.makeErrorElement(e,r))},e.prototype.setErrors=function(e){var t,n,r,i;for(this.removeErrors(),_.isArray(e)||(e=[e]),i=[],n=0,r=e.length;n<r;n++)t=e[n],i.push(this.addError(this.makeErrorElement("custom",t)));return i},e.prototype.makeErrorElement=function(e,t){var n;return n=$("<li />",{"class":"checksley-"+e}),n.html(t),n.addClass(e),n},e.prototype.addError=function(e){var t,n;if(t=this.getErrorContainer(),n=this.options.containerErrorsSelector,!this.options.onlyOneErrorElement||!t.find(n).length)return t.append(e)},e.prototype.reset=function(){return this.handleClasses(null),this.resetConstraints(),this.removeErrors()},e.prototype.removeErrors=function(){return $("#"+this.errorContainerId()).remove()},e.prototype.getValue=function(){return this.element.val()},e.prototype.errorContainerId=function(){return"checksley-error-"+this.id},e.prototype.errorContainerClass=function(){return"checksley-error-list"},e.prototype.getErrorContainer=function(){var e,t,n,r,i;return n=$("#"+this.errorContainerId()),1===n.length?n:(r={"class":this.errorContainerClass(),id:this.errorContainerId()},n=$("<ul />",r),t=this.element.data("error-container"),void 0===t?(this.isRadioOrCheckbox?n.insertAfter(this.element.parent()):n.insertAfter(this.element),n):(e=this.options.errors.containerGlobalSearch?$(t):this.element.closest(t),i=this.options.errors.containerPreferenceSelector,1===e.find(i).length&&(e=e.find(i)),e.append(n),n))},e.prototype.destroy=function(){return this.unbindEvents(),this.removeErrors(),this.unbindData()},e.prototype.setForm=function(e){return this.form=e},e}(),r=function(e){function t(e,n){t.__super__.constructor.call(this,e,n),this.isRadioOrCheckbox=!0,this.isRadio=this.element.is("input[type=radio]"),this.isCheckbox=this.element.is("input[type=checkbox]")}return p(t,e),t.prototype.getSiblings=function(){var e;return e=this.element.data("group"),void 0===e?"input[name="+this.element.attr("name")+"]":'[data-group="'+e+'"]'},t.prototype.getValue=function(){var e,t,n,r,i;if(this.isRadio)return $(""+this.getSiblings()+":checked").val()||"";if(this.isCheckbox){for(t=[],i=$(""+this.getSiblings()+":checked"),n=0,r=i.length;n<r;n++)e=i[n],t.push($(e).val());return t}},t.prototype.unbindEvents=function(){var e,t,n,r,i;for(r=$(this.getSiblings()),i=[],t=0,n=r.length;t<n;t++)e=r[t],i.push($(e).off("."+this.id));return i},t.prototype.bindEvents=function(){var e,t,n,r,i,o;for(this.unbindEvents(),t=this.element.data("trigger"),i=$(this.getSiblings()),o=[],n=0,r=i.length;n<r;n++)e=i[n],e=$(e),_.isString(t)&&e.on(""+t+"."+this.id,_.bind(this.eventValidate,this)),"change"!==t?o.push(e.on("change."+this.id,_.bind(this.eventValidate,this))):o.push(void 0);return o},t}(n),t=function(e){function t(e,n){t.__super__.constructor.call(this,e,n)}return p(t,e),t.prototype.getComponents=function(){var e,t,n,r,i;for(e=[],n=this.element.data("composed").split(","),r=0,i=n.length;r<i;r++)t=n[r],e.push(this.element.find("[name="+t+"]"));return e},t.prototype.getValue=function(){var e;return e=_.map(this.getComponents(),function(e){return e.val()}).join(this.element.data("composed-joiner")),this.element.val(e),e},t.prototype.unbindEvents=function(){var e,t,n,r,i;for(r=$(this.getComponents()),i=[],t=0,n=r.length;t<n;t++)e=r[t],i.push(e.off("."+this.id));return i},t.prototype.bindEvents=function(){var e,t,n,r,i,o;for(this.unbindEvents(),t=this.element.data("trigger"),i=$(this.getComponents()),o=[],n=0,r=i.length;n<r;n++)e=i[n],_.isString(t)&&e.on(""+t+"."+this.id,_.bind(this.eventValidate,this)),"change"!==t?o.push(e.on("change."+this.id,_.bind(this.eventValidate,this))):o.push(void 0);return o},t}(n),o=function(){function e(e,t){null==t&&(t={}),this.id=_.uniqueId("checksleyform-"),this.element=$(e),this.options=_.extend({},s,t),this.initialize()}return e.prototype.initialize=function(){return this.initializeFields(),this.bindEvents(),this.bindData()},e.prototype.bindData=function(){return this.element.data("checksley",this)},e.prototype.unbindData=function(){return this.element.data("checksley",null)},e.prototype.initializeFields=function(){var e,t,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;i<s;i++)r=l[i],t=$(r),t.is(this.options.excluded)||(n=t.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[t.attr("name")]=n);for(c=this.element.find("[data-composed]"),f=[],o=0,u=c.length;o<u;o++)e=c[o],n=new a.ComposedField(e,this.options),n.setForm(this),f.push(this.fields.push(n));return f},e.prototype.setErrors=function(e){var t,n,r,i;i=[];for(r in e)t=e[r],n=this.fieldsByName[r],n?i.push(n.setErrors(t)):i.push(void 0);return i},e.prototype.validate=function(){var e,t,n,r,i,o;for(n=!0,t=[],o=this.fields,r=0,i=o.length;r<i;r++)e=o[r],e.validate()===!1&&(n=!1,t.push(e));if(!n)switch(this.options.focus){case"first":t[0].focus();break;case"last":t[t.length].focus()}return n},e.prototype.bindEvents=function(){var e;return e=this,this.unbindEvents(),this.element.on("submit."+this.id,function(t){var n;if(n=e.validate(),e.options.listeners.onFormSubmit(n,t,e),e.options.interceptSubmit&&!n)return t.preventDefault()})},e.prototype.unbindEvents=function(){return this.element.off("."+this.id)},e.prototype.removeErrors=function(){var e,t,n,r,i;for(r=this.fields,i=[],t=0,n=r.length;t<n;t++)e=r[t],i.push(e.reset());return i},e.prototype.destroy=function(){var e,t,n,r;for(this.unbindEvents(),this.unbindData(),r=this.fields,t=0,n=r.length;t<n;t++)e=r[t],e.destroy();return this.field=[]},e.prototype.reset=function(){var e,t,n,r,i;for(r=this.fields,i=[],t=0,n=r.length;t<n;t++)e=r[t],i.push(e.reset());return i},e}(),a=new e,a.updateMessages("default",l),a.injectPlugin(),a.Checksley=e,a.Form=o,a.Field=n,a.FieldMultiple=r,a.ComposedField=t,this.checksley=a}.call(this),function(e,t){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(r){}module.exports=t(n)}else"function"==typeof define&&define.amd?define(function(e){var r="moment";try{n=e(r)}catch(i){}return t(n)}):e.Pikaday=t(e.moment)}(this,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,r=window.document,i=window.setTimeout,o=function(e,t,r,i){n?e.addEventListener(t,r,!!i):e.attachEvent("on"+t,r)},a=function(e,t,r,i){n?e.removeEventListener(t,r,!!i):e.detachEvent("on"+t,r)},s=function(e,t,n){var i;r.createEvent?(i=r.createEvent("HTMLEvents"),i.initEvent(t,!0,!1),i=b(i,n),e.dispatchEvent(i)):r.createEventObject&&(i=r.createEventObject(),i=b(i,n),e.fireEvent("on"+t,i))},u=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},l=function(e,t){return(" "+e.className+" ").indexOf(" "+t+" ")!==-1},c=function(e,t){l(e,t)||(e.className=""===e.className?t:e.className+" "+t)},f=function(e,t){e.className=u((" "+e.className+" ").replace(" "+t+" "," "))},h=function(e){return/Array/.test(Object.prototype.toString.call(e))},d=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return 0===t||6===t},m=function(e){return e%4===0&&e%100!==0||e%400===0},g=function(e,t){return[31,m(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},v=function(e){d(e)&&e.setHours(0,0,0,0)},y=function(e,t){return e.getTime()===t.getTime()},b=function(e,t,n){var r,i;for(r in t)i=void 0!==e[r],i&&"object"==typeof t[r]&&null!==t[r]&&void 0===t[r].nodeName?d(t[r])?n&&(e[r]=new Date(t[r].getTime())):h(t[r])?n&&(e[r]=t[r].slice(0)):e[r]=b({},t[r],n):!n&&i||(e[r]=t[r]);return e},_=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},w={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,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,showDaysInNextAndPreviousMonths:!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(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},k=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},C=function(e,t,n){var r=new Date(n,0,1),i=Math.ceil(((new Date(n,t,e)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+i+"</td>"},E=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},$=function(e){return"<tbody>"+e.join("")+"</tbody>"},S=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+x(e,t)+'">'+x(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},A=function(e,t,n,r,i,o){var a,s,u,l,c,f=e._o,d=n===f.minYear,p=n===f.maxYear,m='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(u=[],a=0;a<12;a++)u.push('<option value="'+(n===i?a-t:12+a-t)+'"'+(a===r?' selected="selected"':"")+(d&&a<f.minMonth||p&&a>f.maxMonth?'disabled="disabled"':"")+">"+f.i18n.months[a]+"</option>");for(l='<div class="pika-label">'+f.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+u.join("")+"</select></div>",h(f.yearRange)?(a=f.yearRange[0],s=f.yearRange[1]+1):(a=n-f.yearRange,s=1+n+f.yearRange),u=[];a<s&&a<=f.maxYear;a++)a>=f.minYear&&u.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return c='<div class="pika-label">'+n+f.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+u.join("")+"</select></div>",m+=f.showMonthAfterYear?c+l:l+c,d&&(0===r||f.minMonth>=r)&&(g=!1),p&&(11===r||f.maxMonth<=r)&&(v=!1),0===t&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+f.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+f.i18n.nextMonth+"</button>"),m+="</div>"},T=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+S(e)+$(t)+"</table>"},D=function(a){var s=this,u=s.config(a);s._onMouseDown=function(e){if(s._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(l(t,"is-disabled")||(!l(t,"pika-button")||l(t,"is-empty")||l(t.parentNode,"is-disabled")?l(t,"pika-prev")?s.prevMonth():l(t,"pika-next")&&s.nextMonth():(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),u.bound&&i(function(){s.hide(),u.field&&u.field.blur()},100))),l(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(l(t,"pika-select-month")?s.gotoMonth(t.value):l(t,"pika-select-year")&&s.gotoYear(t.value))},s._onKeyChange=function(e){if(e=e||window.event,s.isVisible())switch(e.keyCode){case 13:case 27:u.field.blur();break;case 37:e.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var r;n.firedBy!==s&&(t?(r=e(u.field.value,u.format,u.formatStrict),r=r&&r.isValid()?r.toDate():null):r=new Date(Date.parse(u.field.value)),d(r)&&s.setDate(r),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=r.activeElement;do if(l(e,"pika-single"))return;while(e=e.parentNode);s._c||(s._b=i(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,r=t;if(t){!n&&l(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),o(t,"change",s._onChange)));do if(l(r,"pika-single")||r===u.trigger)return;while(r=r.parentNode);s._v&&t!==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),o(r,"keydown",s._onKeyChange),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||(t&&u.field.value?u.defaultDate=e(u.field.value,u.format).toDate():u.defaultDate=new Date(Date.parse(u.field.value)),u.setDefaultDate=!0));var c=u.defaultDate;d(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 D.prototype={config:function(e){this._o||(this._o=b({},w,!0));var t=b(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,d(t.minDate)||(t.minDate=!1),d(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),h(t.yearRange)){var r=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||r,t.yearRange[1]=parseInt(t.yearRange[1],10)||r}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||w.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return d(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,r){t&&e.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return d(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),d(e)){var n=this._o.minDate,r=this._o.maxDate;d(n)&&e<n?e=n:d(r)&&e>r&&(e=r),this._d=new Date(e.getTime()),v(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(d(e)){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=e.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),t=i<n.getTime()||r.getTime()<i}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(n,r){var i,o=this.getDate(),a=24*parseInt(r)*60*60*1e3;"add"===n?i=new Date(o.valueOf()+a):"subtract"===n&&(i=new Date(o.valueOf()-a)),t&&("add"===n?i=e(o).add(r,"days").toDate():"subtract"===n&&(i=e(o).subtract(r,"days").toDate())),this.setDate(i)},adjustCalendars:function(){this.calendars[0]=_(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=_({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(v(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=w.minDate,this._o.minYear=w.minYear,this._o.minMonth=w.minMonth,this._o.startRange=w.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(v(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=w.maxDate,this._o.maxYear=w.maxYear,this._o.maxMonth=w.maxMonth,this._o.endRange=w.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,r=n.minYear,o=n.maxYear,a=n.minMonth,s=n.maxMonth,u="";this._y<=r&&(this._y=r,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=o&&(this._y=o,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<n.numberOfMonths;l++)u+='<div class="pika-lendar">'+A(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,t)+this.render(this.calendars[l].year,this.calendars[l].month,t)+"</div>";this.el.innerHTML=u,n.bound&&"hidden"!==n.field.type&&i(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,i,o,a,s,u,l,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,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 e.getBoundingClientRect)c=e.getBoundingClientRect(),u=c.left+window.pageXOffset,l=c.bottom+window.pageYOffset;else for(u=t.offsetLeft,l=t.offsetTop+t.offsetHeight;t=t.offsetParent;)u+=t.offsetLeft,l+=t.offsetTop;(this._o.reposition&&u+n>o||this._o.position.indexOf("right")>-1&&u-n+e.offsetWidth>0)&&(u=u-n+e.offsetWidth),(this._o.reposition&&l+i>a+s||this._o.position.indexOf("top")>-1&&l-i-e.offsetHeight>0)&&(l=l-i-e.offsetHeight),this.el.style.left=u+"px",this.el.style.top=l+"px"}},render:function(e,t,n){var r=this._o,i=new Date,o=g(e,t),a=new Date(e,t,1).getDay(),s=[],u=[];v(i),r.firstDay>0&&(a-=r.firstDay,a<0&&(a+=7));for(var l=0===t?11:t-1,c=11===t?0:t+1,f=0===t?e-1:e,h=11===t?e+1:e,m=g(f,l),b=o+a,_=b;_>7;)_-=7;b+=7-_;for(var w=0,x=0;w<b;w++){var $=new Date(e,t,1+(w-a)),S=!!d(this._d)&&y($,this._d),A=y($,i),D=w<a||w>=o+a,N=1+(w-a),F=t,M=e,O=r.startRange&&y(r.startRange,$),j=r.endRange&&y(r.endRange,$),P=r.startRange&&r.endRange&&r.startRange<$&&$<r.endRange,L=r.minDate&&$<r.minDate||r.maxDate&&$>r.maxDate||r.disableWeekends&&p($)||r.disableDayFn&&r.disableDayFn($);D&&(w<a?(N=m+N,F=l,M=f):(N-=o,F=c,M=h));var R={day:N,month:F,year:M,isSelected:S,isToday:A,isDisabled:L,isEmpty:D,isStartRange:O,isEndRange:j,isInRange:P,showDaysInNextAndPreviousMonths:r.showDaysInNextAndPreviousMonths};u.push(k(R)),7===++x&&(r.showWeekNumber&&u.unshift(C(w-a,t,e)),s.push(E(u,r.isRTL)),u=[],x=0)}return T(r,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(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 e=this._v;e!==!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!==e&&"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)}},D}),function(e){e.color={},e.color.make=function(t,n,r,i){var o={};return o.r=t||0,o.g=n||0,o.b=r||0,o.a=null!=i?i:1,o.add=function(e,t){for(var n=0;n<e.length;++n)o[e.charAt(n)]+=t;return o.normalize()},o.scale=function(e,t){for(var n=0;n<e.length;++n)o[e.charAt(n)]*=t;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 e(e,t,n){return t<e?e:t>n?n:t}return o.r=e(0,parseInt(o.r),255),o.g=e(0,parseInt(o.g),255),o.b=e(0,parseInt(o.b),255),o.a=e(0,o.a,1),o},o.clone=function(){return e.color.make(o.r,o.b,o.g,o.a)},o.normalize()},e.color.extract=function(t,n){var r;do{if(r=t.css(n).toLowerCase(),""!=r&&"transparent"!=r)break;t=t.parent()}while(t.length&&!e.nodeName(t.get(0),"body"));return"rgba(0, 0, 0, 0)"==r&&(r="transparent"),e.color.parse(r)},e.color.parse=function(n){var r,i=e.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=e.trim(n).toLowerCase();return"transparent"==o?i(255,255,255,0):(r=t[o]||[0,0,0],i(r[0],r[1],r[2]))};var t={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(e){function t(t,n){var r=n.children("."+t)[0];if(null==r&&(r=document.createElement("canvas"),r.className=t,e(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(e,t){t=[ge].concat(t);for(var n=0;n<e.length;++n)e[n].apply(this,t)}function u(){for(var n={Canvas:t},r=0;r<a.length;++r){var i=a[r];i.init(ge,n),i.options&&e.extend(!0,ie,i.options)}}function l(t){e.extend(!0,ie,t),t&&t.colors&&(ie.colors=t.colors),null==ie.xaxis.color&&(ie.xaxis.color=e.color.parse(ie.grid.color).scale("a",.22).toString()),null==ie.yaxis.color&&(ie.yaxis.color=e.color.parse(ie.grid.color).scale("a",.22).toString()),null==ie.xaxis.tickColor&&(ie.xaxis.tickColor=ie.grid.tickColor||ie.xaxis.color),null==ie.yaxis.tickColor&&(ie.yaxis.tickColor=ie.grid.tickColor||ie.yaxis.color),null==ie.grid.borderColor&&(ie.grid.borderColor=ie.grid.color),null==ie.grid.tickColor&&(ie.grid.tickColor=e.color.parse(ie.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=ie.xaxes.length||1,r=0;r<o;++r)i=ie.xaxes[r],i&&!i.tickColor&&(i.tickColor=i.color),i=e.extend(!0,{},ie.xaxis,i),ie.xaxes[r]=i,i.font&&(i.font=e.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=ie.yaxes.length||1,r=0;r<o;++r)i=ie.yaxes[r],i&&!i.tickColor&&(i.tickColor=i.color),i=e.extend(!0,{},ie.yaxis,i),ie.yaxes[r]=i,i.font&&(i.font=e.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(ie.xaxis.noTicks&&null==ie.xaxis.ticks&&(ie.xaxis.ticks=ie.xaxis.noTicks),ie.yaxis.noTicks&&null==ie.yaxis.ticks&&(ie.yaxis.ticks=ie.yaxis.noTicks),ie.x2axis&&(ie.xaxes[1]=e.extend(!0,{},ie.xaxis,ie.x2axis),ie.xaxes[1].position="top",null==ie.x2axis.min&&(ie.xaxes[1].min=null),null==ie.x2axis.max&&(ie.xaxes[1].max=null)),ie.y2axis&&(ie.yaxes[1]=e.extend(!0,{},ie.yaxis,ie.y2axis),ie.yaxes[1].position="right",null==ie.y2axis.min&&(ie.yaxes[1].min=null),null==ie.y2axis.max&&(ie.yaxes[1].max=null)),ie.grid.coloredAreas&&(ie.grid.markings=ie.grid.coloredAreas),ie.grid.coloredAreasColor&&(ie.grid.markingsColor=ie.grid.coloredAreasColor),ie.lines&&e.extend(!0,ie.series.lines,ie.lines),ie.points&&e.extend(!0,ie.series.points,ie.points),
|
||
ie.bars&&e.extend(!0,ie.series.bars,ie.bars),null!=ie.shadowSize&&(ie.series.shadowSize=ie.shadowSize),null!=ie.highlightColor&&(ie.series.highlightColor=ie.highlightColor),r=0;r<ie.xaxes.length;++r)g(ce,r+1).options=ie.xaxes[r];for(r=0;r<ie.yaxes.length;++r)g(fe,r+1).options=ie.yaxes[r];for(var c in me)ie.hooks[c]&&ie.hooks[c].length&&(me[c]=me[c].concat(ie.hooks[c]));s(me.processOptions,[ie])}function c(e){re=f(e),v(),y()}function f(t){for(var n=[],r=0;r<t.length;++r){var i=e.extend(!0,{},ie.series);null!=t[r].data?(i.data=t[r].data,delete t[r].data,e.extend(!0,i,t[r]),t[r].data=i.data):i.data=t[r],n.push(i)}return n}function h(e,t){var n=e[t+"axis"];return"object"==typeof n&&(n=n.n),"number"!=typeof n&&(n=1),n}function d(){return e.grep(ce.concat(fe),function(e){return e})}function p(e){var t,n,r={};for(t=0;t<ce.length;++t)n=ce[t],n&&n.used&&(r["x"+n.n]=n.c2p(e.left));for(t=0;t<fe.length;++t)n=fe[t],n&&n.used&&(r["y"+n.n]=n.c2p(e.top));return void 0!==r.x1&&(r.x=r.x1),void 0!==r.y1&&(r.y=r.y1),r}function m(e){var t,n,r,i={};for(t=0;t<ce.length;++t)if(n=ce[t],n&&n.used&&(r="x"+n.n,null==e[r]&&1==n.n&&(r="x"),null!=e[r])){i.left=n.p2c(e[r]);break}for(t=0;t<fe.length;++t)if(n=fe[t],n&&n.used&&(r="y"+n.n,null==e[r]&&1==n.n&&(r="y"),null!=e[r])){i.top=n.p2c(e[r]);break}return i}function g(t,n){return t[n-1]||(t[n-1]={n:n,direction:t==ce?"x":"y",options:e.extend(!0,{},t==ce?ie.xaxis:ie.yaxis)}),t[n-1]}function v(){var t,n=re.length,r=-1;for(t=0;t<re.length;++t){var i=re[t].color;null!=i&&(n--,"number"==typeof i&&i>r&&(r=i))}n<=r&&(n=r+1);var o,a=[],s=ie.colors,u=s.length,l=0;for(t=0;t<n;t++)o=e.color.parse(s[t%u]||"#666"),t%u==0&&t&&(l=l>=0?l<.5?-l-.2:0:-l),a[t]=o.scale("rgb",1+l);var c,f=0;for(t=0;t<re.length;++t){if(c=re[t],null==c.color?(c.color=a[f].toString(),++f):"number"==typeof c.color&&(c.color=a[c.color].toString()),null==c.lines.show){var d,p=!0;for(d in c)if(c[d]&&c[d].show){p=!1;break}p&&(c.lines.show=!0)}null==c.lines.zero&&(c.lines.zero=!!c.lines.fill),c.xaxis=g(ce,h(c,"x")),c.yaxis=g(fe,h(c,"y"))}}function y(){function t(e,t,n){t<e.datamin&&t!=-y&&(e.datamin=t),n>e.datamax&&n!=y&&(e.datamax=n)}var n,r,i,o,a,u,l,c,f,h,p,m,g=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,y=Number.MAX_VALUE;for(e.each(d(),function(e,t){t.datamin=g,t.datamax=v,t.used=!1}),n=0;n<re.length;++n)a=re[n],a.datapoints={points:[]},s(me.processRawData,[a,a.data,a.datapoints]);for(n=0;n<re.length;++n){if(a=re[n],p=a.data,m=a.datapoints.format,!m){if(m=[],m.push({x:!0,number:!0,required:!0}),m.push({y:!0,number:!0,required:!0}),a.bars.show||a.lines.show&&a.lines.fill){var b=!!(a.bars.show&&a.bars.zero||a.lines.show&&a.lines.zero);m.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:b}),a.bars.horizontal&&(delete m[m.length-1].y,m[m.length-1].x=!0)}a.datapoints.format=m}if(null==a.datapoints.pointsize){a.datapoints.pointsize=m.length,l=a.datapoints.pointsize,u=a.datapoints.points;var _=a.lines.show&&a.lines.steps;for(a.xaxis.used=a.yaxis.used=!0,r=i=0;r<p.length;++r,i+=l){h=p[r];var w=null==h;if(!w)for(o=0;o<l;++o)c=h[o],f=m[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;o<l;++o)c=u[i+o],null!=c&&(f=m[o],f.autoscale!==!1&&(f.x&&t(a.xaxis,c,c),f.y&&t(a.yaxis,c,c))),u[i+o]=null;else if(_&&i>0&&null!=u[i-l]&&u[i-l]!=u[i]&&u[i-l+1]!=u[i+1]){for(o=0;o<l;++o)u[i+l+o]=u[i+o];u[i+1]=u[i-l+1],i+=l}}}}for(n=0;n<re.length;++n)a=re[n],s(me.processDatapoints,[a,a.datapoints]);for(n=0;n<re.length;++n){a=re[n],u=a.datapoints.points,l=a.datapoints.pointsize,m=a.datapoints.format;var x=g,k=g,C=v,E=v;for(r=0;r<u.length;r+=l)if(null!=u[r])for(o=0;o<l;++o)c=u[r+o],f=m[o],f&&f.autoscale!==!1&&c!=y&&c!=-y&&(f.x&&(c<x&&(x=c),c>C&&(C=c)),f.y&&(c<k&&(k=c),c>E&&(E=c)));if(a.bars.show){var $;switch(a.bars.align){case"left":$=0;break;case"right":$=-a.bars.barWidth;break;default:$=-a.bars.barWidth/2}a.bars.horizontal?(k+=$,E+=$+a.bars.barWidth):(x+=$,C+=$+a.bars.barWidth)}t(a.xaxis,x,C),t(a.yaxis,k,E)}e.each(d(),function(e,t){t.datamin==g&&(t.datamin=null),t.datamax==v&&(t.datamax=null)})}function b(){n.css("padding",0).children().filter(function(){return!e(this).hasClass("flot-overlay")&&!e(this).hasClass("flot-base")}).remove(),"static"==n.css("position")&&n.css("position","relative"),oe=new t("flot-base",n),ae=new t("flot-overlay",n),ue=oe.context,le=ae.context,se=e(ae.element).unbind();var r=n.data("plot");r&&(r.shutdown(),ae.clear()),n.data("plot",ge)}function _(){ie.grid.hoverable&&(se.mousemove(V),se.bind("mouseleave",W)),ie.grid.clickable&&se.click(Y),s(me.bindEvents,[se])}function w(){ye&&clearTimeout(ye),se.unbind("mousemove",V),se.unbind("mouseleave",W),se.unbind("click",Y),s(me.shutdown,[se])}function x(e){function t(e){return e}var n,r,i=e.options.transform||t,o=e.options.inverseTransform;"x"==e.direction?(n=e.scale=de/Math.abs(i(e.max)-i(e.min)),r=Math.min(i(e.max),i(e.min))):(n=e.scale=pe/Math.abs(i(e.max)-i(e.min)),n=-n,r=Math.max(i(e.max),i(e.min))),i==t?e.p2c=function(e){return(e-r)*n}:e.p2c=function(e){return(i(e)-r)*n},o?e.c2p=function(e){return o(r+e/n)}:e.c2p=function(e){return r+e/n}}function k(e){for(var t=e.options,n=e.ticks||[],r=t.labelWidth||0,i=t.labelHeight||0,o=r||("x"==e.direction?Math.floor(oe.width/(n.length||1)):null),a=e.direction+"Axis "+e.direction+e.n+"Axis",s="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+a,u=t.font||"flot-tick-label tickLabel",l=0;l<n.length;++l){var c=n[l];if(c.label){var f=oe.getTextInfo(s,c.label,u,null,o);r=Math.max(r,f.width),i=Math.max(i,f.height)}}e.labelWidth=t.labelWidth||r,e.labelHeight=t.labelHeight||i}function C(t){var n=t.labelWidth,r=t.labelHeight,i=t.options.position,o="x"===t.direction,a=t.options.tickLength,s=ie.grid.axisMargin,u=ie.grid.labelMargin,l=!0,c=!0,f=!0,h=!1;e.each(o?ce:fe,function(e,n){n&&(n.show||n.reserveSpace)&&(n===t?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?(he.bottom+=r+s,t.box={top:oe.height-he.bottom,height:r}):(t.box={top:he.top+s,height:r},he.top+=r+s)):(n+=u,"left"==i?(t.box={left:he.left+s,width:n},he.left+=n+s):(he.right+=n+s,t.box={left:oe.width-he.right,width:n})),t.position=i,t.tickLength=a,t.box.padding=u,t.innermost=l}function E(e){"x"==e.direction?(e.box.left=he.left-e.labelWidth/2,e.box.width=oe.width-he.left-he.right+e.labelWidth):(e.box.top=he.top-e.labelHeight/2,e.box.height=oe.height-he.bottom-he.top+e.labelHeight)}function $(){var t,n=ie.grid.minBorderMargin;if(null==n)for(n=0,t=0;t<re.length;++t)n=Math.max(n,2*(re[t].points.radius+re[t].points.lineWidth/2));var r={left:n,right:n,top:n,bottom:n};e.each(d(),function(e,t){t.reserveSpace&&t.ticks&&t.ticks.length&&("x"===t.direction?(r.left=Math.max(r.left,t.labelWidth/2),r.right=Math.max(r.right,t.labelWidth/2)):(r.bottom=Math.max(r.bottom,t.labelHeight/2),r.top=Math.max(r.top,t.labelHeight/2)))}),he.left=Math.ceil(Math.max(r.left,he.left)),he.right=Math.ceil(Math.max(r.right,he.right)),he.top=Math.ceil(Math.max(r.top,he.top)),he.bottom=Math.ceil(Math.max(r.bottom,he.bottom))}function S(){var t,n=d(),r=ie.grid.show;for(var i in he){var o=ie.grid.margin||0;he[i]="number"==typeof o?o:o[i]||0}s(me.processOffset,[he]);for(var i in he)"object"==typeof ie.grid.borderWidth?he[i]+=r?ie.grid.borderWidth[i]:0:he[i]+=r?ie.grid.borderWidth:0;if(e.each(n,function(e,t){var n=t.options;t.show=null==n.show?t.used:n.show,t.reserveSpace=null==n.reserveSpace?t.show:n.reserveSpace,A(t)}),r){var a=e.grep(n,function(e){return e.show||e.reserveSpace});for(e.each(a,function(e,t){T(t),D(t),N(t,t.ticks),k(t)}),t=a.length-1;t>=0;--t)C(a[t]);$(),e.each(a,function(e,t){E(t)})}de=oe.width-he.left-he.right,pe=oe.height-he.bottom-he.top,e.each(n,function(e,t){x(t)}),r&&P(),H()}function A(e){var t=e.options,n=+(null!=t.min?t.min:e.datamin),r=+(null!=t.max?t.max:e.datamax),i=r-n;if(0==i){var o=0==r?1:.01;null==t.min&&(n-=o),null!=t.max&&null==t.min||(r+=o)}else{var a=t.autoscaleMargin;null!=a&&(null==t.min&&(n-=i*a,n<0&&null!=e.datamin&&e.datamin>=0&&(n=0)),null==t.max&&(r+=i*a,r>0&&null!=e.datamax&&e.datamax<=0&&(r=0)))}e.min=n,e.max=r}function T(t){var n,i=t.options;n="number"==typeof i.ticks&&i.ticks>0?i.ticks:.3*Math.sqrt("x"==t.direction?oe.width:oe.height);var o=(t.max-t.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(c<1.5?u=1:c<3?(u=2,c>2.25&&(null==s||a+1<=s)&&(u=2.5,++a)):u=c<7.5?5:10,u*=l,null!=i.minTickSize&&u<i.minTickSize&&(u=i.minTickSize),t.delta=o,t.tickDecimals=Math.max(0,null!=s?s:a),t.tickSize=i.tickSize||u,"time"==i.mode&&!t.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");if(t.tickGenerator||(t.tickGenerator=function(e){var t,n=[],i=r(e.min,e.tickSize),o=0,a=Number.NaN;do t=a,a=i+o*e.tickSize,n.push(a),++o;while(a<e.max&&a!=t);return n},t.tickFormatter=function(e,t){var n=t.tickDecimals?Math.pow(10,t.tickDecimals):1,r=""+Math.round(e*n)/n;if(null!=t.tickDecimals){var i=r.indexOf("."),o=i==-1?0:r.length-i-1;if(o<t.tickDecimals)return(o?r:r+".")+(""+n).substr(1,t.tickDecimals-o)}return r}),e.isFunction(i.tickFormatter)&&(t.tickFormatter=function(e,t){return""+i.tickFormatter(e,t)}),null!=i.alignTicksWithAxis){var f=("x"==t.direction?ce:fe)[i.alignTicksWithAxis-1];if(f&&f.used&&f!=t){var h=t.tickGenerator(t);if(h.length>0&&(null==i.min&&(t.min=Math.min(t.min,h[0])),null==i.max&&h.length>1&&(t.max=Math.max(t.max,h[h.length-1]))),t.tickGenerator=function(e){var t,n,r=[];for(n=0;n<f.ticks.length;++n)t=(f.ticks[n].v-f.min)/(f.max-f.min),t=e.min+t*(e.max-e.min),r.push(t);return r},!t.mode&&null==i.tickDecimals){var d=Math.max(0,-Math.floor(Math.log(t.delta)/Math.LN10)+1),p=t.tickGenerator(t);p.length>1&&/\..*0$/.test((p[1]-p[0]).toFixed(d))||(t.tickDecimals=d)}}}}function D(t){var n=t.options.ticks,r=[];null==n||"number"==typeof n&&n>0?r=t.tickGenerator(t):n&&(r=e.isFunction(n)?n(t):n);var i,o;for(t.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=t.tickFormatter(o,t)),isNaN(o)||t.ticks.push({v:o,label:a})}}function N(e,t){e.options.autoscaleMargin&&t.length>0&&(null==e.options.min&&(e.min=Math.min(e.min,t[0].v)),null==e.options.max&&t.length>1&&(e.max=Math.max(e.max,t[t.length-1].v)))}function F(){oe.clear(),s(me.drawBackground,[ue]);var e=ie.grid;e.show&&e.backgroundColor&&O(),e.show&&!e.aboveData&&j();for(var t=0;t<re.length;++t)s(me.drawSeries,[ue,re[t]]),L(re[t]);s(me.draw,[ue]),e.show&&e.aboveData&&j(),oe.render(),G()}function M(e,t){for(var n,r,i,o,a=d(),s=0;s<a.length;++s)if(n=a[s],n.direction==t&&(o=t+n.n+"axis",e[o]||1!=n.n||(o=t+"axis"),e[o])){r=e[o].from,i=e[o].to;break}if(e[o]||(n="x"==t?ce[0]:fe[0],r=e[t+"1"],i=e[t+"2"]),null!=r&&null!=i&&r>i){var u=r;r=i,i=u}return{from:r,to:i,axis:n}}function O(){ue.save(),ue.translate(he.left,he.top),ue.fillStyle=ne(ie.grid.backgroundColor,pe,0,"rgba(255, 255, 255, 0)"),ue.fillRect(0,0,de,pe),ue.restore()}function j(){var t,n,r,i;ue.save(),ue.translate(he.left,he.top);var o=ie.grid.markings;if(o)for(e.isFunction(o)&&(n=ge.getAxes(),n.xmin=n.xaxis.min,n.xmax=n.xaxis.max,n.ymin=n.yaxis.min,n.ymax=n.yaxis.max,o=o(n)),t=0;t<o.length;++t){var a=o[t],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||ie.grid.markingsLineWidth,h=f%2?.5:0;ue.beginPath(),ue.strokeStyle=a.color||ie.grid.markingsColor,ue.lineWidth=f,l?(ue.moveTo(s.to+h,u.from),ue.lineTo(s.to+h,u.to)):(ue.moveTo(s.from,u.to+h),ue.lineTo(s.to,u.to+h)),ue.stroke()}else ue.fillStyle=a.color||ie.grid.markingsColor,ue.fillRect(s.from,u.to,s.to-s.from,u.from-u.to)}}n=d(),r=ie.grid.borderWidth;for(var p=0;p<n.length;++p){var m,g,v,y,b=n[p],_=b.box,w=b.tickLength;if(b.show&&0!=b.ticks.length){for(ue.lineWidth=1,"x"==b.direction?(m=0,g="full"==w?"top"==b.position?0:pe:_.top-he.top+("top"==b.position?_.height:0)):(g=0,m="full"==w?"left"==b.position?0:de:_.left-he.left+("left"==b.position?_.width:0)),b.innermost||(ue.strokeStyle=b.options.color,ue.beginPath(),v=y=0,"x"==b.direction?v=de+1:y=pe+1,1==ue.lineWidth&&("x"==b.direction?g=Math.floor(g)+.5:m=Math.floor(m)+.5),ue.moveTo(m,g),ue.lineTo(m+v,g+y),ue.stroke()),ue.strokeStyle=b.options.tickColor,ue.beginPath(),t=0;t<b.ticks.length;++t){var x=b.ticks[t].v;v=y=0,isNaN(x)||x<b.min||x>b.max||"full"==w&&("object"==typeof r&&r[b.position]>0||r>0)&&(x==b.min||x==b.max)||("x"==b.direction?(m=b.p2c(x),y="full"==w?-pe:w,"top"==b.position&&(y=-y)):(g=b.p2c(x),v="full"==w?-de:w,"left"==b.position&&(v=-v)),1==ue.lineWidth&&("x"==b.direction?m=Math.floor(m)+.5:g=Math.floor(g)+.5),ue.moveTo(m,g),ue.lineTo(m+v,g+y))}ue.stroke()}}r&&(i=ie.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&&(ue.strokeStyle=i.top,ue.lineWidth=r.top,ue.beginPath(),ue.moveTo(0-r.left,0-r.top/2),ue.lineTo(de,0-r.top/2),ue.stroke()),r.right>0&&(ue.strokeStyle=i.right,ue.lineWidth=r.right,ue.beginPath(),ue.moveTo(de+r.right/2,0-r.top),ue.lineTo(de+r.right/2,pe),ue.stroke()),r.bottom>0&&(ue.strokeStyle=i.bottom,ue.lineWidth=r.bottom,ue.beginPath(),ue.moveTo(de+r.right,pe+r.bottom/2),ue.lineTo(0,pe+r.bottom/2),ue.stroke()),r.left>0&&(ue.strokeStyle=i.left,ue.lineWidth=r.left,ue.beginPath(),ue.moveTo(0-r.left/2,pe+r.bottom),ue.lineTo(0-r.left/2,0),ue.stroke())):(ue.lineWidth=r,ue.strokeStyle=ie.grid.borderColor,ue.strokeRect(-r/2,-r/2,de+r,pe+r))),ue.restore()}function P(){e.each(d(),function(e,t){var n,r,i,o,a,s=t.box,u=t.direction+"Axis "+t.direction+t.n+"Axis",l="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+u,c=t.options.font||"flot-tick-label tickLabel";if(oe.removeText(l),t.show&&0!=t.ticks.length)for(var f=0;f<t.ticks.length;++f)n=t.ticks[f],!n.label||n.v<t.min||n.v>t.max||("x"==t.direction?(o="center",r=he.left+t.p2c(n.v),"bottom"==t.position?i=s.top+s.padding:(i=s.top+s.height-s.padding,a="bottom")):(a="middle",i=he.top+t.p2c(n.v),"left"==t.position?(r=s.left+s.width-s.padding,o="right"):r=s.left+s.padding),oe.addText(l,r,i,n.label,c,null,null,o,a))})}function L(e){e.lines.show&&R(e),e.bars.show&&z(e),e.points.show&&I(e)}function R(e){function t(e,t,n,r,i){var o=e.points,a=e.pointsize,s=null,u=null;ue.beginPath();for(var l=a;l<o.length;l+=a){var c=o[l-a],f=o[l-a+1],h=o[l],d=o[l+1];if(null!=c&&null!=h){if(f<=d&&f<i.min){if(d<i.min)continue;c=(i.min-f)/(d-f)*(h-c)+c,f=i.min}else if(d<=f&&d<i.min){if(f<i.min)continue;h=(i.min-f)/(d-f)*(h-c)+c,d=i.min}if(f>=d&&f>i.max){if(d>i.max)continue;c=(i.max-f)/(d-f)*(h-c)+c,f=i.max}else if(d>=f&&d>i.max){if(f>i.max)continue;h=(i.max-f)/(d-f)*(h-c)+c,d=i.max}if(c<=h&&c<r.min){if(h<r.min)continue;f=(r.min-c)/(h-c)*(d-f)+f,c=r.min}else if(h<=c&&h<r.min){if(c<r.min)continue;d=(r.min-c)/(h-c)*(d-f)+f,h=r.min}if(c>=h&&c>r.max){if(h>r.max)continue;f=(r.max-c)/(h-c)*(d-f)+f,c=r.max}else if(h>=c&&h>r.max){if(c>r.max)continue;d=(r.max-c)/(h-c)*(d-f)+f,h=r.max}c==s&&f==u||ue.moveTo(r.p2c(c)+t,i.p2c(f)+n),s=h,u=d,ue.lineTo(r.p2c(h)+t,i.p2c(d)+n)}}ue.stroke()}function n(e,t,n){for(var r=e.points,i=e.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],d=r[a],p=r[a+u];if(s){if(i>0&&null!=f&&null==d){c=a,i=-i,u=2;continue}if(i<0&&a==l+i){ue.fill(),s=!1,i=-i,u=1,a=l=c+i;continue}}if(null!=f&&null!=d){if(f<=d&&f<t.min){if(d<t.min)continue;h=(t.min-f)/(d-f)*(p-h)+h,f=t.min}else if(d<=f&&d<t.min){if(f<t.min)continue;p=(t.min-f)/(d-f)*(p-h)+h,d=t.min}if(f>=d&&f>t.max){if(d>t.max)continue;h=(t.max-f)/(d-f)*(p-h)+h,f=t.max}else if(d>=f&&d>t.max){if(f>t.max)continue;p=(t.max-f)/(d-f)*(p-h)+h,d=t.max}if(s||(ue.beginPath(),ue.moveTo(t.p2c(f),n.p2c(o)),s=!0),h>=n.max&&p>=n.max)ue.lineTo(t.p2c(f),n.p2c(n.max)),ue.lineTo(t.p2c(d),n.p2c(n.max));else if(h<=n.min&&p<=n.min)ue.lineTo(t.p2c(f),n.p2c(n.min)),ue.lineTo(t.p2c(d),n.p2c(n.min));else{var m=f,g=d;h<=p&&h<n.min&&p>=n.min?(f=(n.min-h)/(p-h)*(d-f)+f,h=n.min):p<=h&&p<n.min&&h>=n.min&&(d=(n.min-h)/(p-h)*(d-f)+f,p=n.min),h>=p&&h>n.max&&p<=n.max?(f=(n.max-h)/(p-h)*(d-f)+f,h=n.max):p>=h&&p>n.max&&h<=n.max&&(d=(n.max-h)/(p-h)*(d-f)+f,p=n.max),f!=m&&ue.lineTo(t.p2c(m),n.p2c(h)),ue.lineTo(t.p2c(f),n.p2c(h)),ue.lineTo(t.p2c(d),n.p2c(p)),d!=g&&(ue.lineTo(t.p2c(d),n.p2c(p)),ue.lineTo(t.p2c(g),n.p2c(p)))}}}}ue.save(),ue.translate(he.left,he.top),ue.lineJoin="round";var r=e.lines.lineWidth,i=e.shadowSize;if(r>0&&i>0){ue.lineWidth=i,ue.strokeStyle="rgba(0,0,0,0.1)";var o=Math.PI/18;t(e.datapoints,Math.sin(o)*(r/2+i/2),Math.cos(o)*(r/2+i/2),e.xaxis,e.yaxis),ue.lineWidth=i/2,t(e.datapoints,Math.sin(o)*(r/2+i/4),Math.cos(o)*(r/2+i/4),e.xaxis,e.yaxis)}ue.lineWidth=r,ue.strokeStyle=e.color;var a=B(e.lines,e.color,0,pe);a&&(ue.fillStyle=a,n(e.datapoints,e.xaxis,e.yaxis)),r>0&&t(e.datapoints,0,0,e.xaxis,e.yaxis),ue.restore()}function I(e){function t(e,t,n,r,i,o,a,s){for(var u=e.points,l=e.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||(ue.beginPath(),f=o.p2c(f),h=a.p2c(h)+r,"circle"==s?ue.arc(f,h,t,0,i?Math.PI:2*Math.PI,!1):s(ue,f,h,t,i),ue.closePath(),n&&(ue.fillStyle=n,ue.fill()),ue.stroke())}}ue.save(),ue.translate(he.left,he.top);var n=e.points.lineWidth,r=e.shadowSize,i=e.points.radius,o=e.points.symbol;if(0==n&&(n=1e-4),n>0&&r>0){var a=r/2;ue.lineWidth=a,ue.strokeStyle="rgba(0,0,0,0.1)",t(e.datapoints,i,null,a+a/2,!0,e.xaxis,e.yaxis,o),ue.strokeStyle="rgba(0,0,0,0.2)",t(e.datapoints,i,null,a/2,!0,e.xaxis,e.yaxis,o)}ue.lineWidth=n,ue.strokeStyle=e.color,t(e.datapoints,i,B(e.points,e.color),0,!1,e.xaxis,e.yaxis,o),ue.restore()}function q(e,t,n,r,i,o,a,s,u,l,c){var f,h,d,p,m,g,v,y,b;l?(y=g=v=!0,m=!1,f=n,h=e,p=t+r,d=t+i,h<f&&(b=h,h=f,f=b,m=!0,g=!1)):(m=g=v=!0,y=!1,f=e+r,h=e+i,d=n,p=t,p<d&&(b=p,p=d,d=b,y=!0,v=!1)),h<a.min||f>a.max||p<s.min||d>s.max||(f<a.min&&(f=a.min,m=!1),h>a.max&&(h=a.max,g=!1),d<s.min&&(d=s.min,y=!1),p>s.max&&(p=s.max,v=!1),f=a.p2c(f),d=s.p2c(d),h=a.p2c(h),p=s.p2c(p),o&&(u.fillStyle=o(d,p),u.fillRect(f,p,h-f,d-p)),c>0&&(m||g||v||y)&&(u.beginPath(),u.moveTo(f,d),m?u.lineTo(f,p):u.moveTo(f,p),v?u.lineTo(h,p):u.moveTo(h,p),g?u.lineTo(h,d):u.moveTo(h,d),y?u.lineTo(f,d):u.moveTo(f,d),u.stroke()))}function z(e){function t(t,n,r,i,o,a){for(var s=t.points,u=t.pointsize,l=0;l<s.length;l+=u)null!=s[l]&&q(s[l],s[l+1],s[l+2],n,r,i,o,a,ue,e.bars.horizontal,e.bars.lineWidth)}ue.save(),ue.translate(he.left,he.top),ue.lineWidth=e.bars.lineWidth,ue.strokeStyle=e.color;var n;switch(e.bars.align){case"left":n=0;break;case"right":n=-e.bars.barWidth;break;default:n=-e.bars.barWidth/2}var r=e.bars.fill?function(t,n){return B(e.bars,e.color,t,n)}:null;t(e.datapoints,n,n+e.bars.barWidth,r,e.xaxis,e.yaxis),ue.restore()}function B(t,n,r,i){var o=t.fill;if(!o)return null;if(t.fillColor)return ne(t.fillColor,r,i,n);var a=e.color.parse(n);return a.a="number"==typeof o?o:.4,a.normalize(),a.toString()}function H(){if(null!=ie.legend.container?e(ie.legend.container).html(""):n.find(".legend").remove(),ie.legend.show){for(var t,r,i=[],o=[],a=!1,s=ie.legend.labelFormatter,u=0;u<re.length;++u)t=re[u],t.label&&(r=s?s(t.label,t):t.label,r&&o.push({label:r,color:t.color}));if(ie.legend.sorted)if(e.isFunction(ie.legend.sorted))o.sort(ie.legend.sorted);else if("reverse"==ie.legend.sorted)o.reverse();else{var l="descending"!=ie.legend.sorted;o.sort(function(e,t){return e.label==t.label?0:e.label<t.label!=l?1:-1})}for(var u=0;u<o.length;++u){var c=o[u];u%ie.legend.noColumns==0&&(a&&i.push("</tr>"),i.push("<tr>"),a=!0),i.push('<td class="legendColorBox"><div style="border:1px solid '+ie.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:'+ie.grid.color+'">'+i.join("")+"</table>";if(null!=ie.legend.container)e(ie.legend.container).html(f);else{var h="",d=ie.legend.position,p=ie.legend.margin;null==p[0]&&(p=[p,p]),"n"==d.charAt(0)?h+="top:"+(p[1]+he.top)+"px;":"s"==d.charAt(0)&&(h+="bottom:"+(p[1]+he.bottom)+"px;"),"e"==d.charAt(1)?h+="right:"+(p[0]+he.right)+"px;":"w"==d.charAt(1)&&(h+="left:"+(p[0]+he.left)+"px;");var m=e('<div class="legend">'+f.replace('style="','style="position:absolute;'+h+";")+"</div>").appendTo(n);if(0!=ie.legend.backgroundOpacity){var g=ie.legend.backgroundColor;null==g&&(g=ie.grid.backgroundColor,g=g&&"string"==typeof g?e.color.parse(g):e.color.extract(m,"background-color"),g.a=1,g=g.toString());var v=m.children();e('<div style="position:absolute;width:'+v.width()+"px;height:"+v.height()+"px;"+h+"background-color:"+g+';"> </div>').prependTo(m).css("opacity",ie.legend.backgroundOpacity)}}}}}function U(e,t,n){var r,i,o,a=ie.grid.mouseActiveRadius,s=a*a+1,u=null;for(r=re.length-1;r>=0;--r)if(n(re[r])){var l=re[r],c=l.xaxis,f=l.yaxis,h=l.datapoints.points,d=c.c2p(e),p=f.c2p(t),m=a/c.scale,g=a/f.scale;if(o=l.datapoints.pointsize,c.options.inverseTransform&&(m=Number.MAX_VALUE),f.options.inverseTransform&&(g=Number.MAX_VALUE),l.lines.show||l.points.show)for(i=0;i<h.length;i+=o){var v=h[i],y=h[i+1];if(null!=v&&!(v-d>m||v-d<-m||y-p>g||y-p<-g)){var b=Math.abs(c.p2c(v)-e),_=Math.abs(f.p2c(y)-t),w=b*b+_*_;w<s&&(s=w,u=[r,i/o])}}if(l.bars.show&&!u){var x,k;switch(l.bars.align){case"left":x=0;break;case"right":x=-l.bars.barWidth;break;default:x=-l.bars.barWidth/2}for(k=x+l.bars.barWidth,i=0;i<h.length;i+=o){var v=h[i],y=h[i+1],C=h[i+2];null!=v&&(re[r].bars.horizontal?d<=Math.max(C,v)&&d>=Math.min(C,v)&&p>=y+x&&p<=y+k:d>=v+x&&d<=v+k&&p>=Math.min(C,y)&&p<=Math.max(C,y))&&(u=[r,i/o])}}}return u?(r=u[0],i=u[1],o=re[r].datapoints.pointsize,{datapoint:re[r].datapoints.points.slice(i*o,(i+1)*o),dataIndex:i,series:re[r],seriesIndex:r}):null}function V(e){ie.grid.hoverable&&K("plothover",e,function(e){return 0!=e.hoverable})}function W(e){ie.grid.hoverable&&K("plothover",e,function(e){return!1})}function Y(e){K("plotclick",e,function(e){return 0!=e.clickable})}function K(e,t,r){var i=se.offset(),o=t.pageX-i.left-he.left,a=t.pageY-i.top-he.top,s=p({left:o,top:a});s.pageX=t.pageX,s.pageY=t.pageY;var u=U(o,a,r);if(u&&(u.pageX=parseInt(u.series.xaxis.p2c(u.datapoint[0])+i.left+he.left,10),u.pageY=parseInt(u.series.yaxis.p2c(u.datapoint[1])+i.top+he.top,10)),ie.grid.autoHighlight){for(var l=0;l<ve.length;++l){var c=ve[l];c.auto!=e||u&&c.series==u.series&&c.point[0]==u.datapoint[0]&&c.point[1]==u.datapoint[1]||J(c.series,c.point)}u&&X(u.series,u.datapoint,e)}n.trigger(e,[s,u])}function G(){var e=ie.interaction.redrawOverlayInterval;return e==-1?void Z():void(ye||(ye=setTimeout(Z,e)))}function Z(){ye=null,le.save(),ae.clear(),le.translate(he.left,he.top);var e,t;for(e=0;e<ve.length;++e)t=ve[e],t.series.bars.show?te(t.series,t.point):ee(t.series,t.point);le.restore(),s(me.drawOverlay,[le])}function X(e,t,n){if("number"==typeof e&&(e=re[e]),"number"==typeof t){var r=e.datapoints.pointsize;t=e.datapoints.points.slice(r*t,r*(t+1))}var i=Q(e,t);i==-1?(ve.push({series:e,point:t,auto:n}),G()):n||(ve[i].auto=!1)}function J(e,t){if(null==e&&null==t)return ve=[],void G();if("number"==typeof e&&(e=re[e]),"number"==typeof t){var n=e.datapoints.pointsize;t=e.datapoints.points.slice(n*t,n*(t+1))}var r=Q(e,t);r!=-1&&(ve.splice(r,1),G())}function Q(e,t){for(var n=0;n<ve.length;++n){var r=ve[n];if(r.series==e&&r.point[0]==t[0]&&r.point[1]==t[1])return n}return-1}function ee(t,n){var r=n[0],i=n[1],o=t.xaxis,a=t.yaxis,s="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString();if(!(r<o.min||r>o.max||i<a.min||i>a.max)){var u=t.points.radius+t.points.lineWidth/2;le.lineWidth=u,le.strokeStyle=s;var l=1.5*u;r=o.p2c(r),i=a.p2c(i),le.beginPath(),"circle"==t.points.symbol?le.arc(r,i,l,0,2*Math.PI,!1):t.points.symbol(le,r,i,l,!1),le.closePath(),le.stroke()}}function te(t,n){var r,i="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString(),o=i;switch(t.bars.align){case"left":r=0;break;case"right":r=-t.bars.barWidth;break;default:r=-t.bars.barWidth/2}le.lineWidth=t.bars.lineWidth,le.strokeStyle=i,q(n[0],n[1],n[2]||0,r,r+t.bars.barWidth,function(){return o},t.xaxis,t.yaxis,le,t.bars.horizontal,t.bars.lineWidth)}function ne(t,n,r,i){if("string"==typeof t)return t;for(var o=ue.createLinearGradient(0,r,0,n),a=0,s=t.colors.length;a<s;++a){var u=t.colors[a];if("string"!=typeof u){var l=e.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 re=[],ie={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:{}},oe=null,ae=null,se=null,ue=null,le=null,ce=[],fe=[],he={left:0,right:0,top:0,bottom:0},de=0,pe=0,me={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},ge=this;ge.setData=c,ge.setupGrid=S,ge.draw=F,ge.getPlaceholder=function(){return n},ge.getCanvas=function(){return oe.element},ge.getPlotOffset=function(){return he},ge.width=function(){return de},ge.height=function(){return pe},ge.offset=function(){var e=se.offset();return e.left+=he.left,e.top+=he.top,e},ge.getData=function(){return re},ge.getAxes=function(){var t={};return e.each(ce.concat(fe),function(e,n){n&&(t[n.direction+(1!=n.n?n.n:"")+"axis"]=n)}),t},ge.getXAxes=function(){return ce},ge.getYAxes=function(){return fe},ge.c2p=p,ge.p2c=m,ge.getOptions=function(){return ie},ge.highlight=X,ge.unhighlight=J,ge.triggerRedrawOverlay=G,ge.pointOffset=function(e){return{left:parseInt(ce[h(e,"x")-1].p2c(+e.x)+he.left,10),top:parseInt(fe[h(e,"y")-1].p2c(+e.y)+he.top,10)}},ge.shutdown=w,ge.destroy=function(){w(),n.removeData("plot").empty(),re=[],ie=null,oe=null,ae=null,se=null,ue=null,le=null,ce=[],fe=[],me=null,ve=[],ge=null},ge.resize=function(){var e=n.width(),t=n.height();oe.resize(e,t),ae.resize(e,t)},ge.hooks=me,u(ge),l(o),b(),c(i),S(),F(),_();var ve=[],ye=null}function r(e,t){return t*Math.floor(e/t)}var i=Object.prototype.hasOwnProperty;e.fn.detach||(e.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),t.prototype.resize=function(e,t){if(e<=0||t<=0)throw new Error("Invalid dimensions for plot, width = "+e+", height = "+t);var n=this.element,r=this.context,i=this.pixelRatio;this.width!=e&&(n.width=e*i,n.style.width=e+"px",this.width=e),this.height!=t&&(n.height=t*i,n.style.height=t+"px",this.height=t),r.restore(),r.save(),r.scale(i,i)},t.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},t.prototype.render=function(){var e=this._textCache;for(var t in e)if(i.call(e,t)){var n=this.getTextLayer(t),r=e[t];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()}},t.prototype.getTextLayer=function(t){var n=this.text[t];return null==n&&(null==this.textContainer&&(this.textContainer=e("<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[t]=e("<div></div>").addClass(t).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),n},t.prototype.getTextInfo=function(t,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[t],null==s&&(s=this._textCache[t]={}),u=s[a],null==u&&(u=s[a]={}),l=u[n],null==l){var c=e("<div></div>").html(n).css({position:"absolute","max-width":o,top:-9999}).appendTo(this.getTextLayer(t));"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},t.prototype.addText=function(e,t,n,r,i,o,a,s,u){var l=this.getTextInfo(e,r,i,o,a),c=l.positions;"center"==s?t-=l.width/2:"right"==s&&(t-=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==t&&f.y==n)return void(f.active=!0);f={active:!0,rendered:!1,element:c.length?l.element.clone():l.element,x:t,y:n},c.push(f),f.element.css({top:Math.round(n),left:Math.round(t),"text-align":s})},t.prototype.removeText=function(e,t,n,r,o,a){if(null==r){var s=this._textCache[e];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,d=0;f=h[d];d++)f.active=!1}}else for(var f,h=this.getTextInfo(e,r,o,a).positions,d=0;f=h[d];d++)f.x==t&&f.y==n&&(f.active=!1)},e.plot=function(t,r,i){var o=new n(e(t),r,i,e.plot.plugins);return o},e.plot.version="0.8.3",e.plot.plugins=[],e.fn.plot=function(t,n){return this.each(function(){e.plot(this,t,n)})}}(jQuery),function(e){function t(t){function i(t,n,r){k||(k=!0,v=t.getCanvas(),y=e(v).parent(),b=t.getOptions(),t.setData(o(t.getData())))}function o(t){for(var n=0,r=0,i=0,o=b.series.pie.combine.color,a=[],s=0;s<t.length;++s){var u=t[s].data;e.isArray(u)&&1==u.length&&(u=u[0]),e.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],t[s].data=[u]}for(var s=0;s<t.length;++s)n+=t[s].data[0][1];for(var s=0;s<t.length;++s){var u=t[s].data[0][1];u/n<=b.series.pie.combine.threshold&&(r+=u,i++,o||(o=t[s].color))}for(var s=0;s<t.length;++s){var u=t[s].data[0][1];(i<2||u/n>b.series.pie.combine.threshold)&&a.push(e.extend(t[s],{data:[[1,u]],color:t[s].color,label:t[s].label,angle:u*Math.PI*2/n,percent:u/(n/100)}))}return i>1&&a.push({data:[[1,r]],color:o,label:b.series.pie.combine.label,angle:r*Math.PI*2/n,percent:r/(n/100)}),a}function a(t,i){function o(){C.clearRect(0,0,l,c),y.children().filter(".pieLabel, .pieLabelBackground").remove()}function a(){var e=b.series.pie.shadow.left,t=b.series.pie.shadow.top,n=10,r=b.series.pie.shadow.alpha,i=b.series.pie.radius>1?b.series.pie.radius:_*b.series.pie.radius;if(!(i>=l/2-e||i*b.series.pie.tilt>=c/2-t||i<=n)){C.save(),C.translate(e,t),C.globalAlpha=r,C.fillStyle="#000",C.translate(w,x),C.scale(1,b.series.pie.tilt);for(var o=1;o<=n;o++)C.beginPath(),
|
||
C.arc(0,0,i,0,2*Math.PI,!1),C.fill(),i-=o;C.restore()}}function u(){function t(e,t,n){e<=0||isNaN(e)||(n?C.fillStyle=t:(C.strokeStyle=t,C.lineJoin="round"),C.beginPath(),Math.abs(e-2*Math.PI)>1e-9&&C.moveTo(0,0),C.arc(0,0,i,o,o+e/2,!1),C.arc(0,0,i,o+e/2,o+e,!1),C.closePath(),o+=e,n?C.fill():C.stroke())}function n(){function t(t,n,r){if(0==t.data[0][1])return!0;var o,a=b.legend.labelFormatter,s=b.series.pie.label.formatter;o=a?a(t.label,t):t.label,s&&(o=s(o,t));var u=(n+t.angle+n)/2,f=w+Math.round(Math.cos(u)*i),h=x+Math.round(Math.sin(u)*i)*b.series.pie.tilt,d="<span class='pieLabel' id='pieLabel"+r+"' style='position:absolute;top:"+h+"px;left:"+f+"px;'>"+o+"</span>";y.append(d);var p=y.children("#pieLabel"+r),m=h-p.height()/2,g=f-p.width()/2;if(p.css("top",m),p.css("left",g),0-m>0||0-g>0||c-(m+p.height())<0||l-(g+p.width())<0)return!1;if(0!=b.series.pie.label.background.opacity){var v=b.series.pie.label.background.color;null==v&&(v=t.color);var _="top:"+m+"px;left:"+g+"px;";e("<div class='pieLabelBackground' style='position:absolute;width:"+p.width()+"px;height:"+p.height()+"px;"+_+"background-color:"+v+";'></div>").css("opacity",b.series.pie.label.background.opacity).insertBefore(p)}return!0}for(var n=r,i=b.series.pie.label.radius>1?b.series.pie.label.radius:_*b.series.pie.label.radius,o=0;o<h.length;++o){if(h[o].percent>=100*b.series.pie.label.threshold&&!t(h[o],n,o))return!1;n+=h[o].angle}return!0}var r=Math.PI*b.series.pie.startAngle,i=b.series.pie.radius>1?b.series.pie.radius:_*b.series.pie.radius;C.save(),C.translate(w,x),C.scale(1,b.series.pie.tilt),C.save();for(var o=r,a=0;a<h.length;++a)h[a].startAngle=o,t(h[a].angle,h[a].color,!0);if(C.restore(),b.series.pie.stroke.width>0){C.save(),C.lineWidth=b.series.pie.stroke.width,o=r;for(var a=0;a<h.length;++a)t(h[a].angle,b.series.pie.stroke.color,!1);C.restore()}return s(C),C.restore(),!b.series.pie.label.show||n()}if(y){var l=t.getPlaceholder().width(),c=t.getPlaceholder().height(),f=y.children().filter(".legend").children().width()||0;C=i,k=!1,_=Math.min(l,c/b.series.pie.tilt)/2,x=c/2+b.series.pie.offset.top,w=l/2,"auto"==b.series.pie.offset.left?(b.legend.position.match("w")?w+=f/2:w-=f/2,w<_?w=_:w>l-_&&(w=l-_)):w+=b.series.pie.offset.left;var h=t.getData(),d=0;do d>0&&(_*=r),d+=1,o(),b.series.pie.tilt<=.8&&a();while(!u()&&d<n);d>=n&&(o(),y.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")),t.setSeries&&t.insertLegend&&(t.setSeries(h),t.insertLegend())}}function s(e){if(b.series.pie.innerRadius>0){e.save();var t=b.series.pie.innerRadius>1?b.series.pie.innerRadius:_*b.series.pie.innerRadius;e.globalCompositeOperation="destination-out",e.beginPath(),e.fillStyle=b.series.pie.stroke.color,e.arc(0,0,t,0,2*Math.PI,!1),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.strokeStyle=b.series.pie.stroke.color,e.arc(0,0,t,0,2*Math.PI,!1),e.stroke(),e.closePath(),e.restore()}}function u(e,t){for(var n=!1,r=-1,i=e.length,o=i-1;++r<i;o=r)(e[r][1]<=t[1]&&t[1]<e[o][1]||e[o][1]<=t[1]&&t[1]<e[r][1])&&t[0]<(e[o][0]-e[r][0])*(t[1]-e[r][1])/(e[o][1]-e[r][1])+e[r][0]&&(n=!n);return n}function l(e,n){for(var r,i,o=t.getData(),a=t.getOptions(),s=a.series.pie.radius>1?a.series.pie.radius:_*a.series.pie.radius,l=0;l<o.length;++l){var c=o[l];if(c.pie.show){if(C.save(),C.beginPath(),C.moveTo(0,0),C.arc(0,0,s,c.startAngle,c.startAngle+c.angle/2,!1),C.arc(0,0,s,c.startAngle+c.angle/2,c.startAngle+c.angle,!1),C.closePath(),r=e-w,i=n-x,C.isPointInPath){if(C.isPointInPath(e-w,n-x))return C.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),d=s*Math.cos(c.startAngle+c.angle/4),p=s*Math.sin(c.startAngle+c.angle/4),m=s*Math.cos(c.startAngle+c.angle/2),g=s*Math.sin(c.startAngle+c.angle/2),v=s*Math.cos(c.startAngle+c.angle/1.5),y=s*Math.sin(c.startAngle+c.angle/1.5),b=s*Math.cos(c.startAngle+c.angle),k=s*Math.sin(c.startAngle+c.angle),E=[[0,0],[f,h],[d,p],[m,g],[v,y],[b,k]],$=[r,i];if(u(E,$))return C.restore(),{datapoint:[c.percent,c.data],dataIndex:0,series:c,seriesIndex:l}}C.restore()}}return null}function c(e){h("plothover",e)}function f(e){h("plotclick",e)}function h(e,n){var r=t.offset(),i=parseInt(n.pageX-r.left),o=parseInt(n.pageY-r.top),a=l(i,o);if(b.grid.autoHighlight)for(var s=0;s<E.length;++s){var u=E[s];u.auto!=e||a&&u.series==a.series||p(u.series)}a&&d(a.series,e);var c={pageX:n.pageX,pageY:n.pageY};y.trigger(e,[c,a])}function d(e,n){var r=m(e);r==-1?(E.push({series:e,auto:n}),t.triggerRedrawOverlay()):n||(E[r].auto=!1)}function p(e){null==e&&(E=[],t.triggerRedrawOverlay());var n=m(e);n!=-1&&(E.splice(n,1),t.triggerRedrawOverlay())}function m(e){for(var t=0;t<E.length;++t){var n=E[t];if(n.series==e)return t}return-1}function g(e,t){function n(e){e.angle<=0||isNaN(e.angle)||(t.fillStyle="rgba(255, 255, 255, "+r.series.pie.highlight.opacity+")",t.beginPath(),Math.abs(e.angle-2*Math.PI)>1e-9&&t.moveTo(0,0),t.arc(0,0,i,e.startAngle,e.startAngle+e.angle/2,!1),t.arc(0,0,i,e.startAngle+e.angle/2,e.startAngle+e.angle,!1),t.closePath(),t.fill())}var r=e.getOptions(),i=r.series.pie.radius>1?r.series.pie.radius:_*r.series.pie.radius;t.save(),t.translate(w,x),t.scale(1,r.series.pie.tilt);for(var o=0;o<E.length;++o)n(E[o].series);s(t),t.restore()}var v=null,y=null,b=null,_=null,w=null,x=null,k=!1,C=null,E=[];t.hooks.processOptions.push(function(e,t){t.series.pie.show&&(t.grid.show=!1,"auto"==t.series.pie.label.show&&(t.legend.show?t.series.pie.label.show=!1:t.series.pie.label.show=!0),"auto"==t.series.pie.radius&&(t.series.pie.label.show?t.series.pie.radius=.75:t.series.pie.radius=1),t.series.pie.tilt>1?t.series.pie.tilt=1:t.series.pie.tilt<0&&(t.series.pie.tilt=0))}),t.hooks.bindEvents.push(function(e,t){var n=e.getOptions();n.series.pie.show&&(n.grid.hoverable&&t.unbind("mousemove").mousemove(c),n.grid.clickable&&t.unbind("click").click(f))}),t.hooks.processDatapoints.push(function(e,t,n,r){var o=e.getOptions();o.series.pie.show&&i(e,t,n,r)}),t.hooks.drawOverlay.push(function(e,t){var n=e.getOptions();n.series.pie.show&&g(e,t)}),t.hooks.draw.push(function(e,t){var n=e.getOptions();n.series.pie.show&&a(e,t)})}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(e,t){return"<div style='font-size:x-small;text-align:center;padding:2px;color:"+t.color+";'>"+e+"<br/>"+Math.round(t.percent)+"%</div>"},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};e.plot.plugins.push({init:t,options:i,name:"pie",version:"1.1"})}(jQuery),function(e){function t(e,t){return t*Math.floor(e/t)}function n(e,t,n,r){if("function"==typeof e.strftime)return e.strftime(t);var i=function(e,t){return e=""+e,t=""+(null==t?"0":t),1==e.length?t+e:e},o=[],a=!1,s=e.getHours(),u=s<12;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<t.length;++c){var f=t.charAt(c);if(a){switch(f){case"a":f=""+r[e.getDay()];break;case"b":f=""+n[e.getMonth()];break;case"d":f=i(e.getDate());break;case"e":f=i(e.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(e.getMonth()+1);break;case"M":f=i(e.getMinutes());break;case"q":f=""+(Math.floor(e.getMonth()/3)+1);break;case"S":f=i(e.getSeconds());break;case"y":f=i(e.getFullYear()%100);break;case"Y":f=""+e.getFullYear();break;case"p":f=u?"am":"pm";break;case"P":f=u?"AM":"PM";break;case"w":f=""+e.getDay()}o.push(f),a=!1}else"%"==f?a=!0:o.push(f)}return o.join("")}function r(e){function t(e,t,n,r){e[t]=function(){return n[r].apply(n,arguments)}}var n={date:e};void 0!=e.strftime&&t(n,"strftime",e,"strftime"),t(n,"getTime",e,"getTime"),t(n,"setTime",e,"setTime");for(var r=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],i=0;i<r.length;i++)t(n,"get"+r[i],e,"getUTC"+r[i]),t(n,"set"+r[i],e,"setUTC"+r[i]);return n}function i(e,t){if("browser"==t.timezone)return new Date(e);if(t.timezone&&"utc"!=t.timezone){if("undefined"!=typeof timezoneJS&&"undefined"!=typeof timezoneJS.Date){var n=new timezoneJS.Date;return n.setTimezone(t.timezone),n.setTime(e),n}return r(new Date(e))}return r(new Date(e))}function o(r){r.hooks.processOptions.push(function(r,o){e.each(r.getAxes(),function(e,r){var o=r.options;"time"==o.mode&&(r.tickGenerator=function(e){var n=[],r=i(e.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&&!(e.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],d=u[f][1];if("year"==d){if(null!=o.minTickSize&&"year"==o.minTickSize[1])h=Math.floor(o.minTickSize[0]);else{var p=Math.pow(10,Math.floor(Math.log(e.delta/s.year)/Math.LN10)),m=e.delta/s.year/p;h=m<1.5?1:m<3?2:m<7.5?5:10,h*=p}h<1&&(h=1)}e.tickSize=o.tickSize||[h,d];var g=e.tickSize[0];d=e.tickSize[1];var v=g*s[d];"second"==d?r.setSeconds(t(r.getSeconds(),g)):"minute"==d?r.setMinutes(t(r.getMinutes(),g)):"hour"==d?r.setHours(t(r.getHours(),g)):"month"==d?r.setMonth(t(r.getMonth(),g)):"quarter"==d?r.setMonth(3*t(r.getMonth()/3,g)):"year"==d&&r.setFullYear(t(r.getFullYear(),g)),r.setMilliseconds(0),v>=s.minute&&r.setSeconds(0),v>=s.hour&&r.setMinutes(0),v>=s.day&&r.setHours(0),v>=4*s.day&&r.setDate(1),v>=2*s.month&&r.setMonth(t(r.getMonth(),3)),v>=2*s.quarter&&r.setMonth(t(r.getMonth(),6)),v>=s.year&&r.setMonth(0);var y,b=0,_=Number.NaN;do if(y=_,_=r.getTime(),n.push(_),"month"==d||"quarter"==d)if(g<1){r.setDate(1);var w=r.getTime();r.setMonth(r.getMonth()+("quarter"==d?3:1));var x=r.getTime();r.setTime(_+b*s.hour+(x-w)*g),b=r.getHours(),r.setHours(0)}else r.setMonth(r.getMonth()+g*("quarter"==d?3:1));else"year"==d?r.setFullYear(r.getFullYear()+g):r.setTime(_+v);while(_<e.max&&_!=y);return n},r.tickFormatter=function(e,t){var r=i(e,t.options);if(null!=o.timeformat)return n(r,o.timeformat,o.monthNames,o.dayNames);var a,u=t.options.tickSize&&"quarter"==t.options.tickSize[1]||t.options.minTickSize&&"quarter"==t.options.minTickSize[1],l=t.tickSize[0]*s[t.tickSize[1]],c=t.max-t.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 d=n(r,a,o.monthNames,o.dayNames);return d})})})}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"]]);e.plot.plugins.push({init:o,options:a,name:"time",version:"1.0"}),e.plot.formatDate=n,e.plot.dateGenerator=i}(jQuery),function(e){function t(t){var n=!1;t.hooks.draw.push(function(t,r){n?(e.each(t.getAxes(),function(n,r){var i=r.options||t.getOptions()[n];if(i&&i.axisLabel)if(i.axisLabelUseCanvas){var o=t.getCanvas().getContext("2d");o.save(),o.font=i.axisLabelFontSizePixels+"px "+i.axisLabelFontFamily;var a,s,u=o.measureText(i.axisLabel).width,l=i.axisLabelFontSizePixels;"x"==n.charAt(0)?(a=t.getPlotOffset().left+t.width()/2-u/2,s=t.getCanvas().height):(a=.72*l,s=t.getPlotOffset().top+t.height()/2-u/2),o.translate(a,s),o.rotate("x"==n.charAt(0)?0:-Math.PI/2),o.fillText(i.axisLabel,0,0),o.restore()}else{t.getPlaceholder().find("#"+n+"Label").remove();var c=e('<div id="'+n+'Label" " class="axisLabels" style="position:absolute;">'+i.axisLabel+"</div>");"x"==n.charAt(0)?(c.css("left",t.getPlotOffset().left+t.width()/2-c.outerWidth()/2+"px"),c.css("bottom","0px")):(c.css("top",t.getPlotOffset().top+t.height()/2-c.outerHeight()/2+"px"),c.css("left","0px")),t.getPlaceholder().append(c)}}),n=!1):(e.each(t.getAxes(),function(n,r){var i=r.options||t.getOptions()[n];if(i&&i.axisLabel){var o,a;if(0!=i.axisLabelUseCanvas&&(i.axisLabelUseCanvas=!0),i.axisLabelUseCanvas)i.axisLabelFontSizePixels||(i.axisLabelFontSizePixels=14),i.axisLabelFontFamily||(i.axisLabelFontFamily="sans-serif"),o=i.axisLabelFontSizePixels,a=i.axisLabelFontSizePixels;else{var s=e('<div class="axisLabels" style="position:absolute;">'+i.axisLabel+"</div>");t.getPlaceholder().append(s),o=s.outerWidth(!0),a=s.outerHeight(!0),s.remove()}"x"==n.charAt(0)?r.labelHeight+=a:r.labelWidth+=o,i.labelHeight=r.labelHeight,i.labelWidth=r.labelWidth}}),n=!0,t.setupGrid(),t.draw())})}var n={};e.plot.plugins.push({init:t,options:n,name:"axisLabels",version:"1.0"})}(jQuery),function(e){var t={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,snap:!0,lines:!1,clickTips:!1,onHover:function(e,t){},$compat:!1}};t.tooltipOpts=t.tooltip;var n=function(e){this.tipPosition={x:0,y:0},this.init(e)};n.prototype.init=function(t){function n(e){var n={};n.x=e.pageX,n.y=e.pageY,t.setTooltipPosition(n)}function r(n,r,a){o.clickmode?(e(t.getPlaceholder()).bind("plothover",i),t.hideTooltip(),o.clickmode=!1):(i(n,r,a),o.getDomElement().is(":visible")&&(e(t.getPlaceholder()).unbind("plothover",i),o.clickmode=!0))}function i(n,r,i){var a=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},s=function(e,t,n,r,i,o,s){if(!s||(s=function(e,t,n,r,i,o){if("undefined"!=typeof n)return{x:n,y:t};if("undefined"!=typeof r)return{x:e,y:r};var a,s=-1/((o-r)/(i-n));return{x:a=(i*(e*s-t+r)+n*(e*-s+t-o))/(s*(i-n)+r-o),y:s*a-s*e+t}}(e,t,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*e+l*t+c)/Math.sqrt(u*u+l*l)}var f=a(e,t,n,r),h=a(e,t,i,o);return f>h?h:f};if(i)t.showTooltip(i,o.tooltipOptions.snap?i:r);else if(o.plotOptions.series.lines.show&&o.tooltipOptions.lines===!0){var u=o.plotOptions.grid.mouseActiveRadius,l={distance:u+1},c=r;e.each(t.getData(),function(e,n){for(var i=0,u=-1,f=1;f<n.data.length;f++)n.data[f-1][0]<=r.x&&n.data[f][0]>=r.x&&(i=f-1,u=f);if(u===-1)return void t.hideTooltip();var h={x:n.data[i][0],y:n.data[i][1]},d={x:n.data[u][0],y:n.data[u][1]},p=s(n.xaxis.p2c(r.x),n.yaxis.p2c(r.y),n.xaxis.p2c(h.x),n.yaxis.p2c(h.y),n.xaxis.p2c(d.x),n.yaxis.p2c(d.y),!1);if(p<l.distance){var m=a(h.x,h.y,r.x,r.y)<a(r.x,r.y,d.x,d.y)?i:u,g=(n.datapoints.pointsize,[r.x,h.y+(d.y-h.y)*((r.x-h.x)/(d.x-h.x))]),v={datapoint:g,dataIndex:m,series:n,seriesIndex:e};l={distance:p,item:v},o.tooltipOptions.snap&&(c={pageX:n.xaxis.p2c(g[0]),pageY:n.yaxis.p2c(g[1])})}}),l.distance<u+1?t.showTooltip(l.item,c):t.hideTooltip()}else t.hideTooltip()}var o=this,a=e.plot.plugins.length;if(this.plotPlugins=[],a)for(var s=0;s<a;s++)this.plotPlugins.push(e.plot.plugins[s].name);t.hooks.bindEvents.push(function(t,a){if(o.plotOptions=t.getOptions(),"boolean"==typeof o.plotOptions.tooltip&&(o.plotOptions.tooltipOpts.show=o.plotOptions.tooltip,o.plotOptions.tooltip=o.plotOptions.tooltipOpts,delete o.plotOptions.tooltipOpts),o.plotOptions.tooltip.show!==!1&&"undefined"!=typeof o.plotOptions.tooltip.show){o.tooltipOptions=o.plotOptions.tooltip,o.tooltipOptions.$compat?(o.wfunc="width",o.hfunc="height"):(o.wfunc="innerWidth",o.hfunc="innerHeight");o.getDomElement();e(t.getPlaceholder()).bind("plothover",i),o.tooltipOptions.clickTips&&e(t.getPlaceholder()).bind("plotclick",r),o.clickmode=!1,e(a).bind("mousemove",n)}}),t.hooks.shutdown.push(function(t,o){e(t.getPlaceholder()).unbind("plothover",i),e(t.getPlaceholder()).unbind("plotclick",r),t.removeTooltip(),e(o).unbind("mousemove",n)}),t.setTooltipPosition=function(t){var n=o.getDomElement(),r=n.outerWidth()+o.tooltipOptions.shifts.x,i=n.outerHeight()+o.tooltipOptions.shifts.y;t.x-e(window).scrollLeft()>e(window)[o.wfunc]()-r&&(t.x-=r,t.x=Math.max(t.x,0)),t.y-e(window).scrollTop()>e(window)[o.hfunc]()-i&&(t.y-=i),isNaN(t.x)?o.tipPosition.x=o.tipPosition.xPrev:(o.tipPosition.x=t.x,o.tipPosition.xPrev=t.x),isNaN(t.y)?o.tipPosition.y=o.tipPosition.yPrev:(o.tipPosition.y=t.y,o.tipPosition.yPrev=t.y)},t.showTooltip=function(e,n,r){var i=o.getDomElement(),a=o.stringFormat(o.tooltipOptions.content,e);""!==a&&(i.html(a),t.setTooltipPosition({x:o.tipPosition.x,y:o.tipPosition.y}),i.css({left:o.tipPosition.x+o.tooltipOptions.shifts.x,top:o.tipPosition.y+o.tooltipOptions.shifts.y}).show(),"function"==typeof o.tooltipOptions.onHover&&o.tooltipOptions.onHover(e,i))},t.hideTooltip=function(){o.getDomElement().hide().html("")},t.removeTooltip=function(){o.getDomElement().remove()}},n.prototype.getDomElement=function(){var t=e("<div>");return this.tooltipOptions&&this.tooltipOptions.cssClass&&(t=e("."+this.tooltipOptions.cssClass),0===t.length&&(t=e("<div />").addClass(this.tooltipOptions.cssClass),t.appendTo("body").hide().css({position:"absolute"}),this.tooltipOptions.defaultTheme&&t.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"}))),t},n.prototype.stringFormat=function(e,t){var n,r,i,o,a,s=/%p\.{0,1}(\d{0,})/,u=/%s/,l=/%c/,c=/%lx/,f=/%ly/,h=/%x\.{0,1}(\d{0,})/,d=/%y\.{0,1}(\d{0,})/,p="%x",m="%y",g="%ct",v="%n";if("undefined"!=typeof t.series.threshold?(n=t.datapoint[0],r=t.datapoint[1],i=t.datapoint[2]):"undefined"!=typeof t.series.curvedLines?(n=t.datapoint[0],r=t.datapoint[1]):"undefined"!=typeof t.series.lines&&t.series.lines.steps?(n=t.series.datapoints.points[2*t.dataIndex],r=t.series.datapoints.points[2*t.dataIndex+1],i=""):(n=t.series.data[t.dataIndex][0],r=t.series.data[t.dataIndex][1],i=t.series.data[t.dataIndex][2]),null===t.series.label&&t.series.originSeries&&(t.series.label=t.series.originSeries.label),"function"==typeof e&&(e=e(t.series.label,n,r,t)),"boolean"==typeof e&&!e)return"";if(i&&(e=e.replace(g,i)),"undefined"!=typeof t.series.percent?o=t.series.percent:"undefined"!=typeof t.series.percents&&(o=t.series.percents[t.dataIndex]),"number"==typeof o&&(e=this.adjustValPrecision(s,e,o)),t.series.hasOwnProperty("pie")&&"undefined"!=typeof t.series.data[0][1]&&(a=t.series.data[0][1]),"number"==typeof a&&(e=e.replace(v,a)),e="undefined"!=typeof t.series.label?e.replace(u,t.series.label):e.replace(u,""),e="undefined"!=typeof t.series.color?e.replace(l,t.series.color):e.replace(l,""),e=this.hasAxisLabel("xaxis",t)?e.replace(c,t.series.xaxis.options.axisLabel):e.replace(c,""),e=this.hasAxisLabel("yaxis",t)?e.replace(f,t.series.yaxis.options.axisLabel):e.replace(f,""),this.isTimeMode("xaxis",t)&&this.isXDateFormat(t)&&(e=e.replace(h,this.timestampToDate(n,this.tooltipOptions.xDateFormat,t.series.xaxis.options))),this.isTimeMode("yaxis",t)&&this.isYDateFormat(t)&&(e=e.replace(d,this.timestampToDate(r,this.tooltipOptions.yDateFormat,t.series.yaxis.options))),"number"==typeof n&&(e=this.adjustValPrecision(h,e,n)),"number"==typeof r&&(e=this.adjustValPrecision(d,e,r)),"undefined"!=typeof t.series.xaxis.ticks){var y;y=this.hasRotatedXAxisTicks(t)?"rotatedTicks":"ticks";var b=t.dataIndex+t.seriesIndex;for(var _ in t.series.xaxis[y])if(t.series.xaxis[y].hasOwnProperty(b)&&!this.isTimeMode("xaxis",t)){var w=this.isCategoriesMode("xaxis",t)?t.series.xaxis[y][b].label:t.series.xaxis[y][b].v;w===n&&(e=e.replace(h,t.series.xaxis[y][b].label.replace(/\$/g,"$$$$")))}}if("undefined"!=typeof t.series.yaxis.ticks)for(var x in t.series.yaxis.ticks)if(t.series.yaxis.ticks.hasOwnProperty(x)){var k=this.isCategoriesMode("yaxis",t)?t.series.yaxis.ticks[x].label:t.series.yaxis.ticks[x].v;k===r&&(e=e.replace(d,t.series.yaxis.ticks[x].label.replace(/\$/g,"$$$$")))}return"undefined"!=typeof t.series.xaxis.tickFormatter&&(e=e.replace(p,t.series.xaxis.tickFormatter(n,t.series.xaxis).replace(/\$/g,"$$"))),"undefined"!=typeof t.series.yaxis.tickFormatter&&(e=e.replace(m,t.series.yaxis.tickFormatter(r,t.series.yaxis).replace(/\$/g,"$$"))),e},n.prototype.isTimeMode=function(e,t){return"undefined"!=typeof t.series[e].options.mode&&"time"===t.series[e].options.mode},n.prototype.isXDateFormat=function(e){return"undefined"!=typeof this.tooltipOptions.xDateFormat&&null!==this.tooltipOptions.xDateFormat},n.prototype.isYDateFormat=function(e){return"undefined"!=typeof this.tooltipOptions.yDateFormat&&null!==this.tooltipOptions.yDateFormat},n.prototype.isCategoriesMode=function(e,t){return"undefined"!=typeof t.series[e].options.mode&&"categories"===t.series[e].options.mode},n.prototype.timestampToDate=function(t,n,r){var i=e.plot.dateGenerator(t,r);return e.plot.formatDate(i,n,this.tooltipOptions.monthNames,this.tooltipOptions.dayNames)},n.prototype.adjustValPrecision=function(e,t,n){var r,i=t.match(e);return null!==i&&""!==RegExp.$1&&(r=RegExp.$1,n=n.toFixed(r),t=t.replace(e,n)),t},n.prototype.hasAxisLabel=function(t,n){return e.inArray("axisLabels",this.plotPlugins)!==-1&&"undefined"!=typeof n.series[t].options.axisLabel&&n.series[t].options.axisLabel.length>0},n.prototype.hasRotatedXAxisTicks=function(t){return e.inArray("tickRotor",this.plotPlugins)!==-1&&"undefined"!=typeof t.series.xaxis.rotatedTicks};var r=function(e){new n(e)};e.plot.plugins.push({init:r,options:t,name:"tooltip",version:"0.8.5"})}(jQuery),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Raven=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[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:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,e,t,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(e,t,n){function r(e,t,n,r){return JSON.stringify(e,i(t,r),n)}function i(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(i,o){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,i):r.push(i),~n.indexOf(o)&&(o=t.call(this,i,o))}else n.push(o);return null==e?o:e.call(this,i,o)}}n=t.exports=r,n.getSerialize=i},{}],2:[function(e,t,n){"use strict";function r(e){this.name="RavenConfigError",this.message=e}r.prototype=new Error,r.prototype.constructor=r,t.exports=r},{}],3:[function(e,t,n){"use strict";var r=function(e,t,n){var r=e[t],i=e;if(t in e){var o="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),t=""+e.join(" "),a={level:o,logger:"console",extra:{arguments:e}};n&&n(t,a),r&&Function.prototype.apply.call(r,i,e)}}};t.exports={wrapMethod:r}},{}],4:[function(e,t,n){(function(n){"use strict";function r(){return+new Date}function i(){this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!o(T),this._lastCapturedException=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],crossOrigin:"anonymous",collectWindowErrors:!0,maxMessageLength:0,stackTraceLimit:50,autoBreadcrumbs:!0},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=A.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=r(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=A.location,this._lastHref=this._location&&this._location.href;for(var e in this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}function o(e){return void 0===e}function a(e){return"function"==typeof e}function s(e){return"[object String]"===D.toString.call(e)}function u(e){return"object"==typeof e&&null!==e}function l(e){for(var t in e)return!1;return!0}function c(e){var t=D.toString.call(e);return u(e)&&"[object Error]"===t||"[object Exception]"===t||e instanceof Error}function f(e,t){var n,r;if(o(e.length))for(n in e)p(e,n)&&t.call(null,n,e[n]);else if(r=e.length)for(n=0;n<r;n++)t.call(null,n,e[n])}function h(e,t){return t?(f(t,function(t,n){e[t]=n}),e):e}function d(e,t){return!t||e.length<=t?e:e.substr(0,t)+"…"}function p(e,t){return D.hasOwnProperty.call(e,t)}function m(e){for(var t,n=[],r=0,i=e.length;r<i;r++)t=e[r],s(t)?n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):t&&t.source&&n.push(t.source);return new RegExp(n.join("|"),"i")}function g(e){var t=[];return f(e,function(e,n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}),t.join("&")}function v(e){var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+n+r}}function y(){var e=A.crypto||A.msCrypto;if(!o(e)&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)})}function b(e){for(var t,n=5,r=80,i=[],o=0,a=0,s=" > ",u=s.length;e&&o++<n&&(t=_(e),!("html"===t||o>1&&a+i.length*u+t.length>=r));)i.push(t),a+=t.length,e=e.parentNode;return i.reverse().join(s)}function _(e){var t,n,r,i,o,a=[];if(!e||!e.tagName)return"";if(a.push(e.tagName.toLowerCase()),e.id&&a.push("#"+e.id),t=e.className,t&&s(t))for(n=t.split(" "),o=0;o<n.length;o++)a.push("."+n[o]);var u=["type","name","title","alt"];for(o=0;o<u.length;o++)r=u[o],i=e.getAttribute(r),i&&a.push("["+r+'="'+i+'"]');return a.join("")}function w(e,t,n,r){var i=e[t];e[t]=n(i),r&&r.push([e,t,i])}var x=e(6),k=e(2),C=e(1),E=e(3).wrapMethod,$="source protocol user pass host port path".split(" "),S=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/,A="undefined"!=typeof window?window:"undefined"!=typeof n?n:"undefined"!=typeof self?self:{},T=A.document;i.prototype={VERSION:"3.9.1",debug:!1,TraceKit:x,config:function(e,t){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!e)return n;var r=n._globalOptions;t&&f(t,function(e,t){"tags"===e||"extra"===e||"user"===e?n._globalContext[e]=t:r[e]=t}),n.setDSN(e),r.ignoreErrors.push(/^Script error\.?$/),r.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),r.ignoreErrors=m(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&m(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&m(r.whitelistUrls),r.includePaths=m(r.includePaths),r.maxBreadcrumbs=Math.max(0,Math.min(r.maxBreadcrumbs||100,100));var i={xhr:!0,console:!0,dom:!0,location:!0},o=r.autoBreadcrumbs;return"[object Object]"==={}.toString.call(o)?o=h(i,o):o!==!1&&(o=i),r.autoBreadcrumbs=o,x.collectWindowErrors=!!r.collectWindowErrors,n},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(x.report.subscribe(function(){e._handleOnErrorStackInfo.apply(e,arguments)}),e._instrumentTryCatch(),e._globalOptions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInstalled=!0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e){var t=this,n=t._parseDSN(e),r=n.path.lastIndexOf("/"),i=n.path.substr(1,r);t._dsn=e,t._globalKey=n.user,t._globalSecret=n.pass&&n.pass.substr(1),t._globalProject=n.path.substr(r+1),t._globalServer=t._getGlobalServer(n),t._globalEndpoint=t._globalServer+"/"+i+"api/"+t._globalProject+"/store/"},context:function(e,t,n){return a(e)&&(n=t||[],t=e,e=void 0),this.wrap(e,t).apply(this,n)},wrap:function(e,t,n){function r(){var r=[],o=arguments.length,s=!e||e&&e.deep!==!1;for(n&&a(n)&&n.apply(this,arguments);o--;)r[o]=s?i.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,r)}catch(u){throw i._ignoreNextOnError(),i.captureException(u,e),u}}var i=this;if(o(t)&&!a(e))return e;if(a(e)&&(t=e,e=void 0),!a(t))return t;try{if(t.__raven__)return t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(s){return t}for(var u in t)p(t,u)&&(r[u]=t[u]);return r.prototype=t.prototype,t.__raven_wrapper__=r,r.__raven__=!0,r.__inner__=t,r},uninstall:function(){return x.report.uninstall(),this._restoreBuiltIns(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},captureException:function(e,t){if(!c(e))return this.captureMessage(e,h({trimHeadFrames:1,stacktrace:!0},t));this._lastCapturedException=e;try{var n=x.computeStackTrace(e);this._handleStackInfo(n,t)}catch(r){if(e!==r)throw r}return this},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){t=t||{};var n=h({message:e+""},t);if(this._globalOptions.stacktrace||t&&t.stacktrace){var r;try{throw new Error(e)}catch(i){r=i}r.name=null,t=h({fingerprint:e,trimHeadFrames:(t.trimHeadFrames||0)+1},t);var o=x.computeStackTrace(r),a=this._prepareFrames(o,t);n.stacktrace={frames:a.reverse()}}return this._send(n),this}},captureBreadcrumb:function(e){var t=h({timestamp:r()/1e3},e);if(a(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(t);if(u(n)&&!l(n))t=n;else if(n===!1)return this}return this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(C(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=a(e)?function(n){return e(n,t)}:e,this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=a(e)?function(n){return e(n,t)}:e,this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=a(e)?function(n){return e(n,t)}:e,this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=A.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(T){e=e||{};var t=e.eventId||this.lastEventId();if(!t)throw new k("Missing eventId");var n=e.dsn||this._dsn;if(!n)throw new k("Missing DSN");var r=encodeURIComponent,i="";i+="?eventId="+r(t),i+="&dsn="+r(n);var o=e.user||this._globalContext.user;o&&(o.name&&(i+="&name="+r(o.name)),o.email&&(i+="&email="+r(o.email)));var a=this._getGlobalServer(this._parseDSN(n)),s=T.createElement("script");
|
||
s.async=!0,s.src=a+"/api/embed/error-page/"+i,(T.head||T.body).appendChild(s)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout(function(){e._ignoreOnError-=1})},_triggerEvent:function(e,t){var n,r;if(this._hasDocument){t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),T.createEvent?(n=T.createEvent("HTMLEvents"),n.initEvent(e,!0,!0)):(n=T.createEventObject(),n.eventType=e);for(r in t)p(t,r)&&(n[r]=t[r]);if(T.createEvent)T.dispatchEvent(n);else try{T.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(i){}}},_breadcrumbEventHandler:function(e){var t=this;return function(n){if(t._keypressTimeout=null,t._lastCapturedEvent!==n){t._lastCapturedEvent=n;var r,i=n.target;try{r=b(i)}catch(o){r="<unknown>"}t.captureBreadcrumb({category:"ui."+e,message:r})}}},_keypressEventHandler:function(){var e=this,t=1e3;return function(n){var r=n.target,i=r&&r.tagName;if(i&&("INPUT"===i||"TEXTAREA"===i||r.isContentEditable)){var o=e._keypressTimeout;o||e._breadcrumbEventHandler("input")(n),clearTimeout(o),e._keypressTimeout=setTimeout(function(){e._keypressTimeout=null},t)}}},_captureUrlChange:function(e,t){var n=v(this._location.href),r=v(t),i=v(e);this._lastHref=t,n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_instrumentTryCatch:function(){function e(e){return function(t,r){for(var i=new Array(arguments.length),o=0;o<i.length;++o)i[o]=arguments[o];var s=i[0];return a(s)&&(i[0]=n.wrap(s)),e.apply?e.apply(this,i):e(i[0],i[1])}}function t(e){var t=A[e]&&A[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(w(t,"addEventListener",function(t){return function(r,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=n.wrap(o.handleEvent))}catch(u){}var l,c,f;return i&&i.dom&&("EventTarget"===e||"Node"===e)&&(c=n._breadcrumbEventHandler("click"),f=n._keypressEventHandler(),l=function(e){if(e)return"click"===e.type?c(e):"keypress"===e.type?f(e):void 0}),t.call(this,r,n.wrap(o,void 0,l),a,s)}},r),w(t,"removeEventListener",function(e){return function(t,n,r,i){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(o){}return e.call(this,t,n,r,i)}},r))}var n=this,r=n._wrappedBuiltIns,i=this._globalOptions.autoBreadcrumbs;w(A,"setTimeout",e,r),w(A,"setInterval",e,r),A.requestAnimationFrame&&w(A,"requestAnimationFrame",function(e){return function(t){return e(n.wrap(t))}},r);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],s=0;s<o.length;s++)t(o[s]);var u=A.jQuery||A.$;u&&u.fn&&u.fn.ready&&w(u.fn,"ready",function(e){return function(t){return e.call(this,n.wrap(t))}},r)},_instrumentBreadcrumbs:function(){function e(e,n){e in n&&a(n[e])&&w(n,e,function(e){return t.wrap(e)})}var t=this,n=this._globalOptions.autoBreadcrumbs,r=t._wrappedBuiltIns;if(n.xhr&&"XMLHttpRequest"in A){var i=XMLHttpRequest.prototype;w(i,"open",function(e){return function(n,r){return s(r)&&r.indexOf(t._globalKey)===-1&&(this.__raven_xhr={method:n,url:r,status_code:null}),e.apply(this,arguments)}},r),w(i,"send",function(n){return function(r){function i(){if(o.__raven_xhr&&(1===o.readyState||4===o.readyState)){try{o.__raven_xhr.status_code=o.status}catch(e){}t.captureBreadcrumb({type:"http",category:"xhr",data:o.__raven_xhr})}}for(var o=this,s=["onload","onerror","onprogress"],u=0;u<s.length;u++)e(s[u],o);return"onreadystatechange"in o&&a(o.onreadystatechange)?w(o,"onreadystatechange",function(e){return t.wrap(e,void 0,i)}):o.onreadystatechange=i,n.apply(this,arguments)}},r)}n.xhr&&"fetch"in A&&w(A,"fetch",function(e){return function(n,r){for(var i=new Array(arguments.length),o=0;o<i.length;++o)i[o]=arguments[o];var a="GET";i[1]&&i[1].method&&(a=i[1].method);var s={method:a,url:i[0],status_code:null};return t.captureBreadcrumb({type:"http",category:"fetch",data:s}),e.apply(this,i).then(function(e){return s.status_code=e.status,e})}},r),n.dom&&this._hasDocument&&(T.addEventListener?(T.addEventListener("click",t._breadcrumbEventHandler("click"),!1),T.addEventListener("keypress",t._keypressEventHandler(),!1)):(T.attachEvent("onclick",t._breadcrumbEventHandler("click")),T.attachEvent("onkeypress",t._keypressEventHandler())));var o=A.chrome,u=o&&o.app&&o.app.runtime,l=!u&&A.history&&history.pushState;if(n.location&&l){var c=A.onpopstate;A.onpopstate=function(){var e=t._location.href;if(t._captureUrlChange(t._lastHref,e),c)return c.apply(this,arguments)},w(history,"pushState",function(e){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&t._captureUrlChange(t._lastHref,n+""),e.apply(this,arguments)}},r)}if(n.console&&"console"in A&&console.log){var h=function(e,n){t.captureBreadcrumb({message:e,level:n.level,category:"console"})};f(["debug","info","warn","error","log"],function(e,t){E(console,t,h)})}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){e=this._wrappedBuiltIns.shift();var t=e[0],n=e[1],r=e[2];t[n]=r}},_drainPlugins:function(){var e=this;f(this._plugins,function(t,n){var r=n[0],i=n[1];r.apply(e,[e].concat(i))})},_parseDSN:function(e){var t=S.exec(e),n={},r=7;try{for(;r--;)n[$[r]]=t[r]||""}catch(i){throw new k("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new k("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(e,t){var n=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,n,t)},_prepareFrames:function(e,t){var n=this,r=[];if(e.stack&&e.stack.length&&(f(e.stack,function(e,t){var i=n._normalizeFrame(t);i&&r.push(i)}),t&&t.trimHeadFrames))for(var i=0;i<t.trimHeadFrames&&i<r.length;i++)r[i].in_app=!1;return r=r.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(e){if(e.url){var t={filename:e.url,lineno:e.line,colno:e.column,"function":e.func||"?"};return t.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(t.filename)||/(Raven|TraceKit)\./.test(t["function"])||/raven\.(min\.)?js$/.test(t.filename)),t}},_processException:function(e,t,n,r,i,o){var a;if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t))&&(t+="",i&&i.length?(n=i[0].filename||n,i.reverse(),a={frames:i}):n&&(a={frames:[{filename:n,lineno:r,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var s=h({exception:{values:[{type:e,value:t,stacktrace:a}]},culprit:n},o);this._send(s)}},_trimPacket:function(e){var t=this._globalOptions.maxMessageLength;if(e.message&&(e.message=d(e.message,t)),e.exception){var n=e.exception.values[0];n.value=d(n.value,t)}return e},_getHttpData:function(){if(this._hasDocument&&T.location&&T.location.href){var e={headers:{"User-Agent":navigator.userAgent}};return e.url=T.location.href,T.referrer&&(e.headers.Referer=T.referrer),e}},_send:function(e){var t=this._globalOptions,n={project:this._globalProject,logger:t.logger,platform:"javascript"},i=this._getHttpData();i&&(n.request=i),e.trimHeadFrames&&delete e.trimHeadFrames,e=h(n,e),e.tags=h(h({},this._globalContext.tags),e.tags),e.extra=h(h({},this._globalContext.extra),e.extra),e.extra["session:duration"]=r()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),l(e.tags)&&delete e.tags,this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),a(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!l(e)&&(a(t.shouldSendCallback)&&!t.shouldSendCallback(e)||this._sendProcessedPayload(e))},_getUuid:function(){return y()},_sendProcessedPayload:function(e,t){var n=this,r=this._globalOptions;if(this._lastEventId=e.event_id||(e.event_id=this._getUuid()),e=this._trimPacket(e),this._logDebug("debug","Raven about to send:",e),this.isSetup()){var i={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(i.sentry_secret=this._globalSecret);var o=e.exception&&e.exception.values[0];this.captureBreadcrumb({category:"sentry",message:o?(o.type?o.type+": ":"")+o.value:e.message,event_id:e.event_id,level:e.level||"error"});var a=this._globalEndpoint;(r.transport||this._makeRequest).call(this,{url:a,auth:i,data:e,options:r,onSuccess:function(){n._triggerEvent("success",{data:e,src:a}),t&&t()},onError:function(r){n._triggerEvent("failure",{data:e,src:a}),r=r||new Error("Raven send failed (no additional details provided)"),t&&t(r)}})}},_makeRequest:function(e){function t(){200===n.status?e.onSuccess&&e.onSuccess():e.onError&&e.onError(new Error("Sentry error code: "+n.status))}var n=new XMLHttpRequest,r="withCredentials"in n||"undefined"!=typeof XDomainRequest;if(r){var i=e.url;"withCredentials"in n?n.onreadystatechange=function(){4===n.readyState&&t()}:(n=new XDomainRequest,i=i.replace(/^https?:/,""),n.onload=t),n.open("POST",i+"?"+g(e.auth)),n.send(C(e.data))}},_logDebug:function(e){this._originalConsoleMethods[e]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[e],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(e,t){o(t)?delete this._globalContext[e]:this._globalContext[e]=h(this._globalContext[e]||{},t)}};var D=Object.prototype;"undefined"!=typeof __DEV__&&__DEV__&&(i.utils={isUndefined:o,isFunction:a,isString:s,isObject:u,isEmptyObject:l,isError:c,each:f,objectMerge:h,truncate:d,hasKey:p,joinRegExp:m,urlencode:g,uuid4:y,htmlTreeAsString:b,htmlElementAsString:_,parseUrl:v,fill:w}),i.prototype.setUser=i.prototype.setUserContext,i.prototype.setReleaseContext=i.prototype.setRelease,t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1,2:2,3:3,6:6}],5:[function(e,t,n){(function(n){"use strict";var r=e(4),i="undefined"!=typeof window?window:"undefined"!=typeof n?n:"undefined"!=typeof self?self:{},o=i.Raven,a=new r;a.noConflict=function(){return i.Raven=o,a},a.afterLoad(),t.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{4:4}],6:[function(e,t,n){(function(e){"use strict";function n(){return"undefined"==typeof document?"":document.location.href}var r={collectWindowErrors:!0,debug:!1},i="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},o=[].slice,a="?",s=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;r.report=function(){function e(e){f(),v.push(e)}function t(e){for(var t=v.length-1;t>=0;--t)v[t]===e&&v.splice(t,1)}function u(){h(),v=[]}function l(e,t){var n=null;if(!t||r.collectWindowErrors){for(var i in v)if(v.hasOwnProperty(i))try{v[i].apply(null,[e].concat(o.call(arguments,2)))}catch(a){n=a}if(n)throw n}}function c(e,t,i,o,u){var c=null;if(_)r.computeStackTrace.augmentStackTraceWithInitialElement(_,t,i,e),d();else if(u)c=r.computeStackTrace(u),l(c,!0);else{var f,h={url:t,line:i,column:o},p=void 0,g=e;if("[object String]"==={}.toString.call(e)){var f=e.match(s);f&&(p=f[1],g=f[2])}h.func=a,c={name:p,message:g,url:n(),stack:[h]},l(c,!0)}return!!m&&m.apply(this,arguments)}function f(){g||(m=i.onerror,i.onerror=c,g=!0)}function h(){g&&(i.onerror=m,g=!1,m=void 0)}function d(){var e=_,t=y;y=null,_=null,b=null,l.apply(null,[e,!1].concat(t))}function p(e,t){var n=o.call(arguments,1);if(_){if(b===e)return;d()}var i=r.computeStackTrace(e);if(_=i,b=e,y=n,setTimeout(function(){b===e&&d()},i.incomplete?2e3:0),t!==!1)throw e}var m,g,v=[],y=null,b=null,_=null;return p.subscribe=e,p.unsubscribe=t,p.uninstall=u,p}(),r.computeStackTrace=function(){function e(e){if("undefined"!=typeof e.stack&&e.stack){for(var t,r,i=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=e.stack.split("\n"),l=[],c=(/^(.*) is undefined$/.exec(e.message),0),f=u.length;c<f;++c){if(t=i.exec(u[c])){var h=t[2]&&t[2].indexOf("native")!==-1;r={url:h?null:t[2],func:t[1]||a,args:h?[t[2]]:[],line:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}else if(t=s.exec(u[c]))r={url:t[2],func:t[1]||a,args:[],line:+t[3],column:t[4]?+t[4]:null};else{if(!(t=o.exec(u[c])))continue;r={url:t[3],func:t[1]||a,args:t[2]?t[2].split(","):[],line:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}!r.func&&r.line&&(r.func=a),l.push(r)}return l.length?(l[0].column||"undefined"==typeof e.columnNumber||(l[0].column=e.columnNumber+1),{name:e.name,message:e.message,url:n(),stack:l}):null}}function t(e,t,n,r){var i={url:t,line:n};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func=a),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function i(e,s){for(var u,l,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,f=[],h={},d=!1,p=i.caller;p&&!d;p=p.caller)if(p!==o&&p!==r.report){if(l={url:null,func:a,line:null,column:null},p.name?l.func=p.name:(u=c.exec(p.toString()))&&(l.func=u[1]),"undefined"==typeof l.func)try{l.func=u.input.substring(0,u.input.indexOf("{"))}catch(m){}h[""+p]?d=!0:h[""+p]=!0,f.push(l)}s&&f.splice(0,s);var g={name:e.name,message:e.message,url:n(),stack:f};return t(g,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),g}function o(t,o){var a=null;o=null==o?0:+o;try{if(a=e(t))return a}catch(s){if(r.debug)throw s}try{if(a=i(t,o+1))return a}catch(s){if(r.debug)throw s}return{name:t.name,message:t.message,url:n()}}return o.augmentStackTraceWithInitialElement=t,o.computeStackTraceFromStackProp=e,o}(),t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[5])(5)}),function(e,t){var n=function(e,t){return e instanceof(t||Array)},r=document,i="getElementsByTagName",o="length",a="readyState",s="onreadystatechange",u=r[i]("script"),l=u[u[o]-1],c=l.innerHTML.replace(/^\s+|\s+$/g,"");if(!e.ljs){var f=l.src.match(/checkLoaded/)?1:0,h=r[i]("head")[0]||r.documentElement,d=function(e){var t={};return t.u=e.replace(/#(=)?([^#]*)?/g,function(e,n,r){return t[n?"f":"i"]=r,""}),t},p=function(e,t,n){var i,o=r.createElement(e);n&&(o[a]?o[s]=function(){"loaded"!==o[a]&&"complete"!==o[a]||(o[s]=null,n())}:o.onload=n);for(i in t)t[i]&&(o[i]=t[i]);h.appendChild(o)},m=function(e,t){if(this.aliases&&this.aliases[e]){var r=this.aliases[e].slice(0);return n(r)||(r=[r]),t&&r.push(t),this.load.apply(this,r)}if(n(e)){for(var i=e[o];i--;)this.load(e[i]);return t&&e.push(t),this.load.apply(this,e)}return e.match(/\.css\b/)?this.loadcss(e,t):this.loadjs(e,t)},g={},v={aliases:{},loadjs:function(e,n){var r=d(e);return e=r.u,g[e]===!0?(n&&n(),this):g[e]!==t?(n&&(g[e]=function(e,t){return function(){e&&e(),t&&t()}}(g[e],n)),this):(g[e]=function(t){return function(){g[e]=!0,t&&t()}}(n),n=function(){g[e]()},p("script",{type:"text/javascript",src:e,id:r.i,onerror:function(e){if(r.f){var t=e.currentTarget;t.parentNode.removeChild(t),p("script",{type:"text/javascript",src:r.f,id:r.i},n)}}},n),this)},loadcss:function(e,t){var n=d(e);return e=n.u,g[e]||p("link",{type:"text/css",rel:"stylesheet",href:e,id:n.i}),g[e]=!0,t&&t(),this},load:function(){var e=arguments,r=e[o];return 1===r&&n(e[0],Function)?(e[0](),this):(m.call(this,e[0],r<=1?t:function(){v.load.apply(v,[].slice.call(e,1))}),this)},addAliases:function(e){for(var t in e)this.aliases[t]=n(e[t])?e[t].slice(0):e[t];return this}};if(f){var y,b,_,w;for(y=0,b=u[o];y<b;y++)(w=u[y].getAttribute("src"))&&(g[w.replace(/#.*$/,"")]=!0);for(_=r[i]("link"),y=0,b=_[o];y<b;y++)("stylesheet"===_[y].rel||"text/css"===_[y].type)&&(g[_[y].getAttribute("href").replace(/#.*$/,"")]=!0)}e.ljs=v}l.src&&c&&p("script",{innerHTML:c})}(window),angular.module("infinite-scroll",[]).value("THROTTLE_MILLISECONDS",null).directive("infiniteScroll",["$rootScope","$window","$interval","THROTTLE_MILLISECONDS",function(e,t,n,r){return{scope:{infiniteScroll:"&",infiniteScrollContainer:"=",infiniteScrollDistance:"=",infiniteScrollDisabled:"=",infiniteScrollUseDocumentBottom:"=",infiniteScrollListenForEvent:"@"},link:function(i,o,a){var s,u,l,c,f,h,d,p,m,g,v,y,b,_,w,x,k,C,E;return E=angular.element(t),_=null,w=null,l=null,c=null,v=!0,C=!1,k=null,u=!1,g=function(e){return e=e[0]||e,isNaN(e.offsetHeight)?e.document.documentElement.clientHeight:e.offsetHeight},y=function(e){if(e[0].getBoundingClientRect&&!e.css("none"))return e[0].getBoundingClientRect().top+b(e)},b=function(e){return e=e[0]||e,isNaN(window.pageYOffset)?e.document.documentElement.scrollTop:e.ownerDocument.defaultView.pageYOffset},m=function(){var t,r,a,s,f;return c===E?(t=g(c)+b(c[0].document.documentElement),a=y(o)+g(o)):(t=g(c),r=0,void 0!==y(c)&&(r=y(c)),a=y(o)-r+g(o)),C&&(a=g((o[0].ownerDocument||o[0].document).documentElement)),s=a-t,f=s<=g(c)*_+1,f?(l=!0,w?i.$$phase||e.$$phase?i.infiniteScroll():i.$apply(i.infiniteScroll):void 0):(u&&n.cancel(u),l=!1)},x=function(e,t){var r,i,o;return o=null,i=0,r=function(){return i=(new Date).getTime(),n.cancel(o),o=null,e.call()},function(){var a,s;return a=(new Date).getTime(),s=t-(a-i),s<=0?(n.cancel(o),o=null,i=a,e.call()):o?void 0:o=n(r,s,1)}},null!=r&&(m=x(m,r)),i.$on("$destroy",function(){if(c.unbind("scroll",m),null!=k&&(k(),k=null),u)return n.cancel(u)}),d=function(e){return _=parseFloat(e)||0},i.$watch("infiniteScrollDistance",d),d(i.infiniteScrollDistance),h=function(e){if(w=!e,w&&l)return l=!1,m()},i.$watch("infiniteScrollDisabled",h),h(i.infiniteScrollDisabled),p=function(e){return C=e},i.$watch("infiniteScrollUseDocumentBottom",p),p(i.infiniteScrollUseDocumentBottom),s=function(e){if(null!=c&&c.unbind("scroll",m),c=e,null!=e)return c.bind("scroll",m)},s(E),i.infiniteScrollListenForEvent&&(k=e.$on(i.infiniteScrollListenForEvent,m)),f=function(e){if(null!=e&&0!==e.length){if(e.nodeType&&1===e.nodeType?e=angular.element(e):"function"==typeof e.append?e=angular.element(e[e.length-1]):"string"==typeof e&&(e=angular.element(document.querySelector(e))),null!=e)return s(e);throw new Error("invalid infinite-scroll-container attribute.")}},i.$watch("infiniteScrollContainer",f),f(i.infiniteScrollContainer||[]),null!=a.infiniteScrollParent&&s(angular.element(o.parent())),null!=a.infiniteScrollImmediateCheck&&(v=i.$eval(a.infiniteScrollImmediateCheck)),u=n(function(){return v&&m(),n.cancel(u)})}}}]),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="infinite-scroll"),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Immutable=t()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:T(e)}function n(e){return a(e)?e:D(e)}function r(e){return s(e)?e:N(e)}function i(e){return o(e)&&!u(e)?e:F(e)}function o(e){return!(!e||!e[ln])}function a(e){return!(!e||!e[cn])}function s(e){return!(!e||!e[fn])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[hn])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function h(){}function d(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function p(e){return void 0===e.size&&(e.size=e.__iterate(g)),e.size}function m(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?p(e)+t:t}function g(){return!0}function v(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function y(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function x(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function k(){return{value:void 0,done:!0}}function C(e){return!!S(e)}function E(e){return e&&"function"==typeof e.next}function $(e){var t=S(e);return t&&t.call(e)}function S(e){var t=e&&(kn&&e[kn]||e[Cn]);if("function"==typeof t)return t}function A(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?R():o(e)?e.toSeq():z(e)}function D(e){return null===e||void 0===e?R().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():I(e)}function N(e){return null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():q(e)}function F(e){return(null===e||void 0===e?R():o(e)?a(e)?e.entrySeq():e:q(e)).toSetSeq()}function M(e){this._array=e,this.size=e.length}function O(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function P(e){this._iterator=e,this._iteratorCache=[]}function L(e){return!(!e||!e[$n])}function R(){return Sn||(Sn=new M([]))}function I(e){var t=Array.isArray(e)?new M(e).fromEntrySeq():E(e)?new P(e).fromEntrySeq():C(e)?new j(e).fromEntrySeq():"object"==typeof e?new O(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function q(e){var t=B(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function z(e){var t=B(e)||"object"==typeof e&&new O(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function B(e){return A(e)?new M(e):E(e)?new P(e):C(e)?new j(e):void 0}function H(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(t(s[1],r?s[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?k():x(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function V(e,t){return t?W(t,e,"",{"":e}):Y(e)}function W(e,t,n,r){return Array.isArray(t)?e.call(r,n,N(t).map(function(n,r){return W(e,n,r,t)})):K(t)?e.call(r,n,D(t).map(function(n,r){return W(e,n,r,t)})):t}function Y(e){return Array.isArray(e)?N(e).map(Y).toList():K(e)?D(e).map(Y).toMap():e}function K(e){return e&&(e.constructor===Object||void 0===e.constructor)}function G(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Z(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&G(i[1],e)&&(n||G(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var f=!0,h=t.__iterate(function(t,r){if(n?!e.has(t):i?!G(t,e.get(r,vn)):!G(e.get(r,vn),t))return f=!1,!1});return f&&e.size===h}function X(e,t){if(!(this instanceof X))return new X(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(An)return An;An=this}}function J(e,t){if(!e)throw new Error(t)}function Q(e,t,n){if(!(this instanceof Q))return new Q(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Tn)return Tn;Tn=this}}function ee(){throw TypeError("Abstract")}function te(){}function ne(){}function re(){}function ie(e){return e>>>1&1073741824|3221225471&e}function oe(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return ie(n)}if("string"===t)return e.length>Ln?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=qn[e];return void 0===t&&(t=se(e),In===Rn&&(In=0,qn={}),In++,qn[e]=t),t}function se(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ie(t)}function ue(e){var t;if(On&&(t=Dn.get(e),void 0!==t))return t;if(t=e[Pn],void 0!==t)return t;if(!Mn){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Pn],void 0!==t)return t;if(t=le(e),void 0!==t)return t}if(t=++jn,1073741824&jn&&(jn=0),On)Dn.set(e,t);else{if(void 0!==Fn&&Fn(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Mn)Object.defineProperty(e,Pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Pn]=t}}return t}function le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){J(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?xe():he(e)&&!l(e)?e:xe().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function he(e){return!(!e||!e[zn])}function de(e,t){this.ownerID=e,this.entries=t}function pe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ye(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&_e(e._root)}function be(e,t){return x(e,t[0],t[1])}function _e(e,t){return{node:e,index:0,__prev:t}}function we(e,t,n,r){var i=Object.create(Bn);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function xe(){return Hn||(Hn=we(0))}function ke(e,t,n){var r,i;if(e._root){var o=c(yn),a=c(bn);if(r=Ce(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===vn?-1:1:0)}else{if(n===vn)return e;i=1,r=new de(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?we(i,r):xe()}function Ce(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===vn?e:(f(s),f(a),new ve(t,r,[i,o]))}function Ee(e){return e.constructor===ve||e.constructor===ge}function $e(e,t,n,r,i){if(e.keyHash===r)return new ge(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&gn,s=(0===n?r:r>>>n)&gn,u=a===s?[$e(e,t,n+pn,r,i)]:(o=new ve(t,r,i),a<s?[e,o]:[o,e]);return new pe(t,1<<a|1<<s,u)}function Se(e,t,n,r){e||(e=new h);for(var i=new ve(e,oe(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}function Ae(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=u,a[o++]=c)}return new pe(e,i,a)}function Te(e,t,n,r,i){for(var o=0,a=new Array(mn),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new me(e,o+1,a)}function De(e,t,r){for(var i=[],a=0;a<r.length;a++){var s=r[a],u=n(s);o(s)||(u=u.map(function(e){return V(e)})),i.push(u)}return Me(e,t,i)}function Ne(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):G(e,t)?e:t}function Fe(e){return function(t,n,r){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return G(t,i)?t:i}}function Me(e,t,n){return n=n.filter(function(e){return 0!==e.size}),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,vn,function(e){return e===vn?n:t(e,n,r)})}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)}):e.constructor(n[0])}function Oe(e,t,n,r){var i=e===vn,o=t.next();if(o.done){var a=i?n:e,s=r(a);return s===a?e:s}J(i||e&&e.set,"invalid keyPath");var u=o.value,l=i?vn:e.get(u,vn),c=Oe(l,t,n,r);return c===l?e:c===vn?e.remove(u):(i?xe():e).set(u,c)}function je(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function Pe(e,t,n,r){var i=r?e:d(e);return i[t]=n,i}function Le(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}function Re(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}function Ie(e){var t=Ue();if(null===e||void 0===e)return t;if(qe(e))return e;var n=r(e),i=n.size;return 0===i?t:(ce(i),i>0&&i<mn?He(0,i,pn,null,new ze(n.toArray())):t.withMutations(function(e){e.setSize(i),n.forEach(function(t,n){return e.set(n,t)})}))}function qe(e){return!(!e||!e[Yn])}function ze(e,t){this.array=e,this.ownerID=t}function Be(e,t){function n(e,t,n){return 0===t?r(e,n):i(e,t,n)}function r(e,n){var r=n===s?u&&u.array:e&&e.array,i=n>o?0:o-n,l=a-n;return l>mn&&(l=mn),function(){if(i===l)return Zn;var e=t?--l:i++;return r&&r[e]}}function i(e,r,i){var s,u=e&&e.array,l=i>o?0:o-i>>r,c=(a-i>>r)+1;return c>mn&&(c=mn),function(){for(;;){if(s){var e=s();if(e!==Zn)return e;s=null}if(l===c)return Zn;var o=t?--c:l++;s=n(u&&u[o],r-pn,i+(o<<r))}}}var o=e._origin,a=e._capacity,s=Xe(a),u=e._tail;return n(e._root,e._level,0)}function He(e,t,n,r,i,o,a){var s=Object.create(Kn);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function Ue(){return Gn||(Gn=He(0,0,pn))}function Ve(e,t,n){if(t=m(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Ge(e,t).set(0,n):Ge(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(bn);return t>=Xe(e._capacity)?r=We(r,e.__ownerID,0,t,n,o):i=We(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):He(e._origin,e._capacity,e._level,i,r):e}function We(e,t,n,r,i,o){var a=r>>>n&gn,s=e&&a<e.array.length;if(!s&&void 0===i)return e;var u;if(n>0){var l=e&&e.array[a],c=We(l,t,n-pn,r,i,o);return c===l?e:(u=Ye(e,t),u.array[a]=c,u)}return s&&e.array[a]===i?e:(f(o),u=Ye(e,t),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Ye(e,t){return t&&e&&t===e.ownerID?e:new ze(e?e.array.slice():[],t)}function Ke(e,t){if(t>=Xe(e._capacity))return e._tail;if(t<1<<e._level+pn){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&gn],r-=pn;return n}}function Ge(e,t,n){void 0!==t&&(t=0|t),void 0!==n&&(n=0|n);var r=e.__ownerID||new h,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new ze(l&&l.array.length?[void 0,l]:[],r),u+=pn,c+=1<<u;c&&(a+=c,i+=c,s+=c,o+=c);for(var f=Xe(o),d=Xe(s);d>=1<<u+pn;)l=new ze(l&&l.array.length?[l]:[],r),u+=pn;var p=e._tail,m=d<f?Ke(e,s-1):d>f?new ze([],r):p;
|
||
if(p&&d>f&&a<o&&p.array.length){l=Ye(l,r);for(var g=l,v=u;v>pn;v-=pn){var y=f>>>v&gn;g=g.array[y]=Ye(g.array[y],r)}g.array[f>>>pn&gn]=p}if(s<o&&(m=m&&m.removeAfter(r,0,s)),a>=d)a-=d,s-=d,u=pn,l=null,m=m&&m.removeBefore(r,0,a);else if(a>i||d<f){for(c=0;l;){var b=a>>>u&gn;if(b!==d>>>u&gn)break;b&&(c+=(1<<u)*b),u-=pn,l=l.array[b]}l&&a>i&&(l=l.removeBefore(r,u,a-c)),l&&d<f&&(l=l.removeAfter(r,u,d-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=u,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):He(a,s,u,l,m)}function Ze(e,t,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(e){return V(e)})),i.push(l)}return a>e.size&&(e=e.setSize(a)),Me(e,t,i)}function Xe(e){return e<mn?0:e-1>>>pn<<pn}function Je(e){return null===e||void 0===e?tt():Qe(e)?e:tt().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function Qe(e){return he(e)&&l(e)}function et(e,t,n,r){var i=Object.create(Je.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function tt(){return Xn||(Xn=et(xe(),Ue()))}function nt(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),u=void 0!==s;if(n===vn){if(!u)return e;a.size>=mn&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):et(r,i)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=At(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Tt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===xn){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===wn?_n:wn,n)},t}function ut(e,t,n){var r=At(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,vn);return o===vn?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return r(t.call(n,e,i,a),i,o)!==!1},i)},r.__iteratorUncached=function(r,i){var o=e.__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,t.call(n,a[1],s,e),i)})},r}function lt(e,t){var n=At(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Tt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var i=At(e);return r&&(i.has=function(r){var i=e.get(r,vn);return i!==vn&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,vn);return o!==vn&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__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(t.call(n,c,l,e))return x(i,r?l:s++,c,o)}})},i}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function ht(e,t,n){var r=a(e),i=(l(e)?Je():fe()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return e=e||[],e.push(r?[a,o]:o),e})});var o=St(e);return i.map(function(t){return Ct(e,o(t))})}function dt(e,t,n,r){var i=e.size;if(void 0!==t&&(t=0|t),void 0!==n&&(n=n===1/0?i:0|n),v(t,n,i))return e;var o=y(t,i),a=b(n,i);if(o!==o||a!==a)return dt(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var l=At(e);return l.size=0===s?s:e.size&&s||void 0,!r&&L(e)&&s>=0&&(l.get=function(t,n){return t=m(this,t),t>=0&&t<s?e.get(t+o,n):n}),l.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate(function(e,n){if(!u||!(u=a++<o))return l++,t(e,r?n:l-1,i)!==!1&&l!==s}),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var i=0!==s&&e.__iterator(t,n),a=0,u=0;return new w(function(){for(;a++<o;)i.next();if(++u>s)return k();var e=i.next();return r||t===wn?e:t===_n?x(t,u-1,void 0,e):x(t,u-1,e.value[1],e)})},l}function pt(e,t,n){var r=At(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(xn,i),s=!0;return new w(function(){if(!s)return k();var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===xn?e:x(r,u,l,e):(s=!1,k())})},r}function mt(e,t,n,r){var i=At(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(xn,o),u=!0,l=0;return new w(function(){var e,o,c;do{if(e=s.next(),e.done)return r||i===wn?e:i===_n?x(i,l++,void 0,e):x(i,l++,e.value[1],e);var f=e.value;o=f[0],c=f[1],u&&(u=t.call(n,c,o,a))}while(u);return i===xn?e:x(i,o,c,e)})},i}function gt(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?I(e):q(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new M(i);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function vt(e,t,n){var r=At(e);return r.__iterateUncached=function(r,i){function a(e,l){var c=this;e.__iterate(function(e,i){return(!t||l<t)&&o(e)?a(e,l+1):r(e,n?i:s++,c)===!1&&(u=!0),!u},i)}var s=0,u=!1;return a(e,0),s},r.__iteratorUncached=function(r,i){var a=e.__iterator(r,i),s=[],u=0;return new w(function(){for(;a;){var e=a.next();if(e.done===!1){var l=e.value;if(r===xn&&(l=l[1]),t&&!(s.length<t)||!o(l))return n?e:x(r,u++,l,e);s.push(a),a=l.__iterator(r,i)}else a=s.pop()}return k()})},r}function yt(e,t,n){var r=St(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}function bt(e,t){var n=At(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e,r){return(!o||n(t,o++,i)!==!1)&&n(e,o++,i)!==!1},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(wn,r),a=0;return new w(function(){return(!i||a%2)&&(i=o.next(),i.done)?i:a%2?x(n,a++,t):x(n,a++,i.value,i)})},n}function _t(e,t,n){t||(t=Dt);var r=a(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?D(o):s(e)?N(o):F(o)}function wt(e,t,n){if(t||(t=Dt),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return xt(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return xt(t,e,n)?n:e})}function xt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function kt(e,n,r){var i=At(e);return i.size=new M(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(wn,t),i=0;!(n=r.next()).done&&e(n.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),$(i?e.reverse():e)}),a=0,s=!1;return new w(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?k():x(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function Ct(e,t){return L(e)?t:e.constructor(t)}function Et(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function $t(e){return ce(e.size),p(e)}function St(e){return a(e)?n:s(e)?r:i}function At(e){return Object.create((a(e)?D:s(e)?N:F).prototype)}function Tt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function Dt(e,t){return e>t?1:e<t?-1:0}function Nt(e){var n=$(e);if(!n){if(!A(e))throw new TypeError("Expected iterable or array-like: "+e);n=$(t(e))}return n}function Ft(e,t){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(e);jt(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=fe(o)},i=r.prototype=Object.create(Jn);return i.constructor=r,r}function Mt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Ot(e){return e._name||e.constructor.name||"Record"}function jt(e,t){try{t.forEach(Pt.bind(void 0,e))}catch(n){}}function Pt(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){J(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Lt(e){return null===e||void 0===e?zt():Rt(e)&&!l(e)?e:zt().withMutations(function(t){var n=i(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Rt(e){return!(!e||!e[Qn])}function It(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function qt(e,t){var n=Object.create(er);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function zt(){return tr||(tr=qt(xe()))}function Bt(e){return null===e||void 0===e?Vt():Ht(e)?e:Vt().withMutations(function(t){var n=i(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Ht(e){return Rt(e)&&l(e)}function Ut(e,t){var n=Object.create(nr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vt(){return rr||(rr=Ut(tt()))}function Wt(e){return null===e||void 0===e?Gt():Yt(e)?e:Gt().unshiftAll(e)}function Yt(e){return!(!e||!e[ir])}function Kt(e,t,n,r){var i=Object.create(or);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Gt(){return ar||(ar=Kt(0))}function Zt(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Xt(e,t){return t}function Jt(e,t){return[t,e]}function Qt(e){return function(){return!e.apply(this,arguments)}}function en(e){return function(){return-e.apply(this,arguments)}}function tn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function nn(){return d(arguments)}function rn(e,t){return e<t?1:e>t?-1:0}function on(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+sn(oe(e),oe(t))|0}:function(e,t){r=r+sn(oe(e),oe(t))|0}:t?function(e){r=31*r+oe(e)|0}:function(e){r=r+oe(e)|0});return an(i,r)}function an(e,t){return t=Nn(t,3432918353),t=Nn(t<<15|t>>>-15,461845907),t=Nn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Nn(t^t>>>16,2246822507),t=Nn(t^t>>>13,3266489909),t=ie(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=i;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",hn="@@__IMMUTABLE_ORDERED__@@",dn="delete",pn=5,mn=1<<pn,gn=mn-1,vn={},yn={value:!1},bn={value:!1},_n=0,wn=1,xn=2,kn="function"==typeof Symbol&&Symbol.iterator,Cn="@@iterator",En=kn||Cn;w.prototype.toString=function(){return"[Iterator]"},w.KEYS=_n,w.VALUES=wn,w.ENTRIES=xn,w.prototype.inspect=w.prototype.toSource=function(){return this.toString()},w.prototype[En]=function(){return this},e(T,t),T.of=function(){return T(arguments)},T.prototype.toSeq=function(){return this},T.prototype.toString=function(){return this.__toString("Seq {","}")},T.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},T.prototype.__iterate=function(e,t){return H(this,e,t,!0)},T.prototype.__iterator=function(e,t){return U(this,e,t,!0)},e(D,T),D.prototype.toKeyedSeq=function(){return this},e(N,T),N.of=function(){return N(arguments)},N.prototype.toIndexedSeq=function(){return this},N.prototype.toString=function(){return this.__toString("Seq [","]")},N.prototype.__iterate=function(e,t){return H(this,e,t,!1)},N.prototype.__iterator=function(e,t){return U(this,e,t,!1)},e(F,T),F.of=function(){return F(arguments)},F.prototype.toSetSeq=function(){return this},T.isSeq=L,T.Keyed=D,T.Set=F,T.Indexed=N;var $n="@@__IMMUTABLE_SEQ__@@";T.prototype[$n]=!0,e(M,N),M.prototype.get=function(e,t){return this.has(e)?this._array[m(this,e)]:t},M.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(e(n[t?r-i:i],i,this)===!1)return i+1;return i},M.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new w(function(){return i>r?k():x(e,i,n[t?r-i++:i++])})},e(O,D),O.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},O.prototype.has=function(e){return this._object.hasOwnProperty(e)},O.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(e(n[a],a,this)===!1)return o+1}return o},O.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?k():x(e,a,n[a])})},O.prototype[hn]=!0,e(j,N),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=$(n),i=0;if(E(r))for(var o;!(o=r.next()).done&&e(o.value,i++,this)!==!1;);return i},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=$(n);if(!E(r))return new w(k);var i=0;return new w(function(){var t=r.next();return t.done?t:x(e,i++,t.value)})},e(P,N),P.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(e(r[i],i++,this)===!1)return i;for(var o;!(o=n.next()).done;){var a=o.value;if(r[i]=a,e(a,i++,this)===!1)break}return i},P.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new w(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return x(e,i,r[i++])})};var Sn;e(X,N),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(e,t){return this.has(e)?this._value:t},X.prototype.includes=function(e){return G(this._value,e)},X.prototype.slice=function(e,t){var n=this.size;return v(e,t,n)?this:new X(this._value,b(t,n)-y(e,n))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(e){return G(this._value,e)?0:-1},X.prototype.lastIndexOf=function(e){return G(this._value,e)?this.size:-1},X.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(e(this._value,n,this)===!1)return n+1;return n},X.prototype.__iterator=function(e,t){var n=this,r=0;return new w(function(){return r<n.size?x(e,r++,n._value):k()})},X.prototype.equals=function(e){return e instanceof X?G(this._value,e._value):Z(e)};var An;e(Q,N),Q.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Q.prototype.get=function(e,t){return this.has(e)?this._start+m(this,e)*this._step:t},Q.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Q.prototype.slice=function(e,t){return v(e,t,this.size)?this:(e=y(e,this.size),t=b(t,this.size),t<=e?new Q(0,0):new Q(this.get(e,this._end),this.get(t,this._end),this._step))},Q.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Q.prototype.lastIndexOf=function(e){return this.indexOf(e)},Q.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(e(i,o,this)===!1)return o+1;i+=t?-r:r}return o},Q.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new w(function(){var a=i;return i+=t?-r:r,o>n?k():x(e,o++,a)})},Q.prototype.equals=function(e){return e instanceof Q?this._start===e._start&&this._end===e._end&&this._step===e._step:Z(this,e)};var Tn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Dn,Nn="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(e,t){e=0|e,t=0|t;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Fn=Object.isExtensible,Mn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),On="function"==typeof WeakMap;On&&(Dn=new WeakMap);var jn=0,Pn="__immutablehash__";"function"==typeof Symbol&&(Pn=Symbol(Pn));var Ln=16,Rn=255,In=0,qn={};e(fe,te),fe.of=function(){var e=un.call(arguments,0);return xe().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},fe.prototype.set=function(e,t){return ke(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,vn,function(){return t})},fe.prototype.remove=function(e){return ke(this,e,vn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return vn})},fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Oe(this,Nt(e),t,n);return r===vn?void 0:r},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):xe()},fe.prototype.merge=function(){return De(this,void 0,arguments)},fe.prototype.mergeWith=function(e){var t=un.call(arguments,1);return De(this,e,t)},fe.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,xe(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return De(this,Ne,arguments)},fe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return De(this,Fe(e),t)},fe.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,xe(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Je(_t(this,e))},fe.prototype.sortBy=function(e,t){return Je(_t(this,t,e))},fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new h)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(e,t){return new ye(this,e,t)},fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?we(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=he;var zn="@@__IMMUTABLE_MAP__@@",Bn=fe.prototype;Bn[zn]=!0,Bn[dn]=Bn.remove,Bn.removeIn=Bn.deleteIn,de.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(G(n,i[o][0]))return i[o][1];return r},de.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===vn,u=this.entries,l=0,c=u.length;l<c&&!G(r,u[l][0]);l++);var h=l<c;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>=Un)return Se(e,u,r,i);var p=e&&e===this.ownerID,m=p?u:d(u);return h?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,i]:m.push([r,i]),p?(this.entries=m,this):new de(e,m)}},pe.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=1<<((0===e?t:t>>>e)&gn),o=this.bitmap;return 0===(o&i)?r:this.nodes[je(o&i-1)].get(e+pn,t,n,r)},pe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&gn,u=1<<s,l=this.bitmap,c=0!==(l&u);if(!c&&i===vn)return this;var f=je(l&u-1),h=this.nodes,d=c?h[f]:void 0,p=Ce(d,e,t+pn,n,r,i,o,a);if(p===d)return this;if(!c&&p&&h.length>=Vn)return Te(e,h,l,s,p);if(c&&!p&&2===h.length&&Ee(h[1^f]))return h[1^f];if(c&&p&&1===h.length&&Ee(p))return p;var m=e&&e===this.ownerID,g=c?p?l:l^u:l|u,v=c?p?Pe(h,f,p,m):Re(h,f,m):Le(h,f,p,m);return m?(this.bitmap=g,this.nodes=v,this):new pe(e,g,v)},me.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=(0===e?t:t>>>e)&gn,o=this.nodes[i];return o?o.get(e+pn,t,n,r):r},me.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&gn,u=i===vn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=Ce(c,e,t+pn,n,r,i,o,a);if(f===c)return this;var h=this.count;if(c){if(!f&&(h--,h<Wn))return Ae(e,l,h,s)}else h++;var d=e&&e===this.ownerID,p=Pe(l,s,f,d);return d?(this.count=h,this.nodes=p,this):new me(e,h,p)},ge.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(G(n,i[o][0]))return i[o][1];return r},ge.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=i===vn;if(n!==this.keyHash)return s?this:(f(a),f(o),$e(this,e,t,n,[r,i]));for(var u=this.entries,l=0,c=u.length;l<c&&!G(r,u[l][0]);l++);var h=l<c;if(h?u[l][1]===i:s)return this;if(f(a),(s||!h)&&f(o),s&&2===c)return new ve(e,this.keyHash,u[1^l]);var p=e&&e===this.ownerID,m=p?u:d(u);return h?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,i]:m.push([r,i]),p?(this.entries=m,this):new ge(e,this.keyHash,m)},ve.prototype.get=function(e,t,n,r){return G(n,this.entry[0])?this.entry[1]:r},ve.prototype.update=function(e,t,n,r,i,o,a){var s=i===vn,u=G(r,this.entry[0]);return(u?i===this.entry[1]:s)?this:(f(a),s?void f(o):u?e&&e===this.ownerID?(this.entry[1]=i,this):new ve(e,this.keyHash,[r,i]):(f(o),$e(this,e,t,oe(r),[r,i])))},de.prototype.iterate=ge.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},pe.prototype.iterate=me.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&o.iterate(e,t)===!1)return!1}},ve.prototype.iterate=function(e,t){return e(this.entry)},e(ye,w),ye.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return be(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,i<=n)return be(e,r.entries[this._reverse?n-i:i])}else if(n=r.nodes.length-1,i<=n){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return be(e,o.entry);t=this._stack=_e(o,t)}continue}t=this._stack=this._stack.__prev}return k()};var Hn,Un=mn/4,Vn=mn/2,Wn=mn/4;e(Ie,ne),Ie.of=function(){return this(arguments)},Ie.prototype.toString=function(){return this.__toString("List [","]")},Ie.prototype.get=function(e,t){if(e=m(this,e),e>=0&&e<this.size){e+=this._origin;var n=Ke(this,e);return n&&n.array[e&gn]}return t},Ie.prototype.set=function(e,t){return Ve(this,e,t)},Ie.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ie.prototype.insert=function(e,t){return this.splice(e,0,t)},Ie.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=pn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ue()},Ie.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ge(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Ie.prototype.pop=function(){return Ge(this,0,-1)},Ie.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Ge(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Ie.prototype.shift=function(){return Ge(this,1)},Ie.prototype.merge=function(){return Ze(this,void 0,arguments)},Ie.prototype.mergeWith=function(e){var t=un.call(arguments,1);return Ze(this,e,t)},Ie.prototype.mergeDeep=function(){return Ze(this,Ne,arguments)},Ie.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Ze(this,Fe(e),t)},Ie.prototype.setSize=function(e){return Ge(this,0,e)},Ie.prototype.slice=function(e,t){var n=this.size;return v(e,t,n)?this:Ge(this,y(e,n),b(t,n))},Ie.prototype.__iterator=function(e,t){var n=0,r=Be(this,t);return new w(function(){var t=r();return t===Zn?k():x(e,n++,t)})},Ie.prototype.__iterate=function(e,t){for(var n,r=0,i=Be(this,t);(n=i())!==Zn&&e(n,r++,this)!==!1;);return r},Ie.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?He(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Ie.isList=qe;var Yn="@@__IMMUTABLE_LIST__@@",Kn=Ie.prototype;Kn[Yn]=!0,Kn[dn]=Kn.remove,Kn.setIn=Bn.setIn,Kn.deleteIn=Kn.removeIn=Bn.removeIn,Kn.update=Bn.update,Kn.updateIn=Bn.updateIn,Kn.mergeIn=Bn.mergeIn,Kn.mergeDeepIn=Bn.mergeDeepIn,Kn.withMutations=Bn.withMutations,Kn.asMutable=Bn.asMutable,Kn.asImmutable=Bn.asImmutable,Kn.wasAltered=Bn.wasAltered,ze.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&gn;if(r>=this.array.length)return new ze([],e);var i,o=0===r;if(t>0){var a=this.array[r];if(i=a&&a.removeBefore(e,t-pn,n),i===a&&o)return this}if(o&&!i)return this;var s=Ye(this,e);if(!o)for(var u=0;u<r;u++)s.array[u]=void 0;return i&&(s.array[r]=i),s},ze.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r=n-1>>>t&gn;if(r>=this.array.length)return this;var i;if(t>0){var o=this.array[r];if(i=o&&o.removeAfter(e,t-pn,n),i===o&&r===this.array.length-1)return this}var a=Ye(this,e);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Gn,Zn={};e(Je,fe),Je.of=function(){return this(arguments)},Je.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Je.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Je.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Je.prototype.set=function(e,t){return nt(this,e,t)},Je.prototype.remove=function(e){return nt(this,e,vn)},Je.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Je.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Je.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Je.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Je.isOrderedMap=Qe,Je.prototype[hn]=!0,Je.prototype[dn]=Je.prototype.remove;var Xn;e(rt,D),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=lt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?$t(this):0,function(i){return e(i,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(wn,t),r=t?$t(this):0;return new w(function(){var i=n.next();return i.done?i:x(e,t?--r:r++,i.value,i)})},rt.prototype[hn]=!0,e(it,N),it.prototype.includes=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(wn,t),r=0;return new w(function(){var t=n.next();return t.done?t:x(e,r++,t.value,t)})},e(ot,F),ot.prototype.has=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(wn,t);return new w(function(){var t=n.next();return t.done?t:x(e,t.value,t.value,t)})},e(at,D),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Et(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(wn,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Et(r);var i=o(r);return x(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},it.prototype.cacheResult=rt.prototype.cacheResult=ot.prototype.cacheResult=at.prototype.cacheResult=Tt,e(Ft,te),Ft.prototype.toString=function(){return this.__toString(Ot(this)+" {","}")},Ft.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Ft.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Ft.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Mt(this,xe()))},Ft.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Ot(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:Mt(this,r)},Ft.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Mt(this,t)},Ft.prototype.wasAltered=function(){return this._map.wasAltered()},Ft.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Ft.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Ft.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Mt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Jn=Ft.prototype;Jn[dn]=Jn.remove,Jn.deleteIn=Jn.removeIn=Bn.removeIn,Jn.merge=Bn.merge,Jn.mergeWith=Bn.mergeWith,Jn.mergeIn=Bn.mergeIn,Jn.mergeDeep=Bn.mergeDeep,Jn.mergeDeepWith=Bn.mergeDeepWith,Jn.mergeDeepIn=Bn.mergeDeepIn,Jn.setIn=Bn.setIn,Jn.update=Bn.update,Jn.updateIn=Bn.updateIn,Jn.withMutations=Bn.withMutations,Jn.asMutable=Bn.asMutable,Jn.asImmutable=Bn.asImmutable,e(Lt,re),Lt.of=function(){return this(arguments)},Lt.fromKeys=function(e){return this(n(e).keySeq())},Lt.prototype.toString=function(){return this.__toString("Set {","}")},Lt.prototype.has=function(e){return this._map.has(e)},Lt.prototype.add=function(e){return It(this,this._map.set(e,!0))},Lt.prototype.remove=function(e){return It(this,this._map.remove(e));
|
||
},Lt.prototype.clear=function(){return It(this,this._map.clear())},Lt.prototype.union=function(){var e=un.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)i(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},Lt.prototype.intersect=function(){var e=un.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return i(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.every(function(e){return e.includes(t)})||n.remove(t)})})},Lt.prototype.subtract=function(){var e=un.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return i(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.some(function(e){return e.includes(t)})&&n.remove(t)})})},Lt.prototype.merge=function(){return this.union.apply(this,arguments)},Lt.prototype.mergeWith=function(e){var t=un.call(arguments,1);return this.union.apply(this,t)},Lt.prototype.sort=function(e){return Bt(_t(this,e))},Lt.prototype.sortBy=function(e,t){return Bt(_t(this,t,e))},Lt.prototype.wasAltered=function(){return this._map.wasAltered()},Lt.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},Lt.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Lt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Lt.isSet=Rt;var Qn="@@__IMMUTABLE_SET__@@",er=Lt.prototype;er[Qn]=!0,er[dn]=er.remove,er.mergeDeep=er.merge,er.mergeDeepWith=er.mergeWith,er.withMutations=Bn.withMutations,er.asMutable=Bn.asMutable,er.asImmutable=Bn.asImmutable,er.__empty=zt,er.__make=qt;var tr;e(Bt,Lt),Bt.of=function(){return this(arguments)},Bt.fromKeys=function(e){return this(n(e).keySeq())},Bt.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Bt.isOrderedSet=Ht;var nr=Bt.prototype;nr[hn]=!0,nr.__empty=Vt,nr.__make=Ut;var rr;e(Wt,ne),Wt.of=function(){return this(arguments)},Wt.prototype.toString=function(){return this.__toString("Stack [","]")},Wt.prototype.get=function(e,t){var n=this._head;for(e=m(this,e);n&&e--;)n=n.next;return n?n.value:t},Wt.prototype.peek=function(){return this._head&&this._head.value},Wt.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kt(e,t)},Wt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kt(t,n)},Wt.prototype.pop=function(){return this.slice(1)},Wt.prototype.unshift=function(){return this.push.apply(this,arguments)},Wt.prototype.unshiftAll=function(e){return this.pushAll(e)},Wt.prototype.shift=function(){return this.pop.apply(this,arguments)},Wt.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):Gt()},Wt.prototype.slice=function(e,t){if(v(e,t,this.size))return this;var n=y(e,this.size),r=b(t,this.size);if(r!==this.size)return ne.prototype.slice.call(this,e,t);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):Kt(i,o)},Wt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Wt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},Wt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,x(e,n++,t)}return k()})},Wt.isStack=Yt;var ir="@@__IMMUTABLE_STACK__@@",or=Wt.prototype;or[ir]=!0,or.withMutations=Bn.withMutations,or.asMutable=Bn.asMutable,or.asImmutable=Bn.asImmutable,or.wasAltered=Bn.wasAltered;var ar;t.Iterator=w,Zt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new it(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,(!0))},toMap:function(){return fe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Je(this.toKeyedSeq())},toOrderedSet:function(){return Bt(a(this)?this.valueSeq():this)},toSet:function(){return Lt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ot(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Wt(a(this)?this.valueSeq():this)},toList:function(){return Ie(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=un.call(arguments,0);return Ct(this,gt(this,e))},includes:function(e){return this.some(function(t){return G(t,e)})},entries:function(){return this.__iterator(xn)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return Ct(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(_n)},map:function(e,t){return Ct(this,ut(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ct(this,lt(this,!0))},slice:function(e,t){return Ct(this,dt(this,e,t,!0))},some:function(e,t){return!this.every(Qt(e),t)},sort:function(e){return Ct(this,_t(this,e))},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(e,t){return p(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return ft(this,e,t)},equals:function(e){return Z(this,e)},entrySeq:function(){var e=this;if(e._cache)return new M(e._cache);var t=e.toSeq().map(Jt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Qt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(g)},flatMap:function(e,t){return Ct(this,yt(this,e,t))},flatten:function(e){return Ct(this,vt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return G(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=Nt(e);!(n=i.next()).done;){var o=n.value;if(r=r&&r.get?r.get(o,vn):vn,r===vn)return t}return r},groupBy:function(e,t){return ht(this,e,t)},has:function(e){return this.get(e,vn)!==vn},hasIn:function(e){return this.getIn(e,vn)!==vn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return G(t,e)})},keySeq:function(){return this.toSeq().map(Xt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return wt(this,e)},maxBy:function(e,t){return wt(this,t,e)},min:function(e){return wt(this,e?en(e):rn)},minBy:function(e,t){return wt(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Ct(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Ct(this,mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Qt(e),t)},sortBy:function(e,t){return Ct(this,_t(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Ct(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Ct(this,pt(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Qt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=t.prototype;sr[ln]=!0,sr[En]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=tn,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Zt(n,{flip:function(){return Ct(this,st(this))},mapEntries:function(e,t){var n=this,r=0;return Ct(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ct(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var ur=n.prototype;ur[cn]=!0,ur[En]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Zt(r,{toKeyedSeq:function(){return new rt(this,(!1))},filter:function(e,t){return Ct(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ct(this,lt(this,!1))},slice:function(e,t){return Ct(this,dt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=y(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ct(this,1===n?r:r.concat(d(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Ct(this,vt(this,e,!1))},get:function(e,t){return e=m(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=m(this,e),e>=0&&(void 0!==this.size?this.size===1/0||e<this.size:this.indexOf(e)!==-1)},interpose:function(e){return Ct(this,bt(this,e))},interleave:function(){var e=[this].concat(d(arguments)),t=kt(this.toSeq(),N.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Ct(this,n)},keySeq:function(){return Q(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Ct(this,mt(this,e,t,!1))},zip:function(){var e=[this].concat(d(arguments));return Ct(this,kt(this,nn,e))},zipWith:function(e){var t=d(arguments);return t[0]=this,Ct(this,kt(this,e,t))}}),r.prototype[fn]=!0,r.prototype[hn]=!0,Zt(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=sr.includes,i.prototype.contains=i.prototype.includes,Zt(D,n.prototype),Zt(N,r.prototype),Zt(F,i.prototype),Zt(te,n.prototype),Zt(ne,r.prototype),Zt(re,i.prototype);var lr={Iterable:t,Seq:T,Collection:ee,Map:fe,OrderedMap:Je,List:Ie,Stack:Wt,Set:Lt,OrderedSet:Bt,Record:Ft,Range:Q,Repeat:X,is:G,fromJS:V};return lr}),function(e,t){"object"==typeof exports?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e)}(this,function(e){function t(e){this._targetElement=e,this._introItems=[],this._options={nextLabel:"Next →",prevLabel:"← Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,overlayOpacity:.8,scrollPadding:30,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0}}function n(e){var t=[],n=this;if(this._options.steps)for(var i=0,u=this._options.steps.length;i<u;i++){var l=r(this._options.steps[i]);if(l.step=t.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&&t.push(l)}else{var f=e.querySelectorAll("*[data-intro]");if(f.length<1)return!1;for(var i=0,h=f.length;i<h;i++){var p=f[i];if("none"!=p.style.display){var m=parseInt(p.getAttribute("data-step"),10);m>0&&(t[m-1]={element:p,intro:p.getAttribute("data-intro"),step:parseInt(p.getAttribute("data-step"),10),tooltipClass:p.getAttribute("data-tooltipClass"),highlightClass:p.getAttribute("data-highlightClass"),position:p.getAttribute("data-position")||this._options.tooltipPosition})}}for(var g=0,i=0,h=f.length;i<h;i++){var p=f[i];if(null==p.getAttribute("data-step")){for(;;){if("undefined"==typeof t[g])break;g++}t[g]={element:p,intro:p.getAttribute("data-intro"),step:g+1,tooltipClass:p.getAttribute("data-tooltipClass"),highlightClass:p.getAttribute("data-highlightClass"),position:p.getAttribute("data-position")||this._options.tooltipPosition}}}}for(var v=[],y=0;y<t.length;y++)t[y]&&v.push(t[y]);if(t=v,t.sort(function(e,t){return e.step-t.step}),n._introItems=t,w.call(n,e)){o.call(n);e.querySelector(".introjs-skipbutton"),e.querySelector(".introjs-nextbutton");n._onKeyDown=function(t){if(27===t.keyCode&&1==n._options.exitOnEsc)void 0!=n._introExitCallback&&n._introExitCallback.call(n),s.call(n,e);else if(37===t.keyCode)a.call(n);else if(39===t.keyCode)o.call(n);else if(13===t.keyCode){var r=t.target||t.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,e)):o.call(n),t.preventDefault?t.preventDefault():t.returnValue=!1}},n._onResize=function(e){d.call(n,document.querySelector(".introjs-helperLayer")),d.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(e){if(null==e||"object"!=typeof e||"undefined"!=typeof e.nodeType)return e;var t={};for(var n in e)"undefined"!=typeof jQuery&&e[n]instanceof jQuery?t[n]=e[n]:t[n]=r(e[n]);return t}function i(e){this._currentStep=e-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 e=this._introItems[this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,e.element),g.call(this,e)}function a(){if(this._direction="backward",0===this._currentStep)return!1;var e=this._introItems[--this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,e.element),g.call(this,e)}function s(e){var t=e.querySelectorAll(".introjs-overlay");if(t&&t.length>0)for(var n=t.length-1;n>=0;n--){var r=t[n];r.style.opacity=0,setTimeout(function(){this.parentNode&&this.parentNode.removeChild(this)}.bind(r),500)}var i=e.querySelector(".introjs-helperLayer");i&&i.parentNode.removeChild(i);var o=e.querySelector(".introjs-tooltipReferenceLayer");o&&o.parentNode.removeChild(o);var a=e.querySelector(".introjs-disableInteraction");a&&a.parentNode.removeChild(a);var s=document.querySelector(".introjsFloatingElement");s&&s.parentNode.removeChild(s);var u=document.querySelector(".introjs-showElement");u&&(u.className=u.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,""));var l=document.querySelectorAll(".introjs-fixParent");if(l&&l.length>0)for(var n=l.length-1;n>=0;n--)l[n].className=l[n].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(e,t,n,r,i){var o,a,s,u,h,d="";if(i=i||!1,t.style.top=null,t.style.right=null,t.style.bottom=null,t.style.left=null,t.style.marginLeft=null,t.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(o=this._introItems[this._currentStep],d="string"==typeof o.tooltipClass?o.tooltipClass:this._options.tooltipClass,t.className=("introjs-tooltip "+d).replace(/^\s+|\s+$/g,""),h=this._introItems[this._currentStep].position,"auto"!=h&&"auto"!=this._options.tooltipPosition||"floating"!=h&&(h=f.call(this,e,t,h)),s=F(e),a=F(t),u=b(),h){case"top":if(n.className="introjs-arrow bottom",i)var p=0;else var p=15;l(s,p,a,u,t),t.style.bottom=s.height+20+"px";break;case"right":t.style.left=s.width+20+"px",s.top+a.height>u.height?(n.className="introjs-arrow left-bottom",t.style.top="-"+(a.height-s.height-20)+"px"):n.className="introjs-arrow left";break;case"left":i||1!=this._options.showStepNumbers||(t.style.top="15px"),s.top+a.height>u.height?(t.style.top="-"+(a.height-s.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",t.style.right=s.width+20+"px";break;case"floating":n.style.display="none",t.style.left="50%",t.style.top="50%",t.style.marginLeft="-"+a.width/2+"px",t.style.marginTop="-"+a.height/2+"px","undefined"!=typeof r&&null!=r&&(r.style.left="-"+(a.width/2+18)+"px",r.style.top="-"+(a.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right";var m=0;c(s,m,a,t),t.style.top=s.height+20+"px";break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle";var g=s.width/2-a.width/2;i&&(g+=5),c(s,g,a,t)&&(t.style.right=null,l(s,g,a,u,t)),t.style.top=s.height+20+"px";break;case"bottom-left-aligned":case"bottom":default:n.className="introjs-arrow top";var p=0;l(s,p,a,u,t),t.style.top=s.height+20+"px"}}function l(e,t,n,r,i){return e.left+t+n.width>r.width?(i.style.left=r.width-n.width-e.left+"px",!1):(i.style.left=t+"px",!0)}function c(e,t,n,r){return e.left+e.width-t-n.width<0?(r.style.left=-e.left+"px",!1):(r.style.right=t+"px",!0)}function f(e,t,n){var r=this._options.positionPrecedence.slice(),i=b(),o=F(t).height+10,a=F(t).width+20,s=F(e),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(e,t){e.indexOf(t)>-1&&e.splice(e.indexOf(t),1)}function d(e){if(e){if(!this._introItems[this._currentStep])return;var t=this._introItems[this._currentStep],n=F(t.element),r=10;y(t.element)?e.className+=" introjs-fixedTooltip":e.className=e.className.replace(" introjs-fixedTooltip",""),"floating"==t.position&&(r=0),e.setAttribute("style","width: "+(n.width+r)+"px; height:"+(n.height+r)+"px; top:"+(n.top-5)+"px;left: "+(n.left-5)+"px;")}}function p(){var e=document.querySelector(".introjs-disableInteraction");null===e&&(e=document.createElement("div"),e.className="introjs-disableInteraction",this._targetElement.appendChild(e)),d.call(this,e)}function m(e){e.setAttribute("role","button"),e.tabIndex=0}function g(e){"undefined"!=typeof this._introChangeCallback&&this._introChangeCallback.call(this,e.element);var t=this,n=document.querySelector(".introjs-helperLayer"),r=document.querySelector(".introjs-tooltipReferenceLayer"),i="introjs-helperLayer";F(e.element);if("string"==typeof e.highlightClass&&(i+=" "+e.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"),g=r.querySelector(".introjs-skipbutton"),y=r.querySelector(".introjs-prevbutton"),w=r.querySelector(".introjs-nextbutton");if(n.className=i,h.style.opacity=0,h.style.display="none",null!=l){var x=this._introItems[e.step-2>=0?e.step-2:0];(null!=x&&"forward"==this._direction&&"floating"==x.position||"backward"==this._direction&&"floating"==e.position)&&(l.style.opacity=0)}d.call(t,n),d.call(t,r);var k=document.querySelectorAll(".introjs-fixParent");if(k&&k.length>0)for(var C=k.length-1;C>=0;C--)k[C].className=k[C].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");var E=document.querySelector(".introjs-showElement");E&&(E.className=E.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,"")),t._lastShowElementTimer&&clearTimeout(t._lastShowElementTimer),t._lastShowElementTimer=setTimeout(function(){null!=l&&(l.innerHTML=e.step),c.innerHTML=e.intro,h.style.display="block",u.call(t,e.element,h,f,l),t._options.showBullets&&(r.querySelector(".introjs-bullets li > a.active").className="",r.querySelector('.introjs-bullets li > a[data-stepnumber="'+e.step+'"]').className="active"),r.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+M.call(t)+"%;"),h.style.opacity=1,l&&(l.style.opacity=1),w.tabIndex===-1?g.focus():w.focus()},350)}else{var $=document.createElement("div"),S=document.createElement("div"),A=document.createElement("div"),T=document.createElement("div"),D=document.createElement("div"),N=document.createElement("div"),O=document.createElement("div"),j=document.createElement("div");$.className=i,S.className="introjs-tooltipReferenceLayer",d.call(t,$),d.call(t,S),this._targetElement.appendChild($),this._targetElement.appendChild(S),A.className="introjs-arrow",D.className="introjs-tooltiptext",D.innerHTML=e.intro,N.className="introjs-bullets",this._options.showBullets===!1&&(N.style.display="none");for(var P=document.createElement("ul"),C=0,L=this._introItems.length;C<L;C++){var R=document.createElement("li"),I=document.createElement("a");I.onclick=function(){t.goToStep(this.getAttribute("data-stepnumber"))},C===e.step-1&&(I.className="active"),m(I),I.innerHTML=" ",I.setAttribute("data-stepnumber",this._introItems[C].step),R.appendChild(I),P.appendChild(R)}N.appendChild(P),O.className="introjs-progress",this._options.showProgress===!1&&(O.style.display="none");var q=document.createElement("div");if(q.className="introjs-progressbar",q.setAttribute("style","width:"+M.call(this)+"%;"),O.appendChild(q),j.className="introjs-tooltipbuttons",this._options.showButtons===!1&&(j.style.display="none"),T.className="introjs-tooltip",T.appendChild(D),T.appendChild(N),T.appendChild(O),1==this._options.showStepNumbers){var z=document.createElement("span");z.className="introjs-helperNumberLayer",z.innerHTML=e.step,S.appendChild(z)}T.appendChild(A),S.appendChild(T);var w=document.createElement("a");w.onclick=function(){t._introItems.length-1!=t._currentStep&&o.call(t)},m(w),w.innerHTML=this._options.nextLabel;var y=document.createElement("a");y.onclick=function(){0!=t._currentStep&&a.call(t)},m(y),y.innerHTML=this._options.prevLabel;var g=document.createElement("a");g.className="introjs-button introjs-skipbutton",m(g),g.innerHTML=this._options.skipLabel,g.onclick=function(){t._introItems.length-1==t._currentStep&&"function"==typeof t._introCompleteCallback&&t._introCompleteCallback.call(t),t._introItems.length-1!=t._currentStep&&"function"==typeof t._introExitCallback&&t._introExitCallback.call(t),s.call(t,t._targetElement)},j.appendChild(g),this._introItems.length>1&&(j.appendChild(y),j.appendChild(w)),T.appendChild(j),u.call(t,e.element,T,A,z)}this._options.disableInteraction===!0&&p.call(t),y.removeAttribute("tabIndex"),w.removeAttribute("tabIndex"),0==this._currentStep&&this._introItems.length>1?(w.className="introjs-button introjs-nextbutton",1==this._options.hidePrev?(y.className="introjs-button introjs-prevbutton introjs-hidden",w.className+=" introjs-fullbutton"):y.className="introjs-button introjs-prevbutton introjs-disabled",y.tabIndex="-1",g.innerHTML=this._options.skipLabel):this._introItems.length-1==this._currentStep||1==this._introItems.length?(g.innerHTML=this._options.doneLabel,y.className="introjs-button introjs-prevbutton",1==this._options.hideNext?(w.className="introjs-button introjs-nextbutton introjs-hidden",y.className+=" introjs-fullbutton"):w.className="introjs-button introjs-nextbutton introjs-disabled",w.tabIndex="-1"):(y.className="introjs-button introjs-prevbutton",w.className="introjs-button introjs-nextbutton",g.innerHTML=this._options.skipLabel),w.focus(),e.element.className+=" introjs-showElement";var B=v(e.element,"position");"absolute"!==B&&"relative"!==B&&"fixed"!==B&&(e.element.className+=" introjs-relativePosition");for(var H=e.element.parentNode;null!=H&&H.tagName&&"body"!==H.tagName.toLowerCase();){var U=v(H,"z-index"),V=parseFloat(v(H,"opacity")),W=v(H,"transform")||v(H,"-webkit-transform")||v(H,"-moz-transform")||v(H,"-ms-transform")||v(H,"-o-transform");(/[0-9]+/.test(U)||V<1||"none"!==W&&void 0!==W)&&(H.className+=" introjs-fixParent"),H=H.parentNode}if(!_(e.element)&&this._options.scrollToElement===!0){var Y=e.element.getBoundingClientRect(),K=b().height,G=Y.bottom-(Y.bottom-Y.top),Z=Y.bottom-K;G<0||e.element.clientHeight>K?window.scrollBy(0,G-this._options.scrollPadding):window.scrollBy(0,Z+70+this._options.scrollPadding)}"undefined"!=typeof this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,e.element)}function v(e,t){var n="";return e.currentStyle?n=e.currentStyle[t]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t)),n&&n.toLowerCase?n.toLowerCase():n}function y(e){var t=e.parentNode;return!(!t||"HTML"===t.nodeName)&&("fixed"==v(e,"position")||y(t))}function b(){if(void 0!=window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var e=document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}function _(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom+80<=window.innerHeight&&t.right<=window.innerWidth}function w(e){var t=document.createElement("div"),n="",r=this;if(t.className="introjs-overlay",e.tagName&&"body"!==e.tagName.toLowerCase()){var i=F(e);i&&(n+="width: "+i.width+"px; height:"+i.height+"px; top:"+i.top+"px;left: "+i.left+"px;",t.setAttribute("style",n))}else n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",t.setAttribute("style",n);return e.appendChild(t),t.onclick=function(){1==r._options.exitOnOverlayClick&&(void 0!=r._introExitCallback&&r._introExitCallback.call(r),s.call(r,e))},setTimeout(function(){n+="opacity: "+r._options.overlayOpacity.toString()+";",t.setAttribute("style",n)},10),!0}function x(){var e=this._targetElement.querySelector(".introjs-hintReference");if(e){var t=e.getAttribute("data-step");return e.parentNode.removeChild(e),t}}function k(e){if(this._introItems=[],this._options.hints)for(var t=0,n=this._options.hints.length;t<n;t++){var i=r(this._options.hints[t]);"string"==typeof i.element&&(i.element=document.querySelector(i.element)),i.hintPosition=i.hintPosition||this._options.hintPosition,i.hintAnimation=i.hintAnimation||this._options.hintAnimation,null!=i.element&&this._introItems.push(i)}else{var o=e.querySelectorAll("*[data-hint]");if(o.length<1)return!1;for(var t=0,n=o.length;t<n;t++){var a=o[t],s=a.getAttribute("data-hintAnimation");s=s?"true"==s:this._options.hintAnimation,this._introItems.push({element:a,hint:a.getAttribute("data-hint"),hintPosition:a.getAttribute("data-hintPosition")||this._options.hintPosition,hintAnimation:s,tooltipClass:a.getAttribute("data-tooltipClass"),position:a.getAttribute("data-position")||this._options.tooltipPosition})}}T.call(this),document.addEventListener?(document.addEventListener("click",x.bind(this),!1),window.addEventListener("resize",C.bind(this),!0)):document.attachEvent&&(document.attachEvent("onclick",x.bind(this)),document.attachEvent("onresize",C.bind(this)))}function C(){for(var e=0,t=this._introItems.length;e<t;e++){var n=this._introItems[e];"undefined"!=typeof n.targetElement&&D.call(this,n.hintPosition,n.element,n.targetElement)}}function E(e){x.call(this);var t=this._targetElement.querySelector('.introjs-hint[data-step="'+e+'"]');t&&(t.className+=" introjs-hidehint"),"undefined"!=typeof this._hintCloseCallback&&this._hintCloseCallback.call(this,e)}function $(){var e=this._targetElement.querySelectorAll(".introjs-hint");if(e&&e.length>0)for(var t=0;t<e.length;t++)E.call(this,e[t].getAttribute("data-step"))}function S(){var e=this._targetElement.querySelectorAll(".introjs-hint");if(e&&e.length>0)for(var t=0;t<e.length;t++)A.call(this,e[t].getAttribute("data-step"));else k.call(this,this._targetElement)}function A(e){var t=this._targetElement.querySelector('.introjs-hint[data-step="'+e+'"]');t&&(t.className=t.className.replace(/introjs\-hidehint/g,""))}function T(){var e=this,t=document.querySelector(".introjs-hints");if(null!=t)n=t;else{var n=document.createElement("div");n.className="introjs-hints"}for(var r=0,i=this._introItems.length;r<i;r++){var o=this._introItems[r];if(!document.querySelector('.introjs-hint[data-step="'+r+'"]')){var a=document.createElement("a");m(a),function(t,n,r){t.onclick=function(i){var o=i?i:window.event;o.stopPropagation&&o.stopPropagation(),null!=o.cancelBubble&&(o.cancelBubble=!0),N.call(e,t,n,r)}}(a,o,r),a.className="introjs-hint",o.hintAnimation||(a.className+=" introjs-hint-no-anim"),y(o.element)&&(a.className+=" introjs-fixedhint");var s=document.createElement("div");s.className="introjs-hint-dot";var u=document.createElement("div");u.className="introjs-hint-pulse",a.appendChild(s),a.appendChild(u),a.setAttribute("data-step",r),o.targetElement=o.element,o.element=a,D.call(this,o.hintPosition,a,o.targetElement),n.appendChild(a)}}document.body.appendChild(n),"undefined"!=typeof this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}function D(e,t,n){var r=F.call(this,n);switch(e){default:case"top-left":t.style.left=r.left+"px",t.style.top=r.top+"px";break;case"top-right":t.style.left=r.left+r.width+"px",t.style.top=r.top+"px";break;case"bottom-left":t.style.left=r.left+"px",t.style.top=r.top+r.height+"px";break;case"bottom-right":t.style.left=r.left+r.width+"px",t.style.top=r.top+r.height+"px";break;case"bottom-middle":t.style.left=r.left+r.width/2+"px",t.style.top=r.top+r.height+"px";break;case"top-middle":t.style.left=r.left+r.width/2+"px",t.style.top=r.top+"px"}}function N(e,t,n){"undefined"!=typeof this._hintClickCallback&&this._hintClickCallback.call(this,e,t,n);
|
||
var r=x.call(this);if(parseInt(r,10)!=n){var i=document.createElement("div"),o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div");i.className="introjs-tooltip",i.onclick=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},o.className="introjs-tooltiptext";var l=document.createElement("p");l.innerHTML=t.hint;var c=document.createElement("a");c.className="introjs-button",c.innerHTML=this._options.hintButtonLabel,c.onclick=E.bind(this,n),o.appendChild(l),o.appendChild(c),a.className="introjs-arrow",i.appendChild(a),i.appendChild(o),this._currentStep=e.getAttribute("data-step"),s.className="introjs-tooltipReferenceLayer introjs-hintReference",s.setAttribute("data-step",e.getAttribute("data-step")),d.call(this,s),s.appendChild(i),document.body.appendChild(s),u.call(this,e,i,a,null,!0)}}function F(e){var t={};t.width=e.offsetWidth,t.height=e.offsetHeight;for(var n=0,r=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return t.top=r,t.left=n,t}function M(){var e=parseInt(this._currentStep+1,10);return e/this._introItems.length*100}function O(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}var j="2.4.0",P=function(e){if("object"==typeof e)return new t(e);if("string"==typeof e){var n=document.querySelector(e);if(n)return new t(n);throw new Error("There is no element with given selector.")}return new t(document.body)};return P.version=j,P.fn=t.prototype={clone:function(){return new t(this)},setOption:function(e,t){return this._options[e]=t,this},setOptions:function(e){return this._options=O(this._options,e),this},start:function(){return n.call(this,this._targetElement),this},goToStep:function(e){return i.call(this,e),this},addStep:function(e){return this._options.steps||(this._options.steps=[]),this._options.steps.push(e),this},addSteps:function(e){if(e.length){for(var t=0;t<e.length;t++)this.addStep(e[t]);return 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 d.call(this,document.querySelector(".introjs-helperLayer")),d.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),C.call(this),this},onbeforechange:function(e){if("function"!=typeof e)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=e,this},onchange:function(e){if("function"!=typeof e)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=e,this},onafterchange:function(e){if("function"!=typeof e)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=e,this},oncomplete:function(e){if("function"!=typeof e)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=e,this},onhintsadded:function(e){if("function"!=typeof e)throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=e,this},onhintclick:function(e){if("function"!=typeof e)throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=e,this},onhintclose:function(e){if("function"!=typeof e)throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=e,this},onexit:function(e){if("function"!=typeof e)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=e,this},addHints:function(){return k.call(this,this._targetElement),this},hideHint:function(e){return E.call(this,e),this},hideHints:function(){return $.call(this),this},showHint:function(e){return A.call(this,e),this},showHints:function(){return S.call(this),this}},e.introJs=P,P}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.dragula=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[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:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,e,t,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(e,t,n){"use strict";function r(e){var t=a[e];return t?t.lastIndex=0:a[e]=t=new RegExp(s+e+u,"g"),t}function i(e,t){var n=e.className;n.length?r(t).test(n)||(e.className+=" "+t):e.className=t}function o(e,t){e.className=e.className.replace(r(t)," ").trim()}var a={},s="(?:^|\\s)",u="(?:\\s|$)";t.exports={add:i,rm:o}},{}],2:[function(e,t,n){(function(n){"use strict";function r(e,t){function n(e){return ce.containers.indexOf(e)!==-1||le.isContainer(e)}function r(e){var t=e?"remove":"add";i(k,t,"mousedown",E),i(k,t,"mouseup",O)}function s(e){var t=e?"remove":"add";i(k,t,"mousemove",$)}function m(e){var t=e?"remove":"add";_[t](k,"selectstart",C),_[t](k,"click",C)}function v(){r(!0),O({})}function C(e){se&&e.preventDefault()}function E(e){te=e.clientX,ne=e.clientY;var t=1!==o(e)||e.metaKey||e.ctrlKey;if(!t){var n=e.target,r=S(n);r&&(se=r,s(),"mousedown"===e.type&&(p(n)?n.focus():e.preventDefault()))}}function $(e){if(se){if(0===o(e))return void O({});if(void 0===e.clientX||e.clientX!==te||void 0===e.clientY||e.clientY!==ne){if(le.ignoreInputTextSelection){var t=y("clientX",e),n=y("clientY",e),r=x.elementFromPoint(t,n);if(p(r))return}var i=se;s(!0),m(),F(),D(i);var u=a(J);Q=y("pageX",e)-u.left,ee=y("pageY",e)-u.top,w.add(oe||J,"gu-transit"),U(),z(e)}}}function S(e){if(!(ce.dragging&&Z||n(e))){for(var t=e;d(e)&&n(d(e))===!1;){if(le.invalid(e,t))return;if(e=d(e),!e)return}var r=d(e);if(r&&!le.invalid(e,t)){var i=le.moves(e,r,t,g(e));if(i)return{item:e,source:r}}}}function A(e){return!!S(e)}function T(e){var t=S(e);t&&D(t)}function D(e){K(e.item,e.source)&&(oe=e.item.cloneNode(!0),ce.emit("cloned",oe,e.item,"copy")),X=e.source,J=e.item,re=ie=g(e.item),ce.dragging=!0,ce.emit("drag",J,X)}function N(){return!1}function F(){if(ce.dragging){var e=oe||J;j(e,d(e))}}function M(){se=!1,s(!0),m(!0)}function O(e){if(M(),ce.dragging){var t=oe||J,n=y("clientX",e),r=y("clientY",e),i=u(Z,n,r),o=q(i,n,r);o&&(oe&&le.copySortSource||!oe||o!==X)?j(t,o):le.removeOnSpill?P():L()}}function j(e,t){var n=d(e);oe&&le.copySortSource&&t===X&&n.removeChild(J),I(t)?ce.emit("cancel",e,X,X):ce.emit("drop",e,t,X,ie),R()}function P(){if(ce.dragging){var e=oe||J,t=d(e);t&&t.removeChild(e),ce.emit(oe?"cancel":"remove",e,t,X),R()}}function L(e){if(ce.dragging){var t=arguments.length>0?e:le.revertOnSpill,n=oe||J,r=d(n),i=I(r);i===!1&&t&&(oe?r&&r.removeChild(oe):X.insertBefore(n,re)),i||t?ce.emit("cancel",n,X,X):ce.emit("drop",n,r,X,ie),R()}}function R(){var e=oe||J;M(),V(),e&&w.rm(e,"gu-transit"),ae&&clearTimeout(ae),ce.dragging=!1,ue&&ce.emit("out",e,ue,X),ce.emit("dragend",e),X=J=oe=re=ie=ae=ue=null}function I(e,t){var n;return n=void 0!==t?t:Z?ie:g(oe||J),e===X&&n===re}function q(e,t,r){function i(){var i=n(o);if(i===!1)return!1;var a=W(o,e),s=Y(o,a,t,r),u=I(o,s);return!!u||le.accepts(J,o,X,s)}for(var o=e;o&&!i();)o=d(o);return o}function z(e){function t(e){ce.emit(e,l,ue,X)}function n(){h&&t("over")}function r(){ue&&t("out")}if(Z){e.preventDefault();var i=y("clientX",e),o=y("clientY",e),a=i-Q,s=o-ee;Z.style.left=a+"px",Z.style.top=s+"px";var l=oe||J,c=u(Z,i,o),f=q(c,i,o),h=null!==f&&f!==ue;(h||null===f)&&(r(),ue=f,n());var p=d(l);if(f===X&&oe&&!le.copySortSource)return void(p&&p.removeChild(l));var m,v=W(f,c);if(null!==v)m=Y(f,v,i,o);else{if(le.revertOnSpill!==!0||oe)return void(oe&&p&&p.removeChild(l));m=re,f=X}(null===m&&h||m!==l&&m!==g(l))&&(ie=m,f.insertBefore(l,m),ce.emit("shadow",l,f,X))}}function B(e){w.rm(e,"gu-hide")}function H(e){ce.dragging&&w.add(e,"gu-hide")}function U(){if(!Z){var e=J.getBoundingClientRect();Z=J.cloneNode(!0),Z.style.width=f(e)+"px",Z.style.height=h(e)+"px",w.rm(Z,"gu-transit"),w.add(Z,"gu-mirror"),le.mirrorContainer.appendChild(Z),i(k,"add","mousemove",z),w.add(le.mirrorContainer,"gu-unselectable"),ce.emit("cloned",Z,J,"mirror")}}function V(){Z&&(w.rm(le.mirrorContainer,"gu-unselectable"),i(k,"remove","mousemove",z),d(Z).removeChild(Z),Z=null)}function W(e,t){for(var n=t;n!==e&&d(n)!==e;)n=d(n);return n===k?null:n}function Y(e,t,n,r){function i(){var t,i,o,a=e.children.length;for(t=0;t<a;t++){if(i=e.children[t],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 e=t.getBoundingClientRect();return a(s?n>e.left+f(e)/2:r>e.top+h(e)/2)}function a(e){return e?g(t):t}var s="horizontal"===le.direction,u=t!==e?o():i();return u}function K(e,t){return"boolean"==typeof le.copy?le.copy:le.copy(e,t)}var G=arguments.length;1===G&&Array.isArray(e)===!1&&(t=e,e=[]);var Z,X,J,Q,ee,te,ne,re,ie,oe,ae,se,ue=null,le=t||{};void 0===le.moves&&(le.moves=c),void 0===le.accepts&&(le.accepts=c),void 0===le.invalid&&(le.invalid=N),void 0===le.containers&&(le.containers=e||[]),void 0===le.isContainer&&(le.isContainer=l),void 0===le.copy&&(le.copy=!1),void 0===le.copySortSource&&(le.copySortSource=!1),void 0===le.revertOnSpill&&(le.revertOnSpill=!1),void 0===le.removeOnSpill&&(le.removeOnSpill=!1),void 0===le.direction&&(le.direction="vertical"),void 0===le.ignoreInputTextSelection&&(le.ignoreInputTextSelection=!0),void 0===le.mirrorContainer&&(le.mirrorContainer=x.body);var ce=b({containers:le.containers,start:T,end:F,cancel:L,remove:P,destroy:v,canMove:A,dragging:!1});return le.removeOnSpill===!0&&ce.on("over",B).on("out",H),r(),ce}function i(e,t,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?_[t](e,a[r],i):n.navigator.msPointerEnabled?_[t](e,s[r],i):(_[t](e,o[r],i),_[t](e,r,i))}function o(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function a(e){var t=e.getBoundingClientRect();return{left:t.left+s("scrollLeft","pageXOffset"),top:t.top+s("scrollTop","pageYOffset")}}function s(e,t){return"undefined"!=typeof n[t]?n[t]:k.clientHeight?k[e]:x.body[e]}function u(e,t,n){var r,i=e||{},o=i.className;return i.className+=" gu-hide",r=x.elementFromPoint(t,n),i.className=o,r}function l(){return!1}function c(){return!0}function f(e){return e.width||e.right-e.left}function h(e){return e.height||e.bottom-e.top}function d(e){return e.parentNode===x?null:e.parentNode}function p(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||m(e)}function m(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||m(d(e))))}function g(e){function t(){var t=e;do t=t.nextSibling;while(t&&1!==t.nodeType);return t}return e.nextElementSibling||t()}function v(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}function y(e,t){var n=v(t),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}var b=e("contra/emitter"),_=e("crossvent"),w=e("./classes"),x=document,k=x.documentElement;t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],4:[function(e,t,n){"use strict";var r=e("ticky");t.exports=function(e,t,n){e&&r(function(){e.apply(n||null,t||[])})}},{ticky:9}],5:[function(e,t,n){"use strict";var r=e("atoa"),i=e("./debounce");t.exports=function(e,t){var n=t||{},o={};return void 0===e&&(e={}),e.on=function(t,n){return o[t]?o[t].push(n):o[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var r=arguments.length;if(1===r)delete o[t];else if(0===r)o={};else{var i=o[t];if(!i)return e;i.splice(i.indexOf(n),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var a=(o[t]||[]).slice(0);return function(){var o=r(arguments),s=this||e;if("error"===t&&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&&e.off(t,r)}),e}},e}},{"./debounce":4,atoa:3}],6:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){return e.addEventListener(t,n,r)}function i(e,t,n){return e.attachEvent("on"+t,l(e,t,n))}function o(e,t,n,r){return e.removeEventListener(t,n,r)}function a(e,t,n){var r=c(e,t,n);if(r)return e.detachEvent("on"+t,r)}function s(e,t,n){function r(){var e;return p.createEvent?(e=p.createEvent("Event"),e.initEvent(t,!0,!0)):p.createEventObject&&(e=p.createEventObject()),e}function i(){return new h(t,{detail:n})}var o=d.indexOf(t)===-1?i():r();e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on"+t,o)}function u(e,t,r){return function(t){var i=t||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(e,i)}}function l(e,t,n){var r=c(e,t,n)||u(e,t,n);return v.push({wrapper:r,element:e,type:t,fn:n}),r}function c(e,t,n){var r=f(e,t,n);if(r){var i=v[r].wrapper;return v.splice(r,1),i}}function f(e,t,n){var r,i;for(r=0;r<v.length;r++)if(i=v[r],i.element===e&&i.type===t&&i.fn===n)return r}var h=e("custom-event"),d=e("./eventmap"),p=n.document,m=r,g=o,v=[];n.addEventListener||(m=i,g=a),t.exports={add:m,remove:g,fabricate:s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(e,t,n){(function(e){"use strict";var n=[],r="",i=/^on/;for(r in e)i.test(r)&&n.push(r.slice(2));t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,n){(function(e){function n(){try{var e=new r("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(t){}return!1}var r=e.CustomEvent;t.exports=n()?r:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.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:{})},{}],9:[function(e,t,n){var r,i="function"==typeof setImmediate;r=i?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},t.exports=r},{}]},{},[2])(2)}),function(){function e(e){var t=Array.isArray(e)?{label:e[0],value:e[1]}:"object"==typeof e&&"label"in e&&"value"in e?e:{label:e,value:e};this.label=t.label||t.value,this.value=t.value}function t(e,t,n){for(var r in t){var i=t[r],o=e.input.getAttribute("data-"+r.toLowerCase());"number"==typeof i?e[r]=parseInt(o):i===!1?e[r]=null!==o:i instanceof Function?e[r]=null:e[r]=o,e[r]||0===e[r]||(e[r]=r in n?n[r]:i)}}function n(e,t){return"string"==typeof e?(t||document).querySelector(e):e||null}function r(e,t){return a.call((t||document).querySelectorAll(e))}function i(){r("input.awesomplete").forEach(function(e){new o(e)})}var o=function(e,r){var i=this;this.input=n(e),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),r=r||{},t(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:e}),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,{reason:"blur"}),keydown:function(e){var t=e.keyCode;i.opened&&(13===t&&i.selected?(e.preventDefault(),i.select()):27===t?i.close({reason:"esc"}):38!==t&&40!==t||(e.preventDefault(),i[38===t?"previous":"next"]()))}}),n.bind(this.input.form,{submit:this.close.bind(this,{reason:"submit"})}),n.bind(this.ul,{mousedown:function(e){var t=e.target;if(t!==this){for(;t&&!/li/i.test(t.nodeName);)t=t.parentNode;t&&0===e.button&&(e.preventDefault(),i.select(t,e.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(e){if(Array.isArray(e))this._list=e;else if("string"==typeof e&&e.indexOf(",")>-1)this._list=e.split(/\s*,\s*/);else if(e=n(e),e&&e.children){var t=[];a.apply(e.children).forEach(function(e){if(!e.disabled){var n=e.textContent.trim(),r=e.value||n,i=e.label||n;""!==r&&t.push({label:i,value:r})}}),this._list=t}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return!this.ul.hasAttribute("hidden")},close:function(e){this.opened&&(this.ul.setAttribute("hidden",""),this.index=-1,n.fire(this.input,"awesomplete-close",e||{}))},open:function(){this.ul.removeAttribute("hidden"),this.autoFirst&&this.index===-1&&this["goto"](0),n.fire(this.input,"awesomplete-open")},next:function(){var e=this.ul.children.length;this["goto"](this.index<e-1?this.index+1:-1)},previous:function(){var e=this.ul.children.length;this["goto"](this.selected?this.index-1:e-1)},"goto":function(e){var t=this.ul.children;this.selected&&t[this.index].setAttribute("aria-selected","false"),this.index=e,e>-1&&t.length>0&&(t[e].setAttribute("aria-selected","true"),this.status.textContent=t[e].textContent,n.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(e,t){if(e?this.index=n.siblingIndex(e):e=this.ul.children[this.index],e){var r=this.suggestions[this.index],i=n.fire(this.input,"awesomplete-select",{text:r,origin:t||e});i&&(this.replace(r),this.close({reason:"select"}),n.fire(this.input,"awesomplete-selectcomplete",{text:r}))}},evaluate:function(){var t=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 e(t.data(r,n))}).filter(function(e){return t.filter(e,n)}).sort(this.sort).slice(0,this.maxItems),this.suggestions.forEach(function(e){t.ul.appendChild(t.item(e,n))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},o.all=[],o.FILTER_CONTAINS=function(e,t){return RegExp(n.regExpEscape(t.trim()),"i").test(e)},o.FILTER_STARTSWITH=function(e,t){return RegExp("^"+n.regExpEscape(t.trim()),"i").test(e)},o.SORT_BYLENGTH=function(e,t){return e.length!==t.length?e.length-t.length:e<t?-1:1},o.ITEM=function(e,t){var r=""===t?e:e.replace(RegExp(n.regExpEscape(t.trim()),"gi"),"<mark>$&</mark>");return n.create("li",{innerHTML:r,"aria-selected":"false"})},o.REPLACE=function(e){this.input.value=e.value},o.DATA=function(e){return e},Object.defineProperty(e.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),e.prototype.toString=e.prototype.valueOf=function(){return""+this.label};var a=Array.prototype.slice;return n.create=function(e,t){var r=document.createElement(e);for(var i in t){var o=t[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(e,t){if(e)for(var n in t){var r=t[n];n.split(/\s+/).forEach(function(t){e.addEventListener(t,r)})}},n.fire=function(e,t,n){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0);for(var i in n)r[i]=n[i];return e.dispatchEvent(r)},n.regExpEscape=function(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},n.siblingIndex=function(e){for(var t=0;e=e.previousElementSibling;t++);return t},"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}(),"classList"in document.createElement("_")||!function(e){"use strict";if("Element"in e){var t="classList",n="prototype",r=e.Element[n],i=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},s=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},u=function(e,t){if(""===t)throw new s("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new s("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(e,t)},l=function(e){for(var t=o.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},c=l[n]=[],f=function(){return new l(this)};if(s[n]=Error[n],c.item=function(e){return this[e]||null},c.contains=function(e){return e+="",u(this,e)!==-1},c.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do e=t[n]+"",u(this,e)===-1&&(this.push(e),i=!0);while(++n<r);i&&this._updateClassName()},c.remove=function(){var e,t,n=arguments,r=0,i=n.length,o=!1;do for(e=n[r]+"",t=u(this,e);t!==-1;)this.splice(t,1),o=!0,t=u(this,e);while(++r<i);o&&this._updateClassName()},c.toggle=function(e,t){e+="";var n=this.contains(e),r=n?t!==!0&&"remove":t!==!1&&"add";return r&&this[r](e),t===!0||t===!1?t:!n},c.toString=function(){return this.join(" ")},i.defineProperty){var h={get:f,enumerable:!0,configurable:!0};try{i.defineProperty(r,t,h)}catch(d){d.number===-2146823252&&(h.enumerable=!1,i.defineProperty(r,t,h))}}else i[n].__defineGetter__&&r.__defineGetter__(t,f)}}(self),function(e){"use strict";if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(t){}var n=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var t=function(e){return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},i=n.prototype,o=r.prototype,a=e.FileReaderSync,s=function(e){this.code=this[this.name=e]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),l=u.length,c=e.URL||e.webkitURL||e,f=c.createObjectURL,h=c.revokeObjectURL,d=c,p=e.btoa,m=e.atob,g=e.ArrayBuffer,v=e.Uint8Array,y=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;l--;)s.prototype[u[l]]=l+1;return c.createObjectURL||(d=e.URL=function(e){var t,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=e,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(t=e.match(y),n.origin=t&&t[1])),n}),d.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof r?(t="data:"+n,"base64"===e.encoding?t+";base64,"+e.data:"URI"===e.encoding?t+","+decodeURIComponent(e.data):p?t+";base64,"+p(e.data):t+","+encodeURIComponent(e.data)):f?f.call(c,e):void 0},d.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&h&&h.call(c,e)},i.append=function(e){var n=this.data;if(v&&(e instanceof g||e instanceof v)){for(var i="",o=new v(e),u=0,l=o.length;u<l;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===t(e)||"File"===t(e)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(e))}else e instanceof r?"base64"===e.encoding&&m?n.push(m(e.data)):"URI"===e.encoding?n.push(decodeURIComponent(e.data)):"raw"===e.encoding&&n.push(e.data):("string"!=typeof e&&(e+=""),n.push(unescape(encodeURIComponent(e))))},i.getBlob=function(e){return arguments.length||(e=null),new r(this.data.join(""),e,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(e,t,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(e,i>1?t:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},n}(e);e.Blob=function(e,t){var r=t?t.type||"":"",i=new n;if(e)for(var o=0,a=e.length;o<a;o++)Uint8Array&&e[o]instanceof Uint8Array?i.append(e[o].buffer):i.append(e[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var r=Object.getPrototypeOf||function(e){return e.__proto__};e.Blob.prototype=r(new e.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(e,t){"use strict";var n="object"==typeof module&&"undefined"!=typeof process&&process&&process.versions&&process.versions.electron;n||"object"!=typeof module?"function"==typeof define&&define.amd?define(function(){return t}):e.MediumEditor=t:module.exports=t}(this,function(){"use strict";function e(e,t){return this.init(e,t)}return e.extensions={},function(t){function n(e,t){var n,r=Array.prototype.slice.call(arguments,2);t=t||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&"undefined"!=typeof o[n]&&(e||t.hasOwnProperty(n)===!1)&&(t[n]=o[n])}return t}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(a){}var s={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMac:t.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(e){return!!(s.isMac&&e.metaKey||!s.isMac&&e.ctrlKey)},isKey:function(e,t){var n=s.getKeyCode(e);return!1===Array.isArray(t)?n===t:-1!==t.indexOf(n)},getKeyCode:function(e){var t=e.which;return null===t&&(t=null!==e.charCode?e.charCode:e.keyCode),t},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var e=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,e)},defaults:function(){var e=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,e)},createLink:function(e,t,n,r){var i=e.createElement("a");return s.moveTextRangeIntoElement(t[0],t[t.length-1],i),i.setAttribute("href",n),r&&i.setAttribute("target",r),i},findOrCreateMatchingTextNodes:function(e,t,n){for(var r=e.createTreeWalker(t,NodeFilter.SHOW_ALL,null,!1),i=[],o=0,a=!1,u=null,l=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!a&&n.start<o+u.nodeValue.length&&(a=!0,l=s.splitStartNodeIfNeeded(u,n.start,o)),a&&s.splitEndNodeIfNeeded(u,l,n.end,o),a&&o===n.end)break;if(a&&o>n.end+1)throw new Error("PerformLinking overshot the target!");a&&i.push(l||u),o+=u.nodeValue.length,null!==l&&(o+=l.nodeValue.length,r.nextNode()),l=null}else"img"===u.tagName.toLowerCase()&&(!a&&n.start<=o&&(a=!0),a&&i.push(u));return i},splitStartNodeIfNeeded:function(e,t,n){return t!==n?e.splitText(t-n):null},splitEndNodeIfNeeded:function(e,t,n,r){var i,o;i=r+e.nodeValue.length+(t?t.nodeValue.length:0)-1,o=n-r-(t?e.nodeValue.length:0),i>=n&&r!==i&&0!==o&&(t||e).splitText(o)},splitByBlockElements:function(t){if(3!==t.nodeType&&1!==t.nodeType)return[];var n=[],r=e.util.blockContainerElementNames.join(",");if(3===t.nodeType||0===t.querySelectorAll(r).length)return[t];for(var i=0;i<t.childNodes.length;i++){var o=t.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){var a=o.querySelectorAll(r);0===a.length?n.push(o):n=n.concat(e.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(e,t,n){var r,i=!1,o=n.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===t)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)break;r=o.nextNode()}return r},findPreviousSibling:function(e){if(!e||s.isMediumEditorElement(e))return!1;for(var t=e.previousSibling;!t&&!s.isMediumEditorElement(e.parentNode);)e=e.parentNode,t=e.previousSibling;return t},isDescendant:function(e,t,n){if(!e||!t)return!1;if(e===t)return!!n;if(1!==e.nodeType)return!1;if(r||3!==t.nodeType)return e.contains(t);for(var i=t.parentNode;null!==i;){if(i===e)return!0;i=i.parentNode}return!1},isElement:function(e){return!(!e||1!==e.nodeType)},throttle:function(e,t){var n,r,i,o=50,a=null,s=0,u=function(){s=Date.now(),a=null,i=e.apply(n,r),a||(n=r=null)};return t||0===t||(t=o),function(){var o=Date.now(),l=t-(o-s);return n=this,r=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),s=o,i=e.apply(n,r),a||(n=r=null)):a||(a=setTimeout(u,l)),i}},traverseUp:function(e,t){if(!e)return!1;do{if(1===e.nodeType){if(t(e))return e;if(s.isMediumEditorElement(e))return!1}e=e.parentNode}while(e);return!1},htmlEntities:function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},insertHTMLCommand:function(t,n){var r,i,o,a,u,l,c,f=!1,h=["insertHTML",!1,n];if(!e.util.isEdge&&t.queryCommandSupported("insertHTML"))try{return t.execCommand.apply(t,h)}catch(d){}if(r=t.getSelection(),r.rangeCount){if(i=r.getRangeAt(0),c=i.commonAncestorContainer,s.isMediumEditorElement(c)&&!c.firstChild)i.selectNode(c.appendChild(t.createTextNode("")));else if(3===c.nodeType&&0===i.startOffset&&i.endOffset===c.nodeValue.length||3!==c.nodeType&&c.innerHTML===i.toString()){for(;!s.isMediumEditorElement(c)&&c.parentNode&&1===c.parentNode.childNodes.length&&!s.isMediumEditorElement(c.parentNode);)c=c.parentNode;i.selectNode(c)}for(i.deleteContents(),o=t.createElement("div"),o.innerHTML=n,a=t.createDocumentFragment();o.firstChild;)u=o.firstChild,l=a.appendChild(u);i.insertNode(a),l&&(i=i.cloneRange(),i.setStartAfter(l),i.collapse(!0),e.selection.selectRange(t,i)),f=!0}return t.execCommand.callListeners&&t.execCommand.callListeners(h,f),f},execFormatBlock:function(t,n){var r,i=s.getTopBlockContainer(e.selection.getSelectionStart(t));if("blockquote"===n){if(i&&(r=Array.prototype.slice.call(i.childNodes),r.some(function(e){return s.isBlockContainer(e)})))return t.execCommand("outdent",!1,null);if(s.isIE)return t.execCommand("indent",!1,n)}if(i&&n===i.nodeName.toLowerCase()&&(n="p"),s.isIE&&(n="<"+n+">"),i&&"blockquote"===i.nodeName.toLowerCase()){if(s.isIE&&"<p>"===n)return t.execCommand("outdent",!1,n);if((s.isFF||s.isEdge)&&"p"===n)return r=Array.prototype.slice.call(i.childNodes),r.some(function(e){return!s.isBlockContainer(e)})&&t.execCommand("formatBlock",!1,n),t.execCommand("outdent",!1,n)}return t.execCommand("formatBlock",!1,n)},setTargetBlank:function(e,t){var n,r=t||!1;if("a"===e.nodeName.toLowerCase())e.target="_blank";else for(e=e.getElementsByTagName("a"),n=0;n<e.length;n+=1)!1!==r&&r!==e[n].attributes.href.value||(e[n].target="_blank")},removeTargetBlank:function(e,t){var n;if("a"===e.nodeName.toLowerCase())e.removeAttribute("target");else for(e=e.getElementsByTagName("a"),n=0;n<e.length;n+=1)t===e[n].attributes.href.value&&e[n].removeAttribute("target");
|
||
},addClassToAnchors:function(e,t){var n,r,i=t.split(" ");if("a"===e.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)e.classList.add(i[r]);else for(e=e.getElementsByTagName("a"),n=0;n<e.length;n+=1)for(r=0;r<i.length;r+=1)e[n].classList.add(i[r])},isListItem:function(e){if(!e)return!1;if("li"===e.nodeName.toLowerCase())return!0;for(var t=e.parentNode,n=t.nodeName.toLowerCase();"li"===n||!s.isBlockContainer(t)&&"div"!==n;){if("li"===n)return!0;if(t=t.parentNode,!t)return!1;n=t.nodeName.toLowerCase()}return!1},cleanListDOM:function(t,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(s.unwrap(r.parentElement,t),e.selection.moveCursor(t,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(e,t,n){for(var r=t,i=null,o=!n;r!==e;){var a,s=r.parentNode,u=s.cloneNode(!1),l=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;l;){var c=l.nextSibling;l===r?(l.hasChildNodes()?l=l.cloneNode(!1):l.parentNode.removeChild(l),l.textContent&&i.appendChild(l),l=o?c:null):(l.parentNode.removeChild(l),(l.hasChildNodes()||l.textContent)&&i.appendChild(l),l=c)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(e,t,n){if(!e||!t)return!1;var r=s.findCommonRoot(e,t);if(!r)return!1;if(t===e){var i=e.parentNode,o=e.nextSibling;return i.removeChild(e),n.appendChild(e),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var a,u,l,c=[],f=0;f<r.childNodes.length;f++)if(l=r.childNodes[f],a){if(s.isDescendant(l,t,!0)){u=l;break}c.push(l)}else s.isDescendant(l,e,!0)&&(a=l);var h=u.nextSibling,d=r.ownerDocument.createDocumentFragment();return a===e?(a.parentNode.removeChild(a),d.appendChild(a)):d.appendChild(s.splitOffDOMTree(a,e)),c.forEach(function(e){e.parentNode.removeChild(e),d.appendChild(e)}),u===t?(u.parentNode.removeChild(u),d.appendChild(u)):d.appendChild(s.splitOffDOMTree(u,t,!0)),n.appendChild(d),u.parentNode===r?r.insertBefore(n,u):h?r.insertBefore(n,h):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(e){for(var t=0,n=e;null!==n.parentNode;)n=n.parentNode,t++;return t},findCommonRoot:function(e,t){for(var n=s.depthOfNode(e),r=s.depthOfNode(t),i=e,o=t;n!==r;)n>r?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(e){for(var t,n;!s.isBlockContainer(e)&&!s.isMediumEditorElement(e);){for(n=e;n=n.previousSibling;)if(t=3===n.nodeType?n.nodeValue:n.textContent,t.length>0)return!1;e=e.parentNode}return!0},isMediumEditorElement:function(e){return e&&e.getAttribute&&!!e.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(e){return s.traverseUp(e,function(e){return s.isMediumEditorElement(e)})},isBlockContainer:function(e){return e&&3!==e.nodeType&&s.blockContainerElementNames.indexOf(e.nodeName.toLowerCase())!==-1},getClosestBlockContainer:function(e){return s.traverseUp(e,function(e){return s.isBlockContainer(e)||s.isMediumEditorElement(e)})},getTopBlockContainer:function(e){var t=!!s.isBlockContainer(e)&&e;return s.traverseUp(e,function(e){return s.isBlockContainer(e)&&(t=e),!(t||!s.isMediumEditorElement(e))&&(t=e,!0)}),t},getFirstSelectableLeafNode:function(e){for(;e&&e.firstChild;)e=e.firstChild;if(e=s.traverseUp(e,function(e){return s.emptyElementNames.indexOf(e.nodeName.toLowerCase())===-1}),"table"===e.nodeName.toLowerCase()){var t=e.querySelector("th, td");t&&(e=t)}return e},getFirstTextNode:function(e){return s.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),s._getFirstTextNode(e)},_getFirstTextNode:function(e){if(3===e.nodeType)return e;for(var t=0;t<e.childNodes.length;t++){var n=s._getFirstTextNode(e.childNodes[t]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(e){return e.indexOf("://")===-1?"http://"+e:e},warn:function(){void 0!==t.console&&"function"==typeof t.console.warn&&t.console.warn.apply(t.console,arguments)},deprecated:function(e,t,n){var r=e+" is deprecated, please use "+t+" instead.";n&&(r+=" Will be removed in "+n),s.warn(r)},deprecatedMethod:function(e,t,n,r){s.deprecated(e,t,r),"function"==typeof this[t]&&this[t].apply(this,n)},cleanupAttrs:function(e,t){t.forEach(function(t){e.removeAttribute(t)})},cleanupTags:function(e,t){t.indexOf(e.nodeName.toLowerCase())!==-1&&e.parentNode.removeChild(e)},unwrapTags:function(t,n){n.indexOf(t.nodeName.toLowerCase())!==-1&&e.util.unwrap(t,document)},getClosestTag:function(e,t){return s.traverseUp(e,function(e){return e.nodeName.toLowerCase()===t.toLowerCase()})},unwrap:function(e,t){for(var n=t.createDocumentFragment(),r=Array.prototype.slice.call(e.childNodes),i=0;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?e.parentNode.replaceChild(n,e):e.parentNode.removeChild(e)},guid:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}};e.util=s}(window),function(){var t=function(t){e.util.extend(this,t)};t.extend=function(t){var n,r=this;n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return r.apply(this,arguments)},e.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,t&&e.util.extend(n.prototype,t),n},t.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(e){return this.base.options[e]}},["execAction","on","off","subscribe","trigger"].forEach(function(e){t.prototype[e]=function(){return this.base[e].apply(this.base,arguments)}}),e.Extension=t}(),function(){function t(t){return e.util.isBlockContainer(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(t,n){var r,i,o=n.getSelection();return 0!==o.rangeCount&&(r=o.getRangeAt(0),i=r.commonAncestorContainer,e.util.traverseUp(i,t))},getSelectionElement:function(t){return this.findMatchingSelectionParent(function(t){return e.util.isMediumEditorElement(t)},t)},exportSelection:function(e,t){if(!e)return null;var n=null,r=t.getSelection();if(r.rangeCount>0){var i,o=r.getRangeAt(0),a=o.cloneRange();a.selectNodeContents(e),a.setEnd(o.startContainer,o.startOffset),i=a.toString().length,n={start:i,end:i+o.toString().length},this.doesRangeStartWithImages(o,t)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(e,n,o.endContainer,o.endOffset);if(s&&(n.trailingImageCount=s),0!==i){var u=this.getIndexRelativeToAdjacentEmptyBlocks(t,e,o.startContainer,o.startOffset);u!==-1&&(n.emptyBlocksIndex=u)}}return n},importSelection:function(e,t,n,r){if(e&&t){var i=n.createRange();i.setStart(t,0),i.collapse(!0);var o,a=t,s=[],u=0,l=!1,c=!1,f=0,h=!1,d=!1,p=null;for((r||e.startsWithImage||"undefined"!=typeof e.emptyBlocksIndex)&&(d=!0);!h&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if(e.trailingImageCount&&c&&("img"===a.nodeName.toLowerCase()&&f++,f===e.trailingImageCount)){for(var m=0;a.parentNode.childNodes[m]!==a;)m++;i.setEnd(a.parentNode,m+1),h=!0}if(!h&&1===a.nodeType)for(var g=a.childNodes.length-1;g>=0;)s.push(a.childNodes[g]),g-=1}else o=u+a.length,!l&&e.start>=u&&e.start<=o&&(d||e.start<o?(i.setStart(a,e.start-u),l=!0):p=a),l&&e.end>=u&&e.end<=o&&(e.trailingImageCount?c=!0:(i.setEnd(a,e.end-u),h=!0)),u=o;h||(a=s.pop())}!l&&p&&(i.setStart(p,p.length),i.setEnd(p,p.length)),"undefined"!=typeof e.emptyBlocksIndex&&(i=this.importSelectionMoveCursorPastBlocks(n,t,e.emptyBlocksIndex,i)),r&&(i=this.importSelectionMoveCursorPastAnchor(e,i)),this.selectRange(n,i)}},importSelectionMoveCursorPastAnchor:function(t,n){var r=function(e){return"a"===e.nodeName.toLowerCase()};if(t.start===t.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&e.util.traverseUp(n.startContainer,r)){for(var i=n.startContainer,o=n.startContainer.parentNode;null!==o&&"a"!==o.nodeName.toLowerCase();)o.childNodes[o.childNodes.length-1]!==i?o=null:(i=o,o=o.parentNode);if(null!==o&&"a"===o.nodeName.toLowerCase()){for(var a=null,s=0;null===a&&s<o.parentNode.childNodes.length;s++)o.parentNode.childNodes[s]===o&&(a=s);n.setStart(o.parentNode,a+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,t,!1),l=o.startContainer,c=0;for(i=i||1,a=3===l.nodeType&&e.util.isBlockContainer(l.previousSibling)?l.previousSibling:e.util.getClosestBlockContainer(l);u.nextNode();)if(s){if(s=u.currentNode,c++,c===i)break;if(s.textContent.length>0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),o.setStart(e.util.getFirstSelectableLeafNode(s),0),o},getIndexRelativeToAdjacentEmptyBlocks:function(n,r,i,o){if(i.textContent.length>0&&o>0)return-1;var a=i;if(3!==a.nodeType&&(a=i.childNodes[o]),a){if(!e.util.isElementAtBeginningOfBlock(a))return-1;var s=e.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var u=e.util.getClosestBlockContainer(i),l=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,t,!1),c=0;l.nextNode();){var f=""===l.currentNode.textContent;if((f||c>0)&&(c+=1),l.currentNode===u)return c;f||(c=0)}return c},doesRangeStartWithImages:function(e,t){if(0!==e.startOffset||1!==e.startContainer.nodeType)return!1;if("img"===e.startContainer.nodeName.toLowerCase())return!0;var n=e.startContainer.querySelector("img");if(!n)return!1;for(var r=t.createTreeWalker(e.startContainer,NodeFilter.SHOW_ALL,null,!1);r.nextNode();){var i=r.currentNode;if(i===n)break;if(i.nodeValue)return!1}return!0},getTrailingImageCount:function(e,t,n,r){if(0===r||1!==n.nodeType)return 0;if("img"!==n.nodeName.toLowerCase()&&!n.querySelector("img"))return 0;for(var i=n.childNodes[r-1];i.hasChildNodes();)i=i.lastChild;for(var o,a=e,s=[],u=0,l=!1,c=!1,f=!1,h=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||c){if("img"===a.nodeName.toLowerCase()&&h++,a===i)f=!0;else if(1===a.nodeType)for(var d=a.childNodes.length-1;d>=0;)s.push(a.childNodes[d]),d-=1}else h=0,o=u+a.length,!l&&t.start>=u&&t.start<=o&&(l=!0),l&&t.end>=u&&t.end<=o&&(c=!0),u=o;f||(a=s.pop())}return h},selectionContainsContent:function(e){var t=e.getSelection();if(!t||t.isCollapsed||!t.rangeCount)return!1;if(""!==t.toString().trim())return!0;var n=this.getSelectedParentElement(t.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(e){var t,n=this.findMatchingSelectionParent(function(e){var n=e&&e.getAttribute("contenteditable");return"true"===n&&(t=!0),"#text"!==e.nodeName&&"false"===n},e);return!t&&n},getSelectionHtml:function(e){var t,n,r,i="",o=e.getSelection();if(o.rangeCount){for(r=e.createElement("div"),t=0,n=o.rangeCount;t<n;t+=1)r.appendChild(o.getRangeAt(t).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(e,t){var n,r;return t||(t=window.getSelection().getRangeAt(0)),n=t.cloneRange(),r=t.cloneRange(),n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset),r.selectNodeContents(e),r.setStart(t.endContainer,t.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(e){var t=e.startContainer;return t===e.endContainer&&t.hasChildNodes()&&e.endOffset===e.startOffset+1},getSelectedParentElement:function(e){return e?this.rangeSelectsSingleNode(e)&&3!==e.startContainer.childNodes[e.startOffset].nodeType?e.startContainer.childNodes[e.startOffset]:3===e.startContainer.nodeType?e.startContainer.parentNode:e.startContainer:null},getSelectedElements:function(e){var t,n,r,i=e.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(t=i.getRangeAt(0),3===t.commonAncestorContainer.nodeType){for(n=[],r=t.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(t.commonAncestorContainer.getElementsByTagName("*"),function(e){return"function"!=typeof i.containsNode||i.containsNode(e,!0)})},selectNode:function(e,t){var n=t.createRange();n.selectNodeContents(e),this.selectRange(t,n)},select:function(e,t,n,r,i){var o=e.createRange();return o.setStart(t,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(e,o),o},clearSelection:function(e,t){t?e.getSelection().collapseToStart():e.getSelection().collapseToEnd()},moveCursor:function(e,t,n){this.select(e,t,n)},getSelectionRange:function(e){var t=e.getSelection();return 0===t.rangeCount?null:t.getRangeAt(0)},selectRange:function(e,t){var n=e.getSelection();n.removeAllRanges(),n.addRange(t)},getSelectionStart:function(e){var t=e.getSelection().anchorNode,n=t&&3===t.nodeType?t.parentNode:t;return n}};e.selection=n}(),function(){function t(t,n){return t.some(function(t){if("function"!=typeof t.getInteractionElements)return!1;var r=t.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some(function(t){return e.util.isDescendant(t,n,!0)}))})}var n=function(e){this.base=e,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!e.util.isIE&&!e.util.isEdge,attachDOMEvent:function(t,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;t=e.util.isElement(t)||[o,a].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){e.addEventListener(n,r,i),this.events.push([e,n,r,i])}.bind(this))},detachDOMEvent:function(t,n,r,i){var o,a,s=this.base.options.contentWindow,u=this.base.options.ownerDocument;null!==t&&(t=e.util.isElement(t)||[s,u].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){o=this.indexOfListener(e,n,r,i),o!==-1&&(a=this.events.splice(o,1)[0],a[0].removeEventListener(a[1],a[2],a[3]))}.bind(this)))},indexOfListener:function(e,t,n,r){var i,o,a;for(i=0,o=this.events.length;i<o;i+=1)if(a=this.events[i],a[0]===e&&a[1]===t&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var e=this.events.pop();e;)e[0].removeEventListener(e[1],e[2],e[3]),e=this.events.pop()},detachAllEventsFromElement:function(e){for(var t=this.events.filter(function(t){return t&&t[0].getAttribute&&t[0].getAttribute("medium-editor-index")===e.getAttribute("medium-editor-index")}),n=0,r=t.length;n<r;n++){var i=t[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(e){this.listeners.editableInput&&(this.contentCache[e.getAttribute("medium-editor-index")]=e.innerHTML),this.eventsCache&&this.eventsCache.forEach(function(t){this.attachDOMEvent(e,t.name,t.handler.bind(this))},this)},enableCustomEvent:function(e){void 0!==this.disabledEvents[e]&&delete this.disabledEvents[e]},disableCustomEvent:function(e){this.disabledEvents[e]=!0},attachCustomEvent:function(e,t){this.setupListener(e),this.customEvents[e]||(this.customEvents[e]=[]),this.customEvents[e].push(t)},detachCustomEvent:function(e,t){var n=this.indexOfCustomListener(e,t);n!==-1&&this.customEvents[e].splice(n,1)},indexOfCustomListener:function(e,t){return this.customEvents[e]&&this.customEvents[e].length?this.customEvents[e].indexOf(t):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(e,t,n){this.customEvents[e]&&!this.disabledEvents[e]&&this.customEvents[e].forEach(function(e){e(t,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(e){e.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(e){this.handleDocumentExecCommand(e)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var e=this.options.ownerDocument;if(this.execCommandListener&&e.execCommand.listeners){var t=e.execCommand.listeners.indexOf(this.execCommandListener);t!==-1&&e.execCommand.listeners.splice(t,1),e.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var e=this.options.ownerDocument;if(!e.execCommand.listeners){var t=function(t,n){e.execCommand.listeners&&e.execCommand.listeners.forEach(function(e){e({command:t[0],value:t[2],args:t,result:n})})},n=function(){var n=e.execCommand.orig.apply(this,arguments);if(!e.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return t(r,n),n};n.orig=e.execCommand,n.listeners=[],n.callListeners=t,e.execCommand=n}},unwrapExecCommand:function(){var e=this.options.ownerDocument;e.execCommand.orig&&(e.execCommand=e.execCommand.orig)},setupListener:function(e){if(!this.listeners[e]){switch(e){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":this.setupListener("externalInteraction");break;case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach(function(e){this.contentCache[e.getAttribute("medium-editor-index")]=e.innerHTML},this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":this.setupListener("editableKeydown");break;case"editableKeydownEnter":this.setupListener("editableKeydown");break;case"editableKeydownTab":this.setupListener("editableKeydown");break;case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[e]=!0}},attachToEachElement:function(e,t){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach(function(n){this.attachDOMEvent(n,e,t.bind(this))},this),this.eventsCache.push({name:e,handler:t})},cleanupElement:function(e){var t=e.getAttribute("medium-editor-index");t&&(this.detachAllEventsFromElement(e),this.contentCache&&delete this.contentCache[t])},focusElement:function(e){e.focus(),this.updateFocus(e,{target:e,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(e.util.isDescendant(o,this.lastMousedownTarget,!0)||t(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some(function(t){return!i&&e.util.isDescendant(t,n,!0)&&(i=t),!!i},this);var a=!e.util.isDescendant(o,n,!0)&&!t(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(e,t){if(this.contentCache){var n=e.getAttribute("medium-editor-index"),r=e.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",t,e),this.contentCache[n]=r}},handleDocumentSelectionChange:function(t){if(t.currentTarget&&t.currentTarget.activeElement){var n,r=t.currentTarget.activeElement;this.base.elements.some(function(t){return!!e.util.isDescendant(t,r,!0)&&(n=t,!0)},this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var e=this.base.getFocusedElement();e&&this.updateInput(e,{target:e,currentTarget:e})},handleBodyClick:function(e){this.updateFocus(e.target,e)},handleBodyFocus:function(e){this.updateFocus(e.target,e)},handleBodyMousedown:function(e){this.lastMousedownTarget=e.target},handleInput:function(e){this.updateInput(e.currentTarget,e)},handleClick:function(e){this.triggerCustomEvent("editableClick",e,e.currentTarget)},handleBlur:function(e){this.triggerCustomEvent("editableBlur",e,e.currentTarget)},handleKeypress:function(e){if(this.triggerCustomEvent("editableKeypress",e,e.currentTarget),this.keypressUpdateInput){var t={target:e.target,currentTarget:e.currentTarget};setTimeout(function(){this.updateInput(t.currentTarget,t)}.bind(this),0)}},handleKeyup:function(e){this.triggerCustomEvent("editableKeyup",e,e.currentTarget)},handleMouseover:function(e){this.triggerCustomEvent("editableMouseover",e,e.currentTarget)},handleDragging:function(e){this.triggerCustomEvent("editableDrag",e,e.currentTarget)},handleDrop:function(e){this.triggerCustomEvent("editableDrop",e,e.currentTarget)},handlePaste:function(e){this.triggerCustomEvent("editablePaste",e,e.currentTarget)},handleKeydown:function(t){return this.triggerCustomEvent("editableKeydown",t,t.currentTarget),e.util.isKey(t,e.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",t,t.currentTarget):e.util.isKey(t,e.util.keyCode.ENTER)||t.ctrlKey&&e.util.isKey(t,e.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",t,t.currentTarget):e.util.isKey(t,e.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",t,t.currentTarget):e.util.isKey(t,[e.util.keyCode.DELETE,e.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",t,t.currentTarget):void 0}},e.Events=n}(),function(){var t=e.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(n){t.isBuiltInButton(n)?e.Extension.call(this,this.defaults[n]):e.Extension.call(this,n)},init:function(){e.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var e=this.document.createElement("button"),t=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return e.classList.add("medium-editor-action"),e.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(t){e.classList.add(t)}),e.setAttribute("data-action",this.getAction()),n&&(e.setAttribute("title",n),e.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(t){e.setAttribute(t,this.attrs[t])},this),"fontawesome"===r&&this.contentFA&&(t=this.contentFA),e.innerHTML=t,e},handleClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.getAction();t&&this.execAction(t)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var e=null;return this.useQueryState&&(e=this.base.queryCommandState(this.getAction())),e},isAlreadyApplied:function(e){var t,n,r=!1,i=this.getTagNames();return this.knownState===!1||this.knownState===!0?this.knownState:(i&&i.length>0&&(r=i.indexOf(e.nodeName.toLowerCase())!==-1),!r&&this.style&&(t=this.style.value.split("|"),n=this.window.getComputedStyle(e,null).getPropertyValue(this.style.prop),t.forEach(function(e){this.knownState||(r=n.indexOf(e)!==-1,(r||"text-decoration"!==this.style.prop)&&(this.knownState=r))},this)),r)}});t.isBuiltInButton=function(t){return"string"==typeof t&&e.extensions.button.prototype.defaults.hasOwnProperty(t)},e.extensions.button=t}(),function(){e.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"<b>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>•</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>→</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>←</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>“</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}}}(),function(){var t=e.extensions.button.extend({init:function(){e.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"✓",formCloseLabel:"×",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.hideToolbarDefaultActions()},setToolbarPosition:function(){var e=this.base.getExtensionByName("toolbar");e&&e.setToolbarPosition()}});e.extensions.form=t}(),function(){var t=e.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',init:function(){e.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(t){t.preventDefault(),t.stopPropagation();var n=e.selection.getSelectionRange(this.document);return"a"===n.startContainer.nodeName.toLowerCase()||"a"===n.endContainer.nodeName.toLowerCase()||e.util.getClosestTag(e.selection.getSelectedParentElement(n),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(t){e.util.isKey(t,e.util.keyCode.K)&&e.util.isMetaCtrlKey(t)&&!t.shiftKey&&this.handleClick(t)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var e=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return e.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),e.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&e.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target">',"<label>",this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&e.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),e.join("")},isDisplayed:function(){return e.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){e.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(t){var n=this.getInput(),r=this.getAnchorTargetCheckbox(),i=this.getAnchorButtonCheckbox();if(t=t||{value:""},"string"==typeof t&&(t={
|
||
value:t}),this.base.saveSelection(),this.hideToolbarDefaultActions(),e.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=t.value,n.focus(),r&&(r.checked="_blank"===t.target),i){var o=t.buttonClass?t.buttonClass.split(" "):[];i.checked=o.indexOf(this.customClassOption)!==-1}},destroy:function(){return!!this.form&&(this.form.parentNode&&this.form.parentNode.removeChild(this.form),void delete this.form)},getFormOpts:function(){var e=this.getAnchorTargetCheckbox(),t=this.getAnchorButtonCheckbox(),n={value:this.getInput().value.trim()};return this.linkValidation&&(n.value=this.checkLinkFormat(n.value)),n.target="_self",e&&e.checked&&(n.target="_blank"),t&&t.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var e=this.getFormOpts();this.completeFormSave(e)},completeFormSave:function(e){this.base.restoreSelection(),this.execAction(this.action,e),this.base.checkSelection()},ensureEncodedUri:function(e){return e===decodeURI(e)?encodeURI(e):e},ensureEncodedUriComponent:function(e){return e===decodeURIComponent(e)?encodeURIComponent(e):e},ensureEncodedParam:function(e){var t=e.split("="),n=t[0],r=t[1];return n+(void 0===r?"":"="+this.ensureEncodedUriComponent(r))},ensureEncodedQuery:function(e){return e.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(e){var t=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i,n=/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/,r=e.split("?"),i=r[0],o=r[1];return n.test(e)?"tel:"+e:(t.test(e)?"":"http://")+this.ensureEncodedUri(i)+(void 0===o?"":"?"+this.ensureEncodedQuery(o))},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(e){var t=e.querySelector(".medium-editor-toolbar-close"),n=e.querySelector(".medium-editor-toolbar-save"),r=e.querySelector(".medium-editor-toolbar-input");this.on(e,"click",this.handleFormClick.bind(this)),this.on(r,"keyup",this.handleTextboxKeyup.bind(this)),this.on(t,"click",this.handleCloseClick.bind(this)),this.on(n,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var e=this.document,t=e.createElement("div");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),t.innerHTML=this.getTemplate(),this.attachFormEvents(t),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(t){return t.keyCode===e.util.keyCode.ENTER?(t.preventDefault(),void this.doFormSave()):void(t.keyCode===e.util.keyCode.ESCAPE&&(t.preventDefault(),this.doFormCancel()))},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.anchor=t}(),function(){var t=e.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var e=this.document.createElement("div");return e.id="medium-editor-anchor-preview-"+this.getEditorId(),e.className="medium-editor-anchor-preview",e.innerHTML=this.getTemplate(),this.on(e,"click",this.handleClick.bind(this)),e},getTemplate:function(){return'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(e){return!(!this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")&&!e.getAttribute("data-disable-preview"))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=e.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=e.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=e,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(e){e=e||this.activeAnchor;var t,n,r,i,o,a=this.window.innerWidth,s=this.anchorPreview.offsetHeight,u=e.getBoundingClientRect(),l=this.diffLeft,c=this.diffTop,f=this.getEditorOption("elementsContainer"),h=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,d={};t=this.anchorPreview.offsetWidth/2;var p=this.base.getExtensionByName("toolbar");p&&(l=p.diffLeft,c=p.diffTop),n=l-t,h?(i=f.getBoundingClientRect(),["top","left"].forEach(function(e){d[e]=u[e]-i[e]}),d.width=u.width,d.height=u.height,u=d,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-c-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+"px",this.anchorPreview.style.right="initial",r<t?(this.anchorPreview.style.left=n+t+"px",this.anchorPreview.style.right="initial"):a-r<t?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(e){var t=this.base.getExtensionByName("anchor"),n=this.activeAnchor;t&&n&&(e.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var e={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};t.showForm(e),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(t){var n=e.util.getClosestTag(t.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(e){e.relatedTarget&&/anchor-preview/.test(e.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;var e=(new Date).getTime()-this.lastOver;e>this.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});e.extensions.anchorPreview=t}(),function(){function t(t){return!e.util.getClosestTag(t,"a")}var n,r,i,o,a;n=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw",i="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+r+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+r+"))",o=new RegExp("^("+r+")$","i"),a=new RegExp(i,"gi");var s=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var e=0,t=0;t<this.window._mediumEditors.length;t++){var n=this.window._mediumEditors[t];null!==n&&void 0!==n.getExtensionByName("autoLink")&&e++}return 1===e},destroy:function(){this.document.queryCommandSupported("AutoUrlDetect")&&this.isLastInstance()&&this.document.execCommand("AutoUrlDetect",!1,!0)},onBlur:function(e,t){this.performLinking(t)},onKeypress:function(t){this.disableEventHandling||e.util.isKey(t,[e.util.keyCode.SPACE,e.util.keyCode.ENTER])&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var e=this.base.exportSelection();this.performLinking(t.target)&&this.base.importSelection(e,!0)}catch(n){window.console&&window.console.error("Failed to perform linking",n),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(t){var n=e.util.splitByBlockElements(t),r=!1;0===n.length&&(n=[t]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(t,{target:t,currentTarget:t}),r},removeObsoleteAutoLinkSpans:function(n){if(!n||3===n.nodeType)return!1;for(var r=n.querySelectorAll('span[data-auto-link="true"]'),i=!1,o=0;o<r.length;o++){var a=r[o].textContent;if(a.indexOf("://")===-1&&(a=e.util.ensureUrlHasProtocol(a)),r[o].getAttribute("data-href")!==a&&t(r[o])){i=!0;var s=a.replace(/\s+$/,"");if(r[o].getAttribute("data-href")===s){var u=a.length-s.length,l=e.util.splitOffDOMTree(r[o],this.splitTextBeforeEnd(r[o],u));r[o].parentNode.insertBefore(l,r[o].nextSibling)}else e.util.unwrap(r[o],this.document)}}return i},splitTextBeforeEnd:function(e,t){for(var n=this.document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),r=!0;r;)r=null!==n.lastChild();for(var i,o,a;t>0&&null!==a;)i=n.currentNode,o=i.nodeValue,o.length>t?(a=i.splitText(o.length-t),t=0):(a=n.previousNode(),t-=o.length);return a},performLinkingWithinElement:function(t){for(var n=this.findLinkableText(t),r=!1,i=0;i<n.length;i++){var o=e.util.findOrCreateMatchingTextNodes(this.document,t,n[i]);this.shouldNotLink(o)||this.createAutoLink(o,n[i].href)}return r},shouldNotLink:function(t){for(var n=!1,r=0;r<t.length&&n===!1;r++)n=!!e.util.traverseUp(t[r],function(e){return"a"===e.nodeName.toLowerCase()||e.getAttribute&&"true"===e.getAttribute("data-auto-link")});return n},findLinkableText:function(e){for(var t=e.textContent,r=null,i=[];null!==(r=a.exec(t));){var s=!0,u=r.index+r[0].length;s=!(0!==r.index&&n.indexOf(t[r.index-1])===-1||u!==t.length&&n.indexOf(t[u])===-1),s=s&&(r[0].indexOf("/")!==-1||o.test(r[0].split(".").pop().split("?").shift())),s&&i.push({href:r[0],start:r.index,end:u})}return i},createAutoLink:function(t,n){n=e.util.ensureUrlHasProtocol(n);var r=e.util.createLink(this.document,t,n,this.getEditorOption("targetBlank")?"_blank":null),i=this.document.createElement("span");for(i.setAttribute("data-auto-link","true"),i.setAttribute("data-href",n),r.insertBefore(i,r.firstChild);r.childNodes.length>1;)i.appendChild(r.childNodes[1])}});e.extensions.autoLink=s}(),function(){function t(t){var r=e.util.getContainerEditorElement(t),i=Array.prototype.slice.call(r.parentElement.querySelectorAll("."+n));i.forEach(function(e){e.classList.remove(n)})}var n="medium-editor-dragover",r=e.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy";var r=e.target.classList?e.target:e.target.parentElement;t(r),"dragover"===e.type&&r.classList.add(n)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),this.base.selectElement(e.target);var n=this.base.exportSelection();n.start=n.end,this.base.importSelection(n),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files).forEach(function(e){this.isAllowedFile(e)&&e.type.match("image")&&this.insertImageFile(e)},this),t(e.target)},isAllowedFile:function(e){return this.allowedTypes.some(function(t){return!!e.type.match(t)})},insertImageFile:function(t){if("function"==typeof FileReader){var n=new FileReader;n.readAsDataURL(t),n.addEventListener("load",function(t){var n=this.document.createElement("img");n.src=t.target.result,e.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});e.extensions.fileDragging=r}(),function(){var t=e.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach(function(e){var t=e.key.charCodeAt(0);this.keys[t]||(this.keys[t]=[]),this.keys[t].push(e)},this)},handleKeydown:function(t){var n=e.util.getKeyCode(t);if(this.keys[n]){var r=e.util.isMetaCtrlKey(t),i=!!t.shiftKey,o=!!t.altKey;this.keys[n].forEach(function(e){e.meta!==r||e.shift!==i||e.alt!==o&&void 0!==e.alt||(t.preventDefault(),t.stopPropagation(),"function"==typeof e.command?e.command.apply(this):!1!==e.command&&this.execAction(e.command))},this)}}});e.extensions.keyboardCommands=t}(),function(){var t=e.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"±",contentFA:'<i class="fa fa-font"></i>',fonts:["","Arial","Verdana","Times New Roman"],init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontName")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(e){var t=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){return!!this.form&&(this.form.parentNode&&this.form.parentNode.removeChild(this.form),void delete this.form)},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var e,t=this.document,n=t.createElement("div"),r=t.createElement("select"),i=t.createElement("a"),o=t.createElement("a");n.className="medium-editor-toolbar-form",n.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(n,"click",this.handleFormClick.bind(this));for(var a=0;a<this.fonts.length;a++)e=t.createElement("option"),e.innerHTML=this.fonts[a],e.value=this.fonts[a],r.appendChild(e);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"✓",n.appendChild(o),this.on(o,"click",this.handleSaveClick.bind(this),!0),i.setAttribute("href","#"),i.className="medium-editor-toobar-close",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"×",n.appendChild(i),this.on(i,"click",this.handleCloseClick.bind(this)),n},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("face")&&e.removeAttribute("face")})},handleFontChange:function(){var e=this.getSelect().value;""===e?this.clearFontName():this.execAction("fontName",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontName=t}(),function(){var t=e.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"±",contentFA:'<i class="fa fa-text-height"></i>',init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontSize")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(e){var t=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){return!!this.form&&(this.form.parentNode&&this.form.parentNode.removeChild(this.form),void delete this.form)},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var e=this.document,t=e.createElement("div"),n=e.createElement("input"),r=e.createElement("a"),i=e.createElement("a");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(t,"click",this.handleFormClick.bind(this)),n.setAttribute("type","range"),n.setAttribute("min","1"),n.setAttribute("max","7"),n.className="medium-editor-toolbar-input",t.appendChild(n),this.on(n,"change",this.handleSliderChange.bind(this)),i.setAttribute("href","#"),i.className="medium-editor-toobar-save",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"✓",t.appendChild(i),this.on(i,"click",this.handleSaveClick.bind(this),!0),r.setAttribute("href","#"),r.className="medium-editor-toobar-close",r.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"×",t.appendChild(r),this.on(r,"click",this.handleCloseClick.bind(this)),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("size")&&e.removeAttribute("size")})},handleSliderChange:function(){var e=this.getInput().value;"4"===e?this.clearFontSize():this.execAction("fontSize",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontSize=t}(),function(){function t(){return[[new RegExp(/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/<(\/?)(i|b|a)>/gi),"<$1$2>"],[new RegExp(/<a(?:(?!href).)+href=(?:"|”|“|"|“|”)(((?!"|”|“|"|“|”).)*)(?:"|”|“|"|“|”)(?:(?!>).)*>/gi),'<a href="$1">'],[new RegExp(/<\/p>\n+/gi),"</p>"],[new RegExp(/\n+<p/gi),"<p"],[new RegExp(/<\/?o:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi),"$1"]]}function n(e,t,n){var r=e.clipboardData||t.clipboardData||n.dataTransfer,i={};if(!r)return i;if(r.getData){var o=r.getData("Text");o&&o.length>0&&(i["text/plain"]=o)}if(r.types)for(var a=0;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var r="%ME_PASTEBIN%",i=null,o=null,a=function(e){e.stopPropagation()},s=e.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],unwrapTags:[],init:function(){e.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.getEditorElements().forEach(function(e){this.on(e,"paste",this.handlePaste.bind(this))},this),this.subscribe("addElement",this.handleAddElement.bind(this)))},handleAddElement:function(e,t){this.on(t,"paste",this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(e,t){if(!e.defaultPrevented){var r=n(e,this.window,this.document),i=r["text/html"],o=r["text/plain"];this.window.clipboardData&&void 0===e.clipboardData&&!i&&(i=o),(i||o)&&(e.preventDefault(),this.doPaste(i,o,t))}},doPaste:function(t,n,r){var i,o,a="";if(this.cleanPastedHTML&&t)return this.cleanPaste(t);if(this.getEditorOption("disableReturn")||r&&r.getAttribute("data-disable-return"))a=e.util.htmlEntities(n);else if(i=n.split(/[\r\n]+/g),i.length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+e.util.htmlEntities(i[o])+"</p>");else a=e.util.htmlEntities(i[0]);e.util.insertHTMLCommand(this.document,a)},handlePasteBinPaste:function(e){if(e.defaultPrevented)return void this.removePasteBin();var t=n(e,this.window,this.document),r=t["text/html"],i=t["text/plain"],a=o;return!this.cleanPastedHTML||r?(e.preventDefault(),this.removePasteBin(),this.doPaste(r,i,a),void this.trigger("editablePaste",{currentTarget:a,target:a},a)):void setTimeout(function(){this.cleanPastedHTML&&(r=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(r,i,a),this.trigger("editablePaste",{currentTarget:a,target:a},a)}.bind(this),0)},handleKeydown:function(t,n){e.util.isKey(t,e.util.keyCode.V)&&e.util.isMetaCtrlKey(t)&&(t.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(n))},createPasteBin:function(t){var n,s=e.selection.getSelectionRange(this.document),u=this.window.pageYOffset;o=t,s&&(n=s.getClientRects(),u+=n.length?n[0].top:s.startContainer.getBoundingClientRect().top),i=s;var l=this.document.createElement("div");l.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),l.setAttribute("style","border: 1px red solid; position: absolute; top: "+u+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),l.setAttribute("contentEditable",!0),l.innerHTML=r,this.document.body.appendChild(l),this.on(l,"focus",a),this.on(l,"focusin",a),this.on(l,"focusout",a),l.focus(),e.selection.selectNode(l,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(l,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==i&&(e.selection.selectRange(this.document,i),i=null),null!==o&&(o=null);var t=this.getPasteBin();t&&t&&(this.off(t,"focus",a),this.off(t,"focusin",a),this.off(t,"focusout",a),this.off(t,"paste",this.boundHandlePaste),t.parentElement.removeChild(t))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var e=this.getPasteBin();if(!e)return!1;if(e.firstChild&&"mcepastebin"===e.firstChild.id)return!1;var t=e.innerHTML;return!(!t||t===r)&&t},cleanPaste:function(e){var n,r,i,o,a=/<p|<br|<div/.test(e),s=[].concat(this.preCleanReplacements||[],t(),this.cleanReplacements||[]);for(n=0;n<s.length;n+=1)e=e.replace(s[n][0],s[n][1]);if(!a)return this.pasteHTML(e);for(i=this.document.createElement("div"),i.innerHTML="<p>"+e.split("<br><br>").join("</p><p>")+"</p>",r=i.querySelectorAll("a,p,div,br"),n=0;n<r.length;n+=1)switch(o=r[n],o.innerHTML=o.innerHTML.replace(/\n/gi," "),o.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(o);break;case"br":this.filterLineBreak(o)}this.pasteHTML(i.innerHTML)},pasteHTML:function(t,n){n=e.util.defaults({},n,{cleanAttrs:this.cleanAttrs,cleanTags:this.cleanTags,unwrapTags:this.unwrapTags});var r,i,o,a,s=this.document.createDocumentFragment();for(s.appendChild(this.document.createElement("body")),a=s.querySelector("body"),a.innerHTML=t,this.cleanupSpans(a),r=a.querySelectorAll("*"),o=0;o<r.length;o+=1)i=r[o],"a"===i.nodeName.toLowerCase()&&this.getEditorOption("targetBlank")&&e.util.setTargetBlank(i),e.util.cleanupAttrs(i,n.cleanAttrs),e.util.cleanupTags(i,n.cleanTags),e.util.unwrapTags(i,n.unwrapTags);e.util.insertHTMLCommand(this.document,a.innerHTML.replace(/ /g," "))},isCommonBlock:function(e){return e&&("p"===e.nodeName.toLowerCase()||"div"===e.nodeName.toLowerCase())},filterCommonBlocks:function(e){/^\s*$/.test(e.textContent)&&e.parentNode&&e.parentNode.removeChild(e)},filterLineBreak:function(e){this.isCommonBlock(e.previousElementSibling)?this.removeWithParent(e):!this.isCommonBlock(e.parentNode)||e.parentNode.firstChild!==e&&e.parentNode.lastChild!==e?e.parentNode&&1===e.parentNode.childElementCount&&""===e.parentNode.textContent&&this.removeWithParent(e):this.removeWithParent(e)},removeWithParent:function(e){e&&e.parentNode&&(e.parentNode.parentNode&&1===e.parentNode.childElementCount?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))},cleanupSpans:function(t){var n,r,i,o=t.querySelectorAll(".replace-with"),a=function(e){return e&&"#text"!==e.nodeName&&"false"===e.getAttribute("contenteditable")};for(n=0;n<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=t.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],e.util.traverseUp(r,a))return!1;e.util.unwrap(r,this.document)}}});e.extensions.paste=s}(),function(){var t=e.Extension.extend({name:"placeholder",text:"Type your text",hideOnClick:!0,init:function(){e.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(e,t){this.initElement(t)},initElement:function(e){e.getAttribute("data-placeholder")||e.setAttribute("data-placeholder",this.text),this.updatePlaceholder(e)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(e,t){this.cleanupElement(t)},cleanupElement:function(e){e.getAttribute("data-placeholder")===this.text&&e.removeAttribute("data-placeholder")},showPlaceholder:function(t){t&&(e.util.isFF&&0===t.childNodes.length?(t.classList.add("medium-editor-placeholder-relative"),t.classList.remove("medium-editor-placeholder")):(t.classList.add("medium-editor-placeholder"),t.classList.remove("medium-editor-placeholder-relative")))},hidePlaceholder:function(e){e&&(e.classList.remove("medium-editor-placeholder"),e.classList.remove("medium-editor-placeholder-relative"))},updatePlaceholder:function(e,t){return e.querySelector("img, blockquote, ul, ol, table")||""!==e.textContent.replace(/^\s+|\s+$/g,"")?this.hidePlaceholder(e):void(t||this.showPlaceholder(e))},attachEventHandlers:function(){this.hideOnClick&&this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableInput",this.handleInput.bind(this)),this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("addElement",this.handleAddElement.bind(this)),this.subscribe("removeElement",this.handleRemoveElement.bind(this))},handleInput:function(e,t){var n=this.hideOnClick&&t===this.base.getFocusedElement();this.updatePlaceholder(t,n)},handleFocus:function(e,t){this.hidePlaceholder(t)},handleBlur:function(e,t){this.updatePlaceholder(t)}});e.extensions.placeholder=t}(),function(){var t=e.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,"static":!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){e.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption("elementsContainer").appendChild(this.getToolbarElement())},forEachExtension:function(e,t){return this.base.extensions.forEach(function(n){if(n!==this)return e.apply(t||this,arguments)},this)},createToolbar:function(){var e=this.document.createElement("div");return e.id="medium-editor-toolbar-"+this.getEditorId(),e.className="medium-editor-toolbar",this["static"]?e.className+=" static-toolbar":this.relativeContainer?e.className+=" medium-editor-relative-toolbar":e.className+=" medium-editor-stalker-toolbar",e.appendChild(this.createToolbarButtons()),this.forEachExtension(function(t){t.hasForm&&e.appendChild(t.getForm())}),this.attachEventHandlers(),e},createToolbarButtons:function(){var t,n,r,i,o,a,s=this.document.createElement("ul");return s.id="medium-editor-toolbar-actions"+this.getEditorId(),s.className="medium-editor-toolbar-actions",s.style.display="block",this.buttons.forEach(function(r){
|
||
"string"==typeof r?(o=r,a=null):(o=r.name,a=r),i=this.base.addBuiltInExtension(o,a),i&&"function"==typeof i.getButton&&(n=i.getButton(this.base),t=this.document.createElement("li"),e.util.isElement(n)?t.appendChild(n):t.innerHTML=n,s.appendChild(t))},this),r=s.querySelectorAll("button"),r.length>0&&(r[0].classList.add(this.firstButtonClass),r[r.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=e.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this["static"]&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(t){return!(t&&t.target&&e.util.isDescendant(this.getToolbarElement(),t.target))&&void this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension(function(e){e.hasForm&&e.isDisplayed()&&e.hideForm()})},multipleBlockElementsSelected:function(){var t=/<[^\/>][^>]*><\/[^>]+>/gim,n=new RegExp("<("+e.util.blockContainerElementNames.join("|")+")[^>]*>","g"),r=e.selection.getSelectionHtml(this.document).replace(t,""),i=r.match(n);return!!i&&i.length>1},modifySelection:function(){var t=this.window.getSelection(),n=t.getRangeAt(0);if(this.standardizeSelectionStart&&n.startContainer.nodeValue&&n.startOffset===n.startContainer.nodeValue.length){var r=e.util.findAdjacentTextNodeWithContent(e.selection.getSelectionElement(this.window),n.startContainer,this.document);if(r){for(var i=0;0===r.nodeValue.substr(i,1).trim().length;)i+=1;n=e.selection.select(this.document,r,i,n.endContainer,n.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||e.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var t=e.selection.getSelectionElement(this.window);return!t||this.getEditorElements().indexOf(t)===-1||t.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this["static"]?this.showAndUpdateToolbar():!e.selection.selectionContainsContent(this.document)||this.allowMultiParagraphSelection===!1&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(e){"function"==typeof e.isActive&&"function"==typeof e.setInactive&&e.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var t,n=[],r=null,i=e.selection.getSelectionRange(this.document),o=function(e){"function"==typeof e.checkState?e.checkState(t):"function"==typeof e.isActive&&"function"==typeof e.isAlreadyApplied&&"function"==typeof e.setActive&&!e.isActive()&&e.isAlreadyApplied(t)&&e.setActive()};if(i&&(this.forEachExtension(function(e){return"function"==typeof e.queryCommandState&&(r=e.queryCommandState(),null!==r)?void(r&&"function"==typeof e.setActive&&e.setActive()):void n.push(e)}),t=e.selection.getSelectedParentElement(i),this.getEditorElements().some(function(n){return e.util.isDescendant(n,t,!0)})))for(;t&&(n.forEach(o),!e.util.isMediumEditorElement(t));)t=t.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var e=this.base.getFocusedElement(),t=this.window.getSelection();return e?void(!this["static"]&&t.isCollapsed||(this.showToolbar(),this.relativeContainer||(this["static"]?this.positionStaticToolbar(e):this.positionToolbar(t)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))):this},positionStaticToolbar:function(e){this.getToolbarElement().style.left="0";var t,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,i=this.getToolbarElement(),o=e.getBoundingClientRect(),a=o.top+n,s=o.left+o.width/2,u=i.offsetHeight,l=i.offsetWidth,c=l/2;switch(this.sticky?n>a+e.offsetHeight-u-this.stickyTopOffset?(i.style.top=a+e.offsetHeight-u+"px",i.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(i.classList.add("medium-editor-sticky-toolbar"),i.style.top=this.stickyTopOffset+"px"):(i.classList.remove("medium-editor-sticky-toolbar"),i.style.top=a-u+"px"):i.style.top=a-u+"px",this.align){case"left":t=o.left;break;case"right":t=o.right-l;break;case"center":t=s-c}t<0?t=0:t+l>r&&(t=r-Math.ceil(l)-1),i.style.left=t+"px"},positionToolbar:function(e){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var t=e.getRangeAt(0),n=t.getBoundingClientRect();(!n||0===n.height&&0===n.width&&t.startContainer===t.endContainer)&&(n=1===t.startContainer.nodeType&&t.startContainer.querySelector("img")?t.startContainer.querySelector("img").getBoundingClientRect():t.startContainer.getBoundingClientRect());var r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth,l=u/2,c=50,f=this.diffLeft-l,h=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(h).getPropertyValue("position"))>-1,p={},m={};d?(i=h.getBoundingClientRect(),["top","left"].forEach(function(e){m[e]=n[e]-i[e]}),m.width=n.width,m.height=n.height,n=m,o=i.width,p.top=h.scrollTop):p.top=this.window.pageYOffset,r=n.left+n.width/2,p.top+=n.top-s,n.top<c?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),p.top+=c+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),p.top+=this.diffTop),r<l?(p.left=f+l,p.right="initial"):o-r<l?(p.left="auto",p.right=0):(p.left=f+r,p.right="initial"),["top","left","right"].forEach(function(e){a.style[e]=p[e]+(isNaN(p[e])?"":"px")})}});e.extensions.toolbar=t}(),function(){var t=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){var t="medium-editor-dragover";e.preventDefault(),e.dataTransfer.dropEffect="copy","dragover"===e.type?e.target.classList.add(t):"dragleave"===e.type&&e.target.classList.remove(t)},handleDrop:function(t){var n,r="medium-editor-dragover";t.preventDefault(),t.stopPropagation(),t.dataTransfer.files&&(n=Array.prototype.slice.call(t.dataTransfer.files,0),n.some(function(t){if(t.type.match("image")){var n,r;n=new FileReader,n.readAsDataURL(t),r="medium-img-"+ +new Date,e.util.insertHTMLCommand(this.document,'<img class="medium-editor-image-loading" id="'+r+'" />'),n.onload=function(){var e=this.document.getElementById(r);e&&(e.removeAttribute("id"),e.removeAttribute("class"),e.src=n.result)}.bind(this)}}.bind(this))),t.target.classList.remove(r)}});e.extensions.imageDragging=t}(),function(){function t(t){var n=e.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=e.selection.getCaretOffsets(n);(void 0===r[i.left-1]||""===r[i.left-1].trim()||void 0!==r[i.left]&&""===r[i.left].trim())&&t.preventDefault()}function n(t,n){if(this.options.disableReturn||n.getAttribute("data-disable-return"))t.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute("data-disable-double-return")){var r=e.selection.getSelectionStart(this.options.ownerDocument);(r&&""===r.textContent.trim()&&"li"!==r.nodeName.toLowerCase()||r.previousElementSibling&&"br"!==r.previousElementSibling.nodeName.toLowerCase()&&""===r.previousElementSibling.textContent.trim())&&t.preventDefault()}}function r(t){var n=e.selection.getSelectionStart(this.options.ownerDocument),r=n&&n.nodeName.toLowerCase();"pre"===r&&(t.preventDefault(),e.util.insertHTMLCommand(this.options.ownerDocument," ")),e.util.isListItem(n)&&(t.preventDefault(),t.shiftKey?this.options.ownerDocument.execCommand("outdent",!1,null):this.options.ownerDocument.execCommand("indent",!1,null))}function i(t){var n,r=e.selection.getSelectionStart(this.options.ownerDocument),i=r.nodeName.toLowerCase(),o=/^(\s+|<br\/?>)?$/i,a=/h\d/i;e.util.isKey(t,[e.util.keyCode.BACKSPACE,e.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(i)&&0===e.selection.getCaretOffsets(r).left?e.util.isKey(t,e.util.keyCode.BACKSPACE)&&o.test(r.previousElementSibling.innerHTML)?(r.previousElementSibling.parentNode.removeChild(r.previousElementSibling),t.preventDefault()):!this.options.disableDoubleReturn&&e.util.isKey(t,e.util.keyCode.ENTER)&&(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",r.previousElementSibling.parentNode.insertBefore(n,r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.DELETE)&&r.nextElementSibling&&r.previousElementSibling&&!a.test(i)&&o.test(r.innerHTML)&&a.test(r.nextElementSibling.nodeName.toLowerCase())?(e.selection.moveCursor(this.options.ownerDocument,r.nextElementSibling),r.previousElementSibling.parentNode.removeChild(r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&"li"===i&&o.test(r.innerHTML)&&!r.previousElementSibling&&!r.parentElement.previousElementSibling&&r.nextElementSibling&&"li"===r.nextElementSibling.nodeName.toLowerCase()?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",r.parentElement.parentElement.insertBefore(n,r.parentElement),e.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&e.util.getClosestTag(r,"blockquote")!==!1&&0===e.selection.getCaretOffsets(r).left?(t.preventDefault(),e.util.execFormatBlock(this.options.ownerDocument,"p")):e.util.isKey(t,e.util.keyCode.ENTER)&&e.util.getClosestTag(r,"blockquote")!==!1&&0===e.selection.getCaretOffsets(r).right?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",r.parentElement.insertBefore(n,r.nextSibling),e.selection.moveCursor(this.options.ownerDocument,n),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&e.util.isMediumEditorElement(r.parentElement)&&!r.previousElementSibling&&r.nextElementSibling&&o.test(r.innerHTML)&&(t.preventDefault(),e.selection.moveCursor(this.options.ownerDocument,r.nextSibling),r.parentElement.removeChild(r))}function o(t){var n,r=e.selection.getSelectionStart(this.options.ownerDocument);r&&(e.util.isMediumEditorElement(r)&&0===r.children.length&&!e.util.isBlockContainer(r)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!e.util.isKey(t,e.util.keyCode.ENTER)||e.util.isListItem(r)||e.util.isBlockContainer(r)||(n=r.nodeName.toLowerCase(),"a"===n?this.options.ownerDocument.execCommand("unlink",!1,null):t.shiftKey||t.ctrlKey||this.options.ownerDocument.execCommand("formatBlock",!1,"p")))}function a(e,t){var n=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=t.innerHTML.trim())}function s(e){e._mediumEditors||(e._mediumEditors=[null]),this.id||(this.id=e._mediumEditors.length),e._mediumEditors[this.id]=this}function u(e){e._mediumEditors&&e._mediumEditors[this.id]&&(e._mediumEditors[this.id]=null)}function l(t,n,r){var i=[];if(t||(t=[]),"string"==typeof t&&(t=n.querySelectorAll(t)),e.util.isElement(t)&&(t=[t]),r)for(var o=0;o<t.length;o++){var a=t[o];!e.util.isElement(a)||a.getAttribute("data-medium-editor-element")||a.getAttribute("medium-editor-textarea-id")||i.push(a)}else i=Array.prototype.slice.apply(t);return i}function c(e){var t=e.parentNode.querySelector('textarea[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');t&&(t.classList.remove("medium-editor-hidden"),t.removeAttribute("medium-editor-textarea-id")),e.parentNode&&e.parentNode.removeChild(e)}function f(e,t){return Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])}),e}function h(e,t,n){var r={window:n.options.contentWindow,document:n.options.ownerDocument,base:n};return e=f(e,r),"function"==typeof e.init&&e.init(),e.name||(e.name=t),e}function d(){return!this.elements.every(function(e){return!!e.getAttribute("data-disable-toolbar")})&&this.options.toolbar!==!1}function p(){return!!d.call(this)&&this.options.anchorPreview!==!1}function m(){return this.options.placeholder!==!1}function g(){return this.options.autoLink!==!1}function v(){return this.options.imageDragging!==!1}function y(){return this.options.keyboardCommands!==!1}function b(){return!this.options.extensions.imageDragging}function _(e){for(var t=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=e.attributes;this.options.ownerDocument.getElementById(r);)n++,r="medium-editor-"+n;t.className=e.className,t.id=r,t.innerHTML=e.value,e.setAttribute("medium-editor-textarea-id",r);for(var o=0,a=i.length;o<a;o++)t.hasAttribute(i[o].nodeName)||t.setAttribute(i[o].nodeName,i[o].nodeValue);return e.form&&this.on(e.form,"reset",function(e){e.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),e.classList.add("medium-editor-hidden"),e.parentNode.insertBefore(t,e),t}function w(t,r){if(!t.getAttribute("data-medium-editor-element")){"textarea"===t.nodeName.toLowerCase()&&(t=_.call(this,t),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=a.bind(this),this.subscribe("editableInput",this.instanceHandleEditableInput))),this.options.disableEditing||t.getAttribute("data-disable-editing")||(t.setAttribute("contentEditable",!0),t.setAttribute("spellcheck",this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(t.getAttribute("data-disable-return")||t.getAttribute("data-disable-double-return"))&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||t.getAttribute("data-disable-return")||this.on(t,"keyup",o.bind(this));var i=e.util.guid();t.setAttribute("data-medium-editor-element",!0),t.classList.add("medium-editor-element"),t.setAttribute("role","textbox"),t.setAttribute("aria-multiline",!0),t.setAttribute("data-medium-editor-editor-index",r),t.setAttribute("medium-editor-index",i),S[i]=t.innerHTML,this.events.attachAllEventsToElement(t)}return t}function x(){this.subscribe("editableKeydownTab",r.bind(this)),this.subscribe("editableKeydownDelete",i.bind(this)),this.subscribe("editableKeydownEnter",i.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",t.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter))}function k(){if(this.extensions=[],Object.keys(this.options.extensions).forEach(function(e){"toolbar"!==e&&this.options.extensions[e]&&this.extensions.push(h(this.options.extensions[e],e,this))},this),b.call(this)){var t=this.options.fileDragging;t||(t={},v.call(this)||(t.allowedTypes=[])),this.addBuiltInExtension("fileDragging",t)}var n={paste:!0,"anchor-preview":p.call(this),autoLink:g.call(this),keyboardCommands:y.call(this),placeholder:m.call(this)};Object.keys(n).forEach(function(e){n[e]&&this.addBuiltInExtension(e)},this);var r=this.options.extensions.toolbar;if(!r&&d.call(this)){var i=e.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new e.extensions.toolbar(i)}r&&this.extensions.push(h(r,"toolbar",this))}function C(t,n){var r=[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]];return n&&r.forEach(function(t){n.hasOwnProperty(t[0])&&void 0!==n[t[0]]&&e.util.deprecated(t[0],t[1],"v6.0.0")}),e.util.defaults({},n,t)}function E(t,n){var r,i,o=/^append-(.+)$/gi,a=/justify([A-Za-z]*)$/g;if(r=o.exec(t))return e.util.execFormatBlock(this.options.ownerDocument,r[1]);if("fontSize"===t)return n.size&&e.util.deprecated(".size option for fontSize command",".value","6.0.0"),i=n.value||n.size,this.options.ownerDocument.execCommand("fontSize",!1,i);if("fontName"===t)return n.name&&e.util.deprecated(".name option for fontName command",".value","6.0.0"),i=n.value||n.name,this.options.ownerDocument.execCommand("fontName",!1,i);if("createLink"===t)return this.createLink(n);if("image"===t){var s=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,s)}if(a.exec(t)){var u=this.options.ownerDocument.execCommand(t,!1,null),l=e.selection.getSelectedParentElement(e.selection.getSelectionRange(this.options.ownerDocument));return l&&$.call(this,e.util.getTopBlockContainer(l)),u}return i=n&&n.value,this.options.ownerDocument.execCommand(t,!1,i)}function $(t){if(t){var n,r=Array.prototype.slice.call(t.childNodes).filter(function(e){var t="div"===e.nodeName.toLowerCase();return t&&!n&&(n=e.style.textAlign),t});r.length&&(this.saveSelection(),r.forEach(function(t){if(t.style.textAlign===n){var r=t.lastChild;if(r){e.util.unwrap(t,this.options.ownerDocument);var i=this.options.ownerDocument.createElement("BR");r.parentNode.insertBefore(i,r.nextSibling)}}},this),t.style.textAlign=n,this.restoreSelection())}}var S={};e.prototype={init:function(e,t){return this.options=C.call(this,this.defaults,t),this.origElements=e,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(s.call(this,this.options.contentWindow),this.events=new e.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,k.call(this),x.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach(function(e){"function"==typeof e.destroy&&e.destroy()},this),this.events.destroy(),this.elements.forEach(function(e){this.options.spellcheck&&(e.innerHTML=e.innerHTML),e.removeAttribute("contentEditable"),e.removeAttribute("spellcheck"),e.removeAttribute("data-medium-editor-element"),e.classList.remove("medium-editor-element"),e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("medium-editor-index"),e.removeAttribute("data-medium-editor-editor-index"),e.getAttribute("medium-editor-textarea-id")&&c(e)},this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,u.call(this,this.options.contentWindow))},on:function(e,t,n,r){return this.events.attachDOMEvent(e,t,n,r),this},off:function(e,t,n,r){return this.events.detachDOMEvent(e,t,n,r),this},subscribe:function(e,t){return this.events.attachCustomEvent(e,t),this},unsubscribe:function(e,t){return this.events.detachCustomEvent(e,t),this},trigger:function(e,t,n){return this.events.triggerCustomEvent(e,t,n),this},delay:function(e){var t=this;return setTimeout(function(){t.isActive&&e()},this.options.delay)},serialize:function(){var e,t,n={},r=this.elements.length;for(e=0;e<r;e+=1)t=""!==this.elements[e].id?this.elements[e].id:"element-"+e,n[t]={value:this.elements[e].innerHTML.trim()};return n},getExtensionByName:function(e){var t;return this.extensions&&this.extensions.length&&this.extensions.some(function(n){return n.name===e&&(t=n,!0)}),t},addBuiltInExtension:function(t,n){var r,i=this.getExtensionByName(t);if(i)return i;switch(t){case"anchor":r=e.util.extend({},this.options.anchor,n),i=new e.extensions.anchor(r);break;case"anchor-preview":i=new e.extensions.anchorPreview(this.options.anchorPreview);break;case"autoLink":i=new e.extensions.autoLink;break;case"fileDragging":i=new e.extensions.fileDragging(n);break;case"fontname":i=new e.extensions.fontName(this.options.fontName);break;case"fontsize":i=new e.extensions.fontSize(n);break;case"keyboardCommands":i=new e.extensions.keyboardCommands(this.options.keyboardCommands);break;case"paste":i=new e.extensions.paste(this.options.paste);break;case"placeholder":i=new e.extensions.placeholder(this.options.placeholder);break;default:e.extensions.button.isBuiltInButton(t)&&(n?(r=e.util.defaults({},n,e.extensions.button.prototype.defaults[t]),i=new e.extensions.button(r)):i=new e.extensions.button(t))}return i&&this.extensions.push(h(i,t,this)),i},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var e=this.getExtensionByName("toolbar");return e&&e.checkState(),this},queryCommandState:function(e){var t,n=/^full-(.+)$/gi,r=null;t=n.exec(e),t&&(e=t[1]);try{r=this.options.ownerDocument.queryCommandState(e)}catch(i){r=null}return r},execAction:function(t,n){var r,i,o=/^full-(.+)$/gi;return r=o.exec(t),r?(this.saveSelection(),this.selectAllContents(),i=E.call(this,r[1],n),this.restoreSelection()):i=E.call(this,t,n),"insertunorderedlist"!==t&&"insertorderedlist"!==t||e.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),i},getSelectedParentElement:function(t){return void 0===t&&(t=this.options.contentWindow.getSelection().getRangeAt(0)),e.selection.getSelectedParentElement(t)},selectAllContents:function(){var t=e.selection.getSelectionElement(this.options.contentWindow);if(t){for(;1===t.children.length;)t=t.children[0];this.selectElement(t)}},selectElement:function(t){e.selection.selectNode(t,this.options.ownerDocument);var n=e.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var e;return this.elements.some(function(t){return!e&&t.getAttribute("data-medium-focused")&&(e=t),!!e},this),e},exportSelection:function(){var t=e.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(t),r=null;return n>=0&&(r=e.selection.exportSelection(t,this.options.ownerDocument)),null!==r&&0!==n&&(r.editableElementIndex=n),r},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(t,n){if(t){var r=this.elements[t.editableElementIndex||0];e.selection.importSelection(t,r,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(t){var n,r=e.selection.getSelectionElement(this.options.contentWindow),i={};if(this.elements.indexOf(r)!==-1){try{if(this.events.disableCustomEvent("editableInput"),t.url&&e.util.deprecated(".url option for createLink",".value","6.0.0"),n=t.url||t.value,n&&n.trim().length>0){var o=this.options.contentWindow.getSelection();if(o){var a,s,u,l,c=o.getRangeAt(0),f=c.commonAncestorContainer;if(3===c.endContainer.nodeType&&3!==c.startContainer.nodeType&&0===c.startOffset&&c.startContainer.firstChild===c.endContainer&&(f=c.endContainer),s=e.util.getClosestBlockContainer(c.startContainer),u=e.util.getClosestBlockContainer(c.endContainer),3!==f.nodeType&&0!==f.textContent.length&&s===u){var h=s||r,d=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),a=this.exportSelection(),d.appendChild(h.cloneNode(!0)),r===h?e.selection.select(this.options.ownerDocument,h.firstChild,0,h.lastChild,3===h.lastChild.nodeType?h.lastChild.nodeValue.length:h.lastChild.childNodes.length):e.selection.select(this.options.ownerDocument,h,0,h,h.childNodes.length);var p=this.exportSelection();l=e.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,d,{start:a.start-p.start,end:a.end-p.start,editableElementIndex:a.editableElementIndex}),0===l.length&&(d=this.options.ownerDocument.createDocumentFragment(),d.appendChild(f.cloneNode(!0)),l=[d.firstChild.firstChild,d.firstChild.lastChild]),e.util.createLink(this.options.ownerDocument,l,n.trim());var m=(d.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;e.util.insertHTMLCommand(this.options.ownerDocument,d.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=m,a.end-=m,this.importSelection(a)}else this.options.ownerDocument.execCommand("createLink",!1,n);this.options.targetBlank||"_blank"===t.target?e.util.setTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),n):e.util.removeTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),n),t.buttonClass&&e.util.addClassToAnchors(e.selection.getSelectionStart(this.options.ownerDocument),t.buttonClass)}}if(this.options.targetBlank||"_blank"===t.target||t.buttonClass){i=this.options.ownerDocument.createEvent("HTMLEvents"),i.initEvent("input",!0,!0,this.options.contentWindow);for(var g=0,v=this.elements.length;g<v;g+=1)this.elements[g].dispatchEvent(i)}}finally{this.events.enableCustomEvent("editableInput")}this.events.triggerCustomEvent("editableInput",i,r)}},cleanPaste:function(e){this.getExtensionByName("paste").cleanPaste(e)},pasteHTML:function(e,t){this.getExtensionByName("paste").pasteHTML(e,t)},setContent:function(e,t){if(t=t||0,this.elements[t]){var n=this.elements[t];n.innerHTML=e,this.checkContentChanged(n)}},getContent:function(e){return e=e||0,this.elements[e]?this.elements[e].innerHTML.trim():null},checkContentChanged:function(t){t=t||e.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(t,{target:t,currentTarget:t})},resetContent:function(e){if(e){var t=this.elements.indexOf(e);return void(t!==-1&&this.setContent(S[e.getAttribute("medium-editor-index")],t))}this.elements.forEach(function(e,t){this.setContent(S[e.getAttribute("medium-editor-index")],t)},this)},addElements:function(e){var t=l(e,this.options.ownerDocument,!0);return 0!==t.length&&void t.forEach(function(e){e=w.call(this,e,this.id),this.elements.push(e),this.trigger("addElement",{target:e,currentTarget:e},e)},this)},removeElements:function(e){var t=l(e,this.options.ownerDocument),n=t.map(function(e){return e.getAttribute("medium-editor-textarea-id")&&e.parentNode?e.parentNode.querySelector('div[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]'):e});this.elements=this.elements.filter(function(e){return n.indexOf(e)===-1||(this.events.cleanupElement(e),e.getAttribute("medium-editor-textarea-id")&&c(e),this.trigger("removeElement",{target:e,currentTarget:e},e),!1)},this)}},e.getEditorFromElement=function(e){var t=e.getAttribute("data-medium-editor-editor-index"),n=e&&e.ownerDocument&&(e.ownerDocument.defaultView||e.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors[t]?n._mediumEditors[t]:null}}(),function(){e.prototype.defaults={activeButtonClass:"medium-editor-button-active",buttonLabels:!1,delay:0,disableReturn:!1,disableDoubleReturn:!1,disableExtraSpaces:!1,disableEditing:!1,autoLink:!1,elementsContainer:!1,contentWindow:window,ownerDocument:document,targetBlank:!1,extensions:{},spellcheck:!0}}(),e.parseVersionString=function(e){var t=e.split("-"),n=t[0].split("."),r=t.length>1?t[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},e.version=e.parseVersionString.call(this,{version:"5.22.2"}.version),e}()),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.toMarkdown=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[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:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,e,t,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(e,t,n){"use strict";function r(e){return b.indexOf(e.nodeName.toLowerCase())!==-1}function i(e){return _.indexOf(e.nodeName.toLowerCase())!==-1}function o(e){var t=(new v).parseFromString(e,"text/html");return y(t.documentElement,r),t}function a(e){for(var t,n,r,i=[e],o=[];i.length>0;)for(t=i.shift(),o.push(t),n=t.childNodes,r=0;r<n.length;r++)1===n[r].nodeType&&i.push(n[r]);return o.shift(),o}function s(e){for(var t="",n=0;n<e.childNodes.length;n++)if(1===e.childNodes[n].nodeType)t+=e.childNodes[n]._replacement;else{if(3!==e.childNodes[n].nodeType)continue;t+=e.childNodes[n].data}return t}function u(e,t){return e.cloneNode(!1).outerHTML.replace("><",">"+t+"<")}function l(e,t){if("string"==typeof t)return t===e.nodeName.toLowerCase();if(Array.isArray(t))return t.indexOf(e.nodeName.toLowerCase())!==-1;if("function"==typeof t)return t.call(d,e);throw new TypeError("`filter` needs to be a string, array, or function")}function c(e,t){var n,i,o;return"left"===e?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(3===n.nodeType?o=i.test(n.nodeValue):1!==n.nodeType||r(n)||(o=i.test(n.textContent))),o}function f(e,t){var n="",i="";if(!r(e)){var o=/^[ \r\n\t]/.test(t),a=/[ \r\n\t]$/.test(t);o&&!c("left",e)&&(n=" "),a&&!c("right",e)&&(i=" ")}return{leading:n,trailing:i}}function h(e){var t,n=s(e);if(!i(e)&&!/A|TH|TD/.test(e.nodeName)&&/^\s*$/i.test(n))return void(e._replacement="");for(var r=0;r<p.length;r++){var o=p[r];if(l(e,o.filter)){if("function"!=typeof o.replacement)throw new TypeError("`replacement` needs to be a function that returns a string");var a=f(e,n);(a.leading||a.trailing)&&(n=n.trim()),t=a.leading+o.replacement.call(d,n,e)+a.trailing;break}}e._replacement=t}var d,p,m=e("./lib/md-converters"),g=e("./lib/gfm-converters"),v=e("./lib/html-parser"),y=e("collapse-whitespace"),b=["address","article","aside","audio","blockquote","body","canvas","center","dd","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frameset","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","isindex","li","main","menu","nav","noframes","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul"],_=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];
|
||
d=function(e,t){if(t=t||{},"string"!=typeof e)throw new TypeError(e+" is not a string");if(""===e)return"";e=e.replace(/(\d+)\. /g,"$1\\. ");var n,r=o(e).body,i=a(r);p=m.slice(0),t.gfm&&(p=g.concat(p)),t.converters&&(p=t.converters.concat(p));for(var u=i.length-1;u>=0;u--)h(i[u]);return n=s(r),n.replace(/^[\t\r\n]+|[\t\r\n\s]+$/g,"").replace(/\n\s+\n/g,"\n\n").replace(/\n{3,}/g,"\n\n")},d.isBlock=r,d.isVoid=i,d.outer=u,t.exports=d},{"./lib/gfm-converters":2,"./lib/html-parser":3,"./lib/md-converters":4,"collapse-whitespace":7}],2:[function(e,t,n){"use strict";function r(e,t){var n=Array.prototype.indexOf.call(t.parentNode.childNodes,t),r=" ";return 0===n&&(r="| "),r+e+" |"}var i=/highlight highlight-(\S+)/;t.exports=[{filter:"br",replacement:function(){return"\n"}},{filter:["del","s","strike"],replacement:function(e){return"~~"+e+"~~"}},{filter:function(e){return"checkbox"===e.type&&"LI"===e.parentNode.nodeName},replacement:function(e,t){return(t.checked?"[x]":"[ ]")+" "}},{filter:["th","td"],replacement:function(e,t){return r(e,t)}},{filter:"tr",replacement:function(e,t){var n="",i={left:":--",right:"--:",center:":-:"};if("THEAD"===t.parentNode.nodeName)for(var o=0;o<t.childNodes.length;o++){var a=t.childNodes[o].attributes.align,s="---";a&&(s=i[a.value]||s),n+=r(s,t.childNodes[o])}return"\n"+e+(n?"\n"+n:"")}},{filter:"table",replacement:function(e){return"\n\n"+e+"\n\n"}},{filter:["thead","tbody","tfoot"],replacement:function(e){return e}},{filter:function(e){return"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t){return"\n\n```\n"+t.firstChild.textContent+"\n```\n\n"}},{filter:function(e){return"PRE"===e.nodeName&&"DIV"===e.parentNode.nodeName&&i.test(e.parentNode.className)},replacement:function(e,t){var n=t.parentNode.className.match(i)[1];return"\n\n```"+n+"\n"+t.textContent+"\n```\n\n"}},{filter:function(e){return"DIV"===e.nodeName&&i.test(e.className)},replacement:function(e){return"\n\n"+e+"\n\n"}}]},{}],3:[function(e,t,n){function r(){var e=a.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(n){}return t}function i(){var t=function(){};if("undefined"==typeof document){var n=e("jsdom");t.prototype.parseFromString=function(e){return n.jsdom(e,{features:{FetchExternalResources:[],ProcessExternalResources:!1}})}}else o()?t.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t}:t.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t};return t}function o(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){window.ActiveXObject&&(e=!0)}return e}var a="undefined"!=typeof window?window:this;t.exports=r()?a.DOMParser:i()},{jsdom:6}],4:[function(e,t,n){"use strict";t.exports=[{filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},{filter:"br",replacement:function(){return" \n"}},{filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t){for(var n=t.nodeName.charAt(1),r="",i=0;i<n;i++)r+="#";return"\n\n"+r+" "+e+"\n\n"}},{filter:"hr",replacement:function(){return"\n\n* * *\n\n"}},{filter:["em","i"],replacement:function(e){return"_"+e+"_"}},{filter:["strong","b"],replacement:function(e){return"**"+e+"**"}},{filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){return"`"+e+"`"}},{filter:function(e){return"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.title?' "'+t.title+'"':"";return"["+e+"]("+t.getAttribute("href")+n+")"}},{filter:"img",replacement:function(e,t){var n=t.alt||"",r=t.getAttribute("src")||"",i=t.title||"",o=i?' "'+i+'"':"";return r?"":""}},{filter:function(e){return"PRE"===e.nodeName&&"CODE"===e.firstChild.nodeName},replacement:function(e,t){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},{filter:"blockquote",replacement:function(e){return e=e.trim(),e=e.replace(/\n{3,}/g,"\n\n"),e=e.replace(/^/gm,"> "),"\n\n"+e+"\n\n"}},{filter:"li",replacement:function(e,t){e=e.replace(/^\s+/,"").replace(/\n/gm,"\n ");var n="* ",r=t.parentNode,i=Array.prototype.indexOf.call(r.children,t)+1;return n=/ol/i.test(r.nodeName)?i+". ":"* ",n+e}},{filter:["ul","ol"],replacement:function(e,t){for(var n=[],r=0;r<t.childNodes.length;r++)n.push(t.childNodes[r]._replacement);return/li/i.test(t.parentNode.nodeName)?"\n"+n.join("\n"):"\n\n"+n.join("\n")+"\n\n"}},{filter:function(e){return this.isBlock(e)},replacement:function(e,t){return"\n\n"+this.outer(t,e)+"\n\n"}},{filter:function(){return!0},replacement:function(e,t){return this.outer(t,e)}}]},{}],5:[function(e,t,n){t.exports=["address","article","aside","audio","blockquote","canvas","dd","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","noscript","ol","output","p","pre","section","table","tfoot","ul","video"]},{}],6:[function(e,t,n){},{}],7:[function(e,t,n){"use strict";function r(e){return!(!e||!l[e.nodeName])}function i(e){return!(!e||!u[e.nodeName])}function o(e,t){if(e.firstChild&&"PRE"!==e.nodeName){"function"!=typeof t&&(t=r);for(var n=null,o=!1,u=null,l=s(u,e);l!==e;){if(3===l.nodeType){var c=l.data.replace(/[ \r\n\t]+/g," ");if(n&&!/ $/.test(n.data)||o||" "!==c[0]||(c=c.substr(1)),!c){l=a(l);continue}l.data=c,n=l}else{if(1!==l.nodeType){l=a(l);continue}t(l)||"BR"===l.nodeName?(n&&(n.data=n.data.replace(/ $/,"")),n=null,o=!1):i(l)&&(n=null,o=!0)}var f=s(u,l);u=l,l=f}n&&(n.data=n.data.replace(/ $/,""),n.data||a(n))}}function a(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function s(e,t){return e&&e.parentNode===t||"PRE"===t.nodeName?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var u=e("void-elements");Object.keys(u).forEach(function(e){u[e.toUpperCase()]=1});var l={};e("block-elements").forEach(function(e){l[e.toUpperCase()]=1}),t.exports=o},{"block-elements":5,"void-elements":8}],8:[function(e,t,n){t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},{}]},{},[1])(1)}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.markdownit=e()}}(function(){var e;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(e,t,n){"use strict";t.exports=e("entities/maps/entities.json")},{"entities/maps/entities.json":52}],2:[function(e,t,n){"use strict";t.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},{}],3:[function(e,t,n){"use strict";var r="[a-zA-Z_:][a-zA-Z0-9:._-]*",i="[^\"'=<>`\\x00-\\x20]+",o="'[^']*'",a='"[^"]*"',s="(?:"+i+"|"+o+"|"+a+")",u="(?:\\s+"+r+"(?:\\s*=\\s*"+s+")?)",l="<[A-Za-z][A-Za-z0-9\\-]*"+u+"*\\s*\\/?>",c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",f="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",h="<[?].*?[?]>",d="<![A-Z]+\\s+[^>]*>",p="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",m=new RegExp("^(?:"+l+"|"+c+"|"+f+"|"+h+"|"+d+"|"+p+")"),g=new RegExp("^(?:"+l+"|"+c+")");t.exports.HTML_TAG_RE=m,t.exports.HTML_OPEN_CLOSE_TAG_RE=g},{}],4:[function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object String]"===r(e)}function o(e,t){return w.call(e,t)}function a(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function s(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function u(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function l(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function c(e,t){var n=0;return o($,t)?$[t]:35===t.charCodeAt(0)&&E.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),u(n))?l(n):e}function f(e){return e.indexOf("\\")<0?e:e.replace(x,"$1")}function h(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(C,function(e,t,n){return t?t:c(e,n)})}function d(e){return T[e]}function p(e){return S.test(e)?e.replace(A,d):e}function m(e){return e.replace(D,"\\$&")}function g(e){switch(e){case 9:case 32:return!0}return!1}function v(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function y(e){return N.test(e)}function b(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function _(e){return e.trim().replace(/\s+/g," ").toUpperCase()}var w=Object.prototype.hasOwnProperty,x=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,k=/&([a-z#][a-z0-9]{1,31});/gi,C=new RegExp(x.source+"|"+k.source,"gi"),E=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,$=e("./entities"),S=/[&<>"]/,A=/[&<>"]/g,T={"&":"&","<":"<",">":">",'"':"""},D=/[.?*+^$[\]\\(){}|-]/g,N=e("uc.micro/categories/P/regex");n.lib={},n.lib.mdurl=e("mdurl"),n.lib.ucmicro=e("uc.micro"),n.assign=a,n.isString=i,n.has=o,n.unescapeMd=f,n.unescapeAll=h,n.isValidEntityCode=u,n.fromCodePoint=l,n.escapeHtml=p,n.arrayReplaceAt=s,n.isSpace=g,n.isWhiteSpace=v,n.isMdAsciiPunct=b,n.isPunctChar=y,n.escapeRE=m,n.normalizeReference=_},{"./entities":1,mdurl:58,"uc.micro":65,"uc.micro/categories/P/regex":63}],5:[function(e,t,n){"use strict";n.parseLinkLabel=e("./parse_link_label"),n.parseLinkDestination=e("./parse_link_destination"),n.parseLinkTitle=e("./parse_link_title")},{"./parse_link_destination":6,"./parse_link_label":7,"./parse_link_title":8}],6:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace,i=e("../common/utils").unescapeAll;t.exports=function(e,t,n){var o,a,s=0,u=t,l={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(o=e.charCodeAt(t),10===o||r(o))return l;if(62===o)return l.pos=t+1,l.str=i(e.slice(u+1,t)),l.ok=!0,l;92===o&&t+1<n?t+=2:t++}return l}for(a=0;t<n&&(o=e.charCodeAt(t),32!==o)&&!(o<32||127===o);)if(92===o&&t+1<n)t+=2;else{if(40===o&&(a++,a>1))break;if(41===o&&(a--,a<0))break;t++}return u===t?l:(l.str=i(e.slice(u,t)),l.lines=s,l.pos=t,l.ok=!0,l)}},{"../common/utils":4}],7:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r,i,o,a,s=-1,u=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<u;){if(o=e.src.charCodeAt(e.pos),93===o&&(r--,0===r)){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return i&&(s=e.pos),e.pos=l,s}},{}],8:[function(e,t,n){"use strict";var r=e("../common/utils").unescapeAll;t.exports=function(e,t,n){var i,o,a=0,s=t,u={ok:!1,pos:0,lines:0,str:""};if(t>=n)return u;if(o=e.charCodeAt(t),34!==o&&39!==o&&40!==o)return u;for(t++,40===o&&(o=41);t<n;){if(i=e.charCodeAt(t),i===o)return u.pos=t+1,u.lines=a,u.str=r(e.slice(s+1,t)),u.ok=!0,u;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return u}},{"../common/utils":4}],9:[function(e,t,n){"use strict";function r(e){var t=e.trim().toLowerCase();return!v.test(t)||!!y.test(t)}function i(e){var t=p.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=m.toASCII(t.hostname)}catch(n){}return p.encode(p.format(t))}function o(e){var t=p.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=m.toUnicode(t.hostname)}catch(n){}return p.decode(p.format(t))}function a(e,t){return this instanceof a?(t||s.isString(e)||(t=e||{},e="default"),this.inline=new h,this.block=new f,this.core=new c,this.renderer=new l,this.linkify=new d,this.validateLink=r,this.normalizeLink=i,this.normalizeLinkText=o,this.utils=s,this.helpers=s.assign({},u),this.options={},this.configure(e),void(t&&this.set(t))):new a(e,t)}var s=e("./common/utils"),u=e("./helpers"),l=e("./renderer"),c=e("./parser_core"),f=e("./parser_block"),h=e("./parser_inline"),d=e("linkify-it"),p=e("mdurl"),m=e("punycode"),g={"default":e("./presets/default"),zero:e("./presets/zero"),commonmark:e("./presets/commonmark")},v=/^(vbscript|javascript|file|data):/,y=/^data:image\/(gif|png|jpeg|webp);/,b=["http:","https:","mailto:"];a.prototype.set=function(e){return s.assign(this.options,e),this},a.prototype.configure=function(e){var t,n=this;if(s.isString(e)&&(t=e,e=g[t],!e))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},a.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},a.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},a.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},a.prototype.parse=function(e,t){var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},a.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},a.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},a.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},t.exports=a},{"./common/utils":4,"./helpers":5,"./parser_block":10,"./parser_core":11,"./parser_inline":12,"./presets/commonmark":13,"./presets/default":14,"./presets/zero":15,"./renderer":16,"linkify-it":53,mdurl:58,punycode:60}],10:[function(e,t,n){"use strict";function r(){this.ruler=new i;for(var e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1],{alt:(o[e][2]||[]).slice()})}var i=e("./ruler"),o=[["table",e("./rules_block/table"),["paragraph","reference"]],["code",e("./rules_block/code")],["fence",e("./rules_block/fence"),["paragraph","reference","blockquote","list"]],["blockquote",e("./rules_block/blockquote"),["paragraph","reference","list"]],["hr",e("./rules_block/hr"),["paragraph","reference","blockquote","list"]],["list",e("./rules_block/list"),["paragraph","reference","blockquote"]],["reference",e("./rules_block/reference")],["heading",e("./rules_block/heading"),["paragraph","reference","blockquote"]],["lheading",e("./rules_block/lheading")],["html_block",e("./rules_block/html_block"),["paragraph","reference","blockquote"]],["paragraph",e("./rules_block/paragraph")]];r.prototype.tokenize=function(e,t,n){for(var r,i,o=this.ruler.getRules(""),a=o.length,s=t,u=!1,l=e.md.options.maxNesting;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.sCount[s]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(i=0;i<a&&!(r=o[i](e,s,n,!1));i++);e.tight=!u,e.isEmpty(e.line-1)&&(u=!0),s=e.line,s<n&&e.isEmpty(s)&&(u=!0,s++,e.line=s)}},r.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},r.prototype.State=e("./rules_block/state_block"),t.exports=r},{"./ruler":17,"./rules_block/blockquote":18,"./rules_block/code":19,"./rules_block/fence":20,"./rules_block/heading":21,"./rules_block/hr":22,"./rules_block/html_block":23,"./rules_block/lheading":24,"./rules_block/list":25,"./rules_block/paragraph":26,"./rules_block/reference":27,"./rules_block/state_block":28,"./rules_block/table":29}],11:[function(e,t,n){"use strict";function r(){this.ruler=new i;for(var e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1])}var i=e("./ruler"),o=[["normalize",e("./rules_core/normalize")],["block",e("./rules_core/block")],["inline",e("./rules_core/inline")],["linkify",e("./rules_core/linkify")],["replacements",e("./rules_core/replacements")],["smartquotes",e("./rules_core/smartquotes")]];r.prototype.process=function(e){var t,n,r;for(r=this.ruler.getRules(""),t=0,n=r.length;t<n;t++)r[t](e)},r.prototype.State=e("./rules_core/state_core"),t.exports=r},{"./ruler":17,"./rules_core/block":30,"./rules_core/inline":31,"./rules_core/linkify":32,"./rules_core/normalize":33,"./rules_core/replacements":34,"./rules_core/smartquotes":35,"./rules_core/state_core":36}],12:[function(e,t,n){"use strict";function r(){var e;for(this.ruler=new i,e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1]);for(this.ruler2=new i,e=0;e<a.length;e++)this.ruler2.push(a[e][0],a[e][1])}var i=e("./ruler"),o=[["text",e("./rules_inline/text")],["newline",e("./rules_inline/newline")],["escape",e("./rules_inline/escape")],["backticks",e("./rules_inline/backticks")],["strikethrough",e("./rules_inline/strikethrough").tokenize],["emphasis",e("./rules_inline/emphasis").tokenize],["link",e("./rules_inline/link")],["image",e("./rules_inline/image")],["autolink",e("./rules_inline/autolink")],["html_inline",e("./rules_inline/html_inline")],["entity",e("./rules_inline/entity")]],a=[["balance_pairs",e("./rules_inline/balance_pairs")],["strikethrough",e("./rules_inline/strikethrough").postProcess],["emphasis",e("./rules_inline/emphasis").postProcess],["text_collapse",e("./rules_inline/text_collapse")]];r.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if("undefined"!=typeof s[r])return void(e.pos=s[r]);if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos},r.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},r.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),o=this.ruler2.getRules(""),a=o.length,i=0;i<a;i++)o[i](s)},r.prototype.State=e("./rules_inline/state_inline"),t.exports=r},{"./ruler":17,"./rules_inline/autolink":37,"./rules_inline/backticks":38,"./rules_inline/balance_pairs":39,"./rules_inline/emphasis":40,"./rules_inline/entity":41,"./rules_inline/escape":42,"./rules_inline/html_inline":43,"./rules_inline/image":44,"./rules_inline/link":45,"./rules_inline/newline":46,"./rules_inline/state_inline":47,"./rules_inline/strikethrough":48,"./rules_inline/text":49,"./rules_inline/text_collapse":50}],13:[function(e,t,n){"use strict";t.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},{}],14:[function(e,t,n){"use strict";t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},{}],15:[function(e,t,n){"use strict";t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},{}],16:[function(e,t,n){"use strict";function r(){this.rules=i({},s)}var i=e("./common/utils").assign,o=e("./common/utils").unescapeAll,a=e("./common/utils").escapeHtml,s={};s.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+a(e[t].content)+"</code>"},s.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+a(e[t].content)+"</code></pre>\n"},s.fence=function(e,t,n,r,i){var s,u,l,c,f=e[t],h=f.info?o(f.info).trim():"",d="";return h&&(d=h.split(/\s+/g)[0]),s=n.highlight?n.highlight(f.content,d)||a(f.content):a(f.content),0===s.indexOf("<pre")?s+"\n":h?(u=f.attrIndex("class"),l=f.attrs?f.attrs.slice():[],u<0?l.push(["class",n.langPrefix+d]):l[u][1]+=" "+n.langPrefix+d,c={attrs:l},"<pre><code"+i.renderAttrs(c)+">"+s+"</code></pre>\n"):"<pre><code"+i.renderAttrs(f)+">"+s+"</code></pre>\n"},s.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},s.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},s.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},s.text=function(e,t){return a(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},r.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+a(e.attrs[t][0])+'="'+a(e.attrs[t][1])+'"';return r},r.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&a.nesting!==-1&&t&&e[t-1].hidden&&(i+="\n"),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&(r=e[t+1],"inline"===r.type||r.hidden?o=!1:r.nesting===-1&&r.tag===a.tag&&(o=!1))),i+=o?">\n":">")},r.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)r=e[a].type,i+="undefined"!=typeof o[r]?o[r](e,a,t,n,this):this.renderToken(e,a,t);return i},r.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type&&(r+=this.renderInlineAsText(e[i].children,t,n));return r},r.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)o=e[r].type,a+="inline"===o?this.renderInline(e[r].children,t,n):"undefined"!=typeof s[o]?s[e[r].type](e,r,t,n,this):this.renderToken(e,r,t,n);return a},t.exports=r},{"./common/utils":4}],17:[function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},r.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},t.exports=r},{}],18:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t,n,i){var o,a,s,u,l,c,f,h,d,p,m,g,v,y,b,_,w,x,k,C=e.bMarks[t]+e.tShift[t],E=e.eMarks[t];if(62!==e.src.charCodeAt(C++))return!1;if(i)return!0;for(g=e.blkIndent,e.blkIndent=0,u=d=e.sCount[t]+C-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(C)?(C++,u++,d++,o=!1,_=!0):9===e.src.charCodeAt(C)?(_=!0,(e.bsCount[t]+d)%4===3?(C++,u++,d++,o=!1):o=!0):_=!1,p=[e.bMarks[t]],e.bMarks[t]=C;C<E&&(a=e.src.charCodeAt(C),r(a));)9===a?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,C++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(_?1:0),c=C>=E,y=[e.sCount[t]],e.sCount[t]=d-u,b=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],x=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",h=t+1;h<n&&!(e.sCount[h]<g)&&(C=e.bMarks[h]+e.tShift[h],E=e.eMarks[h],!(C>=E));h++)if(62!==e.src.charCodeAt(C++)){if(c)break;for(w=!1,s=0,l=x.length;s<l;s++)if(x[s](e,h,n,!0)){w=!0;break}if(w)break;p.push(e.bMarks[h]),m.push(e.bsCount[h]),b.push(e.tShift[h]),y.push(e.sCount[h]),e.sCount[h]=-1}else{for(u=d=e.sCount[h]+C-(e.bMarks[h]+e.tShift[h]),32===e.src.charCodeAt(C)?(C++,u++,d++,o=!1,_=!0):9===e.src.charCodeAt(C)?(_=!0,(e.bsCount[h]+d)%4===3?(C++,u++,d++,o=!1):o=!0):_=!1,p.push(e.bMarks[h]),e.bMarks[h]=C;C<E&&(a=e.src.charCodeAt(C),r(a));)9===a?d+=4-(d+e.bsCount[h]+(o?1:0))%4:d++,C++;c=C>=E,m.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(_?1:0),y.push(e.sCount[h]),e.sCount[h]=d-u,b.push(e.tShift[h]),e.tShift[h]=C-e.bMarks[h]}for(k=e.push("blockquote_open","blockquote",1),k.markup=">",k.map=f=[t,0],e.md.block.tokenize(e,t,h),k=e.push("blockquote_close","blockquote",-1),k.markup=">",e.parentType=v,f[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=p[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=m[s];return e.blkIndent=g,!0}},{"../common/utils":4}],19:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,i=r}return e.line=i,o=e.push("code_block","code",0),o.content=e.getLines(t,i,4+e.blkIndent,!0),o.map=[t,e.line],!0}},{}],20:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i,o,a,s,u,l,c,f=!1,h=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(h+3>d)return!1;if(i=e.src.charCodeAt(h),126!==i&&96!==i)return!1;if(u=h,h=e.skipChars(h,i),o=h-u,o<3)return!1;if(c=e.src.slice(u,h),a=e.src.slice(h,d),a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;(s++,!(s>=n))&&(h=u=e.bMarks[s]+e.tShift[s],d=e.eMarks[s],!(h<d&&e.sCount[s]<e.blkIndent));)if(e.src.charCodeAt(h)===i&&!(e.sCount[s]-e.blkIndent>=4||(h=e.skipChars(h,i),h-u<o||(h=e.skipSpaces(h),h<d)))){f=!0;break}return o=e.sCount[t],e.line=s+(f?1:0),l=e.push("fence","code",0),l.info=a,l.content=e.getLines(t+1,s,o,!0),l.markup=c,l.map=[t,e.line],!0}},{}],21:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t,n,i){var o,a,s,u,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(o=e.src.charCodeAt(l),35!==o||l>=c)return!1;for(a=1,o=e.src.charCodeAt(++l);35===o&&l<c&&a<=6;)a++,o=e.src.charCodeAt(++l);return!(a>6||l<c&&!r(o))&&(!!i||(c=e.skipSpacesBack(c,l),s=e.skipCharsBack(c,35,l),s>l&&r(e.src.charCodeAt(s-1))&&(c=s),e.line=t+1,u=e.push("heading_open","h"+String(a),1),u.markup="########".slice(0,a),u.map=[t,e.line],u=e.push("inline","",0),u.content=e.src.slice(l,c).trim(),u.map=[t,e.line],u.children=[],u=e.push("heading_close","h"+String(a),-1),u.markup="########".slice(0,a),!0))}},{"../common/utils":4}],22:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t,n,i){var o,a,s,u,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(o=e.src.charCodeAt(l++),42!==o&&45!==o&&95!==o)return!1;for(a=1;l<c;){if(s=e.src.charCodeAt(l++),s!==o&&!r(s))return!1;s===o&&a++}return!(a<3)&&(!!i||(e.line=t+1,u=e.push("hr","hr",0),u.map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(o)),!0))}},{"../common/utils":4}],23:[function(e,t,n){"use strict";var r=e("../common/html_blocks"),i=e("../common/html_re").HTML_OPEN_CLOSE_TAG_RE,o=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];t.exports=function(e,t,n,r){var i,a,s,u,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(u=e.src.slice(l,c),i=0;i<o.length&&!o[i][0].test(u);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(u))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],u=e.src.slice(l,c),o[i][1].test(u)){0!==u.length&&a++;break}return e.line=a,s=e.push("html_block","",0),s.map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},{"../common/html_blocks":2,"../common/html_re":3}],24:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r,i,o,a,s,u,l,c,f,h,d=t+1,p=e.md.block.ruler.getRules("paragraph");for(h=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(u=e.bMarks[d]+e.tShift[d],l=e.eMarks[d],u<l&&(f=e.src.charCodeAt(u),(45===f||61===f)&&(u=e.skipChars(u,f),u=e.skipSpaces(u),u>=l)))){c=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=p.length;o<a;o++)if(p[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,s=e.push("heading_open","h"+String(c),1),s.markup=String.fromCharCode(f),s.map=[t,e.line],s=e.push("inline","",0),s.content=r,s.map=[t,e.line-1],s.children=[],s=e.push("heading_close","h"+String(c),-1),s.markup=String.fromCharCode(f),e.parentType=h,!0)}},{}],25:[function(e,t,n){"use strict";function r(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],n=e.src.charCodeAt(r++),42!==n&&45!==n&&43!==n?-1:r<i&&(o=e.src.charCodeAt(r),!a(o))?-1:r}function i(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if(n=e.src.charCodeAt(i++),n<48||n>57)return-1;for(;;){if(i>=o)return-1;n=e.src.charCodeAt(i++);{if(!(n>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}}return i<o&&(n=e.src.charCodeAt(i),!a(n))?-1:i}function o(e,t){var n,r,i=e.level+2;
|
||
for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}var a=e("../common/utils").isSpace;t.exports=function(e,t,n,s){var u,l,c,f,h,d,p,m,g,v,y,b,_,w,x,k,C,E,$,S,A,T,D,N,F,M,O,j,P=!1,L=!0;if(s&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(P=!0),(D=i(e,t))>=0){if(p=!0,F=e.bMarks[t]+e.tShift[t],_=Number(e.src.substr(F,D-F-1)),P&&1!==_)return!1}else{if(!((D=r(e,t))>=0))return!1;p=!1}if(P&&e.skipSpaces(D)>=e.eMarks[t])return!1;if(b=e.src.charCodeAt(D-1),s)return!0;for(y=e.tokens.length,p?(j=e.push("ordered_list_open","ol",1),1!==_&&(j.attrs=[["start",_]])):j=e.push("bullet_list_open","ul",1),j.map=v=[t,0],j.markup=String.fromCharCode(b),x=t,N=!1,O=e.md.block.ruler.getRules("list"),$=e.parentType,e.parentType="list";x<n;){for(T=D,w=e.eMarks[x],d=k=e.sCount[x]+D-(e.bMarks[t]+e.tShift[t]);T<w&&(u=e.src.charCodeAt(T),a(u));)9===u?k+=4-(k+e.bsCount[x])%4:k++,T++;if(l=T,h=l>=w?1:k-d,h>4&&(h=1),f=d+h,j=e.push("list_item_open","li",1),j.markup=String.fromCharCode(b),j.map=m=[t,0],C=e.blkIndent,A=e.tight,S=e.tShift[t],E=e.sCount[t],e.blkIndent=f,e.tight=!0,e.tShift[t]=l-e.bMarks[t],e.sCount[t]=k,l>=w&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(L=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=C,e.tShift[t]=S,e.sCount[t]=E,e.tight=A,j=e.push("list_item_close","li",-1),j.markup=String.fromCharCode(b),x=t=e.line,m[1]=x,l=e.bMarks[t],x>=n)break;if(e.sCount[x]<e.blkIndent)break;for(M=!1,c=0,g=O.length;c<g;c++)if(O[c](e,x,n,!0)){M=!0;break}if(M)break;if(p){if(D=i(e,x),D<0)break}else if(D=r(e,x),D<0)break;if(b!==e.src.charCodeAt(D-1))break}return j=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),j.markup=String.fromCharCode(b),v[1]=x,e.line=x,e.parentType=$,L&&o(e,y),!0}},{"../common/utils":4}],26:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,u=t+1,l=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(s=e.parentType,e.parentType="paragraph";u<c&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3||e.sCount[u]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,u,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,a=e.push("paragraph_open","p",1),a.map=[t,e.line],a=e.push("inline","",0),a.content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},{}],27:[function(e,t,n){"use strict";var r=e("../common/utils").normalizeReference,i=e("../common/utils").isSpace;t.exports=function(e,t,n,o){var a,s,u,l,c,f,h,d,p,m,g,v,y,b,_,w,x=0,k=e.bMarks[t]+e.tShift[t],C=e.eMarks[t],E=t+1;if(91!==e.src.charCodeAt(k))return!1;for(;++k<C;)if(93===e.src.charCodeAt(k)&&92!==e.src.charCodeAt(k-1)){if(k+1===C)return!1;if(58!==e.src.charCodeAt(k+1))return!1;break}for(l=e.lineMax,_=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";E<l&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3||e.sCount[E]<0)){for(b=!1,f=0,h=_.length;f<h;f++)if(_[f](e,E,l,!0)){b=!0;break}if(b)break}for(y=e.getLines(t,E,e.blkIndent,!1).trim(),C=y.length,k=1;k<C;k++){if(a=y.charCodeAt(k),91===a)return!1;if(93===a){p=k;break}10===a?x++:92===a&&(k++,k<C&&10===y.charCodeAt(k)&&x++)}if(p<0||58!==y.charCodeAt(p+1))return!1;for(k=p+2;k<C;k++)if(a=y.charCodeAt(k),10===a)x++;else if(!i(a))break;if(g=e.md.helpers.parseLinkDestination(y,k,C),!g.ok)return!1;if(c=e.md.normalizeLink(g.str),!e.md.validateLink(c))return!1;for(k=g.pos,x+=g.lines,s=k,u=x,v=k;k<C;k++)if(a=y.charCodeAt(k),10===a)x++;else if(!i(a))break;for(g=e.md.helpers.parseLinkTitle(y,k,C),k<C&&v!==k&&g.ok?(w=g.str,k=g.pos,x+=g.lines):(w="",k=s,x=u);k<C&&(a=y.charCodeAt(k),i(a));)k++;if(k<C&&10!==y.charCodeAt(k)&&w)for(w="",k=s,x=u;k<C&&(a=y.charCodeAt(k),i(a));)k++;return!(k<C&&10!==y.charCodeAt(k))&&(!!(d=r(y.slice(1,p)))&&(!!o||("undefined"==typeof e.env.references&&(e.env.references={}),"undefined"==typeof e.env.references[d]&&(e.env.references[d]={title:w,href:c}),e.parentType=m,e.line=t+x+1,!0)))}},{"../common/utils":4}],28:[function(e,t,n){"use strict";function r(e,t,n,r){var i,a,s,u,l,c,f,h;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,h=!1,s=u=c=f=0,l=a.length;u<l;u++){if(i=a.charCodeAt(u),!h){if(o(i)){c++,9===i?f+=4-f%4:f++;continue}h=!0}10!==i&&u!==l-1||(10!==i&&u++,this.bMarks.push(s),this.eMarks.push(u),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),h=!1,c=0,f=0,s=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}var i=e("../token"),o=e("../common/utils").isSpace;r.prototype.push=function(e,t,n){var r=new i(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},r.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},r.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},r.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),o(t));e++);return e},r.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!o(this.src.charCodeAt(--e)))return e+1;return e},r.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},r.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},r.prototype.getLines=function(e,t,n,r){var i,a,s,u,l,c,f,h=e;if(e>=t)return"";for(c=new Array(t-e),i=0;h<t;h++,i++){for(a=0,f=u=this.bMarks[h],l=h+1<t||r?this.eMarks[h]+1:this.eMarks[h];u<l&&a<n;){if(s=this.src.charCodeAt(u),o(s))9===s?a+=4-(a+this.bsCount[h])%4:a++;else{if(!(u-f<this.tShift[h]))break;a++}u++}a>n?c[i]=new Array(a-n+1).join(" ")+this.src.slice(u,l):c[i]=this.src.slice(u,l)}return c.join("")},r.prototype.Token=i,t.exports=r},{"../common/utils":4,"../token":51}],29:[function(e,t,n){"use strict";function r(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,i=e.length,o=0,a=0,s=!1,u=0;for(t=e.charCodeAt(r);r<i;)96===t?s?(s=!1,u=r):o%2===0&&(s=!0,u=r):124!==t||o%2!==0||s||(n.push(e.substring(a,r)),a=r+1),92===t?o++:o=0,r++,r===i&&s&&(s=!1,r=u+1),t=e.charCodeAt(r);return n.push(e.substring(a)),n}var o=e("../common/utils").isSpace;t.exports=function(e,t,n,a){var s,u,l,c,f,h,d,p,m,g,v,y;if(t+2>n)return!1;if(f=t+1,e.sCount[f]<e.blkIndent)return!1;if(l=e.bMarks[f]+e.tShift[f],l>=e.eMarks[f])return!1;if(s=e.src.charCodeAt(l++),124!==s&&45!==s&&58!==s)return!1;for(;l<e.eMarks[f];){if(s=e.src.charCodeAt(l),124!==s&&45!==s&&58!==s&&!o(s))return!1;l++}for(u=r(e,t+1),h=u.split("|"),m=[],c=0;c<h.length;c++){if(g=h[c].trim(),!g){if(0===c||c===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;58===g.charCodeAt(g.length-1)?m.push(58===g.charCodeAt(0)?"center":"right"):58===g.charCodeAt(0)?m.push("left"):m.push("")}if(u=r(e,t).trim(),u.indexOf("|")===-1)return!1;if(h=i(u.replace(/^\||\|$/g,"")),d=h.length,d>m.length)return!1;if(a)return!0;for(p=e.push("table_open","table",1),p.map=v=[t,0],p=e.push("thead_open","thead",1),p.map=[t,t+1],p=e.push("tr_open","tr",1),p.map=[t,t+1],c=0;c<h.length;c++)p=e.push("th_open","th",1),p.map=[t,t+1],m[c]&&(p.attrs=[["style","text-align:"+m[c]]]),p=e.push("inline","",0),p.content=h[c].trim(),p.map=[t,t+1],p.children=[],p=e.push("th_close","th",-1);for(p=e.push("tr_close","tr",-1),p=e.push("thead_close","thead",-1),p=e.push("tbody_open","tbody",1),p.map=y=[t+2,0],f=t+2;f<n&&!(e.sCount[f]<e.blkIndent)&&(u=r(e,f),u.indexOf("|")!==-1);f++){for(h=i(u.replace(/^\||\|\s*$/g,"")),p=e.push("tr_open","tr",1),c=0;c<d;c++)p=e.push("td_open","td",1),m[c]&&(p.attrs=[["style","text-align:"+m[c]]]),p=e.push("inline","",0),p.content=h[c]?h[c].trim():"",p.children=[],p=e.push("td_close","td",-1);p=e.push("tr_close","tr",-1)}return p=e.push("tbody_close","tbody",-1),p=e.push("table_close","table",-1),v[1]=y[1]=f,e.line=f,!0}},{"../common/utils":4}],30:[function(e,t,n){"use strict";t.exports=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},{}],31:[function(e,t,n){"use strict";t.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)t=i[n],"inline"===t.type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},{}],32:[function(e,t,n){"use strict";function r(e){return/^<a[>\s]/i.test(e)}function i(e){return/^<\/a\s*>/i.test(e)}var o=e("../common/utils").arrayReplaceAt;t.exports=function(e){var t,n,a,s,u,l,c,f,h,d,p,m,g,v,y,b,_,w=e.tokens;if(e.md.options.linkify)for(n=0,a=w.length;n<a;n++)if("inline"===w[n].type&&e.md.linkify.pretest(w[n].content))for(s=w[n].children,g=0,t=s.length-1;t>=0;t--)if(l=s[t],"link_close"!==l.type){if("html_inline"===l.type&&(r(l.content)&&g>0&&g--,i(l.content)&&g++),!(g>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(h=l.content,_=e.md.linkify.match(h),c=[],m=l.level,p=0,f=0;f<_.length;f++)v=_[f].url,y=e.md.normalizeLink(v),e.md.validateLink(y)&&(b=_[f].text,b=_[f].schema?"mailto:"!==_[f].schema||/^mailto:/i.test(b)?e.md.normalizeLinkText(b):e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),d=_[f].index,d>p&&(u=new e.Token("text","",0),u.content=h.slice(p,d),u.level=m,c.push(u)),u=new e.Token("link_open","a",1),u.attrs=[["href",y]],u.level=m++,u.markup="linkify",u.info="auto",c.push(u),u=new e.Token("text","",0),u.content=b,u.level=m,c.push(u),u=new e.Token("link_close","a",(-1)),u.level=--m,u.markup="linkify",u.info="auto",c.push(u),p=_[f].lastIndex);p<h.length&&(u=new e.Token("text","",0),u.content=h.slice(p),u.level=m,c.push(u)),w[n].children=s=o(s,t,c)}}else for(t--;s[t].level!==l.level&&"link_open"!==s[t].type;)t--}},{"../common/utils":4}],33:[function(e,t,n){"use strict";var r=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,i=/\u0000/g;t.exports=function(e){var t;t=e.src.replace(r,"\n"),t=t.replace(i,"<22>"),e.src=t}},{}],34:[function(e,t,n){"use strict";function r(e,t){return l[t.toLowerCase()]}function i(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)n=e[t],"text"!==n.type||i||(n.content=n.content.replace(u,r)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function o(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],"text"!==n.type||r||a.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var a=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,s=/\((c|tm|r|p)\)/i,u=/\((c|tm|r|p)\)/gi,l={c:"©",r:"®",p:"§",tm:"™"};t.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(s.test(e.tokens[t].content)&&i(e.tokens[t].children),a.test(e.tokens[t].content)&&o(e.tokens[t].children))}},{}],35:[function(e,t,n){"use strict";function r(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function i(e,t){var n,i,u,f,h,d,p,m,g,v,y,b,_,w,x,k,C,E,$,S,A;for($=[],n=0;n<e.length;n++){for(i=e[n],p=e[n].level,C=$.length-1;C>=0&&!($[C].level<=p);C--);if($.length=C+1,"text"===i.type){u=i.content,h=0,d=u.length;e:for(;h<d&&(l.lastIndex=h,f=l.exec(u));){if(x=k=!0,h=f.index+1,E="'"===f[0],g=32,f.index-1>=0)g=u.charCodeAt(f.index-1);else for(C=n-1;C>=0;C--)if("text"===e[C].type){g=e[C].content.charCodeAt(e[C].content.length-1);break}if(v=32,h<d)v=u.charCodeAt(h);else for(C=n+1;C<e.length;C++)if("text"===e[C].type){v=e[C].content.charCodeAt(0);break}if(y=s(g)||a(String.fromCharCode(g)),b=s(v)||a(String.fromCharCode(v)),_=o(g),w=o(v),w?x=!1:b&&(_||y||(x=!1)),_?k=!1:y&&(w||b||(k=!1)),34===v&&'"'===f[0]&&g>=48&&g<=57&&(k=x=!1),x&&k&&(x=!1,k=b),x||k){if(k)for(C=$.length-1;C>=0&&(m=$[C],!($[C].level<p));C--)if(m.single===E&&$[C].level===p){m=$[C],E?(S=t.md.options.quotes[2],A=t.md.options.quotes[3]):(S=t.md.options.quotes[0],A=t.md.options.quotes[1]),i.content=r(i.content,f.index,A),e[m.token].content=r(e[m.token].content,m.pos,S),h+=A.length-1,m.token===n&&(h+=S.length-1),u=i.content,d=u.length,$.length=C;continue e}x?$.push({token:n,pos:f.index,single:E,level:p}):k&&E&&(i.content=r(i.content,f.index,c))}else E&&(i.content=r(i.content,f.index,c))}}}}var o=e("../common/utils").isWhiteSpace,a=e("../common/utils").isPunctChar,s=e("../common/utils").isMdAsciiPunct,u=/['"]/,l=/['"]/g,c="’";t.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&u.test(e.tokens[t].content)&&i(e.tokens[t].children,e)}},{"../common/utils":4}],36:[function(e,t,n){"use strict";function r(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}var i=e("../token");r.prototype.Token=i,t.exports=r},{"../token":51}],37:[function(e,t,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,i=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;t.exports=function(e,t){var n,o,a,s,u,l,c=e.pos;return 60===e.src.charCodeAt(c)&&(n=e.src.slice(c),!(n.indexOf(">")<0)&&(i.test(n)?(o=n.match(i),s=o[0].slice(1,-1),u=e.md.normalizeLink(s),!!e.md.validateLink(u)&&(t||(l=e.push("link_open","a",1),l.attrs=[["href",u]],l.markup="autolink",l.info="auto",l=e.push("text","",0),l.content=e.md.normalizeLinkText(s),l=e.push("link_close","a",-1),l.markup="autolink",l.info="auto"),e.pos+=o[0].length,!0)):!!r.test(n)&&(a=n.match(r),s=a[0].slice(1,-1),u=e.md.normalizeLink("mailto:"+s),!!e.md.validateLink(u)&&(t||(l=e.push("link_open","a",1),l.attrs=[["href",u]],l.markup="autolink",l.info="auto",l=e.push("text","",0),l.content=e.md.normalizeLinkText(s),l=e.push("link_close","a",-1),l.markup="autolink",l.info="auto"),e.pos+=a[0].length,!0))))}},{}],38:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,u=e.pos,l=e.src.charCodeAt(u);if(96!==l)return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;for(i=e.src.slice(n,u),o=a=u;(o=e.src.indexOf("`",a))!==-1;){for(a=o+1;a<r&&96===e.src.charCodeAt(a);)a++;if(a-o===i.length)return t||(s=e.push("code_inline","code",0),s.markup=i,s.content=e.src.slice(u,o).replace(/[ \n]+/g," ").trim()),e.pos=a,!0}return t||(e.pending+=i),e.pos+=i.length,!0}},{}],39:[function(e,t,n){"use strict";t.exports=function(e){var t,n,r,i,o=e.delimiters,a=e.delimiters.length;for(t=0;t<a;t++)if(r=o[t],r.close)for(n=t-r.jump-1;n>=0;){if(i=o[n],i.open&&i.marker===r.marker&&i.end<0&&i.level===r.level){var s=(i.close||r.open)&&"undefined"!=typeof i.length&&"undefined"!=typeof r.length&&(i.length+r.length)%3===0;if(!s){r.jump=t-n,r.open=!1,i.end=t,i.jump=0;break}}n-=i.jump+1}}},{}],40:[function(e,t,n){"use strict";t.exports.tokenize=function(e,t){var n,r,i,o=e.pos,a=e.src.charCodeAt(o);if(t)return!1;if(95!==a&&42!==a)return!1;for(r=e.scanDelims(e.pos,42===a),n=0;n<r.length;n++)i=e.push("text","",0),i.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:r.length,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},t.exports.postProcess=function(e){var t,n,r,i,o,a,s=e.delimiters,u=e.delimiters.length;for(t=0;t<u;t++)n=s[t],95!==n.marker&&42!==n.marker||n.end!==-1&&(r=s[n.end],a=t+1<u&&s[t+1].end===n.end-1&&s[t+1].token===n.token+1&&s[n.end-1].token===r.token-1&&s[t+1].marker===n.marker,o=String.fromCharCode(n.marker),i=e.tokens[n.token],i.type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="",i=e.tokens[r.token],i.type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?o+o:o,i.content="",a&&(e.tokens[s[t+1].token].content="",e.tokens[s[n.end-1].token].content="",t++))}},{}],41:[function(e,t,n){"use strict";var r=e("../common/entities"),i=e("../common/utils").has,o=e("../common/utils").isValidEntityCode,a=e("../common/utils").fromCodePoint,s=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,u=/^&([a-z][a-z0-9]{1,31});/i;t.exports=function(e,t){var n,l,c,f=e.pos,h=e.posMax;if(38!==e.src.charCodeAt(f))return!1;if(f+1<h)if(n=e.src.charCodeAt(f+1),35===n){if(c=e.src.slice(f).match(s))return t||(l="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=a(o(l)?l:65533)),e.pos+=c[0].length,!0}else if(c=e.src.slice(f).match(u),c&&i(r,c[1]))return t||(e.pending+=r[c[1]]),e.pos+=c[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},{"../common/entities":1,"../common/utils":4}],42:[function(e,t,n){"use strict";for(var r=e("../common/utils").isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){i[e.charCodeAt(0)]=1}),t.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(o++,o<a){if(n=e.src.charCodeAt(o),n<256&&0!==i[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<a&&(n=e.src.charCodeAt(o),r(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},{"../common/utils":4}],43:[function(e,t,n){"use strict";function r(e){var t=32|e;return t>=97&&t<=122}var i=e("../common/html_re").HTML_TAG_RE;t.exports=function(e,t){var n,o,a,s,u=e.pos;return!!e.md.options.html&&(a=e.posMax,!(60!==e.src.charCodeAt(u)||u+2>=a)&&(n=e.src.charCodeAt(u+1),!(33!==n&&63!==n&&47!==n&&!r(n))&&(!!(o=e.src.slice(u).match(i))&&(t||(s=e.push("html_inline","",0),s.content=e.src.slice(u,u+o[0].length)),e.pos+=o[0].length,!0))))}},{"../common/html_re":3}],44:[function(e,t,n){"use strict";var r=e("../common/utils").normalizeReference,i=e("../common/utils").isSpace;t.exports=function(e,t){var n,o,a,s,u,l,c,f,h,d,p,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,u=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),u<0)return!1;if(c=u+1,c<b&&40===e.src.charCodeAt(c)){for(c++;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(c>=b)return!1;for(g=c,h=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),h.ok&&(v=e.md.normalizeLink(h.str),e.md.validateLink(v)?c=h.pos:v=""),g=c;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(h=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&g!==c&&h.ok)for(d=h.str,c=h.pos;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);else d="";if(c>=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if("undefined"==typeof e.env.references)return!1;if(c<b&&91===e.src.charCodeAt(c)?(g=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(g,c++):c=u+1):c=u+1,s||(s=e.src.slice(l,u)),f=e.env.references[r(s)],!f)return e.pos=y,!1;v=f.href,d=f.title}return t||(a=e.src.slice(l,u),e.md.inline.parse(a,e.md,e.env,m=[]),p=e.push("image","img",0),p.attrs=n=[["src",v],["alt",""]],p.children=m,p.content=a,d&&n.push(["title",d])),e.pos=c,e.posMax=b,!0}},{"../common/utils":4}],45:[function(e,t,n){"use strict";var r=e("../common/utils").normalizeReference,i=e("../common/utils").isSpace;t.exports=function(e,t){var n,o,a,s,u,l,c,f,h,d,p="",m=e.pos,g=e.posMax,v=e.pos,y=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(u=e.pos+1,s=e.md.helpers.parseLinkLabel(e,e.pos,!0),s<0)return!1;if(l=s+1,l<g&&40===e.src.charCodeAt(l)){for(y=!1,l++;l<g&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(l>=g)return!1;for(v=l,c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),c.ok&&(p=e.md.normalizeLink(c.str),e.md.validateLink(p)?l=c.pos:p=""),v=l;l<g&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(c=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<g&&v!==l&&c.ok)for(h=c.str,l=c.pos;l<g&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);else h="";(l>=g||41!==e.src.charCodeAt(l))&&(y=!0),l++}if(y){if("undefined"==typeof e.env.references)return!1;if(l<g&&91===e.src.charCodeAt(l)?(v=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?a=e.src.slice(v,l++):l=s+1):l=s+1,a||(a=e.src.slice(u,s)),f=e.env.references[r(a)],!f)return e.pos=m,!1;p=f.href,h=f.title}return t||(e.pos=u,e.posMax=s,d=e.push("link_open","a",1),d.attrs=n=[["href",p]],h&&n.push(["title",h]),e.md.inline.tokenize(e),d=e.push("link_close","a",-1)),e.pos=l,e.posMax=g,!0}},{"../common/utils":4}],46:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,r=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<r&&32===e.src.charCodeAt(i);)i++;return e.pos=i,!0}},{}],47:[function(e,t,n){"use strict";function r(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}var i=e("../token"),o=e("../common/utils").isWhiteSpace,a=e("../common/utils").isPunctChar,s=e("../common/utils").isMdAsciiPunct;r.prototype.pushPending=function(){var e=new i("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},r.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new i(e,t,n);return n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(r),r},r.prototype.scanDelims=function(e,t){var n,r,i,u,l,c,f,h,d,p=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;p<v&&this.src.charCodeAt(p)===y;)p++;return i=p-e,r=p<v?this.src.charCodeAt(p):32,f=s(n)||a(String.fromCharCode(n)),d=s(r)||a(String.fromCharCode(r)),c=o(n),h=o(r),h?m=!1:d&&(c||f||(m=!1)),c?g=!1:f&&(h||d||(g=!1)),t?(u=m,l=g):(u=m&&(!g||f),l=g&&(!m||d)),{can_open:u,can_close:l,length:i}},r.prototype.Token=i,t.exports=r},{"../common/utils":4,"../token":51}],48:[function(e,t,n){"use strict";t.exports.tokenize=function(e,t){var n,r,i,o,a,s=e.pos,u=e.src.charCodeAt(s);if(t)return!1;if(126!==u)return!1;if(r=e.scanDelims(e.pos,!0),o=r.length,a=String.fromCharCode(u),o<2)return!1;for(o%2&&(i=e.push("text","",0),i.content=a,o--),n=0;n<o;n+=2)i=e.push("text","",0),i.content=a+a,e.delimiters.push({marker:u,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},t.exports.postProcess=function(e){var t,n,r,i,o,a=[],s=e.delimiters,u=e.delimiters.length;for(t=0;t<u;t++)r=s[t],126===r.marker&&r.end!==-1&&(i=s[r.end],o=e.tokens[r.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=e.tokens[i.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&a.push(i.token-1));for(;a.length;){for(t=a.pop(),n=t+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;n--,t!==n&&(o=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=o)}}},{}],49:[function(e,t,n){"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}t.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},{}],50:[function(e,t,n){"use strict";t.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)r+=i[t].nesting,i[t].level=r,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},{}],51:[function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(t=this.attrs,n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},t.exports=r},{}],52:[function(e,t,n){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",
|
||
gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅","in":"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺","int":"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}},{}],53:[function(e,t,n){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object String]"===i(e)}function a(e){return"[object Object]"===i(e)}function s(e){return"[object RegExp]"===i(e)}function u(e){return"[object Function]"===i(e)}function l(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function c(e){return Object.keys(e||{}).reduce(function(e,t){return e||y.hasOwnProperty(t)},!1)}function f(e){e.__index__=-1,e.__text_cache__=""}function h(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function d(){return function(e,t){t.normalize(e)}}function p(t){function n(e){return e.replace("%TLDS%",i.src_tlds)}function r(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}var i=t.re=e("./lib/re")(t.__opts__),c=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||c.push(_),c.push(i.src_xn),i.src_tlds=c.join("|"),i.email_fuzzy=RegExp(n(i.tpl_email_fuzzy),"i"),i.link_fuzzy=RegExp(n(i.tpl_link_fuzzy),"i"),i.link_no_ip_fuzzy=RegExp(n(i.tpl_link_no_ip_fuzzy),"i"),i.host_fuzzy_test=RegExp(n(i.tpl_host_fuzzy_test),"i");var p=[];t.__compiled__={},Object.keys(t.__schemas__).forEach(function(e){var n=t.__schemas__[e];if(null!==n){var i={validate:null,link:null};return t.__compiled__[e]=i,a(n)?(s(n.validate)?i.validate=h(n.validate):u(n.validate)?i.validate=n.validate:r(e,n),void(u(n.normalize)?i.normalize=n.normalize:n.normalize?r(e,n):i.normalize=d())):o(n)?void p.push(e):void r(e,n)}}),p.forEach(function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)}),t.__compiled__[""]={validate:null,normalize:d()};var m=Object.keys(t.__compiled__).filter(function(e){return e.length>0&&t.__compiled__[e]}).map(l).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+i.src_ZPCc+"))("+m+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+i.src_ZPCc+"))("+m+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),f(t)}function m(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function g(e,t){var n=new m(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function v(e,t){return this instanceof v?(t||c(e)&&(t=e,e={}),this.__opts__=r({},y,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},b,e),this.__compiled__={},this.__tlds__=w,this.__tlds_replaced__=!1,this.re={},void p(this)):new v(e,t)}var y={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},b={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},_="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",w="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");v.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},v.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},v.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,u,l;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(l=e.indexOf("@"),l>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},v.prototype.pretest=function(e){return this.re.pretest.test(e)},v.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},v.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(g(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(g(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},v.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p(this),this)},v.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},v.prototype.onCompile=function(){},t.exports=v},{"./lib/re":54}],54:[function(e,t,n){"use strict";t.exports=function(t){var n={};return n.src_Any=e("uc.micro/properties/Any/regex").source,n.src_Cc=e("uc.micro/categories/Cc/regex").source,n.src_Z=e("uc.micro/categories/Z/regex").source,n.src_P=e("uc.micro/categories/P/regex").source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|"),n.src_pseudo_letter="(?:(?!>|<|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|>|<|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|[()[\\]{}.,\"'?!\\-<>]).|\\[(?:(?!"+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+n.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-(?!-)|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|<|>|\\(|"+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+n.src_ZPCc+"))((?![$+<=>^`|])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+n.src_ZPCc+"))((?![$+<=>^`|])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}},{"uc.micro/categories/Cc/regex":61,"uc.micro/categories/P/regex":63,"uc.micro/categories/Z/regex":64,"uc.micro/properties/Any/regex":66}],55:[function(e,t,n){"use strict";function r(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)n=e.charCodeAt(t),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function i(e,t){var n;return"string"!=typeof t&&(t=i.defaultChars),n=r(t),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,r,i,o,a,s,u,l="";for(t=0,r=e.length;t<r;t+=3)i=parseInt(e.slice(t+1,t+3),16),i<128?l+=n[i]:192===(224&i)&&t+3<r&&(o=parseInt(e.slice(t+4,t+6),16),128===(192&o))?(u=i<<6&1984|63&o,l+=u<128?"<22><>":String.fromCharCode(u),t+=3):224===(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128===(192&o)&&128===(192&a))?(u=i<<12&61440|o<<6&4032|63&a,l+=u<2048||u>=55296&&u<=57343?"<22><><EFBFBD>":String.fromCharCode(u),t+=6):240===(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128===(192&o)&&128===(192&a)&&128===(192&s))?(u=i<<18&1835008|o<<12&258048|a<<6&4032|63&s,u<65536||u>1114111?l+="<22><><EFBFBD><EFBFBD>":(u-=65536,l+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),t+=9):l+="<22>";return l})}var o={};i.defaultChars=";/?:@&=+$,#",i.componentChars="",t.exports=i},{}],56:[function(e,t,n){"use strict";function r(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function i(e,t,n){var o,a,s,u,l,c="";for("string"!=typeof t&&(n=t,t=i.defaultChars),"undefined"==typeof n&&(n=!0),l=r(t),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),n&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(s<128)c+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1),u>=56320&&u<=57343)){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}var o={};i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",t.exports=i},{}],57:[function(e,t,n){"use strict";t.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",t+=e.hostname&&e.hostname.indexOf(":")!==-1?"["+e.hostname+"]":e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},{}],58:[function(e,t,n){"use strict";t.exports.encode=e("./encode"),t.exports.decode=e("./decode"),t.exports.format=e("./format"),t.exports.parse=e("./parse")},{"./decode":55,"./encode":56,"./format":57,"./parse":59}],59:[function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}function i(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["<",">",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(u),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),h=["/","?","#"],d=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,i,a,u,l=e;if(l=l.trim(),!t&&1===e.split("#").length){var c=s.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var y=o.exec(l);if(y&&(y=y[0],i=y.toLowerCase(),this.protocol=y,l=l.substr(y.length)),(t||y||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u="//"===l.substr(0,2),!u||y&&g[y]||(l=l.substr(2),this.slashes=!0)),!g[y]&&(u||y&&!v[y])){var b=-1;for(n=0;n<h.length;n++)a=l.indexOf(h[n]),a!==-1&&(b===-1||a<b)&&(b=a);var _,w;for(w=b===-1?l.lastIndexOf("@"):l.lastIndexOf("@",b),w!==-1&&(_=l.slice(0,w),l=l.slice(w+1),this.auth=_),b=-1,n=0;n<f.length;n++)a=l.indexOf(f[n]),a!==-1&&(b===-1||a<b)&&(b=a);b===-1&&(b=l.length),":"===l[b-1]&&b--;var x=l.slice(0,b);l=l.slice(b),this.parseHost(x),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k){var C=this.hostname.split(/\./);for(n=0,r=C.length;n<r;n++){var E=C[n];if(E&&!E.match(p)){for(var $="",S=0,A=E.length;S<A;S++)$+=E.charCodeAt(S)>127?"x":E[S];if(!$.match(p)){var T=C.slice(0,n),D=C.slice(n+1),N=E.match(m);N&&(T.push(N[1]),D.unshift(N[2])),D.length&&(l=D.join(".")+l),this.hostname=T.join(".");break}}}}this.hostname.length>d&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=l.indexOf("#");F!==-1&&(this.hash=l.substr(F),l=l.slice(0,F));var M=l.indexOf("?");return M!==-1&&(this.search=l.substr(M),l=l.slice(0,M)),l&&(this.pathname=l),v[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=a.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.exports=i},{}],60:[function(t,n,r){(function(t){!function(i){function o(e){throw new RangeError(O[e])}function a(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function s(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(M,".");var i=e.split("."),o=a(i,t).join(".");return r+o}function u(e){for(var t,n,r=[],i=0,o=e.length;i<o;)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function l(e){return a(e,function(e){var t="";return e>65535&&(e-=65536,t+=L(e>>>10&1023|55296),e=56320|1023&e),
|
||
t+=L(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:k}function f(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function h(e,t,n){var r=0;for(e=n?P(e/S):e>>1,e+=P(e/t);e>j*E>>1;r+=k)e=P(e/j);return P(r+(j+1)*e/(e+$))}function d(e){var t,n,r,i,a,s,u,f,d,p,m=[],g=e.length,v=0,y=T,b=A;for(n=e.lastIndexOf(D),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&o("not-basic"),m.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(a=v,s=1,u=k;i>=g&&o("invalid-input"),f=c(e.charCodeAt(i++)),(f>=k||f>P((x-v)/s))&&o("overflow"),v+=f*s,d=u<=b?C:u>=b+E?E:u-b,!(f<d);u+=k)p=k-d,s>P(x/p)&&o("overflow"),s*=p;t=m.length+1,b=h(v-a,t,0==a),P(v/t)>x-y&&o("overflow"),y+=P(v/t),v%=t,m.splice(v++,0,y)}return l(m)}function p(e){var t,n,r,i,a,s,l,c,d,p,m,g,v,y,b,_=[];for(e=u(e),g=e.length,t=T,n=0,a=A,s=0;s<g;++s)m=e[s],m<128&&_.push(L(m));for(r=i=_.length,i&&_.push(D);r<g;){for(l=x,s=0;s<g;++s)m=e[s],m>=t&&m<l&&(l=m);for(v=r+1,l-t>P((x-n)/v)&&o("overflow"),n+=(l-t)*v,t=l,s=0;s<g;++s)if(m=e[s],m<t&&++n>x&&o("overflow"),m==t){for(c=n,d=k;p=d<=a?C:d>=a+E?E:d-a,!(c<p);d+=k)b=c-p,y=k-p,_.push(L(f(p+b%y,0))),c=P(b/y);_.push(L(f(c,0))),a=h(n,v,r==i),n=0,++r}++n,++t}return _.join("")}function m(e){return s(e,function(e){return N.test(e)?d(e.slice(4).toLowerCase()):e})}function g(e){return s(e,function(e){return F.test(e)?"xn--"+p(e):e})}var v="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof n&&n&&!n.nodeType&&n,b="object"==typeof t&&t;b.global!==b&&b.window!==b&&b.self!==b||(i=b);var _,w,x=2147483647,k=36,C=1,E=26,$=38,S=700,A=72,T=128,D="-",N=/^xn--/,F=/[^\x20-\x7E]/,M=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=k-C,P=Math.floor,L=String.fromCharCode;if(_={version:"1.4.1",ucs2:{decode:u,encode:l},decode:d,encode:p,toASCII:g,toUnicode:m},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return _});else if(v&&y)if(n.exports==v)y.exports=_;else for(w in _)_.hasOwnProperty(w)&&(v[w]=_[w]);else i.punycode=_}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],61:[function(e,t,n){t.exports=/[\0-\x1F\x7F-\x9F]/},{}],62:[function(e,t,n){t.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},{}],63:[function(e,t,n){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E44\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},{}],64:[function(e,t,n){t.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},{}],65:[function(e,t,n){"use strict";n.Any=e("./properties/Any/regex"),n.Cc=e("./categories/Cc/regex"),n.Cf=e("./categories/Cf/regex"),n.P=e("./categories/P/regex"),n.Z=e("./categories/Z/regex")},{"./categories/Cc/regex":61,"./categories/Cf/regex":62,"./categories/P/regex":63,"./categories/Z/regex":64,"./properties/Any/regex":66}],66:[function(e,t,n){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},{}],67:[function(e,t,n){"use strict";t.exports=e("./lib/")},{"./lib/":9}]},{},[67])(67)}),function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return t.hljs}))}(function(e){function t(e){return e.replace(/[&<>]/gm,function(e){return D[e]})}function n(e){return e.nodeName.toLowerCase()}function r(e,t){var n=e&&e.exec(t);return n&&0===n.index}function i(e){return E.test(e)}function o(e){var t,n,r,o,a=e.className+" ";if(a+=e.parentNode?e.parentNode.className:"",n=$.exec(a))return _(n[1])?n[1]:"no-highlight";for(a=a.split(/\s+/),t=0,r=a.length;t<r;t++)if(o=a[t],i(o)||_(o))return o}function a(e,t){var n,r={};for(n in e)r[n]=e[n];if(t)for(n in t)r[n]=t[n];return r}function s(e){var t=[];return function r(e,i){for(var o=e.firstChild;o;o=o.nextSibling)3===o.nodeType?i+=o.nodeValue.length:1===o.nodeType&&(t.push({event:"start",offset:i,node:o}),i=r(o,i),n(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:o}));return i}(e,0),t}function u(e,r,i){function o(){return e.length&&r.length?e[0].offset!==r[0].offset?e[0].offset<r[0].offset?e:r:"start"===r[0].event?e:r:e.length?e:r}function a(e){function r(e){return" "+e.nodeName+'="'+t(e.value)+'"'}c+="<"+n(e)+w.map.call(e.attributes,r).join("")+">"}function s(e){c+="</"+n(e)+">"}function u(e){("start"===e.event?a:s)(e.node)}for(var l=0,c="",f=[];e.length||r.length;){var h=o();if(c+=t(i.substring(l,h[0].offset)),l=h[0].offset,h===e){f.reverse().forEach(s);do u(h.splice(0,1)[0]),h=o();while(h===e&&h.length&&h[0].offset===l);f.reverse().forEach(a)}else"start"===h[0].event?f.push(h[0].node):f.pop(),u(h.splice(0,1)[0])}return c+t(i.substr(l))}function l(e){function t(e){return e&&e.source||e}function n(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}function r(i,o){if(!i.compiled){if(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords){var s={},u=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");s[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"==typeof i.keywords?u("keyword",i.keywords):x(i.keywords).forEach(function(e){u(e,i.keywords[e])}),i.keywords=s}i.lexemesRe=n(i.lexemes||/\w+/,!0),o&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=n(i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=n(i.end)),i.terminator_end=t(i.end)||"",i.endsWithParent&&o.terminator_end&&(i.terminator_end+=(i.end?"|":"")+o.terminator_end)),i.illegal&&(i.illegalRe=n(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]);var l=[];i.contains.forEach(function(e){e.variants?e.variants.forEach(function(t){l.push(a(e,t))}):l.push("self"===e?i:e)}),i.contains=l,i.contains.forEach(function(e){r(e,i)}),i.starts&&r(i.starts,o);var c=i.contains.map(function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin}).concat([i.terminator_end,i.illegal]).map(t).filter(Boolean);i.terminators=c.length?n(c.join("|"),!0):{exec:function(){return null}}}}r(e)}function c(e,n,i,o){function a(e,t){var n,i;for(n=0,i=t.contains.length;n<i;n++)if(r(t.contains[n].beginRe,e))return t.contains[n]}function s(e,t){if(r(e.endRe,t)){for(;e.endsParent&&e.parent;)e=e.parent;return e}if(e.endsWithParent)return s(e.parent,t)}function u(e,t){return!i&&r(t.illegalRe,e)}function h(e,t){var n=b.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function d(e,t,n,r){var i=r?"":T.classPrefix,o='<span class="'+i,a=n?"":A;return o+=e+'">',o+t+a}function p(){var e,n,r,i;if(!x.keywords)return t($);for(i="",n=0,x.lexemesRe.lastIndex=0,r=x.lexemesRe.exec($);r;)i+=t($.substring(n,r.index)),e=h(x,r),e?(S+=e[1],i+=d(e[0],t(r[0]))):i+=t(r[0]),n=x.lexemesRe.lastIndex,r=x.lexemesRe.exec($);return i+t($.substr(n))}function m(){var e="string"==typeof x.subLanguage;if(e&&!k[x.subLanguage])return t($);var n=e?c(x.subLanguage,$,!0,C[x.subLanguage]):f($,x.subLanguage.length?x.subLanguage:void 0);return x.relevance>0&&(S+=n.relevance),e&&(C[x.subLanguage]=n.top),d(n.language,n.value,!1,!0)}function g(){E+=null!=x.subLanguage?m():p(),$=""}function v(e){E+=e.className?d(e.className,"",!0):"",x=Object.create(e,{parent:{value:x}})}function y(e,t){if($+=e,null==t)return g(),0;var n=a(t,x);if(n)return n.skip?$+=t:(n.excludeBegin&&($+=t),g(),n.returnBegin||n.excludeBegin||($=t)),v(n,t),n.returnBegin?0:t.length;var r=s(x,t);if(r){var i=x;i.skip?$+=t:(i.returnEnd||i.excludeEnd||($+=t),g(),i.excludeEnd&&($=t));do x.className&&(E+=A),x.skip||(S+=x.relevance),x=x.parent;while(x!==r.parent);return r.starts&&v(r.starts,""),i.returnEnd?0:t.length}if(u(t,x))throw new Error('Illegal lexeme "'+t+'" for mode "'+(x.className||"<unnamed>")+'"');return $+=t,t.length||1}var b=_(e);if(!b)throw new Error('Unknown language: "'+e+'"');l(b);var w,x=o||b,C={},E="";for(w=x;w!==b;w=w.parent)w.className&&(E=d(w.className,"",!0)+E);var $="",S=0;try{for(var D,N,F=0;;){if(x.terminators.lastIndex=F,D=x.terminators.exec(n),!D)break;N=y(n.substring(F,D.index),D[0]),F=D.index+N}for(y(n.substr(F)),w=x;w.parent;w=w.parent)w.className&&(E+=A);return{relevance:S,value:E,language:e,top:x}}catch(M){if(M.message&&M.message.indexOf("Illegal")!==-1)return{relevance:0,value:t(n)};throw M}}function f(e,n){n=n||T.languages||x(k);var r={relevance:0,value:t(e)},i=r;return n.filter(_).forEach(function(t){var n=c(t,e,!1);n.language=t,n.relevance>i.relevance&&(i=n),n.relevance>r.relevance&&(i=r,r=n)}),i.language&&(r.second_best=i),r}function h(e){return T.tabReplace||T.useBR?e.replace(S,function(e,t){return T.useBR&&"\n"===e?"<br>":T.tabReplace?t.replace(/\t/g,T.tabReplace):void 0}):e}function d(e,t,n){var r=t?C[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),e.indexOf(r)===-1&&i.push(r),i.join(" ").trim()}function p(e){var t,n,r,a,l,p=o(e);i(p)||(T.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):t=e,l=t.textContent,r=p?c(p,l,!0):f(l),n=s(t),n.length&&(a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),a.innerHTML=r.value,r.value=u(n,s(a),l)),r.value=h(r.value),e.innerHTML=r.value,e.className=d(e.className,p,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function m(e){T=a(T,e)}function g(){if(!g.called){g.called=!0;var e=document.querySelectorAll("pre code");w.forEach.call(e,p)}}function v(){addEventListener("DOMContentLoaded",g,!1),addEventListener("load",g,!1)}function y(t,n){var r=k[t]=n(e);r.aliases&&r.aliases.forEach(function(e){C[e]=t})}function b(){return x(k)}function _(e){return e=(e||"").toLowerCase(),k[e]||k[C[e]]}var w=[],x=Object.keys,k={},C={},E=/^(no-?highlight|plain|text)$/i,$=/\blang(?:uage)?-([\w-]+)\b/i,S=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,A="</span>",T={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},D={"&":"&","<":"<",">":">"};return e.highlight=c,e.highlightAuto=f,e.fixMarkup=h,e.highlightBlock=p,e.configure=m,e.initHighlighting=g,e.initHighlightingOnLoad=v,e.registerLanguage=y,e.listLanguages=b,e.getLanguage=_,e.inherit=a,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.COMMENT=function(t,n,r){var i=e.inherit({className:"comment",begin:t,end:n,contains:[]},r||{});return i.contains.push(e.PHRASAL_WORDS_MODE),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),i},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e});var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-(\w+)\b/i,t=0,n=_self.Prism={util:{encode:function(e){return e instanceof r?new r(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e){var t=n.util.type(e);switch(t){case"Object":var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=n.util.clone(e[i]));return r;case"Array":return e.map&&e.map(function(e){return n.util.clone(e)})}return e}},languages:{extend:function(e,t){var r=n.util.clone(n.languages[e]);for(var i in t)r[i]=t[i];return r},insertBefore:function(e,t,r,i){i=i||n.languages;var o=i[e];if(2==arguments.length){r=arguments[1];for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o}var s={};for(var u in o)if(o.hasOwnProperty(u)){if(u==t)for(var a in r)r.hasOwnProperty(a)&&(s[a]=r[a]);s[u]=o[u]}return n.languages.DFS(n.languages,function(t,n){n===i[e]&&t!=e&&(this[t]=s)}),i[e]=s},DFS:function(e,t,r,i){i=i||{};for(var o in e)e.hasOwnProperty(o)&&(t.call(e,o,e[o],r||o),"Object"!==n.util.type(e[o])||i[n.util.objId(e[o])]?"Array"!==n.util.type(e[o])||i[n.util.objId(e[o])]||(i[n.util.objId(e[o])]=!0,n.languages.DFS(e[o],t,o,i)):(i[n.util.objId(e[o])]=!0,n.languages.DFS(e[o],t,null,i)))}},plugins:{},highlightAll:function(e,t){var r={callback:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",r);for(var i,o=r.elements||document.querySelectorAll(r.selector),a=0;i=o[a++];)n.highlightElement(i,e===!0,r.callback)},highlightElement:function(t,r,i){for(var o,a,s=t;s&&!e.test(s.className);)s=s.parentNode;s&&(o=(s.className.match(e)||[,""])[1].toLowerCase(),a=n.languages[o]),t.className=t.className.replace(e,"").replace(/\s+/g," ")+" language-"+o,s=t.parentNode,/pre/i.test(s.nodeName)&&(s.className=s.className.replace(e,"").replace(/\s+/g," ")+" language-"+o);var u=t.textContent,l={element:t,language:o,grammar:a,code:u};if(n.hooks.run("before-sanity-check",l),!l.code||!l.grammar)return l.code&&(l.element.textContent=l.code),void n.hooks.run("complete",l);if(n.hooks.run("before-highlight",l),r&&_self.Worker){var c=new Worker(n.filename);c.onmessage=function(e){l.highlightedCode=e.data,n.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i&&i.call(l.element),n.hooks.run("after-highlight",l),n.hooks.run("complete",l)},c.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else l.highlightedCode=n.highlight(l.code,l.grammar,l.language),n.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i&&i.call(t),n.hooks.run("after-highlight",l),n.hooks.run("complete",l)},highlight:function(e,t,i){var o=n.tokenize(e,t);return r.stringify(n.util.encode(o),i)},tokenize:function(e,t,r){var i=n.Token,o=[e],a=t.rest;if(a){for(var s in a)t[s]=a[s];delete t.rest}e:for(var s in t)if(t.hasOwnProperty(s)&&t[s]){var u=t[s];u="Array"===n.util.type(u)?u:[u];for(var l=0;l<u.length;++l){var c=u[l],f=c.inside,h=!!c.lookbehind,d=!!c.greedy,p=0,m=c.alias;if(d&&!c.pattern.global){var g=c.pattern.toString().match(/[imuy]*$/)[0];c.pattern=RegExp(c.pattern.source,g+"g")}c=c.pattern||c;for(var v=0,y=0;v<o.length;y+=o[v].length,++v){var b=o[v];if(o.length>e.length)break e;if(!(b instanceof i)){c.lastIndex=0;var _=c.exec(b),w=1;if(!_&&d&&v!=o.length-1){if(c.lastIndex=y,_=c.exec(e),!_)break;for(var x=_.index+(h?_[1].length:0),k=_.index+_[0].length,C=v,E=y,$=o.length;C<$&&E<k;++C)E+=o[C].length,x>=E&&(++v,y=E);if(o[v]instanceof i||o[C-1].greedy)continue;w=C-v,b=e.slice(y,E),_.index-=y}if(_){h&&(p=_[1].length);var x=_.index+p,_=_[0].slice(p),k=x+_.length,S=b.slice(0,x),A=b.slice(k),T=[v,w];S&&T.push(S);var D=new i(s,f?n.tokenize(_,f):_,m,_,d);T.push(D),A&&T.push(A),Array.prototype.splice.apply(o,T)}}}}}return o},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var i,o=0;i=r[o++];)i(t)}}},r=n.Token=function(e,t,n,r,i){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!i};if(r.stringify=function(e,t,i){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return r.stringify(n,t,e)}).join("");var o={type:e.type,content:r.stringify(e.content,t,i),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:i};if("comment"==o.type&&(o.attributes.spellcheck="true"),e.alias){var a="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(o.classes,a)}n.hooks.run("wrap",o);var s=Object.keys(o.attributes).map(function(e){return e+'="'+(o.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+(s?" "+s:"")+">"+o.content+"</"+o.tag+">"},!_self.document)return _self.addEventListener?(_self.addEventListener("message",function(e){var t=JSON.parse(e.data),r=t.language,i=t.code,o=t.immediateClose;_self.postMessage(n.highlight(i,n.languages[r],r)),o&&_self.close()},!1),_self.Prism):_self.Prism;var i=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return i&&(n.filename=i.src,document.addEventListener&&!i.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/i,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:{pattern:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css"}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:{pattern:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*\*?|\/|~|\^|%|\.{3}/}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0}}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\\\|\\?[^\\])*?`/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript"}}),Prism.languages.js=Prism.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.forEach&&Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var n,r=t.getAttribute("data-src"),i=t,o=/\blang(?:uage)?-(?!\*)(\w+)\b/i;i&&!o.test(i.className);)i=i.parentNode;if(i&&(n=(t.className.match(o)||[,""])[1]),!n){var a=(r.match(/\.(\w+)$/)||[,""])[1];n=e[a]||a}var s=document.createElement("code");s.className="language-"+n,t.textContent="",s.textContent="Loading…",t.appendChild(s);var u=new XMLHttpRequest;u.open("GET",r,!0),u.onreadystatechange=function(){4==u.readyState&&(u.status<400&&u.responseText?(s.textContent=u.responseText,Prism.highlightElement(s)):u.status>=400?s.textContent="✖ Error "+u.status+" while fetching file: "+u.statusText:s.textContent="✖ Error: File does not exist or is empty")},u.send(null)})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}(),function(e,t){"use strict";"object"==typeof module?module.exports=t:"function"==typeof define&&define.amd?define(t):e.AutoList=t}(this,function(e){var t=e.Extension.extend({name:"autolist",init:function(){this.subscribe("editableKeypress",this.onKeypress.bind(this))},onKeypress:function(t){if(e.util.isKey(t,[e.util.keyCode.SPACE])){var n=this.base.getSelectedParentElement().textContent;"1."==n&&this.base.getExtensionByName("orderedlist")?(this.base.execAction("insertorderedlist"),this.base.getSelectedParentElement().textContent=this.base.getSelectedParentElement().textContent.slice(2).trim()):"*"==n&&this.base.getExtensionByName("unorderedlist")&&(this.base.execAction("insertunorderedlist"),this.base.getSelectedParentElement().textContent=this.base.getSelectedParentElement().textContent.slice(1).trim())}}});return t}("function"==typeof require?require("medium-editor"):MediumEditor)),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.Autolinker=t()}(this,function(){var e=function(t){t=t||{},this.version=e.version,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"!=typeof t.email||t.email,this.phone="boolean"!=typeof t.phone||t.phone,this.hashtag=t.hashtag||!1,this.mention=t.mention||!1,this.newWindow="boolean"!=typeof t.newWindow||t.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"!=typeof t.stripTrailingSlash||t.stripTrailingSlash;var n=this.mention;if(n!==!1&&"twitter"!==n&&"instagram"!==n)throw new Error("invalid `mention` cfg - see docs");var r=this.hashtag;if(r!==!1&&"twitter"!==r&&"facebook"!==r&&"instagram"!==r)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||"",this.replaceFn=t.replaceFn||null,this.context=t.context||this,this.htmlParser=null,this.matchers=null,this.tagBuilder=null};return e.link=function(t,n){var r=new e(n);return r.link(t)},e.parse=function(t,n){var r=new e(n);return r.parse(t)},e.version="1.4.2",e.prototype={constructor:e,normalizeUrlsCfg:function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},normalizeStripPrefixCfg:function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},normalizeTruncateCfg:function(t){return"number"==typeof t?{length:t,location:"end"}:e.Util.defaults(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},parse:function(e){for(var t=this.getHtmlParser(),n=t.parse(e),r=0,i=[],o=0,a=n.length;o<a;o++){var s=n[o],u=s.getType();if("element"===u&&"a"===s.getTagName())s.isClosing()?r=Math.max(r-1,0):r++;else if("text"===u&&0===r){var l=this.parseText(s.getText(),s.getOffset());i.push.apply(i,l)}}return i=this.compactMatches(i),i=this.removeUnwantedMatches(i)},compactMatches:function(e){e.sort(function(e,t){return e.getOffset()-t.getOffset()});for(var t=0;t<e.length-1;t++)for(var n=e[t],r=n.getOffset()+n.getMatchedText().length;t+1<e.length&&e[t+1].getOffset()<=r;)e.splice(t+1,1);return e},removeUnwantedMatches:function(t){var n=e.Util.remove;return this.hashtag||n(t,function(e){return"hashtag"===e.getType()}),this.email||n(t,function(e){return"email"===e.getType()}),this.phone||n(t,function(e){return"phone"===e.getType()}),this.mention||n(t,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||n(t,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.wwwMatches||n(t,function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()}),this.urls.tldMatches||n(t,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),t},parseText:function(e,t){t=t||0;for(var n=this.getMatchers(),r=[],i=0,o=n.length;i<o;i++){for(var a=n[i].parseMatches(e),s=0,u=a.length;s<u;s++)a[s].setOffset(t+a[s].getOffset());r.push.apply(r,a)}return r},link:function(e){if(!e)return"";for(var t=this.parse(e),n=[],r=0,i=0,o=t.length;i<o;i++){var a=t[i];n.push(e.substring(r,a.getOffset())),n.push(this.createMatchReturnVal(a)),r=a.getOffset()+a.getMatchedText().length}return n.push(e.substring(r)),n.join("")},createMatchReturnVal:function(t){var n;if(this.replaceFn&&(n=this.replaceFn.call(this.context,t)),"string"==typeof n)return n;if(n===!1)return t.getMatchedText();if(n instanceof e.HtmlTag)return n.toAnchorString();var r=t.buildTag();return r.toAnchorString()},getHtmlParser:function(){var t=this.htmlParser;return t||(t=this.htmlParser=new e.htmlParser.HtmlParser),t},getMatchers:function(){if(this.matchers)return this.matchers;var t=e.matcher,n=this.getTagBuilder(),r=[new t.Hashtag({tagBuilder:n,serviceName:this.hashtag}),new t.Email({tagBuilder:n}),new t.Phone({tagBuilder:n}),new t.Mention({tagBuilder:n,serviceName:this.mention}),new t.Url({tagBuilder:n,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash})];return this.matchers=r},getTagBuilder:function(){var t=this.tagBuilder;return t||(t=this.tagBuilder=new e.AnchorTagBuilder({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t}},e.match={},e.matcher={},e.htmlParser={},e.truncate={},e.Util={abstractMethod:function(){throw"abstract"},trimRegex:/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,assign:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},defaults:function(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e},extend:function(t,n){var r=t.prototype,i=function(){};i.prototype=r;var o;o=n.hasOwnProperty("constructor")?n.constructor:function(){r.constructor.apply(this,arguments)};var a=o.prototype=new i;return a.constructor=o,a.superclass=r,delete n.constructor,e.Util.assign(a,n),o},ellipsis:function(e,t,n){var r;return e.length>t&&(null==n?(n="…",r=3):r=n.length,e=e.substring(0,t-r)+n),e},indexOf:function(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},remove:function(e,t){for(var n=e.length-1;n>=0;n--)t(e[n])===!0&&e.splice(n,1)},splitAndCapture:function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,r=[],i=0;n=t.exec(e);)r.push(e.substring(i,n.index)),r.push(n[0]),i=n.index+n[0].length;return r.push(e.substring(i)),r},trim:function(e){return e.replace(this.trimRegex,"")}},e.HtmlTag=e.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(t){e.Util.assign(this,t),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(e){return this.tagName=e,this},getTagName:function(){return this.tagName||""},setAttr:function(e,t){var n=this.getAttrs();return n[e]=t,this},getAttr:function(e){return this.getAttrs()[e]},setAttrs:function(t){var n=this.getAttrs();return e.Util.assign(n,t),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(e){return this.setAttr("class",e);
|
||
},addClass:function(t){for(var n,r=this.getClass(),i=this.whitespaceRegex,o=e.Util.indexOf,a=r?r.split(i):[],s=t.split(i);n=s.shift();)o(a,n)===-1&&a.push(n);return this.getAttrs()["class"]=a.join(" "),this},removeClass:function(t){for(var n,r=this.getClass(),i=this.whitespaceRegex,o=e.Util.indexOf,a=r?r.split(i):[],s=t.split(i);a.length&&(n=s.shift());){var u=o(a,n);u!==-1&&a.splice(u,1)}return this.getAttrs()["class"]=a.join(" "),this},getClass:function(){return this.getAttrs()["class"]||""},hasClass:function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},setInnerHtml:function(e){return this.innerHtml=e,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var e=this.getTagName(),t=this.buildAttrsStr();return t=t?" "+t:"",["<",e,t,">",this.getInnerHtml(),"</",e,">"].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")}}),e.RegexLib=function(){var e="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",n=e+t,r=new RegExp("["+n+".\\-]*["+n+"\\-]");return{alphaNumericCharsStr:n,alphaCharsStr:e,domainNameRegex:r}}(),e.AnchorTagBuilder=e.Util.extend(Object,{constructor:function(e){e=e||{},this.newWindow=e.newWindow,this.truncate=e.truncate,this.className=e.className},build:function(t){return new e.HtmlTag({tagName:"a",attrs:this.createAttrs(t),innerHtml:this.processAnchorText(t.getAnchorText())})},createAttrs:function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t["class"]=n),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},createCssClass:function(e){var t=this.className;if(t){for(var n=[t],r=e.getCssClassSuffixes(),i=0,o=r.length;i<o;i++)n.push(t+"-"+r[i]);return n.join(" ")}return""},processAnchorText:function(e){return e=this.doTruncate(e)},doTruncate:function(t){var n=this.truncate;if(!n||!n.length)return t;var r=n.length,i=n.location;return"smart"===i?e.truncate.TruncateSmart(t,r):"middle"===i?e.truncate.TruncateMiddle(t,r):e.truncate.TruncateEnd(t,r)}}),e.htmlParser.HtmlParser=e.Util.extend(Object,{htmlRegex:function(){var e=/!--([\s\S]+?)--/,t=/[0-9a-zA-Z][0-9a-zA-Z:]*/,n=/[^\s"'>\/=\x00-\x1F\x7F]+/,r=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,i=n.source+"(?:\\s*=\\s*"+r.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",i,"|",r.source+")",")*",">",")","|","(?:","<(/)?","(?:",e.source,"|","(?:","("+t.source+")","\\s*/?",")","|","(?:","("+t.source+")","\\s+","(?:","(?:\\s+|\\b)",i,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(e){for(var t,n,r=this.htmlRegex,i=0,o=[];null!==(t=r.exec(e));){var a=t[0],s=t[3],u=t[1]||t[4]||t[5],l=!!t[2],c=t.index,f=e.substring(i,c);f&&(n=this.parseTextAndEntityNodes(i,f),o.push.apply(o,n)),s?o.push(this.createCommentNode(c,a,s)):o.push(this.createElementNode(c,a,u,l)),i=c+a.length}if(i<e.length){var h=e.substring(i);h&&(n=this.parseTextAndEntityNodes(i,h),n.forEach(function(e){o.push(e)}))}return o},parseTextAndEntityNodes:function(t,n){for(var r=[],i=e.Util.splitAndCapture(n,this.htmlCharacterEntitiesRegex),o=0,a=i.length;o<a;o+=2){var s=i[o],u=i[o+1];s&&(r.push(this.createTextNode(t,s)),t+=s.length),u&&(r.push(this.createEntityNode(t,u)),t+=u.length)}return r},createCommentNode:function(t,n,r){return new e.htmlParser.CommentNode({offset:t,text:n,comment:e.Util.trim(r)})},createElementNode:function(t,n,r,i){return new e.htmlParser.ElementNode({offset:t,text:n,tagName:r.toLowerCase(),closing:i})},createEntityNode:function(t,n){return new e.htmlParser.EntityNode({offset:t,text:n})},createTextNode:function(t,n){return new e.htmlParser.TextNode({offset:t,text:n})}}),e.htmlParser.HtmlNode=e.Util.extend(Object,{offset:void 0,text:void 0,constructor:function(t){if(e.Util.assign(this,t),null==this.offset)throw new Error("`offset` cfg required");if(null==this.text)throw new Error("`text` cfg required")},getType:e.Util.abstractMethod,getOffset:function(){return this.offset},getText:function(){return this.text}}),e.htmlParser.CommentNode=e.Util.extend(e.htmlParser.HtmlNode,{comment:"",getType:function(){return"comment"},getComment:function(){return this.comment}}),e.htmlParser.ElementNode=e.Util.extend(e.htmlParser.HtmlNode,{tagName:"",closing:!1,getType:function(){return"element"},getTagName:function(){return this.tagName},isClosing:function(){return this.closing}}),e.htmlParser.EntityNode=e.Util.extend(e.htmlParser.HtmlNode,{getType:function(){return"entity"}}),e.htmlParser.TextNode=e.Util.extend(e.htmlParser.HtmlNode,{getType:function(){return"text"}}),e.match.Match=e.Util.extend(Object,{constructor:function(e){if(null==e.tagBuilder)throw new Error("`tagBuilder` cfg required");if(null==e.matchedText)throw new Error("`matchedText` cfg required");if(null==e.offset)throw new Error("`offset` cfg required");this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset},getType:e.Util.abstractMethod,getMatchedText:function(){return this.matchedText},setOffset:function(e){this.offset=e},getOffset:function(){return this.offset},getAnchorHref:e.Util.abstractMethod,getAnchorText:e.Util.abstractMethod,getCssClassSuffixes:function(){return[this.getType()]},buildTag:function(){return this.tagBuilder.build(this)}}),e.match.Email=e.Util.extend(e.match.Match,{constructor:function(t){if(e.match.Match.prototype.constructor.call(this,t),!t.email)throw new Error("`email` cfg required");this.email=t.email},getType:function(){return"email"},getEmail:function(){return this.email},getAnchorHref:function(){return"mailto:"+this.email},getAnchorText:function(){return this.email}}),e.match.Hashtag=e.Util.extend(e.match.Match,{constructor:function(t){if(e.match.Match.prototype.constructor.call(this,t),!t.hashtag)throw new Error("`hashtag` cfg required");this.serviceName=t.serviceName,this.hashtag=t.hashtag},getType:function(){return"hashtag"},getServiceName:function(){return this.serviceName},getHashtag:function(){return this.hashtag},getAnchorHref:function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;default:throw new Error("Unknown service name to point hashtag to: ",e)}},getAnchorText:function(){return"#"+this.hashtag}}),e.match.Phone=e.Util.extend(e.match.Match,{constructor:function(t){if(e.match.Match.prototype.constructor.call(this,t),!t.number)throw new Error("`number` cfg required");if(null==t.plusSign)throw new Error("`plusSign` cfg required");this.number=t.number,this.plusSign=t.plusSign},getType:function(){return"phone"},getNumber:function(){return this.number},getAnchorHref:function(){return"tel:"+(this.plusSign?"+":"")+this.number},getAnchorText:function(){return this.matchedText}}),e.match.Mention=e.Util.extend(e.match.Match,{constructor:function(t){if(e.match.Match.prototype.constructor.call(this,t),!t.serviceName)throw new Error("`serviceName` cfg required");if(!t.mention)throw new Error("`mention` cfg required");this.mention=t.mention,this.serviceName=t.serviceName},getType:function(){return"mention"},getMention:function(){return this.mention},getServiceName:function(){return this.serviceName},getAnchorHref:function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;default:throw new Error("Unknown service name to point mention to: ",this.serviceName)}},getAnchorText:function(){return"@"+this.mention},getCssClassSuffixes:function(){var t=e.match.Match.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&t.push(n),t}}),e.match.Url=e.Util.extend(e.match.Match,{constructor:function(t){if(e.match.Match.prototype.constructor.call(this,t),"scheme"!==t.urlMatchType&&"www"!==t.urlMatchType&&"tld"!==t.urlMatchType)throw new Error('`urlMatchType` cfg must be one of: "scheme", "www", or "tld"');if(!t.url)throw new Error("`url` cfg required");if(null==t.protocolUrlMatch)throw new Error("`protocolUrlMatch` cfg required");if(null==t.protocolRelativeMatch)throw new Error("`protocolRelativeMatch` cfg required");if(null==t.stripPrefix)throw new Error("`stripPrefix` cfg required");if(null==t.stripTrailingSlash)throw new Error("`stripTrailingSlash` cfg required");this.urlMatchType=t.urlMatchType,this.url=t.url,this.protocolUrlMatch=t.protocolUrlMatch,this.protocolRelativeMatch=t.protocolRelativeMatch,this.stripPrefix=t.stripPrefix,this.stripTrailingSlash=t.stripTrailingSlash},schemePrefixRegex:/^(https?:\/\/)?/i,wwwPrefixRegex:/^(https?:\/\/)?(www\.)?/i,protocolRelativeRegex:/^\/\//,protocolPrepended:!1,getType:function(){return"url"},getUrlMatchType:function(){return this.urlMatchType},getUrl:function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},getAnchorHref:function(){var e=this.getUrl();return e.replace(/&/g,"&")},getAnchorText:function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),e},stripSchemePrefix:function(e){return e.replace(this.schemePrefixRegex,"")},stripWwwPrefix:function(e){return e.replace(this.wwwPrefixRegex,"$1")},stripProtocolRelativePrefix:function(e){return e.replace(this.protocolRelativeRegex,"")},removeTrailingSlash:function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e}}),e.tldRegex=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|international|lifeinsurance|orientexpress|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|pamperedchef|scholarships|versicherung|xn--3e0b707e|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|rightathome|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--3bst00m|xn--3ds443g|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--pbt977c|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|fujixerox|furniture|goldpoint|goodhands|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|mcdonalds|melbourne|microsoft|montblanc|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--nqv7f|xn--p1acf|xn--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|everbank|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|mortgage|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|telecity|training|uconnect|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|cartier|channel|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|panerai|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|spiegel|staples|starhub|statoil|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|الجزائر|العليان|پاکستان|كاثوليك|موبايلي|இந்தியா|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|warman|webcam|xihuan|xperia|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|boots|bosch|build|canon|cards|chase|cheap|chloe|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vista|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|zippo|ایران|بازار|بھارت|سودان|سورية|همراه|संगठन|বাংলা|భారత్|嘉里大酒店|aarp|able|adac|aero|aigo|akdn|ally|amex|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|doha|duck|duns|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|mtpc|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sapo|sarl|save|saxo|scor|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بيتك|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ਭਾਰਤ|ભારત|ලංකා|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|htc|ibm|ice|icu|ifm|ing|ink|int|ist|itv|iwc|jcb|jcp|jio|jlc|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|lol|lpl|ltd|man|mba|mcd|med|men|meo|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ストア|セール|みんな|中文网|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|工行|广东|微博|慈善|手机|手表|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|珠宝|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,e.matcher.Matcher=e.Util.extend(Object,{constructor:function(e){if(!e.tagBuilder)throw new Error("`tagBuilder` cfg required");this.tagBuilder=e.tagBuilder},parseMatches:e.Util.abstractMethod}),e.matcher.Email=e.Util.extend(e.matcher.Matcher,{matcherRegex:function(){var t=e.RegexLib.alphaNumericCharsStr,n=new RegExp("["+t+"\\-_';:&=+$.,]+@"),r=e.RegexLib.domainNameRegex,i=e.tldRegex;return new RegExp([n.source,r.source,"\\.",i.source].join(""),"gi")}(),parseMatches:function(t){for(var n,r=this.matcherRegex,i=this.tagBuilder,o=[];null!==(n=r.exec(t));){var a=n[0];o.push(new e.match.Email({tagBuilder:i,matchedText:a,offset:n.index,email:a}))}return o}}),e.matcher.Hashtag=e.Util.extend(e.matcher.Matcher,{matcherRegex:new RegExp("#[_"+e.RegexLib.alphaNumericCharsStr+"]{1,139}","g"),nonWordCharRegex:new RegExp("[^"+e.RegexLib.alphaNumericCharsStr+"]"),constructor:function(t){e.matcher.Matcher.prototype.constructor.call(this,t),this.serviceName=t.serviceName},parseMatches:function(t){for(var n,r=this.matcherRegex,i=this.nonWordCharRegex,o=this.serviceName,a=this.tagBuilder,s=[];null!==(n=r.exec(t));){var u=n.index,l=t.charAt(u-1);if(0===u||i.test(l)){var c=n[0],f=n[0].slice(1);s.push(new e.match.Hashtag({tagBuilder:a,matchedText:c,offset:u,serviceName:o,hashtag:f}))}}return s}}),e.matcher.Phone=e.Util.extend(e.matcher.Matcher,{matcherRegex:/(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4}([,;]*[0-9]+#?)*/g,parseMatches:function(t){for(var n,r=this.matcherRegex,i=this.tagBuilder,o=[];null!==(n=r.exec(t));){var a=n[0],s=a.replace(/[^0-9,;#]/g,""),u=!!n[1];/\D/.test(n[2])&&/\D/.test(a)&&o.push(new e.match.Phone({tagBuilder:i,matchedText:a,offset:n.index,number:s,plusSign:u}))}return o}}),e.matcher.Mention=e.Util.extend(e.matcher.Matcher,{matcherRegexes:{twitter:new RegExp("@[_"+e.RegexLib.alphaNumericCharsStr+"]{1,20}","g"),instagram:new RegExp("@[_."+e.RegexLib.alphaNumericCharsStr+"]{1,50}","g")},nonWordCharRegex:new RegExp("[^"+e.RegexLib.alphaNumericCharsStr+"]"),constructor:function(t){e.matcher.Matcher.prototype.constructor.call(this,t),this.serviceName=t.serviceName},parseMatches:function(t){var n,r=this.matcherRegexes[this.serviceName],i=this.nonWordCharRegex,o=this.serviceName,a=this.tagBuilder,s=[];if(!r)return s;for(;null!==(n=r.exec(t));){var u=n.index,l=t.charAt(u-1);if(0===u||i.test(l)){var c=n[0].replace(/\.+$/g,""),f=c.slice(1);s.push(new e.match.Mention({tagBuilder:a,matchedText:c,offset:u,serviceName:o,mention:f}))}}return s}}),e.matcher.Url=e.Util.extend(e.matcher.Matcher,{matcherRegex:function(){var t=/(?:[A-Za-z][-.+A-Za-z0-9]*:(?![A-Za-z][-.+A-Za-z0-9]*:\/\/)(?!\d+\/?)(?:\/\/)?)/,n=/(?:www\.)/,r=e.RegexLib.domainNameRegex,i=e.tldRegex,o=e.RegexLib.alphaNumericCharsStr,a=new RegExp("[/?#](?:["+o+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;✓]*["+o+"\\-+&@#/%=~_()|'$*\\[\\]✓])?");return new RegExp(["(?:","(",t.source,r.source,")","|","(","(//)?",n.source,r.source,")","|","(","(//)?",r.source+"\\.",i.source,"(?![-"+o+"])",")",")","(?::[0-9]+)?","(?:"+a.source+")?"].join(""),"gi")}(),wordCharRegExp:new RegExp("["+e.RegexLib.alphaNumericCharsStr+"]"),openParensRe:/\(/g,closeParensRe:/\)/g,constructor:function(t){if(e.matcher.Matcher.prototype.constructor.call(this,t),null==t.stripPrefix)throw new Error("`stripPrefix` cfg required");if(null==t.stripTrailingSlash)throw new Error("`stripTrailingSlash` cfg required");this.stripPrefix=t.stripPrefix,this.stripTrailingSlash=t.stripTrailingSlash},parseMatches:function(t){for(var n,r=this.matcherRegex,i=this.stripPrefix,o=this.stripTrailingSlash,a=this.tagBuilder,s=[];null!==(n=r.exec(t));){var u=n[0],l=n[1],c=n[2],f=n[3],h=n[5],d=n.index,p=f||h,m=t.charAt(d-1);if(e.matcher.UrlMatchValidator.isValid(u,l)&&!(d>0&&"@"===m||d>0&&p&&this.wordCharRegExp.test(m))){if(/\?$/.test(u)&&(u=u.substr(0,u.length-1)),this.matchHasUnbalancedClosingParen(u))u=u.substr(0,u.length-1);else{var g=this.matchHasInvalidCharAfterTld(u,l);g>-1&&(u=u.substr(0,g))}var v=l?"scheme":c?"www":"tld",y=!!l;s.push(new e.match.Url({tagBuilder:a,matchedText:u,offset:d,urlMatchType:v,url:u,protocolUrlMatch:y,protocolRelativeMatch:!!p,stripPrefix:i,stripTrailingSlash:o}))}}return s},matchHasUnbalancedClosingParen:function(e){var t=e.charAt(e.length-1);if(")"===t){var n=e.match(this.openParensRe),r=e.match(this.closeParensRe),i=n&&n.length||0,o=r&&r.length||0;if(i<o)return!0}return!1},matchHasInvalidCharAfterTld:function(t,n){if(!t)return-1;var r=0;n&&(r=t.indexOf(":"),t=t.slice(r));var i=e.RegexLib.alphaNumericCharsStr,o=new RegExp("^((.?//)?[-."+i+"]*[-"+i+"]\\.[-"+i+"]+)"),a=o.exec(t);return null===a?-1:(r+=a[1].length,t=t.slice(a[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(t)?r:-1)}}),e.matcher.UrlMatchValidator={hasFullProtocolRegex:/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,uriSchemeRegex:/^[A-Za-z][-.+A-Za-z0-9]*:/,hasWordCharAfterProtocolRegex:new RegExp(":[^\\s]*?["+e.RegexLib.alphaCharsStr+"]"),ipRegex:/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,isValid:function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},isValidIpAddress:function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source),n=e.match(t);return null!==n},containsMultipleDots:function(e){return e.indexOf("..")>-1},isValidUriScheme:function(e){var t=e.match(this.uriSchemeRegex)[0].toLowerCase();return"javascript:"!==t&&"vbscript:"!==t},urlMatchDoesNotHaveProtocolOrDot:function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||e.indexOf(".")!==-1)},urlMatchDoesNotHaveAtLeastOneWordChar:function(e,t){return!(!e||!t)&&!this.hasWordCharAfterProtocolRegex.test(e)}},e.truncate.TruncateEnd=function(t,n,r){return e.Util.ellipsis(t,n,r)},e.truncate.TruncateMiddle=function(e,t,n){if(e.length<=t)return e;var r,i;null==n?(n="…",r=8,i=3):(r=n.length,i=n.length);var o=t-i,a="";return o>0&&(a=e.substr(-1*Math.floor(o/2))),(e.substr(0,Math.ceil(o/2))+n+a).substr(0,o+r)},e.truncate.TruncateSmart=function(e,t,n){var r,i;null==n?(n="…",i=3,r=8):(i=n.length,r=n.length);var o=function(e){var t={},n=e,r=n.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],n=n.substr(r[0].length)),r=n.match(/^(.*?)(?=(\?|#|\/|$))/i),r&&(t.host=r[1],n=n.substr(r[0].length)),r=n.match(/^\/(.*?)(?=(\?|#|$))/i),r&&(t.path=r[1],n=n.substr(r[0].length)),r=n.match(/^\?(.*?)(?=(#|$))/i),r&&(t.query=r[1],n=n.substr(r[0].length)),r=n.match(/^#(.*?)$/i),r&&(t.fragment=r[1]),t},a=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},s=function(e,t){var r=t/2,i=Math.ceil(r),o=-1*Math.floor(r),a="";return o<0&&(a=e.substr(o)),e.substr(0,i)+n+a};if(e.length<=t)return e;var u=t-i,l=o(e);if(l.query){var c=l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(l.query=l.query.substr(0,c[1].length),e=a(l))}if(e.length<=t)return e;if(l.host&&(l.host=l.host.replace(/^www\./,""),e=a(l)),e.length<=t)return e;var f="";if(l.host&&(f+=l.host),f.length>=u)return l.host.length==t?(l.host.substr(0,t-i)+n).substr(0,u+r):s(f,u).substr(0,u+r);var h="";if(l.path&&(h+="/"+l.path),l.query&&(h+="?"+l.query),h){if((f+h).length>=u){if((f+h).length==t)return(f+h).substr(0,t);var d=u-f.length;return(f+s(h,d)).substr(0,u+r)}f+=h}if(l.fragment){var p="#"+l.fragment;if((f+p).length>=u){if((f+p).length==t)return(f+p).substr(0,t);var m=u-f.length;return(f+s(p,m)).substr(0,u+r)}f+=p}if(l.scheme&&l.host){var g=l.scheme+"://";if((f+g).length<u)return(g+f).substr(0,t)}if(f.length<=t)return f;var v="";return u>0&&(v=f.substr(-1*Math.floor(u/2))),(f.substr(0,Math.ceil(u/2))+n+v).substr(0,u+r)},e}),function(){function t(e){this.listeners={},this.__context=e||this}function n(e,t){function n(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!0,writable:!1})}for(var r in t)n(this,r,t[r]);n(this,"x",e.x-t.left+1),n(this,"y",e.y-t.top+1),n(this,"north",(t.bottom-t.top)/2-this.y),n(this,"south",-(t.bottom-t.top)/2+this.y),n(this,"east",(t.right-t.left)/2-this.x),n(this,"west",-(t.right-t.left)/2+this.x)}function r(t){function r(e){y=Date.now(),s(e),f.down=!0,f.up=!1,f.current&&(f.origin=f.current,f.emitter.emit("down",f.current,g)),k=f.x,C=f.y}function o(e){s(e),f.emitter.emit("move",f.current,g),f.down&&f.current&&f.emitter.emit("stroke",f.current,g)}function a(e){return f.down=!1,f.up=!0,f.current&&f.emitter.emit("up",f.current,g),e.targetTouches&&!(f.y>C-$&&f.y<C+$&&f.x>k-$&&f.x<k+$||E)?(f.previous=null,f.origin=null,e.preventDefault(),!1):(E=!1,f.previous=null,void(f.origin=null))}function s(e){var t,r,o,a,s=null,u=null;if(e=e||window.event,a=e.target||e.srcElement,e.targetTouches?(e.pageX=e.targetTouches[0].clientX,e.pageY=e.targetTouches[0].clientY,e.clientX=e.targetTouches[0].clientX,e.clientY=e.targetTouches[0].clientY):null===e.pageX&&null!==e.clientX&&(t=e.target&&e.target.ownerDocument||document,r=t.documentElement,o=t.body,e.pageX=e.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),f.x&&f.y&&(e.pageX<f.x?_.h="left":e.pageX>f.x&&(_.h="right"),e.pageY<f.y?_.v="up":e.pageY>f.y&&(_.v="down"),w=f.x,x=f.y),b={},b.x=e.clientX,b.y=e.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)}m=f.current?i(f.current):null,g=m?new n(f,m):null,u&&(s||(f.current=null),f.emitter.emit("leave",u,g)),s&&f.emitter.emit("enter",f.current,g)}function l(e,t){for(var n=0;n<A[e].length;n++)if(A[e][n].callback===t)return void A[e].splice(n,1)}function c(e,t,n){"undefined"==typeof n&&(n=t,t=null),A[e].push({data:t,callback:n})}var f=this,h=[];"undefined"==typeof t.length&&(t=[t]);for(var d=0;d<t.length;d++)if(void 0!==t[d])if("string"==typeof t[d])try{h.push(document.querySelector(e))}catch(p){throw new Error(e+" is not a valid selector used by pointer.")}else h.push(t[d]);var m,g,v,y,b={},_={},w=-1,x=-1,k=-1,C=-1,E=!1,$=10,S=!1,A={hold:[]};this.emitter=new u(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(e){E=!0,clearTimeout(S),S=setTimeout(function(){E=!1},100)}),Object.defineProperty(this,"speedX",{get:function(){var e=Date.now()/1e3,t=e-v,n=f.x-w;return v=e,Math.round(n/t)}}),Object.defineProperty(this,"speedY",{get:function(){var e=Date.now()/1e3,t=e-v,n=f.y-x;return v=e,Math.round(n/t)}}),Object.defineProperty(this,"x",{get:function(){return b.x}}),Object.defineProperty(this,"y",{get:function(){return b.y}}),Object.defineProperty(this,"h",{get:function(){return _.h}}),Object.defineProperty(this,"v",{get:function(){return _.v}}),this.emitter.on("up",function(e,t){if(y)for(var n=0;n<A.hold.length;n++)Date.now()>y+(A.hold[n].data||2e3)&&A.hold[n].callback.call(this,e,t);y=0}),this.on=function(e,t){return A[e]?(c(e,t,arguments[2]),this):(this.emitter.on(e,t),this)},this.off=function(e,t){return A[e]?(l(e,t),this):(this.emitter.off(e,t),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,b=null,_=null}}function i(e){return e===window?{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,width:window.innerWidth,height:window.innerHeight}:e.getBoundingClientRect()}function o(e,t){function n(){m=!0}function r(){m=!1}function o(t){if(f.autoScroll()&&t.target){var n,r=t.target;if(!b||!a(d,b))if(!b&&r){for(b=null;r=r.parentNode;)for(var i=0;i<e.length;i++)if(e[i]===r&&a(d,e[i])){b=e[i];break}}else{n=b,b=null;for(var i=0;i<e.length;i++)e[i]!==n&&a(d,e[i])&&(b=e[i])}g&&s(g),b&&s(b)}}function s(e){var t=i(e);d.y<t.top+f.margin?u(e,-1,t):d.y>t.bottom-f.margin&&u(e,1,t),d.x<t.left+f.margin?c(e,-1,t):d.x>t.right-f.margin&&c(e,1,t)}function u(e,t,n){f.autoScroll()&&(f.scrollWhenOutside||a(d,e,n))&&(e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop=e.scrollTop+t,setTimeout(function(){d.y<n.top+f.margin?u(e,t,n):d.y>n.bottom-f.margin&&u(e,t,n)},f.interval))}function c(e,t,n){f.autoScroll()&&(f.scrollWhenOutside||a(d,e,n))&&(e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft=e.scrollLeft+t,setTimeout(function(){d.x<n.left+f.margin?c(e,t,n):d.x>n.right-f.margin&&c(e,t,n)},f.interval))}var f=this,h=2;t=t||{},this.margin=t.margin||-1,this.scrolling=!1,this.scrollWhenOutside=t.scrollWhenOutside||!1;var d={},p=l(d),m=!1;window.addEventListener("mousemove",p,!1),window.addEventListener("touchmove",p,!1),isNaN(t.pixels)||(h=t.pixels),"boolean"==typeof t.autoScroll?this.autoScroll=t.autoScroll?function(){return!0}:function(){return!1}:"undefined"==typeof t.autoScroll?this.autoScroll=function(){return!1}:"function"==typeof t.autoScroll&&(this.autoScroll=t.autoScroll),this.destroy=function(){window.removeEventListener("mousemove",p,!1),window.removeEventListener("touchmove",p,!1),window.removeEventListener("mousedown",n,!1),window.removeEventListener("touchstart",n,!1),window.removeEventListener("mouseup",r,!1),window.removeEventListener("touchend",r,!1)};for(var g=null,v=[],y=0;y<e.length;y++){if(e[y]===window){g=window;break}v.push(e[y])}e=v,v=null,Object.defineProperties(this,{down:{get:function(){return m}},interval:{get:function(){return 1/h*1e3}},pixels:{set:function(e){h=e},get:function(){return h}}}),window.addEventListener("mousedown",n,!1),window.addEventListener("touchstart",n,!1),window.addEventListener("mouseup",r,!1),window.addEventListener("touchend",r,!1);var b;window.addEventListener("mousemove",o,!1),window.addEventListener("touchmove",o,!1)}function i(e){if(e===window)return{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,width:window.innerWidth,height:window.innerHeight};try{return e.getBoundingClientRect()}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+e)}}function a(e,t,n){return n=n||i(t),e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right}function s(e,t){return new o(e,t)}t.prototype={constructor:t,on:function(e,t){return this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t),this},one:function(e,t){function n(){return t.apply(this,arguments),this.off(e,n),this}return this.on(e,n)},emit:function(e){if("undefined"==typeof this.listeners[e]||!this.listeners[e].length)return this;var t=Array.prototype.slice.call(arguments,1),n=this.listeners[e].length;do this.listeners[e][--n].apply(this.__context,t);while(n);return this},off:function(e,t){return void 0!==this.listeners[e]&&this.listeners[e].length?(this.listeners[e]=this.listeners[e].filter(function(e){return e!==t}),this):this},dispose:function(){for(var e in this)this[e]=null}};var u=t;Date.now||(Date.now=function(){return(new Date).getTime()}),r.prototype={constructor:r,inside:function(e){if(!e)throw new TypeError("Cannot be inside "+e);var t=i(e);return this.y>t.top&&this.y<t.bottom&&this.x>t.left&&this.x<t.right},outside:function(e){if(!e)throw new TypeError("Cannot be outside "+e);return!this.inside(e)}};var l=function(e){return function(t){if(t=t||window.event,e.target=t.target||t.srcElement||t.originalTarget,e.element=this,e.type=t.type,t.targetTouches)e.x=t.targetTouches[0].clientX,e.y=t.targetTouches[0].clientY,e.pageX=t.pageX,e.pageY=t.pageY;else{if(null===t.pageX&&null!==t.clientX){var n=t.target&&t.target.ownerDocument||document,r=n.documentElement,i=n.body;e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)}else e.pageX=t.pageX,e.pageY=t.pageY;e.x=t.clientX,e.y=t.clientY}}};window.autoScroll=s}(),function(){var e="ui-multisortable-multiple",t="main-drag-item",n=!1,r=null,i=function(){var e=(l.items.elm,l.items.container,l.items.shadow),t=e.position().left,n=e.position().top,r=e.outerHeight();_.forEach(l.items.draggingItems,function(e,i){var o=parseInt(e.data("dragMultipleIndex"),10),a=n+o*r;e.css({top:a,left:t})})},o=function(){n=!1,a();l.items.elm,l.items.container;return document.documentElement.removeEventListener("mousemove",r),l.items={},$("."+t).removeClass(t),$(".tg-backlog-us-mirror").remove(),$(".backlog-us-mirror").removeClass("backlog-us-mirror"),$(".tg-backlog-us-dragging").removeClass("tg-backlog-us-dragging").show(),$("."+e)},a=function(){var e=parseInt(l.items.elm.data("dragMultipleIndex"),10),t=[],n=[];_.forEach(l.items.draggedItemsOriginal,function(r){parseInt($(r).data("dragMultipleIndex"),10)>e?t.push(r):n.push(r)}),t.reverse(),_.forEach(t,function(e){$(e).insertAfter(l.items.elm)}),_.forEach(n,function(e){$(e).insertBefore(l.items.elm)})},s=function(t,n){var r=$(n).find("."+e);return!!($(t).hasClass(e)&&r.length>1)},u=function(e){var t=[],n=[],r=!1;_.forEach(e,function(e,i){return 0===$(e).data("dragMultipleIndex")?void(r=!0):void(r?n.push(e):t.push(e))}),t.reverse(),_.forEach(n,function(e,t){$(e).data("dragMultipleIndex",t+1)}),_.forEach(t,function(e,t){$(e).data("dragMultipleIndex",-t-1)})},l={};l.prepare=function(r,i){n=!0;var o=$(i).find("."+e);_.forEach(o,function(e,t){$(e).data("position",null).data("dragMultipleIndex",null)}),$(r).data("dragmultiple:originalPosition",$(r).position()).data("dragMultipleActive",!0),l.items={},l.items.elm=$(r),l.items.container=$(i),l.items.elm.data("dragMultipleIndex",0),u(o),l.items.shadow=$(".gu-mirror"),l.items.elm.addClass(t),o=_.filter(o,function(e){return!$(e).hasClass(t)}),l.items.draggedItemsOriginal=o;var a=_.map(o,function(e){return clone=$(e).clone(!0),clone.addClass("backlog-us-mirror").addClass("tg-backlog-us-mirror").data("dragmultiple:originalPosition",$(e).position()).data("dragMultipleActive",!0).css({zIndex:"9999",opacity:"0.8",position:"fixed",width:l.items.elm.outerWidth(),height:l.items.elm.outerHeight()}),$(e).hide().addClass("tg-backlog-us-dragging"),clone});l.items.draggingItems=a,$(document.body).append(a)},l.start=function(e,t){s(e,t)&&document.documentElement.addEventListener("mousemove",function(){n||l.prepare(e,t),i(),r=arguments.callee})},l.stop=function(){return n?o():[]},window.dragMultiple=l}(),function(){function e(){return++s}function t(t,n){var r=t&&t.$$hashKey;if(r)return"function"==typeof r&&(r=t.$$hashKey()),r;var i=typeof t;return r="function"==i||"object"==i&&null!==t?t.$$hashKey=i+":"+(n||e)():i+":"+t}function n(){return Object.create(null)}function r(e){if(null==e||i(e))return!1;var t=e.length;return!(e.nodeType!==a||!t)||(angular.isString(e)||angular.isArray(e)||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e){return e&&e.window===e}function o(e){var t=e[0],n=e[e.length-1],r=[t];do{if(t=t.nextSibling,!t)break;r.push(t)}while(t!==n);return u(r)}var a=1,s=0,u=(Array.isArray,$),l=["$parse","$animate",function(e,i){var a="$$NG_REMOVED",s=angular.$$minErr("ngRepeat"),l=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0===(1&t))},c=function(e){return e.clone[0]},f=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(h,d){var p=d.tgRepeat,m=document.createComment(" end ngRepeat: "+p+" "),g=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var v=g[1],y=g[2],b=g[3],_=g[4];if(g=v.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!g)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var w=g[3]||g[1],x=g[2];if(b&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(b)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(b)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",b);var k,C,E,$,S={$id:t};return _?k=e(_):(E=function(e,n){return t(n)},$=function(e){return e}),function(e,t,h,d,g){k&&(C=function(t,n,r){return x&&(S[x]=t),S[w]=n,S.$index=r,k(e,S)});var v=n();e.$watch(y,function(h){var d=[];h&&h.toJS&&(d=h.toJS());var y,_,k,S,A,T,D,N,F,M,O,j,P=t[0],L=n();if(b&&(e[b]=h),r(d))F=d,N=C||E;else{N=C||$,F=[];for(var R in d)d.hasOwnProperty(R)&&"$"!==R.charAt(0)&&F.push(R)}for(S=F.length,O=new Array(S),y=0;y<S;y++)if(A=d===F?y:F[y],T=d[A],immutable_value=h.get(A),D=N(A,immutable_value,y),v[D])M=v[D],delete v[D],L[D]=M,O[y]=M;else{if(L[D])throw O.forEach(function(e){e&&e.scope&&(v[e.id]=e)}),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}",p,D,T);O[y]={id:D,scope:void 0,clone:void 0},L[D]=!0}for(var I in v){if(M=v[I],j=o(M.clone),i.leave(j),j[0].parentNode)for(y=0,_=j.length;y<_;y++)j[y][a]=!0;M.scope.$destroy()}for(y=0;y<S;y++)if(A=d===F?y:F[y],T=d[A],immutable_value=h.get(A),M=O[y],M.scope){k=P;do k=k.nextSibling;while(k&&k[a]);c(M)!=k&&i.move(o(M.clone),null,u(P)),P=f(M),l(M.scope,y,w,immutable_value,x,A,S)}else g(function(e,t){M.scope=t;var n=m.cloneNode(!1);e[e.length++]=n,i.enter(e,null,u(P)),P=n,M.clone=e,L[M.id]=M,l(M.scope,y,w,immutable_value,x,A,S)});v=L})}}}}];angular.module("tgRepeat",[]).directive("tgRepeat",l)}();var hexcase=0,b64pad="",chrsz=8,MentionExtension=MediumEditor.Extension.extend({name:"mediumMention",init:function(){this.subscribe("editableKeyup",this.handleKeyup.bind(this)),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.subscribe("blur",this.cancel.bind(this))},isEditMode:function(){return!this.base.origElements.parentNode.classList.contains("read-mode")},cancel:function(){this.isEditMode()&&(this.hidePanel(),this.reset())},handleKeydown:function(e){var t=e.keyCode?e.keyCode:e.which;this.mentionPanel&&t===MediumEditor.util.keyCode.ENTER&&e.preventDefault()},handleKeyup:function(e){var t=e.keyCode?e.keyCode:e.which,n=t===MediumEditor.util.keyCode.SPACE,r=t===MediumEditor.util.keyCode.BACKSPACE;this.mentionPanel&&this.keyDownMentionPanel(e);var i=[37,38,39,40];if(i.indexOf(t)===-1&&(this.selection=this.document.getSelection(),!r||"p"!==this.selection.focusNode.nodeName.toLowerCase())){if(n||1!==this.selection.rangeCount)n&&this.cancelMentionSpace();else{var o=this.selection.getRangeAt(0).startOffset,a=this.selection.focusNode.textContent;if(this.word=this.getLastWord(a),a=a.substring(0,o),this.word.length>1&&["@","#",":"].indexOf(this.word[0])!=-1)return this.wrap(),this.showPanel(),void MediumEditor.selection.select(this.document,this.wordNode.firstChild,this.word.length)}this.hidePanel()}},reset:function(){this.wordNode=null,this.word=null,this.selection=null},cancelMentionSpace:function(){if(this.wordNode&&this.wordNode.nextSibling){var e=this.document.createTextNode("");e.textContent=this.word+" ",this.wordNode.parentNode.replaceChild(e,this.wordNode),MediumEditor.selection.select(this.document,e,this.word.length+1)}this.reset()},wrap:function(){var e=this.selection.getRangeAt(0).cloneRange();if("a"===e.startContainer.parentNode.nodeName.toLowerCase()){var t=e.startContainer.parentNode.parentNode,n=this.document.createTextNode(e.startContainer.parentNode.innerText);t.replaceChild(n,e.startContainer.parentNode),this.selection.removeAllRanges(),e=document.createRange(),e.setStart(n,n.length),e.setEnd(n,n.length),this.selection.addRange(e)}e.startContainer.parentNode.classList.contains("mention")?this.wordNode=e.startContainer.parentNode:(this.wordNode=this.document.createElement("span"),this.wordNode.classList.add("mention"),e.setStart(e.startContainer,this.selection.getRangeAt(0).startOffset-this.word.length),e.surroundContents(this.wordNode),this.selection.removeAllRanges(),this.selection.addRange(e),e.setStart(e.startContainer,e.endOffset),e.setStart(e.endContainer,e.endOffset),this.selection.removeAllRanges(),this.selection.addRange(e))},refreshPositionPanel:function(){var e=this.wordNode.getBoundingClientRect();this.mentionPanel.style.top=this.window.pageYOffset+e.bottom+"px",this.mentionPanel.style.left=this.window.pageXOffset+e.left+"px"},selectMention:function(e){if(e.image){var t=document.createElement("img");t.src=e.image,this.wordNode.parentNode.replaceChild(t,this.wordNode),this.wordNode=t}else{var n=document.createElement("a");n.setAttribute("href",e.url),e.ref?n.innerText="#"+e.ref+"-"+e.subject:n.innerText="@"+e.username,this.wordNode.parentNode.replaceChild(n,this.wordNode),this.wordNode=n}var r=this.document.createTextNode("");r.textContent=" ",this.wordNode.parentNode.insertBefore(r,this.wordNode.nextSibling),MediumEditor.selection.select(this.document,r,1);var i=this.base.getFocusedElement();this.base.events.updateInput(i,{target:i,currentTarget:i}),this.hidePanel(),this.reset()},showPanel:function(){if(document.querySelectorAll(".medium-editor-mention-panel").length)return this.refreshPositionPanel(),void this.getItems(this.word,this.renderPanel.bind(this));var e=this.document.createElement("div");e.classList.add("medium-editor-mention-panel"),this.mentionPanel=e,this.getEditorOption("elementsContainer").appendChild(e),this.refreshPositionPanel(),this.getItems(this.word,this.renderPanel.bind(this))},keyDownMentionPanel:function(e){var t=e.keyCode?e.keyCode:e.which,n=this.mentionPanel.querySelector(".active");if(this.wordNode=document.querySelector("span.mention"),n){if(t===MediumEditor.util.keyCode.ENTER){e.preventDefault(),e.stopPropagation();var r=document.createEvent("HTMLEvents");return r.initEvent("mousedown",!0,!1),void n.dispatchEvent(r)}n.classList.remove("active"),38===t?n.previousSibling?n.previousSibling.classList.add("active"):n.parentNode.lastChild.classList.add("active"):40===t&&(n.nextSibling?n.nextSibling.classList.add("active"):n.parentNode.firstChild.classList.add("active"))}},renderPanel:function(e){if(this.mentionPanel.innerHTML="",e.length){var t=this.document.createElement("ul");t.classList.add("medium-mention"),e.forEach(function(e){var n=this.document.createElement("li");if(e.image){var r=this.document.createElement("img");r.src=e.image,n.appendChild(r);var i=document.createTextNode("");i.textContent=" "+e.name,n.appendChild(i)}else e.ref?n.innerText="#"+e.ref+" - "+e.subject:n.innerText="@"+e.username;n.addEventListener("mousedown",this.selectMention.bind(this,e)),t.appendChild(n)}.bind(this)),t.firstChild.classList.add("active"),this.mentionPanel.appendChild(t)}},hidePanel:function(){this.mentionPanel&&(this.mentionPanel.parentNode.removeChild(this.mentionPanel),this.mentionPanel=null)},getLastWord:function(e){var t=e.split(" ");return t[t.length-1].trim()}});!function(){"use strict";window.markdownitLazyHeaders=function(e){function t(e,t,n,r){var i,o,a,s,u=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(i=e.src.charCodeAt(u),35!==i||u>=l)return!1;for(o=1,i=e.src.charCodeAt(++u);35===i&&u<l&&o<=6;)o++,i=e.src.charCodeAt(++u);return!(o>6)&&(!!r||(l=e.skipCharsBack(l,32,u),a=e.skipCharsBack(l,35,u),a>u&&32===e.src.charCodeAt(a-1)&&(l=a),e.line=t+1,s=e.push("heading_open","h"+String(o),1),s.markup="########".slice(0,o),s.map=[t,e.line],s=e.push("inline","",0),s.content=e.src.slice(u,l).trim(),s.map=[t,e.line],s.children=[],s=e.push("heading_close","h"+String(o),-1),s.markup="########".slice(0,o),!0))}e.block.ruler.at("heading",t,{alt:["paragraph","reference","blockquote"]})}}();
|
||
//# sourceMappingURL=maps/libs.js.map
|