!function(){varn,t;(function(){n={}}).call(this),function(){(function(){vart=this,r=t._,e={},i=Array.prototype,u=Object.prototype,a=Function.prototype,c=i.push,o=i.slice,l=i.concat,f=u.toString,s=u.hasOwnProperty,p=i.forEach,h=i.map,v=i.reduce,y=i.reduceRight,d=i.filter,g=i.every,m=i.some,b=i.indexOf,_=i.lastIndexOf,w=Array.isArray,x=Object.keys,j=a.bind,A=function(n){returnninstanceofA?n:thisinstanceofA?void(this._wrapped=n):newA(n)};"undefined"!=typeofn?("undefined"!=typeofmodule&&module.exports&&(n=module.exports=A),n._=A):t._=A,A.VERSION="1.5.2";vark=function(n){return"[object Arguments]"===f.call(n)};k(arguments)||(k=function(n){return!(!n||!s.call(n,"callee")||"function"!=typeofn.callee)});varO=function(n){returnn.length===+n.length&&(k(n)||n.constructor!==Object)},E=A.each=A.forEach=function(n,t,r){if(null!=n)if(p&&n.forEach===p)n.forEach(t,r);elseif(O(n)){for(vari=0,u=n.length;i<u;i++)if(t.call(r,n[i],i,n)===e)return}elsefor(vara=A.keys(n),i=0,u=a.length;i<u;i++)if(t.call(r,n[a[i]],a[i],n)===e)return};A.map=A.collect=function(n,t,r){vare=[];returnnull==n?e:h&&n.map===h?n.map(t,r):(E(n,function(n,i,u){e.push(t.call(r,n,i,u))}),e)};varF="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(n,t,r,e){vari=arguments.length>2;if(null==n&&(n=[]),v&&n.reduce===v)returne&&(t=A.bind(t,e)),i?n.reduce(t,r):n.reduce(t);if(E(n,function(n,u,a){i?r=t.call(e,r,n,u,a):(r=n,i=!0)}),!i)thrownewTypeError(F);returnr},A.reduceRight=A.foldr=function(n,t,r,e){vari=arguments.length>2;if(null==n&&(n=[]),y&&n.reduceRight===y)returne&&(t=A.bind(t,e)),i?n.reduceRight(t,r):n.reduceRight(t);varu=n.length;if(!O(n)){vara=A.keys(n);u=a.length}if(E(n,function(c,o,l){o=a?a[--u]:--u,i?r=t.call(e,r,n[o],o,l):(r=n[o],i=!0)}),!i)thrownewTypeError(F);returnr},A.find=A.detect=function(n,t,r){vare;returnM(n,function(n,i,u){if(t.call(r,n,i,u))returne=n,!0}),e},A.filter=A.select=function(n,t,r){vare=[];returnnull==n?e:d&&n.filter===d?n.filter(t,r):(E(n,function(n,i,u){t.call(r,n,i,u)&&e.push(n)}),e)},A.reject=function(n,t,r){returnA.filter(n,function(n,e,i){return!t.call(r,n,e,i)},r)},A.every=A.all=function(n,t,r){t||(t=A.identity);vari=!0;returnnull==n?i:g&&n.every===g?n.every(t,r):(E(n,function(n,u,a){if(!(i=i&&t.call(r,n,u,a)))returne}),!!i)};varM=A.some=A.any=function(n,t,r){t||(t=A.identity);vari=!1;returnnull==n?i:m&&n.some===m?n.some(t,r):(E(n,function(n,u,a){if(i||(i=t.call(r,n,u,a)))returne}),!!i)};A.contains=A.include=function(n,t){returnnull!=n&&(b&&n.indexOf===b?n.indexOf(t)!=-1:M(n,function(n){returnn===t}))},A.invoke=function(n,t){varr=o.call(arguments,2),e=A.isFunction(t);returnA.map(n,function(n){return(e?t:n[t]).apply(n,r)})},A.pluck=function(n,t){returnA.map(n,function(n){returnn[t]})},A.where=function(n,t,r){returnA.isEmpty(t)?r?void0:[]:A[r?"find":"filter"](n,function(n){for(varrint)if(t[r]!==n[r])return!1;return!0})},A.findWhere=function(n,t){returnA.where(n,t,!0)},A.max=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)returnMath.max.apply(Math,n);if(!t&&A.isEmpty(n))return-(1/0);vare={computed:-(1/0),value:-(1/0)};returnE(n,function(n,i,u){vara=t?t.call(r,n,i,u):n;a>e.computed&&(e={value:n,computed:a})}),e.value},A.min=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)returnMath.min.apply(Math,n);if(!t&&A.isEmpty(n))return1/0;vare={computed:1/0,value:1/0};returnE(n,function(n,i,u){vara=t?t.call(r,n,i,u):n;a<e.computed&&(e={value:n,computed:a})}),e.value},A.shuffle=function(n){vart,r=0,e=[];returnE(n,function(n){t=A.random(r++),e[r-1]=e[t],e[t]=n}),e},A.sample=function(n,t,r){returnarguments.length<2||r?n[A.random(n.length-1)]:A.shuffle(n).slice(0,Math.max(0,t))};varR=function(n){returnA.isFunction(n)?n:function(t){returnt[n]}};A.sortBy=function(n,t,r){vare=R(t);returnA.pluck(A.map(n,function(n,t,i){return{value:n,index:t,criteria:e.call(r,n,t,i)}}).sort(function(n,t){varr=n.criteria,e=t.criteria;if(r!==e){if(r>e||void0===r)return1;if(r<e||void0===e)return-1}returnn.index-t.index}),"value")};varS=f
!function(){vart=Package.underscore._,e,n,r;(function(){e=this}).call(this),function(){n=__meteor_runtime_config__.meteorEnv,r={isProduction:"production"===n.NODE_ENV,isDevelopment:"production"!==n.NODE_ENV,isClient:!0,isServer:!1,isCordova:!1},"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.PUBLIC_SETTINGS&&(r.settings={public:__meteor_runtime_config__.PUBLIC_SETTINGS})}.call(this),function(){functione(t){if(t)returnr._debug("Exception in callback of async function",t.stack?t.stack:t)}if(r.isServer)varn=Npm.require("fibers/future");"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.meteorRelease&&(r.release=__meteor_runtime_config__.meteorRelease),t.extend(r,{_get:function(t){for(vare=1;e<arguments.length;e++){if(!(arguments[e]int))return;t=t[arguments[e]]}returnt},_ensure:function(t){for(vare=1;e<arguments.length;e++){varn=arguments[e];nint||(t[n]={}),t=t[n]}returnt},_delete:function(t){for(vare=[t],n=!0,r=1;r<arguments.length-1;r++){varo=arguments[r];if(!(oint)){n=!1;break}if(t=t[o],"object"!=typeoft)break;e.push(t)}for(varr=e.length-1;r>=0;r--){varo=arguments[r+1];if(n)n=!1;elsefor(variine[r][o])return;deletee[r][o]}},wrapAsync:function(o,i){returnfunction(){for(vara=i||this,s=t.toArray(arguments),u,c=s.length-1;c>=0;--c){varl=s[c],f=typeofl;if("undefined"!==f){"function"===f&&(u=l);break}}if(!u){if(r.isClient)u=e;else{varp=newn;u=p.resolver()}++c}s[c]=r.bindEnvironment(u);var_=o.apply(a,s);returnp?p.wait():_}},_inherits:function(e,n){for(varrinn)t.has(n,r)&&(e[r]=n[r]);varo=function(){this.constructor=e};returno.prototype=n.prototype,e.prototype=newo,e.__super__=n.prototype,e}});varo=!1;r._wrapAsync=function(t,e){returno||(r._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync"),o=!0),r.wrapAsync.apply(r,arguments)}}.call(this),function(){"use strict";functiont(){if(o.setImmediate){vart=function(t){o.setImmediate(t)};returnt.implementation="setImmediate",t}returnnull}functione(){functiont(t,e){return"string"==typeoft&&t.substring(0,e.length)===e}functione(e){if(e.source===o&&t(e.data,s)){varn=e.data.substring(s.length);try{a[n]&&a[n]()}finally{deletea[n]}}}if(!o.postMessage||o.importScripts)returnnull;varn=!0,r=o.onmessage;if(o.onmessage=function(){n=!1},o.postMessage("","*"),o.onmessage=r,!n)returnnull;vari=0,a={},s="Meteor._setImmediate."+Math.random()+".";o.addEventListener?o.addEventListener("message",e,!1):o.attachEvent("onmessage",e);varu=function(t){++i,a[i]=t,o.postMessage(s+i,"*")};returnu.implementation="postMessage",u}functionn(){vart=function(t){o.setTimeout(t,0)};returnt.implementation="setTimeout",t}varo=this;r._setImmediate=t()||e()||n()}.call(this),function(){vare=function(t){if(Package.ddp){vare=Package.ddp.DDP._CurrentInvocation;if(e.get()&&e.get().isSimulation)thrownewError("Can't set timers inside simulations");returnfunction(){e.withValue(null,t)}}returnt},n=function(t,n){returnr.bindEnvironment(e(n),t)};t.extend(r,{setTimeout:function(t,e){returnsetTimeout(n("setTimeout callback",t),e)},setInterval:function(t,e){returnsetInterval(n("setInterval callback",t),e)},clearInterval:function(t){returnclearInterval(t)},clearTimeout:function(t){returnclearTimeout(t)},defer:function(t){r._setImmediate(n("defer callback",t))}})}.call(this),function(){r.makeErrorType=function(t,e){varn=function(){Error.captureStackTrace?Error.captureStackTrace(this,n):this.stack=(newError).stack,e.apply(this,arguments),this.errorType=t};returnr._inherits(n,Error),n},r.Error=r.makeErrorType("Meteor.Error",function(t,e,n){varr=this;r.error=t,r.reason=e,r.details=n,r.reason?r.message=r.reason+" ["+r.error+"]":r.message="["+r.error+"]"}),r.Error.prototype.clone=function(){vart=this;returnnewr.Error(t.error,t.reason,t.details)}}.call(this),function(){r._noYieldsAllowed=function(t){returnt()},r._SynchronousQueue=function(){vart=this;t._tasks=[],t._running=!1,t._runTimeout=null},t.extend(r._SynchronousQueue.prototype,{runTask:function(e){varn=this;if(!n.safeToRunTask())thrownewError("Couldnotsync
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["modules-runtime"].meteorInstall,s,a,i=n({node_modules:{meteor:{modules:{"client.js":["./install-packages.js","./stubs.js","./buffer.js","./process.js","reify/lib/runtime","./css",function(e,t,r){e("./install-packages.js"),e("./stubs.js"),e("./buffer.js"),e("./process.js"),e("reify/lib/runtime").enable(r.constructor),t.addStyles=e("./css").addStyles}],"buffer.js":["buffer",function(e){try{s=t.Buffer||e("buffer").Buffer}catch(e){}}],"css.js":function(e,t){varr=document,o=r.getElementsByTagName("head").item(0);t.addStyles=function(e){vart=r.createElement("style");t.setAttribute("type","text/css");varn=t.sheet||t.styleSheet;returnn?n.cssText=e:t.appendChild(r.createTextNode(e)),o.appendChild(t)}},"install-packages.js":function(e,t,r){functiono(e,t){varr={};t?r[e+".js"]=[t,function(e,r,o){o.exports=e(t)}]:r[e+".js"]=function(t,r,o){o.exports=Package[e]},n({node_modules:{meteor:r}})}o("underscore"),o("meteor"),o("meteor-base"),o("mobile-experience"),o("modules-runtime"),o("modules","meteor/modules/client.js"),o("es5-shim","meteor/es5-shim/client.js"),o("promise","meteor/promise/client.js"),o("ecmascript-runtime","meteor/ecmascript-runtime/runtime.js"),o("babel-compiler"),o("ecmascript"),o("base64"),o("ejson"),o("id-map"),o("ordered-dict"),o("tracker"),o("babel-runtime"),o("random"),o("mongo-id"),o("diff-sequence"),o("geojson-utils","meteor/geojson-utils/main.js"),o("minimongo"),o("check","meteor/check/match.js"),o("retry"),o("ddp-common"),o("reload"),o("ddp-client"),o("ddp"),o("ddp-server"),o("allow-deny"),o("mongo"),o("blaze-html-templates"),o("reactive-var"),o("jquery","meteor/jquery/main.js"),o("standard-minifier-css"),o("standard-minifier-js"),o("shell-server"),o("url"),o("http"),o("dicomweb"),o("cornerstone"),o("standard-app-packages"),o("stylus"),o("autoupdate"),o("meteor-platform"),o("webapp"),o("logging"),o("deps"),o("reactive-dict"),o("session"),o("livedata"),o("observe-sequence"),o("htmljs"),o("blaze"),o("ui"),o("spacebars"),o("templating-compiler"),o("templating-runtime"),o("templating"),o("launch-screen"),o("design"),o("iron:core"),o("iron:dynamic-template"),o("iron:layout"),o("clinical:router-url"),o("clinical:router-middleware-stack"),o("clinical:router-location"),o("iron:controller"),o("clinical:router"),o("natestrauser:select2"),o("aldeed:simple-schema"),o("ohif:core","meteor/ohif:core/main.js"),o("coffeescript"),o("practicalmeteor:chai"),o("practicalmeteor:loglevel"),o("momentjs:moment"),o("validatejs"),o("viewerbase"),o("rwatts:uuid"),o("silentcicero:jszip"),o("gilbertwat:bootstrap3-daterangepicker"),o("dimseservice"),o("orthanc-remote"),o("wadoproxy"),o("worklist"),o("aldeed:template-extension"),o("twbs:bootstrap"),o("fortawesome:fontawesome"),o("mrt:moment"),o("fastclick"),o("peppelg:bootstrap-3-modal"),o("hot-code-push"),o("mdg:validation-error")},"process.js":["process",function(s,i,c){try{a=t.process||s("process")}catch(e){a={}}e.isServer?n({node_modules:{"process.js":function(e,t,r){r.exports=a}}}):(a.platform="browser",a.nextTick=a.nextTick||e._setImmediate),"object"!=typeofa.env&&(a.env={}),o.extend(a.env,r)}],"stubs.js":["meteor-node-stubs",function(e){try{e("meteor-node-stubs")}catch(e){}}],node_modules:{reify:{lib:{"runtime.js":["./entry.js","./utils.js",function(e,t,r){varo=e("./entry.js").Entry,n=e("./utils.js");t.enable=function(t){functionr(e){vart=e.exports;t&&"object"==typeoft&&(t.__esModule=!0)}vars=t.prototype;return"function"==typeofs.import&&"function"==typeofs.export?t:(s.resolve=s.resolve||functione(t){thrownewError("Module.prototype.resolve not implemented")},s.runModuleSetters=functione(t){varr=o.get(this.id);returnr&&r.runModuleSetters(this),t},s.import=function(t,n){vara=this;r(a);vari=a.resolve(t);if(n&&"object"==typeofn){varc=o.getOrCreate(i);c.addSetters(a,n)}varu=c&&c.runCount,l="function"==typeofa.require?a.require(i):e(i);c&&c.runCount===u&&c.runModuleSetters({id:i,exports:l,getExportByName:s.getExportByName})},s.export=functio
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.modules.meteorInstall,i=Package.modules.Buffer,r=Package.modules.process,u,c=o({node_modules:{meteor:{promise:{"client.js":["meteor-promise","./common.js",function(n,e){n("meteor-promise").makeCompatible(e.Promise=n("./common.js").Promise)}],"common.js":["promise/lib/es6-extensions",function(e,t){varo=this;"function"==typeofo.Promise?t.Promise=o.Promise:t.Promise=e("promise/lib/es6-extensions"),t.Promise.prototype.done=function(e,t){varo=this;arguments.length>0&&(o=this.then.apply(this,arguments)),o.then(null,function(e){n._setImmediate(function(){throwe})})}}],node_modules:{"meteor-promise":{"package.json":function(n,e){e.name="meteor-promise",e.version="0.7.4",e.main="promise_client.js"},"promise_client.js":function(e,t){functiono(n){thrown}t.makeCompatible=function(e){vart=e.prototype.then;e.prototype.then=function(e,i){return"object"==typeofn&&"function"==typeofn.bindEnvironment?t.call(this,e&&n.bindEnvironment(e,o),i&&n.bindEnvironment(i,o)):t.call(this,e,i)}}}},promise:{lib:{"es6-extensions.js":["./core.js",function(n,e,t){"use strict";functiono(n){vare=newi(i._61);returne._81=1,e._65=n,e}vari=n("./core.js");t.exports=i;varr=o(!0),u=o(!1),c=o(null),f=o(void0),s=o(0),a=o("");i.resolve=function(n){if(ninstanceofi)returnn;if(null===n)returnc;if(void0===n)returnf;if(n===!0)returnr;if(n===!1)returnu;if(0===n)returns;if(""===n)returna;if("object"==typeofn||"function"==typeofn)try{vare=n.then;if("function"==typeofe)returnnewi(e.bind(n))}catch(n){returnnewi(function(e,t){t(n)})}returno(n)},i.all=function(n){vare=Array.prototype.slice.call(n);returnnewi(function(n,t){functiono(u,c){if(c&&("object"==typeofc||"function"==typeofc)){if(cinstanceofi&&c.then===i.prototype.then){for(;3===c._81;)c=c._65;return1===c._81?o(u,c._65):(2===c._81&&t(c._65),voidc.then(function(n){o(u,n)},t))}varf=c.then;if("function"==typeoff){vars=newi(f.bind(c));returnvoids.then(function(n){o(u,n)},t)}}e[u]=c,0===--r&&n(e)}if(0===e.length)returnn([]);for(varr=e.length,u=0;u<e.length;u++)o(u,e[u])})},i.reject=function(n){returnnewi(function(e,t){t(n)})},i.race=function(n){returnnewi(function(e,t){n.forEach(function(n){i.resolve(n).then(e,t)})})},i.prototype.catch=function(n){returnthis.then(null,n)}}],"core.js":["asap/raw",function(n,e,t){"use strict";functiono(){}functioni(n){try{returnn.then}catch(n){returnd=n,y}}functionr(n,e){try{returnn(e)}catch(n){returnd=n,y}}functionu(n,e,t){try{n(e,t)}catch(n){returnd=n,y}}functionc(n){if("object"!=typeofthis)thrownewTypeError("Promises must be constructed via new");if("function"!=typeofn)thrownewTypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,n!==o&&_(n,this)}functionf(n,e,t){returnnewn.constructor(function(i,r){varu=newc(o);u.then(i,r),s(n,newh(e,t,u))})}functions(n,e){for(;3===n._81;)n=n._65;returnc._10&&c._10(n),0===n._81?0===n._45?(n._45=1,void(n._54=e)):1===n._45?(n._45=2,void(n._54=[n._54,e])):voidn._54.push(e):voida(n,e)}functiona(n,e){v(function(){vart=1===n._81?e.onFulfilled:e.onRejected;if(null===t)returnvoid(1===n._81?l(e.promise,n._65):m(e.promise,n._65));varo=r(t,n._65);o===y?m(e.promise,d):l(e.promise,o)})}functionl(n,e){if(e===n)returnm(n,newTypeError("A promise cannot be resolved with itself."));if(e&&("object"==typeofe||"function"==typeofe)){vart=i(e);if(t===y)returnm(n,d);if(t===n.then&&einstanceofc)returnn._81=3,n._65=e,voidp(n);if("function"==typeoft)returnvoid_(t.bind(e),n)}n._81=1,n._65=e,p(n)}functionm(n,e){n._81=2,n._65=e,c._97&&c._97(n,e),p(n)}functionp(n){if(1===n._45&&(s(n,n._54),n._54=null),2===n._45){for(vare=0;e<n._54.length;e++)s(n,n._54[e]);n._54=null}}functionh(n,e,t){this.onFulfilled="function"==typeofn?n:null,this.onRejected="function"==typeofe?e:null,this.promise=t}function_(n,e){vart=!1,o=u(n,function(n){t||(t=!0,l(e,n))},function(n){t||(t=!0,m(e,n))});t||o!==y||(t=!0,m(e,d))}varv=n("asap/raw"),d=null,y={};t.exports=c,c._10=null,c._97=n
!function(){varn=Package.meteor.Meteor,r=Package.meteor.global,e=Package.meteor.meteorEnv,a;(function(){for(varn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={},e=0;e<n.length;e++)r[n.charAt(e)]=e;a={},a.encode=function(n){if("string"==typeofn){varr=n;n=a.newBinary(r.length);for(vare=0;e<r.length;e++){varl=r.charCodeAt(e);if(l>255)thrownewError("Not ascii. Base64.encode can only take ascii strings.");n[e]=l}}for(varu=[],i=null,o=null,c=null,f=null,e=0;e<n.length;e++)switch(e%3){case0:i=n[e]>>2&63,o=(3&n[e])<<4;break;case1:o|=n[e]>>4&15,c=(15&n[e])<<2;break;case2:c|=n[e]>>6&3,f=63&n[e],u.push(t(i)),u.push(t(o)),u.push(t(c)),u.push(t(f)),i=null,o=null,c=null,f=null}returnnull!=i&&(u.push(t(i)),u.push(t(o)),null==c?u.push("="):u.push(t(c)),null==f&&u.push("=")),u.join("")};vart=function(r){returnn.charAt(r)},l=function(n){return"="===n?-1:r[n]};a.newBinary=function(n){if("undefined"==typeofUint8Array||"undefined"==typeofArrayBuffer){for(varr=[],e=0;e<n;e++)r.push(0);returnr.$Uint8ArrayPolyfill=!0,r}returnnewUint8Array(newArrayBuffer(n))},a.decode=function(n){varr=Math.floor(3*n.length/4);"="==n.charAt(n.length-1)&&(r--,"="==n.charAt(n.length-2)&&r--);for(vare=a.newBinary(r),t=null,u=null,i=null,o=0,c=0;c<n.length;c++){varf=n.charAt(c),s=l(f);switch(c%4){case0:if(s<0)thrownewError("invalid base64 string");t=s<<2;break;case1:if(s<0)thrownewError("invalid base64 string");t|=s>>4,e[o++]=t,u=(15&s)<<4;break;case2:s>=0&&(u|=s>>2,e[o++]=u,i=(3&s)<<6);break;case3:s>=0&&(e[o++]=i|s)}}returne}}).call(this),"undefined"==typeofPackage&&(Package={}),function(n,r){for(vareinr)einn||(n[e]=r[e])}(Package.base64={},{Base64:a})}();
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,u=Package.base64.Base64,a,i;(function(){a={},i={};vare={};a.addType=function(n,t){if(r.has(e,n))thrownewError("Type "+n+" already present");e[n]=t};vart=function(n){returnr.isNaN(n)||n===1/0||n===-(1/0)},o=[{matchJSONValue:function(n){returnr.has(n,"$date")&&1===r.size(n)},matchObject:function(n){returnninstanceofDate},toJSONValue:function(n){return{$date:n.getTime()}},fromJSONValue:function(n){returnnewDate(n.$date)}},{matchJSONValue:function(n){returnr.has(n,"$InfNaN")&&1===r.size(n)},matchObject:t,toJSONValue:function(n){vare;returne=r.isNaN(n)?0:n===1/0?1:-1,{$InfNaN:e}},fromJSONValue:function(n){returnn.$InfNaN/0}},{matchJSONValue:function(n){returnr.has(n,"$binary")&&1===r.size(n)},matchObject:function(n){return"undefined"!=typeofUint8Array&&ninstanceofUint8Array||n&&r.has(n,"$Uint8ArrayPolyfill")},toJSONValue:function(n){return{$binary:u.encode(n)}},fromJSONValue:function(n){returnu.decode(n.$binary)}},{matchJSONValue:function(n){returnr.has(n,"$escape")&&1===r.size(n)},matchObject:function(n){return!(r.isEmpty(n)||r.size(n)>2)&&r.any(o,function(e){returne.matchJSONValue(n)})},toJSONValue:function(n){vare={};returnr.each(n,function(n,t){e[t]=a.toJSONValue(n)}),{$escape:e}},fromJSONValue:function(n){vare={};returnr.each(n.$escape,function(n,t){e[t]=a.fromJSONValue(n)}),e}},{matchJSONValue:function(n){returnr.has(n,"$type")&&r.has(n,"$value")&&2===r.size(n)},matchObject:function(n){returna._isCustomType(n)},toJSONValue:function(e){vart=n._noYieldsAllowed(function(){returne.toJSONValue()});return{$type:e.typeName(),$value:t}},fromJSONValue:function(t){varu=t.$type;if(!r.has(e,u))thrownewError("Custom EJSON type "+u+" is not defined");vara=e[u];returnn._noYieldsAllowed(function(){returna(t.$value)})}}];a._isCustomType=function(n){returnn&&"function"==typeofn.toJSONValue&&"function"==typeofn.typeName&&r.has(e,n.typeName())},a._getTypes=function(){returne},a._getConverters=function(){returno};varf=a._adjustTypesToJSONValue=function(n){if(null===n)returnnull;vare=c(n);returnvoid0!==e?e:"object"!=typeofn?n:(r.each(n,function(e,r){if("object"==typeofe||void0===e||t(e)){varu=c(e);returnu?void(n[r]=u):voidf(e)}}),n)},c=function(n){for(vare=0;e<o.length;e++){vart=o[e];if(t.matchObject(n))returnt.toJSONValue(n)}};a.toJSONValue=function(n){vare=c(n);returnvoid0!==e?e:("object"==typeofn&&(n=a.clone(n),f(n)),n)};varl=a._adjustTypesFromJSONValue=function(n){if(null===n)returnnull;vare=s(n);returne!==n?e:"object"!=typeofn?n:(r.each(n,function(e,t){if("object"==typeofe){varr=s(e);if(e!==r)returnvoid(n[t]=r);l(e)}}),n)},s=function(n){if("object"==typeofn&&null!==n&&r.size(n)<=2&&r.all(n,function(n,e){return"string"==typeofe&&"$"===e.substr(0,1)}))for(vare=0;e<o.length;e++){vart=o[e];if(t.matchJSONValue(n))returnt.fromJSONValue(n)}returnn};a.fromJSONValue=function(n){vare=s(n);returne===n&&"object"==typeofn?(n=a.clone(n),l(n),n):e},a.stringify=function(n,e){vart=a.toJSONValue(n);returne&&(e.canonical||e.indent)?a._canonicalStringify(t,e):JSON.stringify(t)},a.parse=function(n){if("string"!=typeofn)thrownewError("EJSON.parse argument should be a string");returna.fromJSONValue(JSON.parse(n))},a.isBinary=function(n){return!!("undefined"!=typeofUint8Array&&ninstanceofUint8Array||n&&n.$Uint8ArrayPolyfill)},a.equals=function(n,e,t){varu,i=!(!t||!t.keyOrderSensitive);if(n===e)return!0;if(r.isNaN(n)&&r.isNaN(e))return!0;if(!n||!e)return!1;if("object"!=typeofn||"object"!=typeofe)return!1;if(ninstanceofDate&&einstanceofDate)returnn.valueOf()===e.valueOf();if(a.isBinary(n)&&a.isBinary(e)){if(n.length!==e.length)return!1;for(u=0;u<n.length;u++)if(n[u]!==e[u])return!1;return!0}if("function"==typeofn.equals)returnn.equals(e,t);if("function"==typeofe.equals)returne.equals(n,t);if(ninstanceofArray){if(!(einstanceofArray))return!1;if(n.length!==e.length)return!1;for(u=0;u<n.length;u++)if(!a.equals(n[u],e[u],t))return!1;return!0}switch(a._is
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i;(function(){vart=function(t,e,r,n){return{key:t,value:e,next:r,prev:n}};i=function(){vart=this;t._dict={},t._first=null,t._last=null,t._size=0;vare=n.toArray(arguments);t._stringify=function(t){returnt},"function"==typeofe[0]&&(t._stringify=e.shift()),n.each(e,function(e){t.putBefore(e[0],e[1],null)})},n.extend(i.prototype,{_k:function(t){return" "+this._stringify(t)},empty:function(){vart=this;return!t._first},size:function(){vart=this;returnt._size},_linkEltIn:function(t){vare=this;t.next?(t.prev=t.next.prev,t.next.prev=t,t.prev&&(t.prev.next=t)):(t.prev=e._last,e._last&&(e._last.next=t),e._last=t),null!==e._first&&e._first!==t.next||(e._first=t)},_linkEltOut:function(t){vare=this;t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next),t===e._last&&(e._last=t.prev),t===e._first&&(e._first=t.next)},putBefore:function(e,r,n){vari=this;if(i._dict[i._k(e)])thrownewError("Item "+e+" already present in OrderedDict");varo=n?t(e,r,i._dict[i._k(n)]):t(e,r,null);if(void0===o.next)thrownewError("could not find item to put this one before");i._linkEltIn(o),i._dict[i._k(e)]=o,i._size++},append:function(t,e){varr=this;r.putBefore(t,e,null)},remove:function(t){vare=this,r=e._dict[e._k(t)];if(void0===r)thrownewError("Item "+t+" not present in OrderedDict");returne._linkEltOut(r),e._size--,deletee._dict[e._k(t)],r.value},get:function(t){vare=this;if(e.has(t))returne._dict[e._k(t)].value},has:function(t){vare=this;returnn.has(e._dict,e._k(t))},forEach:function(t){for(vare=this,r=0,n=e._first;null!==n;){varo=t(n.value,n.key,r);if(o===i.BREAK)return;n=n.next,r++}},first:function(){vart=this;if(!t.empty())returnt._first.key},firstValue:function(){vart=this;if(!t.empty())returnt._first.value},last:function(){vart=this;if(!t.empty())returnt._last.key},lastValue:function(){vart=this;if(!t.empty())returnt._last.value},prev:function(t){vare=this;if(e.has(t)){varr=e._dict[e._k(t)];if(r.prev)returnr.prev.key}returnnull},next:function(t){vare=this;if(e.has(t)){varr=e._dict[e._k(t)];if(r.next)returnr.next.key}returnnull},moveBefore:function(t,e){varr=this,n=r._dict[r._k(t)],i=e?r._dict[r._k(e)]:null;if(void0===n)thrownewError("Item to move is not present");if(void0===i)thrownewError("Could not find element to move this one before");i!==n.next&&(r._linkEltOut(n),n.next=i,r._linkEltIn(n))},indexOf:function(t){vare=this,r=null;returne.forEach(function(n,o,f){if(e._k(o)===e._k(t))returnr=f,i.BREAK}),r},_checkRep:function(){vart=this;n.each(t._dict,function(t,e){if(e.next===e)thrownewError("Next is a loop");if(e.prev===e)thrownewError("Prev is a loop")})}}),i.BREAK={break:!0}}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varrine)rint||(t[r]=e[r])}(Package["ordered-dict"]={},{OrderedDict:i})}();
!function(){varn=Package.meteor.Meteor,t=Package.meteor.global,e=Package.meteor.meteorEnv,o,r;(function(){o={},o.active=!1,o.currentComputation=null;vart=function(n){o.currentComputation=n,o.active=!!n},e=function(){return"undefined"!=typeofn?n._debug:"undefined"!=typeofconsole&&console.error?function(){console.error.apply(console,arguments)}:function(){}},r=function(t){"undefined"!=typeofn&&n._suppressed_log_expected()&&n._suppress_log(t-1)},i=function(n,t){if(l)throwt;varo=["Exception from Tracker "+n+" function:"];if(t.stack&&t.message&&t.name){vari=t.stack.indexOf(t.message);if(i<0||i>t.name.length+2){vara=t.name+": "+t.message;o.push(a)}}o.push(t.stack),r(o.length);for(varu=0;u<o.length;u++)e()(o[u])},a=function(t){return"undefined"==typeofn||n.isClient?t:function(){vare=arguments;n._noYieldsAllowed(function(){t.apply(null,e)})}},u=1,c=[],p=!1,s=!1,f=!1,l=!1,d=[],h=function(){p||("undefined"!=typeofn?n._setImmediate(o._runFlush):setTimeout(o._runFlush,0),p=!0)},v=!1;o.Computation=function(n,t,e){if(!v)thrownewError("Tracker.Computation constructor is private; use Tracker.autorun");v=!1;varo=this;o.stopped=!1,o.invalidated=!1,o.firstRun=!0,o._id=u++,o._onInvalidateCallbacks=[],o._onStopCallbacks=[],o._parent=t,o._func=n,o._onError=e,o._recomputing=!1;varr=!0;try{o._compute(),r=!1}finally{o.firstRun=!1,r&&o.stop()}},o.Computation.prototype.onInvalidate=function(n){vart=this;if("function"!=typeofn)thrownewError("onInvalidate requires a function");t.invalidated?o.nonreactive(function(){a(n)(t)}):t._onInvalidateCallbacks.push(n)},o.Computation.prototype.onStop=function(n){vart=this;if("function"!=typeofn)thrownewError("onStop requires a function");t.stopped?o.nonreactive(function(){a(n)(t)}):t._onStopCallbacks.push(n)},o.Computation.prototype.invalidate=function(){varn=this;if(!n.invalidated){n._recomputing||n.stopped||(h(),c.push(this)),n.invalidated=!0;for(vart=0,e;e=n._onInvalidateCallbacks[t];t++)o.nonreactive(function(){a(e)(n)});n._onInvalidateCallbacks=[]}},o.Computation.prototype.stop=function(){varn=this;if(!n.stopped){n.stopped=!0,n.invalidate();for(vart=0,e;e=n._onStopCallbacks[t];t++)o.nonreactive(function(){a(e)(n)});n._onStopCallbacks=[]}},o.Computation.prototype._compute=function(){varn=this;n.invalidated=!1;vare=o.currentComputation;t(n);varr=f;f=!0;try{a(n._func)(n)}finally{t(e),f=r}},o.Computation.prototype._needsRecompute=function(){varn=this;returnn.invalidated&&!n.stopped},o.Computation.prototype._recompute=function(){varn=this;n._recomputing=!0;try{if(n._needsRecompute())try{n._compute()}catch(t){n._onError?n._onError(t):i("recompute",t)}}finally{n._recomputing=!1}},o.Computation.prototype.flush=function(){varn=this;n._recomputing||n._recompute()},o.Computation.prototype.run=function(){varn=this;n.invalidate(),n.flush()},o.Dependency=function(){this._dependentsById={}},o.Dependency.prototype.depend=function(n){if(!n){if(!o.active)return!1;n=o.currentComputation}vart=this,e=n._id;return!(eint._dependentsById)&&(t._dependentsById[e]=n,n.onInvalidate(function(){deletet._dependentsById[e]}),!0)},o.Dependency.prototype.changed=function(){varn=this;for(vartinn._dependentsById)n._dependentsById[t].invalidate()},o.Dependency.prototype.hasDependents=function(){varn=this;for(vartinn._dependentsById)return!0;return!1},o.flush=function(n){o._runFlush({finishSynchronously:!0,throwFirstError:n&&n._throwFirstError})},o._runFlush=function(n){if(s)thrownewError("Can't call Tracker.flush while flushing");if(f)thrownewError("Can't flush inside Tracker.autorun");n=n||{},s=!0,p=!0,l=!!n.throwFirstError;vart=0,e=!1;try{for(;c.length||d.length;){for(;c.length;){varr=c.shift();if(r._recompute(),r._needsRecompute()&&c.unshift(r),!n.finishSynchronously&&++t>1e3)returnvoid(e=!0)}if(d.length){vara=d.shift();try{a()}catch(n){i("afterFlush",n)}}}e=!0}finally{if(e||(s=!1,o._runFlush({finishSynchronously:n.finishSynchronously,throwFirstError:!1})),p=!1,s=!1,c.length||d.length){if(n.finishSynchronously)thrownewError("still have more to do?");setTimeout(h,10)}}},o.autorun=f
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.modules.meteorInstall,o=Package.modules.Buffer,i=Package.modules.process,a=Package.promise.Promise,c,u=n({node_modules:{meteor:{"babel-runtime":{"babel-runtime.js":["meteor-babel-helpers","regenerator-runtime",function(t,e,r){varo=Object.prototype.hasOwnProperty,i="function"==typeofSymbol?Symbol:{},u=i.iterator||"@@iterator";c=t("meteor-babel-helpers");varf={taggedTemplateLiteralLoose:function(t,e){returnt.raw=e,t},classCallCheck:function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")},inherits:function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);if(e){if(Object.create)t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});else{varr=function(){this.constructor=t};r.prototype=e.prototype,t.prototype=newr}Object.getOwnPropertyNames(e).forEach(function(r){varn=Object.getOwnPropertyDescriptor(e,r);if(n&&"object"==typeofn){if(Object.getOwnPropertyDescriptor(t,r))return;Object.defineProperty(t,r,n)}})}},createClass:function(){functiont(t,e){for(varr=0;r<e.length;r++){varn=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}vare=!1;try{Object.defineProperty({},"x",{}),e=!0}catch(t){}returnfunction(r,n,o){if(!e)thrownewError("Your browser does not support this type of class property. For example, Internet Explorer 8 does not support getters and setters.");returnn&&t(r.prototype,n),o&&t(r,o),r}}(),typeof:function(t){returnt&&t.constructor===Symbol?"symbol":typeoft},possibleConstructorReturn:function(t,e){if(!t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");varr=typeofe;returne&&"function"===r||"object"===r?e:t},interopRequireDefault:function(t){returnt&&t.__esModule?t:{default:t}},interopRequireWildcard:function(t){if(t&&t.__esModule)returnt;vare={};if(null!=t)for(varrint)o.call(t,r)&&(e[r]=t[r]);returne.default=t,e},interopExportWildcard:function(t,e){varr=e({},t);returndeleter.default,r},defaults:function(t,e){returnObject.getOwnPropertyNames(e).forEach(function(r){varn=Object.getOwnPropertyDescriptor(e,r);n&&n.configurable&&"undefined"==typeoft[r]&&Object.defineProperty(t,r,n)}),t},extends:Object.assign||function(t){for(vare=1;e<arguments.length;e++){varr=arguments[e];for(varninr)o.call(r,n)&&(t[n]=r[n])}returnt},objectWithoutProperties:function(t,e){varr={};t:for(varnint)if(o.call(t,n)){for(vari=0;i<e.length;i++)if(e[i]===n)continuet;r[n]=t[n]}returnr},objectDestructuringEmpty:function(t){if(null==t)thrownewTypeError("Cannot destructure undefined")},bind:Function.prototype.bind||function(){vart=function(t){return"function"==typeoft},e=Object,r=Object.prototype.toString,n=Array.prototype.slice,o=Array.prototype.concat,i=Array.prototype.push,a=Math.max,c=functiont(){};returnfunctionr(u){varf=this;if(!t(f))thrownewTypeError("Function.prototype.bind called on incompatible "+f);for(varl=n.call(arguments,1),s,p=function(){if(thisinstanceofs){vart=f.apply(this,o.call(l,n.call(arguments)));returne(t)===t?t:this}returnf.apply(u,o.call(l,n.call(arguments)))},y=a(0,f.length-l.length),h=[],v=0;v<y;v++)i.call(h,"$"+v);returns=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this, arguments); }")(p),f.prototype&&(c.prototype=f.prototype,s.prototype=newc,c.prototype=null),s}}(),toConsumableArray:function(t){if(Array.isArray(t)){for(vare=t.length-1,r=Array(e+1);e>=0;--e)r[e]=t[e];returnr}returnArray.from(t)},toArray:function(t){returnArray.isArray(t)?t:Array.from(t)},slicedToArray:function(t,e){if(Array.isArray(t))returnt;if(t){varr=t[u](),n=[],o;for("number"!=typeofe&&(e=1/0);n.length<e&&!(o=r.next()).done;)n.push(o.value);returnn}thrownewTypeError("Invalid attempt to destructure non-iterable instance")},slice:Array.prototype.slice};Object.keys(f).forEach(function(t){vare=
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.modules.meteorInstall,a=Package.modules.Buffer,i=Package.modules.process,d=Package["ecmascript-runtime"].Symbol,u=Package["ecmascript-runtime"].Map,c=Package["ecmascript-runtime"].Set,s=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,m,p=o({node_modules:{meteor:{random:{"random.js":function(n){functionr(){returnnewd(d.Type.ALEA,{seeds:[newDate,u,c,s,Math.random()]})}if(e.isServer)vart=Npm.require("crypto");varo=functione(){functionn(){vare=4022871197,n=functionn(r){r=r.toString();for(vart=0;t<r.length;t++){e+=r.charCodeAt(t);varo=.02519603282416938*e;e=o>>>0,o-=e,o*=e,e=o>>>0,o-=e,e+=4294967296*o}return2.3283064365386963e-10*(e>>>0)};returnn.version="Mash 0.9",n}returnfunction(e){varr=0,t=0,o=0,a=1;0==e.length&&(e=[+newDate]);vari=n();r=i(" "),t=i(" "),o=i(" ");for(vard=0;d<e.length;d++)r-=i(e[d]),r<0&&(r+=1),t-=i(e[d]),t<0&&(t+=1),o-=i(e[d]),o<0&&(o+=1);i=null;varu=functione(){varn=2091639*r+2.3283064365386963e-10*a;returnr=t,t=o,o=n-(a=0|n)};returnu.uint32=function(){return4294967296*u()},u.fract53=function(){returnu()+1.1102230246251565e-16*(2097152*u()|0)},u.version="Alea 0.9",u.args=e,u}(Array.prototype.slice.call(arguments))},a="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz",i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",d=functione(n,r){vart=this;if(t.type=n,!e.Type[n])thrownewError("Unknown random generator type: "+n);if(n===e.Type.ALEA){if(!r.seeds)thrownewError("No seeds were provided for Alea PRNG");t.alea=o.apply(null,r.seeds)}};d.Type={NODE_CRYPTO:"NODE_CRYPTO",BROWSER_CRYPTO:"BROWSER_CRYPTO",ALEA:"ALEA"},d.prototype.fraction=function(){vare=this;if(e.type===d.Type.ALEA)returne.alea();if(e.type===d.Type.NODE_CRYPTO){varn=parseInt(e.hexString(8),16);return2.3283064365386963e-10*n}if(e.type===d.Type.BROWSER_CRYPTO){varr=newUint32Array(1);returnwindow.crypto.getRandomValues(r),2.3283064365386963e-10*r[0]}thrownewError("Unknown random generator type: "+e.type)},d.prototype.hexString=function(e){varn=this;if(n.type===d.Type.NODE_CRYPTO){varr=Math.ceil(e/2),o;try{o=t.randomBytes(r)}catch(e){o=t.pseudoRandomBytes(r)}vara=o.toString("hex");returna.substring(0,e)}returnthis._randomString(e,"0123456789abcdef")},d.prototype._randomString=function(e,n){for(varr=this,t=[],o=0;o<e;o++)t[o]=r.choice(n);returnt.join("")},d.prototype.id=function(e){varn=this;returnvoid0===e&&(e=17),n._randomString(e,a)},d.prototype.secret=function(e){varn=this;returnvoid0===e&&(e=43),n._randomString(e,i)},d.prototype.choice=function(e){varn=Math.floor(this.fraction()*e.length);return"string"==typeofe?e.substr(n,1):e[n]};varu="undefined"!=typeofwindow&&window.innerHeight||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientHeight||"undefined"!=typeofdocument&&document.body&&document.body.clientHeight||1,c="undefined"!=typeofwindow&&window.innerWidth||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeofdocument&&document.body&&document.body.clientWidth||1,s="undefined"!=typeofnavigator&&navigator.userAgent||"";m=e.isServer?newd(d.Type.NODE_CRYPTO):"undefined"!=typeofwindow&&window.crypto&&window.crypto.getRandomValues?newd(d.Type.BROWSER_CRYPTO):r(),m.createWithSeeds=function(){for(vare=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];if(0===n.length)thrownewError("No seeds were provided");returnnewd(d.Type.ALEA,{seeds:n})},m.insecure=r()},"deprecated.js":function(){e.uuid=function(){for(vare="0123456789abcdef",n=[],r=0;r<36;r++)n[r]=m.choice(e);n[14]="4",n[19]=e.substr(3&parseInt(n[19],16)|8,1),n[8]=n[13]=n[18]=n[23]="-";vart=n.join("");returnt}}}}}},{extensions:[".js",".json"]});p("./node_modules/meteor/random/random.js"),p("./node_modules/meteor/random/deprecated.js"),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varrinn)rine||(e[r]=n[r])}(Package.random={},{Random:m})}()
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,o=Package.ejson.EJSON,n=Package["id-map"].IdMap,i=Package.random.Random,a;(function(){a={},a._looksLikeObjectID=function(t){return24===t.length&&t.match(/^[0-9a-f]*$/)},a.ObjectID=function(t){vare=this;if(t){if(t=t.toLowerCase(),!a._looksLikeObjectID(t))thrownewError("Invalid hexadecimal string for creating an ObjectID");e._str=t}elsee._str=i.hexString(24)},a.ObjectID.prototype.toString=function(){vart=this;return'ObjectID("'+t._str+'")'},a.ObjectID.prototype.equals=function(t){vare=this;returntinstanceofa.ObjectID&&e.valueOf()===t.valueOf()},a.ObjectID.prototype.clone=function(){vart=this;returnnewa.ObjectID(t._str)},a.ObjectID.prototype.typeName=function(){return"oid"},a.ObjectID.prototype.getTimestamp=function(){vart=this;returnparseInt(t._str.substr(0,8),16)},a.ObjectID.prototype.valueOf=a.ObjectID.prototype.toJSONValue=a.ObjectID.prototype.toHexString=function(){returnthis._str},o.addType("oid",function(t){returnnewa.ObjectID(t)}),a.idStringify=function(t){if(tinstanceofa.ObjectID)returnt.valueOf();if("string"==typeoft)return""===t?t:"-"===t.substr(0,1)||"~"===t.substr(0,1)||a._looksLikeObjectID(t)||"{"===t.substr(0,1)?"-"+t:t;if(void0===t)return"-";if("object"==typeoft&&null!==t)thrownewError("Meteor does not currently support objects other than ObjectID as ids");return"~"+JSON.stringify(t)},a.idParse=function(t){return""===t?t:"-"===t?void0:"-"===t.substr(0,1)?t.substr(1):"~"===t.substr(0,1)?JSON.parse(t.substr(1)):a._looksLikeObjectID(t)?newa.ObjectID(t):t}}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varrine)rint||(t[r]=e[r])}(Package["mongo-id"]={},{MongoID:a})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,d=Package.meteor.meteorEnv,i=Package.underscore._,a=Package.ejson.EJSON,r;(function(){r={},r.diffQueryChanges=function(e,n,d,i,a){e?r.diffQueryOrderedChanges(n,d,i,a):r.diffQueryUnorderedChanges(n,d,i,a)},r.diffQueryUnorderedChanges=function(e,n,d,o){o=o||{};varf=o.projectionFn||a.clone;if(d.movedBefore)thrownewError("_diffQueryUnordered called with a movedBefore observer!");n.forEach(function(n,o){vart=e.get(o);if(t){if(d.changed&&!a.equals(t,n)){varc=f(n),u=f(t),h=r.makeChangedFields(c,u);i.isEmpty(h)||d.changed(o,h)}}elseif(d.added){varl=f(n);deletel._id,d.added(n._id,l)}}),d.removed&&e.forEach(function(e,i){n.has(i)||d.removed(i)})},r.diffQueryOrderedChanges=function(n,d,o,f){f=f||{};vart=f.projectionFn||a.clone,c={};i.each(d,function(n){c[n._id]&&e._debug("Duplicate _id in new_results"),c[n._id]=!0});varu={};i.each(n,function(n,d){n._idinu&&e._debug("Duplicate _id in old_results"),u[n._id]=d});for(varh=[],l=0,s=d.length,g=newArray(s),v=newArray(s),_=function(e){returnu[d[e]._id]},m=0;m<s;m++)if(void0!==u[d[m]._id]){for(vary=l;y>0&&!(_(g[y-1])<_(m));)y--;v[m]=0===y?-1:g[y-1],g[y]=m,y+1>l&&(l=y+1)}for(vark=0===l?-1:g[l-1];k>=0;)h.push(k),k=v[k];h.reverse(),h.push(d.length),i.each(n,function(e){c[e._id]||o.removed&&o.removed(e._id)});varp=0;i.each(h,function(e){for(vara=d[e]?d[e]._id:null,f,c,h,l,s,g=p;g<e;g++)c=d[g],i.has(u,c._id)?(f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h),o.movedBefore&&o.movedBefore(c._id,a)):(h=t(c),deleteh._id,o.addedBefore&&o.addedBefore(c._id,h,a),o.added&&o.added(c._id,h));a&&(c=d[e],f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h)),p=e+1})},r.diffObjects=function(e,n,d){i.each(e,function(e,a){i.has(n,a)?d.both&&d.both(a,e,n[a]):d.leftOnly&&d.leftOnly(a,e)}),d.rightOnly&&i.each(n,function(n,a){i.has(e,a)||d.rightOnly(a,n)})},r.makeChangedFields=function(e,n){vard={};returnr.diffObjects(n,e,{leftOnly:function(e,n){d[e]=void0},rightOnly:function(e,n){d[e]=n},both:function(e,n,i){a.equals(n,i)||(d[e]=i)}}),d},r.applyChanges=function(e,n){i.each(n,function(n,d){void0===n?deletee[d]:e[d]=n})}}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(vardinn)dine||(e[d]=n[d])}(Package["diff-sequence"]={},{DiffSequence:r})}();
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,o=Package.ejson.EJSON,i=Package["id-map"].IdMap,a=Package["ordered-dict"].OrderedDict,s=Package.tracker.Tracker,c=Package.tracker.Deps,u=Package["mongo-id"].MongoID,d=Package.random.Random,f=Package["diff-sequence"].DiffSequence,l=Package["geojson-utils"].GeoJSON,h,p,v,_,m,y,g,w,$,b,E,I,C,k,O,S;(function(){h=function(r){vart=this;t.name=r,t._docs=newh._IdMap,t._observeQueue=newe._SynchronousQueue,t.next_qid=1,t.queries={},t._savedOriginals=null,t.paused=!1},p={},v={},_=function(e){varr=newError(e);returnr.name="MinimongoError",r},h.prototype.find=function(e,r){return0===arguments.length&&(e={}),newh.Cursor(this,e,r)},h.Cursor=function(e,r,t){varn=this;t||(t={}),n.collection=e,n.sorter=null,n.matcher=newp.Matcher(r),h._selectorIsId(r)?n._selectorId=r:h._selectorIsIdPerhapsAsObject(r)?n._selectorId=r._id:(n._selectorId=void0,(n.matcher.hasGeoQuery()||t.sort)&&(n.sorter=newp.Sorter(t.sort||[],{matcher:n.matcher}))),n.skip=t.skip,n.limit=t.limit,n.fields=t.fields,n._projectionFn=h._compileProjection(n.fields||{}),n._transform=h.wrapTransform(t.transform),"undefined"!=typeofs&&(n.reactive=void0===t.reactive||t.reactive)},h.Cursor.prototype.rewind=function(){},h.prototype.findOne=function(e,r){return0===arguments.length&&(e={}),r=r||{},r.limit=1,this.find(e,r).fetch()[0]},h.Cursor.prototype.forEach=function(e,r){vart=this,o=t._getRawObjects({ordered:!0});t.reactive&&t._depend({addedBefore:!0,removed:!0,changed:!0,movedBefore:!0}),n.each(o,function(n,o){n=t._projectionFn(n),t._transform&&(n=t._transform(n)),e.call(r,n,o,t)})},h.Cursor.prototype.getTransform=function(){returnthis._transform},h.Cursor.prototype.map=function(e,r){vart=this,n=[];returnt.forEach(function(o,i){n.push(e.call(r,o,i,t))}),n},h.Cursor.prototype.fetch=function(){vare=this,r=[];returne.forEach(function(e){r.push(e)}),r},h.Cursor.prototype.count=function(){vare=this;returne.reactive&&e._depend({added:!0,removed:!0},!0),e._getRawObjects({ordered:!0}).length},h.Cursor.prototype._publishCursor=function(e){varr=this;if(!r.collection.name)thrownewError("Can't publish a cursor from a collection without a name.");vart=r.collection.name;if(!Package.mongo)thrownewError("Can't publish from Minimongo without the `mongo` package.");returnPackage.mongo.Mongo.Collection._publishCursor(r,e,t)},h.Cursor.prototype._getCollectionName=function(){vare=this;returne.collection.name},h._observeChangesCallbacksAreOrdered=function(e){if(e.added&&e.addedBefore)thrownewError("Please specify only one of added() and addedBefore()");return!(!e.addedBefore&&!e.movedBefore)},h._observeCallbacksAreOrdered=function(e){if(e.addedAt&&e.added)thrownewError("Please specify only one of added() and addedAt()");if(e.changedAt&&e.changed)thrownewError("Please specify only one of changed() and changedAt()");if(e.removed&&e.removedAt)thrownewError("Please specify only one of removed() and removedAt()");return!!(e.addedAt||e.movedTo||e.changedAt||e.removedAt)},h.ObserveHandle=function(){},n.extend(h.Cursor.prototype,{observe:function(e){varr=this;returnh._observeFromObserveChanges(r,e)},observeChanges:function(e){varr=this,t=h._observeChangesCallbacksAreOrdered(e);if(!e._allow_unordered&&!t&&(r.skip||r.limit))thrownewError("must use ordered observe (ie, 'addedBefore' instead of 'added') with skip or limit");if(r.fields&&(0===r.fields._id||r.fields._id===!1))throwError("You may not observe a cursor with {fields: {_id: 0}}");vari={dirty:!1,matcher:r.matcher,sorter:t&&r.sorter,distances:r.matcher.hasGeoQuery()&&t&&newh._IdMap,resultsSnapshot:null,ordered:t,cursor:r,projectionFn:r._projectionFn},a;r.reactive&&(a=r.collection.next_qid++,r.collection.queries[a]=i),i.results=r._getRawObjects({ordered:t,distances:i.distances}),r.collection.paused&&(i.resultsSnapshot=t?[]:newh._IdMap);varc=function(e){returne?function(){vart=this,n=arguments;r.collection.paused||r.collection._observeQueue.queueTask(function(){e.apply(t,n)})}:function(){}};if(i.ad
}if(void0===o)for(varc=0;c<n.length;c++)e[r].push(n[c]);else{for(varu=[o,0],c=0;c<n.length;c++)u.push(n[c]);Array.prototype.splice.apply(e[r],u)}a&&e[r].sort(a),void0!==i&&(0===i?e[r]=[]:e[r]=e[r].slice(i))},$pushAll:function(e,r,t){if(!("object"==typeoft&&tinstanceofArray))throw_("Modifier $pushAll/pullAll allowed for arrays only");varn=e[r];if(void0===n)e[r]=t;else{if(!(ninstanceofArray))throw_("Cannot apply $pushAll modifier to non-array");for(varo=0;o<t.length;o++)n.push(t[o])}},$addToSet:function(e,r,t){varo=!1;if("object"==typeoft)for(variint){"$each"===i&&(o=!0);break}vara=o?t.$each:[t],s=e[r];if(void0===s)e[r]=a;else{if(!(sinstanceofArray))throw_("Cannot apply $addToSet modifier to non-array");n.each(a,function(e){for(varr=0;r<s.length;r++)if(h._f._equal(e,s[r]))return;s.push(e)})}},$pop:function(e,r,t){if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pop modifier to non-array");"number"==typeoft&&t<0?n.splice(0,1):n.pop()}}},$pull:function(e,r,t){if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pull/pullAll modifier to non-array");varo=[];if(null==t||"object"!=typeoft||tinstanceofArray)for(vari=0;i<n.length;i++)h._f._equal(n[i],t)||o.push(n[i]);elsefor(vara=newp.Matcher(t),i=0;i<n.length;i++)a.documentMatches(n[i]).result||o.push(n[i]);e[r]=o}}},$pullAll:function(e,r,t){if(!("object"==typeoft&&tinstanceofArray))throw_("Modifier $pushAll/pullAll allowed for arrays only");if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pull/pullAll modifier to non-array");for(varo=[],i=0;i<n.length;i++){for(vara=!1,s=0;s<t.length;s++)if(h._f._equal(n[i],t[s])){a=!0;break}a||o.push(n[i])}e[r]=o}}},$rename:function(r,t,n,o,i){if(o===n)throw_("$rename source must differ from target");if(null===r)throw_("$rename source field invalid");if("string"!=typeofn)throw_("$rename target must be a string");if(void0!==r){vara=r[t];deleter[t];vars=n.split("."),c=e(i,s,{forbidArray:!0});if(null===c)throw_("$rename target field invalid");varu=s.pop();c[u]=a}},$bit:function(e,r,t){throw_("$bit is not supported")}}}.call(this),function(){h._diffQueryChanges=function(e,r,t,n,o){returnf.diffQueryChanges(e,r,t,n,o)},h._diffQueryUnorderedChanges=function(e,r,t,n){returnf.diffQueryUnorderedChanges(e,r,t,n)},h._diffQueryOrderedChanges=function(e,r,t,n){returnf.diffQueryOrderedChanges(e,r,t,n)},h._diffObjects=function(e,r,t){returnf.diffObjects(e,r,t)}}.call(this),function(){h._IdMap=function(){vare=this;i.call(e,u.idStringify,u.idParse)},e._inherits(h._IdMap,i)}.call(this),function(){h._CachingChangeObserver=function(e){varr=this;e=e||{};vart=e.callbacks&&h._observeChangesCallbacksAreOrdered(e.callbacks);if(n.has(e,"ordered")){if(r.ordered=e.ordered,e.callbacks&&e.ordered!==t)throwError("ordered option doesn't match callbacks")}else{if(!e.callbacks)throwError("must provide ordered or callbacks");r.ordered=t}vari=e.callbacks||{};r.ordered?(r.docs=newa(u.idStringify),r.applyChange={addedBefore:function(e,t,n){vara=o.clone(t);a._id=e,i.addedBefore&&i.addedBefore.call(r,e,t,n),i.added&&i.added.call(r,e,t),r.docs.putBefore(e,a,n||null)},movedBefore:function(e,t){varn=r.docs.get(e);i.movedBefore&&i.movedBefore.call(r,e,t),r.docs.moveBefore(e,t||null)}}):(r.docs=newh._IdMap,r.applyChange={added:function(e,t){varn=o.clone(t);i.added&&i.added.call(r,e,t),n._id=e,r.docs.set(e,n)}}),r.applyChange.changed=function(e,t){varn=r.docs.get(e);if(!n)thrownewError("Unknown id for changed: "+e);i.changed&&i.changed.call(r,e,o.clone(t)),f.applyChanges(n,t)},r.applyChange.removed=function(e){i.removed&&i.removed.call(r,e),r.docs.remove(e)}},h._observeFromObserveChanges=function(e,r){vart=e.getTransform()||function(e){returne},i=!!r._suppress_initial,a;if(h._observeCallbacksAreOrdered(r)){vars=!r._no_indices;a={addedBefore:function(e,o,a){varc=this;if(!i&&(r.addedAt||r.added)){varu=t(n.extend(o,{_id:e}));if(r.addedAt){vard=s?a?c.docs.indexOf(a):c.docs.size():-1;r.addedAt(u,d,a)}elser.
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,a=Package.modules.Buffer,i=Package.modules.process,o=Package.underscore._,c=Package.ejson.EJSON,s,u,f=r({node_modules:{meteor:{check:{"match.js":["./isPlainObject.js",function(t,n){varr=newe.EnvironmentVariable,a=t("./isPlainObject.js").isPlainObject,i=n.check=function(e,t){varn=r.getOrNullIfOutsideFiber();n&&n.checking(e);vara=y(e,t);if(a){vari=news.Error(a.message);throwa.path&&(i.message+=" in field "+a.path,i.path=a.path),i}},s=n.Match={Optional:function(e){returnnewu(e)},Maybe:function(e){returnnewf(e)},OneOf:function(){returnnewl(o.toArray(arguments))},Any:["__any__"],Where:function(e){returnnewh(e)},ObjectIncluding:function(e){returnnewp(e)},ObjectWithValues:function(e){returnnewg(e)},Integer:["__integer__"],Error:e.makeErrorType("Match.Error",function(t){this.message="Match error: "+t,this.path="",this.sanitizedError=newe.Error(400,"Match failed")}),test:function(e,t){return!y(e,t)},_failIfArgumentsAreNotAllChecked:function(e,t,n,a){vari=newv(n,a),o=r.withValue(i,function(){returne.apply(t,n)});returni.throwUnlessAllArgumentsHaveBeenChecked(),o}},u=function(e){this.pattern=e},f=function(e){this.pattern=e},l=function(e){if(o.isEmpty(e))thrownewError("Must provide at least one choice to Match.OneOf");this.choices=e},h=function(e){this.condition=e},p=function(e){this.pattern=e},g=function(e){this.pattern=e},d=function(e,t){if(t=t||{},null===e)return"null";if(t.onlyShowType)returntypeofe;if("object"!=typeofe)returnc.stringify(e);try{JSON.stringify(e)}catch(t){if("TypeError"===t.name)returntypeofe}returnc.stringify(e)},m=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void0,"undefined"]],y=function(e,t){if(t===s.Any)return!1;for(varn=0;n<m.length;++n)if(t===m[n][0])returntypeofe!==m[n][1]&&{message:"Expected "+m[n][1]+", got "+d(e,{onlyShowType:!0}),path:""};if(null===t)returnnull!==e&&{message:"Expected null, got "+d(e),path:""};if("string"==typeoft||"number"==typeoft||"boolean"==typeoft)returne!==t&&{message:"Expected "+t+", got "+d(e),path:""};if(t===s.Integer)return("number"!=typeofe||(0|e)!==e)&&{message:"Expected Integer, got "+d(e),path:""};if(t===Object&&(t=s.ObjectIncluding({})),tinstanceofArray){if(1!==t.length)return{message:"Bad pattern: arrays must have one type element"+d(t),path:""};if(!o.isArray(e)&&!o.isArguments(e))return{message:"Expected array, got "+d(e),path:""};for(varn=0,r=e.length;n<r;n++){vari=y(e[n],t[0]);if(i)returni.path=k(n,i.path),i}return!1}if(tinstanceofh){vari;try{i=t.condition(e)}catch(e){if(!(einstanceofs.Error))throwe;return{message:e.message,path:e.path}}return!i&&{message:"Failed Match.Where validation",path:""}}if(tinstanceoff?t=s.OneOf(void0,null,t.pattern):tinstanceofu&&(t=s.OneOf(void0,t.pattern)),tinstanceofl){for(varn=0;n<t.choices.length;++n){vari=y(e,t.choices[n]);if(!i)return!1}return{message:"Failed Match.OneOf, Match.Maybe or Match.Optional validation",path:""}}if(tinstanceofFunction)return!(einstanceoft)&&{message:"Expected "+(t.name||"particular constructor"),path:""};varc=!1,v;if(tinstanceofp&&(c=!0,t=t.pattern),tinstanceofg&&(c=!0,v=[t.pattern],t={}),"object"!=typeoft)return{message:"Bad pattern: unknown pattern type",path:""};if("object"!=typeofe)return{message:"Expected object, got "+typeofe,path:""};if(null===e)return{message:"Expected object, got null",path:""};if(!a(e))return{message:"Expected plain object",path:""};varb={},w={};o.each(t,function(e,t){einstanceofu||einstanceoff?w[t]=e.pattern:b[t]=e});for(varO=function(e){vart=[];if(o.isObject(e))for(varnine)t.push(n);returnt},j=O(e),n=0,r=j.length;n<r;n++){varE=j[n],P=e[E];if(o.has(b,E)){vari=y(P,b[E]);if(i)returni.path=k(E,i.path),i;deleteb[E]}elseif(o.has(w,E)){vari=y(P,w[E]);if(i)returni.path=k(E,i.path),i}else{if(!c)return{message:"Unknown key",path:E};if(v){vari=y(P,v[0]);if(i)returni.path=k(E,i.path),i}}}varj=o.keys(b);returnj.length?{message:"Missingke
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.check.check,r=Package.check.Match,i=Package.random.Random,o=Package.ejson.EJSON,c=Package.underscore._,s=Package.tracker.Tracker,l=Package.tracker.Deps,u=Package.retry.Retry,d;(function(){d={}}).call(this),function(){d.Heartbeat=function(e){vart=this;t.heartbeatInterval=e.heartbeatInterval,t.heartbeatTimeout=e.heartbeatTimeout,t._sendPing=e.sendPing,t._onTimeout=e.onTimeout,t._seenPacket=!1,t._heartbeatIntervalHandle=null,t._heartbeatTimeoutHandle=null},c.extend(d.Heartbeat.prototype,{stop:function(){vare=this;e._clearHeartbeatIntervalTimer(),e._clearHeartbeatTimeoutTimer()},start:function(){vare=this;e.stop(),e._startHeartbeatIntervalTimer()},_startHeartbeatIntervalTimer:function(){vart=this;t._heartbeatIntervalHandle=e.setInterval(c.bind(t._heartbeatIntervalFired,t),t.heartbeatInterval)},_startHeartbeatTimeoutTimer:function(){vart=this;t._heartbeatTimeoutHandle=e.setTimeout(c.bind(t._heartbeatTimeoutFired,t),t.heartbeatTimeout)},_clearHeartbeatIntervalTimer:function(){vart=this;t._heartbeatIntervalHandle&&(e.clearInterval(t._heartbeatIntervalHandle),t._heartbeatIntervalHandle=null)},_clearHeartbeatTimeoutTimer:function(){vart=this;t._heartbeatTimeoutHandle&&(e.clearTimeout(t._heartbeatTimeoutHandle),t._heartbeatTimeoutHandle=null)},_heartbeatIntervalFired:function(){vare=this;e._seenPacket||e._heartbeatTimeoutHandle||(e._sendPing(),e._startHeartbeatTimeoutTimer()),e._seenPacket=!1},_heartbeatTimeoutFired:function(){vare=this;e._heartbeatTimeoutHandle=null,e._onTimeout()},messageReceived:function(){vare=this;e._seenPacket=!0,e._heartbeatTimeoutHandle&&e._clearHeartbeatTimeoutTimer()}})}.call(this),function(){d.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"],d.parseDDP=function(t){try{vara=JSON.parse(t)}catch(a){returne._debug("Discarding message with invalid JSON",t),null}returnnull===a||"object"!=typeofa?(e._debug("Discarding non-object DDP message",t),null):(c.has(a,"cleared")&&(c.has(a,"fields")||(a.fields={}),c.each(a.cleared,function(e){a.fields[e]=void0}),deletea.cleared),c.each(["fields","params","result"],function(e){c.has(a,e)&&(a[e]=o._adjustTypesFromJSONValue(a[e]))}),a)},d.stringifyDDP=function(e){vart=o.clone(e);if(c.has(e,"fields")){vara=[];c.each(e.fields,function(e,n){void0===e&&(a.push(n),deletet.fields[n])}),c.isEmpty(a)||(t.cleared=a),c.isEmpty(t.fields)&&deletet.fields}if(c.each(["fields","params","result"],function(e){c.has(t,e)&&(t[e]=o._adjustTypesToJSONValue(t[e]))}),e.id&&"string"!=typeofe.id)thrownewError("Message id is not a string");returnJSON.stringify(t)}}.call(this),function(){d.MethodInvocation=function(e){vart=this;this.isSimulation=e.isSimulation,this._unblock=e.unblock||function(){},this._calledUnblock=!1,this.userId=e.userId,this._setUserId=e.setUserId||function(){},this.connection=e.connection,this.randomSeed=e.randomSeed,this.randomStream=null},c.extend(d.MethodInvocation.prototype,{unblock:function(){vare=this;e._calledUnblock=!0,e._unblock()},setUserId:function(e){vart=this;if(t._calledUnblock)thrownewError("Can't call setUserId in a method after calling unblock");t.userId=e,t._setUserId(e)}})}.call(this),function(){functione(){returni.hexString(20)}d.RandomStream=function(t){vara=this;this.seed=[].concat(t.seed||e()),this.sequences={}},d.RandomStream.get=function(e,t){if(t||(t="default"),!e)returni.insecure;vara=e.randomStream;returna||(e.randomStream=a=newd.RandomStream({seed:e.randomSeed})),a._sequence(t)},d.makeRpcSeed=function(e,t){vara=d.RandomStream.get(e,"/rpc/"+t);returna.hexString(20)},c.extend(d.RandomStream.prototype,{_sequence:function(e){vart=this,a=t.sequences[e]||null;if(null===a){for(varn=t.seed.concat(e),r=0;r<n.length;r++)c.isFunction(n[r])&&(n[r]=n[r]());t.sequences[e]=a=i.createWithSeeds.apply(null,n)}returna}})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varaint)aine||(e[a]=t[a])}(Package["ddp-common"]={},{DDPCommon:d})}();
!function(){vara=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["ecmascript-runtime"].Symbol,r=Package["ecmascript-runtime"].Map,i=Package["ecmascript-runtime"].Set,c;(function(){c={};vare="Meteor_Reload",t={},n,r=null;try{r=window.sessionStorage,r?(r.setItem("__dummy__","1"),r.removeItem("__dummy__")):r=null}catch(a){r=null}c._getData=function(){returnr&&r.getItem(e)},r&&(n=c._getData(),r.removeItem(e)),n||(n="{}");vari={};try{i=JSON.parse(n),"object"!=typeofi&&(a._debug("Got bad data on reload. Ignoring."),i={})}catch(e){a._debug("Got invalid JSON on reload. Ignoring.")}i.reload&&"object"==typeofi.data&&(t=i.data);varl=[];c._onMigrate=function(a,e){e||(e=a,a=void0),l.push({name:a,callback:e})},c._migrationData=function(a){returnt[a]};vard=function(a,e){a=a||function(){},e=e||{};for(vart={},n=o.clone(l),r=!0;n.length;){vari=n.shift(),c=i.callback(a,e);c[0]||(r=!1),c.length>1&&i.name&&(t[i.name]=c[1])}returnr||e.immediateMigration?t:null};c._migrate=function(t,o){varn=d(t,o);if(null===n)return!1;try{vari=JSON.stringify({data:n,reload:!0})}catch(e){throwa._debug("Couldn't serialize data for migration",n),e}if(r)try{r.setItem(e,i)}catch(e){a._debug("Couldn't save data for migration to sessionStorage",e)}elsea._debug("Browser does not support sessionStorage. Not saving migration state.");return!0},c._withFreshProvidersForTest=function(a){vare=o.clone(l);l=[];try{a()}finally{l=e}};varg=!1;c._reload=function(a){if(a=a||{},!g){g=!0;vare=function(){o.defer(function(){c._migrate(e,a)&&(window.location.hash||window.location.href.endsWith("#")?window.location.reload():window.location.replace(window.location.href))})};e()}}}).call(this),function(){a._reload={onMigrate:c._onMigrate,migrationData:c._migrationData,reload:c._reload}}.call(this),"undefined"==typeofPackage&&(Package={}),function(a,e){for(vartine)tina||(a[t]=e[t])}(Package.reload={},{Reload:c})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.check.check,o=Package.check.Match,i=Package.random.Random,s=Package.ejson.EJSON,a=Package.underscore._,u=Package.tracker.Tracker,c=Package.tracker.Deps,d=Package.retry.Retry,l=Package["id-map"].IdMap,f=Package["ddp-common"].DDPCommon,_=Package["diff-sequence"].DiffSequence,p=Package["mongo-id"].MongoID,h,v,m,g,b,y,w;(function(){h={},v={}}).call(this),function(){m=function(){vare=this;l.call(e,p.idStringify,p.idParse)},e._inherits(m,l)}.call(this),function(){g=function(){vare=document,t=window,n={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),einthis._listeners||(this._listeners[e]=[]);varr=this._listeners[e];n.arrIndexOf(r,t)===-1&&r.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&einthis._listeners){varr=this._listeners[e],o=n.arrIndexOf(r,t);returno!==-1?void(r.length>1?this._listeners[e]=r.slice(0,o).concat(r.slice(o+1)):deletethis._listeners[e]):void0}},r.prototype.dispatchEvent=function(e){vart=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&tinthis._listeners)for(varr=0;r<this._listeners[t].length;r++)this._listeners[t][r].apply(this,n)};varo=function(e,t){if(this.type=e,"undefined"!=typeoft)for(varnint)t.hasOwnProperty(n)&&(this[n]=t[n])};o.prototype.toString=function(){vare=[];for(vartinthis)if(this.hasOwnProperty(t)){varn=this[t];"function"==typeofn&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};vari=function(e){vart=this;t._events=e||[],t._listeners={}};i.prototype.emit=function(e){vart=this;if(t._verifyType(e),!t._nuked){varn=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),eint._listeners)for(varr=0;r<t._listeners[e].length;r++)t._listeners[e][r].apply(t,n)}},i.prototype.on=function(e,t){varn=this;n._verifyType(e),n._nuked||(einn._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},i.prototype._verifyType=function(e){vart=this;n.arrIndexOf(t._events,e)===-1&&n.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},i.prototype.nuke=function(){vare=this;e._nuked=!0;for(vart=0;t<e._events.length;t++)deletee[e._events[t]];e._listeners={}};vars="abcdefghijklmnopqrstuvwxyz0123456789_";n.random_string=function(e,t){t=t||s.length;varn,r=[];for(n=0;n<e;n++)r.push(s.substr(Math.floor(Math.random()*t),1));returnr.join("")},n.random_number=function(e){returnMath.floor(Math.random()*e)},n.random_number_string=function(e){vart=(""+(e-1)).length,r=Array(t+1).join("0");return(r+n.random_number(e)).slice(-t)},n.getOrigin=function(e){e+="/";vart=e.split("/").slice(0,3);returnt.join("/")},n.isSameOriginUrl=function(e,n){returnn||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},n.isSameOriginScheme=function(e,n){returnn||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},n.getParentDomain=function(e){if(/^[0-9.]*$/.test(e))returne;if(/^\[/.test(e))returne;if(!/[.]/.test(e))returne;vart=e.split(".").slice(1);returnt.join(".")},n.objectExtend=function(e,t){for(varnint)t.hasOwnProperty(n)&&(e[n]=t[n]);returne};vara="_jp";n.polluteGlobalNamespace=function(){aint||(t[a]={})},n.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},n.userSetCode=function(e){return1e3===e||e>=3e3&&e<=4999},n.countRTO=function(e){vart;returnt=e>100?3*e:e+200},n.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},n.bind=function(e,t){returne.bind?e.bind(t):function(){returne.apply(t,arguments)}},n.flatUrl=function(e){returne.indexOf("?")===-1&&e.indexOf("#")===-1},n.amendUrl=function(t,r){varo;if(void0===r)o=e.location;else{vari=/^([a-z0-9.+-]+:)/i.exec(r);if(i){vars=i[0].toLowerCase(),a=r.substring(s.length),u=/[a-z0-9\.-]+(:[0-9]+)?/.exec(a);if(u)varc=u[0]}if(!s||!c)thrownewError("relativeTo must be an absolute url");o={protocol:s,host:c}}if(!t)thrownewError("Wrong
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,i=Package.check.check,c=Package.check.Match,l=Package.ejson.EJSON,s=Package["ddp-client"].DDP,d=Package.modules.meteorInstall,u=Package.modules.Buffer,f=Package.modules.process,h=Package["ecmascript-runtime"].Symbol,_=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,v=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,w,y=d({node_modules:{meteor:{"allow-deny":{"allow-deny.js":function(){functionn(e,n){returne.transform?e.transform(n):n}functionr(e,n,r){vart=n;returne.transform&&(t=l.clone(n),null!==r&&(t._id=r),t=e.transform(t)),t}functiona(e,n,r){vara=["insert","update","remove","fetch","transform"];if(t.each(t.keys(r),function(e){if(!t.contains(a,e))thrownewError(n+": Invalid key: "+e)}),e._restricted=!0,t.each(["insert","update","remove"],function(t){if(r.hasOwnProperty(t)){if(!(r[t]instanceofFunction))thrownewError(n+": Value for `"+t+"` must be a function");void0===r.transform?r[t].transform=e._transform:r[t].transform=o.wrapTransform(r.transform),e._validators[t][n].push(r[t])}}),r.update||r.remove||r.fetch){if(r.fetch&&!(r.fetchinstanceofArray))thrownewError(n+": Value for `fetch` must be an array");e._updateFetch(r.fetch)}}functiond(n,r){if(!o._selectorIsIdPerhapsAsObject(n))thrownewe.Error(403,"Not permitted. Untrusted code may only "+r+" documents by ID.")}functionu(){vare=s._CurrentInvocation.get();returne&&e.isSimulation}w={CollectionPrototype:{}};varf=w.CollectionPrototype;f.allow=function(e){a(this,"allow",e)},f.deny=function(e){a(this,"deny",e)},f._defineMutationMethods=function(n){varr=this;n=n||{},r._restricted=!1,r._insecure=void0,r._validators={insert:{allow:[],deny:[]},update:{allow:[],deny:[]},remove:{allow:[],deny:[]},upsert:{allow:[],deny:[]},fetch:[],fetchAllFields:!1},r._name&&(r._prefix="/"+r._name+"/",r._connection&&(r._connection===e.server||e.isClient)&&!function(){varo={};t.each(["insert","update","remove"],function(a){varl=r._prefix+a;if(n.useExisting){vars=e.isClient?"_methodHandlers":"method_handlers";if(r._connection[s]&&"function"==typeofr._connection[s][l])return}o[l]=function(){i(arguments,[c.Any]);varn=t.toArray(arguments);try{varo=null;if("insert"!==a||t.has(n[0],"_id")||(o=r._makeNewID()),this.isSimulation)returnnull!==o&&(n[0]._id=o),r._collection[a].apply(r._collection,n);if("insert"!==a&&d(n[0],a),r._restricted){if(0===r._validators[a].allow.length)thrownewe.Error(403,"Access denied. No allow validators set on restricted collection for method '"+a+"'.");varl="_validated"+a.charAt(0).toUpperCase()+a.slice(1);returnn.unshift(this.userId),"insert"===a&&n.push(o),r[l].apply(r,n)}if(r._isInsecure())returnnull!==o&&(n[0]._id=o),r._collection[a].apply(r._collection,n);thrownewe.Error(403,"Access denied")}catch(n){throw"MongoError"===n.name||"MinimongoError"===n.name?newe.Error(409,n.toString()):n}}}),r._connection.methods(o)}())},f._updateFetch=function(e){varn=this;n._validators.fetchAllFields||(e?n._validators.fetch=t.union(n._validators.fetch,e):(n._validators.fetchAllFields=!0,n._validators.fetch=null))},f._isInsecure=function(){vare=this;returnvoid0===e._insecure?!!Package.insecure:e._insecure},f._validatedInsert=function(n,o,a){vari=this;if(t.any(i._validators.insert.deny,function(e){returne(n,r(e,o,a))}))thrownewe.Error(403,"Access denied");if(t.all(i._validators.insert.allow,function(e){return!e(n,r(e,o,a))}))thrownewe.Error(403,"Access denied");null!==a&&(o._id=a),i._collection.insert.call(i._collection,o)},f._validatedUpdate=function(r,a,c,l){vars=this;if(i(c,Object),l=t.clone(l)||{},!o._selectorIsIdPerhapsAsObject(a))thrownewError("validated update should be of a single ID");if(l.upsert)thrownewe.Error(403,"Access denied. Upserts not allowed in a restricted collection.");vard="Accessdenied.Inarestrictedcollectionyoucanonlyupdatedocuments,notreplacethem.UseaMongoupdateoperator,suchas
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package["allow-deny"].AllowDeny,r=Package.random.Random,i=Package.ejson.EJSON,c=Package.underscore._,l=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,s=Package["ddp-client"].DDP,u=Package.tracker.Tracker,d=Package.tracker.Deps,f=Package["diff-sequence"].DiffSequence,_=Package["mongo-id"].MongoID,p=Package.check.check,m=Package.check.Match,g=Package.modules.meteorInstall,v=Package.modules.Buffer,h=Package.modules.process,w=Package["ecmascript-runtime"].Symbol,C=Package["ecmascript-runtime"].Map,y=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,O=Package.promise.Promise,b,I,P=g({node_modules:{meteor:{mongo:{"local_collection_driver.js":function(){b=functione(){varn=this;n.noConnCollections={}};vare=functione(n,o){returnnino||(o[n]=newl(n)),o[n]};c.extend(b.prototype,{open:function(){functionn(n,o){vart=this;returnn?o?(o._mongo_livedata_collections||(o._mongo_livedata_collections={}),e(n,o._mongo_livedata_collections)):e(n,t.noConnCollections):newl}returnn}()}),b=newb},"collection.js":function(n,o,i){functiona(e){p(e,RegExp);varn={$regex:e.source},o="";returne.ignoreCase&&(o+="i"),e.multiline&&(o+="m"),o&&(n.$options=o),n}functionu(e,n){if(e)returnn=n||c.identity,function(o,t){e(o,!o&&n(t))}}functiond(e){if(e.length&&(void0===e[e.length-1]||e[e.length-1]instanceofFunction))returne.pop()}I={},I.Collection=function(n,o){vart=this;if(!(tinstanceofI.Collection))thrownewError('use "new" to construct a Mongo.Collection');if(n||null===n||(e._debug("Warning: creating anonymous collection. It will not be saved or synchronized over the network. (Pass null for the collection name to turn off this warning.)"),n=null),null!==n&&"string"!=typeofn)thrownewError("First argument to new Mongo.Collection must be a string or null");switch(o&&o.methods&&(o={connection:o}),o&&o.manager&&!o.connection&&(o.connection=o.manager),o=c.extend({connection:void0,idGeneration:"STRING",transform:null,_driver:void0,_preventAutopublish:!1},o),o.idGeneration){case"MONGO":t._makeNewID=function(){vare=n?s.randomStream("/collection/"+n):r.insecure;returnnewI.ObjectID(e.hexString(24))};break;case"STRING":default:t._makeNewID=function(){vare=n?s.randomStream("/collection/"+n):r.insecure;returne.id()}}if(t._transform=l.wrapTransform(o.transform),n&&null!==o.connection?o.connection?t._connection=o.connection:e.isClient?t._connection=e.connection:t._connection=e.server:t._connection=null,o._driver||(n&&t._connection===e.server&&"undefined"!=typeofMongoInternals&&MongoInternals.defaultRemoteCollectionDriver?o._driver=MongoInternals.defaultRemoteCollectionDriver():o._driver=b),t._collection=o._driver.open(n,t._connection),t._name=n,t._driver=o._driver,t._connection&&t._connection.registerStore){vari=t._connection.registerStore(n,{beginUpdate:function(){functione(e,n){(e>1||n)&&t._collection.pauseObservers(),n&&t._collection.remove({})}returne}(),update:function(){functione(e){varn=_.idParse(e.id),o=t._collection.findOne(n);if("replace"===e.msg){varr=e.replace;returnvoid(r?o?t._collection.update(n,r):t._collection.insert(r):o&&t._collection.remove(n))}if("added"===e.msg){if(o)thrownewError("Expected not to find a document already present for an add");t._collection.insert(c.extend({_id:n},e.fields))}elseif("removed"===e.msg){if(!o)thrownewError("Expected to find a document already present for removed");t._collection.remove(n)}else{if("changed"!==e.msg)thrownewError("I don't know how to deal with this message");if(!o)thrownewError("Expected to find a document to change");if(!c.isEmpty(e.fields)){vari={};c.each(e.fields,function(e,n){void0===e?(i.$unset||(i.$unset={}),i.$unset[n]=1):(i.$set||(i.$set={}),i.$set[n]=e)}),t._collection.update(n,i)}}}returne}(),endUpdate:function(){functione(){t._collection.resumeObservers()}returne}(),saveOriginals:function(){functione(){t._collection.saveOriginals()}returne}(),retrieveOriginals:function(){functione(){returnt._collection.r
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package.modules.Buffer,o=Package.modules.process,a,s,l=r({node_modules:{meteor:{jquery:{"main.js":["jquery","./jquery.js",function(e,t){varn=this;try{varr=e("jquery")}catch(t){r=e("./jquery.js")}t.$=t.jQuery=r,n.$=n.$||r,n.jQuery=n.jQuery||r}],"jquery.js":function(e,t,n){!function(e,t){"object"==typeofn&&"object"==typeofn.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)thrownewError("jQuery requires a window with a document");returnt(e)}:t(e)}("undefined"!=typeofwindow?window:this,function(e,t){functionn(e){vart=e.length,n=ie.type(e);return"function"!==n&&!ie.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeoft&&t>0&&t-1ine))}functionr(e,t,n){if(ie.isFunction(t))returnie.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)returnie.grep(e,function(e){returne===t!==n});if("string"==typeoft){if(de.test(t))returnie.filter(t,e,n);t=ie.filter(t,e)}returnie.grep(e,function(e){returnie.inArray(e,t)>=0!==n})}functioni(e,t){doe=e[t];while(e&&1!==e.nodeType);returne}functiono(e){vart=xe[e]={};returnie.each(e.match(be)||[],function(e,n){t[n]=!0}),t}functiona(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}functions(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(a(),ie.ready())}functionl(e,t,n){if(void0===n&&1===e.nodeType){varr="data-"+t.replace(Ee,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeofn){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ne.test(n)?ie.parseJSON(n):n)}catch(e){}ie.data(e,t,n)}elsen=void0}returnn}functionu(e){vart;for(tine)if(("data"!==t||!ie.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}functionc(e,t,n,r){if(ie.acceptData(e)){vari,o,a=ie.expando,s=e.nodeType,l=s?ie.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void0!==n||"string"!=typeoft)returnu||(u=s?e[a]=Q.pop()||ie.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ie.noop}),"object"!=typeoft&&"function"!=typeoft||(r?l[u]=ie.extend(l[u],t):l[u].data=ie.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void0!==n&&(o[ie.camelCase(t)]=n),"string"==typeoft?(i=o[t],null==i&&(i=o[ie.camelCase(t)])):i=o,i}}functionf(e,t,n){if(ie.acceptData(e)){varr,i,o=e.nodeType,a=o?ie.cache:e,s=o?e[ie.expando]:ie.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){ie.isArray(t)?t=t.concat(ie.map(t,ie.camelCase)):tinr?t=[t]:(t=ie.camelCase(t),t=tinr?[t]:t.split(" ")),i=t.length;for(;i--;)deleter[t[i]];if(n?!u(r):!ie.isEmptyObject(r))return}(n||(deletea[s].data,u(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?deletea[s]:a[s]=null)}}}functiond(){return!0}functionp(){return!1}functionh(){try{returnhe.activeElement}catch(e){}}functionm(e){vart=Fe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());returnn}functiong(e,t){varn,r,i=0,o=typeofe.getElementsByTagName!==Te?e.getElementsByTagName(t||"*"):typeofe.querySelectorAll!==Te?e.querySelectorAll(t||"*"):void0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ie.nodeName(r,t)?o.push(r):ie.merge(o,g(r,t));returnvoid0===t||t&&ie.nodeName(e,t)?ie.merge([e],o):o}functiony(e){De.test(e.type)&&(e.defaultChecked=e.checked)}functionv(e,t){returnie.nodeName(e,"table")&&ie.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}functionb(e){returne.type=(null!==ie.find.attr(e,"type"))+"/"+e.type,e}functionx(e){vart=Ve.exec(e.type);returnt?e.type=t[1]:e.removeAttribute("type"),e}functionw(e,t){for(varn,r=0;null!=(n=e[r]);r++)ie._data(n,"globalEval",!t||ie._data(t[r],"globalEval"))}functionT(e,t){if(1===t.nodeType&&ie.hasData(e)){varn,r,i,o=ie._data(e),a=ie._data(t,o),s=o.events;if(s){deletea.handle,a.events={};for(nins)for(r=0,i=s[n].length;r<i;r++)ie.event.ad
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,r=Package.url.URL,o=Package.modules.meteorInstall,c=Package.modules.Buffer,s=Package.modules.process,i=Package["ecmascript-runtime"].Symbol,l=Package["ecmascript-runtime"].Map,p=Package["ecmascript-runtime"].Set,u=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,d,m,h,g=o({node_modules:{meteor:{http:{"httpcall_common.js":function(){functione(e,t){returne.length>t?e.slice(0,t)+"...":e}vart=500;d=functionn(a,r){varo="failed ["+a+"]";if(r){varc="string"==typeofr?r:r.toString();o+=" "+e(c.replace(/\n/g," "),t)}returnnewError(o)},m=functione(t){varn=(t.headers["content-type"]||";").split(";")[0];if(a.include(["application/json","text/javascript","application/javascript","application/x-javascript"],n))try{t.data=JSON.parse(t.content)}catch(e){t.data=null}elset.data=null},h={},h.get=function(){returnh.call.apply(this,["GET"].concat(a.toArray(arguments)))},h.post=function(){returnh.call.apply(this,["POST"].concat(a.toArray(arguments)))},h.put=function(){returnh.call.apply(this,["PUT"].concat(a.toArray(arguments)))},h.del=function(){returnh.call.apply(this,["DELETE"].concat(a.toArray(arguments)))},h.patch=function(){returnh.call.apply(this,["PATCH"].concat(a.toArray(arguments)))}},"httpcall_client.js":function(t,n,o){h.call=function(t,n,o,c){if(c||"function"!=typeofo||(c=o,o=null),o=o||{},"function"!=typeofc)thrownewError("Can't make a blocking HTTP call from the client; callback required.");t=(t||"").toUpperCase();vars={},i=o.content;o.data&&(i=JSON.stringify(o.data),s["Content-Type"]="application/json");varl,p;if(i||"GET"===t||"HEAD"===t?l=o.params:p=o.params,n=r._constructUrl(n,o.query,l),o.followRedirects===!1)thrownewError("Option followRedirects:false not supported on client.");if(a.has(o,"npmRequestOptions"))thrownewError("Option npmRequestOptions not supported on client.");varf,h;if(o.auth){varg=o.auth.indexOf(":");if(g<0)thrownewError('auth option should be of the form "username:password"');f=o.auth.substring(0,g),h=o.auth.substring(g+1)}p&&(i=r._encodeParams(p)),a.extend(s,o.headers||{}),c=function(e){returnfunction(t,n){t&&n&&(t.response=n),e(t,n)}}(c),c=a.once(c);try{vary;if("undefined"!=typeofXMLHttpRequest)y=newXMLHttpRequest;else{if("undefined"==typeofActiveXObject)thrownewError("Can't create XMLHttpRequest");y=newActiveXObject("Microsoft.XMLHttp")}y.open(t,n,!0,f,h);for(varvinu.sanitizeForInObject(s))y.setRequestHeader(v,s[v]);varP=!1,k;if(o.timeout&&(k=e.setTimeout(function(){P=!0,y.abort()},o.timeout)),y.onreadystatechange=function(t){if(4===y.readyState)if(k&&e.clearTimeout(k),P)c(newError("timeout"));elseif(y.status){varn={};n.statusCode=y.status,n.content=y.responseText,n.headers={};varr=y.getAllResponseHeaders();""===r&&y.getResponseHeader("content-type")&&(r="content-type: "+y.getResponseHeader("content-type"));varo=r.split(/\r?\n/);a.each(o,function(e){vart=/^(.*?):(?:\s+)(.*)$/.exec(e);t&&3===t.length&&(n.headers[t[1].toLowerCase()]=t[2])}),m(n);vars=null;n.statusCode>=400&&(s=d(n.statusCode,n.content)),c(s,n)}elsec(newError("network"))},o.beforeSend){varw=a.once(o.beforeSend);if(!1===w.call(null,y,o))returny.abort()}y.send(i)}catch(e){c(e)}}},"deprecated.js":function(){e.http=h}}}}},{extensions:[".js",".json"]});g("./node_modules/meteor/http/httpcall_common.js"),g("./node_modules/meteor/http/httpcall_client.js"),g("./node_modules/meteor/http/deprecated.js"),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package.http={},{HTTP:h})}();
!function(){varMeteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,$=Package.jquery.$,jQuery=Package.jquery.jQuery,DICOMWeb=Package.dicomweb.DICOMWeb,cornerstone,dicomParser,cornerstoneTools,cornerstoneWADOImageLoader,cornerstoneMath;"undefined"==typeofcornerstone&&(cornerstone={internal:{},rendering:{}}),function(e){"use strict";functioni(i){if(void0===i)throw"disable: element element must not be undefined";for(varr=e.getEnabledElements(),t=0;t<r.length;t++)if(r[t].element===i){varn={element:i};return$(i).trigger("CornerstoneElementDisabled",n),r[t].element.removeChild(r[t].canvas),voidr.splice(t,1)}}e.disable=i}(cornerstone),function(e,i){"use strict";functionr(r,t,n){if(void0===r)throw"displayImage: parameter element cannot be undefined";if(void0===t)throw"displayImage: parameter image cannot be undefined";vara=i.getEnabledElement(r);if(a.image=t,void0===a.viewport&&(a.viewport=i.internal.getDefaultViewport(a.canvas,t)),n)for(varoinn)null!==n[o]&&(a.viewport[o]=n[o]);varf=newDate,s;if(void0!==a.lastImageTimeStamp){varl=f.getTime()-a.lastImageTimeStamp;s=(1e3/l).toFixed()}a.lastImageTimeStamp=f.getTime();varu={viewport:a.viewport,element:a.element,image:a.image,enabledElement:a,frameRate:s};e(a.element).trigger("CornerstoneNewImage",u),i.updateImage(r)}i.displayImage=r}($,cornerstone),function(e,i){"use strict";functionr(e){varr=i.getEnabledElement(e);if(void0===r.image)throw"draw: image has not been loaded yet";i.drawImage(r)}i.draw=r}($,cornerstone),function(e,i){"use strict";functionr(){for(vare=i.getEnabledElements(),r=0;r<e.length;r++){vart=e[r];t.invalid===!0&&i.drawImage(t)}}i.drawInvalidated=r}($,cornerstone),function(e){"use strict";functioni(i,r){if(void0===i)throw"enable: parameter element cannot be undefined";r&&r.renderer&&"webgl"===r.renderer.toLowerCase()&&(e.webGL.renderer.isWebGLAvailable()?(console.log("Using WebGL rendering path"),e.webGL.renderer.initRenderer(),r.renderer="webgl"):(console.error("WebGL not available, falling back to Canvas renderer"),deleter.renderer));vart=document.createElement("canvas");i.appendChild(t);varn={element:i,canvas:t,image:void0,invalid:!1,options:r,data:{}};returne.addEnabledElement(n),e.resize(i,!0),i}e.enable=i}(cornerstone),function(e){"use strict";functioni(i,r){vart=e.getEnabledElement(i);returnt.data.hasOwnProperty(r)===!1&&(t.data[r]={}),t.data[r]}functionr(i,r){vart=e.getEnabledElement(i);deletet.data[r]}e.getElementData=i,e.removeElementData=r}(cornerstone),function(e){"use strict";functioni(e){if(void0===e)throw"getEnabledElement: parameter element must not be undefined";for(vari=0;i<a.length;i++)if(a[i].element==e)returna[i];throw"element not enabled"}functionr(e){if(void0===e)throw"getEnabledElement: enabledElement element must not be undefined";a.push(e)}functiont(e){vari=[];returna.forEach(function(r){r.image&&r.image.imageId===e&&i.push(r)}),i}functionn(){returna}vara=[];e.getEnabledElement=i,e.addEnabledElement=r,e.getEnabledElementsByImageId=t,e.getEnabledElements=n}(cornerstone),function(e){"use strict";functioni(e){return0===e.viewport.rotation||180===e.viewport.rotation?{width:e.image.width,height:e.image.height}:{width:e.image.height,height:e.image.width}}functionr(r){vart=e.getEnabledElement(r),n=i(t),a=t.canvas.height/n.height,o=t.canvas.width/n.width;o<a?t.viewport.scale=o:t.viewport.scale=a,t.viewport.translation.x=0,t.viewport.translation.y=0,e.updateImage(r)}e.fitToWindow=r}(cornerstone),function(e,i){"use strict";functionr(e,r){vart=i.getEnabledElement(e),n=i.internal.getDefaultViewport(t.canvas,r);returnn}i.getDefaultViewportForImage=r}($,cornerstone),function(e,i){"use strict";functionr(e){varr=i.getEnabledElement(e);returnr.image}i.getImage=r}($,cornerstone),function(e){"use strict";functioni(i,r,t,n,a){varo=e.getStoredPixels(i,r,t,n,a),f=e.getEnabledElement(i),s=e.internal.getModalityLUT(f.image.slope,f.image.intercept,f.viewport.modalityLUT),l=o.map(s);returnl}e.getPixels=i}(cornerstone),function(e){"use strict";functioni(i,r,t,n
e.webGL.shaders.uint8=r}(cornerstone),function(e){"use strict";functioni(e){if(void0===e)throw"setMaximumSizeBytes: parameter numBytes must not be undefined";if(void0===e.toFixed)throw"setMaximumSizeBytes: parameter numBytes must be a number";u=e,r()}functionr(){functioni(e,i){returne.timeStamp>i.timeStamp?-1:e.timeStamp<i.timeStamp?1:0}if(!(c<=u)){for(l.sort(i);c>u;){varr=l[l.length-1];c-=r.sizeInBytes,deletes[r.imageId],l.pop(),$(e).trigger("CornerstoneWebGLTextureRemoved",{imageId:r.imageId})}vart=e.imageCache.getCacheInfo();console.log("CornerstoneWebGLTextureCacheFull"),$(e).trigger("CornerstoneWebGLTextureCacheFull",t)}}functiont(e,i){vart=e.imageId;if(void0===e)throw"putImageTexture: image must not be undefined";if(void0===t)throw"putImageTexture: imageId must not be undefined";if(void0===i)throw"putImageTexture: imageTexture must not be undefined";if(s.hasOwnProperty(t)===!0)throw"putImageTexture: imageId already in cache";varn={imageId:t,imageTexture:i,timeStamp:newDate,sizeInBytes:i.sizeInBytes};if(s[t]=n,l.push(n),void0===i.sizeInBytes)throw"putImageTexture: imageTexture does not have sizeInBytes property or";if(void0===i.sizeInBytes.toFixed)throw"putImageTexture: imageTexture.sizeInBytes is not a number";c+=n.sizeInBytes,r()}functionn(e){if(void0===e)throw"getImageTexture: imageId must not be undefined";vari=s[e];if(void0!==i)returni.timeStamp=newDate,i.imageTexture}functiona(e){if(void0===e)throw"removeImageTexture: imageId must not be undefined";vari=s[e];if(void0===i)throw"removeImageTexture: imageId must not be undefined";returnl.splice(l.indexOf(i),1),c-=i.sizeInBytes,deletes[e],i.imageTexture}functiono(){return{maximumSizeInBytes:u,cacheSizeInBytes:c,numberOfImagesCached:l.length}}functionf(){for(;l.length>0;){vare=l.pop();deletes[e.imageId]}c=0}vars={},l=[],u=268435456,c=0;e.webGL.textureCache={putImageTexture:t,getImageTexture:n,removeImageTexture:a,setMaximumSizeBytes:i,getCacheInfo:o,purgeCache:f,cachedImages:l}}(cornerstone),function(e){"use strict";e.webGL||(e.webGL={}),e.webGL.vertexShader="attribute vec2 a_position;attribute vec2 a_texCoord;uniform vec2 u_resolution;varying vec2 v_texCoord;void main() {vec2 zeroToOne = a_position / u_resolution;vec2 zeroToTwo = zeroToOne * 2.0;vec2 clipSpace = zeroToTwo - 1.0;gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);v_texCoord = a_texCoord;}"}(cornerstone);varcornerstoneMath=function(e){"use strict";returnvoid0===e&&(e={}),e.Vector3=function(e,i,r){this.x=e||0,this.y=i||0,this.z=r||0},e.Vector3.prototype={constructor:e.Vector3,set:function(e,i,r){returnthis.x=e,this.y=i,this.z=r,this},setX:function(e){returnthis.x=e,this},setY:function(e){returnthis.y=e,this},setZ:function(e){returnthis.z=e,this},setComponent:function(e,i){switch(e){case0:this.x=i;break;case1:this.y=i;break;case2:this.z=i;break;default:thrownewError("index is out of range: "+e)}},getComponent:function(e){switch(e){case0:returnthis.x;case1:returnthis.y;case2:returnthis.z;default:thrownewError("index is out of range: "+e)}},copy:function(e){returnthis.x=e.x,this.y=e.y,this.z=e.z,this},add:function(e,i){returnvoid0!==i?(console.warn("DEPRECATED: Vector3's .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,i)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)},addScalar:function(e){returnthis.x+=e,this.y+=e,this.z+=e,this},addVectors:function(e,i){returnthis.x=e.x+i.x,this.y=e.y+i.y,this.z=e.z+i.z,this},sub:function(e,i){returnvoid0!==i?(console.warn("DEPRECATED: Vector3's .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,i)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)},subVectors:function(e,i){returnthis.x=e.x-i.x,this.y=e.y-i.y,this.z=e.z-i.z,this},multiply:function(e,i){returnvoid0!==i?(console.warn("DEPRECATED: Vector3's .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,i)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)},multiplyScalar:function(e){returnthis.x*=e,this.y*=e,this.z*=e,this},multiplyV
lastFrameTimeStamp:void0,frameRate:0,loop:!0},r.addToolState(t,a,l)),n&&(l.framesPerSecond=n),void0===l.intervalId&&(l.intervalId=setInterval(function(){varn=f.currentImageIdIndex;if(l.framesPerSecond>0?n++:n--,!l.loop&&(n>=f.imageIds.length||n<0)){vara={element:t},o=e.Event("CornerstoneToolsClipStopped",a);returne(t).trigger(o,a),clearInterval(l.intervalId),void(l.intervalId=void0)}if(n>=f.imageIds.length&&(n=0),n<0&&(n=f.imageIds.length-1),n!==f.currentImageIdIndex){vars=r.loadHandlerManager.getStartLoadHandler(),u=r.loadHandlerManager.getEndLoadHandler(),c=r.loadHandlerManager.getErrorLoadingHandler();s&&s(t);vard=i.getViewport(t),h;h=f.preventCache===!0?i.loadImage(f.imageIds[n]):i.loadAndCacheImage(f.imageIds[n]),h.then(function(e){f.currentImageIdIndex=n,i.displayImage(t,e,d),u&&u(t)},function(e){vari=f.imageIds[n];c&&c(t,i,e)})}},1e3/Math.abs(l.framesPerSecond)))}}functionn(e){vari=r.getToolState(e,a);if(i&&i.data&&i.data.length){vart=i.data[0];clearInterval(t.intervalId),t.intervalId=void0}}vara="playClip";r.playClip=t,r.stopClip=n}($,cornerstone,cornerstoneTools),function(e,i,r){"use strict";functiont(e,i){vart=i.element,a=i.enabledElement.canvas.width,o=i.enabledElement.canvas.height;if(!a||!o)return!1;varf=i.enabledElement.canvas.getContext("2d");f.setTransform(1,0,0,1,0,0),f.save();vars=r.scrollIndicator.getConfiguration();f.fillStyle=s.backgroundColor,f.fillRect(0,o-n,a,n);varl=r.getToolState(t,"stack");if(l&&l.data&&l.data.length){varu=l.data[0].imageIds,c=l.data[0].currentImageIdIndex,d=a/u.length,h=d*c;f.fillStyle=s.fillColor,f.fillRect(h,o-n,d,n),f.restore()}}varn=6,a={backgroundColor:"rgb(19, 63, 141)",fillColor:"white"};r.scrollIndicator=r.displayTool(t),r.scrollIndicator.setConfiguration(a)}($,cornerstone,cornerstoneTools),function(e,i,r){"use strict";functiont(e,i){returne-i}functionn(e,i){e=Math.round(e)||0,i=Math.round(i)||0;varr=[],t=i-e+1;if(t<=0)returnr;for(;t--;)r[t]=i--;returnr}functiona(e,i){varr=[],t=[];returne.forEach(function(e){e<i?r.push(e):e>i&&t.push(e)}),{low:e.indexOf(k(r)),high:e.indexOf(g(t))}}functiono(e){functionn(e){vari=c.indicesToRequest.indexOf(e);i>-1&&c.indicesToRequest.splice(i,1)}functiono(e){vari=l.imageIds.indexOf(e.imageId);n(i)}functionf(i){console.log("prefetch errored: "+i),g&&g(e,w,i,"stackPrefetch")}vars=r.getToolState(e,"stack");if(s&&s.data&&s.data.length){varl=s.data[0],u=r.getToolState(e,m);if(u){varc=u.data[0];if(c&&c.indicesToRequest&&c.indicesToRequest.length||(c.enabled=!1),c.enabled!==!1){u.data[0].indicesToRequest.sort(t);vard=c.indicesToRequest.slice();if(d.forEach(function(e){varr=l.imageIds[e];if(r){vart=i.imageCache.getImagePromise(r);t&&"resolved"===t.state()&&n(e)}}),c.indicesToRequest.length){varh=r.requestPoolManager;h.clearRequestStack(b);for(varv=a(c.indicesToRequest,l.currentImageIdIndex),w,p,k=!1,g=r.loadHandlerManager.getErrorLoadingHandler(),_=v.low,y=v.high;_>0||y<c.indicesToRequest.length;)_>=0&&(p=c.indicesToRequest[_--],w=l.imageIds[p],h.addRequest(e,w,b,k,o,f)),y<c.indicesToRequest.length&&(p=c.indicesToRequest[y++],w=l.imageIds[p],h.addRequest(e,w,b,k,o,f));h.startGrabbing()}}}}}functionf(e){vari=e.data.element,t=r.getToolState(i,m);t&&t.data&&t.data.length&&r.requestPoolManager.clearRequestStack(b)}functions(e,i){vart=e.data.element,n=r.getToolState(t,"stack");if(n&&n.data&&n.data.length){vara=n.data[0],o=a.imageIds.indexOf(i.imageId);if(!(o<0)){varf=r.getToolState(t,m);f&&f.data&&f.data.length&&f.data[0].indicesToRequest.push(o)}}}functionl(e){clearTimeout(w),w=setTimeout(function(){vari=e.currentTarget;o(i)},p)}functionu(t){vara=r.getToolState(t,m);a.data=[];varu=r.getToolState(t,"stack");if(u&&u.data&&u.data.length){varc=u.data[0];if(c.preventCache===!0)returnvoidconsole.warn("A stack that should not be cached was given the stackPrefetch");vard={indicesToRequest:n(0,c.imageIds.length-1),enabled:!0,direction:1},h=d.indicesToRequest.indexOf(c.currentImageIdIndex);d.indicesToRequest.splice(h,1),r.addToolState(t,m,d),o(t),e(t).off("CornerstoneNewImage",l),e(t).on("Cornerstone
functionr(i,r,t){varn=.1;e.setToPixelCoordinateSystem(i,r,n);vara=t/i.viewport.scale/n,o=t/i.viewport.scale/n;return{fontSize:a,lineHeight:o,fontScale:n}}i.setContextToDisplayFontSize=r}(cornerstone,cornerstoneTools),"undefined"==typeofcornerstone&&(cornerstone={}),"undefined"==typeofcornerstoneWADOImageLoader&&(cornerstoneWADOImageLoader={internal:{options:{beforeSend:function(e){},imageCreated:function(e){}}}}),function(e,i,r){"use strict";functiont(e){e.decache=function(){vari=r.parseImageId(e.imageId);r.dataSetCacheManager.unload(i.url)}}functionn(i,n,a,o){varf=e.Deferred();returni.then(function(e){vari=r.createImageObject(e,n,a,o);i.then(function(e){t(e),f.resolve(e)},function(e){f.reject(e)})},function(e){f.reject(e)}),f}functiona(e){return"dicomweb"===e||"wadouri"===e?r.internal.xhrRequest:"dicomfile"===e?r.internal.loadFileRequest:void0}functiono(i){varo=r.parseImageId(i),f=a(o.scheme);if(r.dataSetCacheManager.isLoaded(o.url))returnn(r.dataSetCacheManager.load(o.url,f),i,o.frame,o.url);if(void0!==o.frame)returnn(r.dataSetCacheManager.load(o.url,f),i,o.frame,o.url);vars=e.Deferred(),l=f(o.url,i);returnl.then(function(e){varn=r.createImageObject(e,i,o.frame);n.then(function(e){t(e),s.resolve(e)},function(e){s.reject(e)})},function(e){s.reject(e)}),s}r.internal.loadImage=o}($,cornerstone,cornerstoneWADOImageLoader),function(e){"use strict";functioni(i,r,t){varn=i.uint16("x00280006");0===n?e.convertRGBColorByPixel(r,t):e.convertRGBColorByPlane(r,t)}functionr(i,r,t){varn=i.uint16("x00280006");0===n?e.convertYBRFullByPixel(r,t):e.convertYBRFullByPlane(r,t)}functiont(t,n,a){varo=n.uint16("x00280010"),f=n.uint16("x00280011"),s=n.string("x00280004");t.height=o,t.width=f;varl=t.getContext("2d"),u=l.createImageData(f,o),c=$.Deferred();try{if("RGB"===s)i(n,a,u.data);elseif("YBR_RCT"===s)i(n,a,u.data);elseif("YBR_ICT"===s)i(n,a,u.data);elseif("PALETTE COLOR"===s)e.convertPALETTECOLOR(a,u.data,n);elseif("YBR_FULL_422"===s)r(n,a,u.data);else{if("YBR_FULL"!==s)throw"no color space conversion for photometric interpretation "+s;r(n,a,u.data)}returnc.resolve(u),c.promise()}catch(e){returnc.reject(e),c.promise()}}e.convertColorSpace=t}(cornerstoneWADOImageLoader),function(e){"use strict";functioni(e,i,r){vart=r.int16("x00281101",0);t||(t=65536);for(varn=r.int16("x00281101",1),a=r.int16("x00281101",2),o=8===a?0:8,f=r.byteArray.buffer,s=newUint16Array(f,r.elements.x00281201.dataOffset,t),l=newUint16Array(f,r.elements.x00281202.dataOffset,t),u=newUint16Array(f,r.elements.x00281203.dataOffset,t),c=r.uint16("x00280010")*r.uint16("x00280011"),d=0,h=0,m=0;m<c;++m){varb=e[d++];b<n?b=0:b>n+t-1?b=t-1:b-=n,i[h++]=s[b]>>o,i[h++]=l[b]>>o,i[h++]=u[b]>>o,i[h++]=255}}e.convertPALETTECOLOR=i}(cornerstoneWADOImageLoader),function(e){"use strict";functioni(e,i){if(void0===e)throw"decodeRGB: rgbBuffer must not be undefined";if(e.length%3!==0)throw"decodeRGB: rgbBuffer length must be divisible by 3";for(varr=e.length/3,t=0,n=0,a=0;a<r;a++)i[n++]=e[t++],i[n++]=e[t++],i[n++]=e[t++],i[n++]=255}e.convertRGBColorByPixel=i}(cornerstoneWADOImageLoader),function(e){"use strict";functioni(e,i){if(void0===e)throw"decodeRGB: rgbBuffer must not be undefined";if(e.length%3!==0)throw"decodeRGB: rgbBuffer length must be divisible by 3";for(varr=e.length/3,t=0,n=0,a=r,o=2*r,f=0;f<r;f++)i[t++]=e[n++],i[t++]=e[a++],i[t++]=e[o++],i[t++]=255}e.convertRGBColorByPlane=i}(cornerstoneWADOImageLoader),function(e){"use strict";functioni(e,i){if(void0===e)throw"decodeRGB: ybrBuffer must not be undefined";if(e.length%3!==0)throw"decodeRGB: ybrBuffer length must be divisble by 3";for(varr=e.length/3,t=0,n=0,a=0;a<r;a++){varo=e[t++],f=e[t++],s=e[t++];i[n++]=o+1.402*(s-128),i[n++]=o-.34414*(f-128)-.71414*(s-128),i[n++]=o+1.772*(f-128),i[n++]=255}}e.convertYBRFullByPixel=i}(cornerstoneWADOImageLoader),function(e){"use strict";functioni(e,i){if(void0===e)throw"decodeRGB: ybrBuffer must not be undefined";if(e.length%3!==0)throw"decodeRGB: ybrBuffer length must be divisble by 3";for(varr=e.length/3,t=0,n=0,a=r,o=2*r,f=0;f<r;f++){var
return(this.getPreviousX(e)+this.getPreviousY(e))/2},t.lossless.Decoder.prototype.decodeRGB=function(e,i,r){varn,a,o,f,s,l,u,c;for(e[0]=this.selector(0),e[1]=this.selector(1),e[2]=this.selector(2),s=0;s<this.numComp;s+=1)for(f=this.qTab[s],a=this.acTab[s],o=this.dcTab[s],l=0;l<this.nBlock[s];l+=1){for(u=0;u<this.IDCT_Source.length;u+=1)this.IDCT_Source[u]=0;if(n=this.getHuffmanValue(o,i,r),n>=65280)returnn;for(e[s]=this.IDCT_Source[0]=e[s]+this.getn(r,n,i,r),this.IDCT_Source[0]*=f[0],c=1;c<64;c+=1){if(n=this.getHuffmanValue(a,i,r),n>=65280)returnn;if(c+=n>>4,0===(15&n)){if(n>>4===0)break}elsethis.IDCT_Source[t.lossless.Decoder.IDCT_P[c]]=this.getn(r,15&n,i,r)*f[c]}}return0},t.lossless.Decoder.prototype.decodeSingle=function(e,i,r){varn,a,o,f;for(this.restarting?(this.restarting=!1,e[0]=1<<this.frame.precision-1):e[0]=this.selector(),a=0;a<this.nBlock[0];a+=1){if(n=this.getHuffmanValue(this.dcTab[0],i,r),n>=65280)returnn;if(o=this.getn(e,n,i,r),f=o>>8,f>=t.lossless.Decoder.RESTART_MARKER_BEGIN&&f<=t.lossless.Decoder.RESTART_MARKER_END)returnf;e[0]+=o}return0},t.lossless.Decoder.prototype.getHuffmanValue=function(e,i,r){varn,a,o;if(o=65535,r[0]<8?(i[0]<<=8,a=this.stream.get8(),255===a&&(this.marker=this.stream.get8(),0!==this.marker&&(this.markerIndex=9)),i[0]|=a):r[0]-=8,n=e[i[0]>>r[0]],0!==(n&t.lossless.Decoder.MSB)){if(0!==this.markerIndex)returnthis.markerIndex=0,65280|this.marker;i[0]&=o>>16-r[0],i[0]<<=8,a=this.stream.get8(),255===a&&(this.marker=this.stream.get8(),0!==this.marker&&(this.markerIndex=9)),i[0]|=a,n=e[256*(255&n)+(i[0]>>r[0])],r[0]+=8}if(r[0]+=8-(n>>8),r[0]<0)thrownewError("index="+r[0]+" temp="+i[0]+" code="+n+" in HuffmanValue()");returnr[0]<this.markerIndex?(this.markerIndex=0,65280|this.marker):(i[0]&=o>>16-r[0],255&n)},t.lossless.Decoder.prototype.getn=function(e,i,r,t){varn,a,o,f,s;if(a=1,o=-1,f=65535,0===i)return0;if(16===i)returne[0]>=0?-32768:32768;if(t[0]-=i,t[0]>=0){if(t[0]<this.markerIndex&&!this.isLastPixel())returnthis.markerIndex=0,(65280|this.marker)<<8;n=r[0]>>t[0],r[0]&=f>>16-t[0]}else{if(r[0]<<=8,s=this.stream.get8(),255===s&&(this.marker=this.stream.get8(),0!==this.marker&&(this.markerIndex=9)),r[0]|=s,t[0]+=8,t[0]<0){if(0!==this.markerIndex)returnthis.markerIndex=0,(65280|this.marker)<<8;r[0]<<=8,s=this.stream.get8(),255===s&&(this.marker=this.stream.get8(),0!==this.marker&&(this.markerIndex=9)),r[0]|=s,t[0]+=8}if(t[0]<0)thrownewError("index="+t[0]+" in getn()");if(t[0]<this.markerIndex)returnthis.markerIndex=0,(65280|this.marker)<<8;n=r[0]>>t[0],r[0]&=f>>16-t[0]}returnn<a<<i-1&&(n+=(o<<i)+1),n},t.lossless.Decoder.prototype.getPreviousX=function(e){returnthis.xLoc>0?this.getter(this.yLoc*this.xDim+this.xLoc-1,e):this.yLoc>0?this.getPreviousY(e):1<<this.frame.precision-1},t.lossless.Decoder.prototype.getPreviousXY=function(e){returnthis.xLoc>0&&this.yLoc>0?this.getter((this.yLoc-1)*this.xDim+this.xLoc-1,e):this.getPreviousY(e)},t.lossless.Decoder.prototype.getPreviousY=function(e){returnthis.yLoc>0?this.getter((this.yLoc-1)*this.xDim+this.xLoc,e):this.getPreviousX(e)},t.lossless.Decoder.prototype.isLastPixel=function(){returnthis.xLoc===this.xDim-1&&this.yLoc===this.yDim-1},t.lossless.Decoder.prototype.outputSingle=function(e){this.xLoc<this.xDim&&this.yLoc<this.yDim&&(this.setter(this.yLoc*this.xDim+this.xLoc,this.mask&e[0]),this.xLoc+=1,this.xLoc>=this.xDim&&(this.yLoc+=1,this.xLoc=0))},t.lossless.Decoder.prototype.outputRGB=function(e){vari=this.yLoc*this.xDim+this.xLoc;this.xLoc<this.xDim&&this.yLoc<this.yDim&&(this.setter(i,e[0],0),this.setter(i,e[1],1),this.setter(i,e[2],2),this.xLoc+=1,this.xLoc>=this.xDim&&(this.yLoc+=1,this.xLoc=0))},t.lossless.Decoder.prototype.setValue16=function(e,i){this.outputData.setInt16(2*e,i,!0)},t.lossless.Decoder.prototype.getValue16=function(e){returnthis.outputData.getInt16(2*e,!0)&this.mask},t.lossless.Decoder.prototype.setValue8=function(e,i){this.outputData.setInt8(e,i)},t.lossless.Decoder.prototype.getValue8=function(e){returnthis.outputData.getInt8(e)&this.mask},t.lossless.Decoder.prototype.setValueRGB=functio
Browser.mainLoop.timingValue=i,!Browser.mainLoop.func)return1;if(0==e)Browser.mainLoop.scheduler=functione(){setTimeout(Browser.mainLoop.runner,i)},Browser.mainLoop.method="timeout";elseif(1==e)Browser.mainLoop.scheduler=functione(){Browser.requestAnimationFrame(Browser.mainLoop.runner)},Browser.mainLoop.method="rAF";elseif(2==e){if(!window.setImmediate){vart=[],n="__emcc";window.addEventListener("message",r,!0),window.setImmediate=functione(i){t.push(i),window.postMessage(n,"*")}}Browser.mainLoop.scheduler=functione(){window.setImmediate(Browser.mainLoop.runner)},Browser.mainLoop.method="immediate"}return0}function_emscripten_set_main_loop(e,i,r,t,n){Module.noExitRuntime=!0,assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Browser.mainLoop.func=e,Browser.mainLoop.arg=t;vara=Browser.mainLoop.currentlyRunningMainloop;if(Browser.mainLoop.runner=functioni(){if(!ABORT){if(Browser.mainLoop.queue.length>0){varr=Date.now(),n=Browser.mainLoop.queue.shift();if(n.func(n.arg),Browser.mainLoop.remainingBlockers){varo=Browser.mainLoop.remainingBlockers,f=o%1==0?o-1:Math.floor(o);n.counted?Browser.mainLoop.remainingBlockers=f:(f+=.5,Browser.mainLoop.remainingBlockers=(8*o+f)/9)}returnconsole.log('main loop blocker "'+n.name+'" took '+(Date.now()-r)+" ms"),Browser.mainLoop.updateStatus(),voidsetTimeout(Browser.mainLoop.runner,0)}if(!(a<Browser.mainLoop.currentlyRunningMainloop)){if(Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0,1==Browser.mainLoop.timingMode&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0)returnvoidBrowser.mainLoop.scheduler();"timeout"===Browser.mainLoop.method&&Module.ctx&&(Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),Browser.mainLoop.method=""),Browser.mainLoop.runIter(function(){"undefined"!=typeoft?Runtime.dynCall("vi",e,[t]):Runtime.dynCall("v",e)}),a<Browser.mainLoop.currentlyRunningMainloop||("object"==typeofSDL&&SDL.audio&&SDL.audio.queueNewAudioData&&SDL.audio.queueNewAudioData(),Browser.mainLoop.scheduler())}}},n||(i&&i>0?_emscripten_set_main_loop_timing(0,1e3/i):_emscripten_set_main_loop_timing(1,1),Browser.mainLoop.scheduler()),r)throw"SimulateInfiniteLoop"}function_pthread_setspecific(e,i){returneinPTHREAD_SPECIFIC?(PTHREAD_SPECIFIC[e]=i,0):ERRNO_CODES.EINVAL}function_malloc(e){vari=Runtime.dynamicAlloc(e+8);returni+8&4294967288}function___cxa_allocate_exception(e){return_malloc(e)}function___syscall54(e,i){SYSCALLS.varargs=i;try{return0}catch(e){return"undefined"!=typeofFS&&einstanceofFS.ErrnoError||abort(e),-e.errno}}function___cxa_pure_virtual(){throwABORT=!0,"Pure virtual function called!"}function_pthread_cleanup_push(e,i){__ATEXIT__.push(function(){Runtime.dynCall("vi",e,[i])}),_pthread_cleanup_push.level=__ATEXIT__.length}function_pthread_cond_broadcast(){return0}function___cxa_guard_acquire(e){returnHEAP8[e>>0]?0:(HEAP8[e>>0]=1,1)}function_pthread_cleanup_pop(){assert(_pthread_cleanup_push.level==__ATEXIT__.length,"cannot pop if something else added meanwhile!"),__ATEXIT__.pop(),_pthread_cleanup_push.level=__ATEXIT__.length}function___cxa_guard_release(){}function___cxa_begin_catch(e){return__ZSt18uncaught_exceptionv.uncaught_exception--,EXCEPTIONS.caught.push(e),EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(e)),e}function_llvm_eh_typeid_for(e){returne}function_emscripten_memcpy_big(e,i,r){returnHEAPU8.set(HEAPU8.subarray(i,i+r),e),e}function___syscall6(e,i){SYSCALLS.varargs=i;try{varr=SYSCALLS.getStreamFromFD();returnFS.close(r),0}catch(e){return"undefined"!=typeofFS&&einstanceofFS.ErrnoError||abort(e),-e.errno}}function_pthread_mutex_lock(){}function_sbrk(e){vari=_sbrk;i.called||(DYNAMICTOP=ali
if(a<1)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'numFragments' must be > 0";if(n+a>t.fragments.length)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'startFragment' + 'numFragments' < number of fragments";varf=newe.ByteStream(r.byteArrayParser,r.byteArray,t.dataOffset),s=e.readSequenceItem(f);if("xfffee000"!==s.tag)throw"dicomParser.readEncapsulatedPixelData: missing basic offset table xfffee000";f.seek(s.length);varl=f.position,u=8;if(1===a)returne.sharedCopy(f.byteArray,l+o[n].offset+u,o[n].length);for(varc=i(o,n,a),d=e.alloc(f.byteArray,c),h=0,m=n;m<n+a;m++)for(varb=l+o[m].offset+u,v=0;v<o[m].length;v++)d[h++]=f.byteArray[b++];returnd},e}(e),e=function(e){returnvoid0===e&&(e={}),e.readPart10Header=function(i,r){functiont(){a.seek(128);vare=a.readFixedString(4);if("DICM"!==e)throw"dicomParser.readPart10Header: DICM prefix not found at location 132 - this is not a valid DICOM P10 file."}functionn(){t();for(vari=[],r={};a.position<a.byteArray.length;){varn=a.position,o=e.readDicomElementExplicit(a,i);if(o.tag>"x0002ffff"){a.position=n;break}o.parser=e.littleEndianByteArrayParser,r[o.tag]=o}varf=newe.DataSet(a.byteArrayParser,a.byteArray,r);returnf.warnings=a.warnings,f.position=a.position,f}if(void0===i)throw"dicomParser.readPart10Header: missing required parameter 'byteArray'";vara=newe.ByteStream(e.littleEndianByteArrayParser,i);returnn()},e}(e),e=function(e){"use strict";functioni(i,r){for(vart={};i.position<i.byteArray.length;){varn=e.readDicomElementExplicit(i,r);if(t[n.tag]=n,"xfffee00d"===n.tag)returnnewe.DataSet(i.byteArrayParser,i.byteArray,t)}returnr.push("eof encountered before finding item delimiter tag while reading sequence item of undefined length"),newe.DataSet(i.byteArrayParser,i.byteArray,t)}functionr(r,t){varn=e.readSequenceItem(r);return4294967295===n.length?(n.hadUndefinedLength=!0,n.dataSet=i(r,t),n.length=r.position-n.dataOffset):(n.dataSet=newe.DataSet(r.byteArrayParser,r.byteArray,{}),e.parseDicomDataSetExplicit(n.dataSet,r,r.position+n.length)),n}functiont(i,t,n){for(;i.position+4<=i.byteArray.length;){vara=e.readTag(i);if(i.seek(-4),"xfffee0dd"===a)returnt.length=i.position-t.dataOffset,i.seek(8),t;varo=r(i,n);t.items.push(o)}n.push("eof encountered before finding sequence delimitation tag while reading sequence of undefined length"),t.length=i.position-t.dataOffset}functionn(e,i,t){for(varn=i.dataOffset+i.length;e.position<n;){vara=r(e,t);i.items.push(a)}}returnvoid0===e&&(e={}),e.readSequenceItemsExplicit=function(e,i,r){if(void0===e)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'byteStream'";if(void0===i)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'element'";i.items=[],4294967295===i.length?t(e,i,r):n(e,i,r)},e}(e),e=function(e){"use strict";functioni(i,r){for(vart={};i.position<i.byteArray.length;){varn=e.readDicomElementImplicit(i,void0,r);if(t[n.tag]=n,"xfffee00d"===n.tag)returnnewe.DataSet(i.byteArrayParser,i.byteArray,t)}returni.warnings.push("eof encountered before finding sequence item delimiter in sequence item of undefined length"),newe.DataSet(i.byteArrayParser,i.byteArray,t)}functionr(r,t){varn=e.readSequenceItem(r);return4294967295===n.length?(n.hadUndefinedLength=!0,n.dataSet=i(r,t),n.length=r.position-n.dataOffset):(n.dataSet=newe.DataSet(r.byteArrayParser,r.byteArray,{}),e.parseDicomDataSetImplicit(n.dataSet,r,r.position+n.length,{vrCallback:t})),n}functiont(i,t,n){for(;i.position+4<=i.byteArray.length;){vara=e.readTag(i);if(i.seek(-4),"xfffee0dd"===a)returnt.length=i.position-t.dataOffset,i.seek(8),t;varo=r(i,n);t.items.push(o)}i.warnings.push("eof encountered before finding sequence delimiter in sequence of undefined length"),t.length=i.byteArray.length-t.dataOffset}functionn(e,i,t){for(varn=i.dataOffset+i.length;e.position<n;){vara=r(e,t);i.items.push(a)}}returnvoid0===e&&(e={}),e.readSequenceItemsImplicit=function(e,i,r){if(void0===e)throw"dicomParser.readSequenceItemsImplicit:missingrequiredparameter'by
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,a=Package.modules.meteorInstall,f=Package.modules.Buffer,o=Package.modules.process,c,l,s=a({node_modules:{meteor:{logging:{"logging.js":["cli-color",function(t){c=function(){returnc.info.apply(this,arguments)};varn=0,a=[],f=0;c._intercept=function(e){n+=e},c._suppress=function(e){f+=e},c._intercepted=function(){vare=a;returna=[],n=0,e},c.outputFormat="json";varo={debug:"green",warn:"magenta",error:"red"},l="blue",s=["time","timeInexact","level","file","line","program","originApp","satellite","stderr"],u=s.concat(["app","message"]),d=function(t){varn=c.format(t),r=t.level;"undefined"!=typeofconsole&&console[r]?console[r](n):e._debug(n)};c._getCallerDetails=function(){vare=function(){vare=newError,t=e.stack;returnt},t=e();if(!t)return{};for(varn=t.split("\n"),r,i=1;i<n.length;++i){if(r=n[i],r.match(/^\s*at eval \(eval/))return{file:"eval"};if(!r.match(/packages\/(?:local-test[:_])?logging(?:\/|\.js)/))break}vara={},f=/(?:[@(]| at )([^(]+?):([0-9:]+)(?:\)|$)/.exec(r);returnf?(a.line=f[2].split(":")[0],a.file=f[1].split("/").slice(-1)[0].split("?")[0],a):a},r.each(["debug","info","warn","error"],function(t){c[t]=function(o){if(f)returnvoidf--;varl=!1;n&&(n--,l=!0);varu=!r.isObject(o)||r.isRegExp(o)||r.isDate(o)?{message:newString(o).toString()}:o;if(r.each(s,function(e){if(u[e])thrownewError("Can't set '"+e+"' in log message")}),r.has(u,"message")&&!r.isString(u.message))thrownewError("The 'message' field in log objects must be a string");if(u.omitCallerDetails||(u=r.extend(c._getCallerDetails(),u)),u.time=newDate,u.level=t,"debug"!==t)if(l)a.push(i.stringify(u));elseif(e.isServer)if("colored-text"===c.outputFormat)console.log(c.format(u,{color:!0}));else{if("json"!==c.outputFormat)thrownewError("Unknown logging output format: "+c.outputFormat);console.log(i.stringify(u))}elsed(u)}}),c.parse=function(e){vart=null;if(e&&"{"===e.charAt(0))try{t=i.parse(e)}catch(e){}returnt&&t.time&&t.timeinstanceofDate?t:null},c.format=function(n,a){n=i.clone(n),a=a||{};varf=n.time;if(!(finstanceofDate))thrownewError("'time' must be a Date object");varc=n.timeInexact,s=n.level||"info",d=n.file,p=n.line,b=n.app||"",m=n.originApp,h=n.message||"",v=n.program||"",g=n.satellite,x=n.stderr||"";r.each(u,function(e){deleten[e]}),r.isEmpty(n)||(h&&(h+=" "),h+=i.stringify(n));vary=function(e){returne<10?"0"+e:e.toString()},j=function(e){returne<100?"0"+y(e):e.toString()},O=f.getFullYear().toString()+y(f.getMonth()+1)+y(f.getDate()),_=y(f.getHours())+":"+y(f.getMinutes())+":"+y(f.getSeconds())+"."+j(f.getMilliseconds()),w="("+-((newDate).getTimezoneOffset()/60)+")",A="";b&&(A+=b),m&&m!==b&&(A+=" via "+m),A&&(A="["+A+"] ");varN=[];v&&N.push(v),d&&N.push(d),p&&N.push(p);varS=r.isEmpty(N)?"":"("+N.join(":")+") ";g&&(S+=["[",g,"]"].join(""));varP=x?"(STDERR) ":"",z=[s.charAt(0).toUpperCase(),O,"-",_,w,c?"? ":" ",A,S,P].join(""),k=function(n,r){returna.color&&e.isServer&&r?t("cli-color")[r](n):n};returnk(z,a.metaColor||l)+k(h,o[s])},c.objFromText=function(e,t){varn={message:e,level:"info",time:newDate,timeInexact:!0};returnr.extend(n,t)}}],node_modules:{"cli-color":{"package.json":function(e,t){t.name="cli-color",t.version="0.2.3",t.main="lib"},lib:{"index.js":["es5-ext/lib/Object/descriptor","es5-ext/lib/Object/extend","es5-ext/lib/Object/map","es5-ext/lib/Object/reduce","es5-ext/lib/String/prototype/repeat","memoizee","tty","./_xterm-match",function(e,t,n){"use strict";varr=e("es5-ext/lib/Object/descriptor"),i=e("es5-ext/lib/Object/extend"),a=e("es5-ext/lib/Object/map"),f=e("es5-ext/lib/Object/reduce"),c=e("es5-ext/lib/String/prototype/repeat"),l=e("memoizee"),s=e("tty"),u=Array.prototype.join,d=Object.defineProperty,p=Object.defineProperties,b=Math.abs,m=Math.floor,h=Math.max,v=Math.min,g,x,y,j,O,_,w,A,N,S,P;g=i({bold:{_bold:[1,22]},italic:{_italic:[3,23]},underline:{_underline:[4,24]},blink:{_blink:[5,25]},inverse:{_inverse:[7,27]},strike:{_strike:[9,29]}},["black","red
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,i=Package.tracker.Tracker,r=Package.tracker.Deps,c=Package.ejson.EJSON,s=Package.modules.meteorInstall,o=Package.modules.Buffer,u=Package.modules.process,d=Package["ecmascript-runtime"].Symbol,f=Package["ecmascript-runtime"].Map,l=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,y,g=s({node_modules:{meteor:{"reactive-dict":{"reactive-dict.js":["babel-runtime/helpers/typeof",function(e,t,n){varr;n.import("babel-runtime/helpers/typeof",{default:function(e){r=e}});vars=functione(t){returnvoid0===t?"undefined":c.stringify(t)},o=functione(t){if(void0!==t&&"undefined"!==t)returnc.parse(t)},u=functione(t){t&&t.changed()};y=function(e){functiont(t){returne.apply(this,arguments)}returnt.toString=function(){returne.toString()},t}(function(e){if(e)if("string"==typeofe)y._registerDictForMigrate(e,this),this.keys=y._loadMigratedDict(e)||{},this.name=e;else{if("object"!==("undefined"==typeofe?"undefined":r(e)))thrownewError("Invalid ReactiveDict argument: "+e);this.keys=e}elsethis.keys={};this.allDeps=newi.Dependency,this.keyDeps={},this.keyValueDeps={}}),a.extend(y.prototype,{set:function(){functione(e,t){varn=this;if("object"===("undefined"==typeofe?"undefined":r(e))&&void0===t)returnvoidn._setObject(e);vari=e;t=s(t);varc=a.has(n.keys,i),o=c?n.keys[i]:"undefined",d=t!==o;n.keys[i]=t,!d&&c||n.allDeps.changed(),d&&(u(n.keyDeps[i]),n.keyValueDeps[i]&&(u(n.keyValueDeps[i][o]),u(n.keyValueDeps[i][t])))}returne}(),setDefault:function(){functione(e,t){varn=this;if("object"===("undefined"==typeofe?"undefined":r(e))&&void0===t)returnvoidn._setDefaultObject(e);vari=e;a.has(n.keys,i)||n.set(i,t)}returne}(),get:function(){functione(e){vart=this;returnt._ensureKey(e),t.keyDeps[e].depend(),o(t.keys[e])}returne}(),equals:function(){functione(e,t){varn=this,r=null;if(Package.mongo&&(r=Package.mongo.Mongo.ObjectID),!("string"==typeoft||"number"==typeoft||"boolean"==typeoft||"undefined"==typeoft||tinstanceofDate||r&&tinstanceofr||null===t))thrownewError("ReactiveDict.equals: value must be scalar");varu=s(t);if(i.active){n._ensureKey(e),a.has(n.keyValueDeps[e],u)||(n.keyValueDeps[e][u]=newi.Dependency);vard=n.keyValueDeps[e][u].depend();d&&i.onInvalidate(function(){n.keyValueDeps[e][u].hasDependents()||deleten.keyValueDeps[e][u]})}varf=void0;returna.has(n.keys,e)&&(f=o(n.keys[e])),c.equals(f,t)}returne}(),all:function(){functione(){this.allDeps.depend();vare={};returna.each(this.keys,function(t,n){e[n]=o(t)}),e}returne}(),clear:function(){functione(){vare=this,t=e.keys;e.keys={},e.allDeps.changed(),a.each(t,function(t,n){u(e.keyDeps[n]),e.keyValueDeps[n]&&(u(e.keyValueDeps[n][t]),u(e.keyValueDeps[n].undefined))})}returne}(),delete:function(){functione(e){vart=this,n=!1;if(a.has(t.keys,e)){vari=t.keys[e];deletet.keys[e],u(t.keyDeps[e]),t.keyValueDeps[e]&&(u(t.keyValueDeps[e][i]),u(t.keyValueDeps[e].undefined)),t.allDeps.changed(),n=!0}returnn}returne}(),_setObject:function(){functione(e){vart=this;a.each(e,function(e,n){t.set(n,e)})}returne}(),_setDefaultObject:function(){functione(e){vart=this;a.each(e,function(e,n){t.setDefault(n,e)})}returne}(),_ensureKey:function(){functione(e){vart=this;eint.keyDeps||(t.keyDeps[e]=newi.Dependency,t.keyValueDeps[e]={})}returne}(),_getMigrationData:function(){functione(){returnthis.keys}returne}()})}],"migration.js":function(){if(y._migratedDictData={},y._dictsToMigrate={},y._loadMigratedDict=function(e){returna.has(y._migratedDictData,e)?y._migratedDictData[e]:null},y._registerDictForMigrate=function(e,t){if(a.has(y._dictsToMigrate,e))thrownewError("Duplicate ReactiveDict name: "+e);y._dictsToMigrate[e]=t},e.isClient&&Package.reload){vart=Package.reload.Reload._migrationData("reactive-dict");t&&t.dicts&&(y._migratedDictData=t.dicts),Package.reload.Reload._onMigrate("reactive-dict",function(){vare=y._dictsToMigrate,t={};for(varnink.sanitizeForInObject(e
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,o=Package.tracker.Tracker,t=Package.tracker.Deps,i=Package["mongo-id"].MongoID,a=Package["diff-sequence"].DiffSequence,c=Package.underscore._,f=Package.random.Random,u,d,s,v;(function(){vare=function(){u._suppressWarnings?u._suppressWarnings--:("undefined"!=typeofconsole&&console.warn&&console.warn.apply(console,arguments),u._loggedWarnings++)},n=i.idStringify,r=i.idParse;u={_suppressWarnings:0,_loggedWarnings:0,observe:function(e,n){varr=null,i=null,f=[],u=o.autorun(function(){varu=e();o.nonreactive(function(){vare;if(i&&(f=c.map(r.fetch(),function(e){return{_id:e._id,item:e}}),i.stop(),i=null),u)if(uinstanceofArray)e=s(f,u,n);else{if(!a(u))throwt();varo=v(f,u,n);e=o[0],i=o[1]}elsee=d(f,n);l(f,e,n),r=u,f=e})});return{stop:function(){u.stop(),i&&i.stop()}}},fetch:function(e){if(e){if(einstanceofArray)returne;if(a(e))returne.fetch();throwt()}return[]}};vart=function(){returnnewError("{{#each}} currently only accepts arrays, cursors or falsey values.")},a=function(e){returne&&c.isObject(e)&&c.isFunction(e.observe)&&c.isFunction(e.fetch)},l=function(e,o,t){vari=Package["diff-sequence"].DiffSequence.diffQueryOrderedChanges,a=[],f=[],u={},d={},s={},v=e.length;c.each(o,function(e,r){f.push({_id:e._id}),d[n(e._id)]=r}),c.each(e,function(e,r){a.push({_id:e._id}),u[n(e._id)]=r,s[n(e._id)]=r}),i(a,f,{addedBefore:function(e,r,i){vara=i?s[n(i)]:v;i&&c.each(s,function(e,n){e>=a&&s[n]++}),v++,s[n(e)]=a,t.addedAt(e,o[d[n(e)]].item,a,i)},movedBefore:function(e,r){if(e!==r){vari=s[n(e)],a=r?s[n(r)]:v;a>i&&a--,c.each(s,function(e,n){i<e&&e<a?s[n]--:a<=e&&e<i&&s[n]++}),s[n(e)]=a,t.movedTo(e,o[d[n(e)]].item,i,a,r)}},removed:function(r){varo=s[n(r)];c.each(s,function(e,n){e>=o&&s[n]--}),deletes[n(r)],v--,t.removedAt(r,e[u[n(r)]].item,o)}}),c.each(d,function(n,i){vara=r(i);if(c.has(u,i)){varf=o[n].item,d=e[u[i]].item;"object"!=typeoff&&f===d||t.changedAt(a,f,d,n)}})};d=function(e,n){return[]},s=function(r,o,t){vari={},a=c.map(o,function(r,t){vara;if("string"==typeofr)a="-"+r;elseif("number"==typeofr||"boolean"==typeofr||void0===r)a=r;else{if("object"!=typeofr)thrownewError("{{#each}} doesn't support arrays with elements of type "+typeofr);a=r&&"_id"inr?r._id:t}varc=n(a);returni[c]?("object"==typeofr&&"_id"inr&&e("duplicate id "+a+" in",o),a=f.id()):i[c]=!0,{_id:a,item:r}});returna},v=function(e,n,r){varo=!0,t=[],i=n.observe({addedAt:function(e,n,i){if(o){if(null!==i)thrownewError("Expected initial data from observe in order");t.push({_id:e._id,item:e})}elser.addedAt(e._id,e,n,i)},changedAt:function(e,n,o){r.changedAt(e._id,e,n,o)},removedAt:function(e,n){r.removedAt(e._id,e,n)},movedTo:function(e,n,o,t){r.movedTo(e._id,e,n,o,t)}});returno=!1,[t,i]}}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varrinn)rine||(e[r]=n[r])}(Package["observe-sequence"]={},{ObserveSequence:u})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,r=Package.tracker.Tracker,n=Package.tracker.Deps,o,a,s;(function(){o={},a=function(t){returnt},s=Array.prototype.slice}).call(this),function(){vart=Object.prototype.hasOwnProperty,e=function(e,i){for(varrini)t.call(i,r)&&(e[r]=i[r]);returne};o.Visitor=function(t){e(this,t)},o.Visitor.def=function(t){e(this.prototype,t)},o.Visitor.extend=function(t){vari=this,r=functiont(){o.Visitor.apply(this,arguments)};returnr.prototype=newi,r.extend=i.extend,r.def=i.def,t&&e(r.prototype,t),r},o.Visitor.def({visit:function(t){if(null==t)returnthis.visitNull.apply(this,arguments);if("object"==typeoft){if(t.htmljsType)switch(t.htmljsType){caseo.Tag.htmljsType:returnthis.visitTag.apply(this,arguments);caseo.CharRef.htmljsType:returnthis.visitCharRef.apply(this,arguments);caseo.Comment.htmljsType:returnthis.visitComment.apply(this,arguments);caseo.Raw.htmljsType:returnthis.visitRaw.apply(this,arguments);default:thrownewError("Unknown htmljs type: "+t.htmljsType)}returno.isArray(t)?this.visitArray.apply(this,arguments):this.visitObject.apply(this,arguments)}if("string"==typeoft||"boolean"==typeoft||"number"==typeoft)returnthis.visitPrimitive.apply(this,arguments);if("function"==typeoft)returnthis.visitFunction.apply(this,arguments);thrownewError("Unexpected object in htmljs: "+t)},visitNull:function(t){},visitPrimitive:function(t){},visitArray:function(t){},visitComment:function(t){},visitCharRef:function(t){},visitRaw:function(t){},visitTag:function(t){},visitObject:function(t){thrownewError("Unexpected object in htmljs: "+t)},visitFunction:function(t){thrownewError("Unexpected function in htmljs: "+t)}}),o.TransformingVisitor=o.Visitor.extend(),o.TransformingVisitor.def({visitNull:a,visitPrimitive:a,visitArray:function(t){for(vare=s.call(arguments),i=t,r=0;r<t.length;r++){varn=t[r];e[0]=n;varo=this.visit.apply(this,e);o!==n&&(i===t&&(i=t.slice()),i[r]=o)}returni},visitComment:a,visitCharRef:a,visitRaw:a,visitObject:a,visitFunction:a,visitTag:function(t){vare=t.children,i=s.call(arguments);i[0]=e;varr=this.visitChildren.apply(this,i),n=t.attrs;i[0]=n;vara=this.visitAttributes.apply(this,i);if(a===n&&r===e)returnt;varl=o.getTag(t.tagName).apply(null,r);returnl.attrs=a,l},visitChildren:function(t){returnthis.visitArray.apply(this,arguments)},visitAttributes:function(t){if(o.isArray(t)){for(vari=s.call(arguments),r=t,n=0;n<t.length;n++){vara=t[n];i[0]=a;varl=this.visitAttributes.apply(this,i);l!==a&&(r===t&&(r=t.slice()),r[n]=l)}returnr}if(t&&o.isConstructedObject(t))thrownewError("The basic HTML.TransformingVisitor does not support foreign objects in attributes. Define a custom visitAttributes for this case.");varu=t,f=u;if(u){varc=[null,null];c.push.apply(c,arguments);for(varhinu){varp=u[h];c[0]=h,c[1]=p;varm=this.visitAttribute.apply(this,c);m!==p&&(f===u&&(f=e({},u)),f[h]=m)}}returnf},visitAttribute:function(t,e,i){varr=s.call(arguments,2);returnr[0]=e,this.visit.apply(this,r)}}),o.ToTextVisitor=o.Visitor.extend(),o.ToTextVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){vare=String(t);returnthis.textMode===o.TEXTMODE.RCDATA?e.replace(/&/g,"&").replace(/</g,"<"):this.textMode===o.TEXTMODE.ATTRIBUTE?e.replace(/&/g,"&").replace(/"/g,"""):e},visitArray:function(t){for(vare=[],i=0;i<t.length;i++)e.push(this.visit(t[i]));returne.join("")},visitComment:function(t){thrownewError("Can't have a comment here")},visitCharRef:function(t){returnthis.textMode===o.TEXTMODE.RCDATA||this.textMode===o.TEXTMODE.ATTRIBUTE?t.html:t.str},visitRaw:function(t){returnt.value},visitTag:function(t){returnthis.visit(this.toHTML(t))},visitObject:function(t){thrownewError("Unexpected object in htmljs in toText: "+t)},toHTML:function(t){returno.toHTML(t)}}),o.ToHTMLVisitor=o.Visitor.extend(),o.ToHTMLVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){vare=String(t);returne.replace(/&/g,"&").replace(/</g,"<")},visitArray:function(t){for(var
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.jquery.$,i=Package.jquery.jQuery,a=Package.tracker.Tracker,o=Package.tracker.Deps,s=Package.check.check,l=Package.check.Match,c=Package.underscore._,u=Package["observe-sequence"].ObserveSequence,d=Package["reactive-var"].ReactiveVar,p=Package.htmljs.HTML,f,h,m,w,v;(function(){f={},f._escape=function(){vare={"<":"<",">":">",'"':""","'":"'","`":"`","&":"&"},t=function(t){returne[t]};returnfunction(e){returne.replace(/[&<>"'`]/g,t)}}(),f._warn=function(e){e="Warning: "+e,"undefined"!=typeofconsole&&console.warn&&console.warn(e)}}).call(this),function(){vare={};f._DOMBackend=e;vart="undefined"!=typeofi?i:"undefined"!=typeofPackage?Package.jquery&&Package.jquery.jQuery:null;if(!t)thrownewError("jQuery not found");e._$jq=t,e.parseHTML=function(e){returnt.parseHTML(e)||[]},e.Events={delegateEvents:function(e,n,r,i){t(e).on(n,r,i)},undelegateEvents:function(e,n,r){t(e).off(n,"**",r)},bindEventCapturer:function(n,r,i,a){varo=t(n),s=function(e){e=t.event.fix(e),e.currentTarget=e.target;varr=t(e.currentTarget);r.is(o.find(i))&&a.call(n,e)};a._meteorui_wrapper=s,r=e.Events.parseEventType(r),n.addEventListener(r,s,!0)},unbindEventCapturer:function(t,n,r){n=e.Events.parseEventType(n),t.removeEventListener(n,r._meteorui_wrapper,!0)},parseEventType:function(e){vart=e.indexOf(".");returnt>=0?e.slice(0,t):e}};varn=function(){},r=function(e){this.next=this,this.prev=this,this.func=e};r.prototype.linkBefore=function(e){this.prev=e.prev,this.next=e,e.prev.next=this,e.prev=this},r.prototype.unlink=function(){this.prev.next=this.next,this.next.prev=this.prev},r.prototype.go=function(){vare=this.func;e&&e()},r.prototype.stop=r.prototype.unlink,e.Teardown={_JQUERY_EVENT_NAME:"blaze_teardown_watcher",_CB_PROP:"$blaze_teardown_callbacks",onElementTeardown:function(i,a){varo=newr(a),s=e.Teardown._CB_PROP;returni[s]||(i[s]=newr,t(i).on(e.Teardown._JQUERY_EVENT_NAME,n)),o.linkBefore(i[s]),o},tearDownElement:function(e){for(varn=[],r=e.getElementsByTagName("*"),i=0;i<r.length;i++)n.push(r[i]);n.push(e),t.cleanData(n)}},t.event.special[e.Teardown._JQUERY_EVENT_NAME]={setup:function(){},teardown:function(){vart=this,n=t[e.Teardown._CB_PROP];if(n){for(varr=n.next;r!==n;)r.go(),r=r.next;n.go(),t[e.Teardown._CB_PROP]=null}}},e.findBySelector=function(e,n){returnt(e,n)}}.call(this),function(){vare=Object.freeze?Object.freeze([]):[];f._DOMRange=function(n){if(!(thisinstanceoft))returnnewt(n);varr=n||e;if(!r||"number"!=typeofr.length)thrownewError("Expected array");for(vari=0;i<r.length;i++)this._memberIn(r[i]);this.members=r,this.emptyRangePlaceholder=null,this.attached=!1,this.parentElement=null,this.parentRange=null,this.attachedCallbacks=e};vart=f._DOMRange;t._USE_COMMENT_PLACEHOLDERS=function(){vare=!1,t=document.createTextNode("");try{t.someProp=!0}catch(t){e=!0}returne}(),t._insert=function(e,n,r,i){vara=e;ainstanceoft?a.attach(n,r,i):i?t._moveNodeWithHooks(a,n,r):t._insertNodeWithHooks(a,n,r)},t._remove=function(e){varn=e;ninstanceoft?n.detach():t._removeNodeWithHooks(n)},t._removeNodeWithHooks=function(e){e.parentNode&&(1===e.nodeType&&e.parentNode._uihooks&&e.parentNode._uihooks.removeElement?e.parentNode._uihooks.removeElement(e):e.parentNode.removeChild(e))},t._insertNodeWithHooks=function(e,t,n){n=n||null,1===e.nodeType&&t._uihooks&&t._uihooks.insertElement?t._uihooks.insertElement(e,n):t.insertBefore(e,n)},t._moveNodeWithHooks=function(e,t,n){e.parentNode===t&&(n=n||null,1===e.nodeType&&t._uihooks&&t._uihooks.moveElement?t._uihooks.moveElement(e,n):t.insertBefore(e,n))},t.forElement=function(e){if(1!==e.nodeType)thrownewError("Expected element, found: "+e);for(vart=null;e&&!t;)t=e.$blaze_range||null,t||(e=e.parentNode);returnt},t.prototype.attach=function(e,n,r,i){if((r||i)&&(this.parentElement!==e||!this.attached))thrownewError("Can only move or replace an attached DOMRange, and only under the same parent element");vara=this.members;if(a.length){this.emptyRangePlacehol
},f._getGlobalHelper=function(e,r){returnnull!=f._globalHelpers[e]?n(t(f._globalHelpers[e]),r):null},f.View.prototype.lookup=function(e,t){varn=this.template,r=t&&t.template,i,a,o,s;if(this.templateInstance&&(o=c.bind(this.templateInstance,this)),/^\./.test(e)){if(!/^(\.)+$/.test(e))thrownewError("id starting with dot must be a series of dots");returnf._parentData(e.length-1,!0)}returnn&&null!=(i=f._getTemplateHelper(n,e,o))?i:n&&null!=(a=f._lexicalBindingLookup(f.currentView,e))?a:r&&null!=(s=f._getTemplate(e,o))?s:null!=(i=f._getGlobalHelper(e,o))?i:function(){vart=arguments.length>0,n=f.getData(),i=n&&n[e];if(!i){if(r)thrownewError("No such template: "+e);if(t)thrownewError("No such function: "+e);if("@"===e.charAt(0)&&(null===i||void0===i))thrownewError("Unsupported directive: "+e)}if(!n)returnnull;if("function"!=typeofi){if(t)thrownewError("Can't call non-function: "+i);returni}returni.apply(n,arguments)}},f._parentData=function(e,t){null==e&&(e=1);for(varn=f.getView("with"),r=0;r<e&&n;r++)n=f.getView(n,"with");returnn?t?function(){returnn.dataVar.get()}:n.dataVar.get():null},f.View.prototype.lookupTemplate=function(e){returnthis.lookup(e,{template:!0})}}.call(this),function(){f.Template=function(e,n){if(!(thisinstanceoff.Template))returnnewf.Template(e,n);if("function"==typeofe&&(n=e,e=""),"string"!=typeofe)thrownewError("viewName must be a String (or omitted)");if("function"!=typeofn)thrownewError("renderFunction must be a function");this.viewName=e,this.renderFunction=n,this.__helpers=newt,this.__eventMaps=[],this._callbacks={created:[],rendered:[],destroyed:[]}};vare=f.Template,t=function(){};t.prototype.get=function(e){returnthis[" "+e]},t.prototype.set=function(e,t){this[" "+e]=t},t.prototype.has=function(e){return" "+einthis},f.isTemplate=function(e){returneinstanceoff.Template},e.prototype.onCreated=function(e){this._callbacks.created.push(e)},e.prototype.onRendered=function(e){this._callbacks.rendered.push(e)},e.prototype.onDestroyed=function(e){this._callbacks.destroyed.push(e)},e.prototype._getCallbacks=function(e){vart=this,n=t[e]?[t[e]]:[];returnn=n.concat(t._callbacks[e])};varn=function(t,n){e._withTemplateInstanceFunc(function(){returnn},function(){for(vare=0,r=t.length;e<r;e++)t[e].call(n)})};e.prototype.constructView=function(t,r){vari=this,a=f.View(i.viewName,i.renderFunction);a.template=i,a.templateContentBlock=t?newe("(contentBlock)",t):null,a.templateElseBlock=r?newe("(elseBlock)",r):null,(i.__eventMaps||"object"==typeofi.events)&&a._onViewRendered(function(){1===a.renderCount&&(i.__eventMaps.length||"object"!=typeofi.events||e.prototype.events.call(i,i.events),c.each(i.__eventMaps,function(e){f._addEventMap(a,e,a)}))}),a._templateInstance=newf.TemplateInstance(a),a.templateInstance=function(){vare=a._templateInstance;returne.data=f.getData(a),a._domrange&&!a.isDestroyed?(e.firstNode=a._domrange.firstNode(),e.lastNode=a._domrange.lastNode()):(e.firstNode=null,e.lastNode=null),e};varo=i._getCallbacks("created");a.onViewCreated(function(){n(o,a.templateInstance())});vars=i._getCallbacks("rendered");a.onViewReady(function(){n(s,a.templateInstance())});varl=i._getCallbacks("destroyed");returna.onViewDestroyed(function(){n(l,a.templateInstance())}),a},f.TemplateInstance=function(e){if(!(thisinstanceoff.TemplateInstance))returnnewf.TemplateInstance(e);if(!(einstanceoff.View))thrownewError("View required");e._templateInstance=this,this.view=e,this.data=null,this.firstNode=null,this.lastNode=null,this._allSubsReadyDep=newa.Dependency,this._allSubsReady=!1,this._subscriptionHandles={}},f.TemplateInstance.prototype.$=function(e){vart=this.view;if(!t._domrange)thrownewError("Can't use $ on template instance with no DOM");returnt._domrange.$(e)},f.TemplateInstance.prototype.findAll=function(e){returnArray.prototype.slice.call(this.$(e))},f.TemplateInstance.prototype.find=function(e){vart=this.$(e);returnt[0]||null},f.TemplateInstance.prototype.autorun=function(e){returnthis.view.autorun(e)},f.TemplateInstance.prototype.subscribe=f
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,o=Package.blaze.Blaze,c=Package.blaze.UI,r=Package.blaze.Handlebars,i=Package.spacebars.Spacebars,u=Package.htmljs.HTML,l;(function(){l=o.Template;vare="__proto__ name".split(" ");l.__checkName=function(t){if(tinl||a.contains(e,t)){if(l[t]instanceofl&&"body"!==t)thrownewError("There are multiple templates named '"+t+"'. Each template needs a unique name.");thrownewError("This template name is reserved: "+t)}},l.__define__=function(e,t){l.__checkName(e),l[e]=newl("Template."+e,t),l[e]._NOWARN_OLDSTYLE_HELPERS=!0},l.body=newl("body",function(){vare=this;returna.map(l.body.contentRenderFuncs,function(t){returnt.apply(e)})}),l.body.contentRenderFuncs=[],l.body.view=null,l.body.addContent=function(e){l.body.contentRenderFuncs.push(e)},l.body.renderToDocument=function(){if(!l.body.view){vare=o.render(l.body,document.body);l.body.view=e}},c.body=l.body,l.__body__=l.body,l.__body__.__contentParts=l.body.contentViews,l.__body__.__instantiate=l.body.renderToDocument}).call(this),function(){l.__checkName("__dynamic"),l.__dynamic=newl("Template.__dynamic",function(){vare=this;return[o.View("lookup:checkContext",function(){returni.mustache(e.lookup("checkContext"))}),"\n ",o.If(function(){returni.call(e.lookup("dataContextPresent"))},function(){return["\n ",i.include(e.lookupTemplate("__dynamicWithDataContext"),function(){returno._InOuterTemplateScope(e,function(){returni.include(function(){returni.call(e.templateContentBlock)})})}),"\n "]},function(){return["\n \n ",o._TemplateWith(function(){return{template:i.call(e.lookup("template")),data:i.call(e.lookup(".."))}},function(){returni.include(e.lookupTemplate("__dynamicWithDataContext"),function(){returno._InOuterTemplateScope(e,function(){returni.include(function(){returni.call(e.templateContentBlock)})})})}),"\n "]})]}),l.__checkName("__dynamicWithDataContext"),l.__dynamicWithDataContext=newl("Template.__dynamicWithDataContext",function(){vare=this;returni.With(function(){returni.dataMustache(e.lookup("chooseTemplate"),e.lookup("template"))},function(){return["\n \n ",o._TemplateWith(function(){returni.call(i.dot(e.lookup(".."),"data"))},function(){returni.include(e.lookupTemplate(".."),function(){returno._InOuterTemplateScope(e,function(){returni.include(function(){returni.call(e.templateContentBlock)})})})}),"\n "]})})}.call(this),function(){vare=o.Template;e.__dynamicWithDataContext.helpers({chooseTemplate:function(t){returno._getTemplate(t,function(){returne.instance()})}}),e.__dynamic.helpers({dataContextPresent:function(){returna.has(this,"data")},checkContext:function(){if(!a.has(this,"template"))thrownewError("Must specify name in the 'template' argument to {{> Template.dynamic}}.");a.each(this,function(e,t){if("template"!==t&&"data"!==t)thrownewError("Invalid argument to {{> Template.dynamic}}: "+t)})}})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["templating-runtime"]={},{Template:l})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,a=Package.meteor.meteorEnv,r;(function(){varn=0,a=!1;r={hold:function(){if(!e.isCordova)return{release:function(){}};if(a)thrownewError("Can't show launch screen once it's hidden");n++;varr=!1,o=function(){e.isCordova&&(r||(r=!0,n--,0===n&&"undefined"!=typeofnavigator&&navigator.splashscreen&&(a=!0,navigator.splashscreen.hide())))};return{release:o}}}}).call(this),function(){varn=r.hold(),a=Package.templating&&Package.templating.Template;e.startup(function(){a?Package["iron:router"]?Package["iron:router"].Router.onAfterAction(function(){n.release()}):(a.body.onRendered(function(){n.release()}),setTimeout(function(){n.release()},6e3)):n.release()})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varainn)aine||(e[a]=n[a])}(Package["launch-screen"]={},{LaunchScreen:r})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,o=Package.ejson.EJSON,i;(function(){if(Package["cmather:iron-core"])thrownewError("\n\n Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n ")}).call(this),function(){i={},i.utils={},i.utils.assert=function(e,t){if(!e)thrownewError(t)},i.utils.warn=function(e,t){e||console&&console.warn&&console.warn(t)},i.utils.defaultValue=function(e,t,n){return"undefined"==typeofe[t]?(e[t]=n,n):e[t]},i.utils.inherits=function(e,t,n){i.utils.assert("undefined"!=typeofe,"Child is undefined in inherits function"),i.utils.assert("undefined"!=typeoft,"Parent is undefined in inherits function");for(varaint)r.has(t,a)&&(e[a]=o.clone(t[a]));vars=function(){this.constructor=e};returns.prototype=t.prototype,e.prototype=news,e.__super__=t.prototype,r.isObject(n)&&r.extend(e.prototype,n),e},i.utils.extend=function(e,t){t=t||{};varn=function(){vare;e=r.has(t,"constructor")?t.constructor:n.__super__.constructor,e.apply(this,arguments)};returni.utils.inherits(n,e,t)},i.utils.global=function(){returne.isClient?window:t}(),i.utils.namespace=function(e,t){varn=i.utils.global,r,o,a,s;i.utils.assert("string"==typeofe,"namespace must be a string"),r=e.split("."),a=r.pop(),s=n;for(varc=0;c<r.length;c++)o=r[c],s=s[o]=s[o]||{};return2===arguments.length?(s[a]=t,t):s[a]},i.utils.resolve=function(e){vart=i.utils.global,n,r;if("string"==typeofe){n=e.split("."),r=t;for(varo=0;o<n.length;o++)if(r=r[n[o]],!r)return}elser=e;returnr},i.utils.capitalize=function(e){returne.charAt(0).toUpperCase()+e.slice(1,e.length)},i.utils.classCase=function(e){vart=/_|-|\.|\//;returne?r.map(e.split(t),function(e){returni.utils.capitalize(e)}).join(""):""},i.utils.camelCase=function(e){vart=i.utils.classCase(e);returnt=t.charAt(0).toLowerCase()+t.slice(1,t.length)},i.utils.notifyDeprecated=function(e){vart,n,o,i,a="[:where] ':name' is deprecated. Please use ':instead' instead.";r.isObject(e)?(t=e.name,n=e.instead,o=e.message||a,i=e.where||"IronRouter"):(o=e,t="",n="",i=""),"undefined"!=typeofconsole&&console.warn&&console.warn("<deprecated> "+o.replace(":name",t).replace(":instead",n).replace(":where",i)+" "+(newError).stack)},i.utils.withDeprecatedNotice=function(e,t,n){returnfunction(){returnUtils.notifyDeprecated(e),t&&t.apply(n||this,arguments)}},Function.prototype.deprecate=function(e){vart=this;returni.utils.withDeprecatedNotice(e,t)},i.utils.debug=function(e){returni.utils.assert("string"==typeofe,"debug requires a package name"),functiont(){if(console&&console.log&&i.debug===!0){varn=r.toArray(arguments).join(" ");console.log("%c<"+e+"> %c"+n,"color: #999;","color: #000;")}}},i.utils.get=function(e){for(vart=1;t<arguments.length;t++){if(!(e&&arguments[t]ine))return;e=e[arguments[t]]}returne},i.utils.global.Iron=i}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["iron:core"]={},{Iron:i})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.ui.Blaze,r=Package.ui.UI,i=Package.ui.Handlebars,o=Package.underscore._,s=Package.jquery.$,u=Package.jquery.jQuery,c=Package.tracker.Tracker,l=Package.tracker.Deps,p=Package["reactive-var"].ReactiveVar,h=Package["templating-runtime"].Template,d=Package.random.Random,m=Package["iron:core"].Iron,f=Package.htmljs.HTML,_=Package.spacebars.Spacebars,v;(function(){if(Package["cmather:iron-dynamic-template"])thrownewError("\n\n Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n ")}).call(this),function(){h.__checkName("__DynamicTemplateError__"),h.__DynamicTemplateError__=newh("Template.__DynamicTemplateError__",function(){vare=this;returnf.DIV({style:"margin: 0 auto; color: red;"},"\n ",a.View("lookup:msg",function(){return_.mustache(e.lookup("msg"))}),"\n ")})}.call(this),function(){vare=m.utils.debug("iron:dynamic-template"),t=m.utils.assert,n=m.utils.get,i=m.utils.camelCase,u=function(e){returnObject.prototype.toString.call(e)};v=function(e){this._id=d.id(),this.options=e=e||{},this._template=e.template,this._defaultTemplate=e.defaultTemplate,this._content=e.content,this._data=e.data,this._templateDep=newc.Dependency,this._dataDep=newc.Dependency,this._lookupHostDep=newc.Dependency,this._lookupHostValue=null,this._hooks={},this._eventMap=null,this._eventHandles=null,this._eventThisArg=null,this.name=e.name||this.constructor.prototype.name||"DynamicTemplate",this.isCreated=!1,this.isDestroyed=!1},v.prototype.template=function(e){if(1===arguments.length&&e!==this._template)returnthis._template=e,voidthis._templateDep.changed();if(!(arguments.length>0))returnthis._templateDep.depend(),this._template?"function"==typeofthis._template?this._template():this._template:this._defaultTemplate?"function"==typeofthis._defaultTemplate?this._defaultTemplate():this._defaultTemplate:void0},v.prototype.defaultTemplate=function(e){return1!==arguments.length?this._defaultTemplate:void(this._defaultTemplate=e)},v.prototype.clear=function(){this._template=void0,this._data=void0,this._templateDep.changed()},v.prototype.data=function(e){return1===arguments.length&&e!==this._data?(this._data=e,voidthis._dataDep.changed()):(this._dataDep.depend(),"function"==typeofthis._data?this._data():this._data)},v.prototype.create=function(e){vart=this;if(this.isCreated)thrownewError("DynamicTemplate view is already created");this.isCreated=!0,this.isDestroyed=!1;varn=p(null),r=a.View("DynamicTemplate",function(){vare=this,r=n.get();returna.With(function(){varn=t.data();return"undefined"!=typeofn?n:v.getParentDataContext(e)},function(){returnt.renderView(r)})});returnr.onViewCreated(function(){this.autorun(function(){n.set(t.template())})}),o.each(["onViewCreated","onViewReady","_onViewRendered","onViewDestroyed"],function(e){r[e](function(){t._runHooks(e,this)})}),r._onViewRendered(function(){t.isInserted=!0,1===r.renderCount&&t._attachEvents()}),r.onViewDestroyed(function(){t._detachEvents()}),r._templateInstance=newa.TemplateInstance(r),r.templateInstance=function(){vare=r._templateInstance;returne.data=a.getData(r),r._domrange&&!r.isDestroyed?(e.firstNode=r._domrange.firstNode(),e.lastNode=r._domrange.lastNode()):(e.firstNode=null,e.lastNode=null),e},this.view=r,r.__dynamicTemplate__=this,r.name=this.name,r},v.prototype.renderView=function(e){vart=this,n=null;return"string"==typeofe?(n=h[e],n||(n=h[i(e)]),n||(n=a.With({msg:"Coul
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,o=Package.blaze.Blaze,i=Package.blaze.UI,a=Package.blaze.Handlebars,s=Package.underscore._,c=Package.tracker.Tracker,u=Package.tracker.Deps,h=Package["iron:core"].Iron,l=Package.htmljs.HTML,g=Package.spacebars.Spacebars,d,p,m;(function(){vare=[];if(Package["cmather:iron-layout"]&&e.push("\n\n The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n "),Package["cmather:blaze-layout"]&&e.push("The blaze-layout package has been replaced by iron-layout. Please remove the package like this:\n> meteor remove cmather:blaze-layout\n"),e.length>0)thrownewError("Sorry! Looks like there's a few errors related to iron:layout\n\n"+e.join("\n\n"))}).call(this),function(){r.__checkName("__IronDefaultLayout__"),r.__IronDefaultLayout__=newr("Template.__IronDefaultLayout__",function(){vare=this;returng.include(e.lookupTemplate("yield"))})}.call(this),function(){vare=h.DynamicTemplate,n=h.utils.inherits;d=function(e){for(;e;){if("Iron.Layout"===e.name)returne.__dynamicTemplate__;e=e.parentView}returnnull},p=function(e){varn=this;p.__super__.constructor.apply(this,arguments),e=e||{},this.name="Iron.Layout",this._regions={},this._regionHooks={},this.defaultTemplate("__IronDefaultLayout__"),e.content&&this.render(e.content)},m=p.DEFAULT_REGION="main",n(p,h.DynamicTemplate),p.prototype.region=function(e,n){returnthis._ensureRegion(e,n)},p.prototype.destroyRegions=function(){s.each(this._regions,function(e){e.destroy()}),this._regions={}},p.prototype.render=function(e,n){n=n||{};vart=n.to||n.region||m,r=this.region(t);this._trackRenderedRegion(t),r.template(e),r.data(n.data)},p.prototype.has=function(e){returne=e||p.DEFAULT_REGION,!!this._regions[e]},p.prototype.regionKeys=function(){returns.keys(this._regions)},p.prototype.clear=function(e){returne=e||p.DEFAULT_REGION,this.has(e)&&this.region(e).template(null),this},p.prototype.clearAll=function(){returns.each(this._regions,function(e){e.template(null)}),this},p.prototype.beginRendering=function(e){varn=this;if(this._finishRenderingTransaction&&this._finishRenderingTransaction(),this._finishRenderingTransaction=s.once(function(){vart=n._endRendering({flush:!1});e&&e(t)}),u.afterFlush(this._finishRenderingTransaction),this._renderedRegions)thrownewError("You called beginRendering again before calling endRendering");this._renderedRegions={}},p.prototype._trackRenderedRegion=function(e){this._renderedRegions&&(this._renderedRegions[e]=!0)},p.prototype._endRendering=function(e){e=e||{},e.flush!==!1&&u.flush();varn=this._renderedRegions||{};returnthis._renderedRegions=null,s.keys(n)},s.each(["onRegionCreated","onRegionRendered","onRegionDestroyed"],function(e){p.prototype[e]=function(n){vart=this._regionHooks[e]=this._regionHooks[e]||[];returnt.push(n),this}}),p.prototype._ensureRegion=function(e,n){returnthis._regions[e]=this._regions[e]||this._createDynamicTemplate(e,n)},p.prototype._createDynamicTemplate=function(e,n){vart=this,r=newh.DynamicTemplate(n),o=h.utils.capitalize;returnr._region=e,s.each(["viewCreated","viewReady","viewDestroyed"],function(e){e=o(e),r["on"+e](function(n){varr=this,o={viewCreated:"regionCreated",viewReady:"regionRendered",viewDestroyed:"regionDestroyed"}[e];t._runRegionHooks("on"+o,r,n)})}),r},p.prototype._runRegionHooks=function(e,n,t){for(varr=this,o=this._regionHooks[e]||[],i,a=0;a<o.length;a++)i=o[a],i.call(n,t.region,t,this)},"un
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,i=Package["iron:core"].Iron,o,a;(function(){(function(){functione(e){returne.replace(/([=!:$\/()])/g,"\\$1")}functionr(o,a,c){a&&"[object Array]"!==t(a)&&(c=a,a=null),a=a||[],c=c||{};vars=c.strict,u=c.end!==!1,p=c.sensitive?"":"i",f=0;if(oinstanceofRegExp){varl=o.source.match(/\((?!\?)/g)||[];returna.push.apply(a,l.map(function(e,r){return{name:r,delimiter:null,optional:!1,repeat:!1}})),i(o,a)}if("[object Array]"===t(o))returno=o.map(function(e){returnr(e,a,c).source}),i(newRegExp("(?:"+o.join("|")+")",p),a);o=o.replace(n,function(r,t,n,i,o,c,s,u){if(t)returnt;if(u)return"\\"+u;varp="+"===s||"*"===s,l="?"===s||"*"===s;returna.push({name:i||f++,delimiter:n||"/",optional:l,repeat:p}),n=n?"\\"+n:"",o=e(o||c||"[^"+(n||"\\/")+"]+?"),p&&(o=o+"(?:"+n+o+")*"),l?"(?:"+n+"("+o+"))?":n+"("+o+")"});varg="/"===o[o.length-1];returns||(o=(g?o.slice(0,-2):o)+"(?:\\/(?=$))?"),u||(o+=s&&g?"":"(?=\\/|$)"),i(newRegExp("^"+o+(u?"$":""),p),a)}vart=function(e){returnObject.prototype.toString.call(e)},n=newRegExp(["(\\\\.)","([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?","([.+*?=^!:${}()[\\]|\\/])"].join("|"),"g"),i=function(e,r){returne.keys=r,e};o=r}).call(this),function(){functionr(e){try{returndecodeURIComponent(e.replace(/\+/g," "))}catch(r){returnvoid(r.constructor==URIError&&c("Tried to decode an invalid URI component: "+JSON.stringify(e)+" "+r.stack))}}functiont(e){try{returndecodeURI(e.replace(/\+/g," "))}catch(r){returnvoid(r.constructor==URIError&&c("Tried to decode an invalid URI: "+JSON.stringify(e)+" "+r.stack))}}varc=i.utils.warn,s=i.utils.assert;a=function(e,r){r=r||{},this.options=r,this.keys=[],this.regexp=o(e,this.keys,r),this._originalPath=e,n.extend(this,a.parse(e))};varu=__meteor_runtime_config__.ROOT_URL;if(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX){varp=__meteor_runtime_config__.ROOT_URL.indexOf(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX);p!=-1&&(u=__meteor_runtime_config__.ROOT_URL.substr(0,p))}a.ROOT_URL_WITHOUT_PATH_PREFIX=u,a.normalize=function(e){if(einstanceofRegExp)returne;if("string"!=typeofe)return"/";varr=a.parse(e),t=r.pathname;return"/"!==t.charAt(0)&&(t="/"+t),t.length>1&&"/"===t.charAt(t.length-1)&&(t=t.slice(0,t.length-1)),t},a.isSameOrigin=function(e,r){vart=a.parse(e),n=a.parse(r),i=t.origin===n.origin;returni},a.fromQueryString=function(e){if(!e)return{};if("string"!=typeofe)thrownewError("expected string");"?"===e.charAt(0)&&(e=e.slice(1));vart=e.split("&"),i={},o;returnn.each(t,function(e){vart=e.split("="),n=t[0],o=r(t[1]);"[]"===n.slice(-2)?(n=n.slice(0,-2),i[n]=i[n]||[],i[n].push(o)):i[n]=o}),i},a.toQueryString=function(e){varr=[];return"string"==typeofe?"?"!==e.charAt(0)?"?"+e:e:(n.each(e,function(e,t){n.isArray(e)?n.each(e,function(e){r.push(encodeURIComponent(t+"[]")+"="+encodeURIComponent(e))}):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),r.length>0?"?"+r.join("&"):"")},a.parse=function(e){if("string"!=typeofe)return{};varr=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,t=e.match(r),n=t[1]?t[1].toLowerCase():void0,i=t[3],o=!!i,c=t[4]?t[4].toLowerCase():void0,s=c?c.split("@"):[],u,p;2==s.length?(p=s[0],u=s[1]):1==s.length?(u=s[0],p=void0):(u=void0,p=void0);varf=u&&u.split(":")||[],l=f[0],g=f[1],h=n&&u?n+"//"+u:void0,_=t[5],m=t[8],d=e,R=t[6],v,y=m&&m.indexOf("?")||-1;~y&&!R?(R=m.slice(y),m=m.substr(0,y),v=R.slice(1)):v=t[7];varU=_+(R||""),O=a.fromQueryString(v),P=[n||"",o?"//":"",c||""].join(""),x=[n||"",o?"//":"",c||"",_||"",R||"",m||""].join("");return{rootUrl:P||"",originalUrl:e||"",href:x||"",protocol:n||"",auth:p||"",host:u||"",hostname:l||"",port:g||"",origin:h||"",path:U||"",pathname:_||"",search:R||"",query:v||"",queryObject:O||"",hash:m||"",slashes:o}},a.prototype.test=function(e){returne=a.normalize(e),e=a.trimPathPrefixAccordingToMeteorRootUrlSettingsForRouteMatching(e),this.regexp.test(e)},a.prototype.exec=function(e){returne=a.normalize(e),
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,o=Package["iron:core"].Iron,a=Package["clinical:router-url"].Url,s,h;(function(){vart=o.Url;s=function(e,n,i){r.isFunction(e)&&(i=i||n||{},n=e,e="/",this.middleware=!0,"undefined"==typeofi.mount&&(i.mount=!0)),"object"==typeofn&&(i=n,n=i.action||"action"),i=i||{},this.options=i,this.mount=i.mount,this.method=i.method&&i.method.toLowerCase()||!1,this.where=i.where||"client",this.mount&&(i.end=!1),i.name?this.name=i.name:"string"==typeofe&&"/"!==e.charAt(0)?this.name=e:"string"==typeofe&&"/"!==e&&(this.name=e.split("/").slice(1).join(".")),e=i.path||e,"string"==typeofe&&"/"!==e.charAt(0)&&(e="/"+e),this.path=e,this.compiledUrl=newt(e,i),r.isString(n)?this.handle=functiont(){vare=this[n];if("function"!=typeofe)thrownewError("No method named "+JSON.stringify(n)+" found on handler.");returne.apply(this,arguments)}:r.isFunction(n)&&(this.handle=n)},s.prototype.test=function(t,e){e=e||{};varn=this.compiledUrl.test(t),r=!0,i=!0;returnthis.method&&e.method&&(r=this.method==e.method.toLowerCase()),e.where&&(i=this.where==e.where),n&&r&&i},s.prototype.params=function(t){returnthis.compiledUrl.params(t)},s.prototype.resolve=function(t,e){returnthis.compiledUrl.resolve(t,e)},s.prototype.clone=function(){vart=news(this.path,this.handle,this.options);returnt.name=this.name,t}}).call(this),function(){vare=o.Url,n=o.utils.assert,a=o.utils.defaultValue;h=function(){this._stack=[],this.length=0},h.prototype._create=function(t,e,n){vari=news(t,e,n),o=i.name;if(o){if(r.has(this._stack,o))thrownewError("Handler with name '"+o+"' already exists.");this._stack[o]=i}returni},h.prototype.findByName=function(t){returnthis._stack[t]},h.prototype.push=function(t,e,n){varr=this._create(t,e,n);returnthis._stack.push(r),this.length++,r},h.prototype.append=function(){vart=this,e=r.toArray(arguments),n={};return"object"==typeofe[e.length-1]&&(n=e.pop()),r.each(e,function(e){if("undefined"!=typeofe)if("function"==typeofe)t.push(e,n);else{if(!r.isArray(e))thrownewError("Can only append functions or arrays to the MiddlewareStack");t.append.apply(t,e.concat([n]))}}),this},h.prototype.insertAt=function(t,e,n,r){vari=this._create(e,n,r);returnthis._stack.splice(t,0,i),this.length=this._stack.length,this},h.prototype.insertBefore=function(t,e,n,i){varo,a;if(!(o=this._stack[t]))thrownewError("Couldn't find a handler named '"+t+"' on the path stack");returna=r.indexOf(this._stack,o),this.insertAt(a,e,n,i),this},h.prototype.insertAfter=function(t,e,n,i){varo,a;if(!(o=this._stack[t]))thrownewError("Couldn't find a handler named '"+t+"' on the path stack");returna=r.indexOf(this._stack,o),this.insertAt(a+1,e,n,i),this},h.prototype.concat=function(){vart=newh,e=Array.prototype.concat,n=i.clone(this._stack),o=r.map(r.toArray(arguments),function(t){returni.clone(t._stack)});returnt._stack=e.apply(n,o),t.length=t._stack.length,t},h.prototype.dispatch=functionr(i,o,s){varh=this,l=i;n("string"==typeofi,"Requires url"),n("object"==typeofo,"Requires context object"),i=e.normalize(i||"/"),a(o,"request",{}),a(o,"response",{}),a(o,"originalUrl",i),a(o,"_method",o.method),a(o,"_handlersForEnv",{client:!1,server:!1}),a(o,"_handled",!1),a(o,"isHandled",function(){returno._handled}),a(o,"willBeHandledOnClient",function(){returno._handlersForEnv.client}),a(o,"willBeHandledOnServer",function(){returno._handlersForEnv.server});varc=function(){if(s)try{s.apply(this,arguments)}catch(t){throwt._punt=!0,t}},u=0,d=t.bindEnvironment(functionn(r){vara=h._stack[u++];if(o.url=o.request.url=o.originalUrl,!a)returnc.call(o,r);if(!a.test(i,{method:o._method}))returnd(r);vars=t.isClient?"client":"server";if(a.middleware||(o._handlersForEnv[a.where]=!0),a.where!==s)returnd(r);if(o.next=d,a.mount){varl=e.normalize(a.compiledUrl.pathname),p=i.substr(l.length,i.length);p=e.normalize(p),o.url=o.request.url=p}try{varf=a.handle.length,m=o.request,y=o.response;returnr&&4===f?a.handle.call(o,r,m,y,d):!r&&
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,r=Package.tracker.Tracker,o=Package.tracker.Deps,i=Package.jquery.$,c=Package.jquery.jQuery,s=Package["iron:core"].Iron,h=Package["clinical:router-url"].Url,u,l,f,p,g;(function(){(function(){vart=s.Url,e="__hash__";u=function(n){vara=t.parse(n),r=a.hash&&a.hash.replace("#",""),o=a.search,i=a.pathname,c=a.rootUrl;if(r&&"!"!==r.charAt(0)){vars=e+"="+r;o=o?o+"&":"?",o+=s,r=""}return!r&&i?r="#!"+i.substring(1):r&&(r="#"+r),[c,r,o].join("")},l=function(n){varr=t.parse(n),o=r.hash&&r.hash.replace("#!","/"),i=r.search,c=r.rootUrl,s;returna.has(r.queryObject,e)?(s="#"+r.queryObject[e],deleter.queryObject[e]):s="",[c,o,t.toQueryString(r.queryObject),s].join("")},f=function(n){vara=t.parse(n),r=a.queryObject;returna.hash&&(r[e]=a.hash.replace("#","")),["!",a.pathname.substring(1),t.toQueryString(r)].join("")}}).call(this),function(){vart=s.Url;p=function(e,n){a.extend(this,t.parse(e),{options:n||{}})},p.prototype.equals=function(t){return!!t&&(tinstanceofp&&(t.pathname==this.pathname&&t.search==this.search&&t.hash==this.hash&&t.options.historyState===this.options.historyState))},p.prototype.isCancelled=function(){return!!this._isCancelled},p.prototype.cancelUrlChange=function(){this._isCancelled=!0}}.call(this),function(){vare=s.Url,n=null,r=newo.Dependency,c={go:[],popState:[]},h=function(){return/MSIE 9/.test(navigator.appVersion)},y=function(){return/MSIE 8/.test(navigator.appVersion)},d=function(){return!!Package.appcache},S=function(){return"undefined"==typeofhistory||"function"!=typeofhistory.pushState},v=function(){returng.options.useHashPaths||y()||h()||d()||S()},k=function(){return!!g.options.useHashPaths},P=function(t,e){a.each(c[t],function(t){t.call(e)})},w=function(t){if(!(tinstanceofp))thrownewError("Expected a State instance");return!t.equals(n)&&(n=t,r.changed(),!0)},m=function(){vart=location.href,e;e=k()?newp(l(t)):newp(t,{historyState:history.state}),P("popState",e),w(e)},j=function(t){vare=q;e&&e(t)},_=function(t,e){e=e||{};varn=newp(t,e);P("go",n),w(n)&&o.afterFlush(function(){n.isCancelled()||(k()?location.hash=f(t):e.replaceState===!0?history.replaceState(e.historyState,null,t):history.pushState(e.historyState,null,t))})},q=function(t){try{varn=t.currentTarget,a=n.href,r=n.pathname+n.search+n.hash;if(r=r.replace(/(^\/?)/,"/"),t.isDefaultPrevented())returnvoidt.preventDefault();if(t.metaKey||t.ctrlKey||t.shiftKey)return;if(n.target)return;if(!e.isSameOrigin(a,location.href))return;t.preventDefault(),_(r)}catch(e){throwt.preventDefault(),e}};g={},g.options={linkSelector:"a[href]",useHashPaths:!1},g.configure=function(t){a.extend(this.options,t||{})},g.get=function(){returnr.depend(),n},g.start=function(){if(!this._isStarted){varn=e.parse(location.href);if(v()){if(n.pathname.length>1){vara=u(location.href);window.location=a}this.configure({useHashPaths:!0})}varr=location.href;if(k()){varo=newp(l(r));w(o)}else{if("!"===n.hash.replace("#","")[0])varr=l(r);varc={initial:!0};history.replaceState(c,null,r);varo=newp(r,{historyState:c});w(o)}i(window).on("popstate.iron-location",m),i(window).on("hashchange.iron-location",m),t.startup(function(){i(document).on("click.iron-location",g.options.linkSelector,j)}),this._isStarted=!0}},g.stop=function(){this._isStarted&&(i(window).on("popstate.iron-location"),i(window).on("hashchange.iron-location"),i(document).off("click.iron-location"),this._isStarted=!1)},g.onClick=function(t){q=t},g.go=function(t,e){return_(t,e)},g.onGo=function(t){c.go.push(t)},g.onPopState=function(t){c.popState.push(t)},g.start(),s.Location=g}.call(this)}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varnine)nint||(t[n]=e[n])}(Package["clinical:router-location"]={},{urlToHashStyle:u,urlFromHashStyle:l})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,o=Package.tracker.Tracker,i=Package.tracker.Deps,r=Package["reactive-dict"].ReactiveDict,u=Package["templating-runtime"].Template,s=Package["iron:core"].Iron,c=Package.blaze.Blaze,l=Package.blaze.UI,p=Package.blaze.Handlebars,d=Package.spacebars.Spacebars,y=Package.htmljs.HTML,h,f;(function(){vart=s.utils.assert,e=function(){for(vart={},e=i.currentComputation;e;)t[String(e._id)]=!0,e=e._parent;returnt},n=function(n){varo=e(),i=a.keys(n._dependentsById);a.each(i,function(e){t(!o[e],"\n\nYou called wait() after calling ready() inside the same computation tree.\n\nYou can fix this problem in two possible ways:\n\n1) Put all of your wait() calls before any ready() calls.\n2) Put your ready() call in its own computation with Deps.autorun.")})};h=function(){this._readyDep=newi.Dependency,this._comps=[],this._notReadyCount=0},h.prototype.wait=function(t){vare=this,o=i.currentComputation;n(e._readyDep),i.nonreactive(function(){varn=null,r=i.autorun(function(a){varo=!!t(),i=e._notReadyCount;a.firstRun&&!o?e._notReadyCount++:null!==n&&o!==n&&o===!0?e._notReadyCount--:null!==n&&o!==n&&o===!1&&e._notReadyCount++,n=o,0===i&&e._notReadyCount>0?e._readyDep.changed():i>0&&0===e._notReadyCount&&e._readyDep.changed()});e._comps.push(r),o&&o.onInvalidate(function(){i.afterFlush(function(){r.stop(),e._comps.splice(a.indexOf(e._comps,r),1),n===!1&&(e._notReadyCount--,0===e._notReadyCount&&e._readyDep.changed())})})})},h.prototype.ready=function(){returnthis._readyDep.depend(),0===this._notReadyCount},h.prototype.stop=function(){a.each(this._comps,function(t){t.stop()}),this._comps=[]},s.WaitList=h}).call(this),function(){vart=s.utils.debug("iron:controller"),e=s.Layout,n=s.DynamicTemplate,o=function(t,e){returnfunction(){return"function"==typeoft?t.apply(e,arguments):t}};f=function(t){varn=this;this.options=t||{},this._layout=this.options.layout||newe(this.options),this._isController=!0,this._layout._setLookupHost(this);vara=f._collectEventMaps.call(this.constructor);this._layout.events(a,this),this.init(t)},f.prototype.layout=function(t,e){varn=this;returnthis._layout.template(t),e&&a.has(e,"data")&&this._layout.data(o(e.data,this)),{data:function(t){returnn._layout.data(o(t,n))}}},f.prototype.render=function(t,e){varn=this;e&&"undefined"!=typeofe.data&&(e.data=o(e.data,this));vara=this._layout.render(t,e);return{data:function(t){returna.data(o(t,n))}}},f.prototype.beginRendering=function(t){returnthis._layout.beginRendering(t)},f.extend=function(t){returns.utils.extend(this,t)},f.events=function(t){returnthis._eventMap=t,this};vari=function(t,e){varn={};returnt.__super__&&a.extend(n,i(t.__super__.constructor,e)),a.has(t,e)?a.extend(n,t[e]):n};f._collectEventMaps=function(){returni(this,"_eventMap")},f._helpers={},f.helpers=function(t){returna.extend(this._helpers,t),this},"undefined"!=typeofu&&(s.controller=function(){returnn.findLookupHostWithProperty(c.getView(),"_isController")},u.registerHelper("get",function(t){vare=s.controller();if(e&&e.state)returne.state.get(t)})),s.Controller=f}.call(this),function(){vart=s.Layout,e=s.utils.debug("iron:controller"),n=s.utils.defaultValue,o=function(t,e){returnfunction(){return"function"==typeoft?t.apply(e,arguments):t}};f.prototype.init=function(t){this._waitlist=newh,this.state=newr},f.prototype.insert=function(t){returnthis._layout.insert.apply(this._layout,arguments)},f.prototype.wait=function(t){vare=this;if(t)returna.isArray(t)?a.each(t,functiont(n){e.wait(n)}):t.ready?this._waitlist.wait(function(){returnt.ready()}):this._waitlist.wait(t),this},f.prototype.ready=function(){returnthis._waitlist.ready()},f.prototype.stop=function(){this._waitlist.stop()}}.call(this),"undefined"==typeofPackage&&(Package={}),Package["iron:controller"]={}}();
!function(){vart=Package.underscore._,o=Package.tracker.Tracker,e=Package.tracker.Deps,r=Package.blaze.Blaze,n=Package.blaze.UI,i=Package.blaze.Handlebars,a=Package["templating-runtime"].Template,u=Package.ejson.EJSON,s=Package.meteor.Meteor,l=Package.meteor.global,c=Package.meteor.meteorEnv,p=Package["iron:core"].Iron,h=Package["clinical:router-middleware-stack"].MiddlewareStack,f=Package["clinical:router-url"].Url,d=Package.htmljs.HTML,y=Package.spacebars.Spacebars,_,m,g,v,k,w;(function(){(function(){_=news.EnvironmentVariable}).call(this),function(){m=["get","post","put","delete","patch"]}.call(this),function(){varo=p.Controller,e=p.Url,r=p.MiddlewareStack,n=p.utils.assert;g=o.extend({constructor:function(o){g.__super__.constructor.apply(this,arguments),o=o||{},this.options=o,this._onStopCallbacks=[],this.route=o.route,this.params=[];vare=this.lookupOption("data");"function"==typeofe?this.data=t.bind(e,this):"undefined"!=typeofe&&(this.data=function(){returne}),this.init(o)}}),g.prototype.lookupOption=function(o){if(this.route&&this.route.options&&t.has(this.route.options,o))returnthis.route.options[o];if(t.has(this.options,o))returnthis.options[o];if("undefined"!=typeofthis[o])returnthis[o];vare=_.get();returne&&t.has(e,o)?e[o]:this.router&&this.router.options&&t.has(this.router.options,o)?this.router.options[o]:void0},g.prototype.configureFromUrl=function(t,o,e){n("string"==typeoft,"url must be a string"),o=o||{},this.request=o.request||{},this.response=o.response||{},this.url=o.url||t,this.originalUrl=o.originalUrl||t,this.method=this.request.method,this.route&&this.setParams(this.route.params(t),e)},g.prototype._collectHooks=function(){varo=this,e=t.toArray(arguments),r=function(e){if(!e)return[];varr=o.router.lookupHook,n=t.isArray(e)?e:[e];returnt.map(n,function(t){returnr(t)})},n=function(o,e){vari=[];returno.__super__&&(i=i.concat(n(o.__super__.constructor,e))),t.has(o.prototype,e)?i.concat(r(o.prototype[e])):i},i=function(t){for(varo=0;o<e.length;o++)t(e[o])},a=[];i(function(t){vare=o.route&&o.route.getName(),r=o.router.getHooks(t,e);a=a.concat(r)});varu=[];i(function(t){vare=n(o.constructor,t);u=u.concat(e)});vars=[];i(function(e){if(t.has(o,e)){varn=r(o[e]);s=s.concat(n)}});varl=[];o.route&&i(function(t){vare=r(o.route.options[t]);l=l.concat(e)});varc=a.concat(l).concat(u).concat(s);returnc},g.prototype.runHooks=function(){for(vart=this._collectHooks.apply(this,arguments),o=0,e=t.length;o<e;o++){varr=t[o];r.call(this)}returnt.length},g.prototype.getParams=function(){returnthis.params},g.prototype.setParams=function(t){returnthis.params=t,this},p.RouteController=g}.call(this),function(){varr=p.Controller,n=p.Url,i=p.MiddlewareStack,a=p.utils.debug("iron-router:RouteController");if(g.prototype.init=function(t){g.__super__.init.apply(this,arguments),this._computation=null,this._paramsDep=newo.Dependency,this.location=p.Location},g.prototype.getParams=function(){returnthis._paramsDep.depend(),this.params},g.prototype.setParams=function(o,e){varr=function(o,r){if(!(oinstanceofArray))thrownewError("you called equals with a non array value in setParams");if(!(rinstanceofArray))return!1;if(o.length!==r.length)return!1;for(varn=0;n<o.length;n++)if(!u.equals(o[n],r[n],e))return!1;vari=t.keys(o),a=t.keys(r),s;if(i.length!==a.length)return!1;for(varn=0;n<i.length;n++){if(s=i[n],!t.has(r,s))return!1;if(!u.equals(o[s],r[s]))return!1}return!0};if(!r(this.params,o))returnthis.params=o,e=e||{},e.reactive!==!1&&this._paramsDep.changed(),this},g.prototype.dispatch=function(t,o,r){if(this._computation&&!this._computation.stopped)thrownewError("RouteController computation is already running. Stop it first.");varn=this;returne.nonreactive(function(){e.autorun(function(e){n._computation=e,t.dispatch(o,n,r)})}),n},g.prototype._runRoute=function(o,r,n){vara=this,u=this._collectHooks("subscriptions");t.each(u,function(t){a.wait(t.call(a))});vars=this._collectHooks("waitOn");t.each(s,function(t){a.wait(t.call(a))});varl=s.length>0,c,h,f=function(){returne.nonreactive(function
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.jquery.$,i=Package.jquery.jQuery;!function(e){"function"==typeofdefine&&define.amd?define(["jquery"],e):e("object"==typeofexports?require("jquery"):i)}(function(e){vart=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)vart=e.fn.select2.amd;vart;returnfunction(){if(!t||!t.requirejs){t?n=t:t={};vare,n,r;!function(t){functioni(e,t){return$.call(e,t)}functiono(e,t){varn,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),s=e.length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),e=h.slice(0,h.length-1).concat(e),u=0;u<e.length;u+=1)if(p=e[u],"."===p)e.splice(u,1),u-=1;elseif(".."===p){if(1===u&&(".."===e[2]||".."===e[0]))break;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(n=e.split("/"),u=n.length;u>0;u-=1){if(r=n.slice(0,u).join("/"),h)for(d=h.length;d>0;d-=1)if(i=f[h.slice(0,d).join("/")],i&&(i=i[r])){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}returne}functions(e,n){returnfunction(){varr=w.call(arguments,0);return"string"!=typeofr[0]&&1===r.length&&r.push(null),h.apply(t,r.concat([e,n]))}}functiona(e){returnfunction(t){returno(t,e)}}functionl(e){returnfunction(t){m[e]=t}}functionc(e){if(i(v,e)){varn=v[e];deletev[e],_[e]=!0,p.apply(t,n)}if(!i(m,e)&&!i(_,e))thrownewError("No "+e);returnm[e]}functionu(e){vart,n=e?e.indexOf("!"):-1;returnn>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}functiond(e){returnfunction(){returny&&y.config&&y.config[e]||{}}}varp,h,f,g,m={},v={},y={},_={},$=Object.prototype.hasOwnProperty,w=[].slice,b=/\.js$/;f=function(e,t){varn,r=u(e),i=r[0];returne=r[1],i&&(i=o(i,t),n=c(i)),i?e=n&&n.normalize?n.normalize(e,a(t)):o(e,t):(e=o(e,t),r=u(e),i=r[0],e=r[1],i&&(n=c(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},g={require:function(e){returns(e)},exports:function(e){vart=m[e];return"undefined"!=typeoft?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:d(e)}}},p=function(e,n,r,o){vara,u,d,p,h,y=[],$=typeofr,w;if(o=o||e,"undefined"===$||"function"===$){for(n=!n.length&&r.length?["require","exports","module"]:n,h=0;h<n.length;h+=1)if(p=f(n[h],o),u=p.f,"require"===u)y[h]=g.require(e);elseif("exports"===u)y[h]=g.exports(e),w=!0;elseif("module"===u)a=y[h]=g.module(e);elseif(i(m,u)||i(v,u)||i(_,u))y[h]=c(u);else{if(!p.p)thrownewError(e+" missing "+u);p.p.load(p.n,s(o,!0),l(u),{}),y[h]=m[u]}d=r?r.apply(m[e],y):void0,e&&(a&&a.exports!==t&&a.exports!==m[e]?m[e]=a.exports:d===t&&w||(m[e]=d))}elsee&&(m[e]=r)},e=n=h=function(e,n,r,i,o){if("string"==typeofe)returng[e]?g[e](n):c(f(e,n).f);if(!e.splice){if(y=e,y.deps&&h(y.deps,y.callback),!n)return;n.splice?(e=n,n=r,r=null):e=t}returnn=n||function(){},"function"==typeofr&&(r=i,i=o),i?p(t,e,n,r):setTimeout(function(){p(t,e,n,r)},4),h},h.config=function(e){returnh(e)},e._defined=m,r=function(e,t,n){if("string"!=typeofe)thrownewError("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),i(m,e)||i(v,e)||(v[e]=[e,t,n])},r.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){vart=e||r;returnnull==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){functiont(e){vart=e.prototype,n=[];for(varrint){vari=t[r];"function"==typeofi&&"constructor"!==r&&n.push(r)}returnn}varn={};n.Extend=function(e,t){functionn(){this.constructor=e}varr={}.hasOwnProperty;for(variint)r.call(t,i)&&(e[i]=t[i]);returnn.prototype=t.prototype,e.prototype=newn,e.__super__=t.prototype,e},n.Decorate=function(e,n){functionr(){vart=Array.prototype.unshift,r=n.prototype.constructor.length,i=e.prototype.constructor;r>0&&(t.call(arguments,e.prototy
this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){vart=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');returnt.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},i}),t.define("jquery-mousewheel",["jquery"],function(e){returne}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,r){if(null==e.fn.select2){vari=["open","close","destroy"];e.fn.select2=function(t){if(t=t||{},"object"==typeoft)returnthis.each(function(){varr=e.extend(!0,{},t),i=newn(e(this),r)}),this;if("string"==typeoft){varr,o=Array.prototype.slice.call(arguments,1);returnthis.each(function(){varn=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=n[t].apply(n,o)}),e.inArray(t,i)>-1?this:r}thrownewError("Invalid arguments for Select2: "+t)}}returnnull==e.fn.select2.defaults&&(e.fn.select2.defaults=r),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");returne.fn.select2.amd=t,n}),"undefined"==typeofPackage&&(Package={}),Package["natestrauser:select2"]={}}();
!function(){varMeteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,Symbol=Package["ecmascript-runtime"].Symbol,Map=Package["ecmascript-runtime"].Map,Set=Package["ecmascript-runtime"].Set,meteorBabelHelpers=Package["babel-runtime"].meteorBabelHelpers,Promise=Package.promise.Promise,html,chai,__coffeescriptShare,assert,expect,should;(function(){(function(){!function(){functionrequire(e){vart=require.modules[e];if(!t)thrownewError('failed to require "'+e+'"');return"exports"int||"function"!=typeoft.definition||(t.client=t.component=!0,t.definition.call(this,t.exports={},t),deletet.definition),t.exports}require.loader="component",require.helper={},require.helper.semVerSort=function(e,t){for(vari=e.version.split("."),n=t.version.split("."),r=0;r<i.length;++r){varo=parseInt(i[r],10),s=parseInt(n[r],10);if(o!==s)returno>s?1:-1;vara=i[r].substr((""+o).length),c=n[r].substr((""+s).length);if(""===a&&""!==c)return1;if(""!==a&&""===c)return-1;if(""!==a&&""!==c)returna>c?1:-1}return0},require.latest=function(e,t){functioni(e){thrownewError('failed to find latest module of "'+e+'"')}varn=/(.*)~(.*)@v?(\d+\.\d+\.\d+[^\/]*)$/,r=/(.*)~(.*)/;r.test(e)||i(e);for(varo=Object.keys(require.modules),s=[],a=[],c=0;c<o.length;c++){varh=o[c];if(newRegExp(e+"@").test(h)){varu=h.substr(e.length+1),l=n.exec(h);null!=l?s.push({version:u,name:h}):a.push({version:u,name:h})}}if(0===s.concat(a).length&&i(e),s.length>0){varf=s.sort(require.helper.semVerSort).pop().name;returnt===!0?f:require(f)}varf=a.sort(function(e,t){returne.name>t.name})[0].name;returnt===!0?f:require(f)},require.modules={},require.register=function(e,t){require.modules[e]={definition:t}},require.define=function(e,t){require.modules[e]={exports:t}},require.register("chaijs~assertion-error@1.0.0",function(e,t){functioni(){functione(e,i){Object.keys(i).forEach(function(n){~t.indexOf(n)||(e[n]=i[n])})}vart=[].slice.call(arguments);returnfunctiont(){for(vari=[].slice.call(arguments),n=0,r={};n<i.length;n++)e(r,i[n]);returnr}}functionn(e,t,n){varr=i("name","message","stack","constructor","toJSON"),o=r(t||{});this.message=e||"Unspecified AssertionError",this.showDiff=!1;for(varsino)this[s]=o[s];n=n||arguments.callee,n&&Error.captureStackTrace&&Error.captureStackTrace(this,n)}t.exports=n,n.prototype=Object.create(Error.prototype),n.prototype.name="AssertionError",n.prototype.constructor=n,n.prototype.toJSON=function(e){vart=i("constructor","toJSON","stack"),n=t({name:this.name},this);return!1!==e&&this.stack&&(n.stack=this.stack),n}}),require.register("chaijs~type-detect@0.1.1",function(e,t){functioni(e){vart=Object.prototype.toString.call(e);returnr[t]?r[t]:null===e?"null":void0===e?"undefined":e===Object(e)?"object":typeofe}functionn(){this.tests={}}vare=t.exports=i,r={"[object Array]":"array","[object RegExp]":"regexp","[object Function]":"function","[object Arguments]":"arguments","[object Date]":"date"};e.Library=n,n.prototype.of=i,n.prototype.define=function(e,t){return1===arguments.length?this.tests[e]:(this.tests[e]=t,this)},n.prototype.test=function(e,t){if(t===i(e))return!0;varn=this.tests[t];if(n&&"regexp"===i(n))returnn.test(e);if(n&&"function"===i(n))returnn(e);thrownewReferenceError('Type test "'+t+'" not defined or invalid.')}}),require.register("chaijs~deep-eql@0.1.3",function(e,t){functioni(e,t,i){return!!n(e,t)||("date"===p(e)?o(e,t):"regexp"===p(e)?s(e,t):d.isBuffer(e)?u(e,t):"arguments"===p(e)?a(e,t,i):!!r(e,t)&&("object"!==p(e)&&"object"!==p(t)&&"array"!==p(e)&&"array"!==p(t)?n(e,t):f(e,t,i)))}functionn(e,t){returne===t?0!==e||1/e===1/t:e!==e&&t!==t}functionr(e,t){returnp(e)===p(t)}functiono(e,t){return"date"===p(t)&&n(e.getTime(),t.getTime())}functions(e,t){return"regexp"===p(t)&&n(e.toString(),t.toString())}functiona(e,t,n){return"arguments"===p(t)&&(e=[].slice.call(e),t=[].slice.call(t),i(e,t,n))}functionc(e){vart=[];for(variine)t.push(i);returnt}functionh(e,t){if(e.length!==t.length)return!1;for(vari=0,n=!0;i<e.length;i++)if(e[i]!==t[i]){n=!1;break}return
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,l=Package.meteor.meteorEnv,o=Package["practicalmeteor:chai"].chai,n=Package["practicalmeteor:chai"].assert,i=Package["practicalmeteor:chai"].expect,r=Package["practicalmeteor:chai"].should,a=Package["ecmascript-runtime"].Symbol,c=Package["ecmascript-runtime"].Map,s=Package["ecmascript-runtime"].Set,u=Package["babel-runtime"].meteorBabelHelpers,g=Package.promise.Promise,f,p,h,v,d;(function(){(function(){f=function(e){functiont(e){returntypeofconsole!==s&&(void0!==console[e]?l(console,e):void0!==console.log?l(console,"log"):c)}functionl(e,t){varl=e[t];if("function"==typeofl.bind)returnl.bind(e,a.prefix);try{returnFunction.prototype.bind.call(l,e,a.prefix)}catch(t){returnfunction(){returnFunction.prototype.apply.apply(l,[e,arguments])}}}functiono(e,t){returnfunction(){typeofconsole!==s&&(n(t),a[e].apply(a,arguments))}}functionn(e){for(vart=0;t<u.length;t++){varl=u[t];a[l]=t<e?c:a.methodFactory(l,e)}}functioni(e){vart=(u[e]||"silent").toUpperCase();try{returnvoid(window.localStorage.loglevel=t)}catch(e){}try{window.document.cookie="loglevel="+t+";"}catch(e){}}functionr(){vare;try{e=window.localStorage.loglevel}catch(e){}if(typeofe===s)try{e=/loglevel=([^;]+)/.exec(window.document.cookie)[1]}catch(e){}void0===a.levels[e]&&(e="WARN"),a.setLevel(a.levels[e])}vara={};e&&e.prefix?a.prefix=e.prefix:a.prefix="",e&&e.level?a.level=e.level:a.level="info";varc=function(){},s="undefined",u=["trace","fine","debug","info","warn","error"];a.levels={TRACE:0,FINE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,SILENT:6},a.methodFactory=function(e,l){returnt(e)||o(e,l)},a.setLevel=function(e){if("string"==typeofe&&void0!==a.levels[e.toUpperCase()]&&(e=a.levels[e.toUpperCase()]),!("number"==typeofe&&e>=0&&e<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+e;if(a.level=e,n(e),typeofconsole===s&&e<a.levels.SILENT)return"No console available for logging"},a.enableAll=function(){a.setLevel(a.levels.TRACE)},a.disableAll=function(){a.setLevel(a.levels.SILENT)};varg=typeofwindow!==s?window.log:void0;returna.noConflict=function(){returntypeofwindow!==s&&window.log===a&&(window.log=g),a},a.setPrefix=function(e){typeofe!==s&&null!==e||(e=""),a.prefix=e,a.setLevel(a.level)},a.setLevel(a.level),a},p=f({prefix:"practicalmeteor:loglevel:"})}).call(this),function(){h="object"==typeofh?h:{};vart=h;null==this.practical&&(this.practical={}),practical.LoggerFactory=function(){functiont(){}varl;returnl=null,t.get=function(){returnnull!=l?l:l=newpractical.LoggerFactory},t.prototype._getSettingsLoglevel=function(e,t){varl,o;returnnull==e&&(e=""),null==t&&(t="info"),i(e).to.be.a("string"),i(t).to.be.a("string").that.has.length.above(0),l=this._getNamespaceLoglevel("global"),null!=l?l:(e.length>0&&(o=this._getNamespaceLoglevel(e)),null==o&&(o=this._getNamespaceLoglevel("default")),null!=o?o:o=t)},t.prototype._getNamespaceLoglevel=function(t){varl,o,n,r,a,c,s;returni(t).to.be.a("string").that.has.length.above(0),l=null!=(n=e.settings)&&null!=(r=n.public)&&null!=(a=r.loglevel)?a[t]:void0,e.isServer&&(o=null!=(c=e.settings)&&null!=(s=c.loglevel)?s[t]:void0,null!=o&&(l=o)),l},t.prototype.createLogger=function(e,t){varl;returnnull==e&&(e=""),null==t&&(t="info"),p.debug("LoggerFactory.createLogger()",arguments),i(e).to.be.a("string"),i(t).to.be.a("string").that.has.length.above(0),i(f).to.be.a("function"),l={},e.length>0&&(l.prefix=e+":"),l.level=this._getSettingsLoglevel(e,t),f(l)},t.prototype.createPackageLogger=function(e,t){returnnull==t&&(t="info"),this.createLogger(e,t)},t.prototype.createAppLogger=function(e,t){returnnull==e&&(e="app"),null==t&&(t="info"),this.createLogger(e,t)},t}(),v=practical.LoggerFactory.get()}.call(this),function(){h="object"==typeofh?h:{};vare=h,t=[].slice;d=function(){functione(e,t){returnthis.className=e,this.defaultLevel=null!=t?t:"info",this.log=v.createLogger(this.className,this.defaultLevel),this.callStack=[],this.log.enter=this.bindMethod(this.enter,"debug"),this.log.fineEnter=this.bindMethod(this.enter,"fine
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package.modules.Buffer,o=Package.modules.process,u=Package["ecmascript-runtime"].Symbol,a=Package["ecmascript-runtime"].Map,s=Package["ecmascript-runtime"].Set,c=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,l,d=r({node_modules:{meteor:{validatejs:{lib:{"validate.js":["babel-runtime/helpers/typeof",function(t,e,n){varr;n.import("babel-runtime/helpers/typeof",{default:function(t){r=t}}),function(t,e,n){"use strict";vari=functiont(e,n,r){r=o.extend({},o.options,r);vari=o.runValidations(e,n,r),u,a;for(uinc.sanitizeForInObject(i))for(ainc.sanitizeForInObject(i[u]))if(o.isPromise(i[u][a]))thrownewError("Use validate.async if you want support for promises");returnt.processValidationResults(i,r)},o=i;o.extend=function(t){return[].slice.call(arguments,1).forEach(function(e){for(varninc.sanitizeForInObject(e))t[n]=e[n]}),t},o.extend(i,{version:{major:0,minor:9,patch:0,metadata:"development",toString:function(){functiont(){vart=o.format("%{major}.%{minor}.%{patch}",o.version);returno.isEmpty(o.version.metadata)||(t+="+"+o.version.metadata),t}returnt}()},Promise:"undefined"!=typeoff?f:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(){functiont(t,e,n){varr=[],i,u,a,s,f,l,d;(o.isDomElement(t)||o.isJqueryElement(t))&&(t=o.collectFormValues(t));for(iinc.sanitizeForInObject(e)){a=o.getDeepObjectValue(t,i),s=o.result(e[i],a,t,i,n,e);for(uinc.sanitizeForInObject(s)){if(f=o.validators[u],!f)throwd=o.format("Unknown validator %{name}",{name:u}),newError(d);l=s[u],l=o.result(l,a,t,i,n,e),l&&r.push({attribute:i,value:a,validator:u,globalOptions:n,attributes:t,options:l,error:f.call(f,a,l,i,t,n)})}}returnr}returnt}(),processValidationResults:function(){functiont(t,e){varn;switch(t=o.pruneEmptyErrors(t,e),t=o.expandMultipleErrors(t,e),t=o.convertErrorMessages(t,e),e.format||"grouped"){case"detailed":break;case"flat":t=o.flattenErrorsToArray(t);break;case"grouped":t=o.groupErrorsByAttribute(t);for(ninc.sanitizeForInObject(t))t[n]=o.flattenErrorsToArray(t[n]);break;default:thrownewError(o.format("Unknown format %{format}",e))}returno.isEmpty(t)?void0:t}returnt}(),async:function(){functiont(t,e,n){n=o.extend({},o.async.options,n);varr=n.wrapErrors||function(t){returnt};n.cleanAttributes!==!1&&(t=o.cleanAttributes(t,e));vari=o.runValidations(t,e,n);returnnewo.Promise(function(u,a){o.waitForResults(i).then(function(){vars=o.processValidationResults(i,n);s?a(newr(s,n,t,e)):u(t)},function(t){a(t)})})}returnt}(),single:function(){functiont(t,e,n){returnn=o.extend({},o.single.options,n,{format:"flat",fullMessages:!1}),o({single:t},{single:e},n)}returnt}(),waitForResults:function(){functiont(t){returnt.reduce(function(t,e){returno.isPromise(e.error)?t.then(function(){returne.error.then(function(t){e.error=t||null},function(t){if(tinstanceofError)throwt;o.error("Rejecting promises with the result is deprecated. Please use the resolve callback instead."),e.error=t})}):t},newo.Promise(function(t){t()}))}returnt}(),result:function(){functiont(t){vare=[].slice.call(arguments,1);return"function"==typeoft&&(t=t.apply(null,e)),t}returnt}(),isNumber:function(){functiont(t){return"number"==typeoft&&!isNaN(t)}returnt}(),isFunction:function(){functiont(t){return"function"==typeoft}returnt}(),isInteger:function(){functiont(t){returno.isNumber(t)&&t%1===0}returnt}(),isObject:function(){functiont(t){returnt===Object(t)}returnt}(),isDate:function(){functiont(t){returntinstanceofDate}returnt}(),isDefined:function(){functiont(t){returnnull!==t&&void0!==t}returnt}(),isPromise:function(){functiont(t){return!!t&&o.isFunction(t.then)}returnt}(),isJqueryElement:function(){functiont(t){returnt&&o.isString(t.jquery)}returnt}(),isDomElement:function(){functiont(t){return!!t&&(!(!o.isFunction(t.querySelectorAll)||!o.isFunction(t.querySelector))&&(!(!o.isObject(document)||t!==document)||("object"===("undefined"==typeofHTMLElement?"undef
},zt=w(k,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Et),r.distbits=Et.bits,zt){t.msg="invalid distances set",r.mode=lt;break}if(r.mode=$,e===A)breakt;case$:r.mode=tt;casett:if(d>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=d,r.hold=u,r.bits=c,b(t,ut),o=t.next_out,a=t.output,l=t.avail_out,s=t.next_in,i=t.input,d=t.avail_in,u=r.hold,c=r.bits,r.mode===K&&(r.back=-1);break}for(r.back=0;mt=r.lencode[u&(1<<r.lenbits)-1],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}if(bt&&0===(240&bt)){for(vt=gt,yt=bt,kt=wt;mt=r.lencode[kt+((u&(1<<vt+yt)-1)>>vt)],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(vt+gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}u>>>=vt,c-=vt,r.back+=vt}if(u>>>=gt,c-=gt,r.back+=gt,r.length=wt,0===bt){r.mode=at;break}if(32&bt){r.back=-1,r.mode=K;break}if(64&bt){t.msg="invalid literal/length code",r.mode=lt;break}r.extra=15&bt,r.mode=et;caseet:if(r.extra){for(St=r.extra;c<St;){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=rt;casert:for(;mt=r.distcode[u&(1<<r.distbits)-1],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}if(0===(240&bt)){for(vt=gt,yt=bt,kt=wt;mt=r.distcode[kt+((u&(1<<vt+yt)-1)>>vt)],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(vt+gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}u>>>=vt,c-=vt,r.back+=vt}if(u>>>=gt,c-=gt,r.back+=gt,64&bt){t.msg="invalid distance code",r.mode=lt;break}r.offset=wt,r.extra=15&bt,r.mode=nt;casent:if(r.extra){for(St=r.extra;c<St;){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=lt;break}r.mode=it;caseit:if(0===l)breakt;if(ct=ut-l,r.offset>ct){if(ct=r.offset-ct,ct>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=lt;break}ct>r.wnext?(ct-=r.wnext,pt=r.wsize-ct):pt=r.wnext-ct,ct>r.length&&(ct=r.length),_t=r.window}else_t=a,pt=o-r.offset,ct=r.length;ct>l&&(ct=l),l-=ct,r.length-=ct;doa[o++]=_t[pt++];while(--ct);0===r.length&&(r.mode=tt);break;caseat:if(0===l)breakt;a[o++]=r.length,l--,r.mode=tt;break;casest:if(r.wrap){for(;c<32;){if(0===d)breakt;d--,u|=i[s++]<<c,c+=8}if(ut-=l,t.total_out+=ut,r.total+=ut,ut&&(t.adler=r.check=r.flags?g(r.check,a,ut,o-ut):m(r.check,a,ut,o-ut)),ut=l,(r.flags?u:n(u))!==r.check){t.msg="incorrect data check",r.mode=lt;break}u=0,c=0}r.mode=ot;caseot:if(r.wrap&&r.flags){for(;c<32;){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}if(u!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=lt;break}u=0,c=0}r.mode=dt;casedt:zt=S;breakt;caselt:zt=B;breakt;caseht:returnO;caseft:default:returnI}returnt.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=d,r.hold=u,r.bits=c,(r.wsize||ut!==t.avail_out&&r.mode<lt&&(r.mode<st||e!==x))&&f(t,t.output,t.next_out,ut-t.avail_out)?(r.mode=ht,O):(p-=t.avail_in,ut-=t.avail_out,t.total_in+=p,t.total_out+=ut,r.total+=ut,r.wrap&&ut&&(t.adler=r.check=r.flags?g(r.check,a,ut,t.next_out-ut):m(r.check,a,ut,t.next_out-ut)),t.data_type=r.bits+(r.last?64:0)+(r.mode===K?128:0)+(r.mode===$||r.mode===W?256:0),(0===p&&0===ut||e===x)&&zt===E&&(zt=R),zt)}functionc(t){if(!t||!t.state)returnI;vare=t.state;returne.window&&(e.window=null),t.state=null,E}functionp(t,e){varr;returnt&&t.state?(r=t.state,0===(2&r.wrap)?I:(r.head=e,e.done=!1,E)):I}var_=t("../utils/common"),m=t("./adler32"),g=t("./crc32"),b=t("./inffast"),w=t("./inftrees"),v=0,y=1,k=2,x=4,z=5,A=6,E=0,S=1,C=2,I=-2,B=-3,O=-4,R=-5,T=8,D=1,L=2,N=3,U=4,F=5,P=6,Z=7,M=8,j=9,H=10,X=11,K=12,V=13,Y=14,W=15,q=16,G=17,J=18,Q=19,$=20,tt=21,et=22,rt=23,nt=24,it=25,at=26,st=27,ot=28,dt=29,lt=30,ht=31,ft=32,ut=852,ct=592,pt=15,_t=pt,mt=!0,gt,bt;r.inflateReset=s,r.inflateReset2=o,r.inflateResetKeep=a,r.inflateInit=l,r.inflateInit2=d,r.inflate=u,r.inflateEnd=c,r.inflateGetHeader=p,r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(t,e,r){"use strict";varn=t("../utils/common"),i=15,
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,a=Package.blaze.Blaze,o=Package.blaze.UI,s=Package.blaze.Handlebars,i=Package.jquery.$,l=Package.jquery.jQuery,d=Package.underscore._,c=Package.tracker.Tracker,p=Package.tracker.Deps,u=Package.modules.meteorInstall,m=Package.modules.Buffer,f=Package.modules.process,h=Package["ecmascript-runtime"].Symbol,y=Package["ecmascript-runtime"].Map,b=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,v=Package.promise.Promise,g=Package.htmljs.HTML,_=Package.spacebars.Spacebars,j,P=u({node_modules:{meteor:{"aldeed:template-extension":{lib:{"hooks.js":function(){j={global:{created:[],rendered:[],destroyed:[]},master:{created:function(){functione(){j.runGlobal("created",this,arguments)}returne}(),rendered:function(){functione(){j.runGlobal("rendered",this,arguments)}returne}(),destroyed:function(){functione(){j.runGlobal("destroyed",this,arguments)}returne}()}},j.addGlobal=function(e){e._hasTemplateExtensionMasterHooks||(e.onCreated(j.master.created),e.onRendered(j.master.rendered),e.onDestroyed(j.master.destroyed),e._hasTemplateExtensionMasterHooks=!0)},j.runGlobal=function(e,t,n){for(varr=j.global[e],a=Array.isArray(r),o=0,r=a?r:r[h.iterator]();;){vars;if(a){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}vari=s;i.apply(t,n)}}},"template-for-each.js":function(){r.forEach=function(e){vart=!1;for(varnink.sanitizeForInObject(r))if(r.hasOwnProperty(n)){varo=r[n];if(a.isTemplate(o)){vars=o.viewName;"body"===s?t||(t=!0,e(o)):"Template.__dynamic"!==s&&"Template.__dynamicWithDataContext"!==s&&e(o)}}}},"template-hooks.js":["babel-runtime/helpers/typeof",function(e,t,n){vara;n.import("babel-runtime/helpers/typeof",{default:function(e){a=e}}),r.prototype.hooks=function(e){if(!e||"object"!==("undefined"==typeofe?"undefined":a(e)))thrownewError("hooks argument must be an object with created, rendered, and/or destroyed properties, each set to a function");"function"==typeofe.created&&this.onCreated(e.created),"function"==typeofe.rendered&&this.onRendered(e.rendered),"function"==typeofe.destroyed&&this.onDestroyed(e.destroyed)}}],"template-global-hooks.js":function(){e.startup(function(){r.forEach(function(e){j.addGlobal(e)})}),r.onCreated=function(e){j.global.created.push(e)},r.onRendered=function(e){j.global.rendered.push(e)},r.onDestroyed=function(e){j.global.destroyed.push(e)}},"template-for-each-instance.js":function(){r._renderedInstances=[],r.onRendered(function(){r._renderedInstances.push(this)}),r.onDestroyed(function(){vare=r._renderedInstances.indexOf(this);e>-1&&r._renderedInstances.splice(e,1)}),r.forEachCurrentlyRenderedInstance=function(e){r._renderedInstances.forEach(e)}},"template-inherits-events-from.js":function(){r.prototype.inheritsEventsFrom=function(){functione(e){functiont(e){"string"==typeofe&&(e=r[e]),e&&(n.__eventMaps=n.__eventMaps.concat(e.__eventMaps))}varn=this;n.__eventMaps=n.__eventMaps||[],d.isArray(e)?d.each(e,t):t(e)}returne}()},"template-inherits-helpers-from.js":function(){r.prototype.inheritsHelpersFrom=function(){functione(e){functiont(e){if("string"==typeofe&&(e=r[e]),e){vart={};d.each(e.__helpers,function(e,n){" "===n.charAt(0)&&(t[n.slice(1)]=e)}),n.helpers(t)}}varn=this;d.isArray(e)?d.each(e,t):t(e)}returne}()},"template-inherits-hooks-from.js":function(){r.prototype.inheritsHooksFrom=function(){functione(e){functiont(e){if("string"==typeofe&&(e=r[e]),e){j.addGlobal(e);for(vart=e._callbacks.created,a=Array.isArray(t),o=0,t=a?t:t[h.iterator]();;){vars;if(a){if(o>=t.length)break;s=t[o++]}else{if(o=t.next(),o.done)break;s=o.value}vari=s;i!==j.master.created&&n.onCreated(i)}for(varl=e._callbacks.rendered,d=Array.isArray(l),c=0,l=d?l:l[h.iterator]();;){varp;if(d){if(c>=l.length)break;p=l[c++]}else{if(c=l.next(),c.done)break;p=c.value}varu=p;u!==j.master.rendered&&n.onRendered(u)}for(varm=e._callbacks.destroyed,f=Array.isArray(m),y=0,m=f?m:m[h.iterator]();;){varb;if(f){if(y>=m.length
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,o=Package.jquery.$,n=Package.jquery.jQuery;(function(){if("undefined"==typeofn)thrownewError("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";vare=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>2)thrownewError("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(n),+function(t){"use strict";functione(){vart=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(variine)if(void0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){vari=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});varn=function(){i||t(o).trigger(t.support.transition.end)};returnsetTimeout(n,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))returne.handleObj.handler.apply(this,arguments)}})})}(n),+function(t){"use strict";functione(e){returnthis.each(function(){vari=t(this),n=i.data("bs.alert");n||i.data("bs.alert",n=newo(this)),"string"==typeofe&&n[e].call(i)})}vari='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.3.6",o.TRANSITION_DURATION=150,o.prototype.close=function(e){functioni(){a.detach().trigger("closed.bs.alert").remove()}varn=t(this),s=n.attr("data-target");s||(s=n.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));vara=t(s);e&&e.preventDefault(),a.length||(a=n.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(o.TRANSITION_DURATION):i())};varn=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){returnt.fn.alert=n,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(n),+function(t){"use strict";functione(e){returnthis.each(function(){varo=t(this),n=o.data("bs.button"),s="object"==typeofe&&e;n||o.data("bs.button",n=newi(this,s)),"toggle"==e?n.toggle():e&&n.setState(e)})}vari=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.3.6",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){vari="disabled",o=this.$element,n=o.is("input")?"val":"html",s=o.data();e+="Text",null==s.resetText&&o.data("resetText",o[n]()),setTimeout(t.proxy(function(){o[n](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){vart=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){vari=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}elsethis.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};varo=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){returnt.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){varo=t(i.target);o.hasClass("btn")||(o=o.closest(".btn")),e.call(o,"toggle"),t(i.target).is('input[type="radio"]')||t(i.target).is('input[type="checkbox"]')||i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(n),+function(t){"use strict";functione(e){returnthis.each(function(){varo=t(this),n=o.data("bs.car