ohif-viewer/StandaloneViewer/SampleClientOnlyBuild/00a3252f025c3b436cda09bf88f5ead9f975d4be.js

225 lines
2.5 MiB
JavaScript
Raw Normal View History

!function(){var t,e,n;(function(){t=this}).call(this),function(){e=__meteor_runtime_config__.meteorEnv,n={isProduction:"production"===e.NODE_ENV,isDevelopment:"production"!==e.NODE_ENV,isClient:!0,isServer:!1,isCordova:!1},"object"==typeof __meteor_runtime_config__&&__meteor_runtime_config__.PUBLIC_SETTINGS&&(n.settings={public:__meteor_runtime_config__.PUBLIC_SETTINGS})}.call(this),function(){function t(t){if(t)return n._debug("Exception in callback of async function",t.stack?t.stack:t)}if(n.isServer)var e=Npm.require("fibers/future");"object"==typeof __meteor_runtime_config__&&__meteor_runtime_config__.meteorRelease&&(n.release=__meteor_runtime_config__.meteorRelease),n._get=function(t){for(var e=1;e<arguments.length;e++){if(!(arguments[e]in t))return;t=t[arguments[e]]}return t},n._ensure=function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];n in t||(t[n]={}),t=t[n]}return t},n._delete=function(t){for(var e=[t],n=!0,r=1;r<arguments.length-1;r++){if(!((o=arguments[r])in t)){n=!1;break}if("object"!=typeof(t=t[o]))break;e.push(t)}for(var r=e.length-1;r>=0;r--){var o=arguments[r+1];if(n)n=!1;else for(var i in e[r][o])return;delete e[r][o]}},n.wrapAsync=function(r,o){return function(){for(var i=o||this,a=Array.prototype.slice.call(arguments),s,u=a.length-1;u>=0;--u){var c=a[u],l=typeof c;if("undefined"!==l){"function"===l&&(s=c);break}}if(!s){if(n.isClient)s=t;else{var f=new e;s=f.resolver()}++u}a[u]=n.bindEnvironment(s);var p=r.apply(i,a);return f?f.wait():p}};var r=Object.prototype.hasOwnProperty;n._inherits=function(t,e){for(var n in e)r.call(e,n)&&(t[n]=e[n]);var o=function(){this.constructor=t};return o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype,t};var o=!1;n._wrapAsync=function(t,e){return o||(n._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync"),o=!0),n.wrapAsync.apply(n,arguments)}}.call(this),function(){"use strict";function t(){if(o.setImmediate){var t=function(t){o.setImmediate(t)};return t.implementation="setImmediate",t}return null}function e(){function t(t,e){return"string"==typeof t&&t.substring(0,e.length)===e}function e(e){if(e.source===o&&t(e.data,s)){var n=e.data.substring(s.length);try{a[n]&&a[n]()}finally{delete a[n]}}}if(!o.postMessage||o.importScripts)return null;var n=!0,r=o.onmessage;if(o.onmessage=function(){n=!1},o.postMessage("","*"),o.onmessage=r,!n)return null;var i=0,a={},s="Meteor._setImmediate."+Math.random()+".";o.addEventListener?o.addEventListener("message",e,!1):o.attachEvent("onmessage",e);var u=function(t){a[++i]=t,o.postMessage(s+i,"*")};return u.implementation="postMessage",u}function r(){var t=function(t){o.setTimeout(t,0)};return t.implementation="setTimeout",t}var o=this;n._setImmediate=t()||e()||r()}.call(this),function(){function t(t){if(Package.ddp){var e=Package.ddp.DDP,n=e._CurrentMethodInvocation||e._CurrentInvocation,r=n.get();if(r&&r.isSimulation)throw new Error("Can't set timers inside simulations");return function(){n.withValue(null,t)}}return t}function e(e,r){return n.bindEnvironment(t(r),e)}n.setTimeout=function(t,n){return setTimeout(e("setTimeout callback",t),n)},n.setInterval=function(t,n){return setInterval(e("setInterval callback",t),n)},n.clearInterval=function(t){return clearInterval(t)},n.clearTimeout=function(t){return clearTimeout(t)},n.defer=function(t){n._setImmediate(e("defer callback",t))}}.call(this),function(){n.makeErrorType=function(t,e){var r=function(){Error.captureStackTrace?Error.captureStackTrace(this,r):this.stack=(new Error).stack,e.apply(this,arguments),this.errorType=t};return n._inherits(r,Error),r},n.Error=n.makeErrorType("Meteor.Error",function(t,e,n){var r=this;r.isClientSafe=!0,r.error=t,r.reason=e,r.details=n,r.reason?r.message=r.reason+" ["+r.error+"]":r.message="["+r.error+"]"}),n.Error.prototype.clone=function(){var t=this;return new n.Error(t.error,t.reason,t.details)}}.call(this),function(){n._noYieldsAllowed=function(t){return t()},n._SynchronousQueue=function(){var t=this;t._tasks=[],t._running=!1,t._runTimeout=null};var t=n._SynchronousQueue.prototype;t.runTask=function(t){var e=t
"undefined"==typeof Package&&(Package={}),Package["meteor-base"]={};
"undefined"==typeof Package&&(Package={}),Package["mobile-experience"]={};
"undefined"==typeof Package&&(Package={}),Package["babel-compiler"]={};
"undefined"==typeof Package&&(Package={}),Package.ecmascript={};
!function(){var n,t;(function(){n={}}).call(this),function(){(function(){var t=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){return n instanceof A?n:this instanceof A?void(this._wrapped=n):new A(n)};void 0!==n?("undefined"!=typeof module&&module.exports&&(n=module.exports=A),n._=A):t._=A,A.VERSION="1.5.2";var k=function(n){return"[object Arguments]"===f.call(n)};k(arguments)||(k=function(n){return!(!n||!s.call(n,"callee")||"function"!=typeof n.callee)});var O=function(n){return n.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);else if(O(n)){for(var i=0,u=n.length;i<u;i++)if(t.call(r,n[i],i,n)===e)return}else for(var a=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){var e=[];return null==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)};var F="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(n,t,r,e){var i=arguments.length>2;if(null==n&&(n=[]),v&&n.reduce===v)return e&&(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)throw new TypeError(F);return r},A.reduceRight=A.foldr=function(n,t,r,e){var i=arguments.length>2;if(null==n&&(n=[]),y&&n.reduceRight===y)return e&&(t=A.bind(t,e)),i?n.reduceRight(t,r):n.reduceRight(t);var u=n.length;if(!O(n)){var a=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)throw new TypeError(F);return r},A.find=A.detect=function(n,t,r){var e;return M(n,function(n,i,u){if(t.call(r,n,i,u))return e=n,!0}),e},A.filter=A.select=function(n,t,r){var e=[];return null==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){return A.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);var i=!0;return null==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)))return e}),!!i)};var M=A.some=A.any=function(n,t,r){t||(t=A.identity);var i=!1;return null==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)))return e}),!!i)};A.contains=A.include=function(n,t){return null!=n&&(b&&n.indexOf===b?-1!=n.indexOf(t):M(n,function(n){return n===t}))},A.invoke=function(n,t){var r=o.call(arguments,2),e=A.isFunction(t);return A.map(n,function(n){return(e?t:n[t]).apply(n,r)})},A.pluck=function(n,t){return A.map(n,function(n){return n[t]})},A.where=function(n,t,r){return A.isEmpty(t)?r?void 0:[]:A[r?"find":"filter"](n,function(n){for(var r in t)if(t[r]!==n[r])return!1;return!0})},A.findWhere=function(n,t){return A.where(n,t,!0)},A.max=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.max.apply(Math,n);if(!t&&A.isEmpty(n))return-1/0;var e={computed:-1/0,value:-1/0};return E(n,function(n,i,u){var a=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)return Math.min.apply(Math,n);if(!t&&A.isEmpty(n))return 1/0;var e={computed:1/0,value:1/0};return E(n,function(n,i,u){var a=t?t.call(r,n,i,u):n;a<e.computed&&(e={value:n,computed:a})}),e.value},A.shuffle=function(n){var t,r=0,e=[];return E(n,function(n){t=A.random(r++),e[r-1]=e[t],e[t]=n}),e},A.sample=function(n,t,r){return arguments.length<2||r?n[A.random(n.length-1)]:A.shuffle(n).slice(0,Math.max(0,t))};var R=function(n){return A.isFunction(n)?n:function(t){return t[n]}};A.sortBy=function(n,t,r){var e=R(t);return A.pluck(A.map(n,function(n,t,i){return{value:n,index:t,criteria:e.call(r,n,t,i)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")};var S=function(n){return
!function(){var r=Package.meteor.Meteor,n=Package.meteor.global,e=Package.meteor.meteorEnv,a;(function(){for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={},e=0;e<r.length;e++)n[r.charAt(e)]=e;(a={}).encode=function(r){if("string"==typeof r){var n=r;r=a.newBinary(n.length);for(var e=0;e<n.length;e++){var l=n.charCodeAt(e);if(l>255)throw new Error("Not ascii. Base64.encode can only take ascii strings.");r[e]=l}}for(var u=[],i=null,o=null,c=null,f=null,e=0;e<r.length;e++)switch(e%3){case 0:i=r[e]>>2&63,o=(3&r[e])<<4;break;case 1:o|=r[e]>>4&15,c=(15&r[e])<<2;break;case 2:c|=r[e]>>6&3,f=63&r[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;break}return null!=i&&(u.push(t(i)),u.push(t(o)),null==c?u.push("="):u.push(t(c)),null==f&&u.push("=")),u.join("")};var t=function(n){return r.charAt(n)},l=function(r){return"="===r?-1:n[r]};a.newBinary=function(r){if("undefined"==typeof Uint8Array||"undefined"==typeof ArrayBuffer){for(var n=[],e=0;e<r;e++)n.push(0);return n.$Uint8ArrayPolyfill=!0,n}return new Uint8Array(new ArrayBuffer(r))},a.decode=function(r){var n=Math.floor(3*r.length/4);"="==r.charAt(r.length-1)&&(n--,"="==r.charAt(r.length-2)&&n--);for(var e=a.newBinary(n),t=null,u=null,i=null,o=0,c=0;c<r.length;c++){var f=r.charAt(c),s=l(f);switch(c%4){case 0:if(s<0)throw new Error("invalid base64 string");t=s<<2;break;case 1:if(s<0)throw new Error("invalid base64 string");t|=s>>4,e[o++]=t,u=(15&s)<<4;break;case 2:s>=0&&(u|=s>>2,e[o++]=u,i=(3&s)<<6);break;case 3:s>=0&&(e[o++]=i|s);break}}return e}}).call(this),"undefined"==typeof Package&&(Package={}),function(r,n){for(var e in n)e in r||(r[e]=n[e])}(Package.base64={},{Base64:a})}();
!function(){var n=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,t,o,i;t=function(n){"use strict";function e(n,e){return o(n)&&(p(A,n,e),i(k)&&k(B)),B}function r(n){this.id=n,this.children=[],this.childrenById={}}function t(n,e){return O.call(n,e)&&n[e]}function o(n){return"object"==typeof n&&null!==n}function i(n){return"function"==typeof n}function u(n){return"string"==typeof n}function c(n){return new Error("Cannot find module '"+n+"'")}function s(n){function e(e){var r=w(n,e);if(r)return l(r,n.module);var t=c(e);if(i(E))return E(e,n.module.id,t);throw t}return i(x)&&(e=x(e,n.module)),e.extensions=h(n).slice(0),e.resolve=function(e){var r=w(n,e);if(r)return r.module.id;var t=c(e);if(E&&i(E.resolve))return E.resolve(e,n.module.id,t);throw t},e}function f(n,e){var t=this;t.parent=e=e||null,t.module=new r(n),q[n]=t,t.contents=null,t.deps={}}function l(n,e){var r=n.module;if(!O.call(r,"exports")){var t=n.contents;if(!t){if(n.stub)return n.stub;throw c(r.id)}if(e){r.parent=e;var o=e.children;Array.isArray(o)&&o.push(r)}i(r.useNode)&&r.useNode()||t(r.require=r.require||s(n),r.exports=n.stub||{},r,n.module.id,n.parent.module.id),r.loaded=!0}var u=r.runSetters||r.runModuleSetters;return i(u)&&u.call(r),r.exports}function a(n){return n&&o(n.contents)}function d(n){return n&&null===n.contents}function p(n,e,r){Array.isArray(e)?(e.forEach(function(r){u(r)?n.deps[r]=n.module.id:i(r)?e=r:o(r)&&(n.stub=n.stub||{},v(r,function(e,r){n.stub[r]=e}))}),i(e)||(e=null)):i(e)||u(e)||o(e)||(e=null),e&&(n.contents=n.contents||(o(e)?{}:e),o(e)&&a(n)&&v(e,function(e,o){if(".."===o)i=n.parent;else{var i=t(n.contents,o);i||((i=n.contents[o]=new f(n.module.id.replace(/\/*$/,"/")+o,n)).options=r)}p(i,e,r)}))}function v(n,e,r){Object.keys(n).forEach(function(r){e.call(this,n[r],r)},r)}function h(n){return n.options&&n.options.extensions||P}function m(n,e,r){for(;n&&!a(n);)n=n.parent;if(!n||!e||"."===e)return n;if(".."===e)return n.parent;var o=t(n.contents,e);if(r&&(!o||a(o)))for(var i=0;i<r.length;++i){var u=t(n.contents,e+r[i]);if(u&&!a(u))return u}return o}function y(n,e,r){var t=e.split("/");return t.every(function(e,o){return n=o<t.length-1?m(n,e):m(n,e,r)}),n}function b(n,e){var r=e&&e.module;n&&r&&(n.childrenById[r.id]=r)}function w(n,e,r,t){var r=r||n.module,o=h(n);for(n="/"===e.charAt(0)?y(A,e,o):"."===e.charAt(0)?y(n,e,o):g(n,e,o);a(n);){if((t=t||[]).indexOf(n)<0){t.push(n);var i=m(n,"package.json"),c,s=i&&l(i,r);if(s&&I.some(function(n){return u(c=s[n])})&&(b(r,i),n=y(n,c,o)||w(n,c,r,t)))continue}n=m(n,"index.js")}return n&&u(n.contents)&&(n=w(n,n.contents,r,t)),b(r,n),n}function g(n,e,r){if(i(j)&&(e=j(e,n.module.id)),u(e)){for(var t;n&&!t;n=n.parent)t=a(n)&&y(n,"node_modules/"+e,r);return t}}var P=(n=n||{}).extensions||[".js",".json"],k=n.onInstall,x=n.wrapRequire,j=n.override,E=n.fallback,I=n.mainFields||(n.browser?["browser","main"]:["main"]),O={}.hasOwnProperty,q={},A=new f("/",new f("/..")),B=s(A);e.fetch=function(n){throw new Error("fetch not implemented")},r.prototype.resolve=function(n){return this.require.resolve(n)};var M,R;return r.prototype.prefetch=function(n){function r(n){var e=t(q,n.id);d(e)&&!e.pending&&(e.pending=!0,(u=u||{})[n.id]={module:e.module,deps:Object.keys(e.deps),options:e.options,stub:e.stub},v(e.deps,function(n,r){w(e,r)}),v(n.childrenById,r))}var o=this,i=t(q,o.id),u;M=M||Promise.resolve();var c=R=R||M;return R=M.then(function(){var t=o.resolve(n);return v(o.childrenById,r),Promise.resolve(u&&e.fetch(u)).then(function(n){function r(){return n&&e(n),t}return c.then(r,r)})})},e.Module=r,e},"object"==typeof exports&&(exports.makeInstaller=t),function(){o={},"function"==typeof Profile&&process.env.METEOR_PROFILE&&(o.wrapRequire=function(n){return Profile(function(n){return"require("+JSON.stringify(n)+")"},n)})}.call(this),function(){o.browser=!0,i=t(o)}.call(this),"undefined"==typeof Package&&(Package={}),function(n,e){for(var r in e)r in n||(n[r]=e[r])}(Package["modules-runtime"]={},{meteorInstall:i})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["modules-runtime"].meteorInstall,o=r({node_modules:{meteor:{modules:{"client.js":function(e,t){e("./install-packages.js"),e("./stubs.js"),e("./process.js"),e("./reify.js"),t.addStyles=e("./css").addStyles},"css.js":function(e,t){var n=document,r=n.getElementsByTagName("head").item(0);t.addStyles=function(e){var t=n.createElement("style");t.setAttribute("type","text/css");var o=t.sheet||t.styleSheet;return o?o.cssText=e:t.appendChild(n.createTextNode(e)),r.appendChild(t)}},"install-packages.js":function(e,t,n){function o(e,t){var n={};n[e+".js"]="string"==typeof t?t:function(t,n,r){r.exports=Package[e]},r({node_modules:{meteor:n}})}o("meteor"),o("meteor-base"),o("mobile-experience"),o("babel-compiler"),o("ecmascript"),o("underscore"),o("base64"),o("modules-runtime"),o("modules","meteor/modules/client.js"),o("ecmascript-runtime"),o("es5-shim","meteor/es5-shim/client.js"),o("promise","meteor/promise/client.js"),o("babel-runtime","meteor/babel-runtime/babel-runtime.js"),o("ecmascript-runtime-client","meteor/ecmascript-runtime-client/runtime.js"),o("ejson","meteor/ejson/ejson.js"),o("diff-sequence"),o("geojson-utils","meteor/geojson-utils/main.js"),o("id-map"),o("random"),o("mongo-id"),o("ordered-dict"),o("tracker"),o("minimongo","meteor/minimongo/minimongo_client.js"),o("check","meteor/check/match.js"),o("retry"),o("callback-hook"),o("ddp-common"),o("reload"),o("ddp-client","meteor/ddp-client/namespace.js"),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("ohif:polyfill"),o("standard-app-packages"),o("stylus"),o("observe-sequence"),o("deps"),o("htmljs"),o("blaze"),o("spacebars"),o("templating-compiler"),o("templating-runtime"),o("templating"),o("ui"),o("iron:core"),o("iron:dynamic-template"),o("iron:layout"),o("iron:url"),o("iron:middleware-stack"),o("iron:location"),o("reactive-dict"),o("iron:controller"),o("iron:router"),o("natestrauser:select2"),o("aldeed:simple-schema"),o("autoupdate"),o("meteor-platform"),o("webapp","meteor/webapp/webapp_client.js"),o("logging"),o("session"),o("livedata"),o("launch-screen"),o("ohif:core","meteor/ohif:core/main.js"),o("ohif:header","meteor/ohif:header/main.js"),o("ohif:themes-common"),o("ohif:themes"),o("ohif:design"),o("ohif:cornerstone","meteor/ohif:cornerstone/main.js"),o("url"),o("http"),o("momentjs:moment"),o("validatejs"),o("amplify"),o("ddp-rate-limiter"),o("localstorage"),o("accounts-base","meteor/accounts-base/client_main.js"),o("u2622:persistent-session"),o("ohif:log"),o("ohif:commands","meteor/ohif:commands/main.js"),o("ohif:hotkeys","meteor/ohif:hotkeys/main.js"),o("ohif:viewerbase","meteor/ohif:viewerbase/main.js"),o("ohif:metadata","meteor/ohif:metadata/main.js"),o("silentcicero:jszip"),o("raix:eventemitter"),o("aldeed:collection2-core"),o("aldeed:schema-index"),o("aldeed:schema-deny"),o("aldeed:collection2"),o("twbs:bootstrap"),o("dangrossman:bootstrap-daterangepicker"),o("ohif:servers"),o("ohif:dicom-services"),o("ohif:wadoproxy"),o("ohif:studies"),o("ohif:study-list"),o("ohif:hanging-protocols"),o("aldeed:template-extension"),o("fortawesome:fontawesome"),o("mrt:moment"),o("dynamic-import","meteor/dynamic-import/client.js"),o("hot-code-push"),o("mdg:validation-error"),o("service-configuration")},"process.js":function(o,i,a){if(!t.process)try{t.process=o("process")}catch(e){t.process={}}var s=t.process;e.isServer?r({node_modules:{"process.js":function(e,t,n){n.exports=s}}}):(s.platform="browser",s.nextTick=s.nextTick||e._setImmediate),"object"!=typeof s.env&&(s.env={});var u=Object.prototype.hasOwnProperty;for(var c in n)u.call(n,c)&&(s.env[c]=n[c])},"reify.js":function(e,t,n){var r=n.constructor.prototype;e("reify/lib/runtime").enable(r),r.importSync=r.importSync||r.import,r.import=r.import||r.importSync},"stubs.js":function(e){var t=!1;try{e.resolve("meteor-node-stubs"),t=!0}catch(e){}t&&e("meteor-node-stubs")},node_m
"undefined"==typeof Package&&(Package={}),Package["ecmascript-runtime"]={};
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n,o,i,a,c=(0,Package.modules.meteorInstall)({node_modules:{meteor:{"es5-shim":{"client.js":function(t){t("./import_globals.js"),t("es5-shim/es5-shim.js"),t("es5-shim/es5-sham.js"),t("./console.js"),t("./export_globals.js")},"console.js":function(){function t(t){var e=console[t];e&&"object"==typeof e&&(console[t]=function(){return Function.prototype.apply.call(e,console,arguments)})}var e=Object.prototype.hasOwnProperty;if("object"==typeof console&&"object"==typeof console.log)for(var r in console)e.call(console,r)&&t(r)},"export_globals.js":function(){e.Date!==n&&(e.Date=n),e.parseInt!==o&&(e.parseInt=o),e.parseFloat!==i&&(e.parseFloat=i);var t=String.prototype;t.replace!==a&&(t.replace=a)},"import_globals.js":function(){n=e.Date,o=e.parseInt,i=e.parseFloat,a=String.prototype.replace},node_modules:{"es5-shim":{"es5-shim.js":function(t,e,r){!function(t,n){"use strict";"function"==typeof define&&define.amd?define(n):"object"==typeof e?r.exports=n():t.returnExports=n()}(this,function(){var t=Array,e=t.prototype,r=Object,a=r.prototype,c=Function,u=c.prototype,l=String,s=l.prototype,f=Number,p=f.prototype,h=e.slice,y=e.splice,d=e.push,b=e.unshift,v=e.concat,g=e.join,w=u.call,j=u.apply,O=Math.max,m=Math.min,T=a.toString,E="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,x,S=Function.prototype.toString,_=/^\s*class /,P=function t(e){try{var r=S.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return _.test(r)}catch(t){return!1}},M=function t(e){try{return!P(e)&&(S.call(e),!0)}catch(t){return!1}},I="[object Function]",D="[object GeneratorFunction]",x=function t(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(E)return M(e);if(P(e))return!1;var r=T.call(e);return r===I||r===D},k,F=RegExp.prototype.exec,U=function t(e){try{return F.call(e),!0}catch(t){return!1}},N="[object RegExp]";k=function t(e){return"object"==typeof e&&(E?U(e):T.call(e)===N)};var C,A=String.prototype.valueOf,R=function t(e){try{return A.call(e),!0}catch(t){return!1}},$="[object String]";C=function t(e){return"string"==typeof e||"object"==typeof e&&(E?R(e):T.call(e)===$)};var z=r.defineProperty&&function(){try{var t={};r.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(t){return!1}}(),J=function(t){var e;return e=z?function(t,e,n,o){!o&&e in t||r.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(t,e,r,n){!n&&e in t||(t[e]=r)},function r(n,o,i){for(var a in o)t.call(o,a)&&e(n,a,o[a],i)}}(a.hasOwnProperty),G=function t(e){var r=typeof e;return null===e||"object"!==r&&"function"!==r},Z=f.isNaN||function t(e){return e!==e},Y={ToInteger:function t(e){var r=+e;return Z(r)?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r))),r},ToPrimitive:function t(e){var r,n,o;if(G(e))return e;if(n=e.valueOf,x(n)&&(r=n.call(e),G(r)))return r;if(o=e.toString,x(o)&&(r=o.call(e),G(r)))return r;throw new TypeError},ToObject:function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return r(t)},ToUint32:function t(e){return e>>>0}},W=function t(){};J(u,{bind:function t(e){var n=this;if(!x(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o=h.call(arguments,1),i,a=function(){if(this instanceof i){var t=j.call(n,this,v.call(o,h.call(arguments)));return r(t)===t?t:this}return j.call(n,e,v.call(o,h.call(arguments)))},u=O(0,n.length-o.length),l=[],s=0;s<u;s++)d.call(l,"$"+s);return i=c("binder","return function ("+g.call(l,",")+"){ return binder.apply(this, arguments); }")(a),n.prototype&&(W.prototype=n.prototype,i.prototype=new W,W.prototype=null),i}});var X=w.bind(a.hasOwnProperty),B=w.bind(a.toString),H=w.bind(h),L=j.bind(h),q=w.bind(s.slice),K=w.bind(s.split),Q=w.bind(s.indexOf),V=w.bind(d),tt=w.bind(a.propertyIsEnumerable),et=w.bind(e.sort),rt=t.isArray||function t(e){return"[object Array]"===B(e)},nt=1!==[].unshift(0);J(e,{unshift:function(){return b.apply(this,ar
!function(){var n=Package.meteor.Meteor,t=Package.meteor.global,e=Package.meteor.meteorEnv,o,r=(0,Package.modules.meteorInstall)({node_modules:{meteor:{promise:{"client.js":function(n,t){n("meteor-promise").makeCompatible(t.Promise=n("./common.js").Promise)},"common.js":function(t,e){var o=this;"function"==typeof o.Promise?e.Promise=o.Promise:e.Promise=t("promise/lib/es6-extensions"),e.Promise.prototype.done=function(t,e){var o=this;arguments.length>0&&(o=this.then.apply(this,arguments)),o.then(null,function(t){n._setImmediate(function(){throw t})})}},node_modules:{"meteor-promise":{"package.json":function(n,t){t.name="meteor-promise",t.version="0.8.5",t.browser="promise_client.js",t.main="promise_server.js"},"promise_client.js":function(t,e){function o(n){throw n}e.makeCompatible=function(t){var e=t.prototype.then;t.prototype.then=function(t,r){return"object"==typeof n&&"function"==typeof n.bindEnvironment?e.call(this,t&&n.bindEnvironment(t,o),r&&n.bindEnvironment(r,o)):e.call(this,t,r)}}}},promise:{lib:{"es6-extensions.js":function(n,t,e){"use strict";function o(n){var t=new r(r._44);return t._83=1,t._18=n,t}var r=n("./core.js");e.exports=r;var i=o(!0),u=o(!1),c=o(null),f=o(void 0),s=o(0),a=o("");r.resolve=function(n){if(n instanceof r)return n;if(null===n)return c;if(void 0===n)return f;if(!0===n)return i;if(!1===n)return u;if(0===n)return s;if(""===n)return a;if("object"==typeof n||"function"==typeof n)try{var t=n.then;if("function"==typeof t)return new r(t.bind(n))}catch(n){return new r(function(t,e){e(n)})}return o(n)},r.all=function(n){var t=Array.prototype.slice.call(n);return new r(function(n,e){function o(u,c){if(c&&("object"==typeof c||"function"==typeof c)){if(c instanceof r&&c.then===r.prototype.then){for(;3===c._83;)c=c._18;return 1===c._83?o(u,c._18):(2===c._83&&e(c._18),void c.then(function(n){o(u,n)},e))}var f=c.then;if("function"==typeof f)return void new r(f.bind(c)).then(function(n){o(u,n)},e)}t[u]=c,0==--i&&n(t)}if(0===t.length)return n([]);for(var i=t.length,u=0;u<t.length;u++)o(u,t[u])})},r.reject=function(n){return new r(function(t,e){e(n)})},r.race=function(n){return new r(function(t,e){n.forEach(function(n){r.resolve(n).then(t,e)})})},r.prototype.catch=function(n){return this.then(null,n)}},"core.js":function(n,t,e){"use strict";function o(){}function r(n){try{return n.then}catch(n){return d=n,y}}function i(n,t){try{return n(t)}catch(n){return d=n,y}}function u(n,t,e){try{n(t,e)}catch(n){return d=n,y}}function c(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,n!==o&&_(n,this)}function f(n,t,e){return new n.constructor(function(r,i){var u=new c(o);u.then(r,i),s(n,new h(t,e,u))})}function s(n,t){for(;3===n._83;)n=n._18;if(c._47&&c._47(n),0===n._83)return 0===n._75?(n._75=1,void(n._38=t)):1===n._75?(n._75=2,void(n._38=[n._38,t])):void n._38.push(t);a(n,t)}function a(n,t){v(function(){var e=1===n._83?t.onFulfilled:t.onRejected;if(null!==e){var o=i(e,n._18);o===y?p(t.promise,d):l(t.promise,o)}else 1===n._83?l(t.promise,n._18):p(t.promise,n._18)})}function l(n,t){if(t===n)return p(n,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var e=r(t);if(e===y)return p(n,d);if(e===n.then&&t instanceof c)return n._83=3,n._18=t,void m(n);if("function"==typeof e)return void _(e.bind(t),n)}n._83=1,n._18=t,m(n)}function p(n,t){n._83=2,n._18=t,c._71&&c._71(n,t),m(n)}function m(n){if(1===n._75&&(s(n,n._38),n._38=null),2===n._75){for(var t=0;t<n._38.length;t++)s(n,n._38[t]);n._38=null}}function h(n,t,e){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=e}function _(n,t){var e=!1,o=u(n,function(n){e||(e=!0,l(t,n))},function(n){e||(e=!0,p(t,n))});e||o!==y||(e=!0,p(t,d))}var v=n("asap/raw"),d=null,y={};e.exports=c,c._47=null,c._71=null,c._44=o,c.prototype.then=function(n,t){if(this.constructor!==c)return f(this,n,t);var e=new c
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,o=Package.promise.Promise,a,i=t({node_modules:{meteor:{"babel-runtime":{"babel-runtime.js":function(e,n){n.meteorBabelHelpers=e("meteor-babel-helpers"),n.checkHelper=function e(n){return!1};try{var r=e("babel-runtime/regenerator")}catch(e){throw new Error(["The babel-runtime npm package could not be found in your node_modules ","directory. Please run the following command to install it:",""," meteor npm install --save babel-runtime",""].join("\n"))}if(r&&"function"==typeof o&&"function"==typeof o.asyncApply){var t=r.async;r.async=function(){return o.asyncApply(t,r,arguments)}}},node_modules:{"meteor-babel-helpers":{"package.json":function(e,n){n.name="meteor-babel-helpers",n.version="0.0.3",n.main="index.js"},"index.js":function(e,n,r){function t(){var e={},n="t";try{Object.defineProperty(e,"t",{enumerable:!1,value:e});for(var r in e)if("t"===r)return!1}catch(e){return!1}return e.t===e}function o(e){return e}function i(e){if(Array.isArray(e)){for(var n={},r=Object.keys(e),t=r.length,o=0;o<t;++o){var a=r[o];n[a]=e[a]}return n}return e}a=r.exports={sanitizeForInObject:t()?o:i,_sanitizeForInObjectHard:i}}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/babel-runtime/babel-runtime.js");"undefined"==typeof Package&&(Package={}),function(e,n){for(var r in n)r in e||(e[r]=n[r])}(Package["babel-runtime"]=i,{meteorBabelHelpers:a})}();
!function(){var e=Package.meteor.Meteor,s=Package.meteor.global,o=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,n=Package.promise.Promise,c,t,m,a=r({node_modules:{meteor:{"ecmascript-runtime-client":{"runtime.js":function(e,s,o){try{e("core-js/modules/es6.symbol"),e("core-js/modules/es6.map"),e("core-js/modules/es6.set");var r=function(){try{return e("core-js/modules/_core")}catch(s){return e("core-js/modules/$.core")}}()}catch(e){throw new Error(["The core-js npm package could not be found in your node_modules ","directory. Please run the following command to install it:",""," meteor npm install --save core-js",""].join("\n"))}c=s.Symbol=r.Symbol,t=s.Map=r.Map,m=s.Set=r.Set,e("core-js/es6/array"),e("core-js/es6/function"),e("core-js/es6/math"),e("core-js/es6/object"),e("core-js/es6/regexp"),e("core-js/es6/string"),e("core-js/es6/weak-map"),e("core-js/es6/weak-set"),e("core-js/es7/array"),e("core-js/es7/object"),e("core-js/modules/es6.number.epsilon"),e("core-js/modules/es6.number.is-finite"),e("core-js/modules/es6.number.is-integer"),e("core-js/modules/es6.number.is-nan"),e("core-js/modules/es6.number.is-safe-integer"),e("core-js/modules/es6.number.max-safe-integer"),e("core-js/modules/es6.number.min-safe-integer"),e("core-js/modules/es6.number.parse-float"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.typed.uint32-array")}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ecmascript-runtime-client/runtime.js");"undefined"==typeof Package&&(Package={}),function(e,s){for(var o in s)o in e||(e[o]=s[o])}(Package["ecmascript-runtime-client"]=a,{Symbol:c,Map:t,Set:m})}();
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.base64.Base64,u=Package.modules.meteorInstall,a=Package["babel-runtime"].meteorBabelHelpers,i=Package.promise.Promise,o=Package["ecmascript-runtime-client"].Symbol,f=Package["ecmascript-runtime-client"].Map,c=Package["ecmascript-runtime-client"].Set,l,s,d=u({node_modules:{meteor:{ejson:{"ejson.js":function(n,t,u){function a(e){return e&&e.__esModule?e:{default:e}}var i=a(n("babel-runtime/helpers/typeof"));u.export({EJSON:function(){return o}});var o={},f={},c=function(e,n){return{}.hasOwnProperty.call(e,n)},l=function(e){return null!=e&&c(e,"callee")},s=function(e){return Number.isNaN(e)||e===1/0||e===-1/0};o.addType=function(e,n){if(c(f,e))throw new Error("Type "+e+" already present");f[e]=n};var d=[{matchJSONValue:function(e){return c(e,"$date")&&1===Object.keys(e).length},matchObject:function(e){return e instanceof Date},toJSONValue:function(e){return{$date:e.getTime()}},fromJSONValue:function(e){return new Date(e.$date)}},{matchJSONValue:function(e){return c(e,"$regexp")&&c(e,"$flags")&&2===Object.keys(e).length},matchObject:function(e){return e instanceof RegExp},toJSONValue:function(e){return{$regexp:e.source,$flags:e.flags}},fromJSONValue:function(e){return new RegExp(e.$regexp,e.$flags.slice(0,50).replace(/[^gimuy]/g,"").replace(/(.)(?=.*\1)/g,""))}},{matchJSONValue:function(e){return c(e,"$InfNaN")&&1===Object.keys(e).length},matchObject:s,toJSONValue:function(e){var n=void 0;return n=Number.isNaN(e)?0:e===1/0?1:-1,{$InfNaN:n}},fromJSONValue:function(e){return e.$InfNaN/0}},{matchJSONValue:function(e){return c(e,"$binary")&&1===Object.keys(e).length},matchObject:function(e){return"undefined"!=typeof Uint8Array&&e instanceof Uint8Array||e&&c(e,"$Uint8ArrayPolyfill")},toJSONValue:function(e){return{$binary:r.encode(e)}},fromJSONValue:function(e){return r.decode(e.$binary)}},{matchJSONValue:function(e){return c(e,"$escape")&&1===Object.keys(e).length},matchObject:function(e){var n=!1;if(e){var t=Object.keys(e).length;1!==t&&2!==t||(n=d.some(function(n){return n.matchJSONValue(e)}))}return n},toJSONValue:function(e){var n={};return Object.keys(e).forEach(function(t){n[t]=o.toJSONValue(e[t])}),{$escape:n}},fromJSONValue:function(e){var n={};return Object.keys(e.$escape).forEach(function(t){n[t]=o.fromJSONValue(e.$escape[t])}),n}},{matchJSONValue:function(e){return c(e,"$type")&&c(e,"$value")&&2===Object.keys(e).length},matchObject:function(e){return o._isCustomType(e)},toJSONValue:function(n){var t=e._noYieldsAllowed(function(){return n.toJSONValue()});return{$type:n.typeName(),$value:t}},fromJSONValue:function(n){var t=n.$type;if(!c(f,t))throw new Error("Custom EJSON type "+t+" is not defined");var r=f[t];return e._noYieldsAllowed(function(){return r(n.$value)})}}];o._isCustomType=function(e){return e&&"function"==typeof e.toJSONValue&&"function"==typeof e.typeName&&c(f,e.typeName())},o._getTypes=function(){return f},o._getConverters=function(){return d};var y=function(e){for(var n=0;n<d.length;n++){var t=d[n];if(t.matchObject(e))return t.toJSONValue(e)}},v=function(e){if(null===e)return null;var n=y(e);return void 0!==n?n:"object"!==(void 0===e?"undefined":(0,i.default)(e))?e:(Object.keys(e).forEach(function(n){var t=e[n];if("object"===(void 0===t?"undefined":(0,i.default)(t))||void 0===t||s(t)){var r=y(t);r?e[n]=r:v(t)}}),e)};o._adjustTypesToJSONValue=v,o.toJSONValue=function(e){var n=y(e);if(void 0!==n)return n;var t=e;return"object"===(void 0===e?"undefined":(0,i.default)(e))&&(t=o.clone(e),v(t)),t};var m=function(e){if("object"===(void 0===e?"undefined":(0,i.default)(e))&&null!==e){var n=Object.keys(e);if(n.length<=2&&n.every(function(e){return"string"==typeof e&&"$"===e.substr(0,1)}))for(var t=0;t<d.length;t++){var r=d[t];if(r.matchJSONValue(e))return r.fromJSONValue(e)}}return e},O=function(e){if(null===e)return null;var n=m(e);return n!==e?n:"object"!==(void 0===e?"undefined":(0,i.default)(e))?e:(Object.keys(e).forEach(function(n){var t=e[n];if("object"===(void 0===t?"undefined":(0,i.default)(t))){var r=m(t)
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,d=Package.meteor.meteorEnv,i=Package.underscore._,a=Package.ejson.EJSON,r;(function(){(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){var f=(o=o||{}).projectionFn||a.clone;if(d.movedBefore)throw new Error("_diffQueryUnordered called with a movedBefore observer!");n.forEach(function(n,o){var t=e.get(o);if(t){if(d.changed&&!a.equals(t,n)){var c=f(n),u=f(t),h=r.makeChangedFields(c,u);i.isEmpty(h)||d.changed(o,h)}}else if(d.added){var l=f(n);delete l._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){var t=(f=f||{}).projectionFn||a.clone,c={};i.each(d,function(n){c[n._id]&&e._debug("Duplicate _id in new_results"),c[n._id]=!0});var u={};i.each(n,function(n,d){n._id in u&&e._debug("Duplicate _id in old_results"),u[n._id]=d});for(var h=[],l=0,s=d.length,g=new Array(s),v=new Array(s),_=function(e){return u[d[e]._id]},m=0;m<s;m++)if(void 0!==u[d[m]._id]){for(var y=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(var k=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)});var p=0;i.each(h,function(e){for(var a=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)):(delete(h=t(c))._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){var d={};return r.diffObjects(n,e,{leftOnly:function(e,n){d[e]=void 0},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){void 0===n?delete e[d]:e[d]=n})}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,n){for(var d in n)d in e||(e[d]=n[d])}(Package["diff-sequence"]={},{DiffSequence:r})}();
!function(){var t=Package.meteor.Meteor,n=Package.meteor.global,o=Package.meteor.meteorEnv,a,e=(0,Package.modules.meteorInstall)({node_modules:{meteor:{"geojson-utils":{"main.js":function(t,n){n.GeoJSON=t("./geojson-utils.js")},"geojson-utils.js":function(t,n,o){!function(){function t(t){for(var n=[],o=[],a=0;a<t[0].length;a++)n.push(t[0][a][1]),o.push(t[0][a][0]);return n=n.sort(function(t,n){return t-n}),o=o.sort(function(t,n){return t-n}),[[n[0],o[0]],[n[n.length-1],o[o.length-1]]]}function n(t,n,o){for(var a=[[0,0]],e=0;e<o.length;e++){for(var r=0;r<o[e].length;r++)a.push(o[e][r]);a.push([0,0])}for(var i=!1,e=0,r=a.length-1;e<a.length;r=e++)a[e][0]>n!=a[r][0]>n&&t<(a[r][1]-a[e][1])*(n-a[e][0])/(a[r][0]-a[e][0])+a[e][1]&&(i=!i);return i}var a={};void 0!==o&&o.exports&&(o.exports=a),a.lineStringsIntersect=function(t,n){for(var o=[],a=0;a<=t.coordinates.length-2;++a)for(var e=0;e<=n.coordinates.length-2;++e){var r={x:t.coordinates[a][1],y:t.coordinates[a][0]},i={x:t.coordinates[a+1][1],y:t.coordinates[a+1][0]},s={x:n.coordinates[e][1],y:n.coordinates[e][0]},c={x:n.coordinates[e+1][1],y:n.coordinates[e+1][0]},u=(c.x-s.x)*(r.y-s.y)-(c.y-s.y)*(r.x-s.x),h=(i.x-r.x)*(r.y-s.y)-(i.y-r.y)*(r.x-s.x),d=(c.y-s.y)*(i.x-r.x)-(c.x-s.x)*(i.y-r.y);if(0!=d){var l=u/d,g=h/d;0<=l&&l<=1&&0<=g&&g<=1&&o.push({type:"Point",coordinates:[r.x+l*(i.x-r.x),r.y+l*(i.y-r.y)]})}}return 0==o.length&&(o=!1),o},a.pointInBoundingBox=function(t,n){return!(t.coordinates[1]<n[0][0]||t.coordinates[1]>n[1][0]||t.coordinates[0]<n[0][1]||t.coordinates[0]>n[1][1])},a.pointInPolygon=function(o,e){for(var r="Polygon"==e.type?[e.coordinates]:e.coordinates,i=!1,s=0;s<r.length;s++)a.pointInBoundingBox(o,t(r[s]))&&(i=!0);if(!i)return!1;for(var c=!1,s=0;s<r.length;s++)n(o.coordinates[1],o.coordinates[0],r[s])&&(c=!0);return c},a.numberToRadius=function(t){return t*Math.PI/180},a.numberToDegree=function(t){return 180*t/Math.PI},a.drawCircle=function(t,n,o){for(var e=[n.coordinates[1],n.coordinates[0]],r=t/1e3/6371,i=[a.numberToRadius(e[0]),a.numberToRadius(e[1])],o=o||15,s=[[e[0],e[1]]],c=0;c<o;c++){var u=2*Math.PI*c/o,h=Math.asin(Math.sin(i[0])*Math.cos(r)+Math.cos(i[0])*Math.sin(r)*Math.cos(u)),d=i[1]+Math.atan2(Math.sin(u)*Math.sin(r)*Math.cos(i[0]),Math.cos(r)-Math.sin(i[0])*Math.sin(h));s[c]=[],s[c][1]=a.numberToDegree(h),s[c][0]=a.numberToDegree(d)}return{type:"Polygon",coordinates:[s]}},a.rectangleCentroid=function(t){var n=t.coordinates[0],o=n[0][0],a=n[0][1];return{type:"Point",coordinates:[o+(n[2][0]-o)/2,a+(n[2][1]-a)/2]}},a.pointDistance=function(t,n){var o=t.coordinates[0],e=t.coordinates[1],r=n.coordinates[0],i=n.coordinates[1],s=a.numberToRadius(i-e),c=a.numberToRadius(r-o),u=Math.pow(Math.sin(s/2),2)+Math.cos(a.numberToRadius(e))*Math.cos(a.numberToRadius(i))*Math.pow(Math.sin(c/2),2);return 6371*(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)))*1e3},a.geometryWithinRadius=function(t,n,o){if("Point"==t.type)return a.pointDistance(t,n)<=o;if("LineString"==t.type||"Polygon"==t.type){var e={},r;r="Polygon"==t.type?t.coordinates[0]:t.coordinates;for(var i in r)if(e.coordinates=r[i],a.pointDistance(e,n)>o)return!1}return!0},a.area=function(t){for(var n=0,o=t.coordinates[0],a=o.length-1,e,r,i=0;i<o.length;a=i++){var e={x:o[i][1],y:o[i][0]},r={x:o[a][1],y:o[a][0]};n+=e.x*r.y,n-=e.y*r.x}return n/=2},a.centroid=function(t){for(var n,o=0,e=0,r=t.coordinates[0],i=r.length-1,s,c,u=0;u<r.length;i=u++){var s={x:r[u][1],y:r[u][0]},c={x:r[i][1],y:r[i][0]};n=s.x*c.y-c.x*s.y,o+=(s.x+c.x)*n,e+=(s.y+c.y)*n}return n=6*a.area(t),{type:"Point",coordinates:[e/n,o/n]}},a.simplify=function(t,n){n=n||20,t=t.map(function(t){return{lng:t.coordinates[0],lat:t.coordinates[1]}});var o,a,e,r,i,s,c,u,h,d,l,g,M,y,f,x,m,p,v,P=Math.PI/180*.5,b=new Array,T=new Array,I=new Array;if(t.length<3)return t;for(o=t.length,d=360*n/(2*Math.PI*6378137),d*=d,e=0,T[0]=0,I[0]=o-1,a=1;a>0;)if(r=T[a-1],i=I[a-1],a--,i-r>1){for(l=t[i].lng()-t[r].lng(),g=t[i].lat()-t[r].lat(),Math.abs(l)>180&&(l=360-Math.abs(l)),M=(l*=Math.cos(P*(t[i].lat()+t[r].lat())))*l+g*g,s=r+1,c=r,h=-1;s<i;s++)y=t[s].lng()-t[r].lng(),f=t[s].
!function(){var i=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,e=Package.ejson.EJSON,r;(function(){r=function(i,t){var n=this;n._map={},n._idStringify=i||JSON.stringify,n._idParse=t||JSON.parse},a.extend(r.prototype,{get:function(i){var t=this,n=t._idStringify(i);return t._map[n]},set:function(i,t){var n=this,a=n._idStringify(i);n._map[a]=t},remove:function(i){var t=this,n=t._idStringify(i);delete t._map[n]},has:function(i){var t=this,n=t._idStringify(i);return a.has(t._map,n)},empty:function(){var i=this;return a.isEmpty(i._map)},clear:function(){this._map={}},forEach:function(i){for(var t=this,n=a.keys(t._map),e=0;e<n.length;e++)if(!1===i.call(null,t._map[n[e]],t._idParse(n[e])))return},size:function(){var i=this;return a.size(i._map)},setDefault:function(i,t){var n=this,e=n._idStringify(i);return a.has(n._map,e)?n._map[e]:(n._map[e]=t,t)},clone:function(){var i=this,t=new r(i._idStringify,i._idParse);return i.forEach(function(i,n){t.set(n,e.clone(i))}),t}})}).call(this),"undefined"==typeof Package&&(Package={}),function(i,t){for(var n in t)n in i||(i[n]=t[n])}(Package["id-map"]={},{IdMap:r})}();
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,o=Package.modules.meteorInstall,i=Package["babel-runtime"].meteorBabelHelpers,a=Package.promise.Promise,d=Package["ecmascript-runtime-client"].Symbol,c=Package["ecmascript-runtime-client"].Map,u=Package["ecmascript-runtime-client"].Set,s,p=o({node_modules:{meteor:{random:{"random.js":function(n){function t(){return new d(d.Type.ALEA,{seeds:[new Date,c,u,p,Math.random()]})}if(e.isServer)var r=Npm.require("crypto");var o=function(){function e(){var e=4022871197,n=function(n){n=n.toString();for(var t=0;t<n.length;t++){var r=.02519603282416938*(e+=n.charCodeAt(t));r-=e=r>>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)};return n.version="Mash 0.9",n}return function(n){var t=0,r=0,o=0,i=1;0==n.length&&(n=[+new Date]);var a=e();t=a(" "),r=a(" "),o=a(" ");for(var d=0;d<n.length;d++)(t-=a(n[d]))<0&&(t+=1),(r-=a(n[d]))<0&&(r+=1),(o-=a(n[d]))<0&&(o+=1);a=null;var c=function(){var e=2091639*t+2.3283064365386963e-10*i;return t=r,r=o,o=e-(i=0|e)};return c.uint32=function(){return 4294967296*c()},c.fract53=function(){return c()+1.1102230246251565e-16*(2097152*c()|0)},c.version="Alea 0.9",c.args=n,c}(Array.prototype.slice.call(arguments))},i="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz",a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",d=function(e,n){var t=this;if(t.type=e,!d.Type[e])throw new Error("Unknown random generator type: "+e);if(e===d.Type.ALEA){if(!n.seeds)throw new Error("No seeds were provided for Alea PRNG");t.alea=o.apply(null,n.seeds)}};d.Type={NODE_CRYPTO:"NODE_CRYPTO",BROWSER_CRYPTO:"BROWSER_CRYPTO",ALEA:"ALEA"},d.prototype.fraction=function(){var e=this;if(e.type===d.Type.ALEA)return e.alea();if(e.type===d.Type.NODE_CRYPTO)return 2.3283064365386963e-10*parseInt(e.hexString(8),16);if(e.type===d.Type.BROWSER_CRYPTO){var n=new Uint32Array(1);return window.crypto.getRandomValues(n),2.3283064365386963e-10*n[0]}throw new Error("Unknown random generator type: "+e.type)},d.prototype.hexString=function(e){if(this.type===d.Type.NODE_CRYPTO){var n=Math.ceil(e/2),t;try{t=r.randomBytes(n)}catch(e){t=r.pseudoRandomBytes(n)}return t.toString("hex").substring(0,e)}return this._randomString(e,"0123456789abcdef")},d.prototype._randomString=function(e,n){for(var t=this,r=[],o=0;o<e;o++)r[o]=t.choice(n);return r.join("")},d.prototype.id=function(e){var n=this;return void 0===e&&(e=17),n._randomString(e,i)},d.prototype.secret=function(e){var n=this;return void 0===e&&(e=43),n._randomString(e,a)},d.prototype.choice=function(e){var n=Math.floor(this.fraction()*e.length);return"string"==typeof e?e.substr(n,1):e[n]};var c="undefined"!=typeof window&&window.innerHeight||"undefined"!=typeof document&&document.documentElement&&document.documentElement.clientHeight||"undefined"!=typeof document&&document.body&&document.body.clientHeight||1,u="undefined"!=typeof window&&window.innerWidth||"undefined"!=typeof document&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeof document&&document.body&&document.body.clientWidth||1,p="undefined"!=typeof navigator&&navigator.userAgent||"";(s=e.isServer?new d(d.Type.NODE_CRYPTO):"undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues?new d(d.Type.BROWSER_CRYPTO):t()).createWithSeeds=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];if(0===n.length)throw new Error("No seeds were provided");return new d(d.Type.ALEA,{seeds:n})},s.insecure=t()},"deprecated.js":function(){e.uuid=function(){for(var e="0123456789abcdef",n=[],t=0;t<36;t++)n[t]=s.choice(e);return n[14]="4",n[19]=e.substr(3&parseInt(n[19],16)|8,1),n[8]=n[13]=n[18]=n[23]="-",n.join("")}}}}}},{extensions:[".js",".json"]});p("./node_modules/meteor/random/random.js"),p("./node_modules/meteor/random/deprecated.js"),"undefined"==typeof Package&&(Package={}),function(e,n){for(var t in n)t in e||(e[t]=n[t])}(Package.random={},{Random:s})}();
!function(){var t=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={})._looksLikeObjectID=function(t){return 24===t.length&&t.match(/^[0-9a-f]*$/)},a.ObjectID=function(t){var e=this;if(t){if(t=t.toLowerCase(),!a._looksLikeObjectID(t))throw new Error("Invalid hexadecimal string for creating an ObjectID");e._str=t}else e._str=i.hexString(24)},a.ObjectID.prototype.toString=function(){return'ObjectID("'+this._str+'")'},a.ObjectID.prototype.equals=function(t){var e=this;return t instanceof a.ObjectID&&e.valueOf()===t.valueOf()},a.ObjectID.prototype.clone=function(){var t=this;return new a.ObjectID(t._str)},a.ObjectID.prototype.typeName=function(){return"oid"},a.ObjectID.prototype.getTimestamp=function(){var t=this;return parseInt(t._str.substr(0,8),16)},a.ObjectID.prototype.valueOf=a.ObjectID.prototype.toJSONValue=a.ObjectID.prototype.toHexString=function(){return this._str},o.addType("oid",function(t){return new a.ObjectID(t)}),a.idStringify=function(t){if(t instanceof a.ObjectID)return t.valueOf();if("string"==typeof t)return""===t?t:"-"===t.substr(0,1)||"~"===t.substr(0,1)||a._looksLikeObjectID(t)||"{"===t.substr(0,1)?"-"+t:t;if(void 0===t)return"-";if("object"==typeof t&&null!==t)throw new Error("Meteor does not currently support objects other than ObjectID as ids");return"~"+JSON.stringify(t)},a.idParse=function(t){return""===t?t:"-"===t?void 0:"-"===t.substr(0,1)?t.substr(1):"~"===t.substr(0,1)?JSON.parse(t.substr(1)):a._looksLikeObjectID(t)?new a.ObjectID(t):t}}).call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var r in e)r in t||(t[r]=e[r])}(Package["mongo-id"]={},{MongoID:a})}();
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i;(function(){var t=function(t,e,r,n){return{key:t,value:e,next:r,prev:n}};i=function(){var t=this;t._dict={},t._first=null,t._last=null,t._size=0;var e=n.toArray(arguments);t._stringify=function(t){return t},"function"==typeof e[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(){return!this._first},size:function(){return this._size},_linkEltIn:function(t){var e=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){var e=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){var i=this;if(i._dict[i._k(e)])throw new Error("Item "+e+" already present in OrderedDict");var o=n?t(e,r,i._dict[i._k(n)]):t(e,r,null);if(void 0===o.next)throw new Error("could not find item to put this one before");i._linkEltIn(o),i._dict[i._k(e)]=o,i._size++},append:function(t,e){this.putBefore(t,e,null)},remove:function(t){var e=this,r=e._dict[e._k(t)];if(void 0===r)throw new Error("Item "+t+" not present in OrderedDict");return e._linkEltOut(r),e._size--,delete e._dict[e._k(t)],r.value},get:function(t){var e=this;if(e.has(t))return e._dict[e._k(t)].value},has:function(t){var e=this;return n.has(e._dict,e._k(t))},forEach:function(t){for(var e=0,r=this._first;null!==r;){if(t(r.value,r.key,e)===i.BREAK)return;r=r.next,e++}},first:function(){var t=this;if(!t.empty())return t._first.key},firstValue:function(){var t=this;if(!t.empty())return t._first.value},last:function(){var t=this;if(!t.empty())return t._last.key},lastValue:function(){var t=this;if(!t.empty())return t._last.value},prev:function(t){var e=this;if(e.has(t)){var r=e._dict[e._k(t)];if(r.prev)return r.prev.key}return null},next:function(t){var e=this;if(e.has(t)){var r=e._dict[e._k(t)];if(r.next)return r.next.key}return null},moveBefore:function(t,e){var r=this,n=r._dict[r._k(t)],i=e?r._dict[r._k(e)]:null;if(void 0===n)throw new Error("Item to move is not present");if(void 0===i)throw new Error("Could not find element to move this one before");i!==n.next&&(r._linkEltOut(n),n.next=i,r._linkEltIn(n))},indexOf:function(t){var e=this,r=null;return e.forEach(function(n,o,f){if(e._k(o)===e._k(t))return r=f,i.BREAK}),r},_checkRep:function(){var t=this;n.each(t._dict,function(t,e){if(e.next===e)throw new Error("Next is a loop");if(e.prev===e)throw new Error("Prev is a loop")})}}),i.BREAK={break:!0}}).call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var r in e)r in t||(t[r]=e[r])}(Package["ordered-dict"]={},{OrderedDict:i})}();
!function(){var n=Package.meteor.Meteor,t=Package.meteor.global,o=Package.meteor.meteorEnv,e,r;(function(){(e={}).active=!1,e.currentComputation=null;var t=function(n){e.currentComputation=n,e.active=!!n},o=function(){return void 0!==n?n._debug:"undefined"!=typeof console&&console.error?function(){console.error.apply(console,arguments)}:function(){}},r=function(t){void 0!==n&&n._suppressed_log_expected()&&n._suppress_log(t-1)},i=function(n,t){if(l)throw t;var e=["Exception from Tracker "+n+" function:"];if(t.stack&&t.message&&t.name){var i=t.stack.indexOf(t.message);if(i<0||i>t.name.length+2){var a=t.name+": "+t.message;e.push(a)}}e.push(t.stack),r(e.length);for(var u=0;u<e.length;u++)o()(e[u])},a=function(t){return void 0===n||n.isClient?t:function(){var o=arguments;n._noYieldsAllowed(function(){t.apply(null,o)})}},u=1,c=[],s=!1,p=!1,f=!1,l=!1,d=[],h=function(){s||(void 0!==n?n._setImmediate(e._runFlush):setTimeout(e._runFlush,0),s=!0)},v=!1;e.Computation=function(n,t,o){if(!v)throw new Error("Tracker.Computation constructor is private; use Tracker.autorun");v=!1;var e=this;e.stopped=!1,e.invalidated=!1,e.firstRun=!0,e._id=u++,e._onInvalidateCallbacks=[],e._onStopCallbacks=[],e._parent=t,e._func=n,e._onError=o,e._recomputing=!1;var r=!0;try{e._compute(),r=!1}finally{e.firstRun=!1,r&&e.stop()}},e.Computation.prototype.onInvalidate=function(n){var t=this;if("function"!=typeof n)throw new Error("onInvalidate requires a function");t.invalidated?e.nonreactive(function(){a(n)(t)}):t._onInvalidateCallbacks.push(n)},e.Computation.prototype.onStop=function(n){var t=this;if("function"!=typeof n)throw new Error("onStop requires a function");t.stopped?e.nonreactive(function(){a(n)(t)}):t._onStopCallbacks.push(n)},e.Computation.prototype.invalidate=function(){var n=this;if(!n.invalidated){n._recomputing||n.stopped||(h(),c.push(this)),n.invalidated=!0;for(var t=0,o;o=n._onInvalidateCallbacks[t];t++)e.nonreactive(function(){a(o)(n)});n._onInvalidateCallbacks=[]}},e.Computation.prototype.stop=function(){var n=this;if(!n.stopped){n.stopped=!0,n.invalidate();for(var t=0,o;o=n._onStopCallbacks[t];t++)e.nonreactive(function(){a(o)(n)});n._onStopCallbacks=[]}},e.Computation.prototype._compute=function(){var n=this;n.invalidated=!1;var o=e.currentComputation;t(n);var r=f;f=!0;try{a(n._func)(n)}finally{t(o),f=r}},e.Computation.prototype._needsRecompute=function(){var n=this;return n.invalidated&&!n.stopped},e.Computation.prototype._recompute=function(){var n=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}},e.Computation.prototype.flush=function(){var n=this;n._recomputing||n._recompute()},e.Computation.prototype.run=function(){var n=this;n.invalidate(),n.flush()},e.Dependency=function(){this._dependentsById={}},e.Dependency.prototype.depend=function(n){if(!n){if(!e.active)return!1;n=e.currentComputation}var t=this,o=n._id;return!(o in t._dependentsById)&&(t._dependentsById[o]=n,n.onInvalidate(function(){delete t._dependentsById[o]}),!0)},e.Dependency.prototype.changed=function(){var n=this;for(var t in n._dependentsById)n._dependentsById[t].invalidate()},e.Dependency.prototype.hasDependents=function(){var n=this;for(var t in n._dependentsById)return!0;return!1},e.flush=function(n){e._runFlush({finishSynchronously:!0,throwFirstError:n&&n._throwFirstError})},e.inFlush=function(){return p},e._runFlush=function(n){if(e.inFlush())throw new Error("Can't call Tracker.flush while flushing");if(f)throw new Error("Can't flush inside Tracker.autorun");p=!0,s=!0,l=!!(n=n||{}).throwFirstError;var t=0,o=!1;try{for(;c.length||d.length;){for(;c.length;){var r=c.shift();if(r._recompute(),r._needsRecompute()&&c.unshift(r),!n.finishSynchronously&&++t>1e3)return void(o=!0)}if(d.length){var a=d.shift();try{a()}catch(n){i("afterFlush",n)}}}o=!0}finally{if(o||(p=!1,e._runFlush({finishSynchronously:n.finishSynchronously,throwFirstError:!1})),s=!1,p=!1,c.length||d.length){if(n.finishSynchronously)throw new Error("still have more to do?");setTimeout(h,10)}}},e.autorun=fu
!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package["diff-sequence"].DiffSequence,i=Package.ejson.EJSON,o=Package["geojson-utils"].GeoJSON,a=Package["id-map"].IdMap,s=Package["mongo-id"].MongoID,c=Package["ordered-dict"].OrderedDict,u=Package.random.Random,f=Package.tracker.Tracker,d=Package.tracker.Deps,l=Package.modules.meteorInstall,h=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,v=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,y=Package["ecmascript-runtime-client"].Set,_,g,b,w,E=l({node_modules:{meteor:{minimongo:{"minimongo_client.js":function(e,r,t){t.watch(e("./minimongo_common.js"))},"common.js":function(e,r,t){function n(e){return e&&e.__esModule?e:{default:e}}function a(e){return 0===e.length?h:1===e.length?e[0]:function(r){var t={};return t.result=e.every(function(e){var n=e(r);return n.result&&void 0!==n.distance&&void 0===t.distance&&(t.distance=n.distance),n.result&&n.arrayIndices&&(t.arrayIndices=n.arrayIndices),n.result}),t.result||(delete t.distance,delete t.arrayIndices),t}}function s(e,r,t){if(!Array.isArray(e)||0===e.length)throw Error("$and/$or/$nor must be nonempty array");return e.map(function(e){if(!T._isPlainObject(e))throw Error("$or/$and/$nor entries need to be full objects");return c(e,r,{inElemMatch:t})})}function c(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Object.keys(e).map(function(n){var i=e[n];if("$"===n.substr(0,1)){if(!U.call(N,n))throw new Error("Unrecognized logical operator: "+n);return r._isSimple=!1,N[n](i,r,t.inElemMatch)}if(t.inElemMatch||r._recordPathUsed(n),"function"!=typeof i){var o=j(n),a=u(i,r,t.isRoot);return function(e){return a(o(e))}}}).filter(Boolean);return K(n)}function u(e,r,t){return e instanceof RegExp?(r._isSimple=!1,f(q(e))):$(e)?k(e,r,t):f(l(e))}function f(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){var n=r.dontExpandLeafArrays?t:p(t,r.dontIncludeLeafArrays),i={};return i.result=n.some(function(r){var t=e(r.value);return"number"==typeof t&&(r.arrayIndices||(r.arrayIndices=[t]),t=!0),t&&r.arrayIndices&&(i.arrayIndices=r.arrayIndices),t}),i}}function d(e,r){var t=S(e),n=S(r);return Math.hypot(t[0]-n[0],t[1]-n[1])}function l(e){if($(e))throw Error("Can't create equalityValueSelector for operator object");return null==e?function(e){return null==e}:function(r){return T._f._equal(e,r)}}function h(e){return{result:!0}}function p(e,r){var t=[];return e.forEach(function(e){var n=Array.isArray(e.value);r&&n&&!e.dontIterate||t.push({arrayIndices:e.arrayIndices,value:e.value}),n&&!e.dontIterate&&e.value.forEach(function(r,n){t.push({arrayIndices:(e.arrayIndices||[]).concat(n),value:r})})}),t}function v(e,r){if(Number.isInteger(e)&&e>=0)return new Uint8Array(new Int32Array([e]).buffer);if(i.isBinary(e))return new Uint8Array(e.buffer);if(Array.isArray(e)&&e.every(function(e){return Number.isInteger(e)&&e>=0})){var t=new ArrayBuffer(1+(Math.max.apply(Math,(0,R.default)(e))>>3)),n=new Uint8Array(t);return e.forEach(function(e){n[e>>3]|=1<<(7&e)}),n}throw Error("operand to "+r+" must be a numeric bitmask (representable as a non-negative 32-bit signed integer), a bindata bitmask or an array with bit positions (non-negative integers)")}function m(e,r){if(Number.isSafeInteger(e)){var t=new ArrayBuffer(Math.max(r,2*Uint32Array.BYTES_PER_ELEMENT)),n=new Uint32Array(t,0,2);return n[0]=e%4294967296|0,n[1]=e/4294967296|0,e<0&&(n=new Uint8Array(t,2)).forEach(function(e,r){n[r]=255}),new Uint8Array(t)}return!!i.isBinary(e)&&new Uint8Array(e.buffer)}function y(e,r,t){Object.keys(e).forEach(function(e){if(e.length>r.length&&0===e.indexOf(r+".")||r.length>e.length&&0===r.indexOf(e+"."))throw new Error("cannot infer query fields to set, both paths '"+e+"' and '"+r+"' are matched");if(e===r)throw new Error("cannot infer query fields to set, path '"+r+"' is matched twice")}),e[r]=t}function b(e){return function(r){return{result:!e(r).result}}}function w(e){return Array.isArray(e)||T._isPlainObject(e)}function E
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,a=Package.underscore._,i=Package.ejson.EJSON,o,c,s=r({node_modules:{meteor:{check:{"match.js":function(t,n){var r=new e.EnvironmentVariable,o=t("./isPlainObject.js").isPlainObject,c=n.check=function(e,t){var n=r.getOrNullIfOutsideFiber();n&&n.checking(e);var a=y(e,t);if(a){var i=new s.Error(a.message);throw a.path&&(i.message+=" in field "+a.path,i.path=a.path),i}},s=n.Match={Optional:function(e){return new u(e)},Maybe:function(e){return new f(e)},OneOf:function(){return new h(a.toArray(arguments))},Any:["__any__"],Where:function(e){return new l(e)},ObjectIncluding:function(e){return new p(e)},ObjectWithValues:function(e){return new g(e)},Integer:["__integer__"],Error:e.makeErrorType("Match.Error",function(t){this.message="Match error: "+t,this.path="",this.sanitizedError=new e.Error(400,"Match failed")}),test:function(e,t){return!y(e,t)},_failIfArgumentsAreNotAllChecked:function(e,t,n,a){var i=new v(n,a),o=r.withValue(i,function(){return e.apply(t,n)});return i.throwUnlessAllArgumentsHaveBeenChecked(),o}},u=function(e){this.pattern=e},f=function(e){this.pattern=e},h=function(e){if(a.isEmpty(e))throw new Error("Must provide at least one choice to Match.OneOf");this.choices=e},l=function(e){this.condition=e},p=function(e){this.pattern=e},g=function(e){this.pattern=e},m=function(e,t){if(t=t||{},null===e)return"null";if(t.onlyShowType)return typeof e;if("object"!=typeof e)return i.stringify(e);try{JSON.stringify(e)}catch(t){if("TypeError"===t.name)return typeof e}return i.stringify(e)},d=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void 0,"undefined"]],y=function(e,t){if(t===s.Any)return!1;for(var n=0;n<d.length;++n)if(t===d[n][0])return typeof e!==d[n][1]&&{message:"Expected "+d[n][1]+", got "+m(e,{onlyShowType:!0}),path:""};if(null===t)return null!==e&&{message:"Expected null, got "+m(e),path:""};if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return e!==t&&{message:"Expected "+t+", got "+m(e),path:""};if(t===s.Integer)return("number"!=typeof e||(0|e)!==e)&&{message:"Expected Integer, got "+m(e),path:""};if(t===Object&&(t=s.ObjectIncluding({})),t instanceof Array){if(1!==t.length)return{message:"Bad pattern: arrays must have one type element"+m(t),path:""};if(!a.isArray(e)&&!a.isArguments(e))return{message:"Expected array, got "+m(e),path:""};for(var n=0,r=e.length;n<r;n++)if(i=y(e[n],t[0]))return i.path=O(n,i.path),i;return!1}if(t instanceof l){var i;try{i=t.condition(e)}catch(e){if(!(e instanceof s.Error))throw e;return{message:e.message,path:e.path}}return!i&&{message:"Failed Match.Where validation",path:""}}if(t instanceof f?t=s.OneOf(void 0,null,t.pattern):t instanceof u&&(t=s.OneOf(void 0,t.pattern)),t instanceof h){for(var n=0;n<t.choices.length;++n)if(!(i=y(e,t.choices[n])))return!1;return{message:"Failed Match.OneOf, Match.Maybe or Match.Optional validation",path:""}}if(t instanceof Function)return!(e instanceof t)&&{message:"Expected "+(t.name||"particular constructor"),path:""};var c=!1,v;if(t instanceof p&&(c=!0,t=t.pattern),t instanceof g&&(c=!0,v=[t.pattern],t={}),"object"!=typeof t)return{message:"Bad pattern: unknown pattern type",path:""};if("object"!=typeof e)return{message:"Expected object, got "+typeof e,path:""};if(null===e)return{message:"Expected object, got null",path:""};if(!o(e))return{message:"Expected plain object",path:""};var b={},k={};a.each(t,function(e,t){e instanceof u||e instanceof f?k[t]=e.pattern:b[t]=e});for(var w=function(e){var t=[];if(a.isObject(e))for(var n in e)t.push(n);return t}(e),n=0,r=w.length;n<r;n++){var j=w[n],E=e[j];if(a.has(b,j)){if(i=y(E,b[j]))return i.path=O(j,i.path),i;delete b[j]}else if(a.has(k,j)){if(i=y(E,k[j]))return i.path=O(j,i.path),i}else{if(!c)return{message:"Unknown key",path:j};if(v&&(i=y(E,v[0])))return i.path=O(j,i.path),i}}return(w=a.keys(b)).length?{message:"Missing key '"+w[0]+"'",path:""}:void 0},v=function(e,t){var n=this;n.args=a.clone(e),n.args.reverse(),n.description=t};a.ex
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i=Package.random.Random,a;(function(){a=function(e){var t=this;n.extend(t,n.defaults(n.clone(e||{}),{baseTimeout:1e3,exponent:2.2,maxTimeout:3e5,minTimeout:10,minCount:2,fuzz:.5})),t.retryTimer=null},n.extend(a.prototype,{clear:function(){var e=this;e.retryTimer&&clearTimeout(e.retryTimer),e.retryTimer=null},_timeout:function(e){var t=this;if(e<t.minCount)return t.minTimeout;var r=Math.min(t.maxTimeout,t.baseTimeout*Math.pow(t.exponent,e));return r*=i.fraction()*t.fuzz+(1-t.fuzz/2)},retryLater:function(t,r){var n=this,i=n._timeout(t);return n.retryTimer&&clearTimeout(n.retryTimer),n.retryTimer=e.setTimeout(r,i),i}})}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var r in t)r in e||(e[r]=t[r])}(Package.retry={},{Retry:a})}();
!function(){var n=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,a=Package.underscore._,r;(function(){r=function(n){var e=this;if(n=n||{},e.nextCallbackId=0,e.callbacks={},e.bindEnvironment=!0,!1===n.bindEnvironment&&(e.bindEnvironment=!1),n.exceptionHandler)e.exceptionHandler=n.exceptionHandler;else if(n.debugPrintExceptions){if(!a.isString(n.debugPrintExceptions))throw new Error("Hook option debugPrintExceptions should be a string");e.exceptionHandler=n.debugPrintExceptions}},a.extend(r.prototype,{register:function(t){var a=this,r=a.exceptionHandler||function(n){throw n};t=a.bindEnvironment?n.bindEnvironment(t,r):e(t,r);var o=a.nextCallbackId++;return a.callbacks[o]=t,{stop:function(){delete a.callbacks[o]}}},each:function(e){var t=this;n._nodeCodeMustBeInFiber();for(var r=a.keys(t.callbacks),o=0;o<r.length;++o){var i=r[o];if(a.has(t.callbacks,i)&&!e(t.callbacks[i]))break}}});var e=function(e,t,r){if(!t||"string"==typeof t){var o=t||"callback of async function";t=function(e){n._debug("Exception in "+o+":",e&&e.stack||e)}}return function(){var n=a.toArray(arguments);return function(){try{var a=e.apply(r,n)}catch(n){t(n)}return a}()}}}).call(this),"undefined"==typeof Package&&(Package={}),function(n,e){for(var t in e)t in n||(n[t]=e[t])}(Package["callback-hook"]={},{Hook:r})}();
!function(){var e=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){var t=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(){var e=this;e._clearHeartbeatIntervalTimer(),e._clearHeartbeatTimeoutTimer()},start:function(){var e=this;e.stop(),e._startHeartbeatIntervalTimer()},_startHeartbeatIntervalTimer:function(){var t=this;t._heartbeatIntervalHandle=e.setInterval(c.bind(t._heartbeatIntervalFired,t),t.heartbeatInterval)},_startHeartbeatTimeoutTimer:function(){var t=this;t._heartbeatTimeoutHandle=e.setTimeout(c.bind(t._heartbeatTimeoutFired,t),t.heartbeatTimeout)},_clearHeartbeatIntervalTimer:function(){var t=this;t._heartbeatIntervalHandle&&(e.clearInterval(t._heartbeatIntervalHandle),t._heartbeatIntervalHandle=null)},_clearHeartbeatTimeoutTimer:function(){var t=this;t._heartbeatTimeoutHandle&&(e.clearTimeout(t._heartbeatTimeoutHandle),t._heartbeatTimeoutHandle=null)},_heartbeatIntervalFired:function(){var e=this;e._seenPacket||e._heartbeatTimeoutHandle||(e._sendPing(),e._startHeartbeatTimeoutTimer()),e._seenPacket=!1},_heartbeatTimeoutFired:function(){var e=this;e._heartbeatTimeoutHandle=null,e._onTimeout()},messageReceived:function(){var e=this;e._seenPacket=!0,e._heartbeatTimeoutHandle&&e._clearHeartbeatTimeoutTimer()}})}.call(this),function(){d.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"],d.parseDDP=function(t){try{var a=JSON.parse(t)}catch(a){return e._debug("Discarding message with invalid JSON",t),null}return null===a||"object"!=typeof a?(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]=void 0}),delete a.cleared),c.each(["fields","params","result"],function(e){c.has(a,e)&&(a[e]=o._adjustTypesFromJSONValue(a[e]))}),a)},d.stringifyDDP=function(e){var t=o.clone(e);if(c.has(e,"fields")){var a=[];c.each(e.fields,function(e,n){void 0===e&&(a.push(n),delete t.fields[n])}),c.isEmpty(a)||(t.cleared=a),c.isEmpty(t.fields)&&delete t.fields}if(c.each(["fields","params","result"],function(e){c.has(t,e)&&(t[e]=o._adjustTypesToJSONValue(t[e]))}),e.id&&"string"!=typeof e.id)throw new Error("Message id is not a string");return JSON.stringify(t)}}.call(this),function(){d.MethodInvocation=function(e){var t=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(){var e=this;e._calledUnblock=!0,e._unblock()},setUserId:function(e){var t=this;if(t._calledUnblock)throw new Error("Can't call setUserId in a method after calling unblock");t.userId=e,t._setUserId(e)}})}.call(this),function(){function e(){return i.hexString(20)}d.RandomStream=function(t){var a=this;this.seed=[].concat(t.seed||e()),this.sequences={}},d.RandomStream.get=function(e,t){if(t||(t="default"),!e)return i.insecure;var a=e.randomStream;return a||(e.randomStream=a=new d.RandomStream({seed:e.randomSeed})),a._sequence(t)},d.makeRpcSeed=function(e,t){return d.RandomStream.get(e,"/rpc/"+t).hexString(20)},c.extend(d.RandomStream.prototype,{_sequence:function(e){var t=this,a=t.sequences[e]||null;if(null===a){for(var n=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)}return a}})}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var a in t)a in e||(e[a]=t[a])}(Package["ddp-common"]={},{DDPCommon:d})}();
!function(){var a=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["ecmascript-runtime-client"].Symbol,r=Package["ecmascript-runtime-client"].Map,i=Package["ecmascript-runtime-client"].Set,c;(function(){c={};var e="Meteor_Reload",t={},n,r=null;try{(r=window.sessionStorage)?(r.setItem("__dummy__","1"),r.removeItem("__dummy__")):r=null}catch(a){r=null}c._getData=function(){return r&&r.getItem(e)},r&&(n=c._getData(),r.removeItem(e)),n||(n="{}");var i={};try{"object"!=typeof(i=JSON.parse(n))&&(a._debug("Got bad data on reload. Ignoring."),i={})}catch(e){a._debug("Got invalid JSON on reload. Ignoring.")}i.reload&&"object"==typeof i.data&&(t=i.data);var l=[];c._onMigrate=function(a,e){e||(e=a,a=void 0),l.push({name:a,callback:e})},c._migrationData=function(a){return t[a]};var d=function(a,e){a=a||function(){},e=e||{};for(var t={},n=o.clone(l),r=!0;n.length;){var i=n.shift(),c=i.callback(a,e);c[0]||(r=!1),c.length>1&&i.name&&(t[i.name]=c[1])}return r||e.immediateMigration?t:null};c._migrate=function(t,o){var n=d(t,o);if(null===n)return!1;try{var i=JSON.stringify({data:n,reload:!0})}catch(e){throw a._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)}else a._debug("Browser does not support sessionStorage. Not saving migration state.");return!0},c._withFreshProvidersForTest=function(a){var e=o.clone(l);l=[];try{a()}finally{l=e}};var g=!1;c._reload=function(a){if(a=a||{},!g){g=!0;var e=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"==typeof Package&&(Package={}),function(a,e){for(var t in e)t in a||(a[t]=e[t])}(Package.reload={},{Reload:c})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.check.check,r=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["callback-hook"].Hook,_=Package["ddp-common"].DDPCommon,p=Package["diff-sequence"].DiffSequence,h=Package["mongo-id"].MongoID,v=Package.modules.meteorInstall,m=Package["babel-runtime"].meteorBabelHelpers,g=Package.promise.Promise,b=Package["ecmascript-runtime-client"].Symbol,y=Package["ecmascript-runtime-client"].Map,w=Package["ecmascript-runtime-client"].Set,k,S,C,E,O,D=v({node_modules:{meteor:{"ddp-client":{"sockjs-0.3.4.js":function(e){function t(e){return e&&e.__esModule?e:{default:e}}var n=t(e("babel-runtime/helpers/typeof"));k=function(){var e=document,t=window,o={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),e in this._listeners||(this._listeners[e]=[]);var n=this._listeners[e];-1===o.arrIndexOf(n,t)&&n.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&e in this._listeners){var n=this._listeners[e],r=o.arrIndexOf(n,t);-1===r||(n.length>1?this._listeners[e]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[e])}},r.prototype.dispatchEvent=function(e){var t=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&t in this._listeners)for(var o=0;o<this._listeners[t].length;o++)this._listeners[t][o].apply(this,n)};var i=function(e,t){if(this.type=e,void 0!==t)for(var n in m.sanitizeForInObject(t))t.hasOwnProperty(n)&&(this[n]=t[n])};i.prototype.toString=function(){var e=[];for(var t in m.sanitizeForInObject(this))if(this.hasOwnProperty(t)){var n=this[t];"function"==typeof n&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};var s=function(e){var t=this;t._events=e||[],t._listeners={}};s.prototype.emit=function(e){var t=this;if(t._verifyType(e),!t._nuked){var n=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),e in t._listeners)for(var o=0;o<t._listeners[e].length;o++)t._listeners[e][o].apply(t,n)}},s.prototype.on=function(e,t){var n=this;n._verifyType(e),n._nuked||(e in n._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},s.prototype._verifyType=function(e){var t=this;-1===o.arrIndexOf(t._events,e)&&o.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},s.prototype.nuke=function(){var e=this;e._nuked=!0;for(var t=0;t<e._events.length;t++)delete e[e._events[t]];e._listeners={}};var a="abcdefghijklmnopqrstuvwxyz0123456789_";o.random_string=function(e,t){t=t||a.length;var n,o=[];for(n=0;n<e;n++)o.push(a.substr(Math.floor(Math.random()*t),1));return o.join("")},o.random_number=function(e){return Math.floor(Math.random()*e)},o.random_number_string=function(e){var t=(""+(e-1)).length;return(Array(t+1).join("0")+o.random_number(e)).slice(-t)},o.getOrigin=function(e){return(e+="/").split("/").slice(0,3).join("/")},o.isSameOriginUrl=function(e,n){return n||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},o.isSameOriginScheme=function(e,n){return n||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},o.getParentDomain=function(e){return/^[0-9.]*$/.test(e)?e:/^\[/.test(e)?e:/[.]/.test(e)?e.split(".").slice(1).join("."):e},o.objectExtend=function(e,t){for(var n in m.sanitizeForInObject(t))t.hasOwnProperty(n)&&(e[n]=t[n]);return e};var u="_jp";o.polluteGlobalNamespace=function(){"_jp"in t||(t._jp={})},o.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},o.userSetCode=function(e){return 1e3===e||e>=3e3&&e<=4999},o.countRTO=function(e){var t;return t=e>100?3*e:e+200},o.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},o.bind=function(e,t){return e.bind?e.bind(t):function(){return e.apply(t,arguments)}},o.flatUrl=function(e){return-1===e.indexOf("?")&&-1===e.indexOf("#")},o.amendUrl=function(t,n){var r;if(void 0==
!function(){var a=Package["ddp-client"].DDP;"undefined"==typeof Package&&(Package={}),function(a,n){for(var e in n)e in a||(a[e]=n[e])}(Package.ddp={},{DDP:a})}();
"undefined"==typeof Package&&(Package={}),Package["ddp-server"]={};
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.minimongo.LocalCollection,o=Package.minimongo.Minimongo,i=Package.check.check,a=Package.check.Match,c=Package.ejson.EJSON,l=Package["ddp-client"].DDP,s=Package.modules.meteorInstall,d=Package["babel-runtime"].meteorBabelHelpers,u=Package.promise.Promise,f=Package["ecmascript-runtime-client"].Symbol,h=Package["ecmascript-runtime-client"].Map,_=Package["ecmascript-runtime-client"].Set,v;s({node_modules:{meteor:{"allow-deny":{"allow-deny.js":function(){function t(e,t){return e.transform?e.transform(t):t}function r(e,t,r){var n=t;return e.transform&&(n=c.clone(t),null!==r&&(n._id=r),n=e.transform(n)),n}function o(e,t,r){var o=/^(?:insert|update|remove|fetch|transform)$/;if(Object.keys(r).forEach(function(e){if(!o.test(e))throw new Error(t+": Invalid key: "+e)}),e._restricted=!0,["insert","update","remove"].forEach(function(o){if(u.call(r,o)){if(!(r[o]instanceof Function))throw new Error(t+": Value for `"+o+"` must be a function");void 0===r.transform?r[o].transform=e._transform:r[o].transform=n.wrapTransform(r.transform),e._validators[o][t].push(r[o])}}),r.update||r.remove||r.fetch){if(r.fetch&&!(r.fetch instanceof Array))throw new Error(t+": Value for `fetch` must be an array");e._updateFetch(r.fetch)}}function s(t,r){if(!n._selectorIsIdPerhapsAsObject(t))throw new e.Error(403,"Not permitted. Untrusted code may only "+r+" documents by ID.")}function d(){var e=(l._CurrentMethodInvocation||l._CurrentInvocation).get();return e&&e.isSimulation}var u=Object.prototype.hasOwnProperty,f=(v={CollectionPrototype:{}}).CollectionPrototype;f.allow=function(e){o(this,"allow",e)},f.deny=function(e){o(this,"deny",e)},f._defineMutationMethods=function(t){var r=this;if(t=t||{},r._restricted=!1,r._insecure=void 0,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))){var n={};["insert","update","remove"].forEach(function(o){var c=r._prefix+o;if(t.useExisting){var l=e.isClient?"_methodHandlers":"method_handlers";if(r._connection[l]&&"function"==typeof r._connection[l][c])return}n[c]=function(){i(arguments,[a.Any]);var t=Array.from(arguments);try{var n=null;if("insert"!==o||u.call(t[0],"_id")||(n=r._makeNewID()),this.isSimulation)return null!==n&&(t[0]._id=n),r._collection[o].apply(r._collection,t);if("insert"!==o&&s(t[0],o),r._restricted){if(0===r._validators[o].allow.length)throw new e.Error(403,"Access denied. No allow validators set on restricted collection for method '"+o+"'.");var c="_validated"+o.charAt(0).toUpperCase()+o.slice(1);return t.unshift(this.userId),"insert"===o&&t.push(n),r[c].apply(r,t)}if(r._isInsecure())return null!==n&&(t[0]._id=n),r._collection[o].apply(r._collection,t);throw new e.Error(403,"Access denied")}catch(t){throw"MongoError"===t.name||"MinimongoError"===t.name?new e.Error(409,t.toString()):t}}}),r._connection.methods(n)}},f._updateFetch=function(e){var t=this;if(!t._validators.fetchAllFields)if(e){var r=Object.create(null),n=function(e){return e&&e.forEach(function(e){return r[e]=1})};n(t._validators.fetch),n(e),t._validators.fetch=Object.keys(r)}else t._validators.fetchAllFields=!0,t._validators.fetch=null},f._isInsecure=function(){var e=this;return void 0===e._insecure?!!Package.insecure:e._insecure},f._validatedInsert=function(t,n,o){var i=this;if(i._validators.insert.deny.some(function(e){return e(t,r(e,n,o))}))throw new e.Error(403,"Access denied");if(i._validators.insert.allow.every(function(e){return!e(t,r(e,n,o))}))throw new e.Error(403,"Access denied");null!==o&&(n._id=o),i._collection.insert.call(i._collection,n)},f._validatedUpdate=function(r,o,a,c){var l=this;if(i(a,Object),c=Object.assign(Object.create(null),c),!n._selectorIsIdPerhapsAsObject(o))throw new Error("validated update should be of a single ID");if(c.upsert)throw new e.Error(403,"Access denied. Upserts not allowed in a restricted collection.");var s="Access
!function(){var e=Package.meteor.Meteor,o=Package.meteor.global,n=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,d=Package.tracker.Tracker,u=Package.tracker.Deps,f=Package["diff-sequence"].DiffSequence,_=Package["mongo-id"].MongoID,p=Package.check.check,m=Package.check.Match,g=Package.modules.meteorInstall,h=Package["babel-runtime"].meteorBabelHelpers,v=Package.promise.Promise,w=Package["ecmascript-runtime-client"].Symbol,C=Package["ecmascript-runtime-client"].Map,y=Package["ecmascript-runtime-client"].Set,b,k,I=g({node_modules:{meteor:{mongo:{"local_collection_driver.js":function(){b=function(){this.noConnCollections={}};var e=function(e,o){return e in o||(o[e]=new l(e)),o[e]};c.extend(b.prototype,{open:function(o,n){var t=this;return o?n?(n._mongo_livedata_collections||(n._mongo_livedata_collections={}),e(o,n._mongo_livedata_collections)):e(o,t.noConnCollections):new l}}),b=new b},"collection.js":function(o,n,i){function a(e,o){if(e)return o=o||c.identity,function(n,t){e(n,!n&&o(t))}}function d(e){if(e.length&&(void 0===e[e.length-1]||e[e.length-1]instanceof Function))return e.pop()}(k={}).Collection=function(o,n){var t=this;if(!(t instanceof k.Collection))throw new Error('use "new" to construct a Mongo.Collection');if(o||null===o||(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.)"),o=null),null!==o&&"string"!=typeof o)throw new Error("First argument to new Mongo.Collection must be a string or null");switch(n&&n.methods&&(n={connection:n}),n&&n.manager&&!n.connection&&(n.connection=n.manager),(n=c.extend({connection:void 0,idGeneration:"STRING",transform:null,_driver:void 0,_preventAutopublish:!1},n)).idGeneration){case"MONGO":t._makeNewID=function(){var e=o?s.randomStream("/collection/"+o):r.insecure;return new k.ObjectID(e.hexString(24))};break;case"STRING":default:t._makeNewID=function(){return(o?s.randomStream("/collection/"+o):r.insecure).id()};break}if(t._transform=l.wrapTransform(n.transform),o&&null!==n.connection?n.connection?t._connection=n.connection:e.isClient?t._connection=e.connection:t._connection=e.server:t._connection=null,n._driver||(o&&t._connection===e.server&&"undefined"!=typeof MongoInternals&&MongoInternals.defaultRemoteCollectionDriver?n._driver=MongoInternals.defaultRemoteCollectionDriver():n._driver=b),t._collection=n._driver.open(o,t._connection),t._name=o,t._driver=n._driver,t._connection&&t._connection.registerStore&&!t._connection.registerStore(o,{beginUpdate:function(e,o){(e>1||o)&&t._collection.pauseObservers(),o&&t._collection.remove({})},update:function(e){var o=_.idParse(e.id),n=t._collection.findOne(o);if("replace"!==e.msg)if("added"===e.msg){if(n)throw new Error("Expected not to find a document already present for an add");t._collection.insert(c.extend({_id:o},e.fields))}else if("removed"===e.msg){if(!n)throw new Error("Expected to find a document already present for removed");t._collection.remove(o)}else{if("changed"!==e.msg)throw new Error("I don't know how to deal with this message");if(!n)throw new Error("Expected to find a document to change");if(!c.isEmpty(e.fields)){var r={};c.each(e.fields,function(e,o){void 0===e?(r.$unset||(r.$unset={}),r.$unset[o]=1):(r.$set||(r.$set={}),r.$set[o]=e)}),t._collection.update(o,r)}}else{var i=e.replace;i?n?t._collection.update(o,i):t._collection.insert(i):n&&t._collection.remove(o)}},endUpdate:function(){t._collection.resumeObservers()},saveOriginals:function(){t._collection.saveOriginals()},retrieveOriginals:function(){return t._collection.retrieveOriginals()},getDoc:function(e){return t.findOne(e)},_getCollection:function(){return t}})){var i='There is already a collection named "'+o+'"';if(!0!==n._suppressSameNameError)throw new Error(i);console.warn?console.warn(i):console.log(i)}if(!1!==n.defineMutationMethods)try{t._defineMutationMethods({useExist
"undefined"==typeof Package&&(Package={}),Package["blaze-html-templates"]={};
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.tracker.Tracker,r=Package.tracker.Deps,i;(function(){(i=function(e,t){if(!(this instanceof i))return new i(e,t);this.curValue=e,this.equalsFunc=t,this.dep=new a.Dependency})._isEqual=function(e,t){var n=e;return n===t&&(!n||"number"==typeof n||"boolean"==typeof n||"string"==typeof n)},i.prototype.get=function(){return a.active&&this.dep.depend(),this.curValue},i.prototype.set=function(e){var t=this.curValue;(this.equalsFunc||i._isEqual)(t,e)||(this.curValue=e,this.dep.changed())},i.prototype.toString=function(){return"ReactiveVar{"+this.get()+"}"},i.prototype._numListeners=function(){var e=0;for(var t in this.dep._dependentsById)e++;return e}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["reactive-var"]={},{ReactiveVar:i})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r,i,o=(0,Package.modules.meteorInstall)({node_modules:{meteor:{jquery:{"main.js":function(e,t){var n=this;try{var r=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"==typeof n&&"object"==typeof n.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=ie.type(e);return"function"!==n&&!ie.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,n){if(ie.isFunction(t))return ie.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ie.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(de.test(t))return ie.filter(t,e,n);t=ie.filter(t,e)}return ie.grep(e,function(e){return ie.inArray(e,t)>=0!==n})}function i(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function o(e){var t=be[e]={};return ie.each(e.match(ve)||[],function(e,n){t[n]=!0}),t}function a(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(a(),ie.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Ne,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ce.test(n)?ie.parseJSON(n):n)}catch(e){}ie.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!ie.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(ie.acceptData(e)){var i,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)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=Q.pop()||ie.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ie.noop}),"object"!=typeof t&&"function"!=typeof t||(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),void 0!==n&&(o[ie.camelCase(t)]=n),"string"==typeof t?null==(i=o[t])&&(i=o[ie.camelCase(t)]):i=o,i}}function f(e,t,n){if(ie.acceptData(e)){var r,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)){i=(t=ie.isArray(t)?t.concat(ie.map(t,ie.camelCase)):t in r?[t]:(t=ie.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!u(r):!ie.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function d(){return!0}function p(){return!1}function h(){try{return he.activeElement}catch(e){}}function m(e){var t=Me.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==we?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==we?e.querySelectorAll(t||"*"):void 0;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));return void 0===t||t&&ie.nodeName(e,t)?ie.merge([e],o):o}function y(e){Ae.test(e.type)&&(e.defaultChecked=e.checked)}function v(e,t){return ie.nodeName(e,"table")&&ie.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==ie.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)ie._data(n,"globalEval",!t||ie._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&ie.hasData(e)){var n,r,i,o=ie._data(e),a=ie._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)ie.event.add(t,n,s[n][r])}a.data&&(a.data=ie.extend({},a.data))}}function C(e,t){var n,r,i;if(1==
"undefined"==typeof Package&&(Package={}),Package["standard-minifier-css"]={};
"undefined"==typeof Package&&(Package={}),Package["standard-minifier-js"]={};
"undefined"==typeof Package&&(Package={}),Package["shell-server"]={};
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,i=Package.jquery.$,o=Package.jquery.jQuery,r=Package.modules.meteorInstall,n=Package["babel-runtime"].meteorBabelHelpers,c=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,s=Package["ecmascript-runtime-client"].Set;r({node_modules:{meteor:{"ohif:polyfill":{client:{"index.js":function(e,t,a){a.watch(e("./all.js")),a.watch(e("./ie.js"))},"all.js":function(e,t,a){var i=void 0;a.watch(e("meteor/meteor"),{Meteor:function(e){i=e}},0);var o=void 0;a.watch(e("./lib/writeScript"),{default:function(e){o=e}},1),o("svg4everybody.min.js"),i.startup(function(){window.svg4everybody()})},"ie.js":function(e,t,a){var i=void 0;a.watch(e("./lib/writeScript"),{default:function(e){i=e}},0),navigator&&/MSIE \d|Trident.*rv:/.test(navigator.userAgent)&&i("typedarray.min.js")},lib:{"absoluteUrl.js":function(e,t,a){var i=void 0;a.watch(e("meteor/meteor"),{Meteor:function(e){i=e}},0),a.exportDefault(function(e){return e&&(e=e.replace(/^\//,"")),i.absoluteUrl(e)})},"writeScript.js":function(e,t,a){var i=void 0;a.watch(e("./absoluteUrl"),{default:function(e){i=e}},0),a.exportDefault(function(e){var t=i("/packages/ohif_polyfill/public/js/"+e);document.write('<script src="'+t+'"><\/script>')})}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ohif:polyfill/client/index.js"),"undefined"==typeof Package&&(Package={}),Package["ohif:polyfill"]={}}();
"undefined"==typeof Package&&(Package={}),Package["standard-app-packages"]={};
"undefined"==typeof Package&&(Package={}),Package.stylus={};
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.tracker.Tracker,i=Package.tracker.Deps,o=Package["mongo-id"].MongoID,a=Package["diff-sequence"].DiffSequence,c=Package.underscore._,f=Package.random.Random,u,d,s,l;(function(){function e(e){return e instanceof Array||c.isArray(e)}var n=function(){u._suppressWarnings?u._suppressWarnings--:("undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments),u._loggedWarnings++)},r=o.idStringify,i=o.idParse;u={_suppressWarnings:0,_loggedWarnings:0,observe:function(n,r){var i=null,o=null,f=[],u=t.autorun(function(){var u=n();t.nonreactive(function(){var n;if(o&&(f=c.map(i.fetch(),function(e){return{_id:e._id,item:e}}),o.stop(),o=null),u)if(e(u))n=s(f,u,r);else{if(!v(u))throw a();var t=l(f,u,r);n=t[0],o=t[1]}else n=d(f,r);p(f,n,r),i=u,f=n})});return{stop:function(){u.stop(),o&&o.stop()}}},fetch:function(n){if(n){if(e(n))return n;if(v(n))return n.fetch();throw a()}return[]}};var a=function(){return new Error("{{#each}} currently only accepts arrays, cursors or falsey values.")},v=function(e){return e&&c.isObject(e)&&c.isFunction(e.observe)&&c.isFunction(e.fetch)},p=function(e,n,t){var o=Package["diff-sequence"].DiffSequence.diffQueryOrderedChanges,a=[],f=[],u={},d={},s={},l=e.length;c.each(n,function(e,n){f.push({_id:e._id}),d[r(e._id)]=n}),c.each(e,function(e,n){a.push({_id:e._id}),u[r(e._id)]=n,s[r(e._id)]=n}),o(a,f,{addedBefore:function(e,i,o){var a=o?s[r(o)]:l;o&&c.each(s,function(e,n){e>=a&&s[n]++}),l++,s[r(e)]=a,t.addedAt(e,n[d[r(e)]].item,a,o)},movedBefore:function(e,i){if(e!==i){var o=s[r(e)],a=i?s[r(i)]:l;a>o&&a--,c.each(s,function(e,n){o<e&&e<a?s[n]--:a<=e&&e<o&&s[n]++}),s[r(e)]=a,t.movedTo(e,n[d[r(e)]].item,o,a,i)}},removed:function(n){var i=s[r(n)];c.each(s,function(e,n){e>=i&&s[n]--}),delete s[r(n)],l--,t.removedAt(n,e[u[r(n)]].item,i)}}),c.each(d,function(r,o){var a=i(o);if(c.has(u,o)){var f=n[r].item,d=e[u[o]].item;"object"!=typeof f&&f===d||t.changedAt(a,f,d,r)}})};d=function(e,n){return[]},s=function(e,t,i){var o={};return c.map(t,function(e,i){var a;if("string"==typeof e)a="-"+e;else if("number"==typeof e||"boolean"==typeof e||void 0===e||null===e)a=e;else{if("object"!=typeof e)throw new Error("{{#each}} doesn't support arrays with elements of type "+typeof e);a=e&&"_id"in e?e._id:i}var c=r(a);return o[c]?(e&&"object"==typeof e&&"_id"in e&&n("duplicate id "+a+" in",t),a=f.id()):o[c]=!0,{_id:a,item:e}})},l=function(e,n,r){var t=!0,i=[],o=n.observe({addedAt:function(e,n,o){if(t){if(null!==o)throw new Error("Expected initial data from observe in order");i.push({_id:e._id,item:e})}else r.addedAt(e._id,e,n,o)},changedAt:function(e,n,t){r.changedAt(e._id,e,n,t)},removedAt:function(e,n){r.removedAt(e._id,e,n)},movedTo:function(e,n,t,i){r.movedTo(e._id,e,n,t,i)}});return t=!1,[i,o]}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,n){for(var r in n)r in e||(e[r]=n[r])}(Package["observe-sequence"]={},{ObserveSequence:u})}();
!function(){var a=Package.tracker.Tracker,e=Package.tracker.Deps;"undefined"==typeof Package&&(Package={}),function(a,e){for(var c in e)c in a||(a[c]=e[c])}(Package.deps={},{Tracker:a,Deps:e})}();
!function(){var t=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){return t},s=Array.prototype.slice}).call(this),function(){var t=Object.prototype.hasOwnProperty,e=function(e,i){for(var r in i)t.call(i,r)&&(e[r]=i[r]);return e};o.Visitor=function(t){e(this,t)},o.Visitor.def=function(t){e(this.prototype,t)},o.Visitor.extend=function(t){var i=this,r=function t(){o.Visitor.apply(this,arguments)};return r.prototype=new i,r.extend=i.extend,r.def=i.def,t&&e(r.prototype,t),r},o.Visitor.def({visit:function(t){if(null==t)return this.visitNull.apply(this,arguments);if("object"==typeof t){if(t.htmljsType)switch(t.htmljsType){case o.Tag.htmljsType:return this.visitTag.apply(this,arguments);case o.CharRef.htmljsType:return this.visitCharRef.apply(this,arguments);case o.Comment.htmljsType:return this.visitComment.apply(this,arguments);case o.Raw.htmljsType:return this.visitRaw.apply(this,arguments);default:throw new Error("Unknown htmljs type: "+t.htmljsType)}return o.isArray(t)?this.visitArray.apply(this,arguments):this.visitObject.apply(this,arguments)}if("string"==typeof t||"boolean"==typeof t||"number"==typeof t)return this.visitPrimitive.apply(this,arguments);if("function"==typeof t)return this.visitFunction.apply(this,arguments);throw new Error("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){throw new Error("Unexpected object in htmljs: "+t)},visitFunction:function(t){throw new Error("Unexpected function in htmljs: "+t)}}),o.TransformingVisitor=o.Visitor.extend(),o.TransformingVisitor.def({visitNull:a,visitPrimitive:a,visitArray:function(t){for(var e=s.call(arguments),i=t,r=0;r<t.length;r++){var n=t[r];e[0]=n;var o=this.visit.apply(this,e);o!==n&&(i===t&&(i=t.slice()),i[r]=o)}return i},visitComment:a,visitCharRef:a,visitRaw:a,visitObject:a,visitFunction:a,visitTag:function(t){var e=t.children,i=s.call(arguments);i[0]=e;var r=this.visitChildren.apply(this,i),n=t.attrs;i[0]=n;var a=this.visitAttributes.apply(this,i);if(a===n&&r===e)return t;var l=o.getTag(t.tagName).apply(null,r);return l.attrs=a,l},visitChildren:function(t){return this.visitArray.apply(this,arguments)},visitAttributes:function(t){if(o.isArray(t)){for(var i=s.call(arguments),r=t,n=0;n<t.length;n++){var a=t[n];i[0]=a;var l=this.visitAttributes.apply(this,i);l!==a&&(r===t&&(r=t.slice()),r[n]=l)}return r}if(t&&o.isConstructedObject(t))throw new Error("The basic HTML.TransformingVisitor does not support foreign objects in attributes. Define a custom visitAttributes for this case.");var u=t,f=u;if(u){var c=[null,null];c.push.apply(c,arguments);for(var h in u){var p=u[h];c[0]=h,c[1]=p;var m=this.visitAttribute.apply(this,c);m!==p&&(f===u&&(f=e({},u)),f[h]=m)}}return f},visitAttribute:function(t,e,i){var r=s.call(arguments,2);return r[0]=e,this.visit.apply(this,r)}}),o.ToTextVisitor=o.Visitor.extend(),o.ToTextVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){var e=String(t);return this.textMode===o.TEXTMODE.RCDATA?e.replace(/&/g,"&amp;").replace(/</g,"&lt;"):this.textMode===o.TEXTMODE.ATTRIBUTE?e.replace(/&/g,"&amp;").replace(/"/g,"&quot;"):e},visitArray:function(t){for(var e=[],i=0;i<t.length;i++)e.push(this.visit(t[i]));return e.join("")},visitComment:function(t){throw new Error("Can't have a comment here")},visitCharRef:function(t){return this.textMode===o.TEXTMODE.RCDATA||this.textMode===o.TEXTMODE.ATTRIBUTE?t.html:t.str},visitRaw:function(t){return t.value},visitTag:function(t){return this.visit(this.toHTML(t))},visitObject:function(t){throw new Error("Unexpected object in htmljs in toText: "+t)},toHTML:function(t){return o.toHTML(t)}}),o.ToHTMLVisitor=o.Visitor.extend(),o.ToHTMLVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;")},visitArray:function(t){for(var e=[],i=
!function(){var e=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["ordered-dict"].OrderedDict,h=Package.htmljs.HTML,f,m,w,_,v;(function(){(f={})._escape=function(){var e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;","&":"&amp;"},t=function(t){return e[t]};return function(e){return e.replace(/[&<>"'`]/g,t)}}(),f._warn=function(e){e="Warning: "+e,"undefined"!=typeof console&&console.warn&&console.warn(e)};var e=Function.prototype.bind;f._bind=e?function(t,n){if(2===arguments.length)return e.call(t,n);for(var r=new Array(arguments.length),i=0;i<r.length;i++)r[i]=arguments[i];return e.apply(t,r.slice(1))}:c.bind}).call(this),function(){var e={};f._DOMBackend=e;var t=void 0!==i?i:"undefined"!=typeof Package?Package.jquery&&Package.jquery.jQuery:null;if(!t)throw new Error("jQuery not found");e._$jq=t,e.parseHTML=function(e){return t.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){var o=t(n),s=function(e){(e=t.event.fix(e)).currentTarget=e.target,t(e.currentTarget).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){var t=e.indexOf(".");return t>=0?e.slice(0,t):e}};var n=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(){var e=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){var o=new r(a),s=e.Teardown._CB_PROP;return i[s]||(i[s]=new r,t(i).on(e.Teardown._JQUERY_EVENT_NAME,n)),o.linkBefore(i[s]),o},tearDownElement:function(e){for(var n=[],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(){var t=this,n=t[e.Teardown._CB_PROP];if(n){for(var r=n.next;r!==n;)r.go(),r=r.next;n.go(),t[e.Teardown._CB_PROP]=null}}},e.findBySelector=function(e,n){return t(e,n)}}.call(this),function(){var e=Object.freeze?Object.freeze([]):[];f._DOMRange=function(n){if(!(this instanceof t))return new t(n);var r=n||e;if(!r||"number"!=typeof r.length)throw new Error("Expected array");for(var i=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};var t=f._DOMRange;t._USE_COMMENT_PLACEHOLDERS=function(){var e=!1,t=document.createTextNode("");try{t.someProp=!0}catch(t){e=!0}return e}(),t._insert=function(e,n,r,i){var a=e;a instanceof t?a.attach(n,r,i):i?t._moveNodeWithHooks(a,n,r):t._insertNodeWithHooks(a,n,r)},t._remove=function(e){var n=e;n instanceof t?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)throw new Error("Expected element, found: "+e);for(var t=null;e&&!t;)(t=e.$blaze_range||null)||(e=e.parentNode);return t},t.protot
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["observe-sequence"].ObserveSequence,a=Package.underscore._,u=Package.tracker.Tracker,i=Package.tracker.Deps,c=Package.htmljs.HTML,l=Package.blaze.Blaze,o=Package.blaze.UI,f=Package.blaze.Handlebars,p;(function(){var e=function(e,t){return e===t};(p={}).include=function(t,n,r){if(!t)return null;if("function"!=typeof t){var a=t;if(!l.isTemplate(a))throw new Error("Expected template or null, found: "+a);return(i=t.constructView(n,r)).__startsNewLexicalScope=!0,i}var u=l.ReactiveVar(null,e),i=l.View("Spacebars.include",function(){var e=u.get();if(null===e)return null;if(!l.isTemplate(e))throw new Error("Expected template or null, found: "+e);return e.constructView(n,r)});return i.__templateVar=u,i.onViewCreated(function(){this.autorun(function(){u.set(t())})}),i.__startsNewLexicalScope=!0,i},p.mustacheImpl=function(e){var t=arguments;if(t.length>1){var n=t[t.length-1];if(n instanceof p.kw){var r={};for(var a in n.hash){var u=n.hash[a];r[a]="function"==typeof u?u():u}t[t.length-1]=p.kw(r)}else n=p.kw(),(t=Array.prototype.slice.call(arguments)).push(n)}return p.call.apply(null,t)},p.mustache=function(e){var t=p.mustacheImpl.apply(null,arguments);return t instanceof p.SafeString?c.Raw(t.toString()):null==t||!1===t?null:String(t)},p.attrMustache=function(e){var t=p.mustacheImpl.apply(null,arguments);if(null==t||""===t)return null;if("object"==typeof t)return t;if("string"==typeof t&&c.isValidAttributeName(t)){var n={};return n[t]="",n}throw new Error("Expected valid attribute name, '', null, or object")},p.dataMustache=function(e){return p.mustacheImpl.apply(null,arguments)},p.makeRaw=function(e){return null==e?null:e instanceof c.Raw?e:c.Raw(e)},p.call=function(e){if("function"==typeof e){for(var t=[],n=1;n<arguments.length;n++){var r=arguments[n];t[n-1]="function"==typeof r?r():r}return e.apply(null,t)}if(null!=e&&arguments.length>1)throw new Error("Can't call non-function: "+e);return e},p.kw=function(e){if(!(this instanceof p.kw))return new p.kw(e);this.hash=e||{}},p.SafeString=function(e){return this instanceof p.SafeString?new f.SafeString(e):new p.SafeString(e)},p.SafeString.prototype=f.SafeString.prototype,p.dot=function(e,t){if(arguments.length>2){var n=[];return n.push(p.dot(e,t)),n.push.apply(n,Array.prototype.slice.call(arguments,2)),p.dot.apply(null,n)}if("function"==typeof e&&(e=e()),!e)return e;var r=e[t];return"function"!=typeof r?r:function(){return r.apply(e,arguments)}},p.With=function(e,t,n){var r=new l.ReactiveVar,a=l.View("Spacebars_with",function(){return l.If(function(){return r.get()},function(){return l.With(function(){return r.get()},t)},n)});return a.onViewCreated(function(){this.autorun(function(){r.set(e()),u.onInvalidate(function(){r.dep.changed()})})}),a},p.TemplateWith=l._TemplateWith}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.spacebars={},{Spacebars:p})}();
"undefined"==typeof Package&&(Package={}),Package["templating-compiler"]={};
!function(){var e=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;var e="__proto__ name".split(" ");l.__checkName=function(t){if(t in l||a.contains(e,t)){if(l[t]instanceof l&&"body"!==t)throw new Error("There are multiple templates named '"+t+"'. Each template needs a unique name.");throw new Error("This template name is reserved: "+t)}},l.__define__=function(e,t){l.__checkName(e),l[e]=new l("Template."+e,t),l[e]._NOWARN_OLDSTYLE_HELPERS=!0},l.body=new l("body",function(){var e=this;return a.map(l.body.contentRenderFuncs,function(t){return t.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){var e=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=new l("Template.__dynamic",function(){var e=this;return[o.View("lookup:checkContext",function(){return i.mustache(e.lookup("checkContext"))}),"\n ",o.If(function(){return i.call(e.lookup("dataContextPresent"))},function(){return["\n ",i.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return o._InOuterTemplateScope(e,function(){return i.include(function(){return i.call(e.templateContentBlock)})})}),"\n "]},function(){return["\n \n ",o._TemplateWith(function(){return{template:i.call(e.lookup("template")),data:i.call(e.lookup(".."))}},function(){return i.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return o._InOuterTemplateScope(e,function(){return i.include(function(){return i.call(e.templateContentBlock)})})})}),"\n "]})]}),l.__checkName("__dynamicWithDataContext"),l.__dynamicWithDataContext=new l("Template.__dynamicWithDataContext",function(){var e=this;return i.With(function(){return i.dataMustache(e.lookup("chooseTemplate"),e.lookup("template"))},function(){return["\n \n ",o._TemplateWith(function(){return i.call(i.dot(e.lookup(".."),"data"))},function(){return i.include(e.lookupTemplate(".."),function(){return o._InOuterTemplateScope(e,function(){return i.include(function(){return i.call(e.templateContentBlock)})})})}),"\n "]})})}.call(this),function(){var e=o.Template;e.__dynamicWithDataContext.helpers({chooseTemplate:function(t){return o._getTemplate(t,function(){return e.instance()})}}),e.__dynamic.helpers({dataContextPresent:function(){return a.has(this,"data")},checkContext:function(){if(!a.has(this,"template"))throw new Error("Must specify name in the 'template' argument to {{> Template.dynamic}}.");a.each(this,function(e,t){if("template"!==t&&"data"!==t)throw new Error("Invalid argument to {{> Template.dynamic}}: "+t)})}})}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["templating-runtime"]={},{Template:l})}();
!function(){var a=Package["templating-runtime"].Template;"undefined"==typeof Package&&(Package={}),function(a,e){for(var n in e)n in a||(a[n]=e[n])}(Package.templating={},{Template:a})}();
!function(){var a=Package.blaze.Blaze,e=Package.blaze.UI,n=Package.blaze.Handlebars;"undefined"==typeof Package&&(Package={}),function(a,e){for(var n in e)n in a||(a[n]=e[n])}(Package.ui={},{Blaze:a,UI:e,Handlebars:n})}();
!function(){var e=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"])throw new Error("\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={}).utils={},i.utils.assert=function(e,t){if(!e)throw new Error(t)},i.utils.warn=function(e,t){e||console&&console.warn&&console.warn(t)},i.utils.defaultValue=function(e,t,n){return void 0===e[t]?(e[t]=n,n):e[t]},i.utils.inherits=function(e,t,n){i.utils.assert(void 0!==e,"Child is undefined in inherits function"),i.utils.assert(void 0!==t,"Parent is undefined in inherits function");for(var a in t)r.has(t,a)&&(e[a]=o.clone(t[a]));var s=function(){this.constructor=e};return s.prototype=t.prototype,e.prototype=new s,e.__super__=t.prototype,r.isObject(n)&&r.extend(e.prototype,n),e},i.utils.extend=function(e,t){t=t||{};var n=function(){var e;(e=r.has(t,"constructor")?t.constructor:n.__super__.constructor).apply(this,arguments)};return i.utils.inherits(n,e,t)},i.utils.global=e.isClient?window:t,i.utils.namespace=function(e,t){var n=i.utils.global,r,o,a,s;i.utils.assert("string"==typeof e,"namespace must be a string"),a=(r=e.split(".")).pop(),s=n;for(var c=0;c<r.length;c++)s=s[o=r[c]]=s[o]||{};return 2===arguments.length?(s[a]=t,t):s[a]},i.utils.resolve=function(e){var t=i.utils.global,n,r;if("string"==typeof e){n=e.split("."),r=t;for(var o=0;o<n.length;o++)if(!(r=r[n[o]]))return}else r=e;return r},i.utils.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1,e.length)},i.utils.classCase=function(e){var t=/_|-|\.|\//;return e?r.map(e.split(t),function(e){return i.utils.capitalize(e)}).join(""):""},i.utils.camelCase=function(e){var t=i.utils.classCase(e);return t=t.charAt(0).toLowerCase()+t.slice(1,t.length)},i.utils.notifyDeprecated=function(e){var t,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"!=typeof console&&console.warn&&console.warn("<deprecated> "+o.replace(":name",t).replace(":instead",n).replace(":where",i)+" "+(new Error).stack)},i.utils.withDeprecatedNotice=function(e,t,n){return function(){return Utils.notifyDeprecated(e),t&&t.apply(n||this,arguments)}},Function.prototype.deprecate=function(e){var t=this;return i.utils.withDeprecatedNotice(e,t)},i.utils.debug=function(e){return i.utils.assert("string"==typeof e,"debug requires a package name"),function t(){if(console&&console.log&&!0===i.debug){var n=r.toArray(arguments).join(" ");console.log("%c<"+e+"> %c"+n,"color: #999;","color: #000;")}}},i.utils.get=function(e){for(var t=1;t<arguments.length;t++){if(!(e&&arguments[t]in e))return;e=e[arguments[t]]}return e},i.utils.global.Iron=i}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["iron:core"]={},{Iron:i})}();
!function(){var e=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,_=Package.htmljs.HTML,f=Package.spacebars.Spacebars,v;(function(){if(Package["cmather:iron-dynamic-template"])throw new Error("\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__=new h("Template.__DynamicTemplateError__",function(){var e=this;return _.DIV({style:"margin: 0 auto; color: red;"},"\n ",a.View("lookup:msg",function(){return f.mustache(e.lookup("msg"))}),"\n ")})}.call(this),function(){var e=m.utils.debug("iron:dynamic-template"),t=m.utils.assert,n=m.utils.get,i=m.utils.camelCase,u=function(e){return Object.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=new c.Dependency,this._dataDep=new c.Dependency,this._lookupHostDep=new c.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}).prototype.template=function(e){if(1===arguments.length&&e!==this._template)return this._template=e,void this._templateDep.changed();if(!(arguments.length>0))return this._templateDep.depend(),this._template?"function"==typeof this._template?this._template():this._template:this._defaultTemplate?"function"==typeof this._defaultTemplate?this._defaultTemplate():this._defaultTemplate:void 0},v.prototype.defaultTemplate=function(e){if(1!==arguments.length)return this._defaultTemplate;this._defaultTemplate=e},v.prototype.clear=function(){this._template=void 0,this._data=void 0,this._templateDep.changed()},v.prototype.data=function(e){return 1===arguments.length&&e!==this._data?(this._data=e,void this._dataDep.changed()):(this._dataDep.depend(),"function"==typeof this._data?this._data():this._data)},v.prototype.create=function(e){var t=this;if(this.isCreated)throw new Error("DynamicTemplate view is already created");this.isCreated=!0,this.isDestroyed=!1;var n=p(null),r=a.View("DynamicTemplate",function(){var e=this,r=n.get();return a.With(function(){var n=t.data();return void 0!==n?n:v.getParentDataContext(e)},function(){return t.renderView(r)})});return r.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=new a.TemplateInstance(r),r.templateInstance=function(){var e=r._templateInstance;return e.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){var t=this,n=null;return"string"==typeof e?((n=h[e])||(n=h[i(e)]),n||(n=a.With({msg:"Couldn't find a t
!function(){var e=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(){var e=[];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)throw new Error("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__=new r("Template.__IronDefaultLayout__",function(){var e=this;return g.include(e.lookupTemplate("yield"))})}.call(this),function(){var e=h.DynamicTemplate,n=h.utils.inherits;d=function(e){for(;e;){if("Iron.Layout"===e.name)return e.__dynamicTemplate__;e=e.parentView}return null},m=(p=function(e){var n=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)}).DEFAULT_REGION="main",n(p,h.DynamicTemplate),p.prototype.region=function(e,n){return this._ensureRegion(e,n)},p.prototype.destroyRegions=function(){s.each(this._regions,function(e){e.destroy()}),this._regions={}},p.prototype.render=function(e,n){var t=(n=n||{}).to||n.region||m,r=this.region(t);this._trackRenderedRegion(t),r.template(e),r.data(n.data)},p.prototype.has=function(e){return e=e||p.DEFAULT_REGION,!!this._regions[e]},p.prototype.regionKeys=function(){return s.keys(this._regions)},p.prototype.clear=function(e){return e=e||p.DEFAULT_REGION,this.has(e)&&this.region(e).template(null),this},p.prototype.clearAll=function(){return s.each(this._regions,function(e){e.template(null)}),this},p.prototype.beginRendering=function(e){var n=this;if(this._finishRenderingTransaction&&this._finishRenderingTransaction(),this._finishRenderingTransaction=s.once(function(){var t=n._endRendering({flush:!1});e&&e(t)}),u.afterFlush(this._finishRenderingTransaction),this._renderedRegions)throw new Error("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){!1!==(e=e||{}).flush&&u.flush();var n=this._renderedRegions||{};return this._renderedRegions=null,s.keys(n)},s.each(["onRegionCreated","onRegionRendered","onRegionDestroyed"],function(e){p.prototype[e]=function(n){return(this._regionHooks[e]=this._regionHooks[e]||[]).push(n),this}}),p.prototype._ensureRegion=function(e,n){return this._regions[e]=this._regions[e]||this._createDynamicTemplate(e,n)},p.prototype._createDynamicTemplate=function(e,n){var t=this,r=new h.DynamicTemplate(n),o=h.utils.capitalize;return r._region=e,s.each(["viewCreated","viewReady","viewDestroyed"],function(e){e=o(e),r["on"+e](function(n){var r=this,o={viewCreated:"regionCreated",viewReady:"regionRendered",viewDestroyed:"regionDestroyed"}[e];t._runRegionHooks("on"+o,r,n)})}),r},p.prototype._runRegionHooks=function(e,n,t){for(var r=this,o=this._regionHooks[e]||[],i,a=0;a<o.length;a++)(i=o[a]).call(n,t.region,t,this)},void 0!==r
!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,i=Package["iron:core"].Iron,o,a;(function(){function e(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function r(o,a,s){a&&"[object Array]"!==t(a)&&(s=a,a=null),a=a||[];var c=(s=s||{}).strict,u=!1!==s.end,p=s.sensitive?"":"i",l=0;if(o instanceof RegExp){var h=o.source.match(/\((?!\?)/g)||[];return a.push.apply(a,h.map(function(e,r){return{name:r,delimiter:null,optional:!1,repeat:!1}})),i(o,a)}if("[object Array]"===t(o))return o=o.map(function(e){return r(e,a,s).source}),i(new RegExp("(?:"+o.join("|")+")",p),a);var f="/"===(o=o.replace(n,function(r,t,n,i,o,s,c,u){if(t)return t;if(u)return"\\"+u;var p="+"===c||"*"===c,h="?"===c||"*"===c;return a.push({name:i||l++,delimiter:n||"/",optional:h,repeat:p}),n=n?"\\"+n:"",o=e(o||s||"[^"+(n||"\\/")+"]+?"),p&&(o=o+"(?:"+n+o+")*"),h?"(?:"+n+"("+o+"))?":n+"("+o+")"}))[o.length-1];return c||(o=(f?o.slice(0,-2):o)+"(?:\\/(?=$))?"),u||(o+=c&&f?"":"(?=\\/|$)"),i(new RegExp("^"+o+(u?"$":""),p),a)}var t=function(e){return Object.prototype.toString.call(e)},n=new RegExp(["(\\\\.)","([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?","([.+*?=^!:${}()[\\]|\\/])"].join("|"),"g"),i=function(e,r){return e.keys=r,e};o=r}).call(this),function(){function e(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(r){return void(r.constructor==URIError&&t("Tried to decode an invalid URI component: "+JSON.stringify(e)+" "+r.stack))}}function r(e){try{return decodeURI(e.replace(/\+/g," "))}catch(r){return void(r.constructor==URIError&&t("Tried to decode an invalid URI: "+JSON.stringify(e)+" "+r.stack))}}var t=i.utils.warn;(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))}).normalize=function(e){if(e instanceof RegExp)return e;if("string"!=typeof e)return"/";var r=a.parse(e).pathname;return"/"!==r.charAt(0)&&(r="/"+r),r.length>1&&"/"===r.charAt(r.length-1)&&(r=r.slice(0,r.length-1)),r},a.isSameOrigin=function(e,r){var t=a.parse(e),n=a.parse(r);return t.origin===n.origin},a.fromQueryString=function(r){if(!r)return{};if("string"!=typeof r)throw new Error("expected string");"?"===r.charAt(0)&&(r=r.slice(1));var t=r.split("&"),i={},o;return n.each(t,function(r){var t=r.split("="),n=e(t[0]),o=e(t[1]);void 0!==n&&void 0!==o&&"[]"===n.slice(-2)?(n=n.slice(0,-2),i[n]=i[n]||[],i[n].push(o)):i[n]=o}),i},a.toQueryString=function(e){var r=[];return"string"==typeof e?"?"!==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"!=typeof e)return{};var r=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,t=e.match(r),n=t[1]?t[1].toLowerCase():void 0,i=!!t[3],o=t[4]?t[4].toLowerCase():void 0,s=o?o.split("@"):[],c,u;2==s.length?(u=s[0],c=s[1]):1==s.length?(c=s[0],u=void 0):(c=void 0,u=void 0);var p=c&&c.split(":")||[],l=p[0],h=p[1],f=n&&c?n+"//"+c:void 0,g=t[5],d=t[8],m=e,v=t[6],y,w=d&&d.indexOf("?")||-1;~w&&!v?(v=d.slice(w),d=d.substr(0,w),y=v.slice(1)):y=t[7];var R=g+(v||""),x=a.fromQueryString(y),U=[n||"",i?"//":"",o||""].join(""),S=[n||"",i?"//":"",o||"",g||"",v||"",d||""].join("");return{rootUrl:U||"",originalUrl:e||"",href:S||"",protocol:n||"",auth:u||"",host:c||"",hostname:l||"",port:h||"",origin:f||"",path:R||"",pathname:g||"",search:v||"",query:y||"",queryObject:x||"",hash:d||"",slashes:i}},a.prototype.test=function(e){return this.regexp.test(a.normalize(e))},a.prototype.exec=function(e){return this.regexp.exec(a.normalize(e))},a.prototype.params=function(t){if(!t)return[];var n=[],i=this.exec(t),o,s=this.keys,c,u;if(!i)throw new Error('The route named "'+this.name+'" does not match the path "'+t+'"');for(var p=1,l=i.length;p<l;++p)c=s[p-1],u="string"==typeof i[p]?e(i[p]):i[p],c?n[c.name]=void 0!==n[c.name]?n[c.name]:u:n.push(u);return void 0!==r(t)&&((o=t.split("?")[1])&&(o=
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,o=Package["iron:core"].Iron,a,s;(function(){var t=o.Url;(a=function(e,n,i){r.isFunction(e)&&(i=i||n||{},n=e,e="/",this.middleware=!0,void 0===i.mount&&(i.mount=!0)),"object"==typeof n&&(n=(i=n).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"==typeof e&&"/"!==e.charAt(0)?this.name=e:"string"==typeof e&&"/"!==e&&(this.name=e.split("/").slice(1).join(".")),"string"==typeof(e=i.path||e)&&"/"!==e.charAt(0)&&(e="/"+e),this.path=e,this.compiledUrl=new t(e,i),r.isString(n)?this.handle=function t(){var e=this[n];if("function"!=typeof e)throw new Error("No method named "+JSON.stringify(n)+" found on handler.");return e.apply(this,arguments)}:r.isFunction(n)&&(this.handle=n)}).prototype.test=function(t,e){e=e||{};var n=this.compiledUrl.test(t),r=!0,i=!0;return this.method&&e.method&&(r=this.method==e.method.toLowerCase()),e.where&&(i=this.where==e.where),n&&r&&i},a.prototype.params=function(t){return this.compiledUrl.params(t)},a.prototype.resolve=function(t,e){return this.compiledUrl.resolve(t,e)},a.prototype.clone=function(){var t=new a(this.path,this.handle,this.options);return t.name=this.name,t}}).call(this),function(){var e=o.Url,n=o.utils.assert,h=o.utils.defaultValue;(s=function(){this._stack=[],this.length=0}).prototype._create=function(t,e,n){var i=new a(t,e,n),o=i.name;if(o){if(r.has(this._stack,o))throw new Error("Handler with name '"+o+"' already exists.");this._stack[o]=i}return i},s.prototype.findByName=function(t){return this._stack[t]},s.prototype.push=function(t,e,n){var r=this._create(t,e,n);return this._stack.push(r),this.length++,r},s.prototype.append=function(){var t=this,e=r.toArray(arguments),n={};return"object"==typeof e[e.length-1]&&(n=e.pop()),r.each(e,function(e){if(void 0!==e)if("function"==typeof e)t.push(e,n);else{if(!r.isArray(e))throw new Error("Can only append functions or arrays to the MiddlewareStack");t.append.apply(t,e.concat([n]))}}),this},s.prototype.insertAt=function(t,e,n,r){var i=this._create(e,n,r);return this._stack.splice(t,0,i),this.length=this._stack.length,this},s.prototype.insertBefore=function(t,e,n,i){var o,a;if(!(o=this._stack[t]))throw new Error("Couldn't find a handler named '"+t+"' on the path stack");return a=r.indexOf(this._stack,o),this.insertAt(a,e,n,i),this},s.prototype.insertAfter=function(t,e,n,i){var o,a;if(!(o=this._stack[t]))throw new Error("Couldn't find a handler named '"+t+"' on the path stack");return a=r.indexOf(this._stack,o),this.insertAt(a+1,e,n,i),this},s.prototype.concat=function(){var t=new s,e=Array.prototype.concat,n=i.clone(this._stack),o=r.map(r.toArray(arguments),function(t){return i.clone(t._stack)});return t._stack=e.apply(n,o),t.length=t._stack.length,t},s.prototype.dispatch=function r(i,o,a){var s=this,l=i;n("string"==typeof i,"Requires url"),n("object"==typeof o,"Requires context object"),i=e.normalize(i||"/"),h(o,"request",{}),h(o,"response",{}),h(o,"originalUrl",i),h(o,"_method",o.method),h(o,"_handlersForEnv",{client:!1,server:!1}),h(o,"_handled",!1),h(o,"isHandled",function(){return o._handled}),h(o,"willBeHandledOnClient",function(){return o._handlersForEnv.client}),h(o,"willBeHandledOnServer",function(){return o._handlersForEnv.server});var c=function(){if(a)try{a.apply(this,arguments)}catch(t){throw t._punt=!0,t}},u=0,p=t.bindEnvironment(function n(r){var a=s._stack[u++];if(o.url=o.request.url=o.originalUrl,!a)return c.call(o,r);if(!a.test(i,{method:o._method}))return p(r);var h=t.isClient?"client":"server";if(a.middleware||(o._handlersForEnv[a.where]=!0),a.where!==h)return p(r);if(o.next=p,a.mount){var l=e.normalize(a.compiledUrl.pathname),d=i.substr(l.length,i.length);d=e.normalize(d),o.url=o.request.url=d}try{var f=a.handle.length,m=o.request,y=o.response;return r&&4===f?a.handle.call(o,r,m,y,p):!r&&f<4?a.handle.call(o,m,y,p):p(r)}catch(r){if(r._punt)throw r;
!function(){var t=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,u,l,f,p;(function(){var t=s.Url,e="__hash__";h=function(e){var n=t.parse(e),a=n.hash&&n.hash.replace("#",""),r=n.search,o=n.pathname,i=n.rootUrl;if(a&&"!"!==a.charAt(0)){var c="__hash__="+a;r=r?r+"&":"?",r+=c,a=""}return!a&&o?a="#!"+o.substring(1):a&&(a="#"+a),[i,a,r].join("")},u=function(e){var n=t.parse(e),r=n.hash&&n.hash.replace("#!","/"),o=n.search,i=n.rootUrl,c;return a.has(n.queryObject,"__hash__")?(c="#"+n.queryObject.__hash__,delete n.queryObject.__hash__):c="",[i,r,t.toQueryString(n.queryObject),c].join("")},l=function(e){var n=t.parse(e),a=n.queryObject;return n.hash&&(a.__hash__=n.hash.replace("#","")),["!",n.pathname.substring(1),t.toQueryString(a)].join("")}}).call(this),function(){var t=s.Url;(f=function(e,n){a.extend(this,t.parse(e),{options:n||{}})}).prototype.equals=function(t){return!!t&&(t instanceof f&&(t.pathname==this.pathname&&t.search==this.search&&t.hash==this.hash&&t.options.historyState===this.options.historyState))},f.prototype.isCancelled=function(){return!!this._isCancelled},f.prototype.cancelUrlChange=function(){this._isCancelled=!0}}.call(this),function(){var e=s.Url,n=null,r=new o.Dependency,c={go:[],popState:[]},g=function(){return/MSIE 9/.test(navigator.appVersion)},y=function(){return/MSIE 8/.test(navigator.appVersion)},_=function(){return!!Package.appcache},d=function(){return"undefined"==typeof history||"function"!=typeof history.pushState},S=function(){return p.options.useHashPaths||y()||g()||_()||d()},v=function(){return!!p.options.useHashPaths},k=function(t,e){a.each(c[t],function(t){t.call(e)})},w=function(t){if(!(t instanceof f))throw new Error("Expected a State instance");return!t.equals(n)&&(n=t,r.changed(),!0)},P=function(){var t=location.href,e;e=v()?new f(u(t)):new f(t,{historyState:history.state}),k("popState",e),w(e)},m=function(t){var e=q;e&&e(t)},j=function(t,e){var n=new f(t,e=e||{});k("go",n),w(n)&&o.afterFlush(function(){n.isCancelled()||(v()?location.hash=l(t):!0===e.replaceState?history.replaceState(e.historyState,null,t):history.pushState(e.historyState,null,t))})},q=function(t){try{var n=t.currentTarget,a=n.href,r=n.pathname+n.search+n.hash;if(r=r.replace(/(^\/?)/,"/"),t.isDefaultPrevented())return void t.preventDefault();if(t.metaKey||t.ctrlKey||t.shiftKey)return;if(n.target)return;if(!e.isSameOrigin(a,location.href))return;t.preventDefault(),j(r)}catch(e){throw t.preventDefault(),e}};(p={}).options={linkSelector:"a[href]",useHashPaths:!1},p.configure=function(t){a.extend(this.options,t||{})},p.get=function(){return r.depend(),n},p.start=function(){if(!this._isStarted){var n=e.parse(location.href);if(S()){if(n.pathname.length>1){var a=h(location.href);window.location=a}this.configure({useHashPaths:!0})}var r=location.href;if(v()){var o=new f(u(r));w(o)}else{if("!"===n.hash.replace("#","")[0])var r=u(r);var c={initial:!0};history.replaceState(c,null,r);var o=new f(r,{historyState:c});w(o)}i(window).on("popstate.iron-location",P),i(window).on("hashchange.iron-location",P),t.startup(function(){i(document).on("click.iron-location",p.options.linkSelector,m)}),this._isStarted=!0}},p.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)},p.onClick=function(t){q=t},p.go=function(t,e){return j(t,e)},p.onGo=function(t){c.go.push(t)},p.onPopState=function(t){c.popState.push(t)},p.start(),s.Location=p}.call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var n in e)n in t||(t[n]=e[n])}(Package["iron:location"]={},{urlToHashStyle:h,urlFromHashStyle:u})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,i=Package.underscore._,n=Package.tracker.Tracker,r=Package.tracker.Deps,s=Package.ejson.EJSON,c=Package.modules.meteorInstall,o=Package["babel-runtime"].meteorBabelHelpers,u=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,d=Package["ecmascript-runtime-client"].Map,f=Package["ecmascript-runtime-client"].Set,k,y=c({node_modules:{meteor:{"reactive-dict":{"reactive-dict.js":function(e){function t(e){return e&&e.__esModule?e:{default:e}}var a=t(e("babel-runtime/helpers/slicedToArray")),r=t(e("babel-runtime/helpers/typeof")),c=function(e){return void 0===e?"undefined":s.stringify(e)},o=function(e){if(void 0!==e&&"undefined"!==e)return s.parse(e)},u=function(e){e&&e.changed()};k=function(e){if(e)if("string"==typeof e)k._registerDictForMigrate(e,this),this.keys=k._loadMigratedDict(e)||{},this.name=e;else{if("object"!==(void 0===e?"undefined":(0,r.default)(e)))throw new Error("Invalid ReactiveDict argument: "+e);this.keys={};for(var t=Object.entries(e),i=Array.isArray(t),s=0,t=i?t:t[l.iterator]();;){var o;if(i){if(s>=t.length)break;o=t[s++]}else{if((s=t.next()).done)break;o=s.value}var u=o,d=(0,a.default)(u,2),f=d[0],y=d[1];this.keys[f]=c(y)}}else this.keys={};this.allDeps=new n.Dependency,this.keyDeps={},this.keyValueDeps={}},i.extend(k.prototype,{set:function(e,t){var a=this;if("object"!==(void 0===e?"undefined":(0,r.default)(e))||void 0!==t){var n=e;t=c(t);var s=i.has(a.keys,n),o=s?a.keys[n]:"undefined",l=t!==o;a.keys[n]=t,!l&&s||a.allDeps.changed(),l&&(u(a.keyDeps[n]),a.keyValueDeps[n]&&(u(a.keyValueDeps[n][o]),u(a.keyValueDeps[n][t])))}else a._setObject(e)},setDefault:function(e,t){var a=this;if("object"!==(void 0===e?"undefined":(0,r.default)(e))||void 0!==t){var n=e;i.has(a.keys,n)||a.set(n,t)}else a._setDefaultObject(e)},get:function(e){var t=this;return t._ensureKey(e),t.keyDeps[e].depend(),o(t.keys[e])},equals:function(e,t){var a=this,r=null;if(Package.mongo&&(r=Package.mongo.Mongo.ObjectID),!("string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||r&&t instanceof r||null===t))throw new Error("ReactiveDict.equals: value must be scalar");var u=c(t);n.active&&(a._ensureKey(e),i.has(a.keyValueDeps[e],u)||(a.keyValueDeps[e][u]=new n.Dependency),a.keyValueDeps[e][u].depend()&&n.onInvalidate(function(){a.keyValueDeps[e][u].hasDependents()||delete a.keyValueDeps[e][u]}));var l=void 0;return i.has(a.keys,e)&&(l=o(a.keys[e])),s.equals(l,t)},all:function(){this.allDeps.depend();var e={};return i.each(this.keys,function(t,a){e[a]=o(t)}),e},clear:function(){var e=this,t=e.keys;e.keys={},e.allDeps.changed(),i.each(t,function(t,a){u(e.keyDeps[a]),e.keyValueDeps[a]&&(u(e.keyValueDeps[a][t]),u(e.keyValueDeps[a].undefined))})},delete:function(e){var t=this,a=!1;if(i.has(t.keys,e)){var n=t.keys[e];delete t.keys[e],u(t.keyDeps[e]),t.keyValueDeps[e]&&(u(t.keyValueDeps[e][n]),u(t.keyValueDeps[e].undefined)),t.allDeps.changed(),a=!0}return a},_setObject:function(e){var t=this;i.each(e,function(e,a){t.set(a,e)})},_setDefaultObject:function(e){var t=this;i.each(e,function(e,a){t.setDefault(a,e)})},_ensureKey:function(e){var t=this;e in t.keyDeps||(t.keyDeps[e]=new n.Dependency,t.keyValueDeps[e]={})},_getMigrationData:function(){return this.keys}})},"migration.js":function(){if(k._migratedDictData={},k._dictsToMigrate={},k._loadMigratedDict=function(e){return i.has(k._migratedDictData,e)?k._migratedDictData[e]:null},k._registerDictForMigrate=function(e,t){if(i.has(k._dictsToMigrate,e))throw new Error("Duplicate ReactiveDict name: "+e);k._dictsToMigrate[e]=t},e.isClient&&Package.reload){var t=Package.reload.Reload._migrationData("reactive-dict");t&&t.dicts&&(k._migratedDictData=t.dicts),Package.reload.Reload._onMigrate("reactive-dict",function(){var e=k._dictsToMigrate,t={};for(var a in o.sanitizeForInObject(e))t[a]=e[a]._getMigrationData();return[!0,{dicts:t}]})}}}}}},{extensions:[".js",".json"]});y("./node_modules/meteor/reactive-dict/reactive-dict.js"),y("./node_modules/meteor/reactive-dict/migr
!function(){var t=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,h=Package.htmljs.HTML,y,f;(function(){var t=s.utils.assert,e=function(){for(var t={},e=i.currentComputation;e;)t[String(e._id)]=!0,e=e._parent;return t},n=function(n){var o=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.")})};(y=function(){this._readyDep=new i.Dependency,this._comps=[],this._notReadyCount=0}).prototype.wait=function(t){var e=this,o=i.currentComputation;n(e._readyDep),i.nonreactive(function(){var n=null,r=i.autorun(function(a){var o=!!t(),i=e._notReadyCount;a.firstRun&&!o?e._notReadyCount++:null!==n&&o!==n&&!0===o?e._notReadyCount--:null!==n&&o!==n&&!1===o&&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),!1===n&&(e._notReadyCount--,0===e._notReadyCount&&e._readyDep.changed())})})})},y.prototype.ready=function(){return this._readyDep.depend(),0===this._notReadyCount},y.prototype.stop=function(){a.each(this._comps,function(t){t.stop()}),this._comps=[]},s.WaitList=y}).call(this),function(){var t=s.utils.debug("iron:controller"),e=s.Layout,n=s.DynamicTemplate,o=function(t,e){return function(){return"function"==typeof t?t.apply(e,arguments):t}};(f=function(t){var n=this;this.options=t||{},this._layout=this.options.layout||new e(this.options),this._isController=!0,this._layout._setLookupHost(this);var a=f._collectEventMaps.call(this.constructor);this._layout.events(a,this),this.init(t)}).prototype.layout=function(t,e){var n=this;return this._layout.template(t),e&&a.has(e,"data")&&this._layout.data(o(e.data,this)),{data:function(t){return n._layout.data(o(t,n))}}},f.prototype.render=function(t,e){var n=this;e&&void 0!==e.data&&(e.data=o(e.data,this));var a=this._layout.render(t,e);return{data:function(t){return a.data(o(t,n))}}},f.prototype.beginRendering=function(t){return this._layout.beginRendering(t)},f.extend=function(t){return s.utils.extend(this,t)},f.events=function(t){return this._eventMap=t,this};var i=function(t,e){var n={};return t.__super__&&a.extend(n,i(t.__super__.constructor,e)),a.has(t,e)?a.extend(n,t[e]):n};f._collectEventMaps=function(){return i(this,"_eventMap")},f._helpers={},f.helpers=function(t){return a.extend(this._helpers,t),this},void 0!==u&&(s.controller=function(){return n.findLookupHostWithProperty(c.getView(),"_isController")},u.registerHelper("get",function(t){var e=s.controller();if(e&&e.state)return e.state.get(t)})),s.Controller=f}.call(this),function(){var t=s.Layout,e=s.utils.debug("iron:controller"),n=s.utils.defaultValue,o=function(t,e){return function(){return"function"==typeof t?t.apply(e,arguments):t}};f.prototype.init=function(t){this._waitlist=new y,this.state=new r},f.prototype.insert=function(t){return this._layout.insert.apply(this._layout,arguments)},f.prototype.wait=function(t){var e=this;if(t)return a.isArray(t)?a.each(t,function t(n){e.wait(n)}):t.ready?this._waitlist.wait(function(){return t.ready()}):this._waitlist.wait(t),this},f.prototype.ready=function(){return this._waitlist.ready()},f.prototype.stop=function(){this._waitlist.stop()}}.call(this),"undefined"==typeof Package&&(Package={}),Package["iron:controller"]={}}();
!function(){var t=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,s=Package.ejson.EJSON,u=Package.meteor.Meteor,l=Package.meteor.global,c=Package.meteor.meteorEnv,p=Package["iron:core"].Iron,h=Package.htmljs.HTML,f=Package.spacebars.Spacebars,d,_,y,m,g;(function(){d=new u.EnvironmentVariable}).call(this),function(){_=["get","post","put","delete","patch","head"]}.call(this),function(){var o=p.Controller,e=p.Url,r=p.MiddlewareStack,n=p.utils.assert;(y=o.extend({constructor:function(o){y.__super__.constructor.apply(this,arguments),o=o||{},this.options=o,this._onStopCallbacks=[],this.route=o.route,this.params=[];var e=this.lookupOption("data");"function"==typeof e?this.data=t.bind(e,this):void 0!==e&&(this.data=function(){return e}),this.init(o)}})).prototype.lookupOption=function(o){if(this.route&&this.route.options&&t.has(this.route.options,o))return this.route.options[o];if(t.has(this.options,o))return this.options[o];if(void 0!==this[o])return this[o];var e=d.get();return e&&t.has(e,o)?e[o]:this.router&&this.router.options&&t.has(this.router.options,o)?this.router.options[o]:void 0},y.prototype.configureFromUrl=function(t,o,e){n("string"==typeof t,"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)},y.prototype._collectHooks=function(){var o=this,e=t.toArray(arguments),r=function(e){if(!e)return[];var r=o.router.lookupHook,n=t.isArray(e)?e:[e];return t.map(n,function(t){return r(t)})},n=function(o,e){var i=[];return o.__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(var o=0;o<e.length;o++)t(e[o])},a=[];i(function(t){var e=o.route&&o.route.getName(),r=o.router.getHooks(t,e);a=a.concat(r)});var s=[];i(function(t){var e=n(o.constructor,t);s=s.concat(e)});var u=[];i(function(e){if(t.has(o,e)){var n=r(o[e]);u=u.concat(n)}});var l=[];return o.route&&i(function(t){var e=r(o.route.options[t]);l=l.concat(e)}),a.concat(l).concat(s).concat(u)},y.prototype.runHooks=function(){for(var t=this._collectHooks.apply(this,arguments),o=0,e=t.length;o<e;o++)t[o].call(this);return t.length},y.prototype.getParams=function(){return this.params},y.prototype.setParams=function(t){return this.params=t,this},p.RouteController=y}.call(this),function(){var r=p.Controller,n=p.Url,i=p.MiddlewareStack,a=p.utils.debug("iron-router:RouteController");if(y.prototype.init=function(t){y.__super__.init.apply(this,arguments),this._computation=null,this._paramsDep=new o.Dependency,this.location=p.Location},y.prototype.getParams=function(){return this._paramsDep.depend(),this.params},y.prototype.setParams=function(o,e){if(!function(o,r){if(!(o instanceof Array))throw new Error("you called equals with a non array value in setParams");if(!(r instanceof Array))return!1;if(o.length!==r.length)return!1;for(var n=0;n<o.length;n++)if(!s.equals(o[n],r[n],e))return!1;var i=t.keys(o),a=t.keys(r),u;if(i.length!==a.length)return!1;for(var n=0;n<i.length;n++){if(u=i[n],!t.has(r,u))return!1;if(!s.equals(o[u],r[u]))return!1}return!0}(this.params,o))return this.params=o,!1!==(e=e||{}).reactive&&this._paramsDep.changed(),this},y.prototype.dispatch=function(t,o,r){if(this._computation&&!this._computation.stopped)throw new Error("RouteController computation is already running. Stop it first.");var n=this;return e.nonreactive(function(){e.autorun(function(e){n._computation=e,t.dispatch(o,n,r)})}),n},y.prototype._runRoute=function(o,r,n){var a=this,s=this._collectHooks("subscriptions");t.each(s,function(t){a.wait(t.call(a))});var u=this._collectHooks("waitOn");t.each(u,function(t){a.wait(t.call(a))});var l=u.length>0,c,h,f=function(){return e.nonreactive(function(){return a._layout.template()})},d=function(){return e.nonreactive(function(){var t=a._layout._regions.main;return t&&t.template()})},_=f(),m=d();this.b
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package.jquery.$,r=Package.jquery.jQuery;!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):r)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?n=t:t={};var e,n,i;!function(t){function r(e,t){return $.call(e,t)}function o(e,t){var n,i,r,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(s=(e=e.split("/")).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]))e.splice(u,1),u-=1;else if(".."===p){if(1===u&&(".."===e[2]||".."===e[0]))break;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(u=(n=e.split("/")).length;u>0;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;d>0;d-=1)if((r=f[h.slice(0,d).join("/")])&&(r=r[i])){o=r,a=u;break}if(o)break;!l&&g&&g[i]&&(l=g[i],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function s(e,n){return function(){var i=w.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),h.apply(t,i.concat([e,n]))}}function a(e){return function(t){return o(t,e)}}function l(e){return function(t){m[e]=t}}function c(e){if(r(v,e)){var n=v[e];delete v[e],_[e]=!0,p.apply(t,n)}if(!r(m,e)&&!r(_,e))throw new Error("No "+e);return m[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function d(e){return function(){return y&&y.config&&y.config[e]||{}}}var p,h,f,g,m={},v={},y={},_={},$=Object.prototype.hasOwnProperty,w=[].slice,b=/\.js$/;f=function(e,t){var n,i=u(e),r=i[0];return e=i[1],r&&(n=c(r=o(r,t))),r?e=n&&n.normalize?n.normalize(e,a(t)):o(e,t):(r=(i=u(e=o(e,t)))[0],e=i[1],r&&(n=c(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},g={require:function(e){return s(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:d(e)}}},p=function(e,n,i,o){var a,u,d,p,h,y=[],$=typeof i,w;if(o=o||e,"undefined"===$||"function"===$){for(n=!n.length&&i.length?["require","exports","module"]:n,h=0;h<n.length;h+=1)if(p=f(n[h],o),"require"===(u=p.f))y[h]=g.require(e);else if("exports"===u)y[h]=g.exports(e),w=!0;else if("module"===u)a=y[h]=g.module(e);else if(r(m,u)||r(v,u)||r(_,u))y[h]=c(u);else{if(!p.p)throw new Error(e+" missing "+u);p.p.load(p.n,s(o,!0),l(u),{}),y[h]=m[u]}d=i?i.apply(m[e],y):void 0,e&&(a&&a.exports!==t&&a.exports!==m[e]?m[e]=a.exports:d===t&&w||(m[e]=d))}else e&&(m[e]=i)},e=n=h=function(e,n,i,r,o){if("string"==typeof e)return g[e]?g[e](n):c(f(e,n).f);if(!e.splice){if((y=e).deps&&h(y.deps,y.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=r,r=o),r?p(t,e,n,i):setTimeout(function(){p(t,e,n,i)},4),h},h.config=function(e){return h(e)},e._defined=m,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),r(m,e)||r(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||i;return null==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){function t(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}var n={};n.Extend=function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},n.Decorate=function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,r=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),r=n.pro
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package.tracker.Tracker,r=Package.tracker.Deps,o=Package.underscore._,a=Package.check.check,s=Package.check.Match,u=Package.random.Random,l,c,f,d,p,m,v;(function(){String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})}).call(this),function(){function e(e){return e=e||"",(e=e.trim())[0]&&(e=e[0].toUpperCase()+e.substr(1).toLowerCase()),e}function t(e){return e=e||"",e=e.toString(),e=e.trim(),e=e.replace(/([a-z\d])([A-Z]+)/g,"$1_$2"),e=e.replace(/[-\s]+/g,"_").toLowerCase()}function n(e){var t=e.lastIndexOf("."),n=e.substring(t,e.length);return-1===t?"":n}l=function i(r){return r=r||"",r=r.toString(),r=r.trim(),r=r.replace(n(r),""),r=t(r),r=r.replace(/[\W_]+/g," "),e(r)}}.call(this),function(){var e=function(e){return e===Object(e)};"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});var t=function(t){return e(t)&&Object.getPrototypeOf(t)===Object.prototype},n=function e(t){return"string"!=typeof t?null:t.replace(/\.[0-9]+\./g,".$.").replace(/\.[0-9]+$/g,".$")},i=function e(t,n){return"$each"===n?t:t?t+"."+n:n},r=function e(t){var n=t.slice(0,t.indexOf("["));return"$"===n.substring(0,1)?n:null};(c=function(e,a){function s(e,r,u,c,f,d){!c&&u&&"$"===u.substring(0,1)&&(c=u,u=null);var p=!1,m,v=!1;u&&(f||("$push"===c||"$addToSet"===c||"$pop"===c?(t(e)&&"$each"in e?(e=e.$each,r+="[$each]"):u+=".0",f=!0):"$pull"===c&&(u+=".0",t(e)&&(v=!0),f=!0)),m=n(u),p=o.contains(a,m),r&&(l._affectedKeys[r]=u,l._genericAffectedKeys[r]=m,d&&l._positionsInsideArrays.push(r))),v||(o.isArray(e)&&!o.isEmpty(e)?(r&&l._parentPositions.push(r),o.each(e,function(e,t){s(e,r?r+"["+t+"]":t,u+"."+t,c,f,!0)})):(t(e)&&!p||!r)&&(r&&!o.isEmpty(e)&&(l._parentPositions.push(r),l._objectPositions.push(r)),o.each(e,function(t,n){void 0===t?delete e[n]:"$slice"!==n&&s(t,r?r+"["+n+"]":n,i(u,n),c,f,d)})))}function u(){l._affectedKeys={},l._genericAffectedKeys={},l._parentPositions=[],l._positionsInsideArrays=[],l._objectPositions=[],s(l._obj)}var l=this;l._obj=e,l._affectedKeys={},l._genericAffectedKeys={},l._parentPositions=[],l._positionsInsideArrays=[],l._objectPositions=[],s(l._obj),l.forEachNode=function(e,t){if("function"!=typeof e)throw new Error("filter requires a loop function");t=o.extend({endPointsOnly:!0},t);var n={};o.each(l._affectedKeys,function(i,a){t.endPointsOnly&&o.contains(l._parentPositions,a)||e.call({value:l.getValueForPosition(a),operator:r(a),position:a,key:i,genericKey:l._genericAffectedKeys[a],updateValue:function(e){n[a]=e},remove:function(){n[a]=void 0}})}),o.each(n,function(e,t){l.setValueForPosition(t,e)})},l.getValueForPosition=function(e){for(var n,i=e.split("["),r=l._obj,a=0,s=i.length;a<s;a++)if("]"===(n=i[a]).slice(-1)&&(n=n.slice(0,-1)),r=r[n],!o.isArray(r)&&!t(r)&&a<s-1)return;return r},l.setValueForPosition=function(e,n){for(var i,r,a=e.split("["),s=l._obj,c=0,f=a.length;c<f;c++)if("]"===(r=a[c]).slice(-1)&&(r=r.slice(0,-1)),c===f-1)s[r]=n,void 0===n&&delete s[r];else if(void 0===s[r]&&void 0!==n&&(i=a[c+1],i=parseInt(i,10),s[r]=isNaN(i)?{}:[]),s=s[r],!o.isArray(s)&&!t(s)&&c<f-1)return;u()},l.removeValueForPosition=function(e){l.setValueForPosition(e,void 0)},l.getKeyForPosition=function(e){return l._affectedKeys[e]},l.getGenericKeyForPosition=function(e){return l._genericAffectedKeys[e]},l.getInfoForKey=function(e){var t=l.getPositionForKey(e);if(t)return{value:l.getValueForPosition(t),operator:r(t)};for(var n=l.getPositionsForGenericKey(e+".$"),i,o,a=0,s=n.length;a<s;a++)if(i=n[a],o=l.getValueForPosition(i)||l.getValueForPosition(i.slice(0,i.lastIndexOf("["))))return{value:o,operator:r(i)}},l.getPositionForKey=function(e){for(var t in l._affectedKeys)if(l._affectedKeys.hasOwnProperty(t)&&l._affectedKeys[t]===e)return t},l.getPositionsForGenericK
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.tracker.Tracker,r=Package.tracker.Deps,o=Package.retry.Retry,i=Package["ddp-client"].DDP,s=Package.mongo.Mongo,c=Package.underscore._,u,l;(function(){var t=__meteor_runtime_config__.autoupdateVersion||"unknown",n=__meteor_runtime_config__.autoupdateVersionRefreshable||"unknown";u=new s.Collection("meteor_autoupdate_clientVersions"),(l={}).newClientAvailable=function(){return!!u.findOne({_id:"version",version:{$ne:t}})||!!u.findOne({_id:"version-refreshable",version:{$ne:n}})},l._ClientVersions=u;var a=!1,r=new o({minCount:0,baseTimeout:3e4}),i=0;l._retrySubscription=function(){e.subscribe("meteor_autoupdate_clientVersions",{onError:function(t){e._debug("autoupdate subscription failed:",t),i++,r.retryLater(i,function(){l._retrySubscription()})},onReady:function(){if(Package.reload)var r=function(r){var i=this;if("version-refreshable"===r._id&&r.version!==n){n=r.version;var s=r.assets&&r.assets.allCss||[],u=[];c.each(document.getElementsByTagName("link"),function(e){"__meteor-css__"===e.className&&u.push(e)});var l=function(t,n){var r=c.once(n);if(t.onload=function(){a=!0,r()},!a)var o=e.setInterval(function(){t.sheet&&(r(),e.clearInterval(o))},50)},d=c.after(s.length,function(){c.each(u,function(e){e.parentNode.removeChild(e)})}),f=function(t){document.getElementsByTagName("head").item(0).appendChild(t),l(t,function(){e.setTimeout(d,200)})};0!==s.length?c.each(s,function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("class","__meteor-css__"),t.setAttribute("href",e.url),f(t)}):d()}else"version"===r._id&&r.version!==t&&(o&&o.stop(),Package.reload&&Package.reload.Reload._reload())},o=u.find().observe({added:r,changed:r})}})},l._retrySubscription()}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.autoupdate={},{Autoupdate:l})}();
"undefined"==typeof Package&&(Package={}),Package["meteor-platform"]={};
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,o=Package.modules.meteorInstall,r=Package["babel-runtime"].meteorBabelHelpers,c=Package.promise.Promise,s=Package["ecmascript-runtime-client"].Symbol,i=Package["ecmascript-runtime-client"].Map,m=Package["ecmascript-runtime-client"].Set,u,l=o({node_modules:{meteor:{webapp:{"webapp_client.js":function(e,t,n){n.export({WebApp:function(){return o}});var o={_isCssLoaded:function(){return 0===document.styleSheets.length||a.find(document.styleSheets,function(e){return e.cssText&&!e.cssRules?!e.cssText.match(/meteor-css-not-found-error/):!a.find(e.cssRules,function(e){return".meteor-css-not-found-error"===e.selectorText})})}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/webapp/webapp_client.js");"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.webapp=l,{WebApp:void 0})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,f,o;(0,Package.modules.meteorInstall)({node_modules:{meteor:{logging:{"logging.js":function(t){var n=0,o=[],a=0;(f=function(){return f.info.apply(this,arguments)})._intercept=function(e){n+=e},f._suppress=function(e){a+=e},f._intercepted=function(){var e=o;return o=[],n=0,e},f.outputFormat="json";var c={debug:"green",warn:"magenta",error:"red"},s="blue",l="object"==typeof process&&"win32"===process.platform,u=function(e){return l&&"string"==typeof e&&"Bright"!==e.slice(-6)?e+"Bright":e},p=["time","timeInexact","level","file","line","program","originApp","satellite","stderr"],d=p.concat(["app","message"]),h=function(t){var n=f.format(t),r=t.level;"undefined"!=typeof console&&console[r]?console[r](n):e._debug(n)};f._getCallerDetails=function(){var e=function(){return(new Error).stack}();if(!e)return{};for(var t=e.split("\n"),n,r=1;r<t.length;++r){if((n=t[r]).match(/^\s*at eval \(eval/))return{file:"eval"};if(!n.match(/packages\/(?:local-test[:_])?logging(?:\/|\.js)/))break}var i={},f=/(?:[@(]| at )([^(]+?):([0-9:]+)(?:\)|$)/.exec(n);return f?(i.line=f[2].split(":")[0],i.file=f[1].split("/").slice(-1)[0].split("?")[0],i):i},r.each(["debug","info","warn","error"],function(t){f[t]=function(c){if(a)a--;else{var s=!1;n&&(n--,s=!0);var l=!r.isObject(c)||r.isRegExp(c)||r.isDate(c)?{message:new String(c).toString()}:c;if(r.each(p,function(e){if(l[e])throw new Error("Can't set '"+e+"' in log message")}),r.has(l,"message")&&!r.isString(l.message))throw new Error("The 'message' field in log objects must be a string");if(l.omitCallerDetails||(l=r.extend(f._getCallerDetails(),l)),l.time=new Date,l.level=t,"debug"!==t)if(s)o.push(i.stringify(l));else if(e.isServer)if("colored-text"===f.outputFormat)console.log(f.format(l,{color:!0}));else{if("json"!==f.outputFormat)throw new Error("Unknown logging output format: "+f.outputFormat);console.log(i.stringify(l))}else h(l)}}}),f.parse=function(e){var t=null;if(e&&"{"===e.charAt(0))try{t=i.parse(e)}catch(e){}return t&&t.time&&t.time instanceof Date?t:null},f.format=function(n,f){n=i.clone(n),f=f||{};var o=n.time;if(!(o instanceof Date))throw new Error("'time' must be a Date object");var a=n.timeInexact,s=n.level||"info",l=n.file,p=n.line,h=n.app||"",m=n.originApp,g=n.message||"",b=n.program||"",v=n.satellite,y=n.stderr||"";r.each(d,function(e){delete n[e]}),r.isEmpty(n)||(g&&(g+=" "),g+=i.stringify(n));var x=function(e){return e<10?"0"+e:e.toString()},j=function(e){return e<100?"0"+x(e):e.toString()},O=o.getFullYear().toString()+x(o.getMonth()+1)+x(o.getDate()),w=x(o.getHours())+":"+x(o.getMinutes())+":"+x(o.getSeconds())+"."+j(o.getMilliseconds()),_="("+-(new Date).getTimezoneOffset()/60+")",A="";h&&(A+=h),m&&m!==h&&(A+=" via "+m),A&&(A="["+A+"] ");var N=[];b&&N.push(b),l&&N.push(l),p&&N.push(p);var z=r.isEmpty(N)?"":"("+N.join(":")+") ";v&&(z+=["[",v,"]"].join(""));var P=y?"(STDERR) ":"",S=function(n,r){return f.color&&e.isServer&&r?t("cli-color")[r](n):n};return S([s.charAt(0).toUpperCase(),O,"-",w,_,a?"? ":" ",A,z,P].join(""),u(f.metaColor||"blue"))+S(g,u(c[s]))},f.objFromText=function(e,t){var n={message:e,level:"info",time:new Date,timeInexact:!0};return r.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":function(e,t,n){"use strict";var r=e("es5-ext/lib/Object/descriptor"),i=e("es5-ext/lib/Object/extend"),f=e("es5-ext/lib/Object/map"),o=e("es5-ext/lib/Object/reduce"),a=e("es5-ext/lib/String/prototype/repeat"),c=e("memoizee"),s=e("tty"),l=Array.prototype.join,u=Object.defineProperty,p=Object.defineProperties,d=Math.abs,h=Math.floor,m=Math.max,g=Math.min,b,v,y,x,j,O,w,_,A,N,z;b=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","green","yellow","blue","magenta","cyan","white"].reduce(function(e,t,n){return e[t]={_fg:[30+n,39]},e[t+"Bright"]={_fg:[90+n,39]},
!function(){var e=Package.meteor.Meteor,a=Package.meteor.global,c=Package.meteor.meteorEnv,n=Package.underscore._,o=Package["reactive-dict"].ReactiveDict,i=Package.ejson.EJSON,t;(function(){t=new o("session")}).call(this),"undefined"==typeof Package&&(Package={}),function(e,a){for(var c in a)c in e||(e[c]=a[c])}(Package.session={},{Session:t})}();
!function(){var a=Package["ddp-client"].DDP,e;"undefined"==typeof Package&&(Package={}),function(a,e){for(var i in e)i in a||(a[i]=e[i])}(Package.livedata={},{DDP:a,LivedataTest:void 0})}();
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,a=Package.meteor.meteorEnv,r;(function(){var n=0,a=!1;r={hold:function(){if(!e.isCordova)return{release:function(){}};if(a)throw new Error("Can't show launch screen once it's hidden");n++;var r=!1;return{release:function(){e.isCordova&&(r||(r=!0,0===--n&&"undefined"!=typeof navigator&&navigator.splashscreen&&(a=!0,navigator.splashscreen.hide())))}}}}}).call(this),function(){var n=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"==typeof Package&&(Package={}),function(e,n){for(var a in n)a in e||(e[a]=n[a])}(Package["launch-screen"]={},{LaunchScreen:r})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,a=Package.jquery.jQuery,r=Package.underscore._,i=Package["templating-runtime"].Template,c=Package["reactive-var"].ReactiveVar,l=Package["iron:router"].Router,s=Package["iron:router"].RouteController,u=Package["aldeed:simple-schema"].SimpleSchema,d=Package["aldeed:simple-schema"].MongoObject,p=Package.modules.meteorInstall,f=Package["babel-runtime"].meteorBabelHelpers,m=Package.promise.Promise,h=Package["iron:core"].Iron,v=Package["ecmascript-runtime-client"].Symbol,g=Package["ecmascript-runtime-client"].Map,b=Package["ecmascript-runtime-client"].Set,w=Package.webapp.WebApp,k=Package.logging.Log,x=Package.deps.Tracker,y=Package.deps.Deps,T=Package.session.Session,j=Package["ddp-client"].DDP,I=Package.mongo.Mongo,C=Package.ui.Blaze,_=Package.ui.UI,M=Package.ui.Handlebars,O=Package.spacebars.Spacebars,H=Package.check.check,$=Package.check.Match,P=Package.random.Random,S=Package.ejson.EJSON,F=Package["launch-screen"].LaunchScreen,D=Package.htmljs.HTML,z=p({node_modules:{meteor:{"ohif:core":{"main.js":function(e,t,n){n.export({OHIF:function(){return a}});var o=void 0;n.watch(e("meteor/meteor"),{Meteor:function(e){o=e}},0);var a={log:{},ui:{},utils:{},viewer:{},cornerstone:{}};o.isClient&&(window.OHIF=a)},client:{"index.js":function(e,t,n){n.watch(e("./lib")),n.watch(e("./helpers")),n.watch(e("./components")),n.watch(e("./ui")),n.watch(e("./routes.js"))},"routes.js":function(e,t,n){var o=void 0;n.watch(e("meteor/iron:router"),{Router:function(e){o=e}},0),o.route("/playground",function(){this.render("componentPlayground")})},components:{"index.js":function(e,t,n){n.watch(e("./base")),n.watch(e("./bootstrap")),n.watch(e("./playground/playground.html")),n.watch(e("./playground/playground.styl")),n.watch(e("./playground/playground.js")),n.watch(e("./scrollArea"))},base:{"component.js":function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}var a=o(e("babel-runtime/helpers/classCallCheck")),r=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){r=e}},0);var i=function(){function e(t){(0,a.default)(this,e),t.view._component=this,t.sections={},this.templateInstance=t,this.registeredItems=new b}return e.prototype.registerSelf=function(){function e(){var e=r.blaze.getParentComponent(this.templateInstance.view);e&&(this.parent=e,e.registeredItems.add(this))}return e}(),e.prototype.unregisterSelf=function(){function e(){var e=r.blaze.getParentComponent(this.templateInstance.view);e&&(delete this.parent,e.registeredItems.delete(this))}return e}(),e}();r.Component=i},"index.js":function(e,t,n){n.watch(e("./component.js")),n.watch(e("./mixin.js")),n.watch(e("./template.js")),n.watch(e("./section/section.html")),n.watch(e("./section/section.js")),n.watch(e("./mixins/action.js")),n.watch(e("./mixins/button.js")),n.watch(e("./mixins/checkbox.js")),n.watch(e("./mixins/component.js")),n.watch(e("./mixins/dropdown.js")),n.watch(e("./mixins/form.js")),n.watch(e("./mixins/formItem.js")),n.watch(e("./mixins/group.js")),n.watch(e("./mixins/groupRadio.js")),n.watch(e("./mixins/input.js")),n.watch(e("./mixins/link.js")),n.watch(e("./mixins/popover.js")),n.watch(e("./mixins/schemaData.js")),n.watch(e("./mixins/select.js")),n.watch(e("./mixins/select2.js")),n.watch(e("./templates/button.html")),n.watch(e("./templates/custom.html")),n.watch(e("./templates/div.html")),n.watch(e("./templates/form.html")),n.watch(e("./templates/input.html")),n.watch(e("./templates/link.html")),n.watch(e("./templates/select.html")),n.watch(e("./templates/tr.html")),n.watch(e("./wrappers/label.html")),n.watch(e("./wrappers/labelContent.html"))},"mixin.js":function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}var a=o(e("babel-runtime/helpers/classCallCheck")),r=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){r=e}},0);var i=void 0;n.watch(e("meteor/underscore"),{_:function(e){i=e}},1),r.mixins={};var c=function(){function e(t){var n=t.dependencies,o=t.composition;(0,a.default)(this,e),this.dependencies=n||"",this.composition=o}return e.p
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package["templating-runtime"].Template,r=Package.underscore._,a=Package.modules.meteorInstall,d=Package["babel-runtime"].meteorBabelHelpers,c=Package.promise.Promise,i=Package["ecmascript-runtime-client"].Symbol,h=Package["ecmascript-runtime-client"].Map,l=Package["ecmascript-runtime-client"].Set,m=Package.blaze.Blaze,s=Package.blaze.UI,u=Package.blaze.Handlebars,p=Package.spacebars.Spacebars,b=Package.htmljs.HTML,f=a({node_modules:{meteor:{"ohif:header":{"main.js":function(e,n,o){o.export({header:function(){return r}});var t=void 0;o.watch(e("meteor/ohif:core"),{OHIF:function(e){t=e}},0);var r={dropdown:new t.ui.Dropdown};t.header=r},client:{"index.js":function(e,n,o){o.watch(e("./components"))},components:{"index.js":function(e,n,o){o.watch(e("./header/header.html")),o.watch(e("./header/header.js")),o.watch(e("./header/header.styl"))},header:{"header.html":function(e,n,o){o.exports=e("./template.header.js")},"template.header.js":function(){t.__checkName("header"),t.header=new t("Template.header",function(){var e=this;return b.DIV({class:function(){return["header noselect ",p.mustache(e.lookup("reactive"),e.lookup("headerClasses"))]}},"\n ",b.DIV({class:"clearfix"},"\n ",b.A({target:"_blank",class:"brand pull-left",href:function(){return p.mustache(e.lookup("choose"),p.dot(e.lookup("."),"brandHref"),"/")}},"\n ",m._TemplateWith(function(){return"brand"},function(){return p.include(e.lookupTemplate("section"))}),"\n "),"\n ",m._TemplateWith(function(){return"headerAfterBrand"},function(){return p.include(e.lookupTemplate("section"))}),"\n ",b.A({href:"#",class:"header-menu pull-right"},m._TemplateWith(function(){return"headerMenu"},function(){return p.include(e.lookupTemplate("section"))})),"\n "),"\n ",m._InOuterTemplateScope(e,function(){return p.include(function(){return p.call(e.templateContentBlock)})}),"\n ")})},"header.js":function(e,n,o){var t=void 0;o.watch(e("meteor/templating"),{Template:function(e){t=e}},0);var r=void 0;o.watch(e("meteor/jquery"),{$:function(e){r=e}},1);var a=void 0;o.watch(e("meteor/ohif:core"),{OHIF:function(e){a=e}},2),t.header.onCreated(function(){var e=t.instance();e.dropdownItems=[],e.autorun(function(){a.header.dropdown.observer.depend(),e.dropdownItems=a.header.dropdown.getItems()})}),t.header.events({"click .header-menu":function(e,n){e.preventDefault(),r(e.currentTarget).find(".dropdown").length||a.ui.showDropdown(n.dropdownItems,{parentElement:e.currentTarget,menuClasses:"dropdown-menu-right",marginTop:"25px"})}})},"header.styl":function(e,n,o){o.exports=e("./header.styl.css")},"header.styl.css":function(e,n,o){o.exports=e("meteor/modules").addStyles('.theme-icon-crickets,\n.theme-icon-tide,\n.theme-icon-tigerlily,\n.theme-icon-quartz,\n.theme-icon-overcast,\n.theme-icon-mint,\n.theme-icon-honeycomb {\n display: inline-block;\n background: url("/packages/ohif_design/assets/theme-icons.png") no-repeat;\n overflow: hidden;\n text-indent: -9999px;\n text-align: left;\n}\n.theme-icon-crickets {\n background-position: 0px 0px;\n width: 64px;\n height: 56px;\n}\n.theme-icon-tide {\n background-position: 0px -56px;\n width: 64px;\n height: 54px;\n}\n.theme-icon-tigerlily {\n background-position: 0px -110px;\n width: 62px;\n height: 61px;\n}\n.theme-icon-quartz {\n background-position: 0px -171px;\n width: 59px;\n height: 64px;\n}\n.theme-icon-overcast {\n background-position: 0px -235px;\n width: 58px;\n height: 37px;\n}\n.theme-icon-mint {\n background-position: 0px -272px;\n width: 57px;\n height: 61px;\n}\n.theme-icon-honeycomb {\n background-position: 0px -333px;\n width: 50px;\n height: 58px;\n}\nbody>.header {\n height: 40px;\n padding: 10px 10px 0;\n -webkit-transition: all 0.5s ease;\n -moz-transition: all 0.5s ease;\n -ms-transition: all 0.5s ease;\n -o-transition: all 0.5s ease;\n transition: all 0.5s ease;\n}\nbody>.header {\n color: #fff;\n}\nbody.theme-tide body>.heade
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["templating-runtime"].Template,l=Package.modules.meteorInstall,i=Package["babel-runtime"].meteorBabelHelpers,c=Package.promise.Promise,r=Package["ecmascript-runtime-client"].Symbol,a=Package["ecmascript-runtime-client"].Map,m=Package["ecmascript-runtime-client"].Set,h=Package.blaze.Blaze,s=Package.blaze.UI,d=Package.blaze.Handlebars,p=Package.spacebars.Spacebars,u=Package.htmljs.HTML;l({node_modules:{meteor:{"ohif:themes-common":{client:{"index.js":function(e,t,n){n.watch(e("./components"))},components:{"index.js":function(e,t,n){n.watch(e("./themeSelectorModal/themeSelectorModal.html")),n.watch(e("./themeSelectorModal/themeSelectorModal.styl")),n.watch(e("./themeSelectorModal/themeSelectorModal.js"))},themeSelectorModal:{"themeSelectorModal.html":function(e,t,n){n.exports=e("./template.themeSelectorModal.js")},"template.themeSelectorModal.js":function(){o.__checkName("themeSelectorModal"),o.themeSelectorModal=new o("Template.themeSelectorModal",function(){var e=this;return h._TemplateWith(function(){return p.dataMustache(e.lookup("extend"),e.lookup("."),p.kw({id:"themeSelectorModal",dialogClass:"modal-lg",confirmLabel:"Apply theme",title:"Themes",titleIcon:"fa fa-sliders"}))},function(){return p.include(e.lookupTemplate("dialogForm"),function(){return["\n ",u.UL({class:"theme-list text-center"},"\n ",h.Each(function(){return{_sequence:p.call(e.lookup("themes")),_variable:"theme"}},function(){return["\n ",u.LI({class:function(){return["text-center preview-theme ",p.mustache(e.lookup("printClassIfSelected"),e.lookup("theme"))]},"data-theme":function(){return p.mustache(e.lookup("theme"))}},"\n ",u.DIV({class:"icon-wrapper"},"\n ",u.SPAN({class:function(){return["theme-icon-",p.mustache(e.lookup("theme"))]}}),"\n "),"\n ",u.H4({class:"theme-title"},h.View("lookup:ucFirst",function(){return p.mustache(e.lookup("ucFirst"),e.lookup("theme"))})),"\n "),"\n "]}),"\n "),"\n "]})})})},"themeSelectorModal.js":function(e,t,n){var o=void 0;n.watch(e("meteor/templating"),{Template:function(e){o=e}},0);var l=void 0;n.watch(e("meteor/reactive-dict"),{ReactiveDict:function(e){l=e}},1);var i="tide",c=function(){return sessionStorage.getItem("theme")},r=function(e){return sessionStorage.setItem("theme",e)},a=function(e){return document.body.classList.add("theme-"+e)},m=function(){for(var e=document.body.classList,t=e.length-1;t>=0;t--)-1!==e[t].search("theme-")&&document.body.classList.remove(e[t])};o.themeSelectorModal.onCreated(function(){var e=o.instance(),t=c();t||r(t="tide"),e.state=new l,e.state.set("selectedTheme",t),a(t),e.container={currentTheme:t,previewTheme:function(e,t){t.set("selectedTheme",e),m(),a(e)},applyTheme:function(e){r(e.get("selectedTheme"))},resetState:function(e){var t=c();e.set("selectedTheme",t),m(),a(t)}};var n=e.data.promise;n.then(function(){return e.container.applyTheme(e.state)}),n.catch(function(){return e.container.resetState(e.state)})}),o.themeSelectorModal.helpers({themes:["crickets","honeycomb","mint","overcast","quartz","tide","tigerlily"],ucFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},printClassIfSelected:function(e){return e===o.instance().state.get("selectedTheme")?"selected":""}}),o.themeSelectorModal.events({"click .preview-theme":function(e,t){t.container.previewTheme(e.currentTarget.dataset.theme,t.state)}})},"themeSelectorModal.styl":function(e,t,n){n.exports=e("./themeSelectorModal.styl.css")},"themeSelectorModal.styl.css":function(e,t,n){n.exports=e("meteor/modules").addStyles('.theme-icon-crickets,\n.theme-icon-tide,\n.theme-icon-tigerlily,\n.theme-icon-quartz,\n.theme-icon-overcast,\n.theme-icon-mint,\n.theme-icon-honeycomb {\n display: inline-block;\n background: url("/packages/ohif_design/assets/theme-icons.png") no-repeat;\n overflow: hidden;\n text-indent: -9999px;\n text-align: left;\n}\n.theme-icon-crickets {\n
"undefined"==typeof Package&&(Package={}),Package["ohif:themes"]={};
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,a=Package.jquery.jQuery,u=Package.modules.meteorInstall,r=Package["babel-runtime"].meteorBabelHelpers,c=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,i=Package["ecmascript-runtime-client"].Map,s=Package["ecmascript-runtime-client"].Set,d=Package.webapp.WebApp,p=Package.logging.Log,m=Package.deps.Tracker,k=Package.deps.Deps,g=Package.session.Session,f=Package["ddp-client"].DDP,P=Package.mongo.Mongo,h=Package.ui.Blaze,b=Package.ui.UI,v=Package.ui.Handlebars,B=Package.spacebars.Spacebars,G=Package["templating-runtime"].Template,V=Package.check.check,j=Package.check.Match,I=Package.underscore._,y=Package.random.Random,L=Package.ejson.EJSON,S=Package["launch-screen"].LaunchScreen,x=Package.htmljs.HTML,D=u({node_modules:{meteor:{"ohif:design":{components:{roundedButtonGroup:{"template.roundedButtonGroup.js":function(){G.__checkName("roundedButtonGroup"),G.roundedButtonGroup=new G("Template.roundedButtonGroup",function(){var e=this;return x.DIV({class:function(){return[B.mustache(e.lookup("class"))," roundedButtonGroup clearfix center-table"]}},"\n ",h.Each(function(){return{_sequence:B.call(B.dot(e.lookup("."),"options")),_variable:"item"}},function(){return["\n ",x.A({class:function(){return["roundedButtonWrapper noselect ",h.If(function(){return B.dataMustache(e.lookup("eq"),e.lookup("getValue"),B.dot(e.lookup("item"),"value"))},function(){return"active"})]},"data-value":function(){return B.mustache(B.dot(e.lookup("item"),"value"))}},"\n ",x.DIV({class:"roundedButton"},"\n ",h.If(function(){return B.call(B.dot(e.lookup("item"),"svgLink"))},function(){return["\n ",x.SVG({style:function(){return["width: ",B.mustache(B.dot(e.lookup("item"),"svgWidth")),"px; height: ",B.mustache(B.dot(e.lookup("item"),"svgHeight")),"px"]}},"\n ",x.USE({"xlink:href":function(){return B.mustache(e.lookup("absoluteUrl"),B.dot(e.lookup("item"),"svgLink"))}}),"\n "),"\n "]}),"\n ",h.If(function(){return B.call(B.dot(e.lookup("item"),"text"))},function(){return["\n ",x.SPAN(h.View("lookup:item.text",function(){return B.mustache(B.dot(e.lookup("item"),"text"))})),"\n "]}),"\n ",h.If(function(){return B.call(B.dot(e.lookup("item"),"iconClasses"))},function(){return["\n ",x.I({class:function(){return B.mustache(B.dot(e.lookup("item"),"iconClasses"))}}),"\n "]}),"\n "),"\n ",h.If(function(){return B.call(B.dot(e.lookup("item"),"bottomLabel"))},function(){return["\n ",x.DIV({class:"bottomLabel"},h.View("lookup:item.bottomLabel",function(){return B.mustache(B.dot(e.lookup("item"),"bottomLabel"))})),"\n "]}),"\n "),"\n "]}),"\n ")})},"roundedButtonGroup.js":function(){G.roundedButtonGroup.onCreated(function(){var e=G.instance(),t=e.data.value;e.getValue=function(){return t.get(e.data.key)},e.setValue=function(n){var o=[n];t instanceof ReactiveDict&&o.unshift(e.data.key),t.set.apply(t,o)},e.getValue()||e.data.toggleable||e.setValue(e.data.options[0].value)}),G.roundedButtonGroup.events({"click [data-value]":function(e,t){e.preventDefault();var n=o(e.currentTarget);if(!n.hasClass("disabled")){var a=n.hasClass("active")&&t.data.toggleable?null:n.attr("data-value");t.setValue(a)}}}),G.roundedButtonGroup.helpers({getValue:function(){return G.instance().getValue()}})}}}}}}},{extensions:[".js",".json",".styl",".html"]});D("./node_modules/meteor/ohif:design/components/roundedButtonGroup/template.roundedButtonGroup.js"),D("./node_modules/meteor/ohif:design/components/roundedButtonGroup/roundedButtonGroup.js"),"undefined"==typeof Package&&(Package={}),Package["ohif:design"]={}}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.jquery.$,o=Package.jquery.jQuery,a=Package.modules.meteorInstall,i=Package["babel-runtime"].meteorBabelHelpers,s=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,c=Package["ecmascript-runtime-client"].Set,f,d,h,p,g,m=a({node_modules:{meteor:{"ohif:cornerstone":{"main.js":function(e,t,n){n.export({cornerstone:function(){return o},cornerstoneTools:function(){return a},cornerstoneMath:function(){return i},cornerstoneWADOImageLoader:function(){return s},dicomParser:function(){return l},OHIF:function(){return r}});var r=void 0;n.watch(e("./namespace.js"),{OHIF:function(e){r=e}},0);var o=void 0;n.watch(e("cornerstone-core"),{"*":function(e){o=e}},1);var a=void 0;n.watch(e("cornerstone-tools"),{"*":function(e){a=e}},2);var i=void 0;n.watch(e("cornerstone-math"),{"*":function(e){i=e}},3);var s=void 0;n.watch(e("cornerstone-wado-image-loader"),{"*":function(e){s=e}},4);var l=void 0;n.watch(e("dicom-parser"),{"*":function(e){l=e}},5);var u=void 0;n.watch(e("meteor/jquery"),{$:function(e){u=e}},6);var c=void 0;n.watch(e("hammerjs"),{default:function(e){c=e}},7),n.watch(e("./client/")),o.external.$=u,a.external.$=u,a.external.Hammer=c,a.external.cornerstone=o,s.external.cornerstone=o},"namespace.js":function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}var o=r(e("babel-runtime/helpers/extends"));n.export({Meteor:function(){return a},OHIF:function(){return i}});var a=void 0;n.watch(e("meteor/meteor"),{Meteor:function(e){a=e}},0);var i=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){i=e}},1);var s=(0,o.default)({},i.cornerstone);i.cornerstone=s},client:{"index.js":function(e,t,n){var r=void 0;n.watch(e("../namespace"),{OHIF:function(e){r=e}},0),n.watch(e("./renderer.js")),n.watch(e("./lib/cornerstoneToolsMouseInputOverrides.js"));var o=void 0;n.watch(e("./lib/classes/MetadataProvider"),{MetadataProvider:function(e){o=e}},1),r.cornerstone.metadataProvider=new o},"renderer.js":function(e,t,n){var r=void 0,o=void 0;n.watch(e("../namespace"),{Meteor:function(e){r=e},OHIF:function(e){o=e}},0);var a="settings.public.ui.cornerstoneRenderer";o.cornerstone.renderer=o.utils.ObjectPath.get(r,a)||""},lib:{"cornerstoneToolsMouseInputOverrides.js":function(e,t,n){function o(e){return"number"!=typeof e.buttons?e.which:0===e.buttons?0:e.buttons%2==1?1:e.buttons%4==2?3:e.buttons%8==4?2:0}function a(){y=!1}function i(e){r(e.element).trigger("CornerstoneToolsMouseDownActivate",e)}function s(e){var t=e.currentTarget,n="CornerstoneToolsMouseDoubleClick",a={page:p.point.pageToPoint(e),image:d.pageToPixel(t,e.pageX,e.pageY),client:{x:e.clientX,y:e.clientY}};a.canvas=d.pixelToCanvas(t,a.image);var i=m(a),s={event:e,which:o(e),viewport:d.getViewport(t),image:d.getEnabledElement(t).image,element:t,startPoints:a,lastPoints:i,currentPoints:a,deltaPoints:{x:0,y:0},type:n},l=r.Event(n,s);r(s.element).trigger(l,s)}function l(e){function t(e){var t="CornerstoneToolsMouseDrag",n={page:p.point.pageToPoint(e),image:d.pageToPixel(s,e.pageX,e.pageY),client:{x:e.clientX,y:e.clientY}};n.canvas=d.pixelToCanvas(s,n.image);var o={page:p.point.subtract(n.page,f.page),image:p.point.subtract(n.image,f.image),client:p.point.subtract(n.client,f.client),canvas:p.point.subtract(n.canvas,f.canvas)},a={which:w,viewport:d.getViewport(s),image:d.getEnabledElement(s).image,element:s,startPoints:c,lastPoints:f,currentPoints:n,deltaPoints:o,type:t,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey};return r(a.element).trigger(t,a),f=m(n),v(e)}function n(e){clearTimeout(b);var o="CornerstoneToolsMouseUp";y&&(o="CornerstoneToolsMouseClick");var a={page:p.point.pageToPoint(e),image:d.pageToPixel(s,e.pageX,e.pageY),client:{x:e.clientX,y:e.clientY}};a.canvas=d.pixelToCanvas(s,a.image);var i={page:p.point.subtract(a.page,f.page),image:p.point.subtract(a.image,f.image),client:p.point.subtract(a.client,f.client),canvas:p.point.subtract(a.canvas,f.canvas)},l={event:e,which:w,viewport:d.getViewport(s),image:d.ge
!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.underscore._,c,t;(function(){var e=function(e){return encodeURIComponent(e).replace(/\*/g,"%2A")};(c={})._encodeParams=function(r,a){var n=[],c=Array.isArray(r);for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t)){var o=a?a+"["+(c?"":t)+"]":t,i=r[t];if("object"==typeof i)n.push(this._encodeParams(i,o));else{var l=e(o).replace("%5B","[").replace("%5D","]");n.push(l+"="+e(i))}}return n.join("&").replace(/%20/g,"+")},t=function(e,r,a,n){var t=e,o=r?r.slice(1):null;if("string"==typeof a&&(o=String(a)),n){o=o||"";var i=c._encodeParams(n);o&&i&&(o+="&"),o+=i}var l=t;return null!==o&&(l+="?"+o),l}}).call(this),function(){c._constructUrl=function(e,r,a){var n=/^(.*?)(\?.*)?$/.exec(e);return t(n[1],n[2],r,a)}}.call(this),"undefined"==typeof Package&&(Package={}),function(e,r){for(var a in r)a in e||(e[a]=r[a])}(Package.url={},{URL:c})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,r=Package.url.URL,o=Package.modules.meteorInstall,c=Package["babel-runtime"].meteorBabelHelpers,i=Package.promise.Promise,s=Package["ecmascript-runtime-client"].Symbol,l=Package["ecmascript-runtime-client"].Map,p=Package["ecmascript-runtime-client"].Set,u,f,d,m=o({node_modules:{meteor:{http:{"httpcall_common.js":function(){function e(e,t){return e.length>t?e.slice(0,t)+"...":e}var t=500;u=function(t,n){var a="failed ["+t+"]";return n&&(a+=" "+e(("string"==typeof n?n:n.toString()).replace(/\n/g," "),500)),new Error(a)},f=function(e){var t=(e.headers["content-type"]||";").split(";")[0];if(a.include(["application/json","text/javascript","application/javascript","application/x-javascript"],t))try{e.data=JSON.parse(e.content)}catch(t){e.data=null}else e.data=null},(d={}).get=function(){return d.call.apply(this,["GET"].concat(a.toArray(arguments)))},d.post=function(){return d.call.apply(this,["POST"].concat(a.toArray(arguments)))},d.put=function(){return d.call.apply(this,["PUT"].concat(a.toArray(arguments)))},d.del=function(){return d.call.apply(this,["DELETE"].concat(a.toArray(arguments)))},d.patch=function(){return d.call.apply(this,["PATCH"].concat(a.toArray(arguments)))}},"httpcall_client.js":function(t,n,o){d.call=function(t,n,o,i){if(i||"function"!=typeof o||(i=o,o=null),o=o||{},"function"!=typeof i)throw new Error("Can't make a blocking HTTP call from the client; callback required.");t=(t||"").toUpperCase();var s={},l=o.content;o.data&&(l=JSON.stringify(o.data),s["Content-Type"]="application/json");var p,d;if(l||"GET"===t||"HEAD"===t?p=o.params:d=o.params,n=r._constructUrl(n,o.query,p),!1===o.followRedirects)throw new Error("Option followRedirects:false not supported on client.");if(a.has(o,"npmRequestOptions"))throw new Error("Option npmRequestOptions not supported on client.");var m,h;if(o.auth){var g=o.auth.indexOf(":");if(g<0)throw new Error('auth option should be of the form "username:password"');m=o.auth.substring(0,g),h=o.auth.substring(g+1)}d&&(l=r._encodeParams(d)),a.extend(s,o.headers||{}),i=function(e){return function(t,n){t&&n&&(t.response=n),e(t,n)}}(i),i=a.once(i);try{var y;if("undefined"!=typeof XMLHttpRequest)y=new XMLHttpRequest;else{if("undefined"==typeof ActiveXObject)throw new Error("Can't create XMLHttpRequest");y=new ActiveXObject("Microsoft.XMLHttp")}y.open(t,n,!0,m,h);for(var v in c.sanitizeForInObject(s))y.setRequestHeader(v,s[v]);var P=!1,w;if(o.timeout&&(w=e.setTimeout(function(){P=!0,y.abort()},o.timeout)),y.onreadystatechange=function(t){if(4===y.readyState)if(w&&e.clearTimeout(w),P)i(new Error("timeout"));else if(y.status){var n={};n.statusCode=y.status,n.content=y.responseText,n.headers={};var r=y.getAllResponseHeaders();""===r&&y.getResponseHeader("content-type")&&(r="content-type: "+y.getResponseHeader("content-type"));var o=r.split(/\r?\n/);a.each(o,function(e){var t=/^(.*?):(?:\s+)(.*)$/.exec(e);t&&3===t.length&&(n.headers[t[1].toLowerCase()]=t[2])}),f(n);var c=null;n.statusCode>=400&&(c=u(n.statusCode,n.content)),i(c,n)}else i(new Error("network"))},o.beforeSend&&!1===a.once(o.beforeSend).call(null,y,o))return y.abort();y.send(l)}catch(e){i(e)}}},"deprecated.js":function(){e.http=d}}}}},{extensions:[".js",".json"]});m("./node_modules/meteor/http/httpcall_common.js"),m("./node_modules/meteor/http/httpcall_client.js"),m("./node_modules/meteor/http/deprecated.js"),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.http={},{HTTP:d})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,s;(function(){!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return ws.apply(null,arguments)}function t(e){ws=e}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){var t;for(t in e)return!1;return!0}function r(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function o(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n=[],s;for(s=0;s<e.length;++s)n.push(t(e[s],s));return n}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,s){return pt(e,t,n,s,!0).utc()}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return null==e._pf&&(e._pf=c()),e._pf}function m(e){if(null==e._isValid){var t=f(e),n=Ms.call(t.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function _(e){var t=h(NaN);return null!=e?d(f(t),e):f(t).userInvalidated=!0,t}function y(e,t){var n,s,i;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=f(t)),r(t._locale)||(e._locale=t._locale),ks.length>0)for(n=0;n<ks.length;n++)r(i=t[s=ks[n]])||(e[s]=i);return e}function g(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ss&&(Ss=!0,e.updateOffset(this),Ss=!1)}function p(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function v(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function M(e,t,n){var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a;for(a=0;a<s;a++)(n&&e[a]!==t[a]||!n&&v(e[a])!==v(t[a]))&&r++;return r+i}function k(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,n){var s=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),s){for(var i=[],r,a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){r+="\n["+a+"] ";for(var o in arguments[0])r+=o+": "+arguments[0][o]+", ";r=r.slice(0,-2)}else r=arguments[a];i.push(r)}k(t+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return n.apply(this,arguments)},n)}function D(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),Ds[t]||(k(n),Ds[t]=!0)}function Y(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)Y(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var n=d({},e),i;for(i in t)l(t,i)&&(s(e[i])&&s(t[i])?(n[i]={},d(n[i],e[i]),d(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)l(e,i)&&!l(t,i)&&s(e[i])&&(n[i]=d({},n[i]));return n}function T(e){null!=e&&this.set(e)}function P(e,t,n){var s=this._calendar[e]|
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package["babel-runtime"].meteorBabelHelpers,a=Package.promise.Promise,o=Package["ecmascript-runtime-client"].Symbol,s=Package["ecmascript-runtime-client"].Map,u=Package["ecmascript-runtime-client"].Set,l,c=r({node_modules:{meteor:{validatejs:{lib:{"validate.js":function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}var o=r(e("babel-runtime/helpers/typeof"));(function(e,t,n){"use strict";var r=function(e,t,n){n=s.extend({},s.options,n);var a=s.runValidations(e,t,n),o,u;for(o in i.sanitizeForInObject(a))for(u in i.sanitizeForInObject(a[o]))if(s.isPromise(a[o][u]))throw new Error("Use validate.async if you want support for promises");return r.processValidationResults(a,n)},s=r;s.extend=function(e){return[].slice.call(arguments,1).forEach(function(t){for(var n in i.sanitizeForInObject(t))e[n]=t[n]}),e},s.extend(r,{version:{major:0,minor:9,patch:0,metadata:"development",toString:function(){var e=s.format("%{major}.%{minor}.%{patch}",s.version);return s.isEmpty(s.version.metadata)||(e+="+"+s.version.metadata),e}},Promise:void 0!==a?a:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,n){var r=[],a,o,u,l,c,f,d;(s.isDomElement(e)||s.isJqueryElement(e))&&(e=s.collectFormValues(e));for(a in i.sanitizeForInObject(t)){u=s.getDeepObjectValue(e,a),l=s.result(t[a],u,e,a,n,t);for(o in i.sanitizeForInObject(l)){if(!(c=s.validators[o]))throw d=s.format("Unknown validator %{name}",{name:o}),new Error(d);f=l[o],(f=s.result(f,u,e,a,n,t))&&r.push({attribute:a,value:u,validator:o,globalOptions:n,attributes:e,options:f,error:c.call(c,u,f,a,e,n)})}}return r},processValidationResults:function(e,t){var n;switch(e=s.pruneEmptyErrors(e,t),e=s.expandMultipleErrors(e,t),e=s.convertErrorMessages(e,t),t.format||"grouped"){case"detailed":break;case"flat":e=s.flattenErrorsToArray(e);break;case"grouped":e=s.groupErrorsByAttribute(e);for(n in i.sanitizeForInObject(e))e[n]=s.flattenErrorsToArray(e[n]);break;default:throw new Error(s.format("Unknown format %{format}",t))}return s.isEmpty(e)?void 0:e},async:function(e,t,n){var r=(n=s.extend({},s.async.options,n)).wrapErrors||function(e){return e};!1!==n.cleanAttributes&&(e=s.cleanAttributes(e,t));var i=s.runValidations(e,t,n);return new s.Promise(function(a,o){s.waitForResults(i).then(function(){var u=s.processValidationResults(i,n);u?o(new r(u,n,e,t)):a(e)},function(e){o(e)})})},single:function(e,t,n){return n=s.extend({},s.single.options,n,{format:"flat",fullMessages:!1}),s({single:e},{single:t},n)},waitForResults:function(e){return e.reduce(function(e,t){return s.isPromise(t.error)?e.then(function(){return t.error.then(function(e){t.error=e||null},function(e){if(e instanceof Error)throw e;s.error("Rejecting promises with the result is deprecated. Please use the resolve callback instead."),t.error=e})}):e},new s.Promise(function(e){e()}))},result:function(e){var t=[].slice.call(arguments,1);return"function"==typeof e&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeof e&&!isNaN(e)},isFunction:function(e){return"function"==typeof e},isInteger:function(e){return s.isNumber(e)&&e%1==0},isObject:function(e){return e===Object(e)},isDate:function(e){return e instanceof Date},isDefined:function(e){return null!==e&&void 0!==e},isPromise:function(e){return!!e&&s.isFunction(e.then)},isJqueryElement:function(e){return e&&s.isString(e.jquery)},isDomElement:function(e){return!!e&&(!(!s.isFunction(e.querySelectorAll)||!s.isFunction(e.querySelector))&&(!(!s.isObject(document)||e!==document)||("object"===("undefined"==typeof HTMLElement?"undefined":(0,o.default)(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":(0,o.default)(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)))},isEmpty:function(e){var t;if(!s.isDefined(e))return!0;if(s.isFunction(e))return!1;if(s.isString(e))return s.EMPTY_STRING_REGEXP.test(e);if(s.isArray(e))return 0===e.length;if(s.isDate(e))return!1;if(s.isObject(e)){for(t in i.sanitizeForInObject(e))return
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,s=Package.jquery.$,n=Package.jquery.jQuery;(function(){(function(){!function(e,t){var r=[].slice,s={},n=e.amplify={publish:function(e){if("string"!=typeof e)throw new Error("You must provide a valid topic to publish.");var t=r.call(arguments,1),n,o,a,u=0,i;if(!s[e])return!0;for(a=(n=s[e].slice()).length;u<a&&(o=n[u],!1!==(i=o.callback.apply(o.context,t)));u++);return!1!==i},subscribe:function(e,t,r,n){if("string"!=typeof e)throw new Error("You must provide a valid topic to create a subscription.");3===arguments.length&&"number"==typeof r&&(n=r,r=t,t=null),2===arguments.length&&(r=t,t=null),n=n||10;for(var o=0,a=e.split(/\s/),u=a.length,i;o<u;o++){e=a[o],i=!1,s[e]||(s[e]=[]);for(var c=s[e].length-1,l={callback:r,context:t,priority:n};c>=0;c--)if(s[e][c].priority<=n){s[e].splice(c+1,0,l),i=!0;break}i||s[e].unshift(l)}return r},unsubscribe:function(e,t,r){if("string"!=typeof e)throw new Error("You must provide a valid topic to remove a subscription.");if(2===arguments.length&&(r=t,t=null),s[e])for(var n=s[e].length,o=0;o<n;o++)s[e][o].callback===r&&(t&&s[e][o].context!==t||(s[e].splice(o,1),o--,n--))}}}(this),function(e,t){function r(e,r){s.addType(e,function(o,a,u){var i,c,l,p,f=a,d=(new Date).getTime();if(!o){f={},p=[],l=0;try{for(o=r.length;o=r.key(l++);)n.test(o)&&((c=JSON.parse(r.getItem(o))).expires&&c.expires<=d?p.push(o):f[o.replace(n,"")]=c.data);for(;o=p.pop();)r.removeItem(o)}catch(e){}return f}if(o="__amplify__"+o,a===t){if(i=r.getItem(o),!((c=i?JSON.parse(i):{expires:-1}).expires&&c.expires<=d))return c.data;r.removeItem(o)}else if(null===a)r.removeItem(o);else{c=JSON.stringify({data:a,expires:u.expires?d+u.expires:null});try{r.setItem(o,c)}catch(t){s[e]();try{r.setItem(o,c)}catch(e){throw s.error()}}}return f})}var s=e.store=function(e,t,r){var n=s.type;return r&&r.type&&r.type in s.types&&(n=r.type),s.types[n](e,t,r||{})};s.types={},s.type=null,s.addType=function(e,t){s.type||(s.type=e),s.types[e]=t,s[e]=function(t,r,n){return n=n||{},n.type=e,s(t,r,n)}},s.error=function(){return"amplify.store quota exceeded"};var n=/^__amplify__/;for(var o in{localStorage:1,sessionStorage:1})try{window[o].setItem("__amplify__","x"),window[o].removeItem("__amplify__"),r(o,window[o])}catch(e){}if(!s.types.localStorage&&window.globalStorage)try{r("globalStorage",window.globalStorage[window.location.hostname]),"sessionStorage"===s.type&&(s.type="globalStorage")}catch(e){}!function(){if(!s.types.localStorage){var e=document.createElement("div"),r="amplify";e.style.display="none",document.getElementsByTagName("head")[0].appendChild(e);try{e.addBehavior("#default#userdata"),e.load(r)}catch(t){return void e.parentNode.removeChild(e)}s.addType("userData",function(n,o,a){e.load(r);var u,i,c,l,p,f=o,d=(new Date).getTime();if(!n){for(f={},p=[],l=0;u=e.XMLDocument.documentElement.attributes[l++];)(i=JSON.parse(u.value)).expires&&i.expires<=d?p.push(u.name):f[u.name]=i.data;for(;n=p.pop();)e.removeAttribute(n);return e.save(r),f}if(n=n.replace(/[^\-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g,"-"),n=n.replace(/^-/,"_-"),o===t){if(u=e.getAttribute(n),!((i=u?JSON.parse(u):{expires:-1}).expires&&i.expires<=d))return i.data;e.removeAttribute(n)}else null===o?e.removeAttribute(n):(c=e.getAttribute(n),i=JSON.stringify({data:o,expires:a.expires?d+a.expires:null}),e.setAttribute(n,i));try{e.save(r)}catch(t){null===c?e.removeAttribute(n):e.setAttribute(n,c),s.userData();try{e.setAttribute(n,i),e.save(r)}catch(t){throw null===c?e.removeAttribute(n):e.setAttribute(n,c),s.error()}}return f})}}(),function(){function e(e){return e===t?t:JSON.parse(JSON.stringify(e))}var r={},n={};s.addType("memory",function(s,o,a){return s?o===t?e(r[s]):(n[s]&&(clearTimeout(n[s]),delete n[s]),null===o?(delete r[s],null):(r[s]=o,a.expires&&(n[s]=setTimeout(function(){delete r[s],delete n[s]},a.expires)),o)):e(r)})}()}(this.amplify=this.amplify||{}),function(e,t){"use strict";function r(){}function s(e){return"[object Function]
"undefined"==typeof Package&&(Package={}),Package["ddp-rate-limiter"]={};
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,o=Package.meteor.meteorEnv,a=Package.random.Random;(function(){var o=Object.prototype.hasOwnProperty,r="_localstorage_test_"+a.id(),n,c;try{(c=t.localStorage)&&(c.setItem(r,r),n=c.getItem(r),c.removeItem(r))}catch(e){}r===n&&(e.isServer?e._localStorage=c:["getItem","setItem","removeItem"].forEach(function(e){this[e]=function(){return c[e].apply(c,arguments)}},e._localStorage={})),e._localStorage||(e.isClient&&e._debug("You are running a browser with no localStorage or userData support. Logging in from one tab will not cause another tab to be logged in."),e._localStorage=Object.create({setItem:function(e,t){this[e]=t},removeItem:function(e){delete this[e]},getItem:function(e){return o.call(this,e)?this[e]:null}}))}).call(this),"undefined"==typeof Package&&(Package={}),Package.localstorage={}}();
!function(){var n=Package.meteor.Meteor,e=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package.underscore._,i=Package.tracker.Tracker,r=Package.tracker.Deps,a=Package.random.Random,c=Package["callback-hook"].Hook,s=Package["reactive-var"].ReactiveVar,u=Package["ddp-client"].DDP,l=Package.mongo.Mongo,g=Package.modules.meteorInstall,_=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,f=Package["ecmascript-runtime-client"].Symbol,h=Package["ecmascript-runtime-client"].Map,d=Package["ecmascript-runtime-client"].Set,k,m,L,E=g({node_modules:{meteor:{"accounts-base":{"client_main.js":function(e,o,t){var i=t;i.export({AccountsClient:function(){return r},AccountsTest:function(){return a}});var r=void 0;i.watch(e("./accounts_client.js"),{AccountsClient:function(n){r=n}},0);var a=void 0;i.watch(e("./url_client.js"),{AccountsTest:function(n){a=n}},1),i.watch(e("./localstorage_token.js")),k=new r,n.users=k.users},"accounts_client.js":function(e,o,i){function r(n){return n&&n.__esModule?n:{default:n}}var a=r(e("babel-runtime/helpers/classCallCheck")),c=r(e("babel-runtime/helpers/possibleConstructorReturn")),l=r(e("babel-runtime/helpers/inherits"));i.export({AccountsClient:function(){return _}});var g=void 0;i.watch(e("./accounts_common.js"),{AccountsCommon:function(n){g=n}},0);var _=function(n){function e(o){(0,a.default)(this,e);var t=(0,c.default)(this,n.call(this,o));return t._loggingIn=new s(!1),t._loggingOut=new s(!1),t._loginServicesHandle=t.connection.subscribe("meteor.loginServiceConfiguration"),t._pageLoadLoginCallbacks=[],t._pageLoadLoginAttemptInfo=null,t._initUrlMatching(),t._initLocalStorage(),t._loginFuncs={},t}return(0,l.default)(e,n),e.prototype.userId=function(){function n(){return this.connection.userId()}return n}(),e.prototype._setLoggingIn=function(){function n(n){this._loggingIn.set(n)}return n}(),e.prototype.loggingIn=function(){function n(){return this._loggingIn.get()}return n}(),e.prototype.loggingOut=function(){function n(){return this._loggingOut.get()}return n}(),e.prototype.registerClientLoginFunction=function(){function n(n,e){if(this._loginFuncs[n])throw new Error(n+" has been defined already");this._loginFuncs[n]=e}return n}(),e.prototype.callLoginFunction=function(){function n(n){if(!this._loginFuncs[n])throw new Error(n+" was not defined");for(var e=arguments.length,o=Array(e>1?e-1:0),t=1;t<e;t++)o[t-1]=arguments[t];return this._loginFuncs[n].apply(this,o)}return n}(),e.prototype.applyLoginFunction=function(){function n(n,e){if(!this._loginFuncs[n])throw new Error(n+" was not defined");return this._loginFuncs[n].apply(this,e)}return n}(),e.prototype.logout=function(){function n(n){var e=this;e._loggingOut.set(!0),e.connection.apply("logout",[],{wait:!0},function(o,t){e._loggingOut.set(!1),o?n&&n(o):(e.makeClientLoggedOut(),n&&n())})}return n}(),e.prototype.logoutOtherClients=function(){function n(n){var e=this;e.connection.apply("getNewToken",[],{wait:!0},function(n,o){n||e._storeLoginToken(e.userId(),o.token,o.tokenExpires)}),e.connection.apply("removeOtherTokens",[],{wait:!0},function(e){n&&n(e)})}return n}(),e}(g),p=_.prototype;n.loggingIn=function(){return k.loggingIn()},n.loggingOut=function(){return k.loggingOut()},p.callLoginMethod=function(n){var e=this;n=t.extend({methodName:"login",methodArguments:[{}],_suppressLoggingIn:!1},n),t.each(["validateResult","userCallback"],function(e){n[e]||(n[e]=function(){})});var o=t.once(function(o){o?e._onLoginFailureHook.each(function(n){return n({error:o}),!0}):e._onLoginHook.each(function(n){return n(),!0}),n.userCallback.apply(this,arguments)}),i=!1,r=function(n,t){!n&&t&&t.token&&(e._reconnectStopper&&e._reconnectStopper.stop(),e._reconnectStopper=u.onReconnect(function(n){if(n==e.connection){i=!0;var r=e._storedLoginToken();r&&(t={token:r,tokenExpires:e._storedLoginTokenExpires()}),t.tokenExpires||(t.tokenExpires=e._tokenExpiration(new Date)),e._tokenExpiresSoon(t.tokenExpires)?e.makeClientLoggedOut():e.callLoginMethod({methodArguments:[{resume:t.token}],_suppressLoggingIn:!0,userCallback:function(n){var i=e._storedLoginToke
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,s=Package.jquery.$,a=Package.jquery.jQuery,o=Package.tracker.Tracker,n=Package.tracker.Deps,r=Package["reactive-dict"].ReactiveDict,c=Package.session.Session,p=Package.underscore._,u=Package.ejson.EJSON,h;(function(){var e=function(t){return void 0===t?"undefined":u.stringify(t)},i=function(t){if(void 0!==t&&"undefined"!==t)return u.parse(t)},s=function(t){t&&t.changed()};(h=function(e){function i(){if(!(amplify.store("__PSDATAVERSION__"+c._dictName)>=1)){var t=amplify.store("__PSKEYS__"+c._dictName),e=amplify.store("__PSAKEYS__"+c._dictName);p.each([t,e],function(t){p.each(t,function(t){amplify.store(t,u.stringify(amplify.store(t)))})}),amplify.store("__PSDATAVERSION__"+c._dictName,2)}}function s(){if(!(amplify.store("__PSDATAVERSION__"+c._dictName)>=n)){var t=amplify.store("__PSKEYS__"+c._dictName),e=amplify.store("__PSAKEYS__"+c._dictName);p.each([t,e],function(t){p.each(t,function(t){var e=!1;try{u.parse(amplify.store(c._dictName+t))}catch(t){e=!0}if(!e){var i=u.parse(amplify.store(c._dictName+t)),s=u.toJSONValue(i);amplify.store(c._dictName+t,s)}})}),amplify.store("__PSDATAVERSION__"+c._dictName,4)}}if(!p.isString(e))throw new Error("dictName must be a string");this._dictName=e,"session"==e?(this._dictName="",this._dict=a):this._dict=new r(e);var n=4;this.psKeys={},this.psKeyList=[],this.psaKeys={},this.psaKeyList=[],this.default_method="temporary",t.settings&&t.settings.public&&t.settings.public.persistent_session&&(this.default_method=t.settings.public.persistent_session.default_method);var c=this;return t.isClient&&t.startup(function(){var t;i(),s();var e=amplify.store("__PSKEYS__"+c._dictName);if("object"==typeof e&&void 0!==e.length)for(var a=0;a<e.length;a++)p.has(c._dict.keys,e[a])||(t=c.get(e[a]),c.set(e[a],t,!0,!1));var o=amplify.store("__PSAKEYS__"+c._dictName);if("object"==typeof o&&void 0!==o.length)for(var a=0;a<o.length;a++)p.has(c._dict.keys,o[a])||(t=c.get(o[a]),c.setAuth(o[a],t,!0,!0))}),o.autorun(function(){t.userId&&(t.userId()||c.clearAuth())}),this}).prototype.store=function t(e,i,s){if(this.psKeyList=amplify.store("__PSKEYS__"+this._dictName)||[],this.psaKeyList=amplify.store("__PSAKEYS__"+this._dictName)||[],"get"==e)return amplify.store(this._dictName+i);this.psKeyList=p.without(this.psKeyList,i),this.psaKeyList=p.without(this.psaKeyList,i),delete this.psKeys[i],delete this.psaKeys[i],void 0===s||null===s||"temporary"==e?s=null:"persistent"==e?(this.psKeys[i]=u.toJSONValue(s),this.psKeyList=p.union(this.psKeyList,[i])):"authenticated"==e&&(this.psaKeys[i]=u.toJSONValue(s),this.psaKeyList=p.union(this.psaKeyList,[i])),amplify.store("__PSKEYS__",this.psKeyList),amplify.store("__PSAKEYS__",this.psaKeyList),amplify.store(this._dictName+i,u.toJSONValue(s))},h.prototype.old_get=function(){return this._dict.get.apply(this._dict,arguments)},h.prototype.get=function t(e){var i=this.old_get(e),s;return void 0!==this.store("get",e)&&(s=u.fromJSONValue(this.store("get",e))),void 0===s||null===s?i:s},h.prototype.old_set=function(){return this._dict.set.apply(this._dict,arguments)},h.prototype.set=function t(e,i,s,a){if("object"!=typeof e||void 0!==i){var o=e,n="temporary";(s||void 0===s&&("persistent"==this.default_method||"authenticated"==this.default_method))&&(n=a||void 0===s&&void 0===a&&"authenticated"==this.default_method?"authenticated":"persistent"),this.store(n,o,i),this.old_set(o,i)}else this._setObject(e,s,a)},h.prototype.all=function t(){this._dict.allDeps&&this._dict.allDeps.depend();var e={};return p.each(this._dict.keys,function(t,s){e[s]=i(t)}),e},h.prototype._setObject=function t(e,i,s){var a=this;p.each(e,function(t,e){a.set(e,t,i,s)})},h.prototype._ensureKey=function t(e){var i=this._dict;e in i.keyDeps||(i.keyDeps[e]=new o.Dependency,i.keyValueDeps[e]={})},h.prototype.equals=function t(i,s){var a=null;if(Package.mongo&&(a=Package.mongo.Mongo.ObjectID),!("string"==typeof s||"number"==typeof s||"boolean"==typeof s||void 0===s||s instanceof Date||a&&s instanceof a||null===s))throw new Error("Reacti
!function(){var e=Package.meteor.Meteor,o=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,a=Package["babel-runtime"].meteorBabelHelpers,c=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,i=Package["ecmascript-runtime-client"].Map,r=Package["ecmascript-runtime-client"].Set,s=Package.webapp.WebApp,g=Package.logging.Log,u=Package.deps.Tracker,f=Package.deps.Deps,d=Package.session.Session,v=Package["ddp-client"].DDP,p=Package.mongo.Mongo,m=Package.ui.Blaze,k=Package.ui.UI,P=Package.ui.Handlebars,h=Package.spacebars.Spacebars,w=Package["templating-runtime"].Template,y=Package.check.check,b=Package.check.Match,L=Package.underscore._,E=Package.jquery.$,R=Package.jquery.jQuery,T=Package.random.Random,j=Package.ejson.EJSON,S=Package["launch-screen"].LaunchScreen,I=Package.htmljs.HTML;t({node_modules:{meteor:{"ohif:log":{"main.js":function(e,o,n){var t=void 0;n.watch(e("meteor/meteor"),{Meteor:function(e){t=e}},0);var a=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){a=e}},1);var c=void 0;n.watch(e("loglevel"),{default:function(e){c=e}},2);var l=t.isProduction?"ERROR":"TRACE";a.log=c.getLogger("OHIF"),a.log.setLevel(l);var r=new i;a.log.time=function(e){var o=void 0===e?"default":e;r.set(o,(new Date).getTime())},a.log.timeEnd=function(e){var o=void 0===e?"default":e,n=(new Date).getTime(),t=r.get(o)||n;r.delete(o);var c=n-t;a.log.info(o+": "+c+"ms")}},node_modules:{loglevel:{"package.json":function(e,o){o.name="loglevel",o.version="1.4.1",o.main="lib/loglevel"},lib:{"loglevel.js":function(e,o,n){!function(e,o){"use strict";"function"==typeof define&&define.amd?define(o):"object"==typeof n&&n.exports?n.exports=o():e.log=o()}(this,function(){"use strict";function e(e){return typeof console!==i&&(void 0!==console[e]?o(console,e):void 0!==console.log?o(console,"log"):l)}function o(e,o){var n=e[o];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(o){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function n(e,o,n){return function(){typeof console!==i&&(t.call(this,o,n),this[e].apply(this,arguments))}}function t(e,o){for(var n=0;n<r.length;n++){var t=r[n];this[t]=n<e?l:this.methodFactory(t,e,o)}}function a(o,t,a){return e(o)||n.apply(this,arguments)}function c(e,o,n){function c(e){var o=(r[e]||"silent").toUpperCase();try{return void(window.localStorage[u]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(u)+"="+o+";"}catch(e){}}function l(){var e;try{e=window.localStorage[u]}catch(e){}if(typeof e===i)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(u)+"=");n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}var s=this,g,u="loglevel";e&&(u+=":"+e),s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=n||a,s.getLevel=function(){return g},s.setLevel=function(o,n){if("string"==typeof o&&void 0!==s.levels[o.toUpperCase()]&&(o=s.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(g=o,!1!==n&&c(o),t.call(s,o,e),typeof console===i&&o<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){l()||s.setLevel(e,!1)},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var f=l();null==f&&(f=null==o?"WARN":o),s.setLevel(f,!1)}var l=function(){},i="undefined",r=["trace","debug","info","warn","error"],s=new c,g={};s.getLogger=function e(o){if("string"!=typeof o||""===o)throw new TypeError("You must supply a name when creating a logger.");var n=g[o];return n||(n=g[o]=new c(o,s.getLevel(),s.methodFactory)),n};var u=typeof window!==i?window.log:void 0;return s.noConflict=function(){return typeof window!==i&&window.log===s&&(window.log=u),s},s})}}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ohif:log/main.js"),"undefined"==typeof Package&&(Package={}),Package["ohif:log"]={}}();
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["reactive-var"].ReactiveVar,r=Package.modules.meteorInstall,i=Package["babel-runtime"].meteorBabelHelpers,a=Package.promise.Promise,c=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,s=Package["ecmascript-runtime-client"].Set,f=r({node_modules:{meteor:{"ohif:commands":{"main.js":function(t,e,n){n.export({context:function(){return a},commands:function(){return c}});var o=void 0;n.watch(t("meteor/reactive-var"),{ReactiveVar:function(t){o=t}},0);var r=void 0;n.watch(t("meteor/ohif:core"),{OHIF:function(t){r=t}},1);var i=void 0;n.watch(t("meteor/ohif:commands/client/classes/CommandsManager"),{CommandsManager:function(t){i=t}},2);var a=new o(null);r.context=a;var c=new i(a);r.commands=c},client:{classes:{"CommandsManager.js":function(t,e,n){function o(t){return t&&t.__esModule?t:{default:t}}var r=o(t("babel-runtime/helpers/typeof")),i=o(t("babel-runtime/helpers/classCallCheck"));n.export({CommandsManager:function(){return s}});var a=void 0;n.watch(t("meteor/reactive-var"),{ReactiveVar:function(t){a=t}},0);var c=void 0;n.watch(t("meteor/underscore"),{_:function(t){c=t}},1);var u=void 0;n.watch(t("meteor/ohif:core"),{OHIF:function(t){u=t}},2);var s=function(){function t(){(0,i.default)(this,t),this.contexts={},this.last=new a("")}return t.prototype.getContext=function(){function t(t){var e=this.contexts[t];return e||u.log.warn('No context found with name "'+t+'"')}return t}(),t.prototype.getCurrentContext=function(){function t(){var t=u.context.get();return t?this.getContext(t):u.log.warn("There is no selected context")}return t}(),t.prototype.createContext=function(){function t(t){if(t)return this.contexts[t]?this.clear(t):void(this.contexts[t]={})}return t}(),t.prototype.set=function(){function t(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("object"===(void 0===e?"undefined":(0,r.default)(e))){var o=this.getContext(t);o&&(n||this.clear(t),Object.keys(e).forEach(function(t){return o[t]=e[t]}))}}return t}(),t.prototype.register=function(){function t(t,e,n){if("object"===(void 0===n?"undefined":(0,r.default)(n))){var o=this.getContext(t);o&&(o[e]=n)}}return t}(),t.prototype.setDisabledFunction=function(){function t(t,e,n){if(e&&"function"==typeof n){var o=this.getContext(t);if(o){var r=o[e];if(!r)return u.log.warn('Trying to set a disabled function to a command "'+e+'" that was not yet defined');r.disabled=n}}}return t}(),t.prototype.clear=function(){function t(t){t&&(this.contexts[t]={})}return t}(),t.prototype.getDefinition=function(){function t(t){var e=this.getCurrentContext();if(e)return e[t]}return t}(),t.prototype.isDisabled=function(){function t(t){var e=this.getDefinition(t);if(!e)return!1;var n=e.disabled;return!(!c.isFunction(n)||!n())||!(c.isFunction(n)||!n)}return t}(),t.prototype.run=function(){function t(t){var e=this.getDefinition(t);if(!e)return u.log.warn('Command "'+t+'" not found in current context');var n=e.action,o=e.params;if(!this.isDisabled(t)){if("function"!=typeof n)return u.log.warn('No action was defined for command "'+t+'"');var r=n(o);return this.last.get()===t?this.last.dep.changed():this.last.set(t),r}}return t}(),t}()}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ohif:commands/main.js");"undefined"==typeof Package&&(Package={}),Package["ohif:commands"]=f}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["templating-runtime"].Template,r=Package["reactive-var"].ReactiveVar,i=Package.session.Session,a=Package["iron:router"].Router,s=Package["iron:router"].RouteController,u=Package["u2622:persistent-session"].PersistentSession,c=Package.modules.meteorInstall,l=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,h=Package["iron:core"].Iron,p=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,d=Package["ecmascript-runtime-client"].Set,y=Package.blaze.Blaze,k=Package.blaze.UI,v=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,b=Package.htmljs.HTML,T=c({node_modules:{meteor:{"ohif:hotkeys":{"main.js":function(e,t,n){n.export({hotkeys:function(){return i}});var o=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){o=e}},0);var r=void 0;n.watch(e("meteor/ohif:hotkeys/client/classes/HotkeysManager"),{HotkeysManager:function(e){r=e}},1),n.watch(e("jquery.hotkeys"));var i=new r;o.hotkeys=i},client:{"index.js":function(e,t,n){n.watch(e("./components")),n.watch(e("./lib"))},classes:{"HotkeysContext.js":function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}var r=o(e("babel-runtime/helpers/typeof")),i=o(e("babel-runtime/helpers/classCallCheck"));n.export({HotkeysContext:function(){return s}});var a=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){a=e}},0);var s=function(){function e(t,n,o){(0,i.default)(this,e),this.name=t,this.definitions=Object.assign({},n),this.enabled=o}return e.prototype.extend=function(){function e(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===(void 0===t?"undefined":(0,r.default)(t))&&(this.definitions=Object.assign({},t),Object.keys(t).forEach(function(n){var o=t[n];e.unregister(n),o&&e.register(n,o),e.definitions[n]=o}))}return e}(),e.prototype.register=function(){function e(e,t){var n=this;if(t){if(!e)return a.log.warn('No command was defined for hotkey "'+t+'"');var o="keydown.hotkey."+this.name+"."+e,r=function(t){return $(document).bind(o,t,function(t){n.enabled.get()&&a.commands.run(e)})};t instanceof Array?t.forEach(function(e){return r(e)}):r(t)}}return e}(),e.prototype.unregister=function(){function e(e){var t="keydown.hotkey."+this.name+"."+e;this.definitions[e]&&($(document).unbind(t),delete this.definitions[e])}return e}(),e.prototype.initialize=function(){function e(){var e=this;Object.keys(this.definitions).forEach(function(t){var n=e.definitions[t];e.register(t,n)})}return e}(),e.prototype.destroy=function(){function e(){$(document).unbind("keydown.hotkey."+this.name)}return e}(),e}()},"HotkeysManager.js":function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}var r=o(e("babel-runtime/helpers/classCallCheck"));n.export({HotkeysManager:function(){return h}});var i=void 0;n.watch(e("meteor/meteor"),{Meteor:function(e){i=e}},0);var a=void 0;n.watch(e("meteor/reactive-var"),{ReactiveVar:function(e){a=e}},1);var s=void 0;n.watch(e("meteor/tracker"),{Tracker:function(e){s=e}},2);var u=void 0;n.watch(e("meteor/session"),{Session:function(e){u=e}},3);var c=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){c=e}},4);var l=void 0;n.watch(e("meteor/ohif:hotkeys/client/classes/HotkeysContext"),{HotkeysContext:function(e){l=e}},5);var h=function(){function e(){var t=this;(0,r.default)(this,e),this.contexts={},this.defaults={},this.currentContextName=null,this.enabled=new a(!0),this.retrieveFunction=null,this.storeFunction=null,this.changeObserver=new s.Dependency,s.autorun(function(){var e=c.context.get();t.switchToContext(e)})}return e.prototype.setRetrieveFunction=function(){function e(e){this.retrieveFunction=e}return e}(),e.prototype.setStoreFunction=function(){function e(e){this.storeFunction=e}return e}(),e.prototype.store=function(){function e(e,t){var n=this,o="hotkeysDefinitions."+e;return new f(function(r,a){n.storeFunction?n.storeFunction(e,t).then(r).catch(a):i.userId()?c.user.setData(o,t).then(r).catch(a):(u.setPersistent(o,t),r())})}return e}(),e.prototype.retriev
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.http.HTTP,i=Package.jquery.$,a=Package.jquery.jQuery,r=Package["momentjs:moment"].moment,s=Package.validatejs.validate,c=Package["u2622:persistent-session"].PersistentSession,u=Package.modules.meteorInstall,l=Package["babel-runtime"].meteorBabelHelpers,d=Package.promise.Promise,m=Package["ecmascript-runtime-client"].Symbol,p=Package["ecmascript-runtime-client"].Map,f=Package["ecmascript-runtime-client"].Set,g=Package.webapp.WebApp,x=Package.logging.Log,h=Package.deps.Tracker,v=Package.deps.Deps,S=Package.session.Session,y=Package["ddp-client"].DDP,w=Package.mongo.Mongo,I=Package.ui.Blaze,T=Package.ui.UI,D=Package.ui.Handlebars,b=Package.spacebars.Spacebars,P=Package["templating-runtime"].Template,C=Package.check.check,k=Package.check.Match,R=Package.underscore._,V=Package.random.Random,O=Package.ejson.EJSON,M=Package["launch-screen"].LaunchScreen,A=Package.htmljs.HTML,q,L,N,E,F=u({node_modules:{meteor:{"ohif:viewerbase":{client:{components:{basic:{layout:{"template.layout.js":function(){P.__checkName("layout"),P.layout=new P("Template.layout",function(){var e=this;return b.include(e.lookupTemplate("yield"))})}},loadingText:{"template.loadingText.js":function(){P.__checkName("loadingText"),P.loadingText=new P("Template.loadingText",function(){var e=this;return A.Raw('<div class="loadingTextDiv">\n Loading... <i class="fa fa-spin fa-circle-o-notch fa-fw"></i>\n </div>')})}},errorText:{"template.errorText.js":function(){P.__checkName("errorText"),P.errorText=new P("Template.errorText",function(){var e=this;return A.DIV({class:"errorTextDiv"},"\n Error: ",I.View("lookup:error",function(){return b.mustache(e.lookup("error"))}),"\n ")})}},removableBackdrop:{"template.removableBackdrop.js":function(){P.__checkName("removableBackdrop"),P.removableBackdrop=new P("Template.removableBackdrop",function(){var e=this;return A.Raw('<div class="removableBackdrop noselect" oncontextmenu="return false;" unselectable="on" onselectstart="return false;">\n </div>')})}},aboutModal:{"template.aboutModal.js":function(){P.__checkName("aboutModal"),P.aboutModal=new P("Template.aboutModal",function(){var e=this;return I._TemplateWith(function(){return b.dataMustache(e.lookup("extend"),e.lookup("."),b.kw({id:"aboutModal",dialogClass:"modal-lg",title:"About"}))},function(){return b.include(e.lookupTemplate("dialogSimple"),function(){return["\n ",A.A({target:"_blank",class:"forkOnGithub",href:function(){return b.mustache(e.lookup("githubUrl"))}},"\n ",A.IMG({src:"https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67",alt:"Fork me on GitHub","data-canonical-src":"https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"}),"\n "),"\n ",A.DIV({class:"logo p-x-3 p-y-3 clearfix"},"\n ",A.SVG({class:"logoImage pull-left"},"\n ",A.USE({"xlink:href":function(){return b.mustache(e.lookup("absoluteUrl"),"packages/ohif_viewerbase/assets/icons.svg#icon-ohif-logo")}}),"\n "),"\n ",A.A({class:"logoText pull-left",target:"_blank",href:"http://ohif.org"},"\n Open Health Imaging Foundation DICOM Viewer\n "),"\n "),"\n ",A.DIV({class:"p-x-1 p-y-1 m-y-2"},"\n ",A.A({class:"btn btn-default inline",target:"_blank",href:"https://groups.google.com/forum/#!forum/cornerstone-platform"},"\n Visit the forum\n "),"\n ",A.A({class:"btn btn-default inline",target:"_blank",href:"https://github.com/OHIF/Viewers/issues"},"\n Report an issue\n "),"\n "),"\n ",A.DIV({class:"p-y-1 p-x-1"},"\n ",A.H3("Version Information"),"\n ",A.TABLE({class:"table table-responsive"},"\n ",A.THEAD("\n ",A.TR("\n ",A.TH("Name"),"\n
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package["ohif:viewerbase"].dialogPolyfill,i=Package.modules.meteorInstall,r=Package["babel-runtime"].meteorBabelHelpers,s=Package.promise.Promise,o=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,c=Package["ecmascript-runtime-client"].Set,l=i({node_modules:{meteor:{"ohif:metadata":{"main.js":function(e,t,a){var n=a;n.export({OHIF:function(){return i},Metadata:function(){return r}});var i=void 0,r=void 0;n.watch(e("./namespace.js"),{OHIF:function(e){i=e},Metadata:function(e){r=e}},0),n.watch(e("./client/"))},"namespace.js":function(e,t,a){a.export({OHIF:function(){return n},Metadata:function(){return i}});var n=void 0;a.watch(e("meteor/ohif:core"),{OHIF:function(e){n=e}},0);var i={};n.metadata=i},client:{"OHIFInstanceMetadata.js":function(e,t,a){function n(e){return e&&e.__esModule?e:{default:e}}var i=n(e("babel-runtime/helpers/classCallCheck")),r=n(e("babel-runtime/helpers/possibleConstructorReturn")),s=n(e("babel-runtime/helpers/inherits"));a.export({OHIFInstanceMetadata:function(){return l}});var o=void 0;a.watch(e("meteor/ohif:viewerbase"),{Viewerbase:function(e){o=e}},0);var u=o.metadata.InstanceMetadata,c=o.DICOMTagDescriptions,l=function(e){function t(a,n,s,o){(0,i.default)(this,t);var u=(0,r.default)(this,e.call(this,a,o));return u.init(n,s),u}return(0,s.default)(t,e),t.prototype.init=function(){function e(e,t){var a=this.getData();Object.defineProperties(this,{_sopInstanceUID:{configurable:!1,enumerable:!1,writable:!1,value:a.sopInstanceUid},_study:{configurable:!1,enumerable:!1,writable:!1,value:t},_series:{configurable:!1,enumerable:!1,writable:!1,value:e},_instance:{configurable:!1,enumerable:!1,writable:!1,value:a},_cache:{configurable:!1,enumerable:!1,writable:!1,value:Object.create(null)}})}return e}(),t.prototype.getTagValue=function(){function e(e,a,n){if(e in this._cache&&!0!==n)return this._cache[e];var i=t.getPropertyName(e),r=void 0;return i in this._instance?r=this._instance[i]:i in this._series?r=this._series[i]:i in this._study&&(r=this._study[i]),void 0!==r?(this._cache[e]=r,r):a}return e}(),t.prototype.tagExists=function(){function e(e){var a=t.getPropertyName(e);return a in this._instance||a in this._series||a in this._study}return e}(),t.prototype.getImageId=function(){function e(e,t){return null===this._imageId&&(this._imageId=o.getImageId(this.getData(),e,t)),this._imageId}return e}(),t.getPropertyName=function(){function e(e){var t=void 0,a=c.find(e);return void 0!==a&&(t=(t=a.keyword.replace(/^SOP/,"sop").replace(/UID$/,"Uid").replace(/ID$/,"Id")).charAt(0).toLowerCase()+t.substr(1)),t}return e}(),t}(u)},"OHIFSeriesMetadata.js":function(e,t,a){function n(e){return e&&e.__esModule?e:{default:e}}var i=n(e("babel-runtime/helpers/classCallCheck")),r=n(e("babel-runtime/helpers/possibleConstructorReturn")),s=n(e("babel-runtime/helpers/inherits"));a.export({OHIFSeriesMetadata:function(){return c}});var o=void 0;a.watch(e("meteor/ohif:viewerbase"),{Viewerbase:function(e){o=e}},0);var u=void 0;a.watch(e("./OHIFInstanceMetadata"),{OHIFInstanceMetadata:function(e){u=e}},1);var c=function(e){function t(a,n,s){(0,i.default)(this,t);var o=(0,r.default)(this,e.call(this,a,s));return o.init(n),o}return(0,s.default)(t,e),t.prototype.init=function(){function e(e){var t=this,a=this.getData();Object.defineProperty(this,"_seriesInstanceUID",{configurable:!1,enumerable:!1,writable:!1,value:a.seriesInstanceUid}),a.instances.forEach(function(n){t.addInstance(new u(n,a,e))})}return e}(),t}(o.metadata.SeriesMetadata)},"OHIFStudyMetadata.js":function(e,t,a){function n(e){return e&&e.__esModule?e:{default:e}}var i=n(e("babel-runtime/helpers/classCallCheck")),r=n(e("babel-runtime/helpers/possibleConstructorReturn")),s=n(e("babel-runtime/helpers/inherits"));a.export({OHIFStudyMetadata:function(){return c}});var o=void 0;a.watch(e("meteor/ohif:viewerbase"),{Viewerbase:function(e){o=e}},0);var u=void 0;a.watch(e("./OHIFSeriesMetadata"),{OHIFSeriesMetadata:function(e){u=e}},1);var c=function(
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n;(function(){(function(){!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r;"undefined"!=typeof window?r=window:void 0!==e?r=e:"undefined"!=typeof self&&(r=self),r.JSZip=t()}}(function(){var t,e,r;return function t(e,r,n){function i(s,o){if(!r[s]){if(!e[s]){var d="function"==typeof require&&require;if(!o&&d)return d(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return i(r||t)},l,l.exports,t,e,r,n)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t,e){for(var r="",i,a,s,o,d,l,h,f=0;f<t.length;)o=(i=t.charCodeAt(f++))>>2,d=(3&i)<<4|(a=t.charCodeAt(f++))>>4,l=(15&a)<<2|(s=t.charCodeAt(f++))>>6,h=63&s,isNaN(a)?l=h=64:isNaN(s)&&(h=64),r=r+n.charAt(o)+n.charAt(d)+n.charAt(l)+n.charAt(h);return r},r.decode=function(t,e){var r="",i,a,s,o,d,l,h,f=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");f<t.length;)i=(o=n.indexOf(t.charAt(f++)))<<2|(d=n.indexOf(t.charAt(f++)))>>4,a=(15&d)<<4|(l=n.indexOf(t.charAt(f++)))>>2,s=(3&l)<<6|(h=n.indexOf(t.charAt(f++))),r+=String.fromCharCode(i),64!=l&&(r+=String.fromCharCode(a)),64!=h&&(r+=String.fromCharCode(s));return r}},{}],2:[function(t,e,r){"use strict";function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=n},{}],3:[function(t,e,r){"use strict";r.STORE={magic:"\0\0",compress:function(t,e){return t},uncompress:function(t){return t},compressInputType:null,uncompressInputType:null},r.DEFLATE=t("./flate")},{"./flate":8}],4:[function(t,e,r){"use strict";var n=t("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i;(function(){(function(){var e=function(e,t){var n=this;if(n._eventEmitter.maxListeners&&t>n._eventEmitter.maxListeners)return"warning: possible EventEmitter memory leak detected. "+t+' listeners added on event "'+e+'". Use emitter.setMaxListeners() to increase limit. ('+n._eventEmitter.maxListeners+")"};(i=function(e){var t=this;if(!(t instanceof i))throw new Error('use "new" to construct an EventEmitter');e=e||{},t._eventEmitter={onListeners:{},onceListeners:{},maxListeners:e.maxListeners||10}}).prototype.setMaxListeners=function(e){this._eventEmitter.maxListeners=e};var t=function(t,n,r){return void 0===t[n]&&(t[n]=[]),e.apply(this,[n,t[n].push(r)])};i.prototype.on=function(e,n){var r=t.apply(this,[this._eventEmitter.onListeners,e,n]);return r&&console.warn(new Error(r).stack),this},i.prototype.once=function(e,n){var r=t.apply(this,[this._eventEmitter.onceListeners,e,n]);return r&&console.warn(new Error(r).stack),this};var n=function(e,t){var n=this,i=0;return void 0!==e&&r.each(e,function(e){i++,e.apply(n,t)}),i};i.prototype.emit=function(e){var t=this,i=r.rest(arguments),o=0,s=t._eventEmitter.onceListeners[e];return t._eventEmitter.onceListeners[e]=[],o+=n.call(t,t._eventEmitter.onListeners[e],i),(o+=n.call(t,s,i))>0};var o=function(e,t){for(var n=!1,r=[],i=0;i<e.length;i++)n||e[i]!==t?r.push(e[i]):n=!0;return r};i.prototype.off=function(e,t){var n=this;e?"function"==typeof t?(void 0!==n._eventEmitter.onListeners[e]&&(n._eventEmitter.onListeners[e]=o(n._eventEmitter.onListeners[e],t)),void 0!==n._eventEmitter.onceListeners[e]&&(n._eventEmitter.onceListeners[e]=o(n._eventEmitter.onceListeners[e],t))):(n._eventEmitter.onListeners[e]=[],n._eventEmitter.onceListeners[e]=[]):(n._eventEmitter.onListeners={},n._eventEmitter.onceListeners={})},i.prototype.addListener=i.prototype.on,i.prototype.removeListener=i.prototype.off,i.prototype.removeAllListeners=i.prototype.off,i.prototype.one=i.prototype.once,i.prototype.trigger=i.prototype.emit}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["raix:eventemitter"]={},{EventEmitter:i})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,i=Package.meteor.meteorEnv,n=Package["aldeed:simple-schema"].SimpleSchema,r=Package["aldeed:simple-schema"].MongoObject,o=Package.underscore._,a=Package.check.check,s=Package.check.Match,c=Package.mongo.Mongo,l=Package.minimongo.LocalCollection,m=Package.minimongo.Minimongo,u=Package.ejson.EJSON,d=Package["raix:eventemitter"].EventEmitter,f;(function(){function t(t,n,r,l,m){function u(e,i,n,r,a,s){E.clean(e,{mutate:!0,filter:n,autoConvert:r,getAutoValues:i,isModifier:"insert"!==t,removeEmptyStrings:a,trimStrings:s,extendAutoValueContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&!0!==v.upsert,isUpsert:_,userId:l,isFromTrustedCode:m,docId:I,isLocalCollection:k},v.extendAutoValueContext||{})})}var d=this,f,p,h,v,_,g,y,S;if(!n.length)throw new Error(t+" requires an argument");if("insert"===t)f=n[0],v=n[1],p=n[2],n="function"==typeof v?[f,v]:"function"==typeof p?[f,p]:[f];else{if("update"!==t)throw new Error("invalid type argument");g=n[0],f=n[1],v=n[2],p=n[3]}var C=o.isEmpty(f);p||"function"!=typeof v||(p=v,v={}),v=v||{},S="function"==typeof n[y=n.length-1],_="update"===t&&!0===v.upsert;var E=d.simpleSchema(f,v,g),k=null===d._connection;(e.isServer||k)&&!1===v.getAutoValues&&(r=!1);var w=v.validationContext;w?"string"==typeof w&&(w=E.namedContext(w)):w=E.namedContext(),e.isClient&&!p&&(p=function(i){i&&e._debug(t+" failed: "+(i.reason||i.stack))}),e.isClient&&S&&(p=n[y]=s(w,p));var x=E.allowsKey("_id");"insert"===t&&!f._id&&x&&(f._id=d._makeNewID());var I;"insert"===t?I=f._id:"update"===t&&g&&(I="string"==typeof g||g instanceof c.ObjectID?g:g._id);var P;f._id&&!x&&(P=f._id,delete f._id),u(f,r,!1!==v.filter,!1!==v.autoConvert,!1!==v.removeEmptyStrings,!1!==v.trimStrings);var A={};for(var M in f)f.hasOwnProperty(M)&&(A[M]=f[M]);if(e.isServer&&_&&o.isObject(g)){var O=A.$set||{};A.$set=o.clone(g),x||delete A.$set._id,o.extend(A.$set,O)}if(e.isClient&&!k&&u(A,!0,!1,!1,!1,!1),!C&&o.isEmpty(A))throw new Error("After filtering out keys not in the schema, your "+("update"===t?"modifier":"object")+" is now empty");var V;if(V=!1===v.validate||w.validate(A,{modifier:"update"===t||"upsert"===t,upsert:_,extendedCustomContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&!0!==v.upsert,isUpsert:_,userId:l,isFromTrustedCode:m,docId:I,isLocalCollection:k},v.extendedCustomContext||{})}))return P&&(f._id=P),"insert"===t?n[0]=f:n[1]=f,e.isServer&&S&&(n[y]=a(w,n[y])),n;if(h=i(w),!p)throw h;p(h,!1)}function i(t){var i,r=n.version>=2?t.validationErrors():t.invalidKeys();i=r.length?t.keyErrorMessage(r[0].name):"Failed validation";var o=new Error(i);return o.invalidKeys=r,o.validationContext=t,e.isServer&&(o.sanitizedError=new e.Error(400,i,u.stringify(o.invalidKeys))),o}function r(e,t){var i=t.split("c2_")[1].split(" ")[0],n=t.split("dup key:")[1].split('"')[1];e[h]([{name:i,type:"notUnique",value:n}])}function a(e,t){return function n(a){var s=o.toArray(arguments);return a&&("MongoError"===a.name&&11001===a.code||a.message.indexOf(!0))&&-1!==a.message.indexOf("c2_")&&(r(e,a.message),s[0]=i(e)),t.apply(this,s)}}function s(t,n){return function a(s){var c=o.toArray(arguments);if(s instanceof e.Error&&400===s.error&&"INVALID"===s.reason&&"string"==typeof s.details){var l=u.parse(s.details);t[h](l),c[0]=i(t)}else s instanceof e.Error&&409===s.error&&s.reason&&-1!==s.reason.indexOf("E11000")&&-1!==s.reason.indexOf("c2_")&&(r(t,s.reason),c[0]=i(t));return n.apply(this,c)}}function m(e){Package&&Package.insecure&&!v[e._name]&&(e.allow({insert:function(){return!0},update:function(){return!0},remove:function(){return!0},fetch:[],transform:null}),v[e._name]=!0)}function p(i,n){if(!_[i._name]){var r=null===i._connection;i.deny({insert:function(e,t){return i.simpleSchema(t).clean(t,{mutate:!0,isModifier:!1,filter:!1,autoConvert:!1,removeEmptyStrings:!1,trimStrings:!1,extendAutoValueContext:{isInsert:!0,isUpdate:!1,isUpsert:!1,userId:e,isFromTrustedCode:!1,docId:t._id,isLocalCollection:r}}),!1},update:function(e,t,n,o){return i.simpleSchema(o).clean(o,{mutate:!0,isModifier:!0,
!function(){var e=Package.meteor.Meteor,a=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["aldeed:collection2-core"].Collection2,c=Package.underscore._,i=Package.minimongo.LocalCollection,t=Package.minimongo.Minimongo,s=Package.check.check,l=Package.check.Match,m=Package.modules.meteorInstall,r=Package["babel-runtime"].meteorBabelHelpers,u=Package.promise.Promise,g=Package["aldeed:simple-schema"].SimpleSchema,d=Package["aldeed:simple-schema"].MongoObject,k=Package.mongo.Mongo,p=Package["ecmascript-runtime-client"].Symbol,P=Package["ecmascript-runtime-client"].Map,h=Package["ecmascript-runtime-client"].Set;m({node_modules:{meteor:{"aldeed:schema-index":{lib:{"indexing.js":function(){g.extendOptions({index:l.Optional(l.OneOf(Number,String,Boolean)),unique:l.Optional(Boolean),sparse:l.Optional(Boolean)}),(!g.version||g.version<2)&&g.messages({notUnique:"[label] must be unique"}),e.isServer&&o.on("schema.attached",function(a,n){function o(n,o,c,i){e.startup(function(){a._collection._ensureIndex(n,{background:!0,name:o,unique:c,sparse:i})})}function i(n){e.startup(function(){try{a._collection._dropIndex(n)}catch(e){}})}n.version>=2&&n.messageBox.messages({notUnique:"{{label}} must be unique"});var t=2===n.version?"mergedSchema":"schema";c.each(n[t](),function(e,a){if("index"in e||!0===e.unique){var n={},c;"index"in e?!0===(c=e.index)&&(c=1):c=1;var t="c2_"+a;n[a.replace(/\.\$\./g,".")]=c;var s=!!e.unique&&(1===c||-1===c),l=e.sparse||!1;!l&&s&&e.optional&&(l=!0),!1===c?i(t):o(n,t,s,l)}})})}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/aldeed:schema-index/lib/indexing.js"),"undefined"==typeof Package&&(Package={}),Package["aldeed:schema-index"]={}}();
!function(){var e=Package.meteor.Meteor,a=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["aldeed:collection2-core"].Collection2,t=Package.underscore._,i=Package.minimongo.LocalCollection,c=Package.minimongo.Minimongo,l=Package.check.check,s=Package.check.Match,d=Package["aldeed:simple-schema"].SimpleSchema,g=Package["aldeed:simple-schema"].MongoObject,r=Package.mongo.Mongo;(function(){d.extendOptions({denyInsert:s.Optional(Boolean),denyUpdate:s.Optional(Boolean)}),(!d.version||d.version<2)&&d.messages({insertNotAllowed:"[label] cannot be set during an insert",updateNotAllowed:"[label] cannot be set during an update"}),o.on("schema.attached",function(e,a){a.version>=2&&a.messageBox.messages({insertNotAllowed:"{{label}} cannot be set during an insert",updateNotAllowed:"{{label}} cannot be set during an update"}),a.addValidator(function(){if(this.isSet){var e=this.definition;return e.denyInsert&&this.isInsert?"insertNotAllowed":e.denyUpdate&&(this.isUpdate||this.isUpsert)?"updateNotAllowed":void 0}})})}).call(this),"undefined"==typeof Package&&(Package={}),Package["aldeed:schema-deny"]={}}();
"undefined"==typeof Package&&(Package={}),Package["aldeed:collection2"]={};
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,o=Package.jquery.$,n=Package.jquery.jQuery;(function(){if(void 0===n)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=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)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(n),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});var n=function(){i||t(o).trigger(t.support.transition.end)};return setTimeout(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))return e.handleObj.handler.apply(this,arguments)}})})}(n),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),n=i.data("bs.alert");n||i.data("bs.alert",n=new o(this)),"string"==typeof e&&n[e].call(i)})}var i='[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){function i(){a.detach().trigger("closed.bs.alert").remove()}var n=t(this),s=n.attr("data-target");s||(s=(s=n.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,""));var a=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())};var n=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(n),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.button"),s="object"==typeof e&&e;n||o.data("bs.button",n=new i(this,s)),"toggle"==e?n.toggle():e&&n.setState(e)})}var i=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){var i="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(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=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")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var o=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";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.carousel"),s=t.ext
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,a=Package.meteor.meteorEnv,i=Package["momentjs:moment"].moment,s=Package.jquery.$,n=Package.jquery.jQuery;(function(){!function(t,e){if("function"==typeof define&&define.amd)define(["moment","jquery","exports"],function(a,i,s){t.daterangepicker=e(t,s,a,i)});else if("undefined"!=typeof exports){var a=require("moment"),s="undefined"!=typeof window?window.jQuery:void 0;if(!s)try{(s=require("jquery")).fn||(s.fn={})}catch(t){if(!s)throw new Error("jQuery dependency not found")}e(t,exports,a,s)}else t.daterangepicker=e(t,{},t.moment||i,t.jQuery||t.Zepto||t.ender||t.$)}(this||{},function(t,e,a,i){var s=function(t,e,s){if(this.parentEl="body",this.element=i(t),this.startDate=a().startOf("day"),this.endDate=a().endOf("day"),this.minDate=!1,this.maxDate=!1,this.dateLimit=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.showWeekNumbers=!1,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyClass="btn-success",this.cancelClass="btn-default",this.locale={format:"MM/DD/YYYY",separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:a.weekdaysMin(),monthNames:a.monthsShort(),firstDay:a.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof e&&null!==e||(e={}),"string"!=typeof(e=i.extend(this.element.data(),e)).template&&(e.template='<div class="daterangepicker dropdown-menu"><div class="calendar left"><div class="daterangepicker_input"><input class="input-mini" type="text" name="daterangepicker_start" value="" /><i class="fa fa-calendar glyphicon glyphicon-calendar"></i><div class="calendar-time"><div></div><i class="fa fa-clock-o glyphicon glyphicon-time"></i></div></div><div class="calendar-table"></div></div><div class="calendar right"><div class="daterangepicker_input"><input class="input-mini" type="text" name="daterangepicker_end" value="" /><i class="fa fa-calendar glyphicon glyphicon-calendar"></i><div class="calendar-time"><div></div><i class="fa fa-clock-o glyphicon glyphicon-time"></i></div></div><div class="calendar-table"></div></div><div class="ranges"><div class="range_inputs"><button class="applyBtn" disabled="disabled" type="button"></button> <button class="cancelBtn" type="button"></button></div></div></div>'),this.parentEl=i(e.parentEl&&i(e.parentEl).length?e.parentEl:this.parentEl),this.container=i(e.template).appendTo(this.parentEl),"object"==typeof e.locale&&("string"==typeof e.locale.format&&(this.locale.format=e.locale.format),"string"==typeof e.locale.separator&&(this.locale.separator=e.locale.separator),"object"==typeof e.locale.daysOfWeek&&(this.locale.daysOfWeek=e.locale.daysOfWeek.slice()),"object"==typeof e.locale.monthNames&&(this.locale.monthNames=e.locale.monthNames.slice()),"number"==typeof e.locale.firstDay&&(this.locale.firstDay=e.locale.firstDay),"string"==typeof e.locale.applyLabel&&(this.locale.applyLabel=e.locale.applyLabel),"string"==typeof e.locale.cancelLabel&&(this.locale.cancelLabel=e.locale.cancelLabel),"string"==typeof e.locale.weekLabel&&(this.locale.weekLabel=e.locale.weekLabel),"string"==typeof e.locale.customRangeLabel&&(this.locale.customRangeLabel=e.locale.customRangeLabel)),"string"==typeof e.startDate&&(this.startDate=a(e.startDate,this.locale.format)),"string"==typeof e.endDate&&(this.endDate=a(e.endDate,this.locale.format)),"string"==typeof e.minDate&&(this.minDate=a(e.minDate,this.locale.format)),"string"==typeof e.maxDate&&(this.maxDate=a(e.maxDate,this.locale.format)),"object"==typeof e.startDate&&(this.startDate=a(e.startDate)),"object"==typeof e.endDate&&(this.endDate=a(e.endDate)),"object"==typeof e.minDate&&(this.minDate=a(e.minDate)),"object"==typeof e.maxDate&&
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["templating-runtime"].Template,r=Package.jquery.$,a=Package.jquery.jQuery,l=Package["aldeed:simple-schema"].SimpleSchema,i=Package["aldeed:simple-schema"].MongoObject,u=Package.modules.meteorInstall,c=Package["babel-runtime"].meteorBabelHelpers,s=Package.promise.Promise,m=Package["aldeed:collection2-core"].Collection2,f=Package["ecmascript-runtime-client"].Symbol,p=Package["ecmascript-runtime-client"].Map,d=Package["ecmascript-runtime-client"].Set,v=Package.blaze.Blaze,h=Package.blaze.UI,b=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,I=Package.mongo.Mongo,k=Package.htmljs.HTML,T=u({node_modules:{meteor:{"ohif:servers":{both:{"index.js":function(e,t,n){n.watch(e("./base.js")),n.watch(e("./collections")),n.watch(e("./lib"))},"base.js":function(e,t,n){var o=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){o=e}},0),o.servers={collections:{}}},collections:{"currentServer.js":function(e,t,n){n.export({CurrentServer:function(){return a}});var o=void 0;n.watch(e("meteor/mongo"),{Mongo:function(e){o=e}},0);var r=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){r=e}},1);var a=new o.Collection("currentServer");a._debugName="CurrentServer",r.servers.collections.currentServer=a},"index.js":function(e,t,n){n.export({CurrentServer:function(){return o},Servers:function(){return r}});var o=void 0;n.watch(e("./currentServer.js"),{CurrentServer:function(e){o=e}},0);var r=void 0;n.watch(e("./servers.js"),{Servers:function(e){r=e}},1)},"servers.js":function(e,t,n){n.export({Servers:function(){return a}});var o=void 0;n.watch(e("meteor/mongo"),{Mongo:function(e){o=e}},0);var r=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){r=e}},1);var a=new o.Collection("servers");a._debugName="Servers",r.servers.collections.servers=a}},lib:{"getCurrentServer.js":function(e,t,n){var o=void 0;n.watch(e("meteor/ohif:core"),{OHIF:function(e){o=e}},0);var r=void 0,a=void 0;n.watch(e("meteor/ohif:servers/both/collections"),{Servers:function(e){r=e},CurrentServer:function(e){a=e}},1),o.servers.getCurrentServer=function(){var e=a.findOne();if(e)return r.findOne({_id:e.serverId})}},"index.js":function(e,t,n){n.watch(e("./getCurrentServer.js"))}},schema:{"servers.js":function(e,t,n){n.export({DICOMWebRequestOptions:function(){return u},DICOMWebServer:function(){return c},DIMSEPeer:function(){return s},DIMSEServer:function(){return m},UISettings:function(){return f},PrefetchSchema:function(){return p},MouseButtonToolSchema:function(){return d},PublicServerConfig:function(){return v},Servers:function(){return h},ServerConfiguration:function(){return b}});var o=void 0;n.watch(e("meteor/aldeed:simple-schema"),{SimpleSchema:function(e){o=e}},0);var r={type:String,label:"Server Name",max:100},a={type:String,label:"Server Type",allowedValues:["dicomWeb","dimse"],valuesLabels:["DICOM Web","DIMSE"],optional:!0},l={type:String,label:"WADO URI root",max:1e3},i=["wwwc","zoom","pan","stackScroll"],u=new o({auth:{type:String,label:"Authentication",defaultValue:"orthanc:orthanc",optional:!0},logRequests:{type:Boolean,defaultValue:!0,label:"Requests"},logResponses:{type:Boolean,defaultValue:!1,label:"Responses"},logTiming:{type:Boolean,defaultValue:!0,label:"Timing"}}),c=new o({name:r,type:a,wadoUriRoot:l,wadoRoot:{type:String,label:"WADO root",max:1e3},imageRendering:{type:String,label:"Image rendering",allowedValues:["wadouri","orthanc"],valuesLabels:["WADO URI","ORTHANC"]},qidoRoot:{type:String,label:"QIDO root",max:1e3},qidoSupportsIncludeField:{type:Boolean,label:"QIDO supports including fields",defaultValue:!1},requestOptions:{type:u,label:"Request Options"}}),s=new o({aeTitle:{type:String,label:"AE Title"},hostAE:{type:String,label:"AE Host",optional:!0},host:{type:String,label:"Host Domain/IP",regEx:o.RegEx.WeakDomain},port:{type:Number,label:"Port",min:1,defaultValue:11112,max:65535},default:{type:Boolean,label:"Default",defaultValue:!1},server:{type:Boolean,label:"Server",defaultValue:!1},supportsInstanceRetrievalByStudyUid:{type:Boolean,label
"undefined"==typeof Package&&(Package={}),Package["ohif:dicom-services"]={};
!function(){var a;"undefined"==typeof Package&&(Package={}),function(a,o){for(var n in o)n in a||(a[n]=o[n])}(Package["ohif:wadoproxy"]={},{WADOProxy:void 0})}();
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,o=Package.meteor.meteorEnv,n=Package["templating-runtime"].Template,i=Package.http.HTTP,d=Package["ohif:viewerbase"].dialogPolyfill,r=Package["ohif:wadoproxy"].WADOProxy,s=Package.modules.meteorInstall,a=Package["babel-runtime"].meteorBabelHelpers,u=Package.promise.Promise,c=Package["ecmascript-runtime-client"].Symbol,y=Package["ecmascript-runtime-client"].Map,m=Package["ecmascript-runtime-client"].Set,l=Package.blaze.Blaze,b=Package.blaze.UI,f=Package.blaze.Handlebars,h=Package.spacebars.Spacebars,x=Package.htmljs.HTML,p=s({node_modules:{meteor:{"ohif:studies":{both:{"main.js":function(t,e,o){var n=void 0;o.watch(t("meteor/ohif:core"),{OHIF:function(t){n=t}},0),n.studies={},t("../imports/both")}},client:{"main.js":function(t){t("../imports/client")}},imports:{both:{"index.js":function(){}},client:{"index.js":function(t,e,o){o.watch(t("./components")),o.watch(t("./lib"))},components:{"index.js":function(t,e,o){o.watch(t("./browser"))},browser:{"index.js":function(t,e,o){o.watch(t("./item.html")),o.watch(t("./item.js")),o.watch(t("./list.html")),o.watch(t("./list.js")),o.watch(t("./list.styl")),o.watch(t("./quickSwitch.html")),o.watch(t("./quickSwitch.js")),o.watch(t("./series.html")),o.watch(t("./series.js")),o.watch(t("./sidebar.html")),o.watch(t("./sidebar.js"))},"item.html":function(t,e,o){o.exports=t("./template.item.js")},"template.item.js":function(){n.__checkName("studyBrowserItem"),n.studyBrowserItem=new n("Template.studyBrowserItem",function(){var t=this;return x.DIV({class:function(){return["study-browser-item ",h.mustache(h.dot(t.lookup("."),"studyItemClass"))," ",l.If(function(){return h.call(t.lookup("isActive"))},function(){return"active"})," ",l.If(function(){return h.call(t.lookup("isLoading"))},function(){return"loading"})]},"data-uid":function(){return h.mustache(h.dot(t.lookup("."),"studyInformation","studyInstanceUid"))}},"\n ",x.DIV({class:"study-item"},"\n ",l.If(function(){return h.call(t.lookup("isLoading"))},function(){return["\n ",h.include(t.lookupTemplate("loadingText")),"\n "]}),"\n ",l.Let({studyData:function(){return h.call(h.dot(t.lookup("instance"),"studyData","get"))}},function(){return["\n ",x.DIV({class:"study-item-box"},"\n ",x.DIV({class:"study-modality"},"\n ",x.DIV({class:"study-modality-text",style:function(){return h.mustache(t.lookup("modalityStyle"),h.dot(t.lookup("studyData"),"modalities"))}},l.View("lookup:studyData.modalities",function(){return h.mustache(h.dot(t.lookup("studyData"),"modalities"))})),"\n "),"\n ",x.DIV({class:"study-text"},"\n ",x.DIV({class:"study-date"},l.View("lookup:formatDA",function(){return h.mustache(t.lookup("formatDA"),h.dot(t.lookup("studyData"),"studyDate"),"D-MMM-YYYY")})),"\n ",x.DIV({class:"study-description"},l.View("lookup:studyData.studyDescription",function(){return h.mustache(h.dot(t.lookup("studyData"),"studyDescription"))})),"\n "),"\n "),"\n "]}),"\n "),"\n ",l.If(function(){return h.call(h.dot(t.lookup("."),"studyChildTemplate"))},function(){return["\n ",l.If(function(){return h.dataMustache(t.lookup("and"),h.dataMustache(t.lookup("not"),t.lookup("isLoading")),h.dot(t.lookup("instance"),"studyData","get"),h.dot(t.lookup("instance"),"loaded"))},function(){return["\n ",l._TemplateWith(function(){return{template:h.call(h.dot(t.lookup("."),"studyChildTemplate")),data:h.call(h.dataMustache(t.lookup("clone"),t.lookup(".")))}},function(){return h.include(function(){return h.call(n.__dynamic)})}),"\n "]}),"\n "]}),"\n ")})},"item.js":function(t,e,o){var n=void 0;o.watch(t("meteor/templating"),{Template:function(t){n=t}},0);var i=void 0;o.watch(t("meteor/reactive-var"),{ReactiveVar:function(t){i=t}},1);var d=void 0;o.watch(t("meteor/tracker"),{Tracker:function(t){d=t}},2);var r=void
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,i=Package.jquery.jQuery,a=Package.http.HTTP,r=Package.random.Random,s=Package["silentcicero:jszip"].JSZip,l=Package["aldeed:simple-schema"].SimpleSchema,d=Package["aldeed:simple-schema"].MongoObject,c=Package["accounts-base"].Accounts,u=Package["momentjs:moment"].moment,h=Package["ohif:viewerbase"].dialogPolyfill,p=Package["ohif:wadoproxy"].WADOProxy,b=Package.modules.meteorInstall,g=Package["babel-runtime"].meteorBabelHelpers,m=Package.promise.Promise,y=Package["aldeed:collection2-core"].Collection2,f=Package["ecmascript-runtime-client"].Symbol,v=Package["ecmascript-runtime-client"].Map,w=Package["ecmascript-runtime-client"].Set,S=Package.webapp.WebApp,k=Package.logging.Log,x=Package.deps.Tracker,T=Package.deps.Deps,C=Package.session.Session,P=Package["ddp-client"].DDP,L=Package.mongo.Mongo,D=Package.ui.Blaze,I=Package.ui.UI,N=Package.ui.Handlebars,E=Package.spacebars.Spacebars,j=Package["templating-runtime"].Template,O=Package.check.check,M=Package.check.Match,z=Package.underscore._,R=Package.ejson.EJSON,_=Package["launch-screen"].LaunchScreen,A=Package.htmljs.HTML,F,H,q,V=b({node_modules:{meteor:{"ohif:study-list":{both:{"index.js":function(t,e,n){n.watch(t("./base.js")),n.watch(t("./collections.js"))},"base.js":function(t,e,n){var o=void 0;n.watch(t("meteor/ohif:core"),{OHIF:function(t){o=t}},0),o.studylist={collections:{},actions:{}}},"collections.js":function(t,e,n){n.export({StudyImportStatus:function(){return a}});var o=void 0;n.watch(t("meteor/mongo"),{Mongo:function(t){o=t}},0);var i=void 0;n.watch(t("meteor/ohif:core"),{OHIF:function(t){i=t}},1);var a=new o.Collection("studyImportStatus");a._debugName="StudyImportStatus",i.studylist.collections.StudyImportStatus=a}},client:{"index.js":function(t,e,n){n.watch(t("./base")),n.watch(t("./collections")),n.watch(t("./lib")),n.watch(t("./components")),n.watch(t("./dropdown"))},"base.js":function(t,e,n){var o=void 0;n.watch(t("meteor/ohif:core"),{OHIF:function(t){o=t}},0),Object.assign(o.studylist,{callbacks:{}})},"dropdown.js":function(t,e,n){var o=void 0;n.watch(t("meteor/meteor"),{Meteor:function(t){o=t}},0);var i=void 0;n.watch(t("meteor/ohif:core"),{OHIF:function(t){i=t}},1),o.startup(function(){i.studylist.dropdown=new i.ui.Dropdown,i.studylist.dropdown.setItems([{action:i.studylist.viewSeriesDetails,text:"View Series Details"},{text:"Anonymize",disabled:!0},{text:"Send",disabled:!0,separatorAfter:!0},{text:"Delete",disabled:!0},{action:i.studylist.exportSelectedStudies,text:"Export",title:"Export Selected Studies"}])})},collections:{"index.js":function(t,e,n){n.watch(t("./studies.js"))},"studies.js":function(t,e,n){var o=void 0;n.watch(t("meteor/meteor"),{Meteor:function(t){o=t}},0);var i=void 0;n.watch(t("meteor/ohif:core"),{OHIF:function(t){i=t}},1),o.startup(function(){var t=new o.Collection(null);t._debugName="Studies",i.studylist.collections.Studies=t})}},components:{"index.js":function(t,e,n){n.watch(t("./seriesDetailsModal")),n.watch(t("./studylist"))},seriesDetailsModal:{"index.js":function(t,e,n){n.watch(t("./seriesDetailsModal.html")),n.watch(t("./seriesDetailsTable/seriesDetailsTable.html")),n.watch(t("./seriesDetailsTable/seriesDetailsTable.styl")),n.watch(t("./seriesDetailsTable/seriesDetailsTable.js"))},"seriesDetailsModal.html":function(t,e,n){n.exports=t("./template.seriesDetailsModal.js")},"template.seriesDetailsModal.js":function(){j.__checkName("seriesDetailsModal"),j.seriesDetailsModal=new j("Template.seriesDetailsModal",function(){var t=this;return D._TemplateWith(function(){return E.dataMustache(t.lookup("extend"),t.lookup("."),E.kw({title:"Series Details"}))},function(){return E.include(t.lookupTemplate("dialogSimple"),function(){return["\n ",D._TemplateWith(function(){return{selectedStudies:E.call(E.dot(t.lookup("."),"selectedStudies"))}},function(){return E.include(t.lookupTemplate("seriesDetailsTable"))}),"\n "]})})})},seriesDetailsTable:{"seriesDetailsTable.html":function(t,e,n){n.exports=t("./template.seriesDetails
!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,i=Package.jquery.jQuery,r=Package.random.Random,a=Package["templating-runtime"].Template,s=Package["iron:router"].Router,u=Package["iron:router"].RouteController,c=Package["momentjs:moment"].moment,l=Package.validatejs.validate,d=Package["ohif:viewerbase"].dialogPolyfill,g=Package.modules.meteorInstall,p=Package["babel-runtime"].meteorBabelHelpers,h=Package.promise.Promise,f=Package["iron:core"].Iron,m=Package["ecmascript-runtime-client"].Symbol,v=Package["ecmascript-runtime-client"].Map,w=Package["ecmascript-runtime-client"].Set,b=Package.webapp.WebApp,y=Package.logging.Log,P=Package.deps.Tracker,S=Package.deps.Deps,T=Package.session.Session,M=Package["ddp-client"].DDP,R=Package.mongo.Mongo,k=Package.ui.Blaze,D=Package.ui.UI,x=Package.ui.Handlebars,I=Package.spacebars.Spacebars,E=Package.check.check,C=Package.check.Match,V=Package.underscore._,N=Package.ejson.EJSON,j=Package["launch-screen"].LaunchScreen,O=Package.htmljs.HTML,q,B,L,Z,A,z,_,U,H,F,W=g({node_modules:{meteor:{"ohif:hanging-protocols":{both:{"namespace.js":function(){q={}},"collections.js":function(){(B=new t.Collection("hangingprotocols"))._debugName="HangingProtocols",B.allow({insert:function(){return!0},update:function(){return!0},remove:function(){return!0}}),t.isDevelopment&&t.isServer&&t.startup(function(){B.remove({})})},"schema.js":function(t,e,n){n.watch(t("./classes/Protocol")),n.watch(t("./classes/Stage")),n.watch(t("./classes/Viewport")),n.watch(t("./classes/ViewportStructure")),n.watch(t("./classes/rules/ProtocolMatchingRule")),n.watch(t("./classes/rules/StudyMatchingRule")),n.watch(t("./classes/rules/SeriesMatchingRule")),n.watch(t("./classes/rules/ImageMatchingRule"))},"hardcodedData.js":function(){q.attributeDefaults={abstractPriorValue:0},q.displaySettings={invert:{id:"invert",text:"Show Grayscale Inverted",defaultValue:"NO",options:["YES","NO"]}},q.studyAttributes=[{id:"x00100020",text:"(x00100020) Patient ID"},{id:"x0020000d",text:"(x0020000d) Study Instance UID"},{id:"x00080020",text:"(x00080020) Study Date"},{id:"x00080030",text:"(x00080030) Study Time"},{id:"x00081030",text:"(x00081030) Study Description"},{id:"abstractPriorValue",text:"Abstract Prior Value"}],q.protocolAttributes=[{id:"x00100020",text:"(x00100020) Patient ID"},{id:"x0020000d",text:"(x0020000d) Study Instance UID"},{id:"x00080020",text:"(x00080020) Study Date"},{id:"x00080030",text:"(x00080030) Study Time"},{id:"x00081030",text:"(x00081030) Study Description"},{id:"anatomicRegion",text:"Anatomic Region"}],q.seriesAttributes=[{id:"x0020000e",text:"(x0020000e) Series Instance UID"},{id:"x00080060",text:"(x00080060) Modality"},{id:"x00200011",text:"(x00200011) Series Number"},{id:"x0008103e",text:"(x0008103e) Series Description"},{id:"numImages",text:"Number of Images"}],q.instanceAttributes=[{id:"x00080016",text:"(x00080016) SOP Class UID"},{id:"x00080018",text:"(x00080018) SOP Instance UID"},{id:"x00185101",text:"(x00185101) View Position"},{id:"x00200013",text:"(x00200013) Instance Number"},{id:"x00080008",text:"(x00080008) Image Type"},{id:"x00181063",text:"(x00181063) Frame Time"},{id:"x00200060",text:"(x00200060) Laterality"},{id:"x00541330",text:"(x00541330) Image Index"},{id:"x00280004",text:"(x00280004) Photometric Interpretation"},{id:"x00180050",text:"(x00180050) Slice Thickness"}]},"testData.js":function(){function t(){var t=new q.Protocol("Default");t.id="defaultProtocol",t.locked=!0;var e=new q.ViewportStructure("grid",{rows:1,columns:1}),n=new q.Viewport,o=new q.Stage(e,"oneByOne");return o.viewports.push(n),t.stages.push(o),q.defaultProtocol=t,q.defaultProtocol}function e(){var t=new q.Protocol("MR_TwoByTwo");t.id="MR_TwoByTwo",t.locked=!0;var e=new q.ProtocolMatchingRule("studyInstanceUid",{equals:{value:"1.2.840.113619.2.5.1762583153.215519.978957063.78"}},!0);t.addProtocolMatchingRule(e);var n=new q.ViewportStructure("grid",{rows:1,columns:2}),o=new q.Viewport,i=new q.Viewport,r=new q.SeriesMatchingRule("seriesNumber",{equals:{value:1}}),a=new q
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,a=Package.blaze.Blaze,o=Package.blaze.UI,i=Package.blaze.Handlebars,s=Package.tracker.Tracker,l=Package.tracker.Deps,c=Package.modules.meteorInstall,d=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,u=Package.htmljs.HTML,f=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,h=Package["ecmascript-runtime-client"].Set,y=Package.spacebars.Spacebars,v,b=c({node_modules:{meteor:{"aldeed:template-extension":{lib:{"hooks.js":function(){(v={global:{created:[],rendered:[],destroyed:[]},master:{created:function(){v.runGlobal("created",this,arguments)},rendered:function(){v.runGlobal("rendered",this,arguments)},destroyed:function(){v.runGlobal("destroyed",this,arguments)}}}).addGlobal=function(e){e._hasTemplateExtensionMasterHooks||(e.onCreated(v.master.created),e.onRendered(v.master.rendered),e.onDestroyed(v.master.destroyed),e._hasTemplateExtensionMasterHooks=!0)},v.runGlobal=function(e,t,n){for(var r=v.global[e],a=Array.isArray(r),o=0,r=a?r:r[f.iterator]();;){var i;if(a){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}i.apply(t,n)}}},"template-for-each.js":function(){r.forEach=function(e){var t=!1;for(var n in d.sanitizeForInObject(r))if(r.hasOwnProperty(n)){var o=r[n];if(a.isTemplate(o)){var i=o.viewName;"body"===i?t||(t=!0,e(o)):"Template.__dynamic"!==i&&"Template.__dynamicWithDataContext"!==i&&e(o)}}}},"template-hooks.js":function(e){function t(e){return e&&e.__esModule?e:{default:e}}var n=t(e("babel-runtime/helpers/typeof"));r.prototype.hooks=function(e){if(!e||"object"!==(void 0===e?"undefined":(0,n.default)(e)))throw new Error("hooks argument must be an object with created, rendered, and/or destroyed properties, each set to a function");"function"==typeof e.created&&this.onCreated(e.created),"function"==typeof e.rendered&&this.onRendered(e.rendered),"function"==typeof e.destroyed&&this.onDestroyed(e.destroyed)}},"template-global-hooks.js":function(){e.startup(function(){r.forEach(function(e){v.addGlobal(e)})}),r.onCreated=function(e){v.global.created.push(e)},r.onRendered=function(e){v.global.rendered.push(e)},r.onDestroyed=function(e){v.global.destroyed.push(e)}},"template-for-each-instance.js":function(){r._renderedInstances=[],r.onRendered(function(){function e(){r._renderedInstances.push(this)}return e}()),r.onDestroyed(function(){function e(){var e=r._renderedInstances.indexOf(this);e>-1&&r._renderedInstances.splice(e,1)}return e}()),r.forEachCurrentlyRenderedInstance=function(e){r._renderedInstances.forEach(e)}},"template-inherits-events-from.js":function(){r.prototype.inheritsEventsFrom=function(){function e(e){function t(e){"string"==typeof e&&(e=r[e]),e&&(n.__eventMaps=n.__eventMaps.concat(e.__eventMaps))}var n=this;n.__eventMaps=n.__eventMaps||[],Array.isArray(e)?e.forEach(t):t(e)}return e}()},"template-inherits-helpers-from.js":function(){r.prototype.inheritsHelpersFrom=function(){function e(e){var t=this,n=function(e){if("string"==typeof e&&(e=r[e]),e){var n={};for(var a in d.sanitizeForInObject(e.__helpers))e.__helpers.hasOwnProperty(a)&&" "===a.charAt(0)&&(n[a.slice(1)]=e.__helpers[a]);t.helpers(n)}};Array.isArray(e)?e.forEach(n):n(e)}return e}()},"template-inherits-hooks-from.js":function(){r.prototype.inheritsHooksFrom=function(){function e(e){function t(e){if("string"==typeof e&&(e=r[e]),e){v.addGlobal(e);for(var t=e._callbacks.created,a=Array.isArray(t),o=0,t=a?t:t[f.iterator]();;){var i;if(a){if(o>=t.length)break;i=t[o++]}else{if((o=t.next()).done)break;i=o.value}var s=i;s!==v.master.created&&n.onCreated(s)}for(var l=e._callbacks.rendered,c=Array.isArray(l),d=0,l=c?l:l[f.iterator]();;){var p;if(c){if(d>=l.length)break;p=l[d++]}else{if((d=l.next()).done)break;p=d.value}var u=p;u!==v.master.rendered&&n.onRendered(u)}for(var m=e._callbacks.destroyed,h=Array.isArray(m),y=0,m=h?m:m[f.iterator]();;){var b;if(h){if(y>=m.length)break;b=m[y++]}else{if((y=m.next()).done)break;b=y.value}var _=b;_!==v.mast
"undefined"==typeof Package&&(Package={}),Package["fortawesome:fontawesome"]={};
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a;(function(){(function(){(function(e){function n(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error("Implement me")}}function a(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function s(e){!1===De.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function r(e,t){var n=!0;return h(function(){return n&&(s(e),n=!1),t.apply(this,arguments)},t)}function i(e,t){mt[e]||(s(t),mt[e]=!0)}function o(e,t){return function(n){return m(e.call(this,n),t)}}function u(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function c(){}function l(e,t){!1!==t&&F(e),f(this,e),this._d=new Date(+e._d)}function d(e){var t=k(e),n=t.year||0,a=t.quarter||0,s=t.month||0,r=t.week||0,i=t.day||0,o=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*c+6e4*u+36e5*o,this._days=+i+7*r,this._months=+s+3*a+12*n,this._data={},this._locale=De.localeData(),this._bubble()}function h(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return t.hasOwnProperty("toString")&&(e.toString=t.toString),t.hasOwnProperty("valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t){var n,a,s;if(void 0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void 0!==t._i&&(e._i=t._i),void 0!==t._f&&(e._f=t._f),void 0!==t._l&&(e._l=t._l),void 0!==t._strict&&(e._strict=t._strict),void 0!==t._tzm&&(e._tzm=t._tzm),void 0!==t._isUTC&&(e._isUTC=t._isUTC),void 0!==t._offset&&(e._offset=t._offset),void 0!==t._pf&&(e._pf=t._pf),void 0!==t._locale&&(e._locale=t._locale),Pe.length>0)for(n in Pe)void 0!==(s=t[a=Pe[n]])&&(e[a]=s);return e}function _(e){return e<0?Math.ceil(e):Math.floor(e)}function m(e,t,n){for(var a=""+Math.abs(e),s=e>=0;a.length<t;)a="0"+a;return(s?n?"+":"":"-")+a}function y(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function p(e,t){var n;return t=L(t,e),e.isBefore(t)?n=y(e,t):((n=y(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n}function D(e,t){return function(n,a){var s,r;return null===a||isNaN(+a)||(i(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=a,a=r),n="string"==typeof n?+n:n,s=De.duration(n,a),g(this,s,e),this}}function g(e,t,n,a){var s=t._milliseconds,r=t._days,i=t._months;a=null==a||a,s&&e._d.setTime(+e._d+s*n),r&&he(e,"Date",de(e,"Date")+r*n),i&&le(e,de(e,"Month")+i*n),a&&De.updateOffset(e,r||i)}function M(e){return"[object Array]"===Object.prototype.toString.call(e)}function w(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function Y(e,t,n){var a=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),r=0,i;for(i=0;i<a;i++)(n&&e[i]!==t[i]||!n&&S(e[i])!==S(t[i]))&&r++;return r+s}function v(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=ut[e]||ct[t]||t}return e}function k(e){var t={},n,a;for(a in e)e.hasOwnProperty(a)&&(n=v(a))&&(t[n]=e[a]);return t}function b(t){var n,a;if(0===t.indexOf("week"))n=7,a="day";else{if(0!==t.indexOf("month"))return;n=12,a="month"}De[t]=function(s,r){var i,o,u=De._locale[t],c=[];if("number"==typeof s&&(r=s,s=e),o=function(e){var t=De().utc().set(a,e);return u.call(De._locale,t,s||"")},null!=r)return o(r);for(i=0;i<n;i++)c.push(o(i));return c}}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function T(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function O(e,t,n){return ie(De([e,11,31+t-n]),t,n).week}function W(e){return G(e)?366:365}function G(e){return e%4==0&&e%100!=0||e%400==0}function F(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[be]<0||e._a[be]>11?be:e._a[Se]<1||e._a[Se]>T(e._a[ke],e._a[be])?Se:e._a[Te]<0||e._a[Te]>23?Te:e._a[Oe]<0||e._a[Oe]>59?Oe:e.
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,o=Package.promise.Promise,c=Package["ddp-client"].DDP,i=Package.check.check,u=Package.check.Match,a=r({node_modules:{meteor:{"dynamic-import":{"client.js":function(n,t,c){function i(e){function n(e){e&&"object"==typeof e?Object.keys(e).forEach(function(r){t.push(r),n(e[r]),t.pop()}):"string"==typeof e&&(r[t.join("/")]=e)}var t=[""],r=Object.create(null);return n(e),r}function u(e,n,t){return function(){return(t&&t.eval||eval)("("+n+")\n//# sourceURL="+e).apply(this,arguments)}}function a(n){return new o(function(t,r){e.call("__dynamicImport",n,function(e,n){e?r(e):t(n)})})}function s(e,n,t){var r=n.split("/"),o=r.length-1;r.forEach(function(n,r){n&&(e=e[n]=e[n]||(r<o?Object.create(null):t))})}function f(e,n){var t;return e.watch(e.require(n),{"*":function(e){t=e}}),Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),t}var l=c.constructor,d=n("./cache.js");l.prototype.dynamicImport=function(e){var n=this;return n.prefetch(e).then(function(){return f(n,e)})},r.fetch=function(e){var t=Object.create(null),r=Object.create(null),o=n("./dynamic-versions.js"),c;return Object.keys(e).forEach(function(e){var n=o.get(e);n?r[e]=n:s(c=c||Object.create(null),e,1)}),d.checkMany(r).then(function(n){return Object.keys(n).forEach(function(r){var o=n[r];if(o){var i=e[r];s(t,r,u(r,o,i.options))}else s(c=c||Object.create(null),r,1)}),c&&a(c).then(function(n){var r=Object.create(null),c=i(n);Object.keys(c).forEach(function(n){var i=c[n],a=e[n];s(t,n,u(n,i,a.options));var f=o.get(n);f&&(r[n]={version:f,source:i})}),d.setMany(r)})}).then(function(){return t})}},"cache.js":function(n,t,r){function c(){return"undefined"!=typeof indexedDB?indexedDB:"undefined"!=typeof webkitIndexedDB?webkitIndexedDB:"undefined"!=typeof mozIndexedDB?mozIndexedDB:"undefined"!=typeof OIndexedDB?OIndexedDB:"undefined"!=typeof msIndexedDB?msIndexedDB:void 0}function i(e){return(f=f||new o(function(e,n){var t=c();if(!t)throw new Error("IndexedDB not available");var r=t.open("MeteorDynamicImportCache",2);r.onupgradeneeded=function(e){var n=e.target.result;Array.from(n.objectStoreNames).forEach(n.deleteObjectStore,n),Object.keys(d).forEach(function(e){n.createObjectStore(e,d[e])})},r.onerror=u(n,"indexedDB.open"),r.onsuccess=function(n){e(n.target.result)}})).then(e,function(n){return e(null)})}function u(e,n){return function(t){return e(new Error("IndexedDB failure in "+n+" "+JSON.stringify(t.target))),!0}}function a(){if(v>0)return a.timer=setTimeout(a,100);a.timer=null;var e=y;return y=Object.create(null),i(function(n){if(n){var t=n.transaction(["sourcesByVersion"],"readwrite").objectStore("sourcesByVersion");return o.all(Object.keys(e).map(function(n){var r=e[n];return new o(function(e,n){var o=t.put({version:r.version,source:r.source});o.onerror=u(n,"sourcesByVersion.put"),o.onsuccess=e})}))}})}var s=Object.prototype.hasOwnProperty,f,l=e.isClient&&!e.isCordova&&e.isProduction,d={sourcesByVersion:{keyPath:"version"}},v=0;t.checkMany=function(e){var n=Object.keys(e),t=Object.create(null);return n.forEach(function(e){t[e]=null}),l?i(function(r){function c(){return--v,t}if(!r)return t;var i=r.transaction(["sourcesByVersion"],"readonly").objectStore("sourcesByVersion");return++v,o.all(n.map(function(n){return new o(function(r,o){var c=e[n];if(c){var a=i.get(c);a.onerror=u(o,"sourcesByVersion.get"),a.onsuccess=function(e){var o=e.target.result;o&&(t[n]=o.source),r()}}else r()})})).then(c,c)}):o.resolve(t)};var y=Object.create(null);t.setMany=function(e){l&&(Object.assign(y,e),a.timer||(a.timer=setTimeout(a,100)))}},"dynamic-versions.js":function(e,n){var t={};n.get=function(e){var n=t,r=null;return e.split("/").some(function(e){return e&&(n=n[e]||n[e.replace(":","_")]),!n||("string"==typeof n?(r=n,!0):void 0)}),r}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/dynamic-import/client.js");"undefined"==typeof Package&&(Package={}),Package["dynamic-import"]=a}();
"undefined"==typeof Package&&(Package={}),Package["hot-code-push"]={};
Mongo=Package.mongo.Mongo,ReactiveVar=Package["reactive-var"].ReactiveVar,$=Package.jquery.$,jQuery=Package.jquery.jQuery,Tracker=Package.tracker.Tracker,Deps=Package.tracker.Deps,cornerstone=Package["ohif:cornerstone"].cornerstone,cornerstoneMath=Package["ohif:cornerstone"].cornerstoneMath,cornerstoneTools=Package["ohif:cornerstone"].cornerstoneTools,cornerstoneWADOImageLoader=Package["ohif:cornerstone"].cornerstoneWADOImageLoader,dicomParser=Package["ohif:cornerstone"].dicomParser,dialogPolyfill=Package["ohif:viewerbase"].dialogPolyfill,HP=Package["ohif:hanging-protocols"].HP,SimpleSchema=Package["aldeed:simple-schema"].SimpleSchema,MongoObject=Package["aldeed:simple-schema"].MongoObject,Router=Package["iron:router"].Router,RouteController=Package["iron:router"].RouteController,Session=Package.session.Session,PersistentSession=Package["u2622:persistent-session"].PersistentSession,ReactiveDict=Package["reactive-dict"].ReactiveDict,moment=Package["mrt:moment"].moment,Random=Package.random.Random,Meteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,WebApp=Package.webapp.WebApp,_=Package.underscore._,DDP=Package["ddp-client"].DDP,LaunchScreen=Package["launch-screen"].LaunchScreen,Blaze=Package.ui.Blaze,UI=Package.ui.UI,Handlebars=Package.ui.Handlebars,Spacebars=Package.spacebars.Spacebars,Template=Package["templating-runtime"].Template,meteorInstall=Package.modules.meteorInstall,meteorBabelHelpers=Package["babel-runtime"].meteorBabelHelpers,Promise=Package.promise.Promise,Iron=Package["iron:core"].Iron,Autoupdate=Package.autoupdate.Autoupdate,Reload=Package.reload.Reload,HTML=Package.htmljs.HTML,Symbol=Package["ecmascript-runtime-client"].Symbol,Map=Package["ecmascript-runtime-client"].Map,Set=Package["ecmascript-runtime-client"].Set;
var require=meteorInstall({client:{components:{flexboxLayout:{"template.flexboxLayout.js":function(){Template.__checkName("flexboxLayout"),Template.flexboxLayout=new Template("Template.flexboxLayout",function(){var e=this;return HTML.DIV({class:"viewerSection"},"\n ",HTML.DIV({class:function(){return["sidebarMenu sidebar-left ",Blaze.If(function(){return Spacebars.call(e.lookup("leftSidebarOpen"))},function(){return"sidebar-open"})]}},"\n ",Blaze._TemplateWith(function(){return Spacebars.dataMustache(e.lookup("clone"),e.lookup("."))},function(){return Spacebars.include(e.lookupTemplate("studyBrowser"))}),"\n "),"\n ",HTML.DIV({class:function(){return["mainContent ",Blaze.If(function(){return Spacebars.call(e.lookup("leftSidebarOpen"))},function(){return"sidebar-left-open"})]}},"\n ",Blaze._TemplateWith(function(){return Spacebars.dataMustache(e.lookup("clone"),e.lookup("."))},function(){return Spacebars.include(e.lookupTemplate("standaloneViewerMain"))}),"\n "),"\n ")})},"flexboxLayout.js":function(e,t,a){var n=void 0;a.watch(e("meteor/templating"),{Template:function(e){n=e}},0),n.flexboxLayout.events({"transitionend .sidebarMenu":function(e,t){e.target.classList.contains("sidebarMenu")&&window.ResizeViewportManager.handleResize()}}),n.flexboxLayout.helpers({leftSidebarOpen:function(){return n.instance().data.state.get("leftSidebar")}})}},standaloneViewer:{"template.standaloneViewer.js":function(){Template.__checkName("standaloneViewer"),Template.standaloneViewer=new Template("Template.standaloneViewer",function(){var e=this;return[Spacebars.include(e.lookupTemplate("header"),function(){return["\n ",Blaze._TemplateWith(function(){return"brand"},function(){return Spacebars.include(e.lookupTemplate("section"),function(){return["\n ",HTML.SVG({class:"logo-image"},"\n ",HTML.USE({"xlink:href":function(){return Spacebars.mustache(e.lookup("absoluteUrl"),"packages/ohif_viewerbase/assets/icons.svg#icon-ohif-logo")}}),"\n "),"\n ",HTML.DIV({class:"logo-text"},"Open Health Imaging Foundation"),"\n "]})}),"\n "]}),"\n ",Spacebars.include(e.lookupTemplate("viewer"))]})}},standaloneViewerMain:{"template.standaloneViewerMain.js":function(){Template.__checkName("standaloneViewerMain"),Template.standaloneViewerMain=new Template("Template.standaloneViewerMain",function(){var e=this;return HTML.Raw('<div class="viewerMain">\n <div id="layoutManagerTarget"></div>\n </div>')})},"standaloneViewerMain.js":function(e,t,a){var n=void 0;a.watch(e("meteor/meteor"),{Meteor:function(e){n=e}},0);var o=void 0;a.watch(e("meteor/templating"),{Template:function(e){o=e}},1);var r=void 0;a.watch(e("meteor/ohif:core"),{OHIF:function(e){r=e}},2),a.watch(e("meteor/ohif:viewerbase")),n.startup(function(){window.ResizeViewportManager=window.ResizeViewportManager||new r.viewerbase.ResizeViewportManager}),o.standaloneViewerMain.onCreated(function(){window.addEventListener("resize",window.ResizeViewportManager.getResizeHandler()),r.viewer.updateImageSynchronizer=new cornerstoneTools.Synchronizer("CornerstoneNewImage",cornerstoneTools.updateImageSynchronizer),r.viewer.metadataProvider=r.cornerstone.metadataProvider;var e=r.viewer.metadataProvider;cornerstone.metaData.addProvider(e.provider.bind(e))}),o.standaloneViewerMain.onRendered(function(){var e=o.instance(),t=e.data.studies,a=e.$("#layoutManagerTarget").get(0),n=r.viewerbase.StudyPrefetcher.getInstance();e.studyPrefetcher=n,e.studyLoadingListener=r.viewerbase.StudyLoadingListener.getInstance(),e.studyLoadingListener.clear(),e.studyLoadingListener.addStudies(t),r.viewerbase.layoutManager=new r.viewerbase.LayoutManager(a,t),r.viewerbase.layoutManager.updateViewports(),n.setStudies(t),r.viewerbase.hotkeyUtils.enableHotkeys()}),o.standaloneViewerMain.onDestroyed(function(){window.removeEventListener("resize",window.ResizeViewportManager.getResizeHandler()),r.viewer.updateImageSynchronizer.destroy(),delete r.viewerbase.layoutManager,instance.studyPrefetcher.destroy(),instance.studyL
!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,a=Package.meteor.meteorEnv,t=Package.check.check,n=Package.check.Match,i=Package.modules.meteorInstall,o=Package["babel-runtime"].meteorBabelHelpers,c=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,s=Package["ecmascript-runtime-client"].Set,m;i({node_modules:{meteor:{"mdg:validation-error":{"validation-error.js":function(r){function a(e){return e&&e.__esModule?e:{default:e}}var i=a(r("babel-runtime/helpers/classCallCheck")),o=a(r("babel-runtime/helpers/possibleConstructorReturn")),c=a(r("babel-runtime/helpers/inherits")),l=[n.ObjectIncluding({name:String,type:String})];(m=function(r){function a(e){var n,c,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.DEFAULT_MESSAGE;return(0,i.default)(this,a),t(e,l),t(u,String),c=n=(0,o.default)(this,r.call(this,m.ERROR_CODE,u,e)),(0,o.default)(n,c)}return(0,c.default)(a,r),a.is=function(){function r(r){return r instanceof e.Error&&r.error===m.ERROR_CODE}return r}(),a}(e.Error)).ERROR_CODE="validation-error",m.DEFAULT_MESSAGE="Validation failed"}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/mdg:validation-error/validation-error.js"),"undefined"==typeof Package&&(Package={}),function(e,r){for(var a in r)a in e||(e[a]=r[a])}(Package["mdg:validation-error"]={},{ValidationError:m})}();
!function(){var o=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package["accounts-base"].Accounts,r=Package.mongo.Mongo,c;(function(){void 0===c&&(c={}),c.configurations=new r.Collection("meteor_accounts_loginServiceConfiguration",{_preventAutopublish:!0,connection:o.isClient?i.connection:o.connection}),c.ConfigError=function(e){o.isClient&&!i.loginServicesConfigured()?this.message="Login service configuration not yet loaded":this.message=e?"Service "+e+" not configured":"Service not configured"},c.ConfigError.prototype=new Error,c.ConfigError.prototype.name="ServiceConfiguration.ConfigError"}).call(this),"undefined"==typeof Package&&(Package={}),function(o,e){for(var n in e)n in o||(o[n]=e[n])}(Package["service-configuration"]={},{ServiceConfiguration:c})}();