PageSourceSearch

https://ouispeak.io/ceff74d03a604924bac1b4ef07f15d0b086e4c1d.js?meteor_js_resource=true

js ouispeak.io collected 2026-10-06 13:19:01 UTC 3,273,702 bytes, 190 lines download raw bytes

1(function(){(function(){function e(){this._promiseInfoMap=Object.create(null)}var n=e.prototype;n._define=function(e,n){n=n||{};var t=arguments.length;for(var r=2;r<t;++r){var o=arguments[r];for(var i in o)if(!(i in n))n[i]=o[i]}this[e]=n;var a=this._promiseInfoMap[e];if(a)a.resolve(n);return n};n._has=function(e){return Object.prototype.hasOwnProperty.call(this,e)};n._promise=function(e){var n=this;var t=n._promiseInfoMap[e];if(!t){t=n._promiseInfoMap[e]={};t.promise=new Promise(function(r,o){t.resolve=r;if(n._has(e))r(n[e]);else Meteor.startup(function(){if(!n._has(e))o(new Error("Package "+e+" not installed"))})})}return t.promise};var t=this;t.Package=new e;if("object"==typeof exports)exports.PackageRegistry=e}).call(this);(function(){var e=Object.prototype.hasOwnProperty;var n=[];function t(e,t){n.push({name:e,runImage:t});o()}var r=false;function o(){if(r)return;var e=n.shift();if(!e)return;r=true;var t=e.runImage.call(this);i(t,function(n){var i=t.export?t.export():{};if(t.mainModulePath)Package._define(e.name,n,i);else Package._define(e.name,i);r=false;o()})}function i(e,n){if(!e.eagerModulePaths)return n();var t=-1;var r={};var o=false;function i(){t+=1;if(t===e.eagerModulePaths.length){if(o){const n=e.require("/node_modules/meteor/modules/node_modules/@meteorjs/reify/lib/runtime");n._requireAsSync(e.mainModulePath)}return n(r)}var u=e.eagerModulePaths[t];var f=e.require(u);if(a(f)){if(u===e.mainModulePath)o=true;f.then(function(n){if(u===e.mainModulePath)r=n;i()}).catch(function(e){if("object"==typeof process&&"function"==typeof process.nextTick)process.nextTick(function(){throw e});else setTimeout(function(){throw e},0)})}else{if(u===e.mainModulePath)r=f;i()}}i()}function a(n){var t=n&&"object"==typeof n&&e.call(n,"__reifyAsyncModule");if(!t)return;return"function"==typeof n.then}function u(){if(0===n.length&&!r)return null;return new Promise(function(e){t(null,function(){e();return{}})})}Package["core-runtime"]={queue:t,waitUntilAllLoaded:u}}).call(this)})();
2
3Package["core-runtime"].queue("meteor",function(){var e,t,n;(function(){e=this}).call(this);(function(){var e=__meteor_runtime_config__;t=e.meteorEnv;n={isProduction:"production"===t.NODE_ENV,isDevelopment:"production"!==t.NODE_ENV,isClient:true,isServer:false,isCordova:false,isModern:e.isModern};if(e.gitCommitHash)n.gitCommitHash=e.gitCommitHash;if(e.PUBLIC_SETTINGS)n.settings={public:e.PUBLIC_SETTINGS}}).call(this);(function(){if("object"==typeof __meteor_runtime_config__&&__meteor_runtime_config__.meteorRelease)n.release=__meteor_runtime_config__.meteorRelease;n._get=function(e){for(var t=1;t<arguments.length;t++){if(!(arguments[t]in e))return;e=e[arguments[t]]}return e};n._ensure=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(!(n in e))e[n]={};e=e[n]}return e};n._delete=function(e){var t=[e];var n=true;for(var r=1;r<arguments.length-1;r++){var o=arguments[r];if(!(o in e)){n=false;break}e=e[o];if("object"!=typeof e)break;t.push(e)}for(var r=t.length-1;r>=0;r--){var o=arguments[r+1];if(n)n=false;else for(var i in t[r][o])return;delete t[r][o]}};n.promisify=function(e,t,r){if(void 0===r)r=true;return function(){var o=this;var i=Array.prototype.slice.call(arguments).filter(function(e){return void 0!==e});return new Promise(function(s,a){var u=n.bindEnvironment(function(e,t){var n=e,o=t;if(!r){n=t;o=e}if(n)return a(n);s(o)});i.push(u);return e.apply(t||o,i)})}};n.wrapAsync=function(e,t){return function(){var o=t||this;var i=Array.prototype.slice.call(arguments);var s;for(var a=i.length-1;a>=0;--a){var u=i[a];var c=typeof u;if("undefined"!==c){if("function"===c)s=u;break}}if(!s){s=r;++a}i[a]=n.bindEnvironment(s);return e.apply(o,i)}};n.wrapFn=function(e){return e};var e=Object.prototype.hasOwnProperty;n._inherits=function(t,n){for(var r in n)if(e.call(n,r))t[r]=n[r];var o=function(){this.constructor=t};o.prototype=n.prototype;t.prototype=new o;t.__super__=n.prototype;return t};var t=false;n._wrapAsync=function(e,r){if(!t){n._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync");t=true}return n.wrapAsync.apply(n,arguments)};function r(e){if(e)return n._debug("Exception in callback of async function",e)}}).call(this);(function(){"use strict";var e=this;function t(){if(!e.setImmediate)return null;var t=function(t){e.setImmediate(t)};t.implementation="setImmediate";return t}function r(){if(!e.postMessage||e.importScripts)return null;var t=true;var n=e.onmessage;e.onmessage=function(){t=false};e.postMessage("","*");e.onmessage=n;if(!t)return null;var r=0;var o={};var i="Meteor._setImmediate."+Math.random()+".";function s(e,t){return"string"==typeof e&&e.substring(0,t.length)===t}function a(t){if(t.source===e&&s(t.data,i)){var n=t.data.substring(i.length);try{if(o[n])o[n]()}finally{delete o[n]}}}if(e.addEventListener)e.addEventListener("message",a,false);else e.attachEvent("onmessage",a);var u=function(t){++r;o[r]=t;e.postMessage(i+r,"*")};u.implementation="postMessage";return u}function o(){var t=function(t){e.setTimeout(t,0)};t.implementation="setTimeout";return t}n._setImmediate=t()||r()||o()}).call(this);(function(){function e(e){if(Package.ddp){var t=Package.ddp.DDP;var n=t._CurrentMethodInvocation||t._CurrentInvocation;var r=n.get();if(r&&r.isSimulation)throw new Error("Can't set timers inside simulations");return function(){n.withValue(null,e)}}return e}function t(t,r){return n.bindEnvironment(e(r),t)}n.setTimeout=function(e,n){return setTimeout(t("setTimeout callback",e),n)};n.setInterval=function(e,n){return setInterval(t("setInterval callback",e),n)};n.clearInterval=function(e){return clearInterval(e)};n.clearTimeout=function(e){return clearTimeout(e)};n.defer=function(e){n._setImmediate(t("defer callback",e))};n.deferrable=function(e,t){var r=t&&t.on||[];if(!Array.isArray(r))throw new Error("options.on must be an array");var o=n.isDevelopment?"development":n.isProduction?"production":"test";if(r.includes(o))return n.defer(e);return e()};n.deferDev=function(e){return n.deferrable(e,{on:["development","test"]})};n.deferProd=function(e){return n.deferrable(e,{on:["production"]})}}).call(this);(function(){n.makeErrorType=function(e,t){var r=function(){if(Error.captureStackTrace)Error.captureStackTrace(this,r);else this.stack=new Error().stack;t.apply(this,arguments);this.errorType=e};n._inherits(r,Error);return r};n.Error=n.makeErrorType("Meteor.Error",function(e,t,n){var r=this;r.isClientSafe=true;r.error=e;r.reason=t;r.details=n;if(r.reason)r.message=r.reason+" ["+r.error+"]";else r.message="["+r.error+"]"});n.Error.prototype.clone=function(){var e=this;return new n.Error(e.error,e.reason,e.details)}}).call(this);(function(){n._noYieldsAllowed=function(e){var t=e();if(n._isPromise(t))throw new Error("function is a promise when calling Meteor._noYieldsAllowed");return t};function e(){this.queue=[]}e.prototype.push=function(e){this.queue.push(e)};e.prototype.shift=function(){return this.queue.shift()};e.prototype.isEmpty=function(){return 0===this.queue.length};n._DoubleEndedQueue=n.isServer?Npm.require("denque"):e;const t=e=>new Promise(t=>setTimeout(t,e));n._sleepForMs=function(e){return t(e)};n.sleep=t}).call(this);(function(){n._noYieldsAllowed=function(e){return e()};n._SynchronousQueue=function(){var e=this;e._tasks=[];e._running=false;e._runTimeout=null};var e=n._SynchronousQueue.prototype;e.runTask=function(e){var t=this;if(!t.safeToRunTask())throw new Error("Could not synchronously run a task from a running task");t._tasks.push(e);var r=t._tasks;t._tasks=[];t._running=true;if(t._runTimeout){clearTimeout(t._runTimeout);t._runTimeout=null}try{while(r.length>0){var o=r.shift();try{o()}catch(e){if(0===r.length)throw e;n._debug("Exception in queued task",e)}}}finally{t._running=false}};e.queueTask=function(e){var t=this;t._tasks.push(e);if(!t._runTimeout)t._runTimeout=setTimeout(function(){return t.flush.apply(t,arguments)}
3,0)};e.flush=function(){var e=this;e.runTask(function(){})};e.drain=function(){var e=this;if(!e.safeToRunTask())return;while(e._tasks.length>0)e.flush()};e.safeToRunTask=function(){var e=this;return!e._running}}).call(this);(function(){n.isFibersDisabled=true;n._isPromise=function(e){return e&&"function"==typeof e.then};n._runFresh=function(e){return e()}}).call(this);(function(){var e=[];var t=false;var r=false;var o=false;var i=0;var s=function(){i++};var a=function(){i--;u()};var u=function(){if(o||!r||i>0)return;o=true;while(e.length)e.shift()();if(n.isCordova)WebAppLocalServer.startupDidComplete()};function c(){function e(){r=true;u()}var t=Package["core-runtime"].waitUntilAllLoaded();if(null===t)e();else t.then(function(){e()})}var f=function(){if(t)return;t=true;c()};if(n.isCordova){s();document.addEventListener("deviceready",a,false)}if("complete"===document.readyState||"loaded"===document.readyState)window.setTimeout(f);else if(document.addEventListener){document.addEventListener("DOMContentLoaded",f,false);window.addEventListener("load",f,false)}else{document.attachEvent("onreadystatechange",function(){if("complete"===document.readyState)f()});window.attachEvent("load",f)}n.startup=function(t){var r=!document.addEventListener&&document.documentElement.doScroll;if(r&&window===top){try{r("left")}catch(e){setTimeout(function(){n.startup(t)},50);return}t()}else if(o)t();else e.push(t)}}).call(this);(function(){if(n.isServer){if("object"==typeof __meteor_runtime_config__)__meteor_runtime_config__.debug=!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||process.execArgv.some(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})}n.isDebug=n.isClient?"object"==typeof window&&!!window.__meteor_runtime_config__.debug:"object"==typeof __meteor_runtime_config__&&!!__meteor_runtime_config__.debug;var e=0;n._debug=function(){if(e)return void e--;if("undefined"!=typeof console&&void 0!==console.log){if(0==arguments.length)console.log("");else if("function"==typeof console.log.apply){var t=true;for(var n=0;n<arguments.length;n++)if("string"!=typeof arguments[n])t=false;if(t)console.log.apply(console,[Array.prototype.join.call(arguments," ")]);else console.log.apply(console,arguments)}else if("function"==typeof Function.prototype.bind){var r=Function.prototype.bind.call(console.log,console);r.apply(console,arguments)}}};n._suppress_log=function(t){e+=t};n._suppressed_log_expected=function(){return 0!==e}}).call(this);(function(){if(n.isServer&&n.isDevelopment){if("object"==typeof __meteor_runtime_config__){var e=process.env.METEOR_NO_DEPRECATION||process.noDeprecation;if("true"===e||"false"===e)e="true"===e;__meteor_runtime_config__.noDeprecation=e}}function t(e){var t=new Map;return function(){var n=JSON.stringify(arguments);if(!t.has(n)){var r=e.apply(this,arguments);t.set(n,r)}return t.get(n)}}function r(e){if(!e||"string"!=typeof e)return[];var t=e.split("\n");var n=[];try{for(var r=0;r<t.length;r++){var o=t[r].trim();if(-1===o.indexOf("Meteor.deprecate")){if(-1!==o.indexOf("packages/"))n.push(o);else if(o&&-1!==o.indexOf("/")){n.push(o);break}}}}catch(e){console.error("Error cleaning stack trace: ",e)}return n.join("\n")}var o=t(function(e){console.warn.apply(console,e)});function i(){o(["Deprecation warnings are hidden but crucial to address for future Meteor updates.","\n","Remove the `METEOR_NO_DEPRECATION` env var to reveal them, then report or fix the issues."])}n.deprecate=function(){if(!n.isDevelopment)return;if("undefined"!=typeof console&&void 0!==console.warn){var e=r(new Error().stack||"");var t=Array.prototype.slice.call(arguments);if("string"==typeof __meteor_runtime_config__.noDeprecation){var s=new RegExp(__meteor_runtime_config__.noDeprecation);if(s.test(e))return void i()}else if("boolean"==typeof __meteor_runtime_config__.noDeprecation&&__meteor_runtime_config__.noDeprecation)return void i();if(e.length>0)t.push("\n\n","Trace:","\n",e);t.push("\n\n","To disable warnings, set the `METEOR_NO_DEPRECATION` to `true` or a regex pattern.","\n");o(["[DEPRECATION]"].concat(t))}}}).call(this);(function(){n._escapeRegExp=function(e){return String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}).call(this);(function(){var e;e=n.isClient?t.TEST_METADATA:process.env.TEST_METADATA;var r=JSON.parse(e||"{}");var o=r.driverPackage;n.isTest=!!r.isTest;n.isAppTest=!!r.isAppTest;n.isPackageTest=!!o&&!n.isTest&&!n.isAppTest;if("string"==typeof o)n.startup(async function(){var e=Package[o];if(!e)throw new Error("Can't find test driver package: "+o);if(n.isClient){if("function"!=typeof e.runTests)throw new Error("Test driver package "+o+" missing `runTests` export");e.runTests()}else if("function"==typeof e.start)await e.start()})}).call(this);(function(){var e=0;var t=[];var r=false;n.EnvironmentVariable=function(){this.slot=e++};var o=n.EnvironmentVariable.prototype;o.getCurrentValues=function(){return t};o.get=function(){return t[this.slot]};o.getOrNullIfOutsideFiber=function(){return this.get()};o.withValue=function(e,n){var r=t[this.slot];try{t[this.slot]=e;return n()}finally{t[this.slot]=r}};o._set=function(e){t[this.slot]=e};o._setNewContextAndGetCurrent=function(e){var n=t[this.slot];this._set(e);return n};o._isCallAsyncMethodRunning=function(){return r};o._setCallAsyncMethodRunning=function(e){r=e};n.bindEnvironment=function(e,r,o){var i=t.slice();if(!r||"string"==typeof r){var s=r||"callback of async function";r=function(e){n._debug("Exception in "+s+":",e)}}return function(){var n=t;
3try{t=i;var s=e.apply(o,arguments)}catch(e){r(e)}finally{t=n}return s}}}).call(this);(function(){n.absoluteUrl=function(e,t){if(!t&&"object"==typeof e){t=e;e=void 0}t=Object.assign({},n.absoluteUrl.defaultOptions,t||{});var r=t.rootUrl;if(!r)throw new Error("Must pass options.rootUrl or set ROOT_URL in the server environment");if(!/^http[s]?:\/\//i.test(r))r="http://"+r;if(!r.endsWith("/"))r+="/";if(e){while(e.startsWith("/"))e=e.slice(1);r+=e}if(t.secure&&/^http:/.test(r)&&!/http:\/\/localhost[:\/]/.test(r)&&!/http:\/\/127\.0\.0\.1[:\/]/.test(r))r=r.replace(/^http:/,"https:");if(t.replaceLocalhost)r=r.replace(/^http:\/\/localhost([:\/].*)/,"http://127.0.0.1$1");return r};var e=n.absoluteUrl.defaultOptions={};var t="object"==typeof window&&window.location;if("object"==typeof __meteor_runtime_config__&&__meteor_runtime_config__.ROOT_URL)e.rootUrl=__meteor_runtime_config__.ROOT_URL;else if(t&&t.protocol&&t.host)e.rootUrl=t.protocol+"//"+t.host;if(t&&"https:"===t.protocol)e.secure=true;n._relativeToSiteRootUrl=function(e){if("object"==typeof __meteor_runtime_config__&&"/"===e.substr(0,1))e=(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX||"")+e;return e}}).call(this);(function(){n.fetch=function(e,t){if("function"!=typeof globalThis.fetch)return Promise.reject(new Error('Meteor.fetch: native fetch is not available in this environment. Add the "fetch" package to polyfill it on legacy clients.'));return globalThis.fetch(e,t)}}).call(this);return{export:function(){return{Meteor:n,global:e,meteorEnv:t}}}});
4
5Package["core-runtime"].queue("meteor-base",function(){return{}});
6
7Package["core-runtime"].queue("mobile-experience",function(){return{}});
8
9Package["core-runtime"].queue("modules-runtime",function(){var r=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e,n,t,o,i;e=function(r){"use strict";r=r||{};var e=r.extensions||[".js",".json"];var n=r.fallback;var t=r.mainFields||(r.browser?["browser","main"]:["main"]);var o={}.hasOwnProperty;function i(r,e){return h(r)&&p(e)&&o.call(r,e)}var u={};var f=new b("/",new b("/.."));var s=y(f);function c(r,e){if(h(r))x(f,r,e);return s}c.fetch=function(r){throw new Error("fetch not implemented")};function a(r){this.id=r;this.children=[];this.childrenById={}}var l;var d;a.prototype.prefetch=function(r){var e=this;m(u,e.id);l=l||Promise.resolve();var n=l;function t(r){var e=m(u,r.id);if(k(e)&&!e.pending){e.pending=true;d=d||{};d[r.id]={module:e.module,deps:Object.keys(e.deps),options:e.options,stub:e.stub};P(e.deps,function(r,n){q(e,n)});P(r.childrenById,t)}}return l=new Promise(function(n){var o=e.resolve(r);P(e.childrenById,t);n(o)}).then(function(r){var e=d;d=null;function t(){if(e)Object.keys(e).forEach(function(r){m(u,r).pending=false})}return new Promise(function(r){r(e&&c.fetch(e))}).then(function(e){function o(){c(e);t();return r}return n.then(o,o)},function(r){t();throw r})})};c.Module=a;function m(r,e){return i(r,e)&&r[e]}function h(r){return null!==r&&"object"==typeof r}function v(r){return"function"==typeof r}function p(r){return"string"==typeof r}function w(r){return new Error("Cannot find module '"+r+"'")}a.prototype.resolve=function(r){var e=q(u[this.id],r);if(e)return e.module.id;var t=w(r);if(n&&v(n.resolve))return n.resolve(r,this.id,t);throw t};a.prototype.require=function(r){var e=q(u[this.id],r);if(e)return g(e,this);var t=w(r);if(v(n))return n(r,this.id,t);throw t};function y(r){var e=r.module;function n(r){return e.require(r)}n.extensions=j(r).slice(0);n.resolve=function(r){return e.resolve(r)};return n}function b(r,e){var n=this;n.parent=e=e||null;n.module=new a(r);u[r]=n;n.contents=null;n.deps={}}function g(r,e){var n=r.module;if(!i(n,"exports")){var t=r.contents;if(!t){if(r.stub)return r.stub;throw w(n.id)}if(e){n.parent=e;var o=e.children;if(Array.isArray(o))o.push(n)}t(y(r),n.exports=r.stub||{},n,r.module.id,r.parent.module.id);n.loaded=true}var u=n.runSetters||n.runModuleSetters;if(v(u))u.call(n);return n.exports}function E(r){return r&&h(r.contents)}function k(r){return r&&null===r.contents}function x(r,e,n){if(Array.isArray(e)){e.forEach(function(n){if(p(n))r.deps[n]=r.module.id;else if(v(n))e=n;else if(h(n)){r.stub=r.stub||{};P(n,function(e,n){r.stub[n]=e})}});if(!v(e))e=null}else if(!v(e)&&!p(e)&&!h(e))e=null;if(e){r.contents=r.contents||(h(e)?{}:e);
9if(h(e)&&E(r))P(e,function(e,t){if(".."===t)o=r.parent;else{var o=m(r.contents,t);if(!o){o=r.contents[t]=new b(r.module.id.replace(/\/*$/,"/")+t,r);o.options=n}}x(o,e,n)})}}function P(r,e,n){Object.keys(r).forEach(function(n){e.call(this,r[n],n)},n)}function j(r){return r.options&&r.options.extensions||e}function O(r,e,n){while(r&&!E(r))r=r.parent;if(!r||!e||"."===e)return r;if(".."===e)return r.parent;var t=m(r.contents,e);if(n&&(!t||E(t)))for(var o=0;o<n.length;++o){var i=m(r.contents,e+n[o]);if(i&&!E(i))return i}return t}function I(r,e,n){var t=e.split("/");t.every(function(e,o){return r=o<t.length-1?O(r,e):O(r,e,n)});return r}function S(r,e){var n=e&&e.module;if(r&&n)r.childrenById[n.id]=n}function q(r,e,n,o){var n=n||r.module;var i=j(r);r="/"===e.charAt(0)?I(f,e,i):"."===e.charAt(0)?I(r,e,i):A(r,e,i);while(E(r)){o=o||[];if(o.indexOf(r)<0){o.push(r);var u=O(r,"package.json");var s=u&&g(u,n);var c,a=s&&t.some(function(e){var t=s[e];if(p(t))return c=I(r,t,i)||q(r,t,n,o)});if(a&&c){r=c;S(n,u);continue}}r=O(r,"index",i)}if(r&&p(r.contents))r=q(r,r.contents,n,o);S(n,r);return r}function A(r,e,n){for(var t;r&&!t;r=r.parent)t=E(r)&&I(r,"node_modules/"+e,n);return t}return c};if("object"==typeof exports)exports.makeInstaller=e;(function(){n=function(r){var e=function(e){if(!r)return false;var n=String(r).split("/").slice(0,-1);return n.some(function(r){return r===e})};var n=function(){return new Error('Unable to import on the server a module from a client directory: "'+r+'" \n (cross-boundary import) see: https://guide.meteor.com/structure.html#special-directories')};var t=function(){return new Error('Unable to import on the client a module from a server directory: "'+r+'" \n (cross-boundary import) see: https://guide.meteor.com/structure.html#special-directories')};return{from:e,fromClientError:n,fromServerError:t}}}).call(this);(function(){t=function(r){var e=r.split("/",2)[1];return new Error('Cannot find package "'+e+'". Try "meteor add '+e+'".')}}).call(this);(function(){o=e({browser:true,mainFields:["browser","module","main"],fallback:function(r,e,n){i(r,e,n)}})}).call(this);(function(){o=e({browser:true,mainFields:["browser","main","module"],fallback:function(r,e,n){i(r,e,n)}})}).call(this);(function(){if("function"==typeof Profile&&process.env.METEOR_PROFILE){var r=o.Module.prototype;r.require=Profile(function(r){return"require("+JSON.stringify(r)+")"},r.require)}}).call(this);(function(){i=function(e,o,i){if(e&&e.startsWith("meteor/"))throw t(e);if(!(e.startsWith(".")||e.startsWith("/")))throw i;if(n(e).from("node_modules"))throw i;if(r.isServer&&n(e).from("client"))throw n(e).fromClientError();if(r.isClient&&n(e).from("server"))throw n(e).fromServerError();if(i)throw i}}).call(this);return{export:function(){return{meteorInstall:o,verifyErrors:i}}}});
10
11Package["core-runtime"].queue("modules",function(){var e=Package.meteor.Meteor;var t=Package.meteor.global;var r=Package.meteor.meteorEnv;var n=Package["modules-runtime"].meteorInstall;Package["modules-runtime"].verifyErrors;var i;var o=n({node_modules:{meteor:{modules:{
11"client.js":function(e,t){e("./install-packages.js");e("./stubs.js");e("./process.js");e("./reify.js");t.addStyles=e("./css").addStyles},
11"legacy.js":function(e){i=e("meteor-babel-helpers")},
11"css.js":function(e,t){var r=document;var n=r.getElementsByTagName("head").item(0);t.addStyles=function(e){var t=r.createElement("style");t.setAttribute("type","text/css");var i=t.sheet||t.styleSheet;if(i)i.cssText=e;else t.appendChild(r.createTextNode(e));return n.appendChild(t)}},
11"install-packages.js":function(e,t,r){function i(e,t){var r={};if("string"==typeof t)r[e+".js"]=t;else r[e+".js"]=function(t,r,n){n.exports=Package[e]};n({node_modules:{meteor:r}})}i("core-runtime");i("meteor");i("meteor-base");i("mobile-experience");i("modules-runtime");i("modules","meteor/modules/client.js");i("react-fast-refresh");i("ecmascript");i("ecmascript-runtime");i("babel-runtime");i("modern-browsers");i("promise","meteor/promise/client.js");i("fetch","meteor/fetch/legacy.js");i("dynamic-import","meteor/dynamic-import/client.js");i("es5-shim","meteor/es5-shim/client.js");i("ecmascript-runtime-client","meteor/ecmascript-runtime-client/legacy.js");i("base64","meteor/base64/base64.js");i("ejson","meteor/ejson/ejson.js");i("diff-sequence","meteor/diff-sequence/diff.js");i("geojson-utils","meteor/geojson-utils/main.js");i("id-map","meteor/id-map/id-map.js");i("random","meteor/random/main_client.js");i("mongo-id","meteor/mongo-id/id.js");i("ordered-dict","meteor/ordered-dict/ordered_dict.js");i("tracker");i("minimongo","meteor/minimongo/minimongo_client.js");i("check","meteor/check/match.js");i("retry","meteor/retry/retry.js");i("callback-hook","meteor/callback-hook/hook.js");i("ddp-common");
11i("reload","meteor/reload/reload.js");i("socket-stream-client","meteor/socket-stream-client/browser.js");i("ddp-client","meteor/ddp-client/client/client.js");i("ddp");i("ddp-server");i("allow-deny");i("babel-compiler");i("typescript");i("logging","meteor/logging/logging.js");i("mongo");i("blaze-html-templates");i("reactive-var");i("minifier-css");i("standard-minifier-css");i("standard-minifier-js");i("shell-server");i("jquery");i("observe-sequence");i("htmljs","meteor/htmljs/preamble.js");i("blaze");i("spacebars");i("templating-compiler");i("templating-runtime");i("templating");i("aldeed:template-extension");i("less");i("ddp-rate-limiter");i("localstorage");i("url","meteor/url/legacy.js");i("accounts-base","meteor/accounts-base/client_main.js");i("roles");i("zodern:types");i("reactive-dict","meteor/reactive-dict/migration.js");i("vlasky:galvanized-iron-router","meteor/vlasky:galvanized-iron-router/lib/client.js");i("email");i("underscore");i("http");i("sha");i("accounts-password");i("service-configuration");i("session","meteor/session/session.js");i("oauth");i("accounts-oauth");i("accounts-ui-unstyled");i("accounts-ui");i("useraccounts:core");i("useraccounts:bootstrap");i("ostrio:cookies","meteor/ostrio:cookies/cookies.js");i("ostrio:files","meteor/ostrio:files/client.js");i("webapp","meteor/webapp/webapp_client.js");i("davidfm:core","meteor/davidfm:core/client/main.js");i("ouispeak:brand","meteor/ouispeak:brand/client/loading.js");i("ouispeak:core","meteor/ouispeak:core/client/main.js");i("oauth2");i("google-oauth","meteor/google-oauth/namespace.js");i("accounts-google");i("browser-policy-framing");i("meteorhacks:ssr");i("reywood:publish-composite");i("natestrauser:publish-performant-counts");i("hot-code-push");i("launch-screen");i("autoupdate","meteor/autoupdate/autoupdate_client.js")},
11"process.js":function(i,o,s){if(!t.process)try{t.process=i("process")}catch(e){t.process={}}var a=t.process;if(e.isServer)n({node_modules:{
11"process.js":function(e,t,r){r.exports=a}}});else{a.platform="browser";a.nextTick=a.nextTick||e._setImmediate}if("object"!=typeof a.env)a.env={};var l=Object.prototype.hasOwnProperty;for(var u in r)if(l.call(r,u))a.env[u]=r[u]},
11"reify.js":function(e,t,r){e("@meteorjs/reify/lib/runtime").enable(r.constructor.prototype)},
11"stubs.js":function(e){var t=false;try{e.resolve("meteor-node-stubs");t=true}catch(e){}if(t)e("meteor-node-stubs")},node_modules:{"@meteorjs":{reify:{lib:{runtime:{
11"index.js":function(e,t,r){"use strict";var n=e("./utils.js");var i=e("./entry.js");var o=Object.create(null);t.enable=function(e){if(e.link!==s){e.link=s;e["export"]=a;e.exportDefault=l;e.exportAs=u;e.runSetters=f;e.wrapAsync=h;e.makeNsSetter=c;var t=e.require;e.require=function(e){var r=t.call(this,e);var n=this.resolve(e);var s=i.getOrNull(n);if(s&&s.asyncEvaluation&&!o[n]){var a=new Promise(function(e,t){if("evaluated"===s.status){if(s.evaluationError)return t(s.evaluationError);return e(r)}s._onEvaluated.push(function(){if(s.evaluationError)return t(s.evaluationError);e(r)})});Object.defineProperty(a,"__reifyAsyncModule",{value:r,enumerable:false,writable:false,configurable:true});return a}return r};return true}return false};t._requireAsSync=function(e){o[e]=true};function s(e,t,r){n.setESModule(this.exports);var o=i.getOrCreate(this.id,this);var s=this.resolve(e);var a=i.getOrCreate(s);if(n.isObject(t))a.addSetters(this,t,r);var l=this.require(s);if(n.isObject(l)&&Object.prototype.hasOwnProperty.call(l,"__reifyAsyncModule")){l.catch(function(){});l=l.__reifyAsyncModule}if(null===a.module)a.module={id:s,exports:l};a.runSetters();if(a.asyncEvaluation&&"linking"!==o.status&&"evaluated"!==a.status)throw new Error("Nested imports can not import an async module");if(a.asyncEvaluation)o.addAsyncDep(a)}function a(e,t){n.setESModule(this.exports);var r=i.getOrCreate(this.id,this);r.addGetters(e,t);if(this.loaded)r.runSetters()}function l(e){return this["export"]({default:function(){return e}},true)}function u(e){var t=this;var r="*+"===e;
11var i=function(i){if("*"===e||"*+"===e)Object.keys(i).forEach(function(e){if(r||"default"!==e)n.copyKey(e,t.exports,i)});else t.exports[e]=i};if("*+"!==e&&"*"!==e)i.exportAs=e;return i}function f(e,t){i.getOrCreate(this.id,this).runSetters(t,true);return e}function c(e){return this.exportAs(e?"*+":"*")}function h(e,t){var r=this;var n=i.getOrCreate(r.id,r);n.hasTLA=t.async;var o=void 0;e.call(t.self,r,function(){if(void 0===o){n.setAsyncEvaluation();if(0===n.pendingAsyncDeps){o=null;if("evaluating"!==n.status)n.changeStatus("evaluating");if(n.asyncEvaluation&&!n.hasTLA)n.changeStatus("evaluated")}else{var e;o=new Promise(function(t){e=t});n._onEvaluating.push(function(){e(function(){if(n.evaluationError)throw n.evaluationError});if(n.asyncEvaluation&&!n.hasTLA)n.changeStatus("evaluated")})}}return o},function(e){if(e)n.setEvaluationError(e);if(n.asyncEvaluation)n.runSetters();if("evaluated"!==n.status)n.changeStatus("evaluated");n.allAsyncParents=[]});if(n.evaluationError&&!n.asyncEvaluation)throw n.evaluationError}},
11"utils.js":function(e,t,r){"use strict";var n="function"==typeof Object.setPrototypeOf;var i="function"==typeof Symbol;var o="__esModule";var s=i?Symbol.for(o):null;var a=i&&"symbol"==typeof Symbol.toStringTag;var l="function"==typeof Object.getOwnPropertyDescriptor;var u=Object.prototype.hasOwnProperty;function f(e,t,r){if(l){var n=Object.getOwnPropertyDescriptor(r,e);n.configurable=true;Object.defineProperty(t,e,n)}else t[e]=r[e]}t.copyKey=f;t.valueOrGetter=function(e,t){if(l&&u.call(e,t)){var r=Object.getOwnPropertyDescriptor(e,t);if("function"==typeof r.get)return r.get}return e[t]};function c(e){if(p(e)){if(i&&u.call(e,s))return!!e[s];if(u.call(e,o))return!!e[o]}return false}t.getESModule=c;function h(e){if(p(e)){if(i)e[s]=true;if(!e[o])Object.defineProperty(e,o,{configurable:true,enumerable:false,value:true,writable:true})}}t.setESModule=h;function d(e){return"object"==typeof e&&null!==e}t.isObject=d;function p(e){var t=typeof e;return"function"===t||"object"===t&&null!==e}t.isObjectLike=p;t.ensureObjectProperty=function(e,t){return u.call(e,t)?e[t]:e[t]=Object.create(null)};function g(){var e=Object.create(null);if(a)Object.defineProperty(e,Symbol.toStringTag,{value:"Module",configurable:false,enumerable:false,writable:false});h(e);return e}t.createNamespace=g;function m(e,t){if(n)Object.setPrototypeOf(e,t);else e.__proto__=t;return e}t.setPrototypeOf=m},
11"entry.js":function(e,t,r){"use strict";var n=e("./utils.js");var i={};var o={};var s={};var a=Object.prototype.hasOwnProperty;var l=0;var u=0;function f(e){this.id=e;this.module=null;this.namespace=n.createNamespace();this.getters=Object.create(null);this.setters=Object.create(null);this.newSetters=Object.create(null);this.snapshots=Object.create(null);this.hasTLA=false;this.asyncEvaluation=false;this.asyncEvaluationIndex=null;this.pendingAsyncDeps=0;this._onEvaluating=[];this._onEvaluated=[];this.status="linking";this.allAsyncParents=[];this.pendingAsyncParents=[];this.evaluationError=null}var c=n.setPrototypeOf(f.prototype,null);var h=Object.create(null);f.getOrNull=function(e){if(a.call(h,e))return h[e];return null};f.getOrCreate=function(e,t){var r=a.call(h,e)?h[e]:h[e]=new f(e);if(n.isObject(t)&&t.id===r.id)r.module=t;return r};function d(e){var t=Object.keys(e);var r=t.indexOf("__esModule");if(r>=0)t.splice(r,1);return t}c.addGetters=function(e,t){var r=d(e);var n=r.length;t=!!t;for(var i=0;i<n;++i){var o=r[i];var s=e[o];if("function"==typeof s&&!(o in this.getters)){this.getters[o]=s;s.constant=t;s.runCount=0}}};c.addSetters=function(e,t,r){var i=d(t);var o=i.length;if(!o)return;r=void 0===r?w():e.id+":"+r;var s=this;for(var a=0;a<o;++a){var l=i[a];var u=p(e,t[l]);if("function"==typeof u){u.parent=e;n.ensureObjectProperty(s.setters,l)[r]=u;n.ensureObjectProperty(s.newSetters,l)[r]=u}}s.runSetters(i)};function p(e,t){if("function"==typeof t)return t;if("string"==typeof t)return e.exportAs(t);if(Array.isArray(t))switch(t.length){case 0:break;case 1:return p(e,t[0]);default:var r=t.map(function(t){return p(e,t)});return function(e){r.forEach(function(t){t(e)})}}return null}c.runGetters=function(e){g(this,e);if(void 0===e||e.indexOf("*")>=0)e=Object.keys(this.getters);var t=e.length;for(var r=0;r<t;++r){var n=e[r];var o=x(this,n);if(o!==i){this.namespace[n]=o;this.module.exports[n]=o}}};function g(e,t){var r=false;if(null===e.module)return;var i=e.module.exports;if(!n.getESModule(i)){e.namespace.default=i;r=true}if(!n.isObjectLike(i))return;if(void 0===t||t.indexOf("*")>=0)t=Object.keys(i);t.forEach(function(t){if(!a.call(e.getters,t)&&!(r&&"default"===t)&&a.call(i,t))n.copyKey(t,e.namespace,i)})}c.runSetters=function(e,t){this.runGetters(e);if(t&&void 0!==e)e.push("*");var r;var n;y(this,e,function(e,t,i){if(void 0===r)r=Object.create(null);if(void 0===n)n=Object.create(null);var o=e.parent.id;if(void 0!==e.exportAs&&false!==n[o]){n[o]=n[o]||[];n[o].push(e.exportAs)}else if(false!==n[o])n[o]=false;r[o]=e.parent;e(i,t)});if(!r)return;var i=Object.keys(r);var o=i.length;for(var s=0;s<o;++s){var a=r[i[s]];var l=h[a.id];if(l)l.runSetters(n[i[s]]||void 0,!!n[i[s]])}};c.addAsyncDep=function(e){if("evaluated"!==e.status){this.pendingAsyncDeps+=1;e.allAsyncParents.push(this);e.pendingAsyncParents.push(this)}if(e.evaluationError)this.setEvaluationError(e.evaluationError)};c.changeStatus=function(e){switch(e){case"linking":this.status="linking";break;case"evaluating":this.status="evaluating";this._onEvaluating.forEach(function(e){e()});break;case"evaluated":this.status="evaluated";var t=[];this.gatherReadyAsyncParents(t);t.sort(function(e,t){return e.asyncEvaluationIndex-t.asyncEvaluationIndex});t.forEach(function(e){e.changeStatus("evaluating")});var r=this._onEvaluated;this._onEvaluated=[];r.forEach(function(e){e()});break;default:throw new Error("Unrecognized module status: "+e)}};c.gatherReadyAsyncParents=function(e){this.pendingAsyncParents.forEach(function(t){t.pendingAsyncDeps-=1;if(0===t.pendingAsyncDeps){e.push(t);if(!t.hasTLA)t.gatherReadyAsyncParents(e)}});this.pendingAsyncParents=[]};c.setAsyncEvaluation=function(){if(null!==this.asyncEvaluationIndex){if("evaluated"===this.status)return;throw new Error("setAsyncEvaluation can only be called once")}this.asyncEvaluation=this.hasTLA||this.pendingAsyncDeps>0;this.asyncEvaluationIndex=u++};c.setEvaluationError=function(e){if(!this.evaluationError)this.evaluationError=e;this.allAsyncParents.forEach(function(t){t.setEvaluationError(e)})};function m(e,t,r){var i=Object.create(null);var o=[];if("*"===t)d(r).forEach(function(e){o.push(e);i[e]=O(n.valueOrGetter(r,e))});else{o.push(t);i[t]=O(r)}var s=e.snapshots[t];if(s&&o.every(function(e){return s[e]===i[e]})&&o.length===Object.keys(s).length)return s;return i}function O(e){if(void 0===e)return s;if(e!==e&&isNaN(e))return o;return e}function v(e,t,r){if(e.snapshots[t]!==r){e.snapshots[t]=r;delete e.newSetters[t];return Object.keys(e.setters[t])}var n=e.newSetters[t];var i=n&&Object.keys(n);if(i&&i.length){delete e.newSetters[t];return i}}function y(e,t,r){if(void 0===t)t=Object.keys(e.setters);t.forEach(function(t){if("__esModule"===t)return;var n=e.setters[t];if(!n)return;var i=e.getters[t];var o="function"==typeof i&&i.runCount>0&&i.constant;var s=b(e,t);var a=m(e,t,s);var l=v(e,t,a);if(void 0===l)return;l.forEach(function(e){var i=n[e];if(!i)return;r(i,t,s);if(o)delete n[e]})})}function b(e,t){if("*"===t)return e.namespace;if(a.call(e.namespace,t))return e.namespace[t];if(null===e.module)return;var r=e.module.exports;if("default"===t&&!(n.getESModule(r)&&"default"in r))return r;if(null==r)return;return r[t]}function w(){return Math.random().toString(36).replace("0.",++l+"$")}function x(e,t){var r=e.getters[t];if(!r)return i;try{var n=r();++r.runCount;return n}catch(e){}return i}r.exports=f}}}}},"meteor-babel-helpers":{
11"package.json":function(e,t,r){r.exports={name:"meteor-babel-helpers",version:"0.0.3",main:"index.js"}},
11"index.js":function(e,t,r){function n(){var e={};var t="t";try{Object.defineProperty(e,t,{enumerable:false,value:e});for(var r in e)if(r===t)return false}catch(e){return false}return e[t]===e}function o(e){return e}function s(e){if(Array.isArray(e)){var t={};var r=Object.keys(e);var n=r.length;for(var i=0;i<n;++i){var o=r[i];t[o]=e[o]}return t}return e}i=r.exports={sanitizeForInObject:n()?o:s,_sanitizeForInObjectHard:s}}}}}}}},{extensions:[".js",".json"]});n({node_modules:{"@babel":{runtime:{regenerator:{
11"index.js":function(e,t,r){var n=e("../helpers/regeneratorRuntime")();r.exports=n;try{regeneratorRuntime=n}catch(e){if("object"==typeof globalThis)globalThis.regeneratorRuntime=n;else Function("r","regeneratorRuntime = r")(n)}}},helpers:{
vendor: 1,422 bytes, line 11
11"regeneratorRuntime.js":function(e,t,r){var n=e("./OverloadYield.js");var i=e("./regenerator.js");var o=e("./regeneratorAsync.js");var s=e("./regeneratorAsyncGen.js");var a=e("./regeneratorAsyncIterator.js");var l=e("./regeneratorKeys.js");var u=e("./regeneratorValues.js");function f(){"use strict";var e=i(),t=e.m(f),c=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===c||"GeneratorFunction"===(t.displayName||t.name))}var d={throw:1,return:2,break:3,continue:3};function p(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,d[e],t)},delegateYield:function(e,i,o){return t.resultName=i,r(n.d,u(e),o)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(r.exports=f=function(){return{wrap:function(t,r,n,i){return e.w(p(t),r,n,i&&i.reverse())},isGeneratorFunction:h,mark:e.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:a,async:function(e,t,r,n,i){return(h(t)?s:o)(p(e),t,r,n,i)},keys:l,values:u}},r.exports.__esModule=true,r.exports["default"]=r.exports)()}r.exports=f,r.exports.__esModule=true,r.exports["default"]=r.exports},
11"OverloadYield.js":function(e,t,r){function n(e,t){this.v=e,this.k=t}r.exports=n,r.exports.__esModule=true,r.exports["default"]=r.exports},
vendor: 1,974 bytes, line 11
11"regenerator.js":function(e,t,r){var n=e("./regeneratorDefine.js");function i(){var e,t,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function l(r,i,o,s){var a=i&&i.prototype instanceof f?i:f,l=Object.create(a.prototype);return n(l,"_invoke",function(r,n,i){var o,s,a,l=0,f=i||[],c=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,s=0,a=e,h.n=r,u}};function d(r,n){for(s=r,a=n,t=0;!c&&l&&!i&&t<f.length;t++){var i,o=f[t],d=h.p,p=o[2];r>3?(i=p===n)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&d<o[1])?(s=0,h.v=n,h.n=o[1]):d<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,h.n=p,s=0))}if(i||r>1)return u;throw c=!0,n}return function(i,f,p){if(l>1)throw TypeError("Generator is already running");for(c&&1===f&&d(f,p),s=f,a=p;(t=s<2?e:a)||!c;){o||(s?s<3?(s>1&&(h.n=-1),d(s,a)):h.n=a:h.v=a);try{if(l=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=o["return"])&&t.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(c=h.n<0)?a:r.call(n,h))!==u)break}catch(t){o=e,s=1,a=t}finally{l=1}}return{value:t,done:c}}}(r,o,s),!0),l}var u={};function f(){}function c(){}function h(){}t=Object.getPrototypeOf;var d=[][s]?t(t([][s]())):(n(t={},s,function(){return this}),t),p=h.prototype=f.prototype=Object.create(d);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,n(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=h,n(p,"constructor",h),n(h,"constructor",c),c.displayName="GeneratorFunction",n(h,a,"GeneratorFunction"),n(p),n(p,a,"Generator"),n(p,s,function(){return this}),n(p,"toString",function(){return"[object Generator]"}),(r.exports=i=function(){return{w:l,m:g}},r.exports.__esModule=true,r.exports["default"]=r.exports)()}r.exports=i,r.exports.__esModule=true,r.exports["default"]=r.exports},
11"regeneratorDefine.js":function(e,t,r){function n(e,t,i,o){var s=Object.defineProperty;try{s({},"",{})}catch(e){s=0}r.exports=n=function(e,t,r,i){function o(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?s?s(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},r.exports.__esModule=true,r.exports["default"]=r.exports,n(e,t,i,o)}r.exports=n,r.exports.__esModule=true,r.exports["default"]=r.exports},
11"regeneratorAsync.js":function(e,t,r){var n=e("./regeneratorAsyncGen.js");function i(e,t,r,i,o){var s=n(e,t,r,i,o);return s.next().then(function(e){return e.done?e.value:s.next()})}r.exports=i,r.exports.__esModule=true,r.exports["default"]=r.exports},
11"regeneratorAsyncGen.js":function(e,t,r){var n=e("./regenerator.js");var i=e("./regeneratorAsyncIterator.js");function o(e,t,r,o,s){return new i(n().w(e,t,r,o),s||Promise)}r.exports=o,r.exports.__esModule=true,r.exports["default"]=r.exports},
vendor: 702 bytes, line 11
11"regeneratorAsyncIterator.js":function(e,t,r){var n=e("./OverloadYield.js");var i=e("./regeneratorDefine.js");function o(e,t){function r(i,o,s,a){try{var l=e[i](o),u=l.value;return u instanceof n?t.resolve(u.v).then(function(e){r("next",e,s,a)},function(e){r("throw",e,s,a)}):t.resolve(u).then(function(e){l.value=e,s(l)},function(e){return r("throw",e,s,a)})}catch(e){a(e)}}var s;this.next||(i(o.prototype),i(o.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,n,i){function o(){return new t(function(t,n){r(e,i,t,n)})}return s=s?s.then(o,o):o()},!0)}r.exports=o,r.exports.__esModule=true,r.exports["default"]=r.exports},
11"regeneratorKeys.js":function(e,t,r){function n(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}r.exports=n,r.exports.__esModule=true,r.exports["default"]=r.exports},
11"regeneratorValues.js":function(e,t,r){var n=e("./typeof.js")["default"];function i(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")}r.exports=i,r.exports.__esModule=true,r.exports["default"]=r.exports},
11"typeof.js":function(e,t,r){function n(e){return r.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r.exports.__esModule=true,r.exports["default"]=r.exports,n(e)}r.exports=n,r.exports.__esModule=true,r.exports["default"]=r.exports}}}},codemirror:{
11"package.json":function(e,t,r){r.exports={name:"codemirror",version:"6.0.2",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";var r=e("@codemirror/view");var n=e("@codemirror/state");var i=e("@codemirror/language");var o=e("@codemirror/commands");var s=e("@codemirror/search");var a=e("@codemirror/autocomplete");var l=e("@codemirror/lint");const u=(()=>[r.lineNumbers(),r.highlightActiveLineGutter(),r.highlightSpecialChars(),o.history(),i.foldGutter(),r.drawSelection(),r.dropCursor(),n.EditorState.allowMultipleSelections.of(true),i.indentOnInput(),i.syntaxHighlighting(i.defaultHighlightStyle,{fallback:true}),i.bracketMatching(),a.closeBrackets(),a.autocompletion(),r.rectangularSelection(),r.crosshairCursor(),r.highlightActiveLine(),s.highlightSelectionMatches(),r.keymap.of([...a.closeBracketsKeymap,...o.defaultKeymap,...s.searchKeymap,...o.historyKeymap,...i.foldKeymap,...a.completionKeymap,...l.lintKeymap])])();const f=(()=>[r.highlightSpecialChars(),o.history(),r.drawSelection(),i.syntaxHighlighting(i.defaultHighlightStyle,{fallback:true}),r.keymap.of([...o.defaultKeymap,...o.historyKeymap])])();Object.defineProperty(t,"EditorView",{enumerable:true,get:function(){return r.EditorView}});t.basicSetup=u;t.minimalSetup=f}}},"@codemirror":{view:{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/view",version:"6.39.13",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t,r){"use strict";var n=e("@codemirror/state");var i=e("style-mod");var o=e("w3c-keyname");var s=e("crelt");let a="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""};let l="undefined"!=typeof document?document:{documentElement:{style:{}}};const u=/Edge\/(\d+)/.exec(a.userAgent);const f=/MSIE \d/.test(a.userAgent);const c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(a.userAgent);const h=!!(f||c||u);const d=!h&&/gecko\/(\d+)/i.test(a.userAgent);const p=!h&&/Chrome\/(\d+)/.exec(a.userAgent);const g="webkitFontSmoothing"in l.documentElement.style;const m=!h&&/Apple Computer/.test(a.vendor);const O=m&&(/Mobile\/\w+/.test(a.userAgent)||a.maxTouchPoints>2);var v={mac:O||/Mac/.test(a.platform),windows:/Win/.test(a.platform),linux:/Linux|X11/.test(a.platform),ie:h,ie_version:f?l.documentMode||6:c?+c[1]:u?+u[1]:0,gecko:d,gecko_version:d?+(/Firefox\/(\d+)/.exec(a.userAgent)||[0,0])[1]:0,chrome:!!p,chrome_version:p?+p[1]:0,ios:O,android:/Android\b/.test(a.userAgent),webkit:g,webkit_version:g?+(/\bAppleWebKit\/(\d+)/.exec(a.userAgent)||[0,0])[1]:0,safari:m,safari_version:m?+(/\bVersion\/(\d+(\.\d+)?)/.exec(a.userAgent)||[0,0])[1]:0,tabSize:null!=l.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function y(e,t){for(let r in e)if("class"==r&&t.class)t.class+=" "+e.class;else if("style"==r&&t.style)t.style+=";"+e.style;else t[r]=e[r];return t}const b=Object.create(null);function w(e,t,r){if(e==t)return true;if(!e)e=b;if(!t)t=b;let n=Object.keys(e),i=Object.keys(t);if(n.length-(r&&n.indexOf(r)>-1?1:0)!=i.length-(r&&i.indexOf(r)>-1?1:0))return false;for(let o of n)if(o!=r&&(-1==i.indexOf(o)||e[o]!==t[o]))return false;return true}function x(e,t){for(let r=e.attributes.length-1;r>=0;r--){let n=e.attributes[r].name;if(null==t[n])e.removeAttribute(n)}for(let r in t){let n=t[r];if("style"==r)e.style.cssText=n;else if(e.getAttribute(r)!=n)e.setAttribute(r,n)}}function S(e,t,r){let n=false;if(t){for(let i in t)if(!(r&&i in r)){n=true;if("style"==i)e.style.cssText="";else e.removeAttribute(i)}}if(r){for(let i in r)if(!(t&&t[i]==r[i])){n=true;if("style"==i)e.style.cssText=r[i];else e.setAttribute(i,r[i])}}return n}function _(e){let t=Object.create(null);for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];t[n.name]=n.value}return t}class k{eq(e){return false}updateDOM(e,t){return false}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return -1}get lineBreaks(){return 0}ignoreEvent(e){return true}coordsAt(e,t,r){return null}get isHidden(){return false}get editable(){return false}destroy(e){}}t.BlockType=void 0;(function(e){e[e["Text"]=0]="Text";e[e["WidgetBefore"]=1]="WidgetBefore";e[e["WidgetAfter"]=2]="WidgetAfter";e[e["WidgetRange"]=3]="WidgetRange"})(t.BlockType||(t.BlockType={}));class Q extends n.RangeValue{constructor(e,t,r,n){super();this.startSide=e;this.endSide=t;this.widget=r;this.spec=n}get heightRelevant(){return false}static mark(e){return new P(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;t+=r&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8;return new A(e,t,t,r,e.widget||null,false)}static replace(e){let t=!!e.block,r,n;if(e.isBlockGap){r=-5e8;n=4e8}else{let{start:i,end:o}=$(e,t);r=(i?t?-3e8:-1:5e8)-1;n=(o?t?2e8:1:-6e8)+1}return new A(e,r,n,t,e.widget||null,true)}static line(e){return new T(e)}static set(e,t=false){return n.RangeSet.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:false}}Q.none=n.RangeSet.empty;class P extends Q{constructor(e){let{start:t,end:r}=$(e);super(t?-1:5e8,r?1:-6e8,null,e);this.tagName=e.tagName||"span";this.attrs=e.class&&e.attributes?y(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||b}eq(e){return this==e||e instanceof P&&this.tagName==e.tagName&&w(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}P.prototype.point=false;class T extends Q{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof T&&this.spec.class==e.spec.class&&w(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}
11T.prototype.mapMode=n.MapMode.TrackBefore;T.prototype.point=true;class A extends Q{constructor(e,t,r,i,o,s){super(t,r,o,e);this.block=i;this.isReplace=s;this.mapMode=i?t<=0?n.MapMode.TrackBefore:n.MapMode.TrackAfter:n.MapMode.TrackDel}get type(){return this.startSide!=this.endSide?t.BlockType.WidgetRange:this.startSide<=0?t.BlockType.WidgetBefore:t.BlockType.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof A&&j(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}A.prototype.point=true;function $(e,t=false){let{inclusiveStart:r,inclusiveEnd:n}=e;if(null==r)r=e.inclusive;if(null==n)n=e.inclusive;return{start:null!=r?r:t,end:null!=n?n:t}}function j(e,t){return e==t||!!(e&&t&&e.compare(t))}function C(e,t,r,n=0){let i=r.length-1;if(i>=0&&r[i]+n>=e)r[i]=Math.max(r[i],t);else r.push(e,t)}class E extends n.RangeValue{constructor(e,t){super();this.tagName=e;this.attributes=t}eq(e){return e==this||e instanceof E&&this.tagName==e.tagName&&w(this.attributes,e.attributes)}static create(e){return new E(e.tagName,e.attributes||b)}static set(e,t=false){return n.RangeSet.of(e,t)}}E.prototype.startSide=E.prototype.endSide=-1;function M(e){let t;t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e;return t.getSelection()}function R(e,t){return t?e==t||e.contains(1!=t.nodeType?t.parentNode:t):false}function D(e,t){if(!t.anchorNode)return false;try{return R(e,t.anchorNode)}catch(e){return false}}function L(e){if(3==e.nodeType)return K(e,0,e.nodeValue.length).getClientRects();if(1==e.nodeType)return e.getClientRects();return[]}function Z(e,t,r,n){return r?B(e,t,r,n,-1)||B(e,t,r,n,1):false}function X(e){for(var t=0;;t++){e=e.previousSibling;if(!e)return t}}function q(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function B(e,t,r,n,i){for(;;){if(e==r&&t==n)return true;if(t==(i<0?0:z(e))){if("DIV"==e.nodeName)return false;let r=e.parentNode;if(!r||1!=r.nodeType)return false;t=X(e)+(i<0?0:1);e=r}else{if(1!=e.nodeType)return false;e=e.childNodes[t+(i<0?-1:0)];if(1==e.nodeType&&"false"==e.contentEditable)return false;t=i<0?z(e):0}}}function z(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function I(e,t){let r=t?e.left:e.right;return{left:r,right:r,top:e.top,bottom:e.bottom}}function N(e){let t=e.visualViewport;if(t)return{left:0,right:t.width,top:0,bottom:t.height};return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function V(e,t){let r=t.width/e.offsetWidth;let n=t.height/e.offsetHeight;if(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.width-e.offsetWidth)<1)r=1;if(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.height-e.offsetHeight)<1)n=1;return{scaleX:r,scaleY:n}}function W(e,t,r,n,i,o,s,a){let l=e.ownerDocument,u=l.defaultView||window;for(let f=e,c=false;f&&!c;)if(1==f.nodeType){let e,h=f==l.body;let d=1,p=1;if(h)e=N(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position))c=true;if(f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let t=f.getBoundingClientRect();({scaleX:d,scaleY:p}=V(f,t));e={left:t.left,right:t.left+f.clientWidth*d,top:t.top,bottom:t.top+f.clientHeight*p}}let g=0,m=0;if("nearest"==i){if(t.top<e.top){m=t.top-(e.top+s);if(r>0&&t.bottom>e.bottom+m)m=t.bottom-e.bottom+s}else if(t.bottom>e.bottom){m=t.bottom-e.bottom+s;if(r<0&&t.top-m<e.top)m=t.top-(e.top+s)}}else{let n=t.bottom-t.top,o=e.bottom-e.top;let a="center"==i&&n<=o?t.top+n/2-o/2:"start"==i||"center"==i&&r<0?t.top-s:t.bottom-o+s;m=a-e.top}if("nearest"==n){if(t.left<e.left){g=t.left-(e.left+o);if(r>0&&t.right>e.right+g)g=t.right-e.right+o}else if(t.right>e.right){g=t.right-e.right+o;if(r<0&&t.left<e.left+g)g=t.left-(e.left+o)}}else{let r="center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==a?t.left-o:t.right-(e.right-e.left)+o;g=r-e.left}if(g||m)if(h)u.scrollBy(g,m);else{let e=0,r=0;if(m){let e=f.scrollTop;f.scrollTop+=m/p;r=(f.scrollTop-e)*p}if(g){let t=f.scrollLeft;f.scrollLeft+=g/d;e=(f.scrollLeft-t)*d}t={left:t.left-e,top:t.top-r,right:t.right-e,bottom:t.bottom-r};if(e&&Math.abs(e-g)<1)n="nearest";if(r&&Math.abs(r-m)<1)i="nearest"}if(h)break;if(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};f=f.assignedSlot||f.parentNode}else if(11==f.nodeType)f=f.host;else break}function Y(e){let t=e.ownerDocument,r,n;for(let i=e.parentNode;i;)if(i==t.body||r&&n)break;else if(1==i.nodeType){if(!n&&i.scrollHeight>i.clientHeight)n=i;if(!r&&i.scrollWidth>i.clientWidth)r=i;i=i.assignedSlot||i.parentNode}else if(11==i.nodeType)i=i.host;else break;return{x:r,y:n}}class U{constructor(){this.anchorNode=null;this.anchorOffset=0;this.focusNode=null;this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:r}=e;this.set(t,Math.min(e.anchorOffset,t?z(t):0),r,Math.min(e.focusOffset,r?z(r):0))}set(e,t,r,n){this.anchorNode=e;this.anchorOffset=t;this.focusNode=r;this.focusOffset=n}}let G=null;if(v.safari&&v.safari_version>=26)G=false;function F(e){if(e.setActive)return e.setActive();if(G)return e.focus(G);let t=[];for(let r=e;r;r=r.parentNode){t.push(r,r.scrollTop,r.scrollLeft);if(r==r.ownerDocument)break}e.focus(null==G?{get preventScroll(){G={preventScroll:true};return true}}:void 0);if(!G){G=false;for(let e=0;e<t.length;){let r=t[e++],n=t[e++],i=t[e++];if(r.scrollTop!=n)r.scrollTop=n;if(r.scrollLeft!=i)r.scrollLeft=i}}}let H;function K(e,t,r=t){let n=H||(H=document.createRange());n.setEnd(e,r);n.setStart(e,t);return n}function J(e,t,r,n){let i={key:t,code:t,keyCode:r,which:r,cancelable:true};if(n)({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=n);let o=new KeyboardEvent("keydown",i);o.synthetic=true;e.dispatchEvent(o);let s=new KeyboardEvent("keyup",i);s.synthetic=true;e.dispatchEvent(s);return o.defaultPrevented||s.defaultPrevented}function ee(e){while(e){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}function et(e,t){let r=t.focusNode,n=t.focusOffset;if(!r||t.anchorNode!=r||t.anchorOffset!=n)return false;n=Math.min(n,z(r));for(;;)if(n){if(1!=r.nodeType)return false;let e=r.childNodes[n-1];if("false"==e.contentEditable)n--;else{r=e;n=z(r)}}else{if(r==e)return true;n=X(r);r=r.parentNode}}function er(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function en(e,t){for(let r=e,n=t;;)if(3==r.nodeType&&n>0)return{node:r,offset:n};else if(1==r.nodeType&&n>0){if("false"==r.contentEditable)return null;r=r.childNodes[n-1];n=z(r)}else{if(!r.parentNode||!!q(r))return null;n=X(r);r=r.parentNode}}function ei(e,t){for(let r=e,n=t;;)if(3==r.nodeType&&n<r.nodeValue.length)return{node:r,offset:n};else if(1==r.nodeType&&n<r.childNodes.length){if("false"==r.contentEditable)return null;r=r.childNodes[n];n=0}else{if(!r.parentNode||!!q(r))return null;n=X(r)+1;r=r.parentNode}}class eo{constructor(e,t,r=true){this.node=e;this.offset=t;this.precise=r}static before(e,t){return new eo(e.parentNode,X(e),t)}static after(e,t){return new eo(e.parentNode,X(e)+1,t)}}t.Direction=void 0;(function(e){e[e["LTR"]=0]="LTR";e[e["RTL"]=1]="RTL"})(t.Direction||(t.Direction={}));const es=t.Direction.LTR,ea=t.Direction.RTL;function el(e){let t=[];for(let r=0;r<e.length;r++)t.push(1<<e[r]);return t}const eu=el("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008");const ef=el("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333");const ec=Object.create(null),eh=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),r=e.charCodeAt(1);ec[t]=r;ec[r]=-t}function ed(e){return e<=247?eu[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?ef[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}
11const ep=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class eg{get dir(){return this.level%2?ea:es}constructor(e,t,r){this.from=e;this.to=t;this.level=r}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,r,n){let i=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=t&&s.to>=t){if(s.level==r)return o;if(i<0||(0!=n?n<0?s.from<t:s.to>t:e[i].level>s.level))i=o}}if(i<0)throw new RangeError("Index out of range");return i}}function em(e,t){if(e.length!=t.length)return false;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n.from!=i.from||n.to!=i.to||n.direction!=i.direction||!em(n.inner,i.inner))return false}return true}const eO=[];function ev(e,t,r,n,i){for(let o=0;o<=n.length;o++){let s=o?n[o-1].to:t,a=o<n.length?n[o].from:r;let l=o?256:i;for(let t=s,r=l,n=l;t<a;t++){let i=ed(e.charCodeAt(t));if(512==i)i=r;else if(8==i&&4==n)i=16;eO[t]=4==i?2:i;if(7&i)n=i;r=i}for(let e=s,t=l,n=l;e<a;e++){let i=eO[e];if(128==i)if(e<a-1&&t==eO[e+1]&&24&t)i=eO[e]=t;else eO[e]=256;else if(64==i){let i=e+1;while(i<a&&64==eO[i])i++;let o=e&&8==t||i<r&&8==eO[i]?1==n?1:8:256;for(let t=e;t<i;t++)eO[t]=o;e=i-1}else if(8==i&&1==n)eO[e]=1;t=i;if(7&i)n=i}}}function ey(e,t,r,n,i){let o=1==i?2:1;for(let s=0,a=0,l=0;s<=n.length;s++){let u=s?n[s-1].to:t,f=s<n.length?n[s].from:r;for(let t=u,r,n,s;t<f;t++)if(n=ec[r=e.charCodeAt(t)])if(n<0){for(let e=a-3;e>=0;e-=3)if(eh[e+1]==-n){let r=eh[e+2];let n=2&r?i:4&r?1&r?o:i:0;if(n)eO[t]=eO[eh[e]]=n;a=e;break}}else if(189==eh.length)break;else{eh[a++]=t;eh[a++]=r;eh[a++]=l}else if(2==(s=eO[t])||1==s){let e=s==i;l=e?0:1;for(let t=a-3;t>=0;t-=3){let r=eh[t+2];if(2&r)break;if(e)eh[t+2]|=2;else{if(4&r)break;eh[t+2]|=4}}}}}function eb(e,t,r,n){for(let i=0,o=n;i<=r.length;i++){let s=i?r[i-1].to:e,a=i<r.length?r[i].from:t;for(let l=s;l<a;){let s=eO[l];if(256==s){let s=l+1;for(;;)if(s==a){if(i==r.length)break;s=r[i++].to;a=i<r.length?r[i].from:t}else if(256==eO[s])s++;else break;let u=1==o;let f=(s<t?eO[s]:n)==1;let c=u==f?u?1:2:n;for(let t=s,n=i,o=n?r[n-1].to:e;t>l;){if(t==o){t=r[--n].from;o=n?r[n-1].to:e}eO[--t]=c}l=s}else{o=s;l++}}}}function ew(e,t,r,n,i,o,s){let a=n%2?2:1;if(n%2==i%2)for(let l=t,u=0;l<r;){let t=true,f=false;if(u==o.length||l<o[u].from){let e=eO[l];if(e!=a){t=false;f=16==e}}let c=t||1!=a?null:[];let h=t?n:n+1;let d=l;e:for(;;)if(u<o.length&&d==o[u].from){if(f)break;let p=o[u];if(!t)for(let e=p.to,t=u+1;;){if(e==r)break e;if(t<o.length&&o[t].from==e)e=o[t++].to;else if(eO[e]==a)break e;else break}u++;if(c)c.push(p);else{if(p.from>l)s.push(new eg(l,p.from,h));let t=p.direction==es!=!(h%2);ex(e,t?n+1:n,i,p.inner,p.from,p.to,s);l=p.to}d=p.to}else if(d==r||(t?eO[d]!=a:eO[d]==a))break;else d++;if(c)ew(e,l,d,n+1,i,c,s);else if(l<d)s.push(new eg(l,d,h));l=d}else for(let l=r,u=o.length;l>t;){let r=true,f=false;if(!u||l>o[u-1].to){let e=eO[l-1];if(e!=a){r=false;f=16==e}}let c=r||1!=a?null:[];let h=r?n:n+1;let d=l;e:for(;;)if(u&&d==o[u-1].to){if(f)break;let p=o[--u];if(!r)for(let e=p.from,r=u;;){if(e==t)break e;if(r&&o[r-1].to==e)e=o[--r].from;else if(eO[e-1]==a)break e;else break}if(c)c.push(p);else{if(p.to<l)s.push(new eg(p.to,l,h));let t=p.direction==es!=!(h%2);ex(e,t?n+1:n,i,p.inner,p.from,p.to,s);l=p.from}d=p.from}else if(d==t||(r?eO[d-1]!=a:eO[d-1]==a))break;else d--;if(c)ew(e,d,l,n+1,i,c,s);else if(d<l)s.push(new eg(d,l,h));l=d}}function ex(e,t,r,n,i,o,s){let a=t%2?2:1;ev(e,i,o,n,a);ey(e,i,o,n,a);eb(i,o,n,a);ew(e,i,o,t,r,n,s)}function eS(e,t,r){if(!e)return[new eg(0,0,t==ea?1:0)];if(t==es&&!r.length&&!ep.test(e))return e_(e.length);if(r.length)while(e.length>eO.length)eO[eO.length]=256;let n=[],i=t==es?0:1;ex(e,i,i,r,0,e.length,n);return n}function e_(e){return[new eg(0,e,0)]}let ek="";function eQ(e,t,r,i,o){var s;let a=i.head-e.from;let l=eg.find(t,a,null!=(s=i.bidiLevel)?s:-1,i.assoc);let u=t[l],f=u.side(o,r);if(a==f){let e=l+=o?1:-1;if(e<0||e>=t.length)return null;u=t[l=e];a=u.side(!o,r);f=u.side(o,r)}let c=n.findClusterBreak(e.text,a,u.forward(o,r));if(c<u.from||c>u.to)c=f;ek=e.text.slice(Math.min(a,c),Math.max(a,c));let h=l==(o?t.length-1:0)?null:t[l+(o?1:-1)];if(h&&c==f&&h.level+(o?0:1)<u.level)return n.EditorSelection.cursor(h.side(!o,r)+e.from,h.forward(o,r)?1:-1,h.level);return n.EditorSelection.cursor(c+e.from,u.forward(o,r)?-1:1,u.level)}function eP(e,t,r){for(let n=t;n<r;n++){let t=ed(e.charCodeAt(n));if(1==t)break;
11if(2==t||4==t)return ea}return es}const eT=n.Facet.define();const eA=n.Facet.define();const e$=n.Facet.define();const ej=n.Facet.define();const eC=n.Facet.define();const eE=n.Facet.define();const eM=n.Facet.define();const eR=n.Facet.define();const eD=n.Facet.define();const eL=n.Facet.define({combine:e=>e.some(e=>e)});const eZ=n.Facet.define({combine:e=>e.some(e=>e)});const eX=n.Facet.define();class eq{constructor(e,t="nearest",r="nearest",n=5,i=5,o=false){this.range=e;this.y=t;this.x=r;this.yMargin=n;this.xMargin=i;this.isSnapshot=o}map(e){return e.empty?this:new eq(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new eq(n.EditorSelection.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const eB=n.StateEffect.define({map:(e,t)=>e.map(t)});const ez=n.StateEffect.define();function eI(e,t,r){let n=e.facet(ej);if(n.length)n[0](t);else if(window.onerror&&window.onerror(String(t),r,void 0,void 0,t));else if(r)console.error(r+":",t);else console.error(t)}const eN=n.Facet.define({combine:e=>e.length?e[0]:true});let eV=0;const eW=n.Facet.define({combine(e){return e.filter((t,r)=>{for(let n=0;n<r;n++)if(e[n].plugin==t.plugin)return false;return true})}});class eY{constructor(e,t,r,n,i){this.id=e;this.create=t;this.domEventHandlers=r;this.domEventObservers=n;this.baseExtensions=i(this);this.extension=this.baseExtensions.concat(eW.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(eW.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:r,eventObservers:n,provide:i,decorations:o}=t||{};return new eY(eV++,e,r,n,e=>{let t=[];if(o)t.push(eH.of(t=>{let r=t.plugin(e);return r?o(r):Q.none}));if(i)t.push(i(e));return t})}static fromClass(e,t){return eY.define((t,r)=>new e(t,r),t)}}class eU{constructor(e){this.spec=e;this.mustUpdate=null;this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;this.mustUpdate=null;if(this.value.update)try{this.value.update(e)}catch(t){eI(e.state,t,"CodeMirror plugin crashed");if(this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){eI(e.state,t,"CodeMirror plugin crashed");this.deactivate()}return this}destroy(e){var t;if(null==(t=this.value)?void 0:t.destroy)try{this.value.destroy()}catch(t){eI(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const eG=n.Facet.define();const eF=n.Facet.define();const eH=n.Facet.define();const eK=n.Facet.define();const eJ=n.Facet.define();const e0=n.Facet.define();const e1=n.Facet.define();function e2(e,t){let r=e.state.facet(e1);if(!r.length)return r;let i=r.map(t=>t instanceof Function?t(e):t);let o=[];n.RangeSet.spans(i,t.from,t.to,{point(){},span(e,r,n,i){let s=e-t.from,a=r-t.from;let l=o;for(let e=n.length-1;e>=0;e--,i--){let r=n[e].spec.bidiIsolate,o;if(null==r)r=eP(t.text,s,a);if(i>0&&l.length&&(o=l[l.length-1]).to==s&&o.direction==r){o.to=a;l=o.inner}else{let e={from:s,to:a,direction:r,inner:[]};l.push(e);l=e.inner}}}});return o}const e5=n.Facet.define();function e3(e){let t=0,r=0,n=0,i=0;for(let o of e.state.facet(e5)){let s=o(e);if(s){if(null!=s.left)t=Math.max(t,s.left);if(null!=s.right)r=Math.max(r,s.right);if(null!=s.top)n=Math.max(n,s.top);if(null!=s.bottom)i=Math.max(i,s.bottom)}}return{left:t,right:r,top:n,bottom:i}}const e4=n.Facet.define();class e8{constructor(e,t,r,n){this.fromA=e;this.toA=t;this.fromB=r;this.toB=n}join(e){return new e8(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,r=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>r.toA)){if(n.toA<r.fromA)break;r=r.join(n);e.splice(t-1,1)}}e.splice(t,0,r);return e}static extendWithRanges(e,t){if(0==t.length)return e;let r=[];for(let n=0,i=0,o=0;;){let s=n<e.length?e[n].fromB:1e9;let a=i<t.length?t[i]:1e9;let l=Math.min(s,a);if(1e9==l)break;let u=l+o,f=l,c=u;for(;;)if(i<t.length&&t[i]<=f){let r=t[i+1];i+=2;f=Math.max(f,r);for(let t=n;t<e.length&&e[t].fromB<=f;t++)o=e[t].toA-e[t].toB;c=Math.max(c,r+o)}else if(n<e.length&&e[n].fromB<=f){let t=e[n++];f=Math.max(f,t.toB);c=Math.max(c,t.toA);o=t.toA-t.toB}else break;r.push(new e8(u,c,l,f))}return r}}class e6{constructor(e,t,r){this.view=e;this.state=t;this.transactions=r;this.flags=0;this.startState=e.state;this.changes=n.ChangeSet.empty(this.startState.doc.length);for(let e of r)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges((e,t,r,n)=>i.push(new e8(e,t,r,n)));this.changedRanges=i}static create(e,t,r){return new e6(e,t,r)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}const e7=[];class e9{constructor(e,t,r=0){this.dom=e;this.length=t;this.flags=r;this.parent=null;e.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return e7}isWidget(){return false}get isHidden(){return false}isComposite(){return false}isLine(){return false}isText(){return false}isBlock(){return false}get domAttrs(){return null}sync(e){this.flags|=2;if(4&this.flags){this.flags&=-5;let e=this.domAttrs;if(e)x(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e;e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let r=t;for(let t of this.children){if(t==e)return r;r+=t.length+t.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return true}coordsIn(e,t){return null}domPosFor(e,t){let r=X(this.dom);let n=this.length?e>0:t>0;return new eo(this.parent.dom,r+(n?1:0),0==e||e==this.length)}markDirty(e){this.flags&=-3;if(e)this.flags|=4;if(this.parent&&2&this.parent.flags)this.parent.markDirty(false)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof tr)return e;return null}static get(e){return e.cmTile}}class te extends e9{constructor(e){super(e,0);this._children=[]}isComposite(){return true}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e);e.parent=this}sync(e){if(2&this.flags)return;super.sync(e);let t=this.dom,r=null,n;let i=(null==e?void 0:e.node)==t?e:null;let o=0;for(let s of this.children){s.sync(e);o+=s.length+s.breakAfter;n=r?r.nextSibling:t.firstChild;if(i&&n!=s.dom)i.written=true;if(s.dom.parentNode==t)while(n&&n!=s.dom)n=tt(n);else t.insertBefore(s.dom,n);r=s.dom}n=r?r.nextSibling:t.firstChild;if(i&&n)i.written=true;while(n)n=tt(n);this.length=o}}function tt(e){let t=e.nextSibling;e.parentNode.removeChild(e);return t}class tr extends te{constructor(e,t){super(t);this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return true;return false}isBlock(){return true}nearest(e){for(;;){if(!e)return null;let t=e9.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],r=this,n=0,i=0;;)if(n==r.children.length){if(!t.length)return;r=r.parent;if(r.breakAfter)i++;n=t.pop()}else{let o=r.children[n++];if(o instanceof tn){t.push(n);r=o;n=0}else{let t=i+o.length;let r=e(o,i);if(void 0!==r)return r;i=t+o.breakAfter}}}resolveBlock(e,t){let r,n=-1,i,o=-1;this.blockTiles((s,a)=>{let l=a+s.length;if(e>=a&&e<=l){if(s.isWidget()&&t>=-1&&t<=1){if(32&s.flags)return true;if(16&s.flags)r=void 0}if((a<e||e==l&&(t<-1?s.length:s.covers(1)))&&(!r||!s.isWidget()&&r.isWidget())){r=s;n=e-a}if((l>e||e==a&&(t>1?s.length:s.covers(-1)))&&(!i||!s.isWidget()&&i.isWidget())){i=s;o=e-a}}});if(!r&&!i)throw new Error("No tile at position "+e);return r&&t<0||!i?{tile:r,offset:n}:{tile:i,offset:o}}}class tn extends te{constructor(e,t){super(e);this.wrapper=t}isBlock(){return true}covers(e){if(!this.children.length)return false;return e<0?this.children[0].covers(-1):this.lastChild.covers(1)}get domAttrs(){return this.wrapper.attributes}static of(e,t){let r=new tn(t||document.createElement(e.tagName),e);if(!t)r.flags|=4;return r}}class ti extends te{constructor(e,t){super(e);this.attrs=t}isLine(){return true}static start(e,t,r){let n=new ti(t||document.createElement("div"),e);if(!t||!r)n.flags|=4;return n}get domAttrs(){return this.attrs}resolveInline(e,t,r){let n=null,i=-1,o=null,s=-1;function a(e,l){for(let u=0,f=0;u<e.children.length&&f<=l;u++){let c=e.children[u],h=f+c.length;if(h>=l){if(c.isComposite())a(c,l-f);else if((!o||o.isHidden&&(t>0||r&&ts(o,c)))&&(h>l||32&c.flags)){o=c;s=l-f}else if(f<l||16&c.flags&&!c.isHidden){n=c;i=l-f}}f=h}}a(this,e);let l=(t<0?n:o)||n||o;return l?{tile:l,offset:l==n?i:s}:null}coordsIn(e,t){let r=this.resolveInline(e,t,true);if(!r)return to(this);return r.tile.coordsIn(Math.max(0,r.offset),t)}domIn(e,t){let r=this.resolveInline(e,t);if(r){let{tile:e,offset:n}=r;if(this.dom.contains(e.dom)){if(e.isText())return new eo(e.dom,Math.min(e.dom.nodeValue.length,n));return e.domPosFor(n,16&e.flags?1:32&e.flags?-1:t)}let i=r.tile.parent,o=false;for(let e of i.children){if(o)return new eo(e.dom,0);if(e==r.tile)o=true}}return new eo(this.dom,0)}}function to(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let r=L(t);return r[r.length-1]||null}function ts(e,t){let r=e.coordsIn(0,1),n=t.coordsIn(0,1);return r&&n&&n.top<r.bottom}class ta extends te{constructor(e,t){super(e);this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let r=new ta(t||document.createElement(e.tagName),e);if(!t)r.flags|=4;return r}}class tl extends e9{constructor(e,t){super(e,t.length);this.text=t}sync(e){if(2&this.flags)return;super.sync(e);if(this.dom.nodeValue!=this.text){if(e&&e.node==this.dom)e.written=true;this.dom.nodeValue=this.text}}isText(){return true}toString(){return JSON.stringify(this.text)}coordsIn(e,t){let r=this.dom.nodeValue.length;if(e>r)e=r;let n=e,i=e,o=0;if(0==e&&t<0||e==r&&t>=0){if(!(v.chrome||v.gecko)){if(e){n--;o=1}else if(i<r){i++;o=-1}}}else if(t<0)n--;else if(i<r)i++;let s=K(this.dom,n,i).getClientRects();if(!s.length)return null;let a=s[(o?o<0:t>=0)?0:s.length-1];if(v.safari&&!o&&0==a.width)a=Array.prototype.find.call(s,e=>e.width)||a;return o?I(a,o<0):a||null}static of(e,t){let r=new tl(t||document.createTextNode(e),e);if(!t)r.flags|=2;return r}}class tu extends e9{constructor(e,t,r,n){super(e,t,n);this.widget=r}isWidget(){return true}get isHidden(){return this.widget.isHidden}covers(e){if(48&this.flags)return false;return(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,false)}coordsInWidget(e,t,r){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;if(r)return I(this.dom.getBoundingClientRect(),this.length?0==e:t<=0);{let t=this.dom.getClientRects(),r=null;if(!t.length)return null;let n=16&this.flags?true:32&this.flags?false:e>0;for(let i=n?t.length-1:0;;i+=n?-1:1){r=t[i];if(e>0?0==i:i==t.length-1||r.top<r.bottom)break}return I(r,!n)}}get overrideDOMText(){if(!this.length)return n.Text.empty;let{root:e}=this;if(!e)return n.Text.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy();this.widget.destroy(this.dom)}static of(e,t,r,n,i){if(!i){i=e.toDOM(t);if(!e.editable)i.contentEditable="false"}return new tu(i,r,e,n)}}class tf extends e9{constructor(e){let t=document.createElement("img");
11t.className="cm-widgetBuffer";t.setAttribute("aria-hidden","true");super(t,0,e)}get isHidden(){return true}get overrideDOMText(){return n.Text.empty}coordsIn(e){return this.dom.getBoundingClientRect()}}class tc{constructor(e){this.index=0;this.beforeBreak=false;this.parents=[];this.tile=e}advance(e,t,r){let{tile:n,index:i,beforeBreak:o,parents:s}=this;while(e||t>0)if(n.isComposite())if(o){if(!e)break;if(r)r.break();e--;o=false}else if(i==n.children.length){if(!e&&!s.length)break;if(r)r.leave(n);o=!!n.breakAfter;({tile:n,index:i}=s.pop());i++}else{let a=n.children[i],l=a.breakAfter;if((t>0?a.length<=e:a.length<e)&&(!r||false!==r.skip(a,0,a.length)||!a.isComposite)){o=!!l;i++;e-=a.length}else{s.push({tile:n,index:i});n=a;i=0;if(r&&a.isComposite())r.enter(a)}}else if(i==n.length){o=!!n.breakAfter;({tile:n,index:i}=s.pop());i++}else if(e){let t=Math.min(e,n.length-i);if(r)r.skip(n,i,i+t);e-=t;i+=t}else break;this.tile=n;this.index=i;this.beforeBreak=o;return this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class th{constructor(e,t,r,n){this.from=e;this.to=t;this.wrapper=r;this.rank=n}}class td{constructor(e,t,r){this.cache=e;this.root=t;this.blockWrappers=r;this.curLine=null;this.lastBlock=null;this.afterWidget=null;this.pos=0;this.wrappers=[];this.wrapperPos=0}addText(e,t,r,n){var i;this.flushBuffer();let o=this.ensureMarks(t,r);let s=o.lastChild;if(s&&s.isText()&&!(8&s.flags)&&s.length+e.length<512){this.cache.reused.set(s,2);let t=o.children[o.children.length-1]=new tl(s.dom,s.text+e);t.parent=o}else o.append(n||tl.of(e,null==(i=this.cache.find(tl))?void 0:i.dom));this.pos+=e.length;this.afterWidget=null}addComposition(e,t){let r=this.curLine;if(r.dom!=t.line.dom){r.setDOM(this.cache.reused.has(t.line)?tS(t.line.dom):t.line.dom);this.cache.reused.set(t.line,2)}let n=r;for(let e=t.marks.length-1;e>=0;e--){let r=t.marks[e];let i=n.lastChild;if(i instanceof ta&&i.mark.eq(r.mark)){if(i.dom!=r.dom)i.setDOM(tS(r.dom));n=i}else{if(this.cache.reused.get(r)){let e=e9.get(r.dom);if(e)e.setDOM(tS(r.dom))}let e=ta.of(r.mark,r.dom);n.append(e);n=e}this.cache.reused.set(r,2)}let i=e9.get(e.text);if(i)this.cache.reused.set(i,2);let o=new tl(e.text,e.text.nodeValue);o.flags|=8;n.append(o)}addInlineWidget(e,t,r){let n=this.afterWidget&&48&e.flags&&(48&this.afterWidget.flags)==(48&e.flags);if(!n)this.flushBuffer();let i=this.ensureMarks(t,r);if(!n&&!(16&e.flags))i.append(this.getBuffer(1));i.append(e);this.pos+=e.length;this.afterWidget=e}addMark(e,t,r){this.flushBuffer();let n=this.ensureMarks(t,r);n.append(e);this.pos+=e.length;this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e);this.pos+=e.length;this.lastBlock=e;this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e;this.pos+=e}addLineStart(e,t){var r;if(!e)e=tb;let n=ti.start(e,t||(null==(r=this.cache.find(ti))?void 0:r.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=n)}addLine(e){this.getBlockPos().append(e);this.pos+=e.length;this.lastBlock=e;this.endLine()}addBreak(){this.lastBlock.flags|=1;this.endLine();this.pos++}addLineStartIfNotCovered(e){if(!this.blockPosCovered())this.addLineStart(e)}ensureLine(e){if(!this.curLine)this.addLineStart(e)}ensureMarks(e,t){var r;let n=this.curLine;for(let i=e.length-1;i>=0;i--){let o=e[i],s;if(t>0&&(s=n.lastChild)&&s instanceof ta&&s.mark.eq(o)){n=s;t--}else{let e=ta.of(o,null==(r=this.cache.find(ta,e=>e.mark.eq(o)))?void 0:r.dom);n.append(e);n=e;t=0}}return n}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;if(!e||!tv(this.curLine,false)||"BR"!=e.dom.nodeName&&e.isWidget()&&!(v.ios&&tv(this.curLine,true)))this.curLine.append(this.cache.findWidget(tk,0,32)||new tu(tk.toDOM(),0,tk,32));this.curLine=this.afterWidget=null}}updateBlockWrappers(){if(this.wrapperPos>this.pos+1e4){this.blockWrappers.goto(this.pos);this.wrappers.length=0}for(let e=this.wrappers.length-1;e>=0;e--)if(this.wrappers[e].to<this.pos)this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=new th(e.from,e.to,e.value,e.rank),r=this.wrappers.length;while(r>0&&(this.wrappers[r-1].rank-t.rank||this.wrappers[r-1].to-t.to)<0)r--;this.wrappers.splice(r,0,t)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let r of this.wrappers){let n=t.lastChild;if(r.from<this.pos&&n instanceof tn&&n.wrapper.eq(r.wrapper))t=n;else{let n=tn.of(r.wrapper,null==(e=this.cache.find(tn,e=>e.wrapper.eq(r.wrapper)))?void 0:e.dom);t.append(n);
11t=n}}return t}blockPosCovered(){let e=this.lastBlock;return null!=e&&!e.breakAfter&&(!e.isWidget()||(160&e.flags)>0)}getBuffer(e){let t=2|(e<0?16:32);let r=this.cache.find(tf,void 0,1);if(r)r.flags=t;return r||new tf(t)}flushBuffer(){if(this.afterWidget&&!(32&this.afterWidget.flags)){this.afterWidget.parent.append(this.getBuffer(-1));this.afterWidget=null}}}class tp{constructor(e){this.skipCount=0;this.text="";this.textOff=0;this.cursor=e.iter()}skip(e){if(this.textOff+e<=this.text.length)this.textOff+=e;else{this.skipCount+=e-(this.text.length-this.textOff);this.text="";this.textOff=0}}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:r,done:n}=this.cursor.next(this.skipCount);this.skipCount=0;if(n)throw new Error("Ran out of text content when drawing inline views");this.text=t;let i=this.textOff=Math.min(e,t.length);return r?null:t.slice(0,i)}let t=Math.min(this.text.length,this.textOff+e);let r=this.text.slice(this.textOff,t);this.textOff=t;return r}}const tg=[tu,ti,tl,ta,tf,tn,tr];for(let e=0;e<tg.length;e++)tg[e].bucket=e;class tm{constructor(e){this.view=e;this.buckets=tg.map(()=>[]);this.index=tg.map(()=>0);this.reused=new Map}add(e){let t=e.constructor.bucket,r=this.buckets[t];if(r.length<6)r.push(e);else r[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,r=2){let n=e.bucket;let i=this.buckets[n],o=this.index[n];for(let e=i.length-1;e>=0;e--){let s=(e+o)%i.length,a=i[s];if((!t||t(a))&&!this.reused.has(a)){i.splice(s,1);if(s<o)this.index[n]--;this.reused.set(a,r);return a}}return null}findWidget(e,t,r){let n=this.buckets[0];if(n.length)for(let i=0,o=0;;i++){if(i==n.length){if(o)return null;o=1;i=0}let s=n[i];if(!this.reused.has(s)&&(0==o?s.widget.compare(e):s.widget.constructor==e.constructor&&e.updateDOM(s.dom,this.view))){n.splice(i,1);if(i<this.index[0])this.index[0]--;if(s.widget==e&&s.length==t&&(497&s.flags)==r){this.reused.set(s,1);return s}this.reused.set(s,2);return new tu(s.dom,t,e,-498&s.flags|r)}}}reuse(e){this.reused.set(e,1);return e}maybeReuse(e,t=2){if(this.reused.has(e))return;this.reused.set(e,t);return e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class tO{constructor(e,t,r,i,o){this.view=e;this.decorations=i;this.disallowBlockEffectsFor=o;this.openWidget=false;this.openMarks=0;this.cache=new tm(e);this.text=new tp(e.state.doc);this.builder=new td(this.cache,new tr(e,e.contentDOM),n.RangeSet.iter(r));this.cache.reused.set(t,2);this.old=new tc(t);this.reuseWalker={skip:(e,t,r)=>{this.cache.add(e);if(e.isComposite())return false},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let r=t&&this.getCompositionContext(t.text);for(let n=0,i=0,o=0;;){let s=o<e.length?e[o++]:null;let a=s?s.fromA:this.old.root.length;if(a>n){let e=a-n;this.preserve(e,!o,!s);n=a;i+=e}if(!s)break;if(t&&s.fromA<=t.range.fromA&&s.toA>=t.range.toA){this.forward(s.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1);this.emit(i,t.range.fromB);this.cache.clear();this.builder.addComposition(t,r);this.text.skip(t.range.toB-t.range.fromB);this.forward(t.range.fromA,s.toA);this.emit(t.range.toB,s.toB)}else{this.forward(s.fromA,s.toA);this.emit(i,s.toB)}i=s.toB;n=s.toA}if(this.builder.curLine)this.builder.endLine();return this.builder.root}preserve(e,t,r){let n=tx(this.old),i=this.openMarks;this.old.advance(e,r?1:-1,{skip:(e,t,r)=>{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(r-t);else{let o=r>0||t<e.length?tu.of(e.widget,this.view,r-t,496&e.flags,this.cache.maybeReuse(e)):this.cache.reuse(e);if(256&o.flags){o.flags&=-2;this.builder.addBlockWidget(o)}else{this.builder.ensureLine(null);this.builder.addInlineWidget(o,n,i);i=n.length}}else if(e.isText()){this.builder.ensureLine(null);if(t||r!=e.length){this.cache.add(e);this.builder.addText(e.text.slice(t,r),n,i)}else this.builder.addText(e.text,n,i,this.cache.reuse(e));i=n.length}else if(e.isLine()){e.flags&=-2;this.cache.reused.set(e,1);this.builder.addLine(e)}else if(e instanceof tf)this.cache.add(e);else{if(!(e instanceof ta))return false;this.builder.ensureLine(null);this.builder.addMark(e,n,i);this.cache.reused.set(e,1);i=n.length}this.openWidget=false}
11,enter:e=>{if(e.isLine())this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e));else{this.cache.add(e);if(e instanceof ta)n.unshift(e.mark)}this.openWidget=false},leave:e=>{if(e.isLine()){if(n.length)n.length=i=0}else if(e instanceof ta){n.shift();i=Math.min(i,n.length)}},break:()=>{this.builder.addBreak();this.openWidget=false}});this.text.skip(e)}emit(e,t){let r=null;let i=this.builder,o=0;let s=n.RangeSet.spans(this.decorations,e,t,{point:(e,t,n,s,a,l)=>{if(n instanceof A){if(this.disallowBlockEffectsFor[l]){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.view.state.doc.lineAt(e).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}o=s.length;if(a>s.length)i.continueWidget(t-e);else{let o=n.widget||(n.block?t_.block:t_.inline);let l=ty(n);let u=this.cache.findWidget(o,t-e,l)||tu.of(o,this.view,t-e,l);if(n.block){if(n.startSide>0)i.addLineStartIfNotCovered(r);i.addBlockWidget(u)}else{i.ensureLine(r);i.addInlineWidget(u,s,a)}}r=null}else r=tw(r,n);if(t>e)this.text.skip(t-e)},span:(e,t,n,o)=>{for(let s=e;s<t;){let a=this.text.next(Math.min(512,t-s));if(null==a){i.addLineStartIfNotCovered(r);i.addBreak();s++}else{i.ensureLine(r);i.addText(a,n,s==e?o:n.length);s+=a.length}r=null}}});i.addLineStartIfNotCovered(r);this.openWidget=s>o;this.openMarks=s}forward(e,t,r=1){if(t-e<=10)this.old.advance(t-e,r,this.reuseWalker);else{this.old.advance(5,-1,this.reuseWalker);this.old.advance(t-e-10,-1);this.old.advance(5,r,this.reuseWalker)}}getCompositionContext(e){let t=[],r=null;for(let n=e.parentNode;;n=n.parentNode){let e=e9.get(n);if(n==this.view.contentDOM)break;if(e instanceof ta)t.push(e);else if(null==e?void 0:e.isLine())r=e;else if("DIV"!=n.nodeName||r||n==this.view.contentDOM)t.push(ta.of(new P({tagName:n.nodeName.toLowerCase(),attributes:_(n)}),n));else r=new ti(n,tb)}return{line:r,marks:t}}}function tv(e,t){let r=e=>{for(let n of e.children)if((t?n.isText():n.length)||r(n))return true;return false};return r(e)}function ty(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;if(e.block)t|=256;return t}const tb={class:"cm-line"};function tw(e,t){let r=t.spec.attributes,n=t.spec.class;if(!r&&!n)return e;if(!e)e={class:"cm-line"};if(r)y(r,e);if(n)e.class+=" "+n;return e}function tx(e){let t=[];for(let r=e.parents.length;r>1;r--){let n=r==e.parents.length?e.tile:e.parents[r].tile;if(n instanceof ta)t.push(n.mark)}return t}function tS(e){let t=e9.get(e);if(t)t.setDOM(e.cloneNode());return e}class t_ extends k{constructor(e){super();this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return true}}t_.inline=new t_("span");t_.block=new t_("div");const tk=new class extends k{toDOM(){return document.createElement("br")}get isHidden(){return true}get editable(){return true}};class tQ{constructor(e){this.view=e;this.decorations=[];this.blockWrappers=[];this.dynamicDecorationMap=[false];this.domChanged=null;this.hasComposition=null;this.editContextFormatting=Q.none;this.lastCompositionAfterCursor=false;this.minWidth=0;this.minWidthFrom=0;this.minWidthTo=0;this.impreciseAnchor=null;this.impreciseHead=null;this.forceSelection=false;this.lastUpdate=Date.now();this.updateDeco();this.tile=new tr(e,e.contentDOM);this.updateInner([new e8(0,0,0,e.state.doc.length)],null)}update(e){var t;let r=e.changedRanges;if(this.minWidth>0&&r.length)if(r.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)){this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1);this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)}else this.minWidth=this.minWidthFrom=this.minWidthTo=0;this.updateEditContextFormatting(e);let n=-1;if(this.view.inputState.composing>=0&&!this.view.observer.editContext){if(null==(t=this.domChanged)?void 0:t.newSel)n=this.domChanged.newSel.head;else if(!tL(e.changes,this.hasComposition)&&!e.selectionSet)n=e.state.selection.main.head}let i=n>-1?t$(this.view,e.changes,n):null;this.domChanged=null;if(this.hasComposition){let{from:t,to:n}=this.hasComposition;r=new e8(t,n,e.changes.mapPos(t,-1),e.changes.mapPos(n,1)).addToSet(r.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null;if((v.ie||v.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines)this.forceSelection=true;let o=this.decorations,s=this.blockWrappers;this.updateDeco();let a=tE(o,this.decorations,e.changes);if(a.length)r=e8.extendWithRanges(r,a);let l=tR(s,this.blockWrappers,e.changes);if(l.length)r=e8.extendWithRanges(r,l);if(i&&!r.some(e=>e.fromA<=i.range.fromA&&e.toA>=i.range.toA))r=i.range.addToSet(r.slice());if(2&this.tile.flags&&0==r.length)return false;this.updateInner(r,i);if(e.transactions.length)this.lastUpdate=Date.now();return true}updateInner(e,t){this.view.viewState.mustMeasureContent=true;let{observer:r}=this.view;r.ignore(()=>{if(t||e.length){let r=this.tile;let n=new tO(this.view,r,this.blockWrappers,this.decorations,this.dynamicDecorationMap);this.tile=n.run(e,t);tP(r,n.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px";this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let n=v.chrome||v.ios?{node:r.selectionRange.focusNode,written:false}:void 0;this.tile.sync(n);if(n&&(n.written||r.selectionRange.focusNode!=n.node||!this.tile.dom.contains(n.node)))this.forceSelection=true;this.tile.dom.style.height=""});let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length){for(let e of this.tile.children)if(e.isWidget()&&e.widget instanceof tZ)n.push(e.dom)}r.updateGaps(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let e of t.effects)if(e.is(ez))this.editContextFormatting=e.value}updateSelection(e=false,t=false){if(e||!this.view.observer.selectionRange.focusNode)this.view.observer.readSelectionRange();let{dom:r}=this.tile;let n=this.view.root.activeElement,i=n==r;let o=!i&&!(this.view.state.facet(eN)||r.tabIndex>-1)&&D(r,this.view.observer.selectionRange)&&!(n&&r.contains(n));if(!(i||t||o))return;let s=this.forceSelection;this.forceSelection=false;let a=this.view.state.selection.main,l,u;
11if(a.empty)u=l=this.inlineDOMNearPos(a.anchor,a.assoc||1);else{u=this.inlineDOMNearPos(a.head,a.head==a.from?1:-1);l=this.inlineDOMNearPos(a.anchor,a.anchor==a.from?1:-1)}if(v.gecko&&a.empty&&!this.hasComposition&&tT(l)){let e=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(e,l.node.childNodes[l.offset]||null));l=u=new eo(e,0);s=true}let f=this.view.observer.selectionRange;if(s||!f.focusNode||(!Z(l.node,l.offset,f.anchorNode,f.anchorOffset)||!Z(u.node,u.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,a)){this.view.observer.ignore(()=>{if(v.android&&v.chrome&&r.contains(f.focusNode)&&tD(f.focusNode,r)){r.blur();r.focus({preventScroll:true})}let e=M(this.view.root);if(e)if(a.empty){if(v.gecko){let e=tj(l.node,l.offset);if(e&&3!=e){let t=(1==e?en:ei)(l.node,l.offset);if(t)l=new eo(t.node,t.offset)}}e.collapse(l.node,l.offset);if(null!=a.bidiLevel&&void 0!==e.caretBidiLevel)e.caretBidiLevel=a.bidiLevel}else if(e.extend){e.collapse(l.node,l.offset);try{e.extend(u.node,u.offset)}catch(e){}}else{let t=document.createRange();if(a.anchor>a.head)[l,u]=[u,l];t.setEnd(u.node,u.offset);t.setStart(l.node,l.offset);e.removeAllRanges();e.addRange(t)}
11if(o&&this.view.root.activeElement==r){r.blur();if(n)n.focus()}});this.view.observer.setSelectionRange(l,u)}this.impreciseAnchor=l.precise?null:new eo(f.anchorNode,f.anchorOffset);this.impreciseHead=u.precise?null:new eo(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Z(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main;let r=M(e.root);let{anchorNode:n,anchorOffset:i}=e.observer.selectionRange;if(!r||!t.empty||!t.assoc||!r.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let s=o.posAtStart;if(t.head==s||t.head==s+o.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc,t.assoc);r.collapse(u.node,u.offset);r.modify("move",t.assoc<0?"forward":"backward","lineboundary");e.observer.readSelectionRange();let f=e.observer.selectionRange;if(e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from)r.collapse(n,i)}posFromDOM(e,t){let r=this.tile.nearest(e);if(!r)return 2&this.tile.dom.compareDocumentPosition(e)?0:this.view.state.doc.length;let n=r.posAtStart;if(r.isComposite()){let i;if(e==r.dom)i=r.dom.childNodes[t];else{let n=0==z(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==r.dom)break;if(0==n&&t.firstChild!=t.lastChild)n=e==t.firstChild?-1:1;e=t}i=n<0?e:e.nextSibling}if(i==r.dom.firstChild)return n;while(i&&!e9.get(i))i=i.nextSibling;if(!i)return n+r.length;for(let e=0,t=n;;e++){let n=r.children[e];if(n.dom==i)return t;t+=n.length+n.breakAfter}}else if(r.isText())return e==r.dom?n+t:n+(t?r.length:0);else return n}domAtPos(e,t){let{tile:r,offset:n}=this.tile.resolveBlock(e,t);if(r.isWidget())return r.domPosFor(e,t);return r.domIn(n,t)}inlineDOMNearPos(e,t){let r,n=-1,i=false;let o,s=-1,a=false;this.tile.blockTiles((t,l)=>{if(t.isWidget()){if(32&t.flags&&l>=e)return true;if(16&t.flags)i=true}else{let u=l+t.length;if(l<=e){r=t;n=e-l;i=u<e}if(u>=e&&!o){o=t;s=e-l;a=l>e}if(l>e&&o)return true}});if(!r&&!o)return this.domAtPos(e,t);if(i&&o)r=null;else if(a&&r)o=null;return r&&t<0||!o?r.domIn(n,t):o.domIn(s,t)}coordsAt(e,t){let{tile:r,offset:n}=this.tile.resolveBlock(e,t);if(r.isWidget()){if(r.widget instanceof tZ)return null;return r.coordsInWidget(n,t,true)}return r.coordsIn(n,t)}lineAt(e,t){let{tile:r}=this.tile.resolveBlock(e,t);return r.isLine()?r:null}coordsForChar(e){let{tile:t,offset:r}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function i(e,t){if(e.isComposite())for(let r of e.children){if(r.length>=t){let e=i(r,t);if(e)return e}t-=r.length;if(t<0)break}else if(e.isText()&&t<e.length){let r=n.findClusterBreak(e.text,t);if(r==t)return null;let i=K(e.dom,t,r).getClientRects();for(let e=0;e<i.length;e++){let t=i[e];if(e==i.length-1||t.top<t.bottom&&t.left<t.right)return t}}return null}return i(t,r)}measureVisibleLineHeights(e){let r=[],{from:n,to:i}=e;let o=this.view.contentDOM.clientWidth;let s=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1;let a=-1,l=this.view.textDirection==t.Direction.LTR;let u=0;let f=(e,t,c)=>{for(let h=0;h<e.children.length;h++){if(t>i)break;let d=e.children[h],p=t+d.length;let g=d.dom.getBoundingClientRect(),{height:m}=g;if(c&&!h)u+=g.top-c.top;if(d instanceof tn){if(p>n)f(d,t,g)}else if(t>=n){if(u>0)r.push(-u);r.push(m+u);u=0;if(s){let e=d.dom.lastChild;let r=e?L(e):[];if(r.length){let e=r[r.length-1];let n=l?e.right-g.left:g.right-e.left;if(n>a){a=n;this.minWidth=o;this.minWidthFrom=t;this.minWidthTo=p}}}}if(c&&h==e.children.length-1)u+=c.bottom-g.bottom;t=p+d.breakAfter}};f(this.tile,0,null);return r}textDirectionAt(e){let{tile:r}=this.tile.resolveBlock(e,1);return"rtl"==getComputedStyle(r.dom).direction?t.Direction.RTL:t.Direction.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t=0,r;for(let n of e.children){if(!n.isText()||/[^ -~]/.test(n.text))return;let e=L(n.dom);if(1!=e.length)return;t+=e[0].width;r=e[0].height}if(t)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:t/e.length,textHeight:r}}});if(e)return e;let t=document.createElement("div"),r,n,i;
11t.className="cm-line";t.style.width="99999px";t.style.position="absolute";t.textContent="abc def ghi jkl mno pqr stu";this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let e=L(t.firstChild)[0];r=t.getBoundingClientRect().height;n=e&&e.width?e.width/27:7;i=e&&e.height?e.height:r;t.remove()});return{lineHeight:r,charWidth:n,textHeight:i}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let r=0,n=0;;n++){let i=n==t.viewports.length?null:t.viewports[n];let o=i?i.from-1:this.view.state.doc.length;if(o>r){let n=(t.lineBlockAt(o).bottom-t.lineBlockAt(r).top)/this.view.scaleY;e.push(Q.replace({widget:new tZ(n),block:true,inclusive:true,isBlockGap:true}).range(r,o))}if(!i)break;r=i.to+1}return Q.set(e)}updateDeco(){let e=1;let t=this.view.state.facet(eH).map(t=>{let r=this.dynamicDecorationMap[e++]="function"==typeof t;return r?t(this.view):t});let r=false,i=this.view.state.facet(eJ).map((e,t)=>{let n="function"==typeof e;if(n)r=true;return n?e(this.view):e});if(i.length){this.dynamicDecorationMap[e++]=r;t.push(n.RangeSet.join(i))}this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];while(e<this.decorations.length)this.dynamicDecorationMap[e++]=false;this.blockWrappers=this.view.state.facet(eK).map(e=>"function"==typeof e?e(this.view):e)}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=t.top-e.yMargin;this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let t of this.view.state.facet(eX))try{if(t(this.view,e.range,e))return true}catch(e){eI(this.view.state,e,"scroll handler")}let{range:r}=e;let n=this.coordsAt(r.head,r.empty?r.assoc:r.head>r.anchor?-1:1),i;if(!n)return;if(!r.empty&&(i=this.coordsAt(r.anchor,r.anchor>r.head?-1:1)))n={left:Math.min(n.left,i.left),top:Math.min(n.top,i.top),right:Math.max(n.right,i.right),bottom:Math.max(n.bottom,i.bottom)};let o=e3(this.view);let s={left:n.left-o.left,top:n.top-o.top,right:n.right+o.right,bottom:n.bottom+o.bottom};let{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;W(this.view.scrollDOM,s,r.head<r.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==t.Direction.LTR)}lineHasWidget(e){let t=e=>e.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){tP(this.tile)}}function tP(e,t){let r=null==t?void 0:t.get(e);if(1!=r){if(null==r)e.destroy();for(let r of e.children)tP(r,t)}}function tT(e){return 1==e.node.nodeType&&e.node.firstChild&&(0==e.offset||"false"==e.node.childNodes[e.offset-1].contentEditable)&&(e.offset==e.node.childNodes.length||"false"==e.node.childNodes[e.offset].contentEditable)}function tA(e,t){let r=e.observer.selectionRange;if(!r.focusNode)return null;let n=en(r.focusNode,r.focusOffset);let i=ei(r.focusNode,r.focusOffset);let o=n||i;if(i&&n&&i.node!=n.node){let t=e9.get(i.node);if(!t||t.isText()&&t.text!=i.node.nodeValue)o=i;else if(e.docView.lastCompositionAfterCursor){let e=e9.get(n.node);if(!(!e||e.isText()&&e.text!=n.node.nodeValue))o=i}}e.docView.lastCompositionAfterCursor=o!=n;if(!o)return null;let s=t-o.offset;return{from:s,to:s+o.node.nodeValue.length,node:o.node}}function t$(e,t,r){let n=tA(e,r);if(!n)return null;let{node:i,from:o,to:s}=n,a=i.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(n.from,n.to)!=a)return null;let l=t.invertedDesc;return{range:new e8(l.mapPos(o),l.mapPos(s),o,s),text:i}}function tj(e,t){if(1!=e.nodeType)return 0;return(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}let tC=class{constructor(){this.changes=[]}compareRange(e,t){C(e,t,this.changes)}comparePoint(e,t){C(e,t,this.changes)}boundChange(e){C(e,e,this.changes)}};function tE(e,t,r){let i=new tC;n.RangeSet.compare(e,t,r,i);return i.changes}class tM{constructor(){this.changes=[]}compareRange(e,t){C(e,t,this.changes)}comparePoint(){}boundChange(e){C(e,e,this.changes)}}function tR(e,t,r){let i=new tM;n.RangeSet.compare(e,t,r,i);return i.changes}function tD(e,t){for(let r=e;r&&r!=t;r=r.assignedSlot||r.parentNode)if(1==r.nodeType&&"false"==r.contentEditable)return true;return false}function tL(e,t){let r=false;if(t)e.iterChangedRanges((e,n)=>{if(e<t.to&&n>t.from)r=true});return r}class tZ extends k{constructor(e){super();this.height=e}toDOM(){let e=document.createElement("div");
11e.className="cm-gap";this.updateDOM(e);return e}eq(e){return e.height==this.height}updateDOM(e){e.style.height=this.height+"px";return true}get editable(){return true}get estimatedHeight(){return this.height}ignoreEvent(){return false}}function tX(e,t,r=1){let i=e.charCategorizer(t);let o=e.doc.lineAt(t),s=t-o.from;if(0==o.length)return n.EditorSelection.cursor(t);if(0==s)r=1;else if(s==o.length)r=-1;let a=s,l=s;if(r<0)a=n.findClusterBreak(o.text,s,false);else l=n.findClusterBreak(o.text,s);let u=i(o.text.slice(a,l));while(a>0){let e=n.findClusterBreak(o.text,a,false);if(i(o.text.slice(e,a))!=u)break;a=e}while(l<o.length){let e=n.findClusterBreak(o.text,l);if(i(o.text.slice(l,e))!=u)break;l=e}return n.EditorSelection.range(a+o.from,l+o.from)}function tq(e,t,r,i,o){let s=Math.round((i-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&r.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;let n=Math.floor((o-r.top-(e.defaultLineHeight-t)*.5)/t);s+=n*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(r.from,r.to);return r.from+n.findColumn(a,s,e.state.tabSize)}function tB(e,r,n){let i=e.lineBlockAt(r);if(Array.isArray(i.type)){let e;for(let o of i.type){if(o.from>r)break;if(!(o.to<r)){if(o.from<r&&o.to>r)return o;if(!e||o.type==t.BlockType.Text&&(e.type!=o.type||(n<0?o.from<r:o.to>r)))e=o}}return e||i}return i}function tz(e,r,i,o){let s=tB(e,r.head,r.assoc||-1);let a=o&&s.type==t.BlockType.Text&&(e.lineWrapping||s.widgetLineBreaks)?e.coordsAtPos(r.assoc<0&&r.head>s.from?r.head-1:r.head):null;if(a){let r=e.dom.getBoundingClientRect();let o=e.textDirectionAt(s.from);let l=e.posAtCoords({x:i==(o==t.Direction.LTR)?r.right-1:r.left+1,y:(a.top+a.bottom)/2});if(null!=l)return n.EditorSelection.cursor(l,i?-1:1)}return n.EditorSelection.cursor(i?s.to:s.from,i?-1:1)}function tI(e,t,r,n){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i);let s=e.textDirectionAt(i.from);for(let a=t,l=null;;){let t=eQ(i,o,s,a,r),u=ek;if(!t){if(i.number==(r?e.state.doc.lines:1))return a;u="\n";i=e.state.doc.line(i.number+(r?1:-1));o=e.bidiSpans(i);t=e.visualLineSide(i,!r)}if(l){if(!l(u))return a}else{if(!n)return t;l=n(u)}a=t}}function tN(e,t,r){let i=e.state.charCategorizer(t);let o=i(r);return e=>{let t=i(e);if(o==n.CharCategory.Space)o=t;return o==t}}function tV(e,t,r,i){let o=t.head,s=r?1:-1;if(o==(r?e.state.doc.length:0))return n.EditorSelection.cursor(o,t.assoc);let a=t.goalColumn,l;let u=e.contentDOM.getBoundingClientRect();let f=e.coordsAtPos(o,(t.empty?t.assoc:0)||(r?1:-1)),c=e.documentTop;if(f){if(null==a)a=f.left-u.left;l=s<0?f.top:f.bottom}else{let t=e.viewState.lineBlockAt(o);if(null==a)a=Math.min(u.right-u.left,e.defaultCharacterWidth*(o-t.from));l=(s<0?t.top:t.bottom)+c}let h=u.left+a;let d=null!=i?i:e.viewState.heightOracle.textHeight>>1;let p=tF(e,{x:h,y:l+d*s},false,s);return n.EditorSelection.cursor(p.pos,p.assoc,void 0,a)}function tW(e,t,r){for(;;){let n=0;for(let i of e)i.between(t-1,t+1,(e,i,o)=>{if(t>e&&t<i){let o=n||r||(t-e<i-t?-1:1);t=o<0?e:i;n=o}});if(!n)return t}}function tY(e,t){let r=null;for(let i=0;i<t.ranges.length;i++){let o=t.ranges[i],s=null;if(o.empty){let t=tW(e,o.from,0);if(t!=o.from)s=n.EditorSelection.cursor(t,-1)}else{let t=tW(e,o.from,-1);let r=tW(e,o.to,1);if(t!=o.from||r!=o.to)s=n.EditorSelection.range(o.from==o.anchor?t:r,o.from==o.head?t:r)}if(s){if(!r)r=t.ranges.slice();r[i]=s}}return r?n.EditorSelection.create(r,t.mainIndex):t}function tU(e,t,r){let i=tW(e.state.facet(e0).map(t=>t(e)),r.from,t.head>r.from?-1:1);return i==r.from?r:n.EditorSelection.cursor(i,i<r.from?1:-1)}class tG{constructor(e,t){this.pos=e;this.assoc=t}}function tF(e,r,n,i){let o=e.contentDOM.getBoundingClientRect(),s=o.top+e.viewState.paddingTop;let{x:a,y:l}=r,u=l-s,f;for(;;){if(u<0)return new tG(0,1);if(u>e.viewState.docHeight)return new tG(e.state.doc.length,-1);f=e.elementAtHeight(u);if(null==i)break;if(f.type==t.BlockType.Text){if(i<0?f.to<e.viewport.from:f.from>e.viewport.to)break;let t=e.docView.coordsAt(i<0?f.from:f.to,i>0?-1:1);if(t&&(i<0?t.top<=u+s:t.bottom>=u+s))break}let r=e.viewState.heightOracle.textHeight/2;u=i>0?f.bottom+r:f.top-r}if(e.viewport.from>=f.to||e.viewport.to<=f.from){if(n)return null;if(f.type==t.BlockType.Text){let t=tq(e,o,f,a,l);return new tG(t,t==f.from?1:-1)}}if(f.type!=t.BlockType.Text)return u<(f.top+f.bottom)/2?new tG(f.from,1):new tG(f.to,-1);let c=e.docView.lineAt(f.from,2);if(!c||c.length!=f.length)c=e.docView.lineAt(f.from,-2);return tH(e,c,f.from,a,l)}function tH(e,r,i,o,s){let a=-1,l=null;let u=1e9,f=1e9;
11let c=s,h=s;let d=(e,t)=>{for(let r=0;r<e.length;r++){let n=e[r];if(n.top==n.bottom)continue;let i=n.left>o?n.left-o:n.right<o?o-n.right:0;let d=n.top>s?n.top-s:n.bottom<s?s-n.bottom:0;if(n.top<=h&&n.bottom>=c){c=Math.min(n.top,c);h=Math.max(n.bottom,h);d=0}if(a<0||(d-f||i-u)<0)if(a>=0&&f&&u<i&&l.top<=h-2&&l.bottom>=c+2)f=0;else{a=t;u=i;f=d;l=n}}};if(r.isText()){for(let e=0;e<r.length;){let t=n.findClusterBreak(r.text,e);d(K(r.dom,e,t).getClientRects(),e);if(!u&&!f)break;e=t}let s=o>(l.left+l.right)/2==(tK(e,a+i)==t.Direction.LTR);return s?new tG(i+n.findClusterBreak(r.text,a),-1):new tG(i+a,1)}{if(!r.length)return new tG(i,1);for(let e=0;e<r.children.length;e++){let t=r.children[e];if(48&t.flags)continue;let n=(1==t.dom.nodeType?t.dom:K(t.dom,0,t.length)).getClientRects();d(n,e);if(!u&&!f)break}let n=r.children[a],c=r.posBefore(n,i);if(n.isComposite()||n.isText())return tH(e,n,c,Math.max(l.left,Math.min(l.right,o)),s);let h=o>(l.left+l.right)/2==(tK(e,a+i)==t.Direction.LTR);return h?new tG(c+n.length,-1):new tG(c,1)}}function tK(e,t){let r=e.state.doc.lineAt(t),n=e.bidiSpans(r);return n[eg.find(e.bidiSpans(r),t-r.from,-1,1)].dir}const tJ="ï¿¿";class t0{constructor(e,t){this.points=e;this.view=t;this.text="";this.lineSeparator=t.state.facet(n.EditorState.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=tJ}readRange(e,t){if(!e)return this;let r=e.parentNode;for(let n=e;;){this.findPointBefore(r,n);let e=this.text.length;this.readNode(n);let i=e9.get(n),o=n.nextSibling;if(o==t){if((null==i?void 0:i.breakAfter)&&!o&&r!=this.view.contentDOM)this.lineBreak();break}let s=e9.get(o);if((i&&s?i.breakAfter:(i?i.breakAfter:q(n))||q(o)&&("BR"!=n.nodeName||(null==i?void 0:i.isWidget()))&&this.text.length>e)&&!t2(o,t))this.lineBreak();n=o}this.findPointBefore(r,t);return this}readTextNode(e){let t=e.nodeValue;for(let r of this.points)if(r.node==e)r.pos=this.text.length+Math.min(r.offset,t.length);for(let r=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,s;if(this.lineSeparator){i=t.indexOf(this.lineSeparator,r);o=this.lineSeparator.length}else if(s=n.exec(t)){i=s.index;o=s[0].length}this.append(t.slice(r,i<0?t.length:i));if(i<0)break;this.lineBreak();if(o>1){for(let t of this.points)if(t.node==e&&t.pos>this.text.length)t.pos-=o-1}r=i+o}}readNode(e){let t=e9.get(e);let r=t&&t.overrideDOMText;if(null!=r){this.findPointInside(e,r.length);for(let e=r.iter();!e.next().done;)if(e.lineBreak)this.lineBreak();else this.append(e.value)}else if(3==e.nodeType)this.readTextNode(e);else if("BR"==e.nodeName){if(e.nextSibling)this.lineBreak()}else if(1==e.nodeType)this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let r of this.points)if(r.node==e&&e.childNodes[r.offset]==t)r.pos=this.text.length}findPointInside(e,t){for(let r of this.points)if(3==e.nodeType?r.node==e:e.contains(r.node))r.pos=this.text.length+(t1(e,r.node,r.offset)?t:0)}}function t1(e,t,r){for(;;){if(!t||r<z(t))return false;if(t==e)return true;r=X(t)+1;t=t.parentNode}}function t2(e,t){let r;for(;;e=e.nextSibling){if(e==t||!e)break;let n=e9.get(e);if(!(null==n?void 0:n.isWidget()))return false;if(n)(r||(r=[])).push(n)}if(r)for(let e of r){let t=e.overrideDOMText;if(null==t?void 0:t.length)return false}return true}class t5{constructor(e,t){this.node=e;this.offset=t;this.pos=-1}}
11class t3{constructor(e,t,r,i){this.typeOver=i;this.bounds=null;this.text="";this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=t4(e.docView.tile,t,r,0))){let t=o||s?[]:re(e);let r=new t0(t,e);r.readRange(this.bounds.startDOM,this.bounds.endDOM);this.text=r.text;this.newSel=rt(t,this.bounds.from)}else{let t=e.observer.selectionRange;let r=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!R(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset);let i=s&&s.node==t.anchorNode&&s.offset==t.anchorOffset||!R(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);let a=e.viewport;if((v.ios||v.chrome)&&e.state.selection.main.empty&&r!=i&&(a.from>0||a.to<e.state.doc.length)){let t=Math.min(r,i),n=Math.max(r,i);let o=a.from-t,s=a.to-n;if((0==o||1==o||0==t)&&(0==s||-1==s||n==e.state.doc.length)){r=0;i=e.state.doc.length}}if(e.inputState.composing>-1&&e.state.selection.ranges.length>1)this.newSel=e.state.selection.replaceRange(n.EditorSelection.range(i,r));else this.newSel=n.EditorSelection.single(i,r)}}}function t4(e,t,r,n){if(e.isComposite()){let i=-1,o=-1,s=-1,a=-1;for(let l=0,u=n,f=n;l<e.children.length;l++){let n=e.children[l],c=u+n.length;if(u<t&&c>r)return t4(n,t,r,u);if(c>=t&&-1==i){i=l;o=u}if(u>r&&n.dom.parentNode==e.dom){s=l;a=f;break}f=c;u=c+n.breakAfter}return{from:o,to:a<0?n+e.length:a,startDOM:(i?e.children[i-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:s<e.children.length&&s>=0?e.children[s].dom:null}}if(e.isText())return{from:n,to:n+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling};return null}function t8(e,t){let r;let{newSel:i}=t,o=e.state.selection.main;let s=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:a}=t.bounds;let l=o.from,u=null;if(8===s||v.android&&t.text.length<a-i){l=o.to;u="end"}let f=t9(e.state.doc.sliceString(i,a,tJ),t.text,l-i,u);if(f){if(v.chrome&&13==s&&f.toB==f.from+2&&t.text.slice(f.from,f.toB)==tJ+tJ)f.toB--;r={from:i+f.from,to:i+f.toA,insert:n.Text.of(t.text.slice(f.from,f.toB).split(tJ))}}}else if(i&&(!e.hasFocus&&e.state.facet(eN)||rr(i,o)))i=null;if(!r&&!i)return false;if(!r&&t.typeOver&&!o.empty&&i&&i.main.empty)r={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)};else if((v.mac||v.android)&&r&&r.from==r.to&&r.from==o.head-1&&/^\. ?$/.test(r.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")){if(i&&2==r.insert.length)i=n.EditorSelection.single(i.main.anchor-1,i.main.head-1);r={from:r.from,to:r.to,insert:n.Text.of([r.insert.toString().replace("."," ")])}}else if(r&&r.from>=o.from&&r.to<=o.to&&(r.from!=o.from||r.to!=o.to)&&o.to-o.from-(r.to-r.from)<=4)r={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,r.from).append(r.insert).append(e.state.doc.slice(r.to,o.to))};else if(e.state.doc.lineAt(o.from).to<o.to&&e.docView.lineHasWidget(o.to)&&e.inputState.insertingTextAt>Date.now()-50)r={from:o.from,to:o.to,insert:e.state.toText(e.inputState.insertingText)};else if(v.chrome&&r&&r.from==r.to&&r.from==o.head&&"\n "==r.insert.toString()&&e.lineWrapping){if(i)i=n.EditorSelection.single(i.main.anchor-1,i.main.head-1);r={from:o.from,to:o.to,insert:n.Text.of([" "])}}if(r)return t6(e,r,i,s);if(!i||!!rr(i,o))return false;{let t=false,r="select";if(e.inputState.lastSelectionTime>Date.now()-50){if("select"==e.inputState.lastSelectionOrigin)t=true;r=e.inputState.lastSelectionOrigin;if("select.pointer"==r)i=tY(e.state.facet(e0).map(t=>t(e)),i)}e.dispatch({selection:i,scrollIntoView:t,userEvent:r});return true}}function t6(e,t,r,n=-1){if(v.ios&&e.inputState.flushIOSKey(t))return true;let i=e.state.selection.main;if(v.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&" "==e.state.sliceDoc(t.from,i.from))&&1==t.insert.length&&2==t.insert.lines&&J(e.contentDOM,"Enter",13)||(t.from==i.from-1&&t.to==i.to&&0==t.insert.length||8==n&&t.insert.length<t.to-t.from&&t.to>i.head)&&J(e.contentDOM,"Backspace",8)||t.from==i.from&&t.to==i.to+1&&0==t.insert.length&&J(e.contentDOM,"Delete",46)))return true;let o=t.insert.toString();if(e.inputState.composing>
11=0)e.inputState.composing++;let s;let a=()=>s||(s=t7(e,t,r));if(!e.state.facet(eE).some(r=>r(e,t.from,t.to,o,a)))e.dispatch(a());return true}function t7(e,t,r){let i,o=e.state,s=o.selection.main,a=-1;if(t.from==t.to&&t.from<s.from||t.from>s.to){let r=t.from<s.from?-1:1,n=r<0?s.from:s.to;let i=tW(o.facet(e0).map(t=>t(e)),n,r);if(t.from==i)a=i}if(a>-1)i={changes:t,selection:n.EditorSelection.cursor(t.from+t.insert.length,-1)};else if(t.from>=s.from&&t.to<=s.to&&t.to-t.from>=(s.to-s.from)/3&&(!r||r.main.empty&&r.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let r=s.from<t.from?o.sliceDoc(s.from,t.from):"";let n=s.to>t.to?o.sliceDoc(t.to,s.to):"";i=o.replaceSelection(e.state.toText(r+t.insert.sliceString(0,void 0,e.state.lineBreak)+n))}else{let a=o.changes(t);let l=r&&r.main.to<=a.newLength?r.main:void 0;if(o.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=s.to+10&&t.to>=s.to-10){let u=e.state.sliceDoc(t.from,t.to);let f,c=r&&tA(e,r.main.head);if(c){let e=t.insert.length-(t.to-t.from);f={from:c.from,to:c.to-e}}else f=e.state.doc.lineAt(s.head);let h=s.to-t.to;i=o.changeByRange(r=>{if(r.from==s.from&&r.to==s.to)return{changes:a,range:l||r.map(a)};let i=r.to-h,c=i-u.length;if(e.state.sliceDoc(c,i)!=u||i>=f.from&&c<=f.to)return{range:r};let d=o.changes({from:c,to:i,insert:t.insert}),p=r.to-s.to;return{changes:d,range:l?n.EditorSelection.range(Math.max(0,l.anchor+p),Math.max(0,l.head+p)):r.map(d)}})}else i={changes:a,selection:l&&o.selection.replaceRange(l)}}let l="input.type";if(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50){e.inputState.compositionPendingChange=false;l+=".compose";if(e.inputState.compositionFirstChange){l+=".start";e.inputState.compositionFirstChange=false}}return o.update(i,{userEvent:l,scrollIntoView:true})}function t9(e,t,r,n){let i=Math.min(e.length,t.length);let o=0;while(o<i&&e.charCodeAt(o)==t.charCodeAt(o))o++;if(o==i&&e.length==t.length)return null;let s=e.length,a=t.length;while(s>0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1)){s--;a--}if("end"==n){let e=Math.max(0,o-Math.min(s,a));r-=s+e-o}if(s<o&&e.length<t.length){let e=r<=o&&r>=s?o-r:0;o-=e;a=o+(a-s);s=o}else if(a<o){let e=r<=o&&r>=a?o-r:0;o-=e;s=o+(s-a);a=o}return{from:o,toA:s,toB:a}}function re(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:r,anchorOffset:n,focusNode:i,focusOffset:o}=e.observer.selectionRange;if(r){t.push(new t5(r,n));if(i!=r||o!=n)t.push(new t5(i,o))}return t}function rt(e,t){if(0==e.length)return null;let r=e[0].pos,i=2==e.length?e[1].pos:r;return r>-1&&i>-1?n.EditorSelection.single(r+t,i+t):null}function rr(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class rn{setSelectionOrigin(e){this.lastSelectionOrigin=e;this.lastSelectionTime=Date.now()}constructor(e){this.view=e;this.lastKeyCode=0;this.lastKeyTime=0;this.lastTouchTime=0;this.lastFocusTime=0;this.lastScrollTop=0;this.lastScrollLeft=0;this.pendingIOSKey=void 0;this.tabFocusMode=-1;this.lastSelectionOrigin=null;this.lastSelectionTime=0;this.lastContextMenu=0;this.scrollHandlers=[];this.handlers=Object.create(null);this.composing=-1;this.compositionFirstChange=null;this.compositionEndedAt=0;this.compositionPendingKey=false;this.compositionPendingChange=false;this.insertingText="";this.insertingTextAt=0;this.mouseSelection=null;this.draggedContent=null;this.handleEvent=this.handleEvent.bind(this);this.notifiedFocused=e.hasFocus;if(v.safari)e.contentDOM.addEventListener("input",()=>null);if(v.gecko)rX(e.contentDOM.ownerDocument)}handleEvent(e){if(!rm(this.view,e)||this.ignoreDuringComposition(e))return;if("keydown"==e.type&&this.keydown(e))return;if(0!=this.view.updateState)Promise.resolve().then(()=>this.runHandlers(e.type,e));else this.runHandlers(e.type,e)}runHandlers(e,t){let r=this.handlers[e];if(r){for(let e of r.observers)e(this.view,t);for(let e of r.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=ro(e),r=this.handlers,n=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length;let o=r[e];if(o&&!o.handlers.length!=i){n.removeEventListener(e,this.handleEvent);o=null}if(!o)n.addEventListener(e,this.handleEvent,{passive:i})}for(let e in r)if("scroll"!=e&&!t[e])n.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){this.lastKeyCode=e.keyCode;this.lastKeyTime=Date.now();if(9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return true;if(this.tabFocusMode>0&&27!=e.keyCode&&rl.indexOf(e.keyCode)<0)this.tabFocusMode=-1;if(v.android&&v.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode)){this.view.observer.delayAndroidKey(e.key,e.keyCode);return true}let t;if(v.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=rs.find(t=>t.keyCode==e.keyCode))&&!e.ctrlKey||ra.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)){this.pendingIOSKey=t||e;setTimeout(()=>this.flushIOSKey(),250);return true}if(229!=e.keyCode)this.view.observer.forceFlush();return false}flushIOSKey(e){let t=this.pendingIOSKey;if(!t)return false;if("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))return false;this.pendingIOSKey=void 0;return J(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0)}ignoreDuringComposition(e){if(!/^key/.test(e.type)||e.synthetic)return false;if(this.composing>0)return true;if(v.safari&&!v.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100){this.compositionPendingKey=false;return true}return false}startMouseSelection(e){if(this.mouseSelection)this.mouseSelection.destroy();this.mouseSelection=e}update(e){this.view.observer.update(e);if(this.mouseSelection)this.mouseSelection.update(e);if(this.draggedContent&&e.docChanged)this.draggedContent=this.draggedContent.map(e.changes);if(e.transactions.length)this.lastKeyCode=this.lastSelectionTime=0}destroy(){if(this.mouseSelection)this.mouseSelection.destroy()}}function ri(e,t){return(r,n)=>{try{return t.call(e,n,r)}catch(e){eI(r.state,e)}}}function ro(e){let t=Object.create(null);function r(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,n=e&&e.plugin.domEventHandlers,i=e&&e.plugin.domEventObservers;if(n)for(let e in n){let i=n[e];if(i)r(e).handlers.push(ri(t.value,i))}if(i)for(let e in i){let n=i[e];if(n)r(e).observers.push(ri(t.value,n))}}
11for(let e in rO)r(e).handlers.push(rO[e]);for(let e in rv)r(e).observers.push(rv[e]);return t}const rs=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}];const ra="dthko";const rl=[16,17,18,20,91,92,224,225];const ru=6;function rf(e){return .7*Math.max(0,e)+8}function rc(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class rh{constructor(e,t,r,i){this.view=e;this.startEvent=t;this.style=r;this.mustSelect=i;this.scrollSpeed={x:0,y:0};this.scrolling=-1;this.lastEvent=t;this.scrollParents=Y(e.contentDOM);this.atoms=e.state.facet(e0).map(t=>t(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this));o.addEventListener("mouseup",this.up=this.up.bind(this));this.extend=t.shiftKey;this.multiple=e.state.facet(n.EditorState.allowMultipleSelections)&&rd(e,t);this.dragging=rg(e,t)&&1==rT(t)?null:false}start(e){if(false===this.dragging)this.select(e)}move(e){if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&rc(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,r=0;let n=0,i=0,o=this.view.win.innerWidth,s=this.view.win.innerHeight;if(this.scrollParents.x)({left:n,right:o}=this.scrollParents.x.getBoundingClientRect());if(this.scrollParents.y)({top:i,bottom:s}=this.scrollParents.y.getBoundingClientRect());let a=e3(this.view);if(e.clientX-a.left<=n+ru)t=-rf(n-e.clientX);else if(e.clientX+a.right>=o-ru)t=rf(e.clientX-o);if(e.clientY-a.top<=i+ru)r=-rf(i-e.clientY);else if(e.clientY+a.bottom>=s-ru)r=rf(e.clientY-s);this.setScrollSpeed(t,r)}up(e){if(null==this.dragging)this.select(this.lastEvent);if(!this.dragging)e.preventDefault();this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move);e.removeEventListener("mouseup",this.up);this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t};if(e||t){if(this.scrolling<0)this.scrolling=setInterval(()=>this.scroll(),50)}else if(this.scrolling>-1){clearInterval(this.scrolling);this.scrolling=-1}}scroll(){let{x:e,y:t}=this.scrollSpeed;if(e&&this.scrollParents.x){this.scrollParents.x.scrollLeft+=e;e=0}if(t&&this.scrollParents.y){this.scrollParents.y.scrollTop+=t;t=0}if(e||t)this.view.win.scrollBy(e,t);if(false===this.dragging)this.select(this.lastEvent)}select(e){let{view:t}=this,r=tY(this.atoms,this.style.get(e,this.extend,this.multiple));if(this.mustSelect||!r.eq(t.state.selection,false===this.dragging))this.view.dispatch({selection:r,userEvent:"select.pointer"});this.mustSelect=false}update(e){if(e.transactions.some(e=>e.isUserEvent("input.type")))this.destroy();else if(this.style.update(e))setTimeout(()=>this.select(this.lastEvent),20)}}function rd(e,t){let r=e.state.facet(eT);return r.length?r[0](t):v.mac?t.metaKey:t.ctrlKey}function rp(e,t){let r=e.state.facet(eA);return r.length?r[0](t):v.mac?!t.altKey:!t.ctrlKey}function rg(e,t){let{main:r}=e.state.selection;if(r.empty)return false;let n=M(e.root);if(!n||0==n.rangeCount)return true;let i=n.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let r=i[e];if(r.left<=t.clientX&&r.right>=t.clientX&&r.top<=t.clientY&&r.bottom>=t.clientY)return true}return false}function rm(e,t){if(!t.bubbles)return true;if(t.defaultPrevented)return false;for(let r=t.target,n;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=e9.get(r))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(t))return false;return true}const rO=Object.create(null);const rv=Object.create(null);const ry=v.ie&&v.ie_version<15||v.ios&&v.webkit_version<604;function rb(e){let t=e.dom.parentNode;if(!t)return;let r=t.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px";r.focus();setTimeout(()=>{e.focus();r.remove();rx(e,r.value)},50)}function rw(e,t,r){for(let n of e.facet(t))r=n(r,e);return r}function rx(e,t){t=rw(e.state,eR,t);let{state:r}=e,i,o=1,s=r.toText(t);let a=s.lines==r.selection.ranges.length;let l=null!=rM&&r.selection.ranges.every(e=>e.empty)&&rM==s.toString();if(l){let e=-1;i=r.changeByRange(i=>{let l=r.doc.lineAt(i.from);if(l.from==e)return{range:i};e=l.from;let u=r.toText((a?s.line(o++).text:t)+r.lineBreak);return{changes:{from:l.from,insert:u},range:n.EditorSelection.cursor(i.from+u.length)}})}else i=a?r.changeByRange(e=>{let t=s.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:n.EditorSelection.cursor(e.from+t.length)}}):r.replaceSelection(s);e.dispatch(i,{userEvent:"input.paste",scrollIntoView:true})}rv.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop;e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};rO.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select");if(27==t.keyCode&&0!=e.inputState.tabFocusMode)e.inputState.tabFocusMode=Date.now()+2e3;return false};rv.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now();e.inputState.setSelectionOrigin("select.pointer")};rv.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};rO.mousedown=(e,t)=>{e.observer.flush();if(e.inputState.lastTouchTime>Date.now()-2e3)return false;let r=null;for(let n of e.state.facet(e$)){r=n(e,t);if(r)break}if(!r&&0==t.button)r=rA(e,t);if(r){let n=!e.hasFocus;e.inputState.startMouseSelection(new rh(e,t,r,n));if(n)e.observer.ignore(()=>{F(e.contentDOM);let t=e.root.activeElement;if(t&&!t.contains(e.contentDOM))t.blur()});let i=e.inputState.mouseSelection;if(i){i.start(t);return false===i.dragging}}else e.inputState.setSelectionOrigin("select.pointer");return false};function rS(e,t,r,i){if(1==i)return n.EditorSelection.cursor(t,r);{if(2==i)return tX(e.state,t,r);let o=e.docView.lineAt(t,r),s=e.state.doc.lineAt(o?o.posAtEnd:t);let a=o?o.posAtStart:s.from,l=o?o.posAtEnd:s.to;if(l<e.state.doc.length&&l==s.to)l++;return n.EditorSelection.range(a,l)}}const r_=v.ie&&v.ie_version<=11;let rk=null,rQ=0,rP=0;function rT(e){if(!r_)return e.detail;let t=rk,r=rP;rk=e;rP=Date.now();return rQ=!t||r>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(rQ+1)%3:1}function rA(e,t){let r=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},false),i=rT(t);let o=e.state.selection;return{update(e){if(e.docChanged){r.pos=e.changes.mapPos(r.pos);o=o.map(e.changes)}},get(t,s,a){let l=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},false),u;let f=rS(e,l.pos,l.assoc,i);if(r.pos!=l.pos&&!s){let t=rS(e,r.pos,r.assoc,i);let o=Math.min(t.from,f.from),s=Math.max(t.to,f.to);f=o<f.from?n.EditorSelection.range(o,s):n.EditorSelection.range(s,o)}if(s)return o.replaceRange(o.main.extend(f.from,f.to));if(a&&1==i&&o.ranges.length>1&&(u=r$(o,l.pos)))return u;if(a)return o.addRange(f);return n.EditorSelection.create([f])}}}function r$(e,t){for(let r=0;r<e.ranges.length;r++){let{from:i,to:o}=e.ranges[r];if(i<=t&&o>=t)return n.EditorSelection.create(e.ranges.slice(0,r).concat(e.ranges.slice(r+1)),e.mainIndex==r?0:e.mainIndex-(e.mainIndex>r?1:0))}return null}rO.dragstart=(e,t)=>{let{selection:{main:r}}=e.state;if(t.target.draggable){let i=e.docView.tile.nearest(t.target);if(i&&i.isWidget()){let e=i.posAtStart,t=e+i.length;if(e>=r.to||t<=r.from)r=n.EditorSelection.range(e,t)}}let{inputState:i}=e;if(i.mouseSelection)i.mouseSelection.dragging=true;i.draggedContent=r;if(t.dataTransfer){t.dataTransfer.setData("Text",rw(e.state,eD,e.state.sliceDoc(r.from,r.to)));t.dataTransfer.effectAllowed="copyMove"}return false};rO.dragend=e=>{e.inputState.draggedContent=null;return false};function rj(e,t,r,n){r=rw(e.state,eR,r);if(!r)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},false);let{draggedContent:o}=e.inputState;let s=n&&o&&rp(e,t)?{from:o.from,to:o.to}:null;let a={from:i,insert:r};let l=e.state.changes(s?[s,a]:a);e.focus();e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"});e.inputState.draggedContent=null}rO.drop=(e,t)=>{if(!t.dataTransfer)return false;if(e.state.readOnly)return true;let r=t.dataTransfer.files;if(r&&r.length){let n=Array(r.length),i=0;let o=()=>
11{if(++i==r.length)rj(e,t,n.filter(e=>null!=e).join(e.state.lineBreak),false)};for(let e=0;e<r.length;e++){let t=new FileReader;t.onerror=o;t.onload=()=>{if(!/[\x00-\x08\x0e-\x1f]{2}/.test(t.result))n[e]=t.result;o()};t.readAsText(r[e])}return true}{let r=t.dataTransfer.getData("Text");if(r){rj(e,t,r,true);return true}}return false};rO.paste=(e,t)=>{if(e.state.readOnly)return true;e.observer.flush();let r=ry?null:t.clipboardData;if(r){rx(e,r.getData("text/plain")||r.getData("text/uri-list"));return true}rb(e);return false};function rC(e,t){let r=e.dom.parentNode;if(!r)return;let n=r.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px";n.value=t;n.focus();n.selectionEnd=t.length;n.selectionStart=0;setTimeout(()=>{n.remove();e.focus()},50)}function rE(e){let t=[],r=[],n=false;for(let n of e.selection.ranges)if(!n.empty){t.push(e.sliceDoc(n.from,n.to));r.push(n)}if(!t.length){let i=-1;for(let{from:n}of e.selection.ranges){let o=e.doc.lineAt(n);if(o.number>i){t.push(o.text);r.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})}i=o.number}n=true}return{text:rw(e,eD,t.join(e.lineBreak)),ranges:r,linewise:n}}let rM=null;rO.copy=rO.cut=(e,t)=>{let r=M(e.root);if(r&&!D(e.contentDOM,r))return false;let{text:n,ranges:i,linewise:o}=rE(e.state);if(!n&&!o)return false;rM=o?n:null;if("cut"==t.type&&!e.state.readOnly)e.dispatch({changes:i,scrollIntoView:true,userEvent:"delete.cut"});let s=ry?null:t.clipboardData;if(s){s.clearData();s.setData("text/plain",n);return true}rC(e,n);return false};const rR=n.Annotation.define();function rD(e,t){let r=[];for(let n of e.facet(eM)){let i=n(e,t);if(i)r.push(i)}return r.length?e.update({effects:r,annotations:rR.of(true)}):null}function rL(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let r=rD(e.state,t);if(r)e.dispatch(r);else e.update([])}},10)}rv.focus=e=>{e.inputState.lastFocusTime=Date.now();if(!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)){e.scrollDOM.scrollTop=e.inputState.lastScrollTop;e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft}rL(e)};rv.blur=e=>{e.observer.clearSelectionRange();rL(e)};rv.compositionstart=rv.compositionupdate=e=>{if(e.observer.editContext)return;if(null==e.inputState.compositionFirstChange)e.inputState.compositionFirstChange=true;if(e.inputState.composing<0)e.inputState.composing=0};rv.compositionend=e=>{if(e.observer.editContext)return;e.inputState.composing=-1;e.inputState.compositionEndedAt=Date.now();e.inputState.compositionPendingKey=true;e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0;e.inputState.compositionFirstChange=null;if(v.chrome&&v.android)e.observer.flushSoon();else if(e.inputState.compositionPendingChange)Promise.resolve().then(()=>e.observer.flush());else setTimeout(()=>{if(e.inputState.composing<0&&e.docView.hasComposition)e.update([])},50)};rv.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};rO.beforeinput=(e,t)=>{var r,n;if("insertText"==t.inputType||"insertCompositionText"==t.inputType){e.inputState.insertingText=t.data;e.inputState.insertingTextAt=Date.now()}if("insertReplacementText"==t.inputType&&e.observer.editContext){let n=null==(r=t.dataTransfer)?void 0:r.getData("text/plain"),i=t.getTargetRanges();if(n&&i.length){let t=i[0];let r=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);t6(e,{from:r,to:o,insert:e.state.toText(n)},null);return true}}let i;if(v.chrome&&v.android&&(i=rs.find(e=>e.inputType==t.inputType))){e.observer.delayAndroidKey(i.key,i.keyCode);if("Backspace"==i.key||"Delete"==i.key){let t=(null==(n=window.visualViewport)?void 0:n.height)||0;setTimeout(()=>{var r;if(((null==(r=window.visualViewport)?void 0:r.height)||0)>t+10&&e.hasFocus){e.contentDOM.blur();e.focus()}},100)}}if(v.ios&&"deleteContentForward"==t.inputType)e.observer.flushSoon();if(v.safari&&"insertText"==t.inputType&&e.inputState.composing>=0)setTimeout(()=>rv.compositionend(e,t),20);return false};const rZ=new Set;function rX(e){if(!rZ.has(e)){rZ.add(e);e.addEventListener("copy",()=>{});e.addEventListener("cut",()=>{})}}const rq=["pre-wrap","normal","pre-line","break-spaces"];let rB=false;function rz(){rB=false}class rI{constructor(e){this.lineWrapping=e;this.doc=n.Text.empty;this.heightSamples={};this.lineHeight=14;this.charWidth=7;this.textHeight=14;this.lineLength=30}heightForGap(e,t){let r=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;if(this.lineWrapping)r+=Math.max(0,Math.ceil((t-e-r*this.lineLength*.5)/this.lineLength));return this.lineHeight*r}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;let t=1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5)));return t*this.lineHeight}setDoc(e){this.doc=e;return this}mustRefreshForWrapping(e){return rq.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=false;for(let r=0;r<e.length;r++){let n=e[r];
11if(n<0)r++;else if(!this.heightSamples[Math.floor(10*n)]){t=true;this.heightSamples[Math.floor(10*n)]=true}}return t}refresh(e,t,r,n,i,o){let s=rq.indexOf(e)>-1;let a=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=s||Math.abs(r-this.charWidth)>.1;this.lineWrapping=s;this.lineHeight=t;this.charWidth=r;this.textHeight=n;this.lineLength=i;if(a){this.heightSamples={};for(let e=0;e<o.length;e++){let t=o[e];if(t<0)e++;else this.heightSamples[Math.floor(10*t)]=true}}return a}}class rN{constructor(e,t){this.from=e;this.heights=t;this.index=0}get more(){return this.index<this.heights.length}}class rV{constructor(e,t,r,n,i){this.from=e;this.length=t;this.top=r;this.height=n;this._content=i}get type(){return"number"==typeof this._content?t.BlockType.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof A?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new rV(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var rW;(function(e){e[e["ByPos"]=0]="ByPos";e[e["ByHeight"]=1]="ByHeight";e[e["ByPosNoHeight"]=2]="ByPosNoHeight"})(rW||(rW={}));const rY=.001;class rU{constructor(e,t,r=2){this.length=e;this.height=t;this.flags=r}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){if(this.height!=e){if(Math.abs(this.height-e)>rY)rB=true;this.height=e}}replace(e,t,r){return rU.of(r)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,r,n){let i=this,o=r.doc;for(let s=n.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:u,toB:f}=n[s];let c=i.lineAt(a,rW.ByPosNoHeight,r.setDoc(t),0,0);let h=c.to>=l?c:i.lineAt(l,rW.ByPosNoHeight,r,0,0);f+=h.to-l;l=h.to;while(s>0&&c.from<=n[s-1].toA){a=n[s-1].fromA;u=n[s-1].fromB;s--;if(a<c.from)c=i.lineAt(a,rW.ByPosNoHeight,r,0,0)}u+=c.from-a;a=c.from;let d=r5.build(r.setDoc(o),e,u,f);i=rG(i,i.replace(a,l,d))}return i.updateHeight(r,0)}static empty(){return new rK(0,0,0)}static of(e){if(1==e.length)return e[0];let t=0,r=e.length,n=0,i=0;for(;;)if(t==r)if(n>2*i){let i=e[t-1];if(i.break)e.splice(--t,1,i.left,null,i.right);else e.splice(--t,1,i.left,i.right);r+=1+i.break;n-=i.size}else if(i>2*n){let t=e[r];if(t.break)e.splice(r,1,t.left,null,t.right);else e.splice(r,1,t.left,t.right);r+=2+t.break;i-=t.size}else break;else if(n<i){let r=e[t++];if(r)n+=r.size}else{let t=e[--r];if(t)i+=t.size}let o=0;if(null==e[t-1]){o=1;t--}else if(null==e[t]){o=1;r++}return new r0(rU.of(e.slice(0,t)),o,rU.of(e.slice(r)))}}function rG(e,t){if(e==t)return e;if(e.constructor!=t.constructor)rB=true;return t}rU.prototype.size=1;const rF=Q.replace({});class rH extends rU{constructor(e,t,r){super(e,t);this.deco=r;this.spaceAbove=0}mainBlock(e,t){return new rV(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,r,n){return this.spaceAbove&&e<r+this.spaceAbove?new rV(n,0,r,this.spaceAbove,rF):this.mainBlock(r,n)}lineAt(e,t,r,n,i){let o=this.mainBlock(n,i);return this.spaceAbove?this.blockAt(0,r,n,i).join(o):o}forEachLine(e,t,r,n,i,o){if(e<=i+this.length&&t>=i)o(this.lineAt(0,rW.ByPos,r,n,i))}setMeasuredHeight(e){let t=e.heights[e.index++];if(t<0){this.spaceAbove=-t;t=e.heights[e.index++]}else this.spaceAbove=0;this.setHeight(t)}updateHeight(e,t=0,r=false,n){if(n&&n.from<=t&&n.more)this.setMeasuredHeight(n);this.outdated=false;return this}toString(){return`block(${this.length})`}}class rK extends rH{constructor(e,t,r){super(e,t,null);this.collapsed=0;this.widgetHeight=0;this.breaks=0;this.spaceAbove=r}mainBlock(e,t){return new rV(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,r){let n=r[0];if(!(1==r.length&&(n instanceof rK||n instanceof rJ&&4&n.flags)&&Math.abs(this.length-n.length)<10))return rU.of(r);if(n instanceof rJ)n=new rK(n.length,this.height,this.spaceAbove);else n.height=this.height;if(!this.outdated)n.outdated=false;return n}updateHeight(e,t=0,r=false,n){if(n&&n.from<=t&&n.more)this.setMeasuredHeight(n);else if(r||this.outdated){this.spaceAbove=0;this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)}this.outdated=false;return this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class rJ extends rU{constructor(e){super(e,0)}heightMetrics(e,t){let r=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number;let i=n-r+1;let o,s=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);o=t/i;if(this.length>i+1)s=(this.height-t)/(this.length-i-1)}else o=this.height/i;return{firstLine:r,lastLine:n,perLine:o,perChar:s}}blockAt(e,t,r,n){let{firstLine:i,lastLine:o,perLine:s,perChar:a}=this.heightMetrics(t,n);if(t.lineWrapping){let i=n+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length));let o=t.doc.lineAt(i),l=s+o.length*a;let u=Math.max(r,e-l/2);return new rV(o.from,o.length,u,l,0)}{let n=Math.max(0,Math.min(o-i,Math.floor((e-r)/s)));let{from:a,length:l}=t.doc.line(i+n);return new rV(a,l,r+s*n,s,0)}}lineAt(e,t,r,n,i){if(t==rW.ByHeight)return this.blockAt(e,r,n,i);if(t==rW.ByPosNoHeight){let{from:t,to:n}=r.doc.lineAt(e);return new rV(t,n-t,0,0,0)}let{firstLine:o,perLine:s,perChar:a}=this.heightMetrics(r,i);let l=r.doc.lineAt(e),u=s+l.length*a;let f=l.number-o;let c=n+s*f+a*(l.from-i-f);return new rV(l.from,l.length,Math.max(n,Math.min(c,n+this.height-u)),u,0)}forEachLine(e,t,r,n,i,o){e=Math.max(e,i);t=Math.min(t,i+this.length);let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(r,i);for(let u=e,f=n;u<=t;){let t=r.doc.lineAt(u);if(u==e){let r=t.number-s;f+=a*r+l*(e-i-r)}let n=a+l*t.length;o(new rV(t.from,t.length,f,n,0));f+=n;u=t.to+1}}replace(e,t,r){let n=this.length-t;if(n>0){let e=r[r.length-1];if(e instanceof rJ)r[r.length-1]=new rJ(e.length+n);else r.push(null,new rJ(n-1))}if(e>0){let t=r[0];if(t instanceof rJ)r[0]=new rJ(e+t.length);else r.unshift(new rJ(e-1),null)}return rU.of(r)}decomposeLeft(e,t){t.push(new rJ(e-1),null)}decomposeRight(e,t){t.push(null,new rJ(this.length-e-1))}updateHeight(e,t=0,r=false,n){let i=t+this.length;if(n&&n.from<=t+this.length&&n.more){let r=[],o=Math.max(t,n.from),s=-1;
11if(n.from>t)r.push(new rJ(n.from-t-1).updateHeight(e,t));while(o<=i&&n.more){let t=e.doc.lineAt(o).length;if(r.length)r.push(null);let i=n.heights[n.index++],a=0;if(i<0){a=-i;i=n.heights[n.index++]}if(-1==s)s=i;else if(Math.abs(i-s)>=rY)s=-2;let l=new rK(t,i,a);l.outdated=false;r.push(l);o+=t+1}if(o<=i)r.push(null,new rJ(i-o).updateHeight(e,o));let a=rU.of(r);if(s<0||Math.abs(a.height-this.height)>=rY||Math.abs(s-this.heightMetrics(e,t).perLine)>=rY)rB=true;return rG(this,a)}if(r||this.outdated){this.setHeight(e.heightForGap(t,t+this.length));this.outdated=false}return this}toString(){return`gap(${this.length})`}}class r0 extends rU{constructor(e,t,r){super(e.length+t+r.length,e.height+r.height,t|(e.outdated||r.outdated?2:0));this.left=e;this.right=r;this.size=e.size+r.size}get break(){return 1&this.flags}blockAt(e,t,r,n){let i=r+this.left.height;return e<i?this.left.blockAt(e,t,r,n):this.right.blockAt(e,t,i,n+this.left.length+this.break)}lineAt(e,t,r,n,i){let o=n+this.left.height,s=i+this.left.length+this.break;let a=t==rW.ByHeight?e<o:e<s;let l=a?this.left.lineAt(e,t,r,n,i):this.right.lineAt(e,t,r,o,s);if(this.break||(a?l.to<s:l.from>s))return l;let u=t==rW.ByPosNoHeight?rW.ByPosNoHeight:rW.ByPos;
11if(a)return l.join(this.right.lineAt(s,u,r,o,s));return this.left.lineAt(s,u,r,n,i).join(l)}forEachLine(e,t,r,n,i,o){let s=n+this.left.height,a=i+this.left.length+this.break;if(this.break){if(e<a)this.left.forEachLine(e,t,r,n,i,o);if(t>=a)this.right.forEachLine(e,t,r,s,a,o)}else{let l=this.lineAt(a,rW.ByPos,r,n,i);if(e<l.from)this.left.forEachLine(e,l.from-1,r,n,i,o);if(l.to>=e&&l.from<=t)o(l);if(t>l.to)this.right.forEachLine(l.to+1,t,r,s,a,o)}}replace(e,t,r){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,r));let i=[];if(e>0)this.decomposeLeft(e,i);let o=i.length;for(let e of r)i.push(e);if(e>0)r1(i,o-1);if(t<this.length){let e=i.length;this.decomposeRight(t,i);r1(i,e)}return rU.of(i)}decomposeLeft(e,t){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,t);t.push(this.left);if(this.break){r++;if(e>=r)t.push(null)}if(e>r)this.right.decomposeLeft(e-r,t)}decomposeRight(e,t){let r=this.left.length,n=r+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);if(e<r)this.left.decomposeRight(e,t);if(this.break&&e<n)t.push(null);t.push(this.right)}balanced(e,t){if(e.size>2*t.size||t.size>2*e.size)return rU.of(this.break?[e,null,t]:[e,t]);this.left=rG(this.left,e);this.right=rG(this.right,t);this.setHeight(e.height+t.height);this.outdated=e.outdated||t.outdated;this.size=e.size+t.size;this.length=e.length+this.break+t.length;return this}updateHeight(e,t=0,r=false,n){let{left:i,right:o}=this,s=t+i.length+this.break,a=null;if(n&&n.from<=t+i.length&&n.more)a=i=i.updateHeight(e,t,r,n);else i.updateHeight(e,t,r);if(n&&n.from<=s+o.length&&n.more)a=o=o.updateHeight(e,s,r,n);else o.updateHeight(e,s,r);if(a)return this.balanced(i,o);this.height=this.left.height+this.right.height;this.outdated=false;return this}toString(){return this.left+(this.break?" ":"-")+this.right}}function r1(e,t){let r,n;if(null==e[t]&&(r=e[t-1])instanceof rJ&&(n=e[t+1])instanceof rJ)e.splice(t-1,3,new rJ(r.length+1+n.length))}const r2=5;class r5{constructor(e,t){this.pos=e;this.oracle=t;this.nodes=[];this.lineStart=-1;this.lineEnd=-1;this.covering=null;this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];if(r instanceof rK)r.length+=e-this.pos;else if(e>this.pos||!this.isCovered)this.nodes.push(new rK(e-this.pos,-1,0));this.writtenTo=e;if(t>e){this.nodes.push(null);this.writtenTo++;this.lineStart=-1}}this.pos=t}point(e,t,r){if(e<t||r.heightRelevant){let n=r.widget?r.widget.estimatedHeight:0;let i=r.widget?r.widget.lineBreaks:0;if(n<0)n=this.oracle.lineHeight;let o=t-e;if(r.block)this.addBlock(new rH(o,n,r));else if(o||i||n>=r2)this.addLineDeco(n,i,o)}else if(t>e)this.span(e,t);if(this.lineEnd>-1&&this.lineEnd<this.pos)this.lineEnd=this.oracle.doc.lineAt(this.pos).to}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e;this.lineEnd=t;if(this.writtenTo<e){if(this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])this.nodes.push(this.blankContent(this.writtenTo,e-1));this.nodes.push(null)}if(this.pos>e)this.nodes.push(new rK(this.pos-e,-1,0));this.writtenTo=this.pos}blankContent(e,t){let r=new rJ(t-e);if(this.oracle.doc.lineAt(e).to==t)r.flags|=4;return r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof rK)return e;let t=new rK(0,-1,0);this.nodes.push(t);return t}addBlock(e){this.enterLine();let t=e.deco;if(t&&t.startSide>0&&!this.isCovered)this.ensureLine();this.nodes.push(e);this.writtenTo=this.pos=this.pos+e.length;if(t&&t.endSide>0)this.covering=e}addLineDeco(e,t,r){let n=this.ensureLine();n.length+=r;n.collapsed+=r;n.widgetHeight=Math.max(n.widgetHeight,e);n.breaks+=t;this.writtenTo=this.pos=this.pos+r}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];if(!(this.lineStart>-1)||t instanceof rK||this.isCovered){if(this.writtenTo<this.pos||null==t)this.nodes.push(this.blankContent(this.writtenTo,this.pos))}else this.nodes.push(new rK(0,-1,0));let r=e;for(let e of this.nodes){if(e instanceof rK)e.updateHeight(this.oracle,r);r+=e?e.length:1}return this.nodes}static build(e,t,r,i){let o=new r5(r,e);n.RangeSet.spans(t,r,i,o,0);return o.finish(r)}}function r3(e,t,r){let i=new r4;n.RangeSet.compare(e,t,r,i,0);return i.changes}class r4{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,r,n){if(e<t||r&&r.heightRelevant||n&&n.heightRelevant)C(e,t,this.changes,5)}}function r8(e,t){let r=e.getBoundingClientRect();let n=e.ownerDocument,i=n.defaultView||window;let o=Math.max(0,r.left),s=Math.min(i.innerWidth,r.right);let a=Math.max(0,r.top),l=Math.min(i.innerHeight,r.bottom);for(let t=e.parentNode;t&&t!=n.body;)if(1==t.nodeType){let r=t;let n=window.getComputedStyle(r);
11if((r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth)&&"visible"!=n.overflow){let n=r.getBoundingClientRect();o=Math.max(o,n.left);s=Math.min(s,n.right);a=Math.max(a,n.top);l=Math.min(t==e.parentNode?i.innerHeight:l,n.bottom)}t="absolute"==n.position||"fixed"==n.position?r.offsetParent:r.parentNode}else if(11==t.nodeType)t=t.host;else break;return{left:o-r.left,right:Math.max(o,s)-r.left,top:a-(r.top+t),bottom:Math.max(a,l)-(r.top+t)}}function r6(e){let t=e.getBoundingClientRect(),r=e.ownerDocument.defaultView||window;return t.left<r.innerWidth&&t.right>0&&t.top<r.innerHeight&&t.bottom>0}function r7(e,t){let r=e.getBoundingClientRect();return{left:0,right:r.right-r.left,top:t,bottom:r.bottom-(r.top+t)}}class r9{constructor(e,t,r,n){this.from=e;this.to=t;this.size=r;this.displaySize=n}static same(e,t){if(e.length!=t.length)return false;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n.from!=i.from||n.to!=i.to||n.size!=i.size)return false}return true}draw(e,t){return Q.replace({widget:new ne(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class ne extends k{constructor(e,t){super();this.size=e;this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");if(this.vertical)e.style.height=this.size+"px";else{e.style.width=this.size+"px";e.style.height="2px";e.style.display="inline-block"}return e}get estimatedHeight(){return this.vertical?this.size:-1}}class nt{constructor(e){this.state=e;this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0};this.inView=true;this.paddingTop=0;this.paddingBottom=0;this.contentDOMWidth=0;this.contentDOMHeight=0;this.editorHeight=0;this.editorWidth=0;this.scrollTop=0;this.scrolledToBottom=false;this.scaleX=1;this.scaleY=1;this.scrollAnchorPos=0;this.scrollAnchorHeight=-1;this.scaler=na;this.scrollTarget=null;this.printing=false;this.mustMeasureContent=true;this.defaultTextDirection=t.Direction.LTR;this.visibleRanges=[];this.mustEnforceCursorAssoc=false;let r=e.facet(eF).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new rI(r);this.stateDeco=nl(e);this.heightMap=rU.empty().applyChanges(this.stateDeco,n.Text.empty,this.heightOracle.setDoc(e.doc),[new e8(0,0,0,e.doc.length)]);for(let e=0;e<2;e++){this.viewport=this.getViewport(0,null);if(!this.updateForViewport())break}this.updateViewportLines();this.lineGaps=this.ensureLineGaps([]);this.lineGapDeco=Q.set(this.lineGaps.map(e=>e.draw(this,false)));this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let r=0;r<=1;r++){let n=r?t.head:t.anchor;if(!e.some(({from:e,to:t})=>n>=e&&n<=t)){let{from:t,to:r}=this.lineBlockAt(n);e.push(new nr(t,r))}}this.viewports=e.sort((e,t)=>e.from-t.from);return this.updateScaler()}updateScaler(){let e=this.scaler;this.scaler=this.heightMap.height<=7e6?na:new nu(this.heightOracle,this.heightMap,this.viewports);return e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[];this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(nf(e,this.scaler))})}update(e,t=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=nl(this.state);let i=e.changedRanges;let o=e8.extendWithRanges(i,r3(r,this.stateDeco,e?e.changes:n.ChangeSet.empty(this.state.doc.length)));let s=this.heightMap.height;let a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);rz();this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o);if(this.heightMap.height!=s||rB)e.flags|=2;if(a){this.scrollAnchorPos=e.changes.mapPos(a.from,-1);this.scrollAnchorHeight=a.top}else{this.scrollAnchorPos=-1;this.scrollAnchorHeight=s}let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;if(t&&(t.range.head<l.from||t.range.head>l.to)||!this.viewportIsAppropriate(l))l=this.getViewport(0,t);let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l;e.flags|=this.updateForViewport();if(u||!e.changes.empty||2&e.flags)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes)));e.flags|=this.computeVisibleRanges(e.changes);if(t)this.scrollTarget=t;
11if(!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(eZ))this.mustEnforceCursorAssoc=true}measure(e){let r=e.contentDOM,i=window.getComputedStyle(r);let o=this.heightOracle;let s=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?t.Direction.RTL:t.Direction.LTR;let a=this.heightOracle.mustRefreshForWrapping(s)||this.mustMeasureContent;let l=r.getBoundingClientRect();let u=a||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height;this.mustMeasureContent=false;let f=0,c=0;if(l.width&&l.height){let{scaleX:e,scaleY:t}=V(r,l);if(e>.005&&Math.abs(this.scaleX-e)>.005||t>.005&&Math.abs(this.scaleY-t)>.005){this.scaleX=e;this.scaleY=t;f|=16;a=u=true}}let h=(parseInt(i.paddingTop)||0)*this.scaleY;let d=(parseInt(i.paddingBottom)||0)*this.scaleY;if(this.paddingTop!=h||this.paddingBottom!=d){this.paddingTop=h;this.paddingBottom=d;f|=18}if(this.editorWidth!=e.scrollDOM.clientWidth){if(o.lineWrapping)u=true;this.editorWidth=e.scrollDOM.clientWidth;f|=16}let p=e.scrollDOM.scrollTop*this.scaleY;if(this.scrollTop!=p){this.scrollAnchorHeight=-1;this.scrollTop=p}this.scrolledToBottom=er(e.scrollDOM);let g=(this.printing?r7:r8)(r,this.paddingTop);let m=g.top-this.pixelViewport.top,O=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let v=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(v!=this.inView){this.inView=v;if(v)u=true}if(!this.inView&&!this.scrollTarget&&!r6(e.dom))return 0;let y=l.width;if(this.contentDOMWidth!=y||this.editorHeight!=e.scrollDOM.clientHeight){this.contentDOMWidth=l.width;this.editorHeight=e.scrollDOM.clientHeight;f|=16}if(u){let t=e.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(t))a=true;if(a||o.lineWrapping&&Math.abs(y-this.contentDOMWidth)>o.charWidth){let{lineHeight:r,charWidth:n,textHeight:i}=e.docView.measureTextSize();a=r>0&&o.refresh(s,r,n,i,Math.max(5,y/n),t);
11if(a){e.docView.minWidth=0;f|=16}}if(m>0&&O>0)c=Math.max(m,O);else if(m<0&&O<0)c=Math.min(m,O);rz();for(let r of this.viewports){let i=r.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(r);this.heightMap=(a?rU.empty().applyChanges(this.stateDeco,n.Text.empty,this.heightOracle,[new e8(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(o,0,a,new rN(r.from,i))}if(rB)f|=2}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);if(b){if(2&f)f|=this.updateScaler();this.viewport=this.getViewport(c,this.scrollTarget);f|=this.updateForViewport()}if(2&f||b)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e));f|=this.computeVisibleRanges();if(this.mustEnforceCursorAssoc){this.mustEnforceCursorAssoc=false;e.docView.enforceCursorAssoc()}return f}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2));let n=this.heightMap,i=this.heightOracle;let{visibleTop:o,visibleBottom:s}=this;let a=new nr(n.lineAt(o-1e3*r,rW.ByHeight,i,0,0).from,n.lineAt(s+(1-r)*1e3,rW.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let r=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top);let o=n.lineAt(e,rW.ByPos,i,0,0),s;s="center"==t.y?(o.top+o.bottom)/2-r/2:"start"==t.y||"nearest"==t.y&&e<a.from?o.top:o.bottom-r;a=new nr(n.lineAt(s-500,rW.ByHeight,i,0,0).from,n.lineAt(s+r+500,rW.ByHeight,i,0,0).to)}}return a}mapViewport(e,t){let r=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new nr(this.heightMap.lineAt(r,rW.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,rW.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},r=0){if(!this.inView)return true;let{top:n}=this.heightMap.lineAt(e,rW.ByPos,this.heightOracle,0,0);let{bottom:i}=this.heightMap.lineAt(t,rW.ByPos,this.heightOracle,0,0);let{visibleTop:o,visibleBottom:s}=this;return(0==e||n<=o-Math.max(10,Math.min(-r,250)))&&(t==this.state.doc.length||i>=s+Math.max(10,Math.min(r,250)))&&n>o-2e3&&i<s+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let r=[];for(let n of e)if(!t.touchesRange(n.from,n.to))r.push(new r9(t.mapPos(n.from),t.mapPos(n.to),n.size,n.displaySize));return r}ensureLineGaps(e,r){let i=this.heightOracle.lineWrapping;let o=i?1e4:2e3,s=o>>1,a=o<<1;if(this.defaultTextDirection!=t.Direction.LTR&&!i)return[];let l=[];let u=(t,o,a,f)=>{if(o-t<s)return;let c=this.state.selection.main,h=[c.from];if(!c.empty)h.push(c.to);for(let e of h)if(e>t&&e<o){u(t,e-10,a,f);u(e+10,o,a,f);return}let d=ns(e,e=>e.from>=a.from&&e.to<=a.to&&Math.abs(e.from-t)<s&&Math.abs(e.to-o)<s&&!h.some(t=>e.from<t&&e.to>t));if(!d){if(o<a.to&&r&&i&&r.visibleRanges.some(e=>e.from<=o&&e.to>=o)){let e=r.moveToLineBoundary(n.EditorSelection.cursor(o),false,true).head;if(e>t)o=e}let e=this.gapSize(a,t,o,f);let s=i||e<2e6?e:2e6;d=new r9(t,o,e,s)}l.push(d)};let f=r=>{if(r.length<a||r.type!=t.BlockType.Text)return;let n=nn(r.from,r.to,this.stateDeco);if(n.total<a)return;let s=this.scrollTarget?this.scrollTarget.range.head:null;let l,f;if(i){let e=o/this.heightOracle.lineLength*this.heightOracle.lineHeight;let t,i;if(null!=s){let o=no(n,s);let a=((this.visibleBottom-this.visibleTop)/2+e)/r.height;t=o-a;i=o+a}else{t=(this.visibleTop-r.top-e)/r.height;i=(this.visibleBottom-r.top+e)/r.height}l=ni(n,t);f=ni(n,i)}else{let t=n.total*this.heightOracle.charWidth;let i=o*this.heightOracle.charWidth;let a=0;if(t>2e6){for(let t of e)if(t.from>=r.from&&t.from<r.to&&t.size!=t.displaySize&&t.from*this.heightOracle.charWidth+a<this.pixelViewport.left)a=t.size-t.displaySize}let u=this.pixelViewport.left+a,c=this.pixelViewport.right+a;let h,d;if(null!=s){let e=no(n,s);let r=((c-u)/2+i)/t;h=e-r;d=e+r}else{h=(u-i)/t;d=(c+i)/t}l=ni(n,h);f=ni(n,d)}if(l>r.from)u(r.from,l,r,n);if(f<r.to)u(f,r.to,r,n)};for(let e of this.viewportLines)if(Array.isArray(e.type))e.type.forEach(f);else f(e);return l}gapSize(e,t,r,n){let i=no(n,r)-no(n,t);if(this.heightOracle.lineWrapping)return e.height*i;return n.total*this.heightOracle.charWidth*i}updateLineGaps(e){if(!r9.same(e,this.lineGaps)){this.lineGaps=e;this.lineGapDeco=Q.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping)))}}computeVisibleRanges(e){let t=this.stateDeco;if(this.lineGaps.length)t=t.concat(this.lineGapDeco);let r=[];n.RangeSet.spans(t,this.viewport.from,this.viewport.to,{span(e,t){r.push({from:e,to:t})}
11,point(){}},20);let i=0;if(r.length!=this.visibleRanges.length)i=12;else for(let t=0;t<r.length&&!(8&i);t++){let n=this.visibleRanges[t],o=r[t];if(n.from!=o.from||n.to!=o.to){i|=4;if(!(e&&e.mapPos(n.from,-1)==o.from&&e.mapPos(n.to,1)==o.to))i|=8}}this.visibleRanges=r;return i}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||nf(this.heightMap.lineAt(e,rW.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||nf(this.heightMap.lineAt(this.scaler.fromDOM(e),rW.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return nf(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class nr{constructor(e,t){this.from=e;this.to=t}}function nn(e,t,r){let i=[],o=e,s=0;n.RangeSet.spans(r,e,t,{span(){},point(e,t){if(e>o){i.push({from:o,to:e});s+=e-o}o=t}},20);if(o<t){i.push({from:o,to:t});s+=t-o}return{total:s,ranges:i}}function ni({total:e,ranges:t},r){if(r<=0)return t[0].from;if(r>=1)return t[t.length-1].to;let n=Math.floor(e*r);for(let e=0;;e++){let{from:r,to:i}=t[e],o=i-r;if(n<=o)return r+n;n-=o}}function no(e,t){let r=0;for(let{from:n,to:i}of e.ranges){if(t<=i){r+=t-n;break}r+=i-n}return r/e.total}function ns(e,t){for(let r of e)if(t(r))return r}const na={toDOM(e){return e},fromDOM(e){return e},scale:1,eq(e){return e==this}};function nl(e){let t=e.facet(eH).filter(e=>"function"!=typeof e);let r=e.facet(eJ).filter(e=>"function"!=typeof e);if(r.length)t.push(n.RangeSet.join(r));return t}class nu{constructor(e,t,r){let n=0,i=0,o=0;this.viewports=r.map(({from:r,to:i})=>{let o=t.lineAt(r,rW.ByPos,e,0,0).top;let s=t.lineAt(i,rW.ByPos,e,0,0).bottom;n+=s-o;return{from:r,to:i,top:o,bottom:s,domTop:0,domBottom:0}});this.scale=(7e6-n)/(t.height-n);for(let e of this.viewports){e.domTop=o+(e.top-i)*this.scale;o=e.domBottom=e.domTop+(e.bottom-e.top);i=e.bottom}}toDOM(e){for(let t=0,r=0,n=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return n+(e-r)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);r=i.bottom;n=i.domBottom}}fromDOM(e){for(let t=0,r=0,n=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return r+(e-n)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);r=i.bottom;n=i.domBottom}}eq(e){if(!(e instanceof nu))return false;return this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,r)=>t.from==e.viewports[r].from&&t.to==e.viewports[r].to)}}function nf(e,t){if(1==t.scale)return e;let r=t.toDOM(e.top),n=t.toDOM(e.bottom);return new rV(e.from,e.length,r,n-r,Array.isArray(e._content)?e._content.map(e=>nf(e,t)):e._content)}const nc=n.Facet.define({combine:e=>e.join(" ")});const nh=n.Facet.define({combine:e=>e.indexOf(true)>-1});const nd=i.StyleModule.newName(),np=i.StyleModule.newName(),ng=i.StyleModule.newName();const nm={"&light":"."+np,"&dark":"."+ng};function nO(e,t,r){return new i.StyleModule(t,{finish(t){return/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!r||!r[t])throw new RangeError(`Unsupported selector: ${t}`);return r[t]}):e+" "+t}})}const nv=nO("."+nd,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}}
vendor: 4,701 bytes, line 11
11,"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},nm);const ny={childList:true,characterData:true,subtree:true,attributes:true,characterDataOldValue:true};const nb=v.ie&&v.ie_version<=11;class nw{constructor(e){this.view=e;this.active=false;this.editContext=null;this.selectionRange=new U;this.selectionChanged=false;this.delayedFlush=-1;this.resizeTimeout=-1;this.queue=[];this.delayedAndroidKey=null;this.flushingAndroidKey=-1;this.lastChange=0;this.scrollTargets=[];this.intersection=null;this.resizeScroll=null;this.intersecting=false;this.gapIntersection=null;this.gaps=[];this.printQuery=null;this.parentCheck=-1;this.dom=e.contentDOM;this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);if((v.ie&&v.ie_version<=11||v.ios&&e.composing)&&t.some(e=>
11"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))this.flushSoon();else this.flush()});if(window.EditContext&&v.android&&false!==e.constructor.EDIT_CONTEXT&&!(v.chrome&&v.chrome_version<126)){this.editContext=new nk(e);if(e.state.facet(eN))e.contentDOM.editContext=this.editContext.editContext}if(nb)this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue});this.flushSoon()};this.onSelectionChange=this.onSelectionChange.bind(this);this.onResize=this.onResize.bind(this);this.onPrint=this.onPrint.bind(this);this.onScroll=this.onScroll.bind(this);if(window.matchMedia)this.printQuery=window.matchMedia("print");if("function"==typeof ResizeObserver){this.resizeScroll=new ResizeObserver(()=>{var e;if((null==(e=this.view.docView)?void 0:e.lastUpdate)<Date.now()-75)this.onResize()});this.resizeScroll.observe(e.scrollDOM)}this.addWindowListeners(this.win=e.win);this.start();if("function"==typeof IntersectionObserver){this.intersection=new IntersectionObserver(e=>{if(this.parentCheck<0)this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3);if(e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting){this.intersecting=!this.intersecting;if(this.intersecting!=this.view.inView)this.onScrollChanged(document.createEvent("Event"))}},{threshold:[0,.001]});this.intersection.observe(this.dom);this.gapIntersection=new IntersectionObserver(e=>{if(e.length>0&&e[e.length-1].intersectionRatio>0)this.onScrollChanged(document.createEvent("Event"))},{})}this.listenForScroll();this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e);if(this.intersecting)this.view.measure()}onScroll(e){if(this.intersecting)this.flush(false);if(this.editContext)this.view.requestMeasure(this.editContext.measureReq);this.onScrollChanged(e)}onResize(){if(this.resizeTimeout<0)this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1;this.view.requestMeasure()},50)}onPrint(e){if(("change"==e.type||!e.type)&&!e.matches)return;this.view.viewState.printing=true;this.view.measure();setTimeout(()=>{this.view.viewState.printing=false;this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,r)=>t!=e[r]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,n=this.selectionRange;if(r.state.facet(eN)?r.root.activeElement!=this.dom:!D(this.dom,n))return;let i=n.anchorNode&&r.docView.tile.nearest(n.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(e)){if(!t)this.selectionChanged=false;return}if((v.ie&&v.ie_version<=11||v.android&&v.chrome)&&!r.state.selection.main.empty&&n.focusNode&&Z(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset))this.flushSoon();else this.flush(false)}readSelectionRange(){let{view:e}=this;let t=M(e.root);if(!t)return false;let r=v.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&n_(this.view,t)||t;if(!r||this.selectionRange.eq(r))return false;let n=D(this.dom,r);if(n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&et(this.dom,r)){this.view.inputState.lastFocusTime=0;e.docView.updateSelection();return false}this.selectionRange.setRange(r);if(n)this.selectionChanged=true;return true}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset);this.selectionChanged=false}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let r=this.dom;r;)if(1==r.nodeType){if(!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==r)e++;else if(!t)t=this.scrollTargets.slice(0,e);if(t)t.push(r);r=r.assignedSlot||r.parentNode}else if(11==r.nodeType)r=r.host;else break;if(e<this.scrollTargets.length&&!t)t=this.scrollTargets.slice(0,e);if(t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{this.stop();return e()}finally{this.start();this.clear()}}
11start(){if(this.active)return;this.observer.observe(this.dom,ny);if(nb)this.dom.addEventListener("DOMCharacterDataModified",this.onCharData);this.active=true}stop(){if(!this.active)return;this.active=false;this.observer.disconnect();if(nb)this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData)}clear(){this.processRecords();this.queue.length=0;this.selectionChanged=false}delayAndroidKey(e,t){var r;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;if(e){this.clearDelayedAndroidKey();this.view.inputState.lastKeyCode=e.keyCode;this.view.inputState.lastKeyTime=Date.now();let t=this.flush();if(!t&&e.force)J(this.dom,e.key,e.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}if(!this.delayedAndroidKey||"Enter"==e)this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null==(r=this.delayedAndroidKey)?void 0:r.force)}}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey);this.delayedAndroidKey=null;this.flushingAndroidKey=-1}flushSoon(){if(this.delayedFlush<0)this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1;this.flush()})}forceFlush(){if(this.delayedFlush>=0){this.view.win.cancelAnimationFrame(this.delayedFlush);this.delayedFlush=-1}this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();if(e.length)this.queue=[];let t=-1,r=-1,n=false;for(let i of e){let e=this.readMutation(i);if(e){if(e.typeOver)n=true;if(-1==t)({from:t,to:r}=e);else{t=Math.min(e.from,t);r=Math.max(e.to,r)}}}return{from:t,to:r,typeOver:n}}readChange(){let{from:e,to:t,typeOver:r}=this.processRecords();let n=this.selectionChanged&&D(this.dom,this.selectionRange);if(e<0&&!n)return null;if(e>-1)this.lastChange=Date.now();this.view.inputState.lastFocusTime=0;this.selectionChanged=false;let i=new t3(this.view,e,t,r);this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null};return i}flush(e=true){if(this.delayedFlush>=0||this.delayedAndroidKey)return false;if(e)this.readSelectionRange();let t=this.readChange();if(!t){this.view.requestMeasure();return false}let r=this.view.state;let n=t8(this.view,t);if(this.view.state==r&&(t.domChanged||t.newSel&&!rr(this.view.state.selection,t.newSel.main)))this.view.update([]);return n}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;t.markDirty("attributes"==e.type);if("childList"==e.type){let r=nx(t,e.previousSibling||e.target.previousSibling,-1);let n=nx(t,e.nextSibling||e.target.nextSibling,1);return{from:r?t.posAfter(r):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:false}}if("characterData"==e.type)return{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue};return null}setWindow(e){if(e!=this.win){this.removeWindowListeners(this.win);this.win=e;this.addWindowListeners(this.win)}}addWindowListeners(e){e.addEventListener("resize",this.onResize);
11if(this.printQuery)if(this.printQuery.addEventListener)this.printQuery.addEventListener("change",this.onPrint);else this.printQuery.addListener(this.onPrint);else e.addEventListener("beforeprint",this.onPrint);e.addEventListener("scroll",this.onScroll);e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll);e.removeEventListener("resize",this.onResize);if(this.printQuery)if(this.printQuery.removeEventListener)this.printQuery.removeEventListener("change",this.onPrint);else this.printQuery.removeListener(this.onPrint);else e.removeEventListener("beforeprint",this.onPrint);e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){if(this.editContext){this.editContext.update(e);if(e.startState.facet(eN)!=e.state.facet(eN))e.view.contentDOM.editContext=e.state.facet(eN)?this.editContext.editContext:null}}destroy(){var e,t,r;this.stop();null==(e=this.intersection)||e.disconnect();null==(t=this.gapIntersection)||t.disconnect();null==(r=this.resizeScroll)||r.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win);clearTimeout(this.parentCheck);clearTimeout(this.resizeTimeout);this.win.cancelAnimationFrame(this.delayedFlush);this.win.cancelAnimationFrame(this.flushingAndroidKey);if(this.editContext){this.view.contentDOM.editContext=null;this.editContext.destroy()}}}function nx(e,t,r){while(t){let n=e9.get(t);if(n&&n.parent==e)return n;let i=t.parentNode;t=i!=e.dom?i:r>0?t.nextSibling:t.previousSibling}return null}function nS(e,t){let r=t.startContainer,n=t.startOffset;let i=t.endContainer,o=t.endOffset;let s=e.docView.domAtPos(e.state.selection.main.anchor,1);if(Z(s.node,s.offset,i,o))[r,n,i,o]=[i,o,r,n];return{anchorNode:r,anchorOffset:n,focusNode:i,focusOffset:o}}function n_(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return nS(e,r)}let r=null;function n(e){e.preventDefault();e.stopImmediatePropagation();r=e.getTargetRanges()[0]}e.contentDOM.addEventListener("beforeinput",n,true);e.dom.ownerDocument.execCommand("indent");e.contentDOM.removeEventListener("beforeinput",n,true);return r?nS(e,r):null}class nk{constructor(e){this.from=0;this.to=0;this.pendingContextChange=null;this.handlers=Object.create(null);this.composing=null;this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=r=>{let i=e.state.selection.main,{anchor:o,head:s}=i;let a=this.toEditorPos(r.updateRangeStart),l=this.toEditorPos(r.updateRangeEnd);if(e.inputState.composing>=0&&!this.composing)this.composing={contextBase:r.updateRangeStart,editorBase:a,drifted:false};let u=l-a>r.text.length;if(a==this.from&&o<this.from)a=o;else if(l==this.to&&o>this.to)l=o;let f=t9(e.state.sliceDoc(a,l),r.text,(u?i.from:i.to)-a,u?"end":null);if(!f){let t=n.EditorSelection.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));if(!rr(t,i))e.dispatch({selection:t,userEvent:"select"});return}let c={from:f.from+a,to:f.toA+a,insert:n.Text.of(r.text.slice(f.from,f.toB).split("\n"))};if((v.mac||v.android)&&c.from==s-1&&/^\. ?$/.test(r.text)&&"off"==e.contentDOM.getAttribute("autocorrect"))c={from:a,to:l,insert:n.Text.of([r.text.replace("."," ")])};this.pendingContextChange=c;if(!e.state.readOnly){let t=this.to-this.from+(c.to-c.from+c.insert.length);t6(e,c,n.EditorSelection.single(this.toEditorPos(r.selectionStart,t),this.toEditorPos(r.selectionEnd,t)))}if(this.pendingContextChange){this.revertPending(e.state);this.setSelection(e.state)}if(c.from<c.to&&!c.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,r.updateRangeStart-1),Math.min(t.text.length,r.updateRangeStart+1))))this.handlers.compositionend(r)};this.handlers.characterboundsupdate=r=>{let n=[],i=null;for(let t=this.toEditorPos(r.rangeStart),o=this.toEditorPos(r.rangeEnd);t<o;t++){let r=e.coordsForChar(t);i=r&&new DOMRect(r.left,r.top,r.right-r.left,r.bottom-r.top)||i||new DOMRect;n.push(i)}t.updateCharacterBounds(r.rangeStart,n)};this.handlers.textformatupdate=t=>{let r=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,n=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(n)){let i=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(i<o){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+" ":"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${/thin/i.test(n)?1:2}px`;r.push(Q.mark({attributes:{style:e}}).range(i,o))}}}e.dispatch({effects:ez.of(Q.set(r))})};this.handlers.compositionstart=()=>{if(e.inputState.composing<0){e.inputState.composing=0;e.inputState.compositionFirstChange=true}};this.handlers.compositionend=()=>{e.inputState.composing=-1;e.inputState.compositionFirstChange=null;if(this.composing){let{drifted:t}=this.composing;this.composing=null;if(t)this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=M(e.root);if(t&&t.rangeCount)this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,r=false,n=this.pendingContextChange;e.changes.iterChanges((i,o,s,a,l)=>{if(r)return;let u=l.length-(o-i);if(n&&o>=n.to)if(n.from==i&&n.to==o&&n.insert.eq(l)){n=this.pendingContextChange=null;t+=u;this.to+=u;return}else{n=null;this.revertPending(e.state)}i+=t;o+=t;if(o<=this.from){this.from+=u;this.to+=u}else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+l.length>3e4){r=true;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString());this.to+=u}t+=u});if(n&&!r)this.revertPending(e.state);return!r}update(e){let t=this.pendingContextChange,r=e.startState.selection.main;if(this.composing&&(this.composing.drifted||!e.changes.touchesRange(r.from,r.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))){this.composing.drifted=true;this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)}else if(this.applyEdits(e)&&this.rangeIsValid(e.state)){if(e.docChanged||e.selectionSet||t)this.setSelection(e.state)}else{this.pendingContextChange=null;this.reset(e.state)}if(e.geometryChanged||e.docChanged||e.selectionSet)e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4);this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e);this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to));this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null;this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection;let r=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor)));let n=this.toContextPos(t.head);if(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=n)this.editContext.updateSelection(r,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class nQ{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[];this.pluginMap=new Map;this.editorAttrs={};this.contentAttrs={};this.bidiCache=[];this.destroyed=false;this.updateState=2;this.measureScheduled=-1;this.measureRequests=[];this.contentDOM=document.createElement("div");this.scrollDOM=document.createElement("div");this.scrollDOM.tabIndex=-1;
11this.scrollDOM.className="cm-scroller";this.scrollDOM.appendChild(this.contentDOM);this.announceDOM=document.createElement("div");this.announceDOM.className="cm-announced";this.announceDOM.setAttribute("aria-live","polite");this.dom=document.createElement("div");this.dom.appendChild(this.announceDOM);this.dom.appendChild(this.scrollDOM);if(e.parent)e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(e=>e.forEach(e=>r(e,this)))||(e=>this.update(e));this.dispatch=this.dispatch.bind(this);this._root=e.root||ee(e.parent)||document;this.viewState=new nt(e.state||n.EditorState.create(e));if(e.scrollTo&&e.scrollTo.is(eB))this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state);this.plugins=this.state.facet(eW).map(e=>new eU(e));for(let e of this.plugins)e.update(this);this.observer=new nw(this);this.inputState=new rn(this);this.inputState.ensureHandlers(this.plugins);this.docView=new tQ(this);this.mountStyles();this.updateAttrs();this.updateState=0;this.requestMeasure();if(null==(t=document.fonts)?void 0:t.ready)document.fonts.ready.then(()=>{this.viewState.mustMeasureContent=true;this.requestMeasure()})}dispatch(...e){let t=1==e.length&&e[0]instanceof n.Transaction?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=false,r=false,i;let o=this.state;for(let t of e){if(t.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=t.state}if(this.destroyed){this.viewState.state=o;return}let s=this.hasFocus,a=0,l=null;if(e.some(e=>e.annotation(rR))){this.inputState.notifiedFocused=s;a=1}else if(s!=this.inputState.notifiedFocused){this.inputState.notifiedFocused=s;l=rD(o,s);if(!l)a=1}let u=this.observer.delayedAndroidKey,f=null;if(u){this.observer.clearDelayedAndroidKey();f=this.observer.readChange();if(f&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))f=null}else this.observer.clear();if(o.facet(n.EditorState.phrases)!=this.state.facet(n.EditorState.phrases))return this.setState(o);i=e6.create(this,o,e);i.flags|=a;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(c)c=c.map(t.changes);if(t.scrollIntoView){let{main:e}=t.state.selection;c=new eq(e.empty?e:n.EditorSelection.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)if(e.is(eB))c=e.value.clip(this.state)}this.viewState.update(i,c);this.bidiCache=nA.update(this.bidiCache,i.changes);if(!i.empty){this.updatePlugins(i);this.inputState.update(i)}t=this.docView.update(i);if(this.state.facet(e4)!=this.styleModules)this.mountStyles();r=this.updateAttrs();this.showAnnouncements(e);this.docView.updateSelection(t,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(nc)!=i.state.facet(nc))this.viewState.mustMeasureContent=true;if(t||r||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)this.requestMeasure();if(t)this.docViewUpdate();if(!i.empty)for(let e of this.state.facet(eC))try{e(i)}catch(e){eI(this.state,e,"update listener")}if(l||f)Promise.resolve().then(()=>{if(l&&this.state==l.startState)this.dispatch(l);if(f){if(!t8(this,f)&&u.force)J(this.contentDOM,u.key,u.keyCode)}})}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new nt(e);this.plugins=e.facet(eW).map(e=>new eU(e));this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy();this.docView=new tQ(this);this.inputState.ensureHandlers(this.plugins);this.mountStyles();this.updateAttrs();this.bidiCache=[]}finally{this.updateState=0}if(t)this.focus();this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(eW),r=e.state.facet(eW);if(t!=r){let n=[];for(let i of r){let r=t.indexOf(i);if(r<0)n.push(new eU(i));else{let t=this.plugins[r];t.mustUpdate=e;n.push(t)}}for(let t of this.plugins)if(t.mustUpdate!=e)t.destroy(this);this.plugins=n;this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);if(t!=r)this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){eI(this.state,e,"doc view update listener")}}}measure(e=true){if(this.destroyed)return;if(this.measureScheduled>-1)this.win.cancelAnimationFrame(this.measureScheduled);if(this.observer.delayedAndroidKey){this.measureScheduled=-1;this.requestMeasure();return}this.measureScheduled=0;if(e)this.observer.forceFlush();let t=null;let r=this.scrollDOM,n=r.scrollTop*this.scaleY;let{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;if(Math.abs(n-this.viewState.scrollTop)>1)o=-1;this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(er(r)){i=-1;o=this.viewState.heightMap.height}else{let e=this.viewState.scrollAnchorAt(n);i=e.from;o=e.top}this.updateState=1;let s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];
11if(!(4&s))[this.measureRequests,a]=[a,this.measureRequests];let l=a.map(e=>{try{return e.read(this)}catch(e){eI(this.state,e);return nT}});let u=e6.create(this,this.state,[]),f=false;u.flags|=s;if(t)t.flags|=s;else t=u;this.updateState=2;if(!u.empty){this.updatePlugins(u);this.inputState.update(u);this.updateAttrs();f=this.docView.update(u);if(f)this.docViewUpdate()}for(let e=0;e<a.length;e++)if(l[e]!=nT)try{let t=a[e];if(t.write)t.write(l[e],this)}catch(e){eI(this.state,e)}if(f)this.docView.updateSelection(true);if(!u.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget);this.viewState.scrollTarget=null;o=-1;continue}else{let e=i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top;let t=e-o;if(t>1||t<-1){n+=t;r.scrollTop=n/this.scaleY;o=-1;continue}}break}}}finally{this.updateState=0;this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(eC))e(t)}get themeClasses(){return nd+" "+(this.state.facet(nh)?ng:np)+" "+this.state.facet(nc)}updateAttrs(){let e=n$(this,eG,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses});let t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(eN)?"true":"false",class:"cm-content",style:`${v.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};if(this.state.readOnly)t["aria-readonly"]="true";n$(this,eF,t);let r=this.observer.ignore(()=>{let r=S(this.contentDOM,this.contentAttrs,t);let n=S(this.dom,this.editorAttrs,e);return r||n});this.editorAttrs=e;this.contentAttrs=t;return r}showAnnouncements(e){let t=true;for(let r of e)for(let e of r.effects)if(e.is(nQ.announce)){if(t)this.announceDOM.textContent="";t=false;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(e4);let e=this.state.facet(nQ.cspNonce);i.StyleModule.mount(this.root,this.styleModules.concat(nv).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");if(0==this.updateState&&this.measureScheduled>-1)this.measure(false)}requestMeasure(e){if(this.measureScheduled<0)this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure());if(e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);if(void 0===t||t&&t.plugin!=e)this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null);return t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){this.readMeasured();return this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){this.readMeasured();return this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,r){return tU(this,e,tI(this,e,t,r))}moveByGroup(e,t){return tU(this,e,tI(this,e,t,t=>tN(this,e.head,t)))}visualLineSide(e,t){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from);let o=r[t?r.length-1:0];return n.EditorSelection.cursor(o.side(t,i)+e.from,o.forward(!t,i)?1:-1)}moveToLineBoundary(e,t,r=true){return tz(this,e,t,r)}moveVertically(e,t,r){return tU(this,e,tV(this,e,t,r))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=true){this.readMeasured();let r=tF(this,e,t);return r&&r.pos}posAndSideAtCoords(e,t=true){this.readMeasured();return tF(this,e,t)}coordsAtPos(e,r=1){this.readMeasured();let n=this.docView.coordsAt(e,r);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),o=this.bidiSpans(i);let s=o[eg.find(o,e-i.from,-1,r)];return I(n,s.dir==t.Direction.LTR==r>0)}coordsForChar(e){this.readMeasured();return this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){let t=this.state.facet(eL);if(!t||e<this.viewport.from||e>this.viewport.to)return this.textDirection;this.readMeasured();return this.docView.textDirectionAt(e)}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>nP)return e_(e.length);let t=this.textDirectionAt(e.from),r;for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t&&(n.fresh||em(n.isolates,r=e2(this,e))))return n.order;if(!r)r=e2(this,e);let n=eS(e.text,t,r);this.bidiCache.push(new nA(e.from,e.to,t,r,true,n));return n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||v.safari&&(null==(e=this.inputState)?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{F(this.contentDOM);this.docView.updateSelection()})}setRoot(e){if(this._root!=e){this._root=e;this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window);this.mountStyles()}}destroy(){if(this.root.activeElement==this.contentDOM)this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[];this.inputState.destroy();this.docView.destroy();this.dom.remove();this.observer.destroy();if(this.measureScheduled>-1)this.win.cancelAnimationFrame(this.measureScheduled);this.destroyed=true}static scrollIntoView(e,t={}){return eB.of(new eq("number"==typeof e?n.EditorSelection.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM;let r=this.viewState.scrollAnchorAt(e);return eB.of(new eq(n.EditorSelection.cursor(r.from),"start","start",r.top-e,t,true))}setTabFocusMode(e){if(null==e)this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1;else if("boolean"==typeof e)this.inputState.tabFocusMode=e?0:-1;else if(0!=this.inputState.tabFocusMode)this.inputState.tabFocusMode=Date.now()+e}static domEventHandlers(e){return eY.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return eY.define(()=>({}),{eventObservers:e})}static theme(e,t){let r=i.StyleModule.newName();let n=[nc.of(r),e4.of(nO(`.${r}`,e))];if(t&&t.dark)n.push(nh.of(true));return n}static baseTheme(e){return n.Prec.lowest(e4.of(nO("."+nd,e,nm)))}static findFromDOM(e){var t;let r=e.querySelector(".cm-content");let n=r&&e9.get(r)||e9.get(e);return(null==(t=null==n?void 0:n.root)?void 0:t.view)||null}}nQ.styleModule=e4;nQ.inputHandler=eE;nQ.clipboardInputFilter=eR;nQ.clipboardOutputFilter=eD;nQ.scrollHandler=eX;nQ.focusChangeEffect=eM;nQ.perLineTextDirection=eL;nQ.exceptionSink=ej;nQ.updateListener=eC;nQ.editable=eN;nQ.mouseSelectionStyle=e$;nQ.dragMovesSelection=eA;nQ.clickAddsSelectionRange=eT;nQ.decorations=eH;nQ.blockWrappers=eK;nQ.outerDecorations=eJ;nQ.atomicRanges=e0;nQ.bidiIsolatedRanges=e1;nQ.scrollMargins=e5;nQ.darkTheme=nh;nQ.cspNonce=n.Facet.define({combine:e=>e.length?e[0]:""});nQ.contentAttributes=eF;nQ.editorAttributes=eG;nQ.lineWrapping=nQ.contentAttributes.of({class:"cm-lineWrapping"});
11nQ.announce=n.StateEffect.define();const nP=4096;const nT={};class nA{constructor(e,t,r,n,i,o){this.from=e;this.to=t;this.dir=r;this.isolates=n;this.fresh=i;this.order=o}static update(e,r){if(r.empty&&!e.some(e=>e.fresh))return e;let n=[],i=e.length?e[e.length-1].dir:t.Direction.LTR;for(let t=Math.max(0,e.length-10);t<e.length;t++){let o=e[t];if(o.dir==i&&!r.touchesRange(o.from,o.to))n.push(new nA(r.mapPos(o.from,1),r.mapPos(o.to,-1),o.dir,o.isolates,false,o.order))}return n}}function n$(e,t,r){for(let n=e.state.facet(t),i=n.length-1;i>=0;i--){let t=n[i],o="function"==typeof t?t(e):t;if(o)y(o,r)}return r}const nj=v.mac?"mac":v.windows?"win":v.linux?"linux":"key";function nC(e,t){const r=e.split(/-(?!$)/);let n=r[r.length-1];if("Space"==n)n=" ";let i,o,s,a;for(let e=0;e<r.length-1;++e){const n=r[e];if(/^(cmd|meta|m)$/i.test(n))a=true;else if(/^a(lt)?$/i.test(n))i=true;else if(/^(c|ctrl|control)$/i.test(n))o=true;else if(/^s(hift)?$/i.test(n))s=true;else if(/^mod$/i.test(n))if("mac"==t)a=true;else o=true;else throw new Error("Unrecognized modifier name: "+n)}if(i)n="Alt-"+n;if(o)n="Ctrl-"+n;if(a)n="Meta-"+n;if(s)n="Shift-"+n;return n}function nE(e,t,r){if(t.altKey)e="Alt-"+e;if(t.ctrlKey)e="Ctrl-"+e;if(t.metaKey)e="Meta-"+e;if(false!==r&&t.shiftKey)e="Shift-"+e;return e}const nM=n.Prec.default(nQ.domEventHandlers({keydown(e,t){return nI(nL(t.state),e,t,"editor")}}));const nR=n.Facet.define({enables:nM});const nD=new WeakMap;function nL(e){let t=e.facet(nR);let r=nD.get(t);if(!r)nD.set(t,r=nB(t.reduce((e,t)=>e.concat(t),[])));return r}function nZ(e,t,r){return nI(nL(e.state),t,e,r)}let nX=null;const nq=4e3;function nB(e,t=nj){let r=Object.create(null);let n=Object.create(null);let i=(e,t)=>{let r=n[e];if(null==r)n[e]=t;else if(r!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")};let o=(e,n,o,s,a)=>{var l,u;let f=r[e]||(r[e]=Object.create(null));let c=n.split(/ (?!$)/).map(e=>nC(e,t));for(let t=1;t<c.length;t++){let r=c.slice(0,t).join(" ");i(r,true);if(!f[r])f[r]={preventDefault:true,stopPropagation:false,run:[t=>{let n=nX={view:t,prefix:r,scope:e};setTimeout(()=>{if(nX==n)nX=null},nq);return true}]}}let h=c.join(" ");i(h,false);let d=f[h]||(f[h]={preventDefault:false,stopPropagation:false,run:(null==(u=null==(l=f._any)?void 0:l.run)?void 0:u.slice())||[]});if(o)d.run.push(o);if(s)d.preventDefault=true;if(a)d.stopPropagation=true};for(let n of e){let e=n.scope?n.scope.split(" "):["editor"];if(n.any)for(let t of e){let e=r[t]||(r[t]=Object.create(null));if(!e._any)e._any={preventDefault:false,stopPropagation:false,run:[]};let{any:i}=n;for(let t in e)e[t].run.push(e=>i(e,nz))}let i=n[t]||n.key;if(i)for(let t of e){o(t,i,n.run,n.preventDefault,n.stopPropagation);if(n.shift)o(t,"Shift-"+i,n.shift,n.preventDefault,n.stopPropagation)}}return r}let nz=null;function nI(e,t,r,i){nz=t;let s=o.keyName(t);let a=n.codePointAt(s,0),l=n.codePointSize(a)==s.length&&" "!=s;let u="",f=false,c=false,h=false;if(nX&&nX.view==r&&nX.scope==i){u=nX.prefix+" ";if(rl.indexOf(t.keyCode)<0){c=true;nX=null}}let d=new Set;let p=e=>{if(e){for(let t of e.run)if(!d.has(t)){d.add(t);if(t(r)){if(e.stopPropagation)h=true;return true}}if(e.preventDefault){if(e.stopPropagation)h=true;c=true}}return false};let g=e[i],m,O;if(g){if(p(g[u+nE(s,t,!l)]))f=true;else if(l&&(t.altKey||t.metaKey||t.ctrlKey)&&!(v.windows&&t.ctrlKey&&t.altKey)&&!(v.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(m=o.base[t.keyCode])&&m!=s){if(p(g[u+nE(m,t,true)]))f=true;else if(t.shiftKey&&(O=o.shift[t.keyCode])!=s&&O!=m&&p(g[u+nE(O,t,false)]))f=true}else if(l&&t.shiftKey&&p(g[u+nE(s,t,true)]))f=true;if(!f&&p(g._any))f=true}if(c)f=true;if(f&&h)t.stopPropagation();nz=null;return f}class nN{constructor(e,t,r,n,i){this.className=e;this.left=t;this.top=r;this.width=n;this.height=i}draw(){let e=document.createElement("div");e.className=this.className;this.adjust(e);return e}update(e,t){if(t.className!=this.className)return false;this.adjust(e);return true}adjust(e){e.style.left=this.left+"px";e.style.top=this.top+"px";if(null!=this.width)e.style.width=this.width+"px";e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,r){if(!r.empty)return nY(e,t,r);{let n=e.coordsAtPos(r.head,r.assoc||1);if(!n)return[];let i=nV(e);return[new nN(t,n.left-i.left,n.top-i.top,null,n.bottom-n.top)]}}}function nV(e){let r=e.scrollDOM.getBoundingClientRect();let n=e.textDirection==t.Direction.LTR?r.left:r.right-e.scrollDOM.clientWidth*e.scaleX;return{left:n-e.scrollDOM.scrollLeft*e.scaleX,top:r.top-e.scrollDOM.scrollTop*e.scaleY}}function nW(e,t,r,n){let i=e.coordsAtPos(t,2*r);if(!i)return n;let o=e.dom.getBoundingClientRect();let s=(i.top+i.bottom)/2;let a=e.posAtCoords({x:o.left+1,y:s});let l=e.posAtCoords({x:o.right-1,y:s});if(null==a||null==l)return n;return{from:Math.max(n.from,Math.min(a,l)),to:Math.min(n.to,Math.max(a,l))}}function nY(e,r,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let i=Math.max(n.from,e.viewport.from),o=Math.min(n.to,e.viewport.to);let s=e.textDirection==t.Direction.LTR;let a=e.contentDOM,l=a.getBoundingClientRect(),u=nV(e);let f=a.querySelector(".cm-line"),c=f&&window.getComputedStyle(f);let h=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0);let d=l.right-(c?parseInt(c.paddingRight):0);let p=tB(e,i,1),g=tB(e,o,-1);let m=p.type==t.BlockType.Text?p:null;let O=g.type==t.BlockType.Text?g:null;if(m&&(e.lineWrapping||p.widgetLineBreaks))m=nW(e,i,1,m);if(O&&(e.lineWrapping||g.widgetLineBreaks))O=nW(e,o,-1,O);if(m&&O&&m.from==O.from&&m.to==O.to)return y(b(n.from,n.to,m));{let r=m?b(n.from,null,m):w(p,false);let i=O?b(null,n.to,O):w(g,true);let o=[];if((m||p).to<(O||g).from-(m&&O?1:0)||p.widgetLineBreaks>1&&r.bottom+e.defaultLineHeight/2<i.top)o.push(v(h,r.bottom,d,i.top));else if(r.bottom<i.top&&e.elementAtHeight((r.bottom+i.top)/2).type==t.BlockType.Text)r.bottom=i.top=(r.bottom+i.top)/2;return y(r).concat(o).concat(y(i))}function v(e,t,n,i){return new nN(r,e-u.left,t-u.top,Math.max(0,n-e),i-t)}function y({top:e,bottom:t,horizontal:r}){let n=[];for(let i=0;i<r.length;i+=2)n.push(v(r[i],e,r[i+1],t));return n}function b(r,n,i){let o=1e9,a=-1e9,l=[];function u(r,n,u,f,c){let p=e.coordsAtPos(r,r==i.to?-2:2);let g=e.coordsAtPos(u,u==i.from?2:-2);if(!p||!g)return;o=Math.min(p.top,g.top,o);a=Math.max(p.bottom,g.bottom,a);if(c==t.Direction.LTR)l.push(s&&n?h:p.left,s&&f?d:g.right);else l.push(!s&&f?h:g.left,!s&&n?d:p.right)}let f=null!=r?r:i.from,c=null!=n?n:i.to;for(let t of e.visibleRanges)if(t.to>f&&t.from<c)for(let i=Math.max(t.from,f),o=Math.min(t.to,c);;){let t=e.state.doc.lineAt(i);for(let s of e.bidiSpans(t)){let e=s.from+t.from,a=s.to+t.from;if(e>=o)break;if(a>i)u(Math.max(e,i),null==r&&e<=f,Math.min(a,o),null==n&&a>=c,s.dir)}i=t.to+1;if(i>=o)break}if(0==l.length)u(f,null==r,c,null==n,e.textDirection);return{top:o,bottom:a,horizontal:l}}function w(e,t){let r=l.top+(t?e.top:e.bottom);return{top:r,bottom:r,horizontal:[]}}}function nU(e,t){return e.constructor==t.constructor&&e.eq(t)}class nG{constructor(e,t){this.view=e;this.layer=t;this.drawn=[];this.scaleX=1;this.scaleY=1;this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)};this.dom=e.scrollDOM.appendChild(document.createElement("div"));this.dom.classList.add("cm-layer");if(t.above)this.dom.classList.add("cm-layer-above");
11if(t.class)this.dom.classList.add(t.class);this.scale();this.dom.setAttribute("aria-hidden","true");this.setOrder(e.state);e.requestMeasure(this.measureReq);if(t.mount)t.mount(this.dom,e)}update(e){if(e.startState.facet(nF)!=e.state.facet(nF))this.setOrder(e.state);if(this.layer.update(e,this.dom)||e.geometryChanged){this.scale();e.view.requestMeasure(this.measureReq)}}docViewUpdate(e){if(false!==this.layer.updateOnDocViewUpdate)e.requestMeasure(this.measureReq)}setOrder(e){let t=0,r=e.facet(nF);while(t<r.length&&r[t]!=this.layer)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;if(e!=this.scaleX||t!=this.scaleY){this.scaleX=e;this.scaleY=t;this.dom.style.transform=`scale(${1/e}, ${1/t})`}}draw(e){if(e.length!=this.drawn.length||e.some((e,t)=>!nU(e,this.drawn[t]))){let t=this.dom.firstChild,r=0;for(let n of e)if(n.update&&t&&n.constructor&&this.drawn[r].constructor&&n.update(t,this.drawn[r])){t=t.nextSibling;r++}else this.dom.insertBefore(n.draw(),t);while(t){let e=t.nextSibling;t.remove();t=e}this.drawn=e;if(v.safari&&v.safari_version>=26)this.dom.style.display=this.dom.firstChild?"":"none"}}destroy(){if(this.layer.destroy)this.layer.destroy(this.dom,this.view);this.dom.remove()}}const nF=n.Facet.define();function nH(e){return[eY.define(t=>new nG(t,e)),nF.of(e)]}const nK=n.Facet.define({combine(e){return n.combineConfig(e,{cursorBlinkRate:1200,drawRangeCursor:true},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function nJ(e={}){return[nK.of(e),n2,n3,n4,eZ.of(true)]}function n0(e){return e.facet(nK)}function n1(e){return e.startState.facet(nK)!=e.state.facet(nK)}const n2=nH({above:true,markers(e){let{state:t}=e,r=t.facet(nK);let i=[];for(let o of t.selection.ranges){let s=o==t.selection.main;if(o.empty||r.drawRangeCursor){let t=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary";let r=o.empty?o:n.EditorSelection.cursor(o.head,o.head>o.anchor?-1:1);for(let n of nN.forRange(e,t,r))i.push(n)}}return i},update(e,t){if(e.transactions.some(e=>e.selection))t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink";let r=n1(e);if(r)n5(e.state,t);return e.docChanged||e.selectionSet||r},mount(e,t){n5(t.state,e)},class:"cm-cursorLayer"});function n5(e,t){t.style.animationDuration=e.facet(nK).cursorBlinkRate+"ms"}const n3=nH({above:false,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:nN.forRange(e,"cm-selectionBackground",t)).reduce((e,t)=>e.concat(t))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||n1(e)},class:"cm-selectionLayer"});const n4=n.Prec.highest(nQ.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}}));const n8=n.StateEffect.define({map(e,t){return null==e?null:t.mapPos(e)}});const n6=n.StateField.define({create(){return null},update(e,t){if(null!=e)e=t.changes.mapPos(e);return t.effects.reduce((e,t)=>t.is(n8)?t.value:e,e)}});const n7=eY.fromClass(class{constructor(e){this.view=e;this.cursor=null;this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let r=e.state.field(n6);if(null==r){if(null!=this.cursor){null==(t=this.cursor)||t.remove();this.cursor=null}}else{if(!this.cursor){this.cursor=this.view.scrollDOM.appendChild(document.createElement("div"));this.cursor.className="cm-dropCursor"}if(e.startState.field(n6)!=r||e.docChanged||e.geometryChanged)this.view.requestMeasure(this.measureReq)}}readPos(){let{view:e}=this;let t=e.state.field(n6);let r=null!=t&&e.coordsAtPos(t);if(!r)return null;let n=e.scrollDOM.getBoundingClientRect();return{left:r.left-n.left+e.scrollDOM.scrollLeft*e.scaleX,top:r.top-n.top+e.scrollDOM.scrollTop*e.scaleY,height:r.bottom-r.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:r}=this.view;if(e){this.cursor.style.left=e.left/t+"px";this.cursor.style.top=e.top/r+"px";this.cursor.style.height=e.height/r+"px"}else this.cursor.style.left="-100000px"}}destroy(){if(this.cursor)this.cursor.remove()}setDropPos(e){if(this.view.state.field(n6)!=e)this.view.dispatch({effects:n8.of(e)}
11)}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){if(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function n9(){return[n6,n7]}function ie(e,t,r,n,i){t.lastIndex=0;for(let o=e.iterRange(r,n),s=r,a;!o.next().done;s+=o.value.length)if(!o.lineBreak)while(a=t.exec(o.value))i(s+a.index,a)}function it(e,t){let r=e.visibleRanges;if(1==r.length&&r[0].from==e.viewport.from&&r[0].to==e.viewport.to)return r;let n=[];for(let{from:i,to:o}of r){i=Math.max(e.state.doc.lineAt(i).from,i-t);o=Math.min(e.state.doc.lineAt(o).to,o+t);if(n.length&&n[n.length-1].to>=i)n[n.length-1].to=o;else n.push({from:i,to:o})}return n}class ir{constructor(e){const{regexp:t,decoration:r,decorate:n,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");this.regexp=t;if(n)this.addMatch=(e,t,r,i)=>n(i,r,r+e[0].length,e,t);else if("function"==typeof r)this.addMatch=(e,t,n,i)=>{let o=r(e,t,n);if(o)i(n,n+e[0].length,o)};else if(r)this.addMatch=(e,t,n,i)=>i(n,n+e[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i;this.maxLength=o}createDeco(e){let t=new n.RangeSetBuilder,r=t.add.bind(t);for(let{from:t,to:n}of it(e,this.maxLength))ie(e.state.doc,this.regexp,t,n,(t,n)=>this.addMatch(n,e,t,r));return t.finish()}updateDeco(e,t){let r=1e9,n=-1;if(e.docChanged)e.changes.iterChanges((t,i,o,s)=>{if(s>=e.view.viewport.from&&o<=e.view.viewport.to){r=Math.min(o,r);n=Math.max(s,n)}});if(e.viewportMoved||n-r>1e3)return this.createDeco(e.view);if(n>-1)return this.updateRange(e.view,t.map(e.changes),r,n);return t}updateRange(e,t,r,n){for(let i of e.visibleRanges){let o=Math.max(i.from,r),s=Math.min(i.to,n);if(s>=o){let r=e.state.doc.lineAt(o),n=r.to<s?e.state.doc.lineAt(s):r;let a=Math.max(i.from,r.from),l=Math.min(i.to,n.to);if(this.boundary){for(;o>r.from;o--)if(this.boundary.test(r.text[o-1-r.from])){a=o;break}for(;s<n.to;s++)if(this.boundary.test(n.text[s-n.from])){l=s;break}}let u=[],f;let c=(e,t,r)=>u.push(r.range(e,t));if(r==n){this.regexp.lastIndex=a-r.from;while((f=this.regexp.exec(r.text))&&f.index<l-r.from)this.addMatch(f,e,f.index+r.from,c)}else ie(e.state.doc,this.regexp,a,l,(t,r)=>this.addMatch(r,e,t,c));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>e<a||t>l,add:u})}}return t}}const ii=null!=/x/.unicode?"gu":"g";const io=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]",ii);const is={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let ia=null;function il(){var e;if(null==ia&&"undefined"!=typeof document&&document.body){let t=document.body.style;ia=(null!=(e=t.tabSize)?e:t.MozTabSize)!=null}return ia||false}const iu=n.Facet.define({combine(e){let t=n.combineConfig(e,{render:null,specialChars:io,addSpecialChars:null});if(t.replaceTabs=!il())t.specialChars=new RegExp("	|"+t.specialChars.source,ii);if(t.addSpecialChars)t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,ii);return t}});function ic(e={}){return[iu.of(e),id()]}let ih=null;function id(){return ih||(ih=eY.fromClass(class{constructor(e){this.view=e;this.decorations=Q.none;this.decorationCache=Object.create(null);this.decorator=this.makeDecorator(e.state.facet(iu));this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new ir({regexp:e.specialChars,decoration:(t,r,i)=>{let{doc:o}=r.state;let s=n.codePointAt(t[0],0);if(9==s){let e=o.lineAt(i);let t=r.state.tabSize,s=n.countColumn(e.text,t,i-e.from);return Q.replace({widget:new iO((t-s%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=Q.replace({widget:new im(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(iu);if(e.startState.facet(iu)!=t){this.decorator=this.makeDecorator(t);this.decorations=this.decorator.createDeco(e.view)}else this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const ip="•";function ig(e){if(e>=32)return ip;if(10==e)return"␤";return String.fromCharCode(9216+e)}class im extends k{constructor(e,t){super();this.options=e;this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=ig(this.code);let r=e.state.phrase("Control character")+" "+(is[this.code]||"0x"+this.code.toString(16));let n=this.options.render&&this.options.render(this.code,r,t);if(n)return n;let i=document.createElement("span");i.textContent=t;i.title=r;i.setAttribute("aria-label",r);
11i.className="cm-specialChar";return i}ignoreEvent(){return false}}class iO extends k{constructor(e){super();this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");e.textContent="	";e.className="cm-tab";e.style.width=this.width+"px";return e}ignoreEvent(){return false}}const iv=eY.fromClass(class{constructor(){this.height=1e3;this.attrs={style:"padding-bottom: 1000px"}}update(e){let{view:t}=e;let r=t.viewState.editorHeight-t.defaultLineHeight-t.documentPadding.top-.5;if(r>=0&&r!=this.height){this.height=r;this.attrs={style:`padding-bottom: ${r}px`}}}});function iy(){return[iv,eF.of(e=>{var t;return(null==(t=e.plugin(iv))?void 0:t.attrs)||null})]}function ib(){return ix}const iw=Q.line({class:"cm-activeLine"});const ix=eY.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){if(e.docChanged||e.selectionSet)this.decorations=this.getDeco(e.view)}getDeco(e){let t=-1,r=[];for(let n of e.state.selection.ranges){let i=e.lineBlockAt(n.head);if(i.from>t){r.push(iw.range(i.from));t=i.from}}return Q.set(r)}},{decorations:e=>e.decorations});class iS extends k{constructor(e){super();this.content=e}toDOM(e){let t=document.createElement("span");t.className="cm-placeholder";t.style.pointerEvents="none";t.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(e):this.content.cloneNode(true));t.setAttribute("aria-hidden","true");return t}coordsAt(e){let t=e.firstChild?L(e.firstChild):[];if(!t.length)return null;let r=window.getComputedStyle(e.parentNode);let n=I(t[0],"rtl"!=r.direction);let i=parseInt(r.lineHeight);if(n.bottom-n.top>1.5*i)return{left:n.left,right:n.right,top:n.top,bottom:n.top+i};return n}ignoreEvent(){return false}}function i_(e){let t=eY.fromClass(class{constructor(t){this.view=t;this.placeholder=e?Q.set([Q.widget({widget:new iS(e),side:1}).range(0)]):Q.none}get decorations(){return this.view.state.doc.length?Q.none:this.placeholder}},{decorations:e=>e.decorations});return"string"==typeof e?[t,nQ.contentAttributes.of({"aria-placeholder":e})]:t}const ik=2e3;function iQ(e,t,r){let i=Math.min(t.line,r.line),o=Math.max(t.line,r.line);let s=[];if(t.off>ik||r.off>ik||t.col<0||r.col<0){let a=Math.min(t.off,r.off),l=Math.max(t.off,r.off);for(let t=i;t<=o;t++){let r=e.doc.line(t);if(r.length<=l)s.push(n.EditorSelection.range(r.from+a,r.to+l))}}else{let a=Math.min(t.col,r.col),l=Math.max(t.col,r.col);for(let t=i;t<=o;t++){let r=e.doc.line(t);let i=n.findColumn(r.text,a,e.tabSize,true);if(i<0)s.push(n.EditorSelection.cursor(r.to));else{let t=n.findColumn(r.text,l,e.tabSize);s.push(n.EditorSelection.range(r.from+i,r.from+t))}}}return s}function iP(e,t){let r=e.coordsAtPos(e.viewport.from);return r?Math.round(Math.abs((r.left-t)/e.defaultCharacterWidth)):-1}function iT(e,t){let r=e.posAtCoords({x:t.clientX,y:t.clientY},false);let i=e.state.doc.lineAt(r),o=r-i.from;let s=o>ik?-1:o==i.length?iP(e,t.clientX):n.countColumn(i.text,e.state.tabSize,r-i.from);return{line:i.number,col:s,off:o}}function iA(e,t){let r=iT(e,t),i=e.state.selection;if(!r)return null;return{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(r.line).from);let n=e.state.doc.lineAt(t);r={line:n.number,col:r.col,off:Math.min(r.off,n.length)};i=i.map(e.changes)}},get(t,o,s){let a=iT(e,t);if(!a)return i;let l=iQ(e.state,r,a);if(!l.length)return i;if(s)return n.EditorSelection.create(l.concat(i.ranges));return n.EditorSelection.create(l)}}}function i$(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return nQ.mouseSelectionStyle.of((e,r)=>t(r)?iA(e,r):null)}const ij={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]};const iC={style:"cursor: crosshair"};function iE(e={}){let[t,r]=ij[e.key||"Alt"];let n=eY.fromClass(class{constructor(e){this.view=e;this.isDown=false}set(e){if(this.isDown!=e){this.isDown=e;this.view.update([])}}},{eventObservers:{keydown(e){this.set(e.keyCode==t||r(e))},keyup(e){if(e.keyCode==t||!r(e))this.set(false)},mousemove(e){this.set(r(e))}}});
11return[n,nQ.contentAttributes.of(e=>{var t;return(null==(t=e.plugin(n))?void 0:t.isDown)?iC:null})]}const iM="-10000px";class iR{constructor(e,t,r,n){this.facet=t;this.createTooltipView=r;this.removeTooltipView=n;this.input=e.state.facet(t);this.tooltips=this.input.filter(e=>e);let i=null;this.tooltipViews=this.tooltips.map(e=>i=r(e,i))}update(e,t){var r;let n=e.state.facet(this.facet);let i=n.filter(e=>e);if(n===this.input){for(let t of this.tooltipViews)if(t.update)t.update(e);return false}let o=[],s=t?[]:null;for(let r=0;r<i.length;r++){let n=i[r],a=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];if(t&&t.create==n.create)a=e}if(a<0){o[r]=this.createTooltipView(n,r?o[r-1]:null);if(s)s[r]=!!n.above}else{let n=o[r]=this.tooltipViews[a];if(s)s[r]=t[a];if(n.update)n.update(e)}}}for(let e of this.tooltipViews)if(o.indexOf(e)<0){this.removeTooltipView(e);null==(r=e.destroy)||r.call(e)}if(t){s.forEach((e,r)=>t[r]=e);t.length=s.length}this.input=n;this.tooltips=i;this.tooltipViews=o;return true}}function iD(e={}){return iZ.of(e)}function iL(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}const iZ=n.Facet.define({combine:e=>{var t,r,n;return{position:v.ios?"absolute":(null==(t=e.find(e=>e.position))?void 0:t.position)||"fixed",parent:(null==(r=e.find(e=>e.parent))?void 0:r.parent)||null,tooltipSpace:(null==(n=e.find(e=>e.tooltipSpace))?void 0:n.tooltipSpace)||iL}}});const iX=new WeakMap;const iq=eY.fromClass(class{constructor(e){this.view=e;this.above=[];this.inView=true;this.madeAbsolute=false;this.lastTransaction=0;this.measureTimeout=-1;let t=e.state.facet(iZ);this.position=t.position;this.parent=t.parent;this.classes=e.themeClasses;this.createContainer();this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this};this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null;this.manager=new iR(e,iN,(e,t)=>this.createTooltip(e,t),e=>{if(this.resizeObserver)this.resizeObserver.unobserve(e.dom);e.dom.remove()});this.above=this.manager.tooltips.map(e=>!!e.above);this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{if(Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1)this.measureSoon()},{threshold:[1]}):null;this.observeIntersection();e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this));this.maybeMeasure()}createContainer(){if(this.parent){this.container=document.createElement("div");this.container.style.position="relative";this.container.className=this.view.themeClasses;this.parent.appendChild(this.container)}else this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){if(this.measureTimeout<0)this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1;this.maybeMeasure()},50)}update(e){if(e.transactions.length)this.lastTransaction=Date.now();let t=this.manager.update(e,this.above);if(t)this.observeIntersection();let r=t||e.geometryChanged;let n=e.state.facet(iZ);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;r=true}if(n.parent!=this.parent){if(this.parent)this.container.remove();this.parent=n.parent;this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);r=true}else if(this.parent&&this.view.themeClasses!=this.classes)this.classes=this.container.className=this.view.themeClasses;if(r)this.maybeMeasure()}createTooltip(e,t){let r=e.create(this.view);let n=t?t.dom:null;r.dom.classList.add("cm-tooltip");if(e.arrow&&!r.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow";r.dom.appendChild(e)}r.dom.style.position=this.position;r.dom.style.top=iM;r.dom.style.left="0px";this.container.insertBefore(r.dom,n);if(r.mount)r.mount(this.view);if(this.resizeObserver)this.resizeObserver.observe(r.dom);return r}destroy(){var e,t,r;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews){t.dom.remove();null==(e=t.destroy)||e.call(t)}if(this.parent)this.container.remove();null==(t=this.resizeObserver)||t.disconnect();null==(r=this.intersectionObserver)||r.disconnect();clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,r=false;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(v.safari){let t=e.getBoundingClientRect();r=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}else r=!!e.offsetParent&&e.offsetParent!=this.container.ownerDocument.body}if(r||"absolute"==this.position)if(this.parent){let r=this.parent.getBoundingClientRect();if(r.width&&r.height){e=r.width/this.parent.offsetWidth;t=r.height/this.parent.offsetHeight}}else({scaleX:e,scaleY:t}=this.view.viewState);let n=this.view.scrollDOM.getBoundingClientRect(),i=e3(this.view);return{visible:{left:n.left+i.left,top:n.top+i.top,right:n.right-i.right,bottom:n.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let r=this.manager.tooltipViews[t];return r.getCoords?r.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(iZ).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:r}}writeMeasure(e){var r;if(e.makeAbsolute){this.madeAbsolute=true;this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{visible:n,space:i,scaleX:o,scaleY:s}=e;let a=[];for(let l=0;l<this.manager.tooltips.length;l++){let u=this.manager.tooltips[l],f=this.manager.tooltipViews[l],{dom:c}=f;let h=e.pos[l],d=e.size[l];if(!h||false!==u.clip&&(h.bottom<=Math.max(n.top,i.top)||h.top>=Math.min(n.bottom,i.bottom)||h.right<Math.max(n.left,i.left)-.1||h.left>Math.min(n.right,i.right)+.1)){c.style.top=iM;continue}let p=u.arrow?f.dom.querySelector(".cm-tooltip-arrow"):null;let g=p?7:0;let m=d.right-d.left,O=null!=(r=iX.get(f))?r:d.bottom-d.top;let v=f.offset||iI,y=this.view.textDirection==t.Direction.LTR;let b=d.width>i.right-i.left?y?i.left:i.right-d.width:y?Math.max(i.left,Math.min(h.left-(p?14:0)+v.x,i.right-m)):Math.min(Math.max(i.left,h.left-m+(p?14:0)-v.x),i.right-m);let w=this.above[l];if(!u.strictSide&&(w?h.top-O-g-v.y<i.top:h.bottom+O+g+v.y>i.bottom)&&w==i.bottom-h.bottom>h.top-i.top)w=this.above[l]=!w;let x=(w?h.top-i.top:i.bottom-h.bottom)-g;if(x<O&&false!==f.resize){if(x<this.view.defaultLineHeight){c.style.top=iM;continue}iX.set(f,O);c.style.height=(O=x)/s+"px"}else if(c.style.height)c.style.height="";let S=w?h.top-O-g-v.y:h.bottom+g+v.y;let _=b+m;if(true!==f.overlap){for(let e of a)if(e.left<_&&e.right>b&&e.top<S+O&&e.bottom>S)S=w?e.top-O-2-g:e.bottom+g+2}if("absolute"==this.position){c.style.top=(S-e.parent.top)/s+"px";iB(c,(b-e.parent.left)/o)}else{c.style.top=S/s+"px";iB(c,b/o)}if(p){let e=h.left+(y?v.x:-v.x)-(b+14-7);p.style.left=e/o+"px"}if(true!==f.overlap)a.push({left:b,top:S,right:_,bottom:S+O});c.classList.toggle("cm-tooltip-above",w);c.classList.toggle("cm-tooltip-below",!w);if(f.positioned)f.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length){if(this.view.inView)this.view.requestMeasure(this.measureReq);
11if(this.inView!=this.view.inView){this.inView=this.view.inView;if(!this.inView)for(let e of this.manager.tooltipViews)e.dom.style.top=iM}}}},{eventObservers:{scroll(){this.maybeMeasure()}}});function iB(e,t){let r=parseInt(e.style.left,10);if(isNaN(r)||Math.abs(t-r)>1)e.style.left=t+"px"}const iz=nQ.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}});const iI={x:0,y:0};const iN=n.Facet.define({enables:[iq,iz]});const iV=n.Facet.define({combine:e=>e.reduce((e,t)=>e.concat(t),[])});class iW{static create(e){return new iW(e)}constructor(e){this.view=e;this.mounted=false;this.dom=document.createElement("div");this.dom.classList.add("cm-tooltip-hover");this.manager=new iR(e,iV,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove())}createHostedView(e,t){let r=e.create(this.view);r.dom.classList.add("cm-tooltip-section");this.dom.insertBefore(r.dom,t?t.dom.nextSibling:this.dom.firstChild);if(this.mounted&&r.mount)r.mount(this.view);return r}mount(e){for(let t of this.manager.tooltipViews)if(t.mount)t.mount(e);this.mounted=true}positioned(e){for(let t of this.manager.tooltipViews)if(t.positioned)t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null==(e=t.destroy)||e.call(t)}passProp(e){let t;for(let r of this.manager.tooltipViews){let n=r[e];if(void 0!==n){if(void 0===t)t=n;else if(t!==n)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const iY=iN.compute([iV],e=>{let t=e.facet(iV);if(0===t.length)return null;return{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var t;return null!=(t=e.end)?t:e.pos})),create:iW.create,above:t[0].above,arrow:t.some(e=>e.arrow)}});class iU{constructor(e,t,r,n,i){this.view=e;this.source=t;this.field=r;this.setHover=n;this.hoverTime=i;this.hoverTimeout=-1;this.restartTimeout=-1;this.pending=null;this.lastMove={x:0,y:0,target:e.dom,time:0};this.checkHover=this.checkHover.bind(this);e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this));e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){if(this.pending){this.pending=null;clearTimeout(this.restartTimeout);this.restartTimeout=setTimeout(()=>this.startHover(),20)}}get active(){return this.view.state.field(this.field)}checkHover(){this.hoverTimeout=-1;if(this.active.length)return;let e=Date.now()-this.lastMove.time;if(e<this.hoverTime)this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e);else this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:r}=this;let n=e.docView.tile.nearest(r.target);if(!n)return;let i,o=1;if(n.isWidget())i=n.posAtStart;else{i=e.posAtCoords(r);if(null==i)return;let n=e.coordsAtPos(i);if(!n||r.y<n.top||r.y>n.bottom||r.x<n.left-e.defaultCharacterWidth||r.x>n.right+e.defaultCharacterWidth)return;let s=e.bidiSpans(e.state.doc.lineAt(i)).find(e=>e.from<=i&&e.to>=i);let a=s&&s.dir==t.Direction.RTL?-1:1;o=r.x<n.left?-a:a}let s=this.source(e,i,o);if(null==s?void 0:s.then){let t=this.pending={pos:i};s.then(r=>{if(this.pending==t){this.pending=null;
11if(r&&!(Array.isArray(r)&&!r.length))e.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])})}},t=>eI(e.state,t,"hover tooltip"))}else if(s&&!(Array.isArray(s)&&!s.length))e.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let e=this.view.plugin(iq);let t=e?e.manager.tooltips.findIndex(e=>e.create==iW.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()};if(this.hoverTimeout<0)this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime);let{active:n,tooltip:i}=this;if(n.length&&i&&!iF(i.dom,e)||this.pending){let{pos:i}=n[0]||this.pending,o=null!=(r=null==(t=n[0])?void 0:t.end)?r:i;if(i==o?this.view.posAtCoords(this.lastMove)!=i:!iH(this.view,i,o,e.clientX,e.clientY)){this.view.dispatch({effects:this.setHover.of([])});this.pending=null}}}mouseleave(e){clearTimeout(this.hoverTimeout);this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this;let r=t&&t.dom.contains(e.relatedTarget);if(r)this.watchTooltipLeave(t.dom);else this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=r=>{e.removeEventListener("mouseleave",t);if(this.active.length&&!this.view.dom.contains(r.relatedTarget))this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout);clearTimeout(this.restartTimeout);this.view.dom.removeEventListener("mouseleave",this.mouseleave);this.view.dom.removeEventListener("mousemove",this.mousemove)}}const iG=4;function iF(e,t){let{left:r,right:n,top:i,bottom:o}=e.getBoundingClientRect(),s;if(s=e.querySelector(".cm-tooltip-arrow")){let e=s.getBoundingClientRect();i=Math.min(e.top,i);o=Math.max(e.bottom,o)}return t.clientX>=r-iG&&t.clientX<=n+iG&&t.clientY>=i-iG&&t.clientY<=o+iG}function iH(e,t,r,n,i,o){let s=e.scrollDOM.getBoundingClientRect();let a=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>n||s.right<n||s.top>i||Math.min(s.bottom,a)<i)return false;let l=e.posAtCoords({x:n,y:i},false);return l>=t&&l<=r}function iK(e,t={}){let r=n.StateEffect.define();let i=n.StateField.define({create(){return[]},update(e,i){if(e.length){if(t.hideOnChange&&(i.docChanged||i.selection))e=[];else if(t.hideOn)e=e.filter(e=>!t.hideOn(i,e));if(i.docChanged){let t=[];for(let r of e){let e=i.changes.mapPos(r.pos,-1,n.MapMode.TrackDel);if(null!=e){let n=Object.assign(Object.create(null),r);n.pos=e;if(null!=n.end)n.end=i.changes.mapPos(n.end);t.push(n)}}e=t}}for(let t of i.effects){if(t.is(r))e=t.value;if(t.is(i1))e=[]}return e},provide:e=>iV.from(e)});return{active:i,extension:[i,eY.define(n=>new iU(n,e,i,r,t.hoverTime||300)),iY]}}function iJ(e,t){let r=e.plugin(iq);if(!r)return null;let n=r.manager.tooltips.indexOf(t);return n<0?null:r.manager.tooltipViews[n]}function i0(e){return e.facet(iV).some(e=>e)}const i1=n.StateEffect.define();const i2=i1.of(null);function i5(e){let t=e.plugin(iq);if(t)t.maybeMeasure()}const i3=n.Facet.define({combine(e){let t,r;for(let n of e){t=t||n.topContainer;r=r||n.bottomContainer}return{topContainer:t,bottomContainer:r}}});function i4(e){return e?[i3.of(e)]:[]}function i8(e,t){let r=e.plugin(i6);let n=r?r.specs.indexOf(t):-1;return n>-1?r.panels[n]:null}const i6=eY.fromClass(class{constructor(e){this.input=e.state.facet(oe);this.specs=this.input.filter(e=>e);this.panels=this.specs.map(t=>t(e));let t=e.state.facet(i3);this.top=new i7(e,true,t.topContainer);this.bottom=new i7(e,false,t.bottomContainer);this.top.sync(this.panels.filter(e=>e.top));this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels){e.dom.classList.add("cm-panel");if(e.mount)e.mount()}}update(e){let t=e.state.facet(i3);if(this.top.container!=t.topContainer){this.top.sync([]);this.top=new i7(e.view,true,t.topContainer)}if(this.bottom.container!=t.bottomContainer){this.bottom.sync([]);this.bottom=new i7(e.view,false,t.bottomContainer)}this.top.syncClasses();this.bottom.syncClasses();let r=e.state.facet(oe);if(r!=this.input){let t=r.filter(e=>e);let n=[],i=[],o=[],s=[];for(let r of t){let t=this.specs.indexOf(r),a;if(t<0){a=r(e.view);s.push(a)}else{a=this.panels[t];if(a.update)a.update(e)}n.push(a);(a.top?i:o).push(a)}this.specs=t;this.panels=n;this.top.sync(i);this.bottom.sync(o);for(let e of s){e.dom.classList.add("cm-panel");
11if(e.mount)e.mount()}}else for(let t of this.panels)if(t.update)t.update(e)}destroy(){this.top.sync([]);this.bottom.sync([])}},{provide:e=>nQ.scrollMargins.of(t=>{let r=t.plugin(e);return r&&{top:r.top.scrollMargin(),bottom:r.bottom.scrollMargin()}})});class i7{constructor(e,t,r){this.view=e;this.top=t;this.container=r;this.dom=void 0;this.classes="";this.panels=[];this.syncClasses()}sync(e){for(let t of this.panels)if(t.destroy&&e.indexOf(t)<0)t.destroy();this.panels=e;this.syncDOM()}syncDOM(){if(0==this.panels.length){if(this.dom){this.dom.remove();this.dom=void 0}return}if(!this.dom){this.dom=document.createElement("div");this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){while(e!=t.dom)e=i9(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);while(e)e=i9(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!this.container||this.classes==this.view.themeClasses)return;for(let e of this.classes.split(" "))if(e)this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))if(e)this.container.classList.add(e)}}function i9(e){let t=e.nextSibling;e.remove();return t}const oe=n.Facet.define({enables:i6});function ot(e,t){let r;let i=new Promise(e=>r=e);let o=e=>os(e,t,r);if(e.state.field(on,false))e.dispatch({effects:oi.of(o)});else e.dispatch({effects:n.StateEffect.appendConfig.of(on.init(()=>[o]))});let s=oo.of(o);return{close:s,result:i.then(t=>{let r=e.win.queueMicrotask||(t=>e.win.setTimeout(t,10));r(()=>{if(e.state.field(on).indexOf(o)>-1)e.dispatch({effects:s})});return t})}}function or(e,t){let r=e.state.field(on,false)||[];for(let n of r){let r=i8(e,n);if(r&&r.dom.classList.contains(t))return r}return null}const on=n.StateField.define({create(){return[]},update(e,t){for(let r of t.effects)if(r.is(oi))e=[r.value].concat(e);else if(r.is(oo))e=e.filter(e=>e!=r.value);return e},provide:e=>oe.computeN([e],t=>t.field(e))});const oi=n.StateEffect.define();const oo=n.StateEffect.define();function os(e,t,r){let n=t.content?t.content(e,()=>a(null)):null;if(!n){n=s("form");if(t.input){let e=s("input",t.input);if(/^(text|password|number|email|tel|url)$/.test(e.type))e.classList.add("cm-textfield");if(!e.name)e.name="input";n.appendChild(s("label",(t.label||"")+": ",e))}else n.appendChild(document.createTextNode(t.label||""));n.appendChild(document.createTextNode(" "));n.appendChild(s("button",{class:"cm-button",type:"submit"},t.submitLabel||"OK"))}let i="FORM"==n.nodeName?[n]:n.querySelectorAll("form");for(let e=0;e<i.length;e++){let t=i[e];t.addEventListener("keydown",e=>{if(27==e.keyCode){e.preventDefault();a(null)}else if(13==e.keyCode){e.preventDefault();a(t)}});t.addEventListener("submit",e=>{e.preventDefault();a(t)})}let o=s("div",n,s("button",{onclick:()=>a(null),"aria-label":e.state.phrase("close"),class:"cm-dialog-close",type:"button"},["\xd7"]));if(t.class)o.className=t.class;o.classList.add("cm-dialog");function a(t){if(o.contains(o.ownerDocument.activeElement))e.focus();r(t)}return{dom:o,top:t.top,mount:()=>{if(t.focus){let e;e="string"==typeof t.focus?n.querySelector(t.focus):n.querySelector("input")||n.querySelector("button");if(e&&"select"in e)e.select();else if(e&&"focus"in e)e.focus()}}}}class oa extends n.RangeValue{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return false}destroy(e){}}oa.prototype.elementClass="";oa.prototype.toDOM=void 0;oa.prototype.mapMode=n.MapMode.TrackBefore;oa.prototype.startSide=oa.prototype.endSide=-1;oa.prototype.point=true;const ol=n.Facet.define();const ou=n.Facet.define();const of={class:"",renderEmptyElements:false,elementStyle:"",markers:()=>n.RangeSet.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"};const oc=n.Facet.define();function oh(e){return[op(),oc.of({...of,...e})]}const od=n.Facet.define({combine:e=>e.some(e=>e)});function op(e){let t=[og];if(e&&false===e.fixed)t.push(od.of(true));return t}const og=eY.fromClass(class{constructor(e){this.view=e;this.domAfter=null;this.prevViewport=e.viewport;this.dom=document.createElement("div");
11this.dom.className="cm-gutters cm-gutters-before";this.dom.setAttribute("aria-hidden","true");this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px";this.gutters=e.state.facet(oc).map(t=>new oy(e,t));this.fixed=!e.state.facet(od);for(let e of this.gutters)if("after"==e.config.side)this.getDOMAfter().appendChild(e.dom);else this.dom.appendChild(e.dom);if(this.fixed)this.dom.style.position="sticky";this.syncGutters(false);e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){if(!this.domAfter){this.domAfter=document.createElement("div");this.domAfter.className="cm-gutters cm-gutters-after";this.domAfter.setAttribute("aria-hidden","true");this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px";this.domAfter.style.position=this.fixed?"sticky":"";this.view.scrollDOM.appendChild(this.domAfter)}return this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,r=e.view.viewport;let n=Math.min(t.to,r.to)-Math.max(t.from,r.from);this.syncGutters(n<(r.to-r.from)*.8)}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e;if(this.domAfter)this.domAfter.style.minHeight=e}if(this.view.state.facet(od)!=!this.fixed){this.fixed=!this.fixed;this.dom.style.position=this.fixed?"sticky":"";if(this.domAfter)this.domAfter.style.position=this.fixed?"sticky":""}this.prevViewport=e.view.viewport}syncGutters(e){let r=this.dom.nextSibling;if(e){this.dom.remove();if(this.domAfter)this.domAfter.remove()}let i=n.RangeSet.iter(this.view.state.facet(ol),this.view.viewport.from);let o=[];let s=this.gutters.map(e=>new ov(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks){if(o.length)o=[];if(Array.isArray(e.type)){let r=true;for(let n of e.type)if(n.type==t.BlockType.Text&&r){oO(i,o,n.from);for(let e of s)e.line(this.view,n,o);r=false}else if(n.widget)for(let e of s)e.widget(this.view,n)}else if(e.type==t.BlockType.Text){oO(i,o,e.from);for(let t of s)t.line(this.view,e,o)}else if(e.widget)for(let t of s)t.widget(this.view,e)}for(let e of s)e.finish();if(e){this.view.scrollDOM.insertBefore(this.dom,r);if(this.domAfter)this.view.scrollDOM.appendChild(this.domAfter)}}updateGutters(e){let t=e.startState.facet(oc),r=e.state.facet(oc);let i=e.docChanged||e.heightChanged||e.viewportChanged||!n.RangeSet.eq(e.startState.facet(ol),e.state.facet(ol),e.view.viewport.from,e.view.viewport.to);if(t==r){for(let t of this.gutters)if(t.update(e))i=true}else{i=true;let n=[];for(let i of r){let r=t.indexOf(i);if(r<0)n.push(new oy(this.view,i));else{this.gutters[r].update(e);n.push(this.gutters[r])}}for(let e of this.gutters){e.dom.remove();if(n.indexOf(e)<0)e.destroy()}for(let e of n)if("after"==e.config.side)this.getDOMAfter().appendChild(e.dom);else this.dom.appendChild(e.dom);this.gutters=n}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove();if(this.domAfter)this.domAfter.remove()}},{provide:e=>nQ.scrollMargins.of(r=>{let n=r.plugin(e);if(!n||0==n.gutters.length||!n.fixed)return null;let i=n.dom.offsetWidth*r.scaleX,o=n.domAfter?n.domAfter.offsetWidth*r.scaleX:0;return r.textDirection==t.Direction.LTR?{left:i,right:o}:{right:i,left:o}})});function om(e){return Array.isArray(e)?e:[e]}function oO(e,t,r){while(e.value&&e.from<=r){if(e.from==r)t.push(e.value);e.next()}}class ov{constructor(e,t,r){this.gutter=e;this.height=r;this.i=0;this.cursor=n.RangeSet.iter(e.markers,t.from)}addElement(e,t,r){let{gutter:n}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==n.elements.length){let t=new ob(e,o,i,r);n.elements.push(t);n.dom.appendChild(t.dom)}else n.elements[this.i].update(e,o,i,r);this.height=t.bottom;this.i++}line(e,t,r){let n=[];oO(this.cursor,n,t.from);if(r.length)n=n.concat(r);let i=this.gutter.config.lineMarker(e,t,n);if(i)n.unshift(i);let o=this.gutter;if(0==n.length&&!o.config.renderEmptyElements)return;this.addElement(e,t,n)}widget(e,t){let r=this.gutter.config.widgetMarker(e,t.widget,t),n=r?[r]:null;for(let r of e.state.facet(ou)){let i=r(e,t.widget,t);if(i)(n||(n=[])).push(i)}if(n)this.addElement(e,t,n)}finish(){let e=this.gutter;while(e.elements.length>this.i){let t=e.elements.pop();e.dom.removeChild(t.dom);t.destroy()}}}class oy{constructor(e,t){this.view=e;this.config=t;this.elements=[];this.spacer=null;this.dom=document.createElement("div");
11this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in t.domEventHandlers)this.dom.addEventListener(r,n=>{let i=n.target,o;if(i!=this.dom&&this.dom.contains(i)){while(i.parentNode!=this.dom)i=i.parentNode;let e=i.getBoundingClientRect();o=(e.top+e.bottom)/2}else o=n.clientY;let s=e.lineBlockAtHeight(o-e.documentTop);if(t.domEventHandlers[r](e,s,n))n.preventDefault()});this.markers=om(t.markers(e));if(t.initialSpacer){this.spacer=new ob(e,0,0,[t.initialSpacer(e)]);this.dom.appendChild(this.spacer.dom);this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none"}}update(e){let t=this.markers;this.markers=om(this.config.markers(e.view));if(this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);if(t!=this.spacer.markers[0])this.spacer.update(e.view,0,0,[t])}let r=e.view.viewport;return!n.RangeSet.eq(this.markers,t,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):false)}destroy(){for(let e of this.elements)e.destroy()}}class ob{constructor(e,t,r,n){this.height=-1;this.above=0;this.markers=[];this.dom=document.createElement("div");this.dom.className="cm-gutterElement";this.update(e,t,r,n)}update(e,t,r,n){if(this.height!=t){this.height=t;this.dom.style.height=t+"px"}if(this.above!=r)this.dom.style.marginTop=(this.above=r)?r+"px":"";if(!ow(this.markers,n))this.setMarkers(e,n)}setMarkers(e,t){let r="cm-gutterElement",n=this.dom.firstChild;for(let i=0,o=0;;){let s=o,a=i<t.length?t[i++]:null,l=false;if(a){let e=a.elementClass;if(e)r+=" "+e;for(let e=o;e<this.markers.length;e++)if(this.markers[e].compare(a)){s=e;l=true;break}}else s=this.markers.length;while(o<s){let e=this.markers[o++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove();n=t}}if(!a)break;if(a.toDOM)if(l)n=n.nextSibling;else this.dom.insertBefore(a.toDOM(e),n);if(l)o++}this.dom.className=r;this.markers=t}destroy(){this.setMarkers(null,[])}}function ow(e,t){if(e.length!=t.length)return false;for(let r=0;r<e.length;r++)if(!e[r].compare(t[r]))return false;return true}const ox=n.Facet.define();const oS=n.Facet.define();const o_=n.Facet.define({combine(e){return n.combineConfig(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let r=Object.assign({},e);for(let e in t){let n=r[e],i=t[e];r[e]=n?(e,t,r)=>n(e,t,r)||i(e,t,r):i}return r}})}});class ok extends oa{constructor(e){super();this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function oQ(e,t){return e.state.facet(o_).formatNumber(t,e.state)}const oP=oc.compute([o_],e=>({class:"cm-lineNumbers",renderEmptyElements:false,markers(e){return e.state.facet(ox)},lineMarker(e,t,r){if(r.some(e=>e.toDOM))return null;return new ok(oQ(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,r)=>{for(let n of e.state.facet(oS)){let i=n(e,t,r);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(o_)!=e.state.facet(o_),initialSpacer(e){return new ok(oQ(e,oA(e.state.doc.lines)))},updateSpacer(e,t){let r=oQ(t.view,oA(t.view.state.doc.lines));return r==e.number?e:new ok(r)},domEventHandlers:e.facet(o_).domEventHandlers,side:"before"}));function oT(e={}){return[o_.of(e),op(),oP]}function oA(e){let t=9;while(t<e)t=10*t+9;return t}const o$=new class extends oa{constructor(){super(...arguments);this.elementClass="cm-activeLineGutter"}};const oj=ol.compute(["selection"],e=>{let t=[],r=-1;for(let n of e.selection.ranges){let i=e.doc.lineAt(n.head).from;if(i>r){r=i;t.push(o$.range(i))}}return n.RangeSet.of(t)});function oC(){return oj}function oE(e){return eY.define(t=>({decorations:e.createDeco(t),update(t){this.decorations=e.updateDeco(t,this.decorations)}}),{decorations:e=>e.decorations})}const oM=Q.mark({class:"cm-highlightTab"});const oR=Q.mark({class:"cm-highlightSpace"});const oD=oE(new ir({regexp:/\t| /g,decoration:e=>"	"==e[0]?oM:oR,boundary:/\S/}));function oL(){return oD}const oZ=oE(new ir({regexp:/\s+$/g,decoration:Q.mark({class:"cm-trailingSpace"})}));function oX(){return oZ}const oq={HeightMap:rU,HeightOracle:rI,MeasuredHeights:rN,QueryType:rW,ChangedRange:e8,computeOrder:eS,moveVisually:eQ,clearHeightChangeFlag:rz,getHeight
11ChangeFlag:()=>rB};t.BidiSpan=eg;t.BlockInfo=rV;t.BlockWrapper=E;t.Decoration=Q;t.EditorView=nQ;t.GutterMarker=oa;t.MatchDecorator=ir;t.RectangleMarker=nN;t.ViewPlugin=eY;t.ViewUpdate=e6;t.WidgetType=k;t.__test=oq;t.closeHoverTooltips=i2;t.crosshairCursor=iE;t.drawSelection=nJ;t.dropCursor=n9;t.getDialog=or;t.getDrawSelectionConfig=n0;t.getPanel=i8;t.getTooltip=iJ;t.gutter=oh;t.gutterLineClass=ol;t.gutterWidgetClass=ou;t.gutters=op;t.hasHoverTooltips=i0;t.highlightActiveLine=ib;t.highlightActiveLineGutter=oC;t.highlightSpecialChars=ic;t.highlightTrailingWhitespace=oX;t.highlightWhitespace=oL;t.hoverTooltip=iK;t.keymap=nR;t.layer=nH;t.lineNumberMarkers=ox;t.lineNumberWidgetMarker=oS;t.lineNumbers=oT;t.logException=eI;t.panels=i4;t.placeholder=i_;t.rectangularSelection=i$;t.repositionTooltips=i5;t.runScopeHandlers=nZ;t.scrollPastEnd=iy;t.showDialog=ot;t.showPanel=oe;t.showTooltip=iN;t.tooltips=iD}}},state:{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/state",version:"6.5.4",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";var r=e("@marijn/find-cluster-break");class n{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,false,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,true,1,0)}replace(e,t,r){[e,t]=d(this,e,t);let n=[];this.decompose(0,e,n,2);if(r.length)r.decompose(0,r.length,n,3);this.decompose(t,this.length,n,1);return o.from(n,this.length-(t-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=d(this,e,t);let r=[];this.decompose(e,t,r,0);return o.from(r,t-e)}eq(e){if(e==this)return true;if(e.length!=this.length||e.lines!=this.lines)return false;let t=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1);let n=new u(this),i=new u(e);for(let e=t,o=t;;){n.next(e);i.next(e);e=0;if(n.lineBreak!=i.lineBreak||n.done!=i.done||n.value!=i.value)return false;o+=n.value.length;if(n.done||o>=r)return true}}iter(e=1){return new u(this,e)}iterRange(e,t=this.length){return new f(this,e,t)}iterLines(e,t){let r;if(null==e)r=this.iter();else{if(null==t)t=this.lines+1;let n=this.line(e).from;r=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new c(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];this.flatten(e);return e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");if(1==e.length&&!e[0])return n.empty;return e.length<=32?new i(e):o.from(i.split(e,[]))}}class i extends n{constructor(e,t=s(e)){super();this.text=e;this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,r,n){for(let i=0;;i++){let o=this.text[i],s=n+o.length;if((t?r:s)>=e)return new h(n,s,r,o);n=s+1;r++}}decompose(e,t,r,n){let o=e<=0&&t>=this.length?this:new i(l(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&n){let e=r.pop();let t=a(o.text,e.text.slice(),0,o.length);if(t.length<=32)r.push(new i(t,e.length+o.length));else{let e=t.length>>1;r.push(new i(t.slice(0,e)),new i(t.slice(e)))}}else r.push(o)}replace(e,t,r){if(!(r instanceof i))return super.replace(e,t,r);[e,t]=d(this,e,t);let n=a(this.text,a(r.text,l(this.text,0,e)),t);let s=this.length+r.length-(t-e);if(n.length<=32)return new i(n,s);return o.from(i.split(n,[]),s)}sliceString(e,t=this.length,r="\n"){[e,t]=d(this,e,t);let n="";for(let i=0,o=0;i<=t&&o<this.text.length;o++){let s=this.text[o],a=i+s.length;if(i>e&&o)n+=r;if(e<a&&t>i)n+=s.slice(Math.max(0,e-i),t-i);i=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let r=[],n=-1;for(let o of e){r.push(o);n+=o.length+1;if(32==r.length){t.push(new i(r,n));r=[];n=-1}}if(n>-1)t.push(new i(r,n));return t}}class o extends n{constructor(e,t){super();this.children=e;this.length=t;this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,r,n){for(let i=0;;i++){let o=this.children[i],s=n+o.length,a=r+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,r,n);n=s+1;r=a+1}}decompose(e,t,r,n){for(let i=0,o=0;o<=t&&i<this.children.length;i++){let s=this.children[i],a=o+s.length;if(e<=a&&t>=o){let i=n&((o<=e?1:0)|(a>=t?2:0));if(o>=e&&a<=t&&!i)r.push(s);else s.decompose(e-o,t-o,r,i)}o=a+1}}replace(e,t,r){[e,t]=d(this,e,t);if(r.lines<this.lines)for(let n=0,i=0;n<this.children.length;n++){let s=this.children[n],a=i+s.length;if(e>=i&&t<=a){let l=s.replace(e-i,t-i,r);let u=this.lines-s.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let i=this.children.slice();i[n]=l;return new o(i,this.length-(t-e)+r.length)}return super.replace(i,a,l)}i=a+1}return super.replace(e,t,r)}sliceString(e,t=this.length,r="\n"){[e,t]=d(this,e,t);let n="";for(let i=0,o=0;i<this.children.length&&o<=t;i++){let s=this.children[i],a=o+s.length;if(o>e&&i)n+=r;if(e<a&&t>o)n+=s.sliceString(e-o,t-o,r);o=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof o))return 0;let r=0;let[n,i,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,i+=t){if(n==s||i==a)return r;let o=this.children[n],l=e.children[i];if(o!=l)return r+o.scanIdentical(l,t);r+=o.length+1}}static from(e,t=e.reduce((e,t)=>
11e+t.length+1,-1)){let r=0;for(let t of e)r+=t.lines;if(r<32){let r=[];for(let t of e)t.flatten(r);return new i(r,t)}let n=Math.max(32,r>>5),s=n<<1,a=n>>1;let l=[],u=0,f=-1,c=[];function h(e){let t;if(e.lines>s&&e instanceof o)for(let t of e.children)h(t);else if(e.lines>a&&(u>a||!u)){d();l.push(e)}else if(e instanceof i&&u&&(t=c[c.length-1])instanceof i&&e.lines+t.lines<=32){u+=e.lines;f+=e.length+1;c[c.length-1]=new i(t.text.concat(e.text),t.length+1+e.length)}else{if(u+e.lines>n)d();u+=e.lines;f+=e.length+1;c.push(e)}}function d(){if(0==u)return;l.push(1==c.length?c[0]:o.from(c,f));f=-1;u=c.length=0}for(let t of e)h(t);d();return 1==l.length?l[0]:new o(l,t)}}n.empty=new i([""],0);function s(e){let t=-1;for(let r of e)t+=r.length+1;return t}function a(e,t,r=0,n=1e9){for(let i=0,o=0,s=true;o<e.length&&i<=n;o++){let a=e[o],l=i+a.length;if(l>=r){if(l>n)a=a.slice(0,n-i);if(i<r)a=a.slice(r-i);if(s){t[t.length-1]+=a;s=false}else t.push(a)}i=l+1}return t}function l(e,t,r){return a(e,[""],t,r)}class u{constructor(e,t=1){this.dir=t;this.done=false;this.lineBreak=false;this.value="";this.nodes=[e];this.offsets=[t>0?1:(e instanceof i?e.text.length:e.children.length)<<1]}nextInner(e,t){this.done=this.lineBreak=false;for(;;){let r=this.nodes.length-1;let n=this.nodes[r],o=this.offsets[r],s=o>>1;let a=n instanceof i?n.text.length:n.children.length;if(s==(t>0?a:0)){if(0==r){this.done=true;this.value="";return this}if(t>0)this.offsets[r-1]++;this.nodes.pop();this.offsets.pop()}else if((1&o)==(t>0?0:1)){this.offsets[r]+=t;if(0==e){this.lineBreak=true;this.value="\n";return this}e--}else if(n instanceof i){let i=n.text[s+(t<0?-1:0)];this.offsets[r]+=t;if(i.length>Math.max(0,e)){this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e);return this}e-=i.length}else{let o=n.children[s+(t<0?-1:0)];if(e>o.length){e-=o.length;this.offsets[r]+=t}else{if(t<0)this.offsets[r]--;this.nodes.push(o);this.offsets.push(t>0?1:(o instanceof i?o.text.length:o.children.length)<<1)}}}}next(e=0){if(e<0){this.nextInner(-e,-this.dir);e=this.value.length}return this.nextInner(e,this.dir)}}class f{constructor(e,t,r){this.value="";this.done=false;this.cursor=new u(e,t>r?-1:1);this.pos=t>r?e.length:0;this.from=Math.min(t,r);this.to=Math.max(t,r)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to){this.value="";this.done=true;return this}e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let r=t<0?this.pos-this.from:this.to-this.pos;if(e>r)e=r;r-=e;let{value:n}=this.cursor.next(e);this.pos+=(n.length+e)*t;this.value=n.length<=r?n:t<0?n.slice(n.length-r):n.slice(0,r);this.done=!this.value;return this}next(e=0){if(e<0)e=Math.max(e,this.from-this.pos);else if(e>0)e=Math.min(e,this.to-this.pos);return this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c{constructor(e){this.inner=e;this.afterBreak=true;this.value="";this.done=false}next(e=0){let{done:t,lineBreak:r,value:n}=this.inner.next(e);if(t&&this.afterBreak){this.value="";this.afterBreak=false}else if(t){this.done=true;this.value=""}else if(r)if(this.afterBreak)this.value="";else{this.afterBreak=true;this.next()}else{this.value=n;this.afterBreak=false}return this}get lineBreak(){return false}}if("undefined"!=typeof Symbol){n.prototype[Symbol.iterator]=function(){return this.iter()};u.prototype[Symbol.iterator]=f.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this}}class h{constructor(e,t,r,n){this.from=e;this.to=t;this.number=r;this.text=n}get length(){return this.to-this.from}}function d(e,t,r){t=Math.max(0,Math.min(e.length,t));return[t,Math.max(t,Math.min(e.length,r))]}function p(e,t,n=true,i=true){return r.findClusterBreak(e,t,n,i)}function g(e){return e>=56320&&e<57344}function m(e){return e>=55296&&e<56320}function O(e,t){let r=e.charCodeAt(t);if(!m(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);if(!g(n))return r;return(r-55296<<10)+(n-56320)+65536}function v(e){if(e<=65535)return String.fromCharCode(e);e-=65536;return String.fromCharCode((e>>10)+55296,(1023&e)+56320)}function y(e){return e<65536?1:2}const b=/\r\n?|\n/;t.MapMode=void 0;(function(e){e[e["Simple"]=0]="Simple";e[e["TrackDel"]=1]="TrackDel";e[e["TrackBefore"]=2]="TrackBefore";e[e["TrackAfter"]=3]="TrackAfter"})(t.MapMode||(t.MapMode={}));class w{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t+1];e+=r<0?this.sections[t]:r}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,r=0,n=0;t<this.sections.length;){let i=this.sections[t++],o=this.sections[t++];if(o<0){e(r,n,i);n+=i}else n+=o;r+=i}}iterChangedRanges(e,t=false){k(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];if(n<0)e.push(r,n);else e.push(n,r)}return new w(e)}composeDesc(e){return this.empty?e:e.empty?this:P(this,e)}mapDesc(e,t=false){return e.empty?this:Q(this,e,t)}mapPos(e,r=-1,n=t.MapMode.Simple){let i=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],l=this.sections[s++],u=i+a;if(l<0){if(u>e)return o+(e-i);o+=a}else{if(n!=t.MapMode.Simple&&u>=e&&(n==t.MapMode.TrackDel&&i<e&&u>e||n==t.MapMode.TrackBefore&&i<e||n==t.MapMode.TrackAfter&&u>e))return null;if(u>e||u==e&&r<0&&!a)return e==i||r<0?o:o+l;o+=l}i=u}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return o}touchesRange(e,t=e){for(let r=0,n=0;r<this.sections.length&&n<=t;){let i=this.sections[r++],o=this.sections[r++],s=n+i;
11if(o>=0&&n<=t&&s>=e)return n<e&&s>t?"cover":true;n=s}return false}toString(){let e="";for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+r+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new w(e)}static create(e){return new w(e)}}class x extends w{constructor(e,t){super(e);this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");k(this,(t,r,n,i,o)=>e=e.replace(n,n+(r-t),o),false);return e}mapDesc(e,t=false){return Q(this,e,t,true)}invert(e){let t=this.sections.slice(),r=[];for(let i=0,o=0;i<t.length;i+=2){let s=t[i],a=t[i+1];if(a>=0){t[i]=a;t[i+1]=s;let l=i>>1;while(r.length<l)r.push(n.empty);r.push(s?e.slice(o,o+s):n.empty)}o+=s}return new x(t,r)}compose(e){return this.empty?e:e.empty?this:P(this,e,true)}map(e,t=false){return e.empty?this:Q(this,e,t,true)}iterChanges(e,t=false){k(this,e,t)}get desc(){return w.create(this.sections)}filter(e){let t=[],r=[],n=[];let i=new T(this);t:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];while(s<a||s==a&&0==i.len){if(i.done)break t;let e=Math.min(i.len,a-s);S(n,e,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;S(t,e,o);if(o>0)_(r,t,i.text);i.forward(e);s+=e}let l=e[o++];while(s<l){if(i.done)break t;let e=Math.min(i.len,l-s);S(t,e,-1);S(n,e,-1==i.ins?-1:0==i.off?i.ins:0);i.forward(e);s+=e}}return{changes:new x(t,r),filtered:w.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t],n=this.sections[t+1];if(n<0)e.push(r);else if(0==n)e.push([r]);else e.push([r].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,r){let i=[],o=[],s=0;let a=null;function l(e=false){if(!e&&!i.length)return;if(s<t)S(i,t-s,-1);let r=new x(i,o);a=a?a.compose(r.map(a)):r;i=[];o=[];s=0}function u(e){if(Array.isArray(e))for(let t of e)u(t);else if(e instanceof x){if(e.length!=t)throw new RangeError(`Mismatched change set length (got ${e.length}, expected ${t})`);l();a=a?a.compose(e.map(a)):e}else{let{from:a,to:u=a,insert:f}=e;if(a>u||a<0||u>t)throw new RangeError(`Invalid change range ${a} to ${u} (in doc of length ${t})`);let c=f?"string"==typeof f?n.of(f.split(r||b)):f:n.empty;let h=c.length;if(a==u&&0==h)return;if(a<s)l();if(a>s)S(i,a-s,-1);S(i,u-a,h);_(o,i,c);s=u}}u(e);l(!a);return a}static empty(e){return new x(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],r=[];for(let i=0;i<e.length;i++){let o=e[i];if("number"==typeof o)t.push(o,-1);else if(!Array.isArray(o)||"number"!=typeof o[0]||o.some((e,t)=>t&&"string"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeSet");else if(1==o.length)t.push(o[0],0);else{while(r.length<i)r.push(n.empty);r[i]=n.of(o.slice(1));t.push(o[0],r[i].length)}}return new x(t,r)}static createSet(e,t){return new x(e,t)}}function S(e,t,r,n=false){if(0==t&&r<=0)return;let i=e.length-2;if(i>=0&&r<=0&&r==e[i+1])e[i]+=t;else if(i>=0&&0==t&&0==e[i])e[i+1]+=r;else if(n){e[i]+=t;e[i+1]+=r}else e.push(t,r)}function _(e,t,r){if(0==r.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(r);else{while(e.length<i)e.push(n.empty);e.push(r)}}function k(e,t,r){let i=e.inserted;for(let o=0,s=0,a=0;a<e.sections.length;){let l=e.sections[a++],u=e.sections[a++];if(u<0){o+=l;s+=l}else{let f=o,c=s,h=n.empty;for(;;){f+=l;c+=u;if(u&&i)h=h.append(i[a-2>>1]);if(r||a==e.sections.length||e.sections[a+1]<0)break;l=e.sections[a++];u=e.sections[a++]}t(o,f,s,c,h);o=f;s=c}}}function Q(e,t,r,n=false){let i=[],o=n?[]:null;let s=new T(e),a=new T(t);for(let e=-1;;)if(s.done&&a.len||a.done&&s.len)throw new Error("Mismatched change set lengths");else if(-1==s.ins&&-1==a.ins){let e=Math.min(s.len,a.len);S(i,e,-1);s.forward(e);a.forward(e)}else if(a.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(a.len<s.len||a.len==s.len&&!r))){let t=a.len;S(i,a.ins,-1);while(t){let r=Math.min(s.len,t);if(s.ins>=0&&e<s.i&&s.len<=r){S(i,0,s.ins);if(o)_(o,i,s.text);e=s.i}s.forward(r);t-=r}a.next()}else if(s.ins>=0){let t=0,r=s.len;while(r)if(-1==a.ins){let e=Math.min(r,a.len);t+=e;r-=e;a.forward(e)}else if(0==a.ins&&a.len<r){r-=a.len;a.next()}else break;S(i,t,e<s.i?s.ins:0);if(o&&e<s.i)_(o,i,s.text);e=s.i;s.forward(s.len-r)}else if(s.done&&a.done)return o?x.createSet(i,o):w.create(i);else throw new Error("Mismatched change set lengths")}function P(e,t,r=false){let n=[];let i=r?[]:null;let o=new T(e),s=new T(t);for(let e=false;;)if(o.done&&s.done)return i?x.createSet(n,i):w.create(n);else if(0==o.ins){S(n,o.len,0,e);o.next()}else if(0!=s.len||s.done)if(o.done||s.done)throw new Error("Mismatched change set lengths");else{let t=Math.min(o.len2,s.len),r=n.length;if(-1==o.ins){let r=-1==s.ins?-1:s.off?0:s.ins;S(n,t,r,e);if(i&&r)_(i,n,s.text)}else if(-1==s.ins){S(n,o.off?0:o.len,t,e);if(i)_(i,n,o.textBit(t))}else{S(n,o.off?0:o.len,s.off?0:s.ins,e);if(i&&!s.off)_(i,n,s.text)}e=(o.ins>t||s.ins>=0&&s.len>t)&&(e||n.length>r);o.forward2(t);s.forward(t)}else{S(n,0,s.ins,e);if(i)_(i,n,s.text);s.next()}}class T{constructor(e){this.set=e;this.i=0;this.next()}next(){let{sections:e}=this.set;if(this.i<e.length){this.len=e[this.i++];this.ins=e[this.i++]}else{this.len=0;this.ins=-2}this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?n.empty:e[t]}textBit(e){let{inserted:t}=this.set,r=this.i-2>>1;return r>=t.length&&!e?n.empty:t[r].slice(this.off,null==e?void 0:this.off+e)}forward(e){if(e==this.len)this.next();else{this.len-=e;this.off+=e}}forward2(e){if(-1==this.ins)this.forward(e);else if(e==this.ins)this.next();else{this.ins-=e;this.off+=e}}}class A{constructor(e,t,r){this.from=e;this.to=t;this.flags=r}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 0xffffff==e?void 0:e}map(e,t=-1){let r,n;if(this.empty)r=n=e.mapPos(this.from,t);else{r=e.mapPos(this.from,1);n=e.mapPos(this.to,-1)}return r==this.from&&n==this.to?this:new A(r,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return $.range(e,t);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return $.range(this.anchor,r)}eq(e,t=false){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return $.range(e.anchor,e.head)}static create(e,t,r){return new A(e,t,r)}}class ${constructor(e,t){this.ranges=e;this.mainIndex=t}map(e,t=-1){if(e.empty)return this;return $.create(this.ranges.map(r=>r.map(e,t)),this.mainIndex)}eq(e,t=false){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return false;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],t))return false;return true}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new $([this.main],0)}addRange(e,t=true){return $.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let r=this.ranges.slice();r[t]=e;return $.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new $(e.ranges.map(e=>A.fromJSON(e)),e.main)}static single(e,t=e){return new $([$.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let r=0,n=0;n<e.length;n++){let i=e[n];if(i.empty?i.from<=r:i.from<r)return $.normalized(e.slice(),t);r=i.to}return new $(e,t)}static cursor(e,t=0,r,n){return A.create(e,e,(0==t?0:t<0?8:16)|(null==r?7:Math.min(6,r))|(null!=n?n:0xffffff)<<6)}static range(e,t,r,n){let i=(null!=r?r:0xffffff)<<6|(null==n?7:Math.min(6,n));return t<e?A.create(t,e,48|i):A.create(e,t,(t>e?8:0)|i)}static normalized(e,t=0){let r=e[t];e.sort((e,t)=>
11e.from-t.from);t=e.indexOf(r);for(let r=1;r<e.length;r++){let n=e[r],i=e[r-1];if(n.empty?n.from<=i.to:n.from<i.to){let o=i.from,s=Math.max(n.to,i.to);if(r<=t)t--;e.splice(--r,2,n.anchor>n.head?$.range(s,o):$.range(o,s))}}return new $(e,t)}}function j(e,t){for(let r of e.ranges)if(r.to>t)throw new RangeError("Selection points outside of document")}let C=0;class E{constructor(e,t,r,n,i){this.combine=e;this.compareInput=t;this.compare=r;this.isStatic=n;this.id=C++;this.default=e([]);this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new E(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(!e.combine?M:(e,t)=>e===t),!!e.static,e.enables)}of(e){return new R([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new R(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new R(e,this,2,t)}from(e,t){if(!t)t=e=>e;return this.compute([e],r=>t(r.field(e)))}}function M(e,t){return e==t||e.length==t.length&&e.every((e,r)=>e===t[r])}class R{constructor(e,t,r,n){this.dependencies=e;this.facet=t;this.type=r;this.value=n;this.id=C++}dynamicSlot(e){var t;let r=this.value;let n=this.facet.compareInput;let i=this.id,o=e[i]>>1,s=2==this.type;let a=false,l=false,u=[];for(let r of this.dependencies)if("doc"==r)a=true;else if("selection"==r)l=true;else if(((null!=(t=e[r.id])?t:1)&1)==0)u.push(e[r.id]);return{create(e){e.values[o]=r(e);return 1},update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||L(e,u)){let t=r(e);if(s?!D(t,e.values[o],n):!n(t,e.values[o])){e.values[o]=t;return 1}}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=F(t,l);if(this.dependencies.every(r=>r instanceof E?t.facet(r)===e.facet(r):r instanceof q?t.field(r,false)==e.field(r,false):true)||(s?D(a=r(e),i,n):n(a=r(e),i))){e.values[o]=i;return 0}}else a=r(e);e.values[o]=a;return 1}}}}function D(e,t,r){if(e.length!=t.length)return false;for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return false;return true}function L(e,t){let r=false;for(let n of t)if(1&G(e,n))r=true;return r}function Z(e,t,r){let n=r.map(t=>e[t.id]);let i=r.map(e=>e.type);let o=n.filter(e=>!(1&e));let s=e[t.id]>>1;function a(e){let r=[];for(let t=0;t<n.length;t++){let o=F(e,n[t]);if(2==i[t])for(let e of o)r.push(e);else r.push(o)}return t.combine(r)}return{create(e){for(let t of n)G(e,t);e.values[s]=a(e);return 1},update(e,r){if(!L(e,o))return 0;let n=a(e);if(t.compare(n,e.values[s]))return 0;e.values[s]=n;return 1},reconfigure(e,i){let o=L(e,n);let l=i.config.facets[t.id],u=i.facet(t);if(l&&!o&&M(r,l)){e.values[s]=u;return 0}let f=a(e);if(t.compare(f,u)){e.values[s]=u;return 0}e.values[s]=f;return 1}}}const X=E.define({static:true});class q{constructor(e,t,r,n,i){this.id=e;this.createF=t;this.updateF=r;this.compareF=n;this.spec=i;this.provides=void 0}static define(e){let t=new q(C++,e.create,e.update,e.compare||((e,t)=>e===t),e);if(e.provide)t.provides=e.provide(t);return t}create(e){let t=e.facet(X).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>{e.values[t]=this.create(e);return 1},update:(e,r)=>{let n=e.values[t];let i=this.updateF(n,r);if(this.compareF(n,i))return 0;e.values[t]=i;return 1},reconfigure:(e,r)=>{let n=e.facet(X),i=r.facet(X),o;if((o=n.find(e=>e.field==this))&&o!=i.find(e=>e.field==this)){e.values[t]=o.create(e);return 1}if(null!=r.config.address[this.id]){e.values[t]=r.field(this);return 0}e.values[t]=this.create(e);return 1}}}init(e){return[this,X.of({field:this,create:e})]}get extension(){return this}}const B={lowest:4,low:3,default:2,high:1,highest:0};function z(e){return t=>new N(t,e)}const I={highest:z(B.highest),high:z(B.high),default:z(B.default),low:z(B.low),lowest:z(B.lowest)};class N{constructor(e,t){this.inner=e;this.prec=t}}class V{of(e){return new W(this,e)}reconfigure(e){return V.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class W{constructor(e,t){this.compartment=e;this.inner=t}}class Y{constructor(e,t,r,n,i,o){this.base=e;this.compartments=t;this.dynamicSlots=r;this.address=n;this.staticValues=i;this.facets=o;this.statusTemplate=[];while(this.statusTemplate.length<r.length)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,r){let n=[];let i=Object.create(null);let o=new Map;for(let r of U(e,t,o))if(r instanceof q)n.push(r);else(i[r.facet.id]||(i[r.facet.id]=[])).push(r);let s=Object.create(null);let a=[];let l=[];for(let e of n){s[e.id]=l.length<<1;l.push(t=>e.slot(t))}let u=null==r?void 0:r.config.facets;for(let e in i){let t=i[e],n=t[0].facet;let o=u&&u[e]||[];if(t.every(e=>0==e.type)){s[n.id]=a.length<<1|1;if(M(o,t))a.push(r.facet(n));else{let e=n.combine(t.map(e=>e.value));a.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}}else{for(let e of t)if(0==e.type){s[e.id]=a.length<<1|1;a.push(e.value)}else{s[e.id]=l.length<<1;l.push(t=>e.dynamicSlot(t))}s[n.id]=l.length<<1;l.push(e=>Z(e,n,t))}}let f=l.map(e=>e(s));return new Y(e,o,f,s,a,i)}}function U(e,t,r){let n=[[],[],[],[],[]];let i=new Map;function o(e,s){let a=i.get(e);
11if(null!=a){if(a<=s)return;let t=n[a].indexOf(e);if(t>-1)n[a].splice(t,1);if(e instanceof W)r.delete(e.compartment)}i.set(e,s);if(Array.isArray(e))for(let t of e)o(t,s);else if(e instanceof W){if(r.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let n=t.get(e.compartment)||e.inner;r.set(e.compartment,n);o(n,s)}else if(e instanceof N)o(e.inner,e.prec);else if(e instanceof q){n[s].push(e);if(e.provides)o(e.provides,s)}else if(e instanceof R){n[s].push(e);if(e.facet.extensions)o(e.facet.extensions,B.default)}else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,s)}}o(e,B.default);return n.reduce((e,t)=>e.concat(t))}function G(e,t){if(1&t)return 2;let r=t>>1;let n=e.status[r];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[r]=4;let i=e.computeSlot(e,e.config.dynamicSlots[r]);return e.status[r]=2|i}function F(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const H=E.define();const K=E.define({combine:e=>e.some(e=>e),static:true});const J=E.define({combine:e=>e.length?e[0]:void 0,static:true});const ee=E.define();const et=E.define();const er=E.define();const en=E.define({combine:e=>e.length?e[0]:false});class ei{constructor(e,t){this.type=e;this.value=t}static define(){return new eo}}class eo{of(e){return new ei(this,e)}}class es{constructor(e){this.map=e}of(e){return new ea(this,e)}}class ea{constructor(e,t){this.type=e;this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ea(this.type,t)}is(e){return this.type==e}static define(e={}){return new es(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let r=[];for(let n of e){let e=n.map(t);if(e)r.push(e)}return r}}ea.reconfigure=ea.define();ea.appendConfig=ea.define();class el{constructor(e,t,r,n,i,o){this.startState=e;this.changes=t;this.selection=r;this.effects=n;this.annotations=i;this.scrollIntoView=o;this._doc=null;this._state=null;if(r)j(r,t.newLength);if(!i.some(e=>e.type==el.time))this.annotations=i.concat(el.time.of(Date.now()))}static create(e,t,r,n,i,o){return new el(e,t,r,n,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){if(!this._state)this.startState.applyTransaction(this);return this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(el.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}el.time=ei.define();el.userEvent=ei.define();el.addToHistory=ei.define();el.remote=ei.define();function eu(e,t){let r=[];for(let n=0,i=0;;){let o,s;if(n<e.length&&(i==t.length||t[i]>=e[n])){o=e[n++];s=e[n++]}else{if(!(i<t.length))return r;o=t[i++];s=t[i++]}if(!r.length||r[r.length-1]<o)r.push(o,s);else if(r[r.length-1]<s)r[r.length-1]=s}}function ef(e,t,r){var n;let i,o,s;if(r){i=t.changes;o=x.empty(t.changes.length);s=e.changes.compose(t.changes)}else{i=t.changes.map(e.changes);o=e.changes.mapDesc(t.changes,true);s=e.changes.compose(i)}return{changes:s,selection:t.selection?t.selection.map(o):null==(n=e.selection)?void 0:n.map(i),effects:ea.mapEffects(e.effects,i).concat(ea.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function ec(e,t,r){let n=t.selection,i=em(t.annotations);if(t.userEvent)i=i.concat(el.userEvent.of(t.userEvent));return{changes:t.changes instanceof x?t.changes:x.of(t.changes||[],r,e.facet(J)),selection:n&&(n instanceof $?n:$.single(n.anchor,
11n.head)),effects:em(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function eh(e,t,r){let n=ec(e,t.length?t[0]:{},e.doc.length);if(t.length&&false===t[0].filter)r=false;for(let i=1;i<t.length;i++){if(false===t[i].filter)r=false;let o=!!t[i].sequential;n=ef(n,ec(e,t[i],o?n.changes.newLength:e.doc.length),o)}let i=el.create(e,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return ep(r?ed(i):i)}function ed(e){let t=e.startState;let r=true;for(let n of t.facet(ee)){let t=n(e);if(false===t){r=false;break}if(Array.isArray(t))r=true===r?t:eu(r,t)}if(true!==r){let n,i;if(false===r){i=e.changes.invertedDesc;n=x.empty(t.doc.length)}else{let t=e.changes.filter(r);n=t.changes;i=t.filtered.mapDesc(t.changes).invertedDesc}e=el.create(t,n,e.selection&&e.selection.map(i),ea.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let n=t.facet(et);for(let r=n.length-1;r>=0;r--){let i=n[r](e);e=i instanceof el?i:Array.isArray(i)&&1==i.length&&i[0]instanceof el?i[0]:eh(t,em(i),false)}return e}function ep(e){let t=e.startState,r=t.facet(er),n=e;for(let i=r.length-1;i>=0;i--){let o=r[i](e);if(o&&Object.keys(o).length)n=ef(n,ec(t,o,e.changes.newLength),true)}return n==e?e:el.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}const eg=[];function em(e){return null==e?eg:Array.isArray(e)?e:[e]}t.CharCategory=void 0;(function(e){e[e["Word"]=0]="Word";e[e["Space"]=1]="Space";e[e["Other"]=2]="Other"})(t.CharCategory||(t.CharCategory={}));const eO=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ev;try{ev=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}function ey(e){if(ev)return ev.test(e);for(let t=0;t<e.length;t++){let r=e[t];if(/\w/.test(r)||r>"\x80"&&(r.toUpperCase()!=r.toLowerCase()||eO.test(r)))return true}return false}function eb(e){return r=>{if(!/\S/.test(r))return t.CharCategory.Space;if(ey(r))return t.CharCategory.Word;for(let n=0;n<e.length;n++)if(r.indexOf(e[n])>-1)return t.CharCategory.Word;return t.CharCategory.Other}}class ew{constructor(e,t,r,n,i,o){this.config=e;this.doc=t;this.selection=r;this.values=n;this.status=e.statusTemplate.slice();this.computeSlot=i;if(o)o._state=this;for(let e=0;e<this.config.dynamicSlots.length;e++)G(this,e<<1);this.computeSlot=null}field(e,t=true){let r=this.config.address[e.id];if(null==r){if(t)throw new RangeError("Field is not present in this state");return}G(this,r);return F(this,r)}update(...e){return eh(this,e,true)}applyTransaction(e){let t=this.config,{base:r,compartments:n}=t;for(let i of e.effects)if(i.is(V.reconfigure)){if(t){n=new Map;t.compartments.forEach((e,t)=>n.set(t,e));t=null}n.set(i.value.compartment,i.value.extension)}else if(i.is(ea.reconfigure)){t=null;r=i.value}else if(i.is(ea.appendConfig)){t=null;r=em(r).concat(i.value)}let i;if(t)i=e.startState.values.slice();else{t=Y.resolve(r,n,this);let e=new ew(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null);i=e.values}let o=e.startState.facet(K)?e.newSelection:e.newSelection.asSingle();new ew(t,e.newDoc,o,i,(t,r)=>r.update(t,e),e)}replaceSelection(e){if("string"==typeof e)e=this.toText(e);return this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:$.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection;let r=e(t.ranges[0]);let n=this.changes(r.changes),i=[r.range];let o=em(r.effects);for(let r=1;r<t.ranges.length;r++){let s=e(t.ranges[r]);let a=this.changes(s.changes),l=a.map(n);for(let e=0;e<r;e++)i[e]=i[e].map(l);let u=n.mapDesc(a,true);i.push(s.range.map(u));n=n.compose(l);o=ea.mapEffects(o,l).concat(ea.mapEffects(em(s.effects),u))}return{changes:n,selection:$.create(i,t.mainIndex),effects:o}}changes(e=[]){if(e instanceof x)return e;return x.of(e,this.doc.length,this.facet(ew.lineSeparator))}toText(e){return n.of(e.split(this.facet(ew.lineSeparator)||b))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];if(null==t)return e.default;G(this,t);return F(this,t)}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let n=e[r];if(n instanceof q&&null!=this.config.address[n.id])t[r]=n.spec.toJSON(this.field(e[r]),this)}return t}static fromJSON(e,t={},r){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(r){for(let t in r)if(Object.prototype.hasOwnProperty.call(e,t)){let i=r[t],o=e[t];n.push(i.init(e=>i.spec.fromJSON(o,e)))}}return ew.create({doc:e.doc,selection:$.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=Y.resolve(e.extensions||[],new Map);let r=e.doc instanceof n?e.doc:n.of((e.doc||"").split(t.staticFacet(ew.lineSeparator)||b));let i=e.selection?e.selection instanceof $?e.selection:$.single(e.selection.anchor,e.selection.head):$.single(0);j(i,r.length);if(!t.staticFacet(K))i=i.asSingle();return new ew(t,r,i,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(ew.tabSize)}get lineBreak(){return this.facet(ew.lineSeparator)||"\n"}get readOnly(){return this.facet(en)}
11phrase(e,...t){for(let t of this.facet(ew.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}if(t.length)e=e.replace(/\$(\$|\d*)/g,(e,r)=>{if("$"==r)return"$";let n=+(r||1);return!n||n>t.length?e:t[n-1]});return e}languageDataAt(e,t,r=-1){let n=[];for(let i of this.facet(H))for(let o of i(this,t,r))if(Object.prototype.hasOwnProperty.call(o,e))n.push(o[e]);return n}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return eb(t.length?t[0]:"")}wordAt(e){let{text:r,from:n,length:i}=this.doc.lineAt(e);let o=this.charCategorizer(e);let s=e-n,a=e-n;while(s>0){let e=p(r,s,false);if(o(r.slice(e,s))!=t.CharCategory.Word)break;s=e}while(a<i){let e=p(r,a);if(o(r.slice(a,e))!=t.CharCategory.Word)break;a=e}return s==a?null:$.range(s+n,a+n)}}ew.allowMultipleSelections=K;ew.tabSize=E.define({combine:e=>e.length?e[0]:4});ew.lineSeparator=J;ew.readOnly=en;ew.phrases=E.define({compare(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length==n.length&&r.every(r=>e[r]==t[r])}});ew.languageData=H;ew.changeFilter=ee;ew.transactionFilter=et;ew.transactionExtender=er;V.reconfigure=ea.define();function ex(e,t,r={}){let n={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],o=n[e];if(void 0===o)n[e]=i;else if(o===i||void 0===i);else if(Object.hasOwnProperty.call(r,e))n[e]=r[e](o,i);else throw new Error("Config merge conflict for field "+e)}for(let e in t)if(void 0===n[e])n[e]=t[e];return n}class eS{eq(e){return this==e}range(e,t=e){return ek.create(e,t,this)}}eS.prototype.startSide=eS.prototype.endSide=0;eS.prototype.point=false;eS.prototype.mapMode=t.MapMode.TrackDel;function e_(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}class ek{constructor(e,t,r){this.from=e;this.to=t;this.value=r}static create(e,t,r){return new ek(e,t,r)}}function eQ(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class eP{constructor(e,t,r,n){this.from=e;this.to=t;this.value=r;this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,r,n=0){let i=r?this.to:this.from;for(let o=n,s=i.length;;){if(o==s)return o;let n=o+s>>1;let a=i[n]-e||(r?this.value[n].endSide:this.value[n].startSide)-t;if(n==o)return a>=0?o:s;if(a>=0)s=n;else o=n+1}}between(e,t,r,n){for(let i=this.findIndex(t,-1e9,true),o=this.findIndex(r,1e9,false,i);i<o;i++)if(false===n(this.from[i]+e,this.to[i]+e,this.value[i]))return false}map(e,t){let r=[],n=[],i=[],o=-1,s=-1;for(let a=0;a<this.value.length;a++){let l=this.value[a],u=this.from[a]+e,f=this.to[a]+e,c,h;if(u==f){let e=t.mapPos(u,l.startSide,l.mapMode);if(null==e)continue;c=h=e;if(l.startSide!=l.endSide){h=t.mapPos(u,l.endSide);if(h<c)continue}}else{c=t.mapPos(u,l.startSide);h=t.mapPos(f,l.endSide);if(c>h||c==h&&l.startSide>0&&l.endSide<=0)continue}if(!((h-c||l.endSide-l.startSide)<0)){if(o<0)o=c;if(l.point)s=Math.max(s,h-c);r.push(l);n.push(c-o);i.push(h-o)}}return{mapped:r.length?new eP(n,i,r,s):null,pos:o}}}class eT{constructor(e,t,r,n){this.chunkPos=e;this.chunk=t;this.nextLayer=r;this.maxPoint=n}static create(e,t,r,n){return new eT(e,t,r,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:r=false,filterFrom:n=0,filterTo:i=this.length}=e;let o=e.filter;if(0==t.length&&!o)return this;if(r)t=t.slice().sort(eQ);if(this.isEmpty)return t.length?eT.of(t):this;let s=new eC(this,null,-1).goto(0),a=0,l=[];let u=new e$;while(s.value||a<t.length)if(a<t.length&&(s.from-t[a].from||s.startSide-t[a].value.startSide)>=0){let e=t[a++];if(!u.addInner(e.from,e.to,e.value))l.push(e)}else if(1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(s.chunkIndex)<t[a].from)&&(!o||n>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&u.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex]))s.nextChunk();else{if(!o||n>s.to||i<s.from||o(s.from,s.to,s.value)){if(!u.addInner(s.from,s.to,s.value))l.push(ek.create(s.from,s.to,s.value))}s.next()}return u.finishInner(this.nextLayer.isEmpty&&!l.length?eT.empty:this.nextLayer.update({add:l,filter:o,filterFrom:n,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],r=[],n=-1;for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],s=this.chunk[i];let a=e.touchesRange(o,o+s.length);if(false===a){n=Math.max(n,s.maxPoint);t.push(s);r.push(e.mapPos(o))}else if(true===a){let{mapped:i,pos:a}=s.map(o,e);if(i){n=Math.max(n,i.maxPoint);t.push(i);r.push(a)}}}let i=this.nextLayer.map(e);
11return 0==t.length?i:new eT(r,t,i||eT.empty,n)}between(e,t,r){if(this.isEmpty)return;for(let n=0;n<this.chunk.length;n++){let i=this.chunkPos[n],o=this.chunk[n];if(t>=i&&e<=i+o.length&&false===o.between(i,e-i,t-i,r))return}this.nextLayer.between(e,t,r)}iter(e=0){return eE.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return eE.from(e).goto(t)}static compare(e,t,r,n,i=-1){let o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i);let s=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i);let a=ej(o,s,r);let l=new eR(o,a,i);let u=new eR(s,a,i);r.iterGaps((e,t,r)=>eD(l,e,u,t,r,n));if(r.empty&&0==r.length)eD(l,0,u,0,0,n)}static eq(e,t,r=0,n){if(null==n)n=0x3b9ac9ff;let i=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0);let o=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(i.length!=o.length)return false;if(!i.length)return true;let s=ej(i,o);let a=new eR(i,s,0).goto(r),l=new eR(o,s,0).goto(r);for(;;){if(a.to!=l.to||!eL(a.active,l.active)||a.point&&(!l.point||!e_(a.point,l.point)))return false;if(a.to>n)return true;a.next();l.next()}}static spans(e,t,r,n,i=-1){let o=new eR(e,null,i).goto(t),s=t;let a=o.openStart;for(;;){let e=Math.min(o.to,r);if(o.point){let r=o.activeForPoint(o.to);let i=o.pointFrom<t?r.length+1:o.point.startSide<0?r.length:Math.min(r.length,a);n.point(s,e,o.point,r,i,o.pointRank);a=Math.min(o.openEnd(e),r.length)}else if(e>s){n.span(s,e,o.active,a);a=o.openEnd(e)}if(o.to>r)return a+(o.point&&o.to>r?1:0);s=o.to;o.next()}}static of(e,t=false){let r=new e$;for(let n of e instanceof ek?[e]:t?eA(e):e)r.add(n.from,n.to,n.value);return r.finish()}static join(e){if(!e.length)return eT.empty;let t=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let n=e[r];n!=eT.empty;n=n.nextLayer)t=new eT(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}eT.empty=new eT([],[],null,-1);function eA(e){if(e.length>1)for(let t=e[0],r=1;r<e.length;r++){let n=e[r];if(eQ(t,n)>0)return e.slice().sort(eQ);t=n}return e}eT.empty.nextLayer=eT.empty;class e${finishChunk(e){this.chunks.push(new eP(this.from,this.to,this.value,this.maxPoint));this.chunkPos.push(this.chunkStart);this.chunkStart=-1;this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint);this.maxPoint=-1;if(e){this.from=[];this.to=[];this.value=[]}}constructor(){this.chunks=[];this.chunkPos=[];this.chunkStart=-1;this.last=null;this.lastFrom=-1e9;this.lastTo=-1e9;this.from=[];this.to=[];this.value=[];this.maxPoint=-1;this.setMaxPoint=-1;this.nextLayer=null}add(e,t,r){if(!this.addInner(e,t,r))(this.nextLayer||(this.nextLayer=new e$)).add(e,t,r)}addInner(e,t,r){let n=e-this.lastTo||r.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");if(n<0)return false;if(250==this.from.length)this.finishChunk(true);if(this.chunkStart<0)this.chunkStart=e;this.from.push(e-this.chunkStart);this.to.push(t-this.chunkStart);this.last=r;this.lastFrom=e;this.lastTo=t;this.value.push(r);if(r.point)this.maxPoint=Math.max(this.maxPoint,t-e);return true}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return false;if(this.from.length)this.finishChunk(true);this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint);this.chunks.push(t);this.chunkPos.push(e);let r=t.value.length-1;this.last=t.value[r];this.lastFrom=t.from[r]+e;this.lastTo=t.to[r]+e;return true}finish(){return this.finishInner(eT.empty)}finishInner(e){if(this.from.length)this.finishChunk(false);if(0==this.chunks.length)return e;let t=eT.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);this.from=null;return t}}function ej(e,t,r){let n=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)if(t.chunk[e].maxPoint<=0)n.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=n.get(e.chunk[t]);if(null!=o&&(r?r.mapPos(o):o)==e.chunkPos[t]&&!(null==r?void 0:r.touchesRange(o,o+e.chunk[t].length)))i.add(e.chunk[t])}return i}class eC{constructor(e,t,r,n=0){this.layer=e;this.skip=t;this.minPoint=r;this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){this.chunkIndex=this.rangeIndex=0;this.gotoInner(e,t,false);return this}gotoInner(e,t,r){while(this.chunkIndex<this.layer.chunk.length){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++;r=false}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,true);if(!r||this.rangeIndex<n)this.setRangeIndex(n)}this.next()}forward(e,t){if((this.to-e||this.endSide-t)<0)this.gotoInner(e,t,true)}
11next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9;this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex];let r=e+t.from[this.rangeIndex];this.from=r;this.to=e+t.to[this.rangeIndex];this.value=t.value[this.rangeIndex];this.setRangeIndex(this.rangeIndex+1);if(this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){this.chunkIndex++;if(this.skip)while(this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]))this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++;this.rangeIndex=0;this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class eE{constructor(e){this.heap=e}static from(e,t=null,r=-1){let n=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)if(o.maxPoint>=r)n.push(new eC(o,t,r,i));return 1==n.length?n[0]:new eE(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let r of this.heap)r.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)eM(this.heap,e);this.next();return this}forward(e,t){for(let r of this.heap)r.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)eM(this.heap,e);if((this.to-e||this.value.endSide-t)<0)this.next()}next(){if(0==this.heap.length){this.from=this.to=1e9;this.value=null;this.rank=-1}else{let e=this.heap[0];this.from=e.from;this.to=e.to;this.value=e.value;this.rank=e.rank;if(e.value)e.next();eM(this.heap,0)}}}function eM(e,t){for(let r=e[t];;){let n=(t<<1)+1;if(n>=e.length)break;let i=e[n];if(n+1<e.length&&i.compare(e[n+1])>=0){i=e[n+1];n++}if(r.compare(i)<0)break;e[n]=r;e[t]=i;t=n}}class eR{constructor(e,t,r){this.minPoint=r;this.active=[];this.activeTo=[];this.activeRank=[];this.minActive=-1;this.point=null;this.pointFrom=0;this.pointRank=0;this.to=-1e9;this.endSide=0;this.openStart=-1;this.cursor=eE.from(e,t,r)}goto(e,t=-1e9){this.cursor.goto(e,t);this.active.length=this.activeTo.length=this.activeRank.length=0;this.minActive=-1;this.to=e;this.endSide=t;this.openStart=-1;this.next();return this}forward(e,t){while(this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){eZ(this.active,e);eZ(this.activeTo,e);eZ(this.activeRank,e);this.minActive=eq(this.active,this.activeTo)}addActive(e){let t=0,{value:r,to:n,rank:i}=this.cursor;while(t<this.activeRank.length&&(i-this.activeRank[t]||n-this.activeTo[t])>0)t++;eX(this.active,t,r);eX(this.activeTo,t,n);eX(this.activeRank,t,i);if(e)eX(e,t,this.cursor.from);this.minActive=eq(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n];this.endSide=this.active[n].endSide;break}this.removeActive(n);if(r)eZ(r,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from;this.endSide=this.cursor.startSide;break}else{let e=this.cursor.value;if(e.point)if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e;this.pointFrom=this.cursor.from;this.pointRank=this.cursor.rank;this.to=this.cursor.to;this.endSide=e.endSide;this.cursor.next();this.forward(this.to,this.endSide);break}else{this.addActive(r);this.cursor.next()}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let t=r.length-1;t>=0&&r[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let r=this.active.length-1;r>=0;r--){if(this.activeRank[r]<this.pointRank)break;if(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)t.push(this.active[r])}return t.reverse()}openEnd(e){let t=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)t++;return t}}function eD(e,t,r,n,i,o){e.goto(t);r.goto(n);let s=n+i;let a=n,l=n-t;let u=!!o.boundChange;
11for(let t=false;;){let n=e.to+l-r.to,i=n||e.endSide-r.endSide;let f=i<0?e.to+l:r.to,c=Math.min(f,s);let h=e.point||r.point;if(h){if(!(e.point&&r.point&&e_(e.point,r.point)&&eL(e.activeForPoint(e.to),r.activeForPoint(r.to))))o.comparePoint(a,c,e.point,r.point);t=false}else{if(t)o.boundChange(a);if(c>a&&!eL(e.active,r.active))o.compareRange(a,c,e.active,r.active);if(u&&c<s&&(n||e.openEnd(f)!=r.openEnd(f)))t=true}if(f>s)break;a=f;if(i<=0)e.next();if(i>=0)r.next()}}function eL(e,t){if(e.length!=t.length)return false;for(let r=0;r<e.length;r++)if(e[r]!=t[r]&&!e_(e[r],t[r]))return false;return true}function eZ(e,t){for(let r=t,n=e.length-1;r<n;r++)e[r]=e[r+1];e.pop()}function eX(e,t,r){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=r}function eq(e,t){let r=-1,n=1e9;for(let i=0;i<t.length;i++)if((t[i]-n||e[i].endSide-e[r].endSide)<0){r=i;n=t[i]}return r}function eB(e,t,r=e.length){let n=0;for(let i=0;i<r&&i<e.length;)if(9==e.charCodeAt(i)){n+=t-n%t;i++}else{n++;i=p(e,i)}return n}function ez(e,t,r,n){for(let n=0,i=0;;){if(i>=t)return n;if(n==e.length)break;i+=9==e.charCodeAt(n)?r-i%r:1;n=p(e,n)}return true===n?-1:e.length}t.Annotation=ei;t.AnnotationType=eo;t.ChangeDesc=w;t.ChangeSet=x;t.Compartment=V;t.EditorSelection=$;t.EditorState=ew;t.Facet=E;t.Line=h;t.Prec=I;t.Range=ek;t.RangeSet=eT;t.RangeSetBuilder=e$;t.RangeValue=eS;t.SelectionRange=A;t.StateEffect=ea;t.StateEffectType=es;t.StateField=q;t.Text=n;t.Transaction=el;t.codePointAt=O;t.codePointSize=y;t.combineConfig=ex;t.countColumn=eB;t.findClusterBreak=p;t.findColumn=ez;t.fromCodePoint=v}}},language:{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/language",version:"6.12.1",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t,r){"use strict";var n=e("@lezer/common");var i=e("@codemirror/state");var o=e("@codemirror/view");var s=e("@lezer/highlight");var a=e("style-mod");var l;const u=new n.NodeProp;function f(e){return i.Facet.define({combine:e?t=>t.concat(e):void 0})}const c=new n.NodeProp;class h{constructor(e,t,r=[],n=""){this.data=e;this.name=n;if(!i.EditorState.prototype.hasOwnProperty("tree"))Object.defineProperty(i.EditorState.prototype,"tree",{get(){return g(this)}});this.parser=t;this.extension=[T.of(this),i.EditorState.languageData.of((e,t,r)=>{let n=d(e,t,r),i=n.type.prop(u);if(!i)return[];let o=e.facet(i),s=n.type.prop(c);if(s){let i=n.resolve(t-n.from,r);for(let t of s)if(t.test(i,e)){let r=e.facet(t.facet);return"replace"==t.type?r:r.concat(o)}}return o})].concat(r)}isActiveAt(e,t,r=-1){return d(e,t,r).type.prop(u)==this.data}findRegions(e){let t=e.facet(T);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[];let i=(e,t)=>{if(e.prop(u)==this.data)return void r.push({from:t,to:t+e.length});let o=e.prop(n.NodeProp.mounted);if(o){if(o.tree.prop(u)==this.data){if(o.overlay)for(let e of o.overlay)r.push({from:e.from+t,to:e.to+t});else r.push({from:t,to:t+e.length});return}else if(o.overlay){let e=r.length;i(o.tree,o.overlay[0].from+t);if(r.length>e)return}}for(let r=0;r<e.children.length;r++){let o=e.children[r];if(o instanceof n.Tree)i(o,e.positions[r]+t)}};i(g(e),0);return r}get allowsNesting(){return true}}h.setState=i.StateEffect.define();function d(e,t,r){let i=e.facet(T),o=g(e).topNode;if(!i||i.allowsNesting){for(let e=o;e;e=e.enter(t,r,n.IterMode.ExcludeBuffers|n.IterMode.EnterBracketed))if(e.type.isTop)o=e}return o}class p extends h{constructor(e,t,r){super(e,t,[],r);this.parser=t}static define(e){let t=f(e.languageData);return new p(t,e.parser.configure({props:[u.add(e=>e.isTop?t:void 0)]}),e.name)}configure(e,t){return new p(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function g(e){let t=e.field(h.state,false);return t?t.tree:n.Tree.empty}function m(e,t,r=50){var n;let i=null==(n=e.field(h.state,false))?void 0:n.context;if(!i)return null;let o=i.viewport;i.updateViewport({from:0,to:t});let s=i.isDone(t)||i.work(r,t)?i.tree:null;i.updateViewport(o);return s}function O(e,t=e.doc.length){var r;return(null==(r=e.field(h.state,false))?void 0:r.context.isDone(t))||false}function v(e,t=e.viewport.to,r=100){let n=m(e.state,t,r);if(n!=g(e.state))e.dispatch({});return!!n}function y(e){var t;return(null==(t=e.plugin(P))?void 0:t.isWorking())||false}class b{constructor(e){this.doc=e;this.cursorPos=0;this.string="";this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){this.string=this.cursor.next(e-this.cursorPos).value;this.cursorPos=e+this.string.length;return this.cursorPos-this.string.length}chunk(e){this.syncTo(e);return this.string}get lineChunks(){return true}read(e,t){let r=this.cursorPos-this.string.length;if(e<r||t>=this.cursorPos)return this.doc.sliceString(e,t);return this.string.slice(e-r,t-r)}}let w=null;class x{constructor(e,t,r=[],n,i,o,s,a){this.parser=e;this.state=t;this.fragments=r;this.tree=n;this.treeLen=i;this.viewport=o;this.skipped=s;this.scheduleOn=a;this.parse=null;this.tempSkipped=[]}static create(e,t,r){return new x(e,t,[],n.Tree.empty,0,r,[],null)}startParse(){return this.parser.startParse(new b(this.state.doc),this.fragments)}work(e,t){if(null!=t&&t>=this.state.doc.length)t=void 0;if(this.tree!=n.Tree.empty&&this.isDone(null!=t?t:this.state.doc.length)){this.takeTree();return true}return this.withContext(()=>{var r;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}if(!this.parse)this.parse=this.startParse();if(null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length)this.parse.stopAt(t);for(;;){let i=this.parse.advance();if(i){this.fragments=this.withoutTempSkipped(n.TreeFragment.addTree(i,this.fragments,null!=this.parse.stoppedAt));this.treeLen=null!=(r=this.parse.stoppedAt)?r:this.state.doc.length;this.tree=i;this.parse=null;if(!(this.treeLen<(null!=t?t:this.state.doc.length)))return true;this.parse=this.startParse()}if(e())return false}})}takeTree(){let e,t;if(this.parse&&(e=this.parse.parsedPos)>=this.treeLen){if(null==this.parse.stoppedAt||this.parse.stoppedAt>e)this.parse.stopAt(e);this.withContext(()=>{while(!(t=this.parse.advance()));});this.treeLen=e;this.tree=t;this.fragments=this.withoutTempSkipped(n.TreeFragment.addTree(this.tree,this.fragments,true));this.parse=null}}withContext(e){let t=w;w=this;try{return e()}finally{w=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=S(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:i,treeLen:o,viewport:s,skipped:a}=this;this.takeTree();if(!e.empty){let t=[];e.iterChangedRanges((e,r,n,i)=>t.push({fromA:e,toA:r,fromB:n,toB:i}));r=n.TreeFragment.applyChanges(r,t);i=n.Tree.empty;o=0;s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)};if(this.skipped.length){a=[];for(let t of this.skipped){let r=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);if(r<n)a.push({from:r,to:n})}}}return new x(this.parser,t,r,i,o,s,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return false;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:r,to:n}=this.skipped[t];if(r<e.to&&n>
11e.from){this.fragments=S(this.fragments,r,n);this.skipped.splice(t--,1)}}if(this.skipped.length>=t)return false;this.reset();return true}reset(){if(this.parse){this.takeTree();this.parse=null}}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends n.Parser{createParse(t,r,i){let o=i[0].from,s=i[i.length-1].to;let a={parsedPos:o,advance(){let t=w;if(t){for(let e of i)t.tempSkipped.push(e);if(e)t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e}this.parsedPos=s;return new n.Tree(n.NodeType.none,[],[],s-o)},stoppedAt:null,stopAt(){}};return a}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return w}}function S(e,t,r){return n.TreeFragment.applyChanges(e,[{fromA:t,toA:r,fromB:t,toB:r}])}class _{constructor(e){this.context=e;this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state);let r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);if(!t.work(20,r))t.takeTree();return new _(t)}static init(e){let t=Math.min(3e3,e.doc.length);let r=x.create(e.facet(T).parser,e,{from:0,to:t});if(!r.work(20,t))r.takeTree();return new _(r)}}h.state=i.StateField.define({create:_.init,update(e,t){for(let e of t.effects)if(e.is(h.setState))return e.value;if(t.startState.facet(T)!=t.state.facet(T))return _.init(t.state);return e.apply(t)}});let k=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};if("undefined"!=typeof requestIdleCallback)k=e=>{let t=-1,r=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(r):cancelIdleCallback(t)};const Q="undefined"!=typeof navigator&&(null==(l=navigator.scheduling)?void 0:l.isInputPending)?()=>navigator.scheduling.isInputPending():null;const P=o.ViewPlugin.fromClass(class{constructor(e){this.view=e;this.working=null;this.workScheduled=0;this.chunkEnd=-1;this.chunkBudget=-1;this.work=this.work.bind(this);this.scheduleWork()}update(e){let t=this.view.state.field(h.state).context;if(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)this.scheduleWork();if(e.docChanged||e.selectionSet){if(this.view.hasFocus)this.chunkBudget+=50;this.scheduleWork()}this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(h.state);if(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))this.working=k(this.work)}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)){this.chunkEnd=t+3e4;this.chunkBudget=3e3}if(this.chunkBudget<=0)return;let{state:r,viewport:{to:n}}=this.view,i=r.field(h.state);if(i.tree==i.context.tree&&i.context.isDone(n+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Q?Math.max(25,e.timeRemaining()-5):1e9);let s=i.context.treeLen<n&&r.doc.length>n+1e3;let a=i.context.work(()=>Q&&Q()||Date.now()>o,n+(s?0:1e5));this.chunkBudget-=Date.now()-t;if(a||this.chunkBudget<=0){i.context.takeTree();this.view.dispatch({effects:h.setState.of(new _(i.context))})}if(this.chunkBudget>0&&!(a&&!s))this.scheduleWork();this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){if(e.scheduleOn){this.workScheduled++;e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>o.logException(this.view.state,e)).then(()=>this.workScheduled--);e.scheduleOn=null}}destroy(){if(this.working)this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}});const T=i.Facet.define({combine(e){return e.length?e[0]:null},enables:e=>[h.state,P,o.EditorView.contentAttributes.compute([e],t=>{let r=t.facet(e);return r&&r.name?{"data-language":r.name}:{}})]});class A{constructor(e,t=[]){this.language=e;this.support=t;this.extension=[e,t]}}class ${constructor(e,t,r,n,i,o){this.name=e;this.alias=t;this.extensions=r;this.filename=n;this.loadFunc=i;this.support=o;this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{this.loading=null;throw e}))}
11static of(e){let{load:t,support:r}=e;if(!t){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(r)}return new $(e.name,(e.alias||[]).concat(e.name).map(e=>e.toLowerCase()),e.extensions||[],e.filename,t,r)}static matchFilename(e,t){for(let r of e)if(r.filename&&r.filename.test(t))return r;let r=/\.([^.]+)$/.exec(t);if(r){for(let t of e)if(t.extensions.indexOf(r[1])>-1)return t}return null}static matchLanguageName(e,t,r=true){t=t.toLowerCase();for(let r of e)if(r.alias.some(e=>e==t))return r;if(r)for(let r of e)for(let e of r.alias){let n=t.indexOf(e);if(n>-1&&(e.length>2||!/\w/.test(t[n-1])&&!/\w/.test(t[n+e.length])))return r}return null}}const j=i.Facet.define();const C=i.Facet.define({combine:e=>{if(!e.length)return"  ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function E(e){let t=e.facet(C);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function M(e,t){let r="",n=e.tabSize,i=e.facet(C)[0];if("	"==i){while(t>=n){r+="	";t-=n}i=" "}for(let e=0;e<t;e++)r+=i;return r}function R(e,t){if(e instanceof i.EditorState)e=new L(e);for(let r of e.state.facet(j)){let n=r(e,t);if(void 0!==n)return n}let r=g(e.state);return r.length>=t?X(e,r,t):null}function D(e,t,r){let n=Object.create(null);let i=new L(e,{overrideIndentation:e=>{var t;return null!=(t=n[e])?t:-1}});let o=[];for(let s=t;s<=r;){let t=e.doc.lineAt(s);s=t.to+1;let r=R(i,t.from);if(null==r)continue;if(!/\S/.test(t.text))r=0;let a=/^\s*/.exec(t.text)[0];let l=M(e,r);if(a!=l){n[t.from]=r;o.push({from:t.from,to:t.from+a.length,insert:l})}}return e.changes(o)}class L{constructor(e,t={}){this.state=e;this.options=t;this.unit=E(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e);let{simulateBreak:n,simulateDoubleBreak:i}=this.options;if(null!=n&&n>=r.from&&n<=r.to)if(i&&n==e)return{text:"",from:e};else if(t<0?n<e:n<=e)return{text:r.text.slice(n-r.from),from:n};else return{text:r.text.slice(0,n-r.from),from:r.from};return r}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:n}=this.lineAt(e,t);return r.slice(e-n,Math.min(r.length,e+100-n))}column(e,t=1){let{text:r,from:n}=this.lineAt(e,t);let i=this.countColumn(r,e-n);let o=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;if(o>-1)i+=o-this.countColumn(r,r.search(/\S|$/));return i}countColumn(e,t=e.length){return i.countColumn(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:n}=this.lineAt(e,t);let i=this.options.overrideIndentation;if(i){let e=i(n);if(e>-1)return e}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Z=new n.NodeProp;function X(e,t,r){let n=t.resolveStack(r);let i=t.resolveInner(r,-1).resolve(r,0).enterUnfinishedNodesBefore(r);if(i!=n.node){let e=[];for(let t=i;t&&!(t.from<n.node.from||t.to>n.node.to||t.from==n.node.from&&t.type==n.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)n={node:e[t],next:n}}return q(n,e,r)}function q(e,t,r){for(let n=e;n;n=n.next){let e=z(n.node);if(e)return e(N.create(t,r,n))}return 0}function B(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function z(e){let t=e.type.prop(Z);if(t)return t;let r=e.firstChild,i;if(r&&(i=r.type.prop(n.NodeProp.closedBy))){let t=e.lastChild,r=t&&i.indexOf(t.name)>-1;return e=>U(e,true,1,void 0,r&&!B(e)?t.from:void 0)}return null==e.parent?I:null}function I(){return 0}class N extends L{constructor(e,t,r){super(e.state,e.options);this.base=e;this.pos=t;this.context=r}get node(){return this.context.node}static create(e,t,r){return new N(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(t.from);while(r.parent&&r.parent.from==r.from)r=r.parent;if(V(r,e))break;t=this.state.doc.lineAt(r.from)}return this.lineIndent(t.from)}continue(){return q(this.context.next,this.base,this.pos)}}function V(e,t){for(let r=t;r;r=r.parent)if(e==r)return true;return false}function W(e){let t=e.node;let r=t.childAfter(t.from),n=t.lastChild;if(!r)return null;let i=e.options.simulateBreak;let o=e.state.doc.lineAt(r.from);let s=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=r.to;;){let i=t.childAfter(e);if(!i||i==n)return null;if(!i.type.isSkipped){if(i.from>=s)return null;let e=/^ */.exec(o.text.slice(r.to-o.from))[0].length;return{from:r.from,to:r.to+e}}e=i.to}}function Y({closing:e,align:t=true,units:r=1}
11){return n=>U(n,t,r,e)}function U(e,t,r,n,i){let o=e.textAfter,s=o.match(/^\s*/)[0].length;let a=n&&o.slice(s,s+n.length)==n||i==e.pos+s;let l=t?W(e):null;if(l)return a?e.column(l.from):e.column(l.to);return e.baseIndent+(a?0:e.unit*r)}const G=e=>e.baseIndent;function F({except:e,units:t=1}={}){return r=>{let n=e&&e.test(r.textAfter);return r.baseIndent+(n?0:t*r.unit)}}const H=200;function K(){return i.EditorState.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let r=e.newDoc,{head:n}=e.newSelection.main,i=r.lineAt(n);if(n>i.from+H)return e;let o=r.sliceString(i.from,n);if(!t.some(e=>e.test(o)))return e;let{state:s}=e,a=-1,l=[];for(let{head:e}of s.selection.ranges){let t=s.doc.lineAt(e);if(t.from==a)continue;a=t.from;let r=R(s,t.from);if(null==r)continue;let n=/^\s*/.exec(t.text)[0];let i=M(s,r);if(n!=i)l.push({from:t.from,to:t.from+n.length,insert:i})}return l.length?[e,{changes:l,sequential:true}]:e})}const J=i.Facet.define();const ee=new n.NodeProp;function et(e){let t=e.firstChild,r=e.lastChild;return t&&t.to<r.from?{from:t.to,to:r.type.isError?e.to:r.from}:null}function er(e,t,r){let n=g(e);if(n.length<r)return null;let i=n.resolveStack(r,1);let o=null;for(let s=i;s;s=s.next){let i=s.node;if(i.to<=r||i.from>r)continue;if(o&&i.from<t)break;let a=i.type.prop(ee);if(a&&(i.to<n.length-50||n.length==e.doc.length||!en(i))){let n=a(i,e);if(n&&n.from<=r&&n.from>=t&&n.to>r)o=n}}return o}function en(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function ei(e,t,r){for(let n of e.facet(J)){let i=n(e,t,r);if(i)return i}return er(e,t,r)}function eo(e,t){let r=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return r>=n?void 0:{from:r,to:n}}const es=i.StateEffect.define({map:eo});const ea=i.StateEffect.define({map:eo});function el(e){let t=[];for(let{head:r}of e.state.selection.ranges)if(!t.some(e=>e.from<=r&&e.to>=r))t.push(e.lineBlockAt(r));return t}const eu=i.StateField.define({create(){return o.Decoration.none},update(e,t){if(t.isUserEvent("delete"))t.changes.iterChangedRanges((t,r)=>e=ef(e,t,r));e=e.map(t.changes);for(let r of t.effects)if(r.is(es)&&!ed(e,r.value.from,r.value.to)){let{preparePlaceholder:n}=t.state.facet(e_);let i=n?o.Decoration.replace({widget:new eT(n(t.state,r.value))}):eP;e=e.update({add:[i.range(r.value.from,r.value.to)]})}else if(r.is(ea))e=e.update({filter:(e,t)=>r.value.from!=e||r.value.to!=t,filterFrom:r.value.from,filterTo:r.value.to});if(t.selection)e=ef(e,t.selection.main.head);return e},provide:e=>o.EditorView.decorations.from(e),toJSON(e,t){let r=[];e.between(0,t.doc.length,(e,t)=>{r.push(e,t)});return r},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let r=0;r<e.length;){let n=e[r++],i=e[r++];if("number"!=typeof n||"number"!=typeof i)throw new RangeError("Invalid JSON for fold state");t.push(eP.range(n,i))}return o.Decoration.set(t,true)}});function ef(e,t,r=t){let n=false;e.between(t,r,(e,i)=>{if(e<r&&i>t)n=true});return n?e.update({filterFrom:t,filterTo:r,filter:(e,n)=>e>=r||n<=t}):e}function ec(e){return e.field(eu,false)||i.RangeSet.empty}function eh(e,t,r){var n;let i=null;null==(n=e.field(eu,false))||n.between(t,r,(e,t)=>{if(!i||i.from>e)i={from:e,to:t}});return i}function ed(e,t,r){let n=false;e.between(t,t,(e,i)=>{if(e==t&&i==r)n=true});return n}function ep(e,t){return e.field(eu,false)?t:t.concat(i.StateEffect.appendConfig.of(ek()))}const eg=e=>{for(let t of el(e)){let r=ei(e.state,t.from,t.to);if(r){e.dispatch({effects:ep(e.state,[es.of(r),eO(e,r)])});return true}}return false};const em=e=>{if(!e.state.field(eu,false))return false;let t=[];for(let r of el(e)){let n=eh(e.state,r.from,r.to);if(n)t.push(ea.of(n),eO(e,n,false))}if(t.length)e.dispatch({effects:t});return t.length>0};function eO(e,t,r=true){let n=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return o.EditorView.announce.of(`${e.state.phrase(r?"Folded lines":"Unfolded lines")} ${n} ${e.state.phrase("to")} ${i}.`)}const ev=e=>{let{state:t}=e,r=[];for(let n=0;n<t.doc.length;){let i=e.lineBlockAt(n),o=ei(t,i.from,i.to);if(o)r.push(es.of(o));n=(o?e.lineBlockAt(o.to):i).to+1}if(r.length)e.dispatch({effects:ep(e.state,r)});return!!r.length};const ey=e=>{let t=e.state.field(eu,false);
11if(!t||!t.size)return false;let r=[];t.between(0,e.state.doc.length,(e,t)=>{r.push(ea.of({from:e,to:t}))});e.dispatch({effects:r});return true};function eb(e,t){for(let r=t;;){let n=ei(e.state,r.from,r.to);if(n&&n.to>t.from)return n;if(!r.from)return null;r=e.lineBlockAt(r.from-1)}}const ew=e=>{let t=[];for(let r of el(e)){let n=eh(e.state,r.from,r.to);if(n)t.push(ea.of(n),eO(e,n,false));else{let n=eb(e,r);if(n)t.push(es.of(n),eO(e,n))}}if(t.length>0)e.dispatch({effects:ep(e.state,t)});return!!t.length};const ex=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:eg},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:em},{key:"Ctrl-Alt-[",run:ev},{key:"Ctrl-Alt-]",run:ey}];const eS={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"};const e_=i.Facet.define({combine(e){return i.combineConfig(e,eS)}});function ek(e){let t=[eu,eC];if(e)t.push(e_.of(e));return t}function eQ(e,t){let{state:r}=e,n=r.facet(e_);let i=t=>{let r=e.lineBlockAt(e.posAtDOM(t.target));let n=eh(e.state,r.from,r.to);if(n)e.dispatch({effects:ea.of(n)});t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,i,t);let o=document.createElement("span");o.textContent=n.placeholderText;o.setAttribute("aria-label",r.phrase("folded code"));o.title=r.phrase("unfold");o.className="cm-foldPlaceholder";o.onclick=i;return o}const eP=o.Decoration.replace({widget:new class extends o.WidgetType{toDOM(e){return eQ(e,null)}}});class eT extends o.WidgetType{constructor(e){super();this.value=e}eq(e){return this.value==e.value}toDOM(e){return eQ(e,this.value)}}const eA={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>false};class e$ extends o.GutterMarker{constructor(e,t){super();this.config=e;this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");t.textContent=this.open?this.config.openText:this.config.closedText;t.title=e.state.phrase(this.open?"Fold line":"Unfold line");return t}}function ej(e={}){let t={...eA,...e};let r=new e$(t,true),n=new e$(t,false);let s=o.ViewPlugin.fromClass(class{constructor(e){this.from=e.viewport.from;this.markers=this.buildMarkers(e)}update(e){if(e.docChanged||e.viewportChanged||e.startState.facet(T)!=e.state.facet(T)||e.startState.field(eu,false)!=e.state.field(eu,false)||g(e.startState)!=g(e.state)||t.foldingChanged(e))this.markers=this.buildMarkers(e.view)}buildMarkers(e){let t=new i.RangeSetBuilder;for(let i of e.viewportLineBlocks){let o=eh(e.state,i.from,i.to)?n:ei(e.state,i.from,i.to)?r:null;if(o)t.add(i.from,i.from,o)}return t.finish()}});let{domEventHandlers:a}=t;return[s,o.gutter({class:"cm-foldGutter",markers(e){var t;return(null==(t=e.plugin(s))?void 0:t.markers)||i.RangeSet.empty},initialSpacer(){return new e$(t,false)},domEventHandlers:{...a,click:(e,t,r)=>{if(a.click&&a.click(e,t,r))return true;let n=eh(e.state,t.from,t.to);if(n){e.dispatch({effects:ea.of(n)});return true}let i=ei(e.state,t.from,t.to);if(i){e.dispatch({effects:es.of(i)});return true}return false}}}),ek()]}const eC=o.EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class eE{constructor(e,t){this.specs=e;let r;function n(e){let t=a.StyleModule.newName();(r||(r=Object.create(null)))["."+t]=e;return t}const i="string"==typeof t.all?t.all:t.all?n(t.all):void 0;const o=t.scope;this.scope=o instanceof h?e=>e.prop(u)==o.data:o?e=>e==o:void 0;this.style=s.tagHighlighter(e.map(e=>({tag:e.tag,class:e.class||n(Object.assign({},e,{tag:null}))})),{all:i}).style;this.module=r?new a.StyleModule(r):null;this.themeType=t.themeType}static define(e,t){return new eE(e,t||{})}}const eM=i.Facet.define();const eR=i.Facet.define({combine(e){return e.length?[e[0]]:null}});function eD(e){let t=e.facet(eM);return t.length?t:e.facet(eR)}function eL(e,t){let r=[eq],n;if(e instanceof eE){if(e.module)r.push(o.EditorView.styleModule.of(e.module));n=e.themeType}if(null==t?void 0:t.fallback)r.push(eR.of(e));else if(n)r.push(eM.computeN([o.EditorView.darkTheme],t=>t.facet(o.EditorView.darkTheme)==("dark"==n)?[e]:[]));else r.push(eM.of(e));return r}function eZ(e,t,r){let n=eD(e);let i=null;if(n){for(let e of n)if(!e.scope||r&&e.scope(r)){let r=e.style(t);if(r)i=i?i+" "+r:r}}return i}class eX{constructor(e){this.markCache=Object.create(null);this.tree=g(e.state);this.decorations=this.buildDeco(e,eD(e.state));this.decoratedTo=e.viewport.to}update(e){let t=g(e.state),r=eD(e.state);let n=r!=eD(e.startState);let{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);if(t.length<i.to&&!n&&t.type==this.tree.type&&o>=i.to){this.decorations=this.decorations.map(e.changes);this.decoratedTo=o}else if(t!=this.tree||e.viewportChanged||n){this.tree=t;this.decorations=this.buildDeco(e.view,r);this.decoratedTo=i.to}}buildDeco(e,t){if(!t||!this.tree.length)return o.Decoration.none;let r=new i.RangeSetBuilder;for(let{from:n,to:i}of e.visibleRanges)s.highlightTree(this.tree,t,(e,t,n)=>{r.add(e,t,this.markCache[n]||(this.markCache[n]=o.Decoration.mark({class:n})))},n,i);return r.finish()}}const eq=i.Prec.high(o.ViewPlugin.fromClass(eX,{decorations:e=>e.decorations}));const eB=eE.define([{tag:s.tags.meta,color:"#404740"},{tag:s.tags.link,textDecoration:"underline"},{tag:s.tags.heading,textDecoration:"underline",fontWeight:"bold"},{tag:s.tags.emphasis,fontStyle:"italic"},{tag:s.tags.strong,fontWeight:"bold"},{tag:s.tags.strikethrough,textDecoration:"line-through"}
11,{tag:s.tags.keyword,color:"#708"},{tag:[s.tags.atom,s.tags.bool,s.tags.url,s.tags.contentSeparator,s.tags.labelName],color:"#219"},{tag:[s.tags.literal,s.tags.inserted],color:"#164"},{tag:[s.tags.string,s.tags.deleted],color:"#a11"},{tag:[s.tags.regexp,s.tags.escape,s.tags.special(s.tags.string)],color:"#e40"},{tag:s.tags.definition(s.tags.variableName),color:"#00f"},{tag:s.tags.local(s.tags.variableName),color:"#30a"},{tag:[s.tags.typeName,s.tags.namespace],color:"#085"},{tag:s.tags.className,color:"#167"},{tag:[s.tags.special(s.tags.variableName),s.tags.macroName],color:"#256"},{tag:s.tags.definition(s.tags.propertyName),color:"#00c"},{tag:s.tags.comment,color:"#940"},{tag:s.tags.invalid,color:"#f00"}]);const ez=o.EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}});const eI=1e4,eN="()[]{}";const eV=i.Facet.define({combine(e){return i.combineConfig(e,{afterCursor:true,brackets:eN,maxScanDistance:eI,renderMatch:eU})}});const eW=o.Decoration.mark({class:"cm-matchingBracket"}),eY=o.Decoration.mark({class:"cm-nonmatchingBracket"});function eU(e){let t=[];let r=e.matched?eW:eY;t.push(r.range(e.start.from,e.start.to));if(e.end)t.push(r.range(e.end.from,e.end.to));return t}const eG=i.StateField.define({create(){return o.Decoration.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let r=[];let n=t.state.facet(eV);for(let e of t.state.selection.ranges){if(!e.empty)continue;let i=e1(t.state,e.head,-1,n)||e.head>0&&e1(t.state,e.head-1,1,n)||n.afterCursor&&(e1(t.state,e.head,1,n)||e.head<t.state.doc.length&&e1(t.state,e.head+1,-1,n));if(i)r=r.concat(n.renderMatch(i,t.state))}return o.Decoration.set(r,true)},provide:e=>o.EditorView.decorations.from(e)});const eF=[eG,ez];function eH(e={}){return[eV.of(e),eF]}const eK=new n.NodeProp;function eJ(e,t,r){let i=e.prop(t<0?n.NodeProp.openedBy:n.NodeProp.closedBy);if(i)return i;if(1==e.name.length){let n=r.indexOf(e.name);if(n>-1&&n%2==(t<0?1:0))return[r[n+t]]}return null}function e0(e){let t=e.type.prop(eK);return t?t(e.node):e}function e1(e,t,r,n={}){let i=n.maxScanDistance||eI,o=n.brackets||eN;let s=g(e),a=s.resolveInner(t,r);for(let n=a;n;n=n.parent){let i=eJ(n.type,r,o);if(i&&n.from<n.to){let s=e0(n);if(s&&(r>0?t>=s.from&&t<s.to:t>s.from&&t<=s.to))return e2(e,t,r,n,s,i,o)}}return e5(e,t,r,s,a.type,i,o)}function e2(e,t,r,n,i,o,s){let a=n.parent,l={from:i.from,to:i.to};let u=0,f=null==a?void 0:a.cursor();if(f&&(r<0?f.childBefore(n.from):f.childAfter(n.to)))do if(r<0?f.to<=n.from:f.from>=n.to){if(0==u&&o.indexOf(f.type.name)>-1&&f.from<f.to){let e=e0(f);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:true}}else if(eJ(f.type,r,s))u++;else if(eJ(f.type,-r,s)){if(0==u){let e=e0(f);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:false}}u--}}while(r<0?f.prevSibling():f.nextSibling());return{start:l,matched:false}}function e5(e,t,r,n,i,o,s){let a=r<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1);let l=s.indexOf(a);if(l<0||l%2==0!=r>0)return null;let u={from:r<0?t-1:t,to:r>0?t+1:t};let f=e.doc.iterRange(t,r>0?e.doc.length:0),c=0;for(let e=0;!f.next().done&&e<=o;){let o=f.value;if(r<0)e+=o.length;let a=t+e*r;for(let e=r>0?0:o.length-1,t=r>0?o.length:-1;e!=t;e+=r){let t=s.indexOf(o[e]);if(!(t<0)&&n.resolveInner(a+e,1).type==i)if(t%2==0==r>0)c++;else{if(1==c)return{start:u,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};c--}}if(r>0)e+=o.length}return f.done?{start:u,matched:false}:null}function e3(e,t,r,n=0,i=0){if(null==t){t=e.search(/[^\s\u00a0]/);if(-1==t)t=e.length}let o=i;for(let i=n;i<t;i++)if(9==e.charCodeAt(i))o+=r-o%r;else o++;return o}class e4{constructor(e,t,r,n){this.string=e;this.tabSize=t;this.indentUnit=r;this.overrideIndent=n;this.pos=0;this.start=0;this.lastColumnPos=0;this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t=this.string.charAt(this.pos);let r;r="string"==typeof e?t==e:t&&(e instanceof RegExp?e.test(t):e(t));if(r){++this.pos;return t}}eatWhile(e){let t=this.pos;
11while(this.eat(e));return this.pos>t}eatSpace(){let e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1){this.pos=t;return true}}backUp(e){this.pos-=e}column(){if(this.lastColumnPos<this.start){this.lastColumnValue=e3(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue}indentation(){var e;return null!=(e=this.overrideIndent)?e:e3(this.string,null,this.tabSize)}match(e,t,r){if("string"==typeof e){let n=e=>r?e.toLowerCase():e;let i=this.string.substr(this.pos,e.length);if(n(i)!=n(e))return null;if(false!==t)this.pos+=e.length;return true}{let r=this.string.slice(this.pos).match(e);if(r&&r.index>0)return null;if(r&&false!==t)this.pos+=r[0].length;return r}}current(){return this.string.slice(this.start,this.pos)}}function e8(e){return{name:e.name||"",token:e.token,blankLine:e.blankLine||(()=>{}),startState:e.startState||(()=>true),copyState:e.copyState||e6,indent:e.indent||(()=>null),languageData:e.languageData||{},tokenTable:e.tokenTable||to,mergeTokens:false!==e.mergeTokens}}function e6(e){if("object"!=typeof e)return e;let t={};for(let r in e){let n=e[r];t[r]=n instanceof Array?n.slice():n}return t}const e7=new WeakMap;class e9 extends h{constructor(e){let t=f(e.languageData);let r=e8(e),i;let o=new class extends n.Parser{createParse(e,t,r){return new tn(i,e,t,r)}};super(t,o,[],e.name);this.topNode=tg(t,this);i=this;this.streamParser=r;this.stateAfter=new n.NodeProp({perNode:true});this.tokenTable=e.tokenTable?new tc(r.tokenTable):th}static define(e){return new e9(e)}getIndent(e){let t;let{overrideIndentation:r}=e.options;if(r){t=e7.get(e.state);if(null!=t&&t<e.pos-1e4)t=void 0}let n=te(this,e.node.tree,e.node.from,e.node.from,null!=t?t:e.pos),i,o;if(n){o=n.state;i=n.pos+1}else{o=this.streamParser.startState(e.unit);i=e.node.from}if(e.pos-i>1e4)return null;while(i<e.pos){let t=e.state.doc.lineAt(i),n=Math.min(e.pos,t.to);if(t.length){let i=r?r(t.from):-1;let s=new e4(t.text,e.state.tabSize,e.unit,i<0?void 0:i);while(s.pos<n-t.from)ti(this.streamParser.token,s,o)}else this.streamParser.blankLine(o,e.unit);if(n==e.pos)break;i=t.to+1}let s=e.lineAt(e.pos);if(r&&null==t)e7.set(e.state,s.from);return this.streamParser.indent(o,/^\s*(.*)/.exec(s.text)[1],e)}get allowsNesting(){return false}}function te(e,t,r,i,o){let s=r>=i&&r+t.length<=o&&t.prop(e.stateAfter);if(s)return{state:e.streamParser.copyState(s),pos:r+t.length};for(let s=t.children.length-1;s>=0;s--){let a=t.children[s],l=r+t.positions[s];let u=a instanceof n.Tree&&l<o&&te(e,a,l,i,o);if(u)return u}return null}function tt(e,t,r,i,o){if(o&&r<=0&&i>=t.length)return t;if(!o&&0==r&&t.type==e.topNode)o=true;for(let s=t.children.length-1;s>=0;s--){let a=t.positions[s],l=t.children[s],u;if(a<i&&l instanceof n.Tree){if(!(u=tt(e,l,r-a,i-a,o)))break;return o?new n.Tree(t.type,t.children.slice(0,s).concat(u),t.positions.slice(0,s+1),a+u.length):u}}return null}function tr(e,t,r,i,o){for(let n of t){let t=n.from+(n.openStart?25:0),o=n.to-(n.openEnd?25:0);let s=t<=r&&o>r&&te(e,n.tree,0-n.offset,r,o),a;if(s&&s.pos<=i&&(a=tt(e,n.tree,r+n.offset,s.pos+n.offset,false)))return{state:s.state,tree:a}}return{state:e.streamParser.startState(o?E(o):4),tree:n.Tree.empty}}class tn{constructor(e,t,r,n){this.lang=e;this.input=t;this.fragments=r;this.ranges=n;this.stoppedAt=null;this.chunks=[];this.chunkPos=[];this.chunk=[];this.chunkReused=void 0;this.rangeIndex=0;this.to=n[n.length-1].to;let i=x.get(),o=n[0].from;let{state:s,tree:a}=tr(e,r,o,this.to,null==i?void 0:i.state);this.state=s;this.parsedPos=this.chunkStart=o+a.length;for(let e=0;e<a.children.length;e++){this.chunks.push(a.children[e]);this.chunkPos.push(a.positions[e])}if(i&&this.parsedPos<i.viewport.from-1e5&&n.some(e=>e.from<=i.viewport.from&&e.to>=i.viewport.from)){this.state=this.lang.streamParser.startState(E(i.state));i.skipUntilInView(this.parsedPos,i.viewport.from);this.parsedPos=i.viewport.from}this.moveRangeIndex()}advance(){let e=x.get();let t=null==this.stoppedAt?this.to:Math.min(this.to,this.stoppedAt);let r=Math.min(t,this.chunkStart+512);if(e)r=Math.min(r,e.viewport.to);while(this.parsedPos<r)this.parseLine(e);if(this.chunkStart<this.parsedPos)this.finishChunk();if(this.parsedPos>=t)return this.finish();if(e&&this.parsedPos>=e.viewport.to){e.skipUntilInView(this.parsedPos,t);return this.finish()}return null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks){if("\n"==t)t=""}else{let e=t.indexOf("\n");if(e>-1)t=t.slice(0,e)}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),r=e+t.length;for(let e=this.rangeIndex;;){let n=this.ranges[e].to;if(n>=r)break;t=t.slice(0,n-(r-t.length));e++;
11if(e==this.ranges.length)break;let i=this.ranges[e].from;let o=this.lineAfter(i);t+=o;r=i+o.length}return{line:t,end:r}}skipGapsTo(e,t,r){for(;;){let n=this.ranges[this.rangeIndex].to,i=e+t;if(r>0?n>i:n>=i)break;let o=this.ranges[++this.rangeIndex].from;t+=o-n}return t}moveRangeIndex(){while(this.ranges[this.rangeIndex].to<this.parsedPos)this.rangeIndex++}emitToken(e,t,r,n){let i=4;if(this.ranges.length>1){n=this.skipGapsTo(t,n,1);t+=n;let e=this.chunk.length;n=this.skipGapsTo(r,n,-1);r+=n;i+=this.chunk.length-e}let o=this.chunk.length-4;if(this.lang.streamParser.mergeTokens&&4==i&&o>=0&&this.chunk[o]==e&&this.chunk[o+2]==t)this.chunk[o+2]=r;else this.chunk.push(e,t,r,i);return n}parseLine(e){let{line:t,end:r}=this.nextLine(),n=0,{streamParser:i}=this.lang;let o=new e4(t,e?e.state.tabSize:4,e?E(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else while(!o.eol()){let e=ti(i.token,o,this.state);if(e)n=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+o.start,this.parsedPos+o.pos,n);if(o.start>1e4)break}this.parsedPos=r;this.moveRangeIndex();if(this.parsedPos<this.to)this.parsedPos++}finishChunk(){let e=n.Tree.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:ta,topID:0,maxBufferLength:512,reused:this.chunkReused});e=new n.Tree(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]);this.chunks.push(e);this.chunkPos.push(this.chunkStart-this.ranges[0].from);this.chunk=[];this.chunkReused=void 0;this.chunkStart=this.parsedPos}finish(){return new n.Tree(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function ti(e,t,r){t.start=t.pos;for(let n=0;n<10;n++){let n=e(t,r);if(t.pos>t.start)return n}throw new Error("Stream parser failed to advance stream.")}const to=Object.create(null);const ts=[n.NodeType.none];const ta=new n.NodeSet(ts);const tl=[];const tu=Object.create(null);const tf=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])tf[e]=tp(to,t);class tc{constructor(e){this.extra=e;this.table=Object.assign(Object.create(null),tf)}resolve(e){return e?this.table[e]||(this.table[e]=tp(this.extra,e)):0}}const th=new tc(to);function td(e,t){if(tl.indexOf(e)>-1)return;tl.push(e);console.warn(t)}function tp(e,t){let r=[];for(let n of t.split(" ")){let t=[];for(let r of n.split(".")){let n=e[r]||s.tags[r];if(n)if("function"==typeof n)if(t.length)t=t.map(n);else td(r,`Modifier ${r} used at start of tag`);else if(t.length)td(r,`Tag ${r} used as modifier`);else t=Array.isArray(n)?n:[n];else td(r,`Unknown highlighting tag ${r}`)}for(let e of t)r.push(e)}if(!r.length)return 0;let i=t.replace(/ /g,"_"),o=i+" "+r.map(e=>e.id);let a=tu[o];if(a)return a.id;let l=tu[o]=n.NodeType.define({id:ts.length,name:i,props:[s.styleTags({[i]:r})]});ts.push(l);return l.id}function tg(e,t){let r=n.NodeType.define({id:ts.length,name:"Document",props:[u.add(()=>e),Z.add(()=>e=>t.getIndent(e))],top:true});ts.push(r);return r}function tm(e){return e.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(e)}function tO(e){for(let t=e.iter();!t.next().done;)if(tm(t.value))return true;return false}function tv(e){let t=false;e.iterChanges((e,r,n,i,o)=>{if(!t&&tO(o))t=true});return t}const ty=i.Facet.define({combine:e=>e.some(e=>e)});function tb(e={}){let t=[tw];if(e.alwaysIsolate)t.push(ty.of(true));return t}const tw=o.ViewPlugin.fromClass(class{constructor(e){this.always=e.state.facet(ty)||e.textDirection!=o.Direction.LTR||e.state.facet(o.EditorView.perLineTextDirection);this.hasRTL=!this.always&&tO(e.state.doc);this.tree=g(e.state);this.decorations=this.always||this.hasRTL?tx(e,this.tree,this.always):o.Decoration.none}update(e){let t=e.state.facet(ty)||e.view.textDirection!=o.Direction.LTR||e.state.facet(o.EditorView.perLineTextDirection);if(!t&&!this.hasRTL&&tv(e.changes))this.hasRTL=true;if(!t&&!this.hasRTL)return;let r=g(e.state);if(t!=this.always||r!=this.tree||e.docChanged||e.viewportChanged){this.tree=r;this.always=t;this.decorations=tx(e.view,r,t)}}},{provide:e=>{function t(t){var r,n;return null!=(n=null==(r=t.plugin(e))?void 0:r.decorations)?n:o.Decoration.none}return[o.EditorView.outerDecorations.of(t),i.Prec.lowest(o.EditorView.bidiIsolatedRanges.of(t))]}});function tx(e,t,r){let o=new i.RangeSetBuilder;let s=e.visibleRanges;if(!r)s=tS(s,e.state.doc);for(let{from:e,to:r}of s)t.iterate({enter:e=>{let t=e.type.prop(n.NodeProp.isolate);if(t)o.add(e.from,e.to,t_[t])},from:e,to:r});return o.finish()}function tS(e,t){let r=t.iter(),n=0,i=[],o=null;for(let{from:t,to:s}of e){if(o&&o.to>t){t=o.to;if(t>=s)continue}if(n+r.value.length<t){r.next(t-(n+r.value.length));n=t}for(;;){let e=n,t=n+r.value.length;if(!r.lineBreak&&tm(r.value))if(o&&o.to>e-10)o.to=Math.min(s,t);else i.push(o={from:e,to:Math.min(s,t)});if(t>=s)break;n=t;r.next()}}return i}const t_={rtl:o.Decoration.mark({class:"cm-iso",inclusive:true,attributes:{dir:"rtl"},bidiIsolate:o.Direction.RTL}),ltr:o.Decoration.mark({class:"cm-iso",inclusive:true,attributes:{dir:"ltr"},bidiIsolate:o.Direction.LTR}),auto:o.Decoration.mark({class:"cm-iso",inclusive:true,attributes:{dir:"auto"},bidiIsolate:null})};t.DocInput=b;t.HighlightStyle=eE;t.IndentContext=L;t.LRLanguage=p;t.Language=h;t.LanguageDescription=$;t.LanguageSupport=A;t.ParseContext=x;t.StreamLanguage=e9;t.StringStream=e4;t.TreeIndentContext=N;
11t.bidiIsolates=tb;t.bracketMatching=eH;t.bracketMatchingHandle=eK;t.codeFolding=ek;t.continuedIndent=F;t.defaultHighlightStyle=eB;t.defineLanguageFacet=f;t.delimitedIndent=Y;t.ensureSyntaxTree=m;t.flatIndent=G;t.foldAll=ev;t.foldCode=eg;t.foldEffect=es;t.foldGutter=ej;t.foldInside=et;t.foldKeymap=ex;t.foldNodeProp=ee;t.foldService=J;t.foldState=eu;t.foldable=ei;t.foldedRanges=ec;t.forceParsing=v;t.getIndentUnit=E;t.getIndentation=R;t.highlightingFor=eZ;t.indentNodeProp=Z;t.indentOnInput=K;t.indentRange=D;t.indentService=j;t.indentString=M;t.indentUnit=C;t.language=T;t.languageDataProp=u;t.matchBrackets=e1;t.sublanguageProp=c;t.syntaxHighlighting=eL;t.syntaxParserRunning=y;t.syntaxTree=g;t.syntaxTreeAvailable=O;t.toggleFold=ew;t.unfoldAll=ey;t.unfoldCode=em;t.unfoldEffect=ea}}},commands:{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/commands",version:"6.10.2",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";var r=e("@codemirror/state");var n=e("@codemirror/view");var i=e("@codemirror/language");var o=e("@lezer/common");const s=e=>{let{state:t}=e,r=t.doc.lineAt(t.selection.main.from),n=g(e.state,r.from);return n.line?l(e):n.block?p(e):false};function a(e,t){return({state:r,dispatch:n})=>{if(r.readOnly)return false;let i=e(t,r);if(!i)return false;n(r.update(i));return true}}const l=a(b,0);const u=a(b,1);const f=a(b,2);const c=a(y,0);const h=a(y,1);const d=a(y,2);const p=a((e,t)=>y(e,t,v(t)),0);function g(e,t){let r=e.languageDataAt("commentTokens",t,1);return r.length?r[0]:{}}const m=50;function O(e,{open:t,close:r},n,i){let o=e.sliceDoc(n-m,n);let s=e.sliceDoc(i,i+m);let a=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(s)[0].length;let u=o.length-a;if(o.slice(u-t.length,u)==t&&s.slice(l,l+r.length)==r)return{open:{pos:n-a,margin:a&&1},close:{pos:i+l,margin:l&&1}};let f,c;if(i-n<=2*m)f=c=e.sliceDoc(n,i);else{f=e.sliceDoc(n,n+m);c=e.sliceDoc(i-m,i)}let h=/^\s*/.exec(f)[0].length,d=/\s*$/.exec(c)[0].length;let p=c.length-d-r.length;if(f.slice(h,h+t.length)==t&&c.slice(p,p+r.length)==r)return{open:{pos:n+h+t.length,margin:/\s/.test(f.charAt(h+t.length))?1:0},close:{pos:i-d-r.length,margin:/\s/.test(c.charAt(p-1))?1:0}};return null}function v(e){let t=[];for(let r of e.selection.ranges){let n=e.doc.lineAt(r.from);let i=r.to<=n.to?n:e.doc.lineAt(r.to);if(i.from>n.from&&i.from==r.to)i=r.to==n.to+1?n:e.doc.lineAt(r.to-1);let o=t.length-1;if(o>=0&&t[o].to>n.from)t[o].to=i.to;else t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return t}function y(e,t,r=t.selection.ranges){let n=r.map(e=>g(t,e.from).block);if(!n.every(e=>e))return null;let i=r.map((e,r)=>O(t,n[r],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(r.map((e,t)=>{if(i[t])return[];return[{from:e.from,insert:n[t].open+" "},{from:e.to,insert:" "+n[t].close}]}))};if(1!=e&&i.some(e=>e)){let e=[];for(let t=0,r;t<i.length;t++)if(r=i[t]){let i=n[t],{open:o,close:s}=r;e.push({from:o.pos-i.open.length,to:o.pos+o.margin},{from:s.pos-s.margin,to:s.pos+i.close.length})}return{changes:e}}return null}function b(e,t,r=t.selection.ranges){let n=[];let i=-1;r:for(let{from:e,to:o}of r){let r=n.length,s=1e9,a;for(let r=e;r<=o;){let l=t.doc.lineAt(r);if(void 0==a){a=g(t,l.from).line;if(!a)continue r}if(l.from>i&&(e==o||o>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length;let t=e==l.length;let r=l.text.slice(e,e+a.length)==a?e:-1;if(e<l.text.length&&e<s)s=e;n.push({line:l,comment:r,token:a,indent:e,empty:t,single:false})}r=l.to+1}if(s<1e9){for(let e=r;e<n.length;e++)if(n[e].indent<n[e].line.text.length)n[e].indent=s}if(n.length==r+1)n[r].single=true}if(2!=e&&n.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:r,indent:i,empty:o,single:s}of n)if(s||!o)e.push({from:t.from+i,insert:r+" "});let r=t.changes(e);return{changes:r,selection:t.selection.map(r,1)}}if(1!=e&&n.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:r,token:i}of n)if(r>=0){let n=t.from+r,o=n+i.length;if(" "==t.text[o-t.from])o++;e.push({from:n,to:o})}return{changes:e}}return null}const w=r.Annotation.define();const x=r.Annotation.define();const S=r.Facet.define();const _=r.Facet.define({combine(e){return r.combineConfig(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(r,n)=>e(r,n)||t(r,n)})}});const k=r.StateField.define({create(){return U.empty},update(e,t){let n=t.state.facet(_);let i=t.annotation(w);if(i){let r=D.fromTransaction(t,i.selection),o=i.side;let s=0==o?e.undone:e.done;s=r?L(s,s.length,n.minDepth,r):I(s,t.startState.selection);return new U(0==o?i.rest:s,0==o?s:i.rest)}let o=t.annotation(x);if("full"==o||"before"==o)e=e.isolate();if(false===t.annotation(r.Transaction.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=D.fromTransaction(t);let a=t.annotation(r.Transaction.time),l=t.annotation(r.Transaction.userEvent);if(s)e=e.addChanges(s,a,l,n,t);else if(t.selection)e=e.addSelection(t.startState.selection,a,l,n.newGroupDelay);if("full"==o||"after"==o)e=e.isolate();return e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new U(e.done.map(D.fromJSON),e.undone.map(D.fromJSON))}});function Q(e={}){return[k,_.of(e),n.EditorView.domEventHandlers({beforeinput(e,t){let r="historyUndo"==e.inputType?A:"historyRedo"==e.inputType?$:null;if(!r)return false;e.preventDefault();return r(t)}})]}const P=k;function T(e,t){return function({state:r,dispatch:n}){if(!t&&r.readOnly)return false;let i=r.field(k,false);
11if(!i)return false;let o=i.pop(e,r,t);if(!o)return false;n(o);return true}}const A=T(0,false);const $=T(1,false);const j=T(0,true);const C=T(1,true);function E(e){return function(t){let r=t.field(k,false);if(!r)return 0;let n=0==e?r.done:r.undone;return n.length-(n.length&&!n[0].changes?1:0)}}const M=E(0);const R=E(1);class D{constructor(e,t,r,n,i){this.changes=e;this.effects=t;this.mapped=r;this.startSelection=n;this.selectionsAfter=i}setSelAfter(e){return new D(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,r;return{changes:null==(e=this.changes)?void 0:e.toJSON(),mapped:null==(t=this.mapped)?void 0:t.toJSON(),startSelection:null==(r=this.startSelection)?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new D(e.changes&&r.ChangeSet.fromJSON(e.changes),[],e.mapped&&r.ChangeDesc.fromJSON(e.mapped),e.startSelection&&r.EditorSelection.fromJSON(e.startSelection),e.selectionsAfter.map(r.EditorSelection.fromJSON))}static fromTransaction(e,t){let r=B;for(let t of e.startState.facet(S)){let n=t(e);if(n.length)r=r.concat(n)}if(!r.length&&e.changes.empty)return null;return new D(e.changes.invert(e.startState.doc),r,void 0,t||e.startState.selection,B)}static selection(e){return new D(void 0,B,void 0,void 0,e)}}function L(e,t,r,n){let i=t+1>r+20?t-r-1:0;let o=e.slice(i,t);o.push(n);return o}function Z(e,t){let r=[],n=false;e.iterChangedRanges((e,t)=>r.push(e,t));t.iterChangedRanges((e,t,i,o)=>{for(let e=0;e<r.length;){let t=r[e++],s=r[e++];if(o>=t&&i<=s)n=true}});return n}function X(e,t){return e.ranges.length==t.ranges.length&&0===e.ranges.filter((e,r)=>e.empty!=t.ranges[r].empty).length}function q(e,t){return e.length?t.length?e.concat(t):e:t}const B=[];const z=200;function I(e,t){if(!e.length)return[D.selection([t])];{let r=e[e.length-1];let n=r.selectionsAfter.slice(Math.max(0,r.selectionsAfter.length-z));if(n.length&&n[n.length-1].eq(t))return e;n.push(t);return L(e,e.length-1,1e9,r.setSelAfter(n))}}function N(e){let t=e[e.length-1];let r=e.slice();r[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1));return r}function V(e,t){if(!e.length)return e;let r=e.length,n=B;while(r){let i=W(e[r-1],t,n);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,r);t[r-1]=i;return t}t=i.mapped;r--;n=i.selectionsAfter}return n.length?[D.selection(n)]:B}function W(e,t,n){let i=q(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):B,n);if(!e.changes)return D.selection(i);let o=e.changes.map(t),s=t.mapDesc(e.changes,true);let a=e.mapped?e.mapped.composeDesc(s):s;return new D(o,r.StateEffect.mapEffects(e.effects,t),a,e.startSelection.map(s),i)}const Y=/^(input\.type|delete)($|\.)/;class U{constructor(e,t,r=0,n){this.done=e;this.undone=t;this.prevTime=r;this.prevUserEvent=n}isolate(){return this.prevTime?new U(this.done,this.undone):this}addChanges(e,t,n,i,o){let s=this.done,a=s[s.length-1];s=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||Y.test(n))&&(!a.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(o,Z(a.changes,e.changes))||"input.type.compose"==n)?L(s,s.length-1,i.minDepth,new D(e.changes.compose(a.changes),q(r.StateEffect.mapEffects(e.effects,a.changes),a.effects),a.mapped,a.startSelection,B)):L(s,s.length,i.minDepth,e);return new U(s,B,t,n)}addSelection(e,t,r,n){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:B;if(i.length>0&&t-this.prevTime<n&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&X(i[i.length-1],e))return this;return new U(I(this.done,e),this.undone,t,r)}addMapping(e){return new U(V(this.done,e),V(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,r){let n=0==e?this.done:this.undone;if(0==n.length)return null;let i=n[n.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(r&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:w.of({side:e,rest:N(n),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:true});{if(!i.changes)return null;let r=1==n.length?B:n.slice(0,n.length-1);if(i.mapped)r=V(r,i.mapped);
11return t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:w.of({side:e,rest:r,selection:o}),filter:false,userEvent:0==e?"undo":"redo",scrollIntoView:true})}}}U.empty=new U(B,B);const G=[{key:"Mod-z",run:A,preventDefault:true},{key:"Mod-y",mac:"Mod-Shift-z",run:$,preventDefault:true},{linux:"Ctrl-Shift-z",run:$,preventDefault:true},{key:"Mod-u",run:j,preventDefault:true},{key:"Alt-u",mac:"Mod-Shift-u",run:C,preventDefault:true}];function F(e,t){return r.EditorSelection.create(e.ranges.map(t),e.mainIndex)}function H(e,t){return e.update({selection:t,scrollIntoView:true,userEvent:"select"})}function K({state:e,dispatch:t},r){let n=F(e.selection,r);if(n.eq(e.selection,true))return false;t(H(e,n));return true}function J(e,t){return r.EditorSelection.cursor(t?e.to:e.from)}function ee(e,t){return K(e,r=>r.empty?e.moveByChar(r,t):J(r,t))}function et(e){return e.textDirectionAt(e.state.selection.main.head)==n.Direction.LTR}const er=e=>ee(e,!et(e));const en=e=>ee(e,et(e));const ei=e=>ee(e,true);const eo=e=>ee(e,false);
11function es(e,t,n){let i=t.head,o=e.doc.lineAt(i);i=i==(n?o.to:o.from)?n?Math.min(e.doc.length,o.to+1):Math.max(0,o.from-1):o.from+r.findClusterBreak(o.text,i-o.from,n);return r.EditorSelection.cursor(i,n?-1:1)}function ea(e,t){return K(e,r=>r.empty?es(e.state,r,t):J(r,t))}const el=e=>ea(e,true);const eu=e=>ea(e,false);function ef(e,t){return K(e,r=>r.empty?e.moveByGroup(r,t):J(r,t))}const ec=e=>ef(e,!et(e));const eh=e=>ef(e,et(e));const ed=e=>ef(e,true);const ep=e=>ef(e,false);function eg(e,t,n){let i=e.state.charCategorizer(t);let o=i(n),s=o!=r.CharCategory.Space;return e=>{let t=i(e);if(t!=r.CharCategory.Space)return s&&t==o;s=false;return true}}const em=e=>K(e,t=>t.empty?e.moveByChar(t,true,r=>eg(e,t.head,r)):J(t,true));const eO="undefined"!=typeof Intl&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function ev(e,t,n){let i=e.state.charCategorizer(t.from);let o=r.CharCategory.Space,s=t.from,a=0;let l=false,u=false,f=false;let c=t=>{if(l)return false;s+=n?t.length:-t.length;let c=i(t),h;if(c==r.CharCategory.Word&&t.charCodeAt(0)<128&&/[\W_]/.test(t))c=-1;if(o==r.CharCategory.Space)o=c;if(o!=c)return false;if(o==r.CharCategory.Word)if(t.toLowerCase()==t){if(!n&&u)return false;f=true}else if(f){if(n)return false;l=true}else{if(u&&n&&i(h=e.state.sliceDoc(s,s+1))==r.CharCategory.Word&&h.toLowerCase()==h)return false;u=true}a++;return true};let h=e.moveByChar(t,n,e=>{c(e);return c});if(eO&&o==r.CharCategory.Word&&h.from==t.from+a*(n?1:-1)){let i=Math.min(t.head,h.head),o=Math.max(t.head,h.head);let s=e.state.sliceDoc(i,o);if(s.length>1&&/[\u4E00-\uffff]/.test(s)){let e=Array.from(eO.segment(s));if(e.length>1){if(n)return r.EditorSelection.cursor(t.head+e[1].index,-1);return r.EditorSelection.cursor(h.head+e[e.length-1].index,1)}}}return h}function ey(e,t){return K(e,r=>r.empty?ev(e,r,t):J(r,t))}const eb=e=>ey(e,true);const ew=e=>ey(e,false);function ex(e,t,r){if(t.type.prop(r))return true;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function eS(e,t,n){let s=i.syntaxTree(e).resolveInner(t.head);let a=n?o.NodeProp.closedBy:o.NodeProp.openedBy;for(let r=t.head;;){let t=n?s.childAfter(r):s.childBefore(r);if(!t)break;if(ex(e,t,a))s=t;else r=n?t.to:t.from}let l=s.type.prop(a),u,f;f=l&&(u=n?i.matchBrackets(e,s.from,1):i.matchBrackets(e,s.to,-1))&&u.matched?n?u.end.to:u.end.from:n?s.to:s.from;return r.EditorSelection.cursor(f,n?-1:1)}const e_=e=>K(e,t=>eS(e.state,t,!et(e)));const ek=e=>K(e,t=>eS(e.state,t,et(e)));function eQ(e,t){return K(e,r=>{if(!r.empty)return J(r,t);let n=e.moveVertically(r,t);return n.head!=r.head?n:e.moveToLineBoundary(r,t)})}const eP=e=>eQ(e,false);const eT=e=>eQ(e,true);function eA(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2;let r=0,i=0,o;if(t){for(let t of e.state.facet(n.EditorView.scrollMargins)){let n=t(e);if(null==n?void 0:n.top)r=Math.max(null==n?void 0:n.top,r);if(null==n?void 0:n.bottom)i=Math.max(null==n?void 0:n.bottom,i)}o=e.scrollDOM.clientHeight-r-i}else o=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:i,selfScroll:t,height:Math.max(e.defaultLineHeight,o-5)}}function e$(e,t){let r=eA(e);let{state:i}=e,o=F(i.selection,n=>n.empty?e.moveVertically(n,t,r.height):J(n,t));if(o.eq(i.selection))return false;let s;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head);let a=e.scrollDOM.getBoundingClientRect();let l=a.top+r.marginTop,u=a.bottom-r.marginBottom;if(t&&t.top>l&&t.bottom<u)s=n.EditorView.scrollIntoView(o.main.head,{y:"start",yMargin:t.top-l})}e.dispatch(H(i,o),{effects:s});return true}const ej=e=>e$(e,false);const eC=e=>e$(e,true);function eE(e,t,n){let i=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?i.to:i.from))o=e.moveToLineBoundary(t,n,false);if(!n&&o.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;if(n&&t.head!=i.from+n)o=r.EditorSelection.cursor(i.from+n)}return o}const eM=e=>K(e,t=>eE(e,t,true));const eR=e=>K(e,t=>eE(e,t,false));const eD=e=>K(e,t=>eE(e,t,!et(e)));const eL=e=>K(e,t=>eE(e,t,et(e)));const eZ=e=>K(e,t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from,1));const eX=e=>K(e,t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to,-1));function eq(e,t,n){let o=false,s=F(e.selection,t=>{let s=i.matchBrackets(e,t.head,-1)||i.matchBrackets(e,t.head,1)||t.head>0&&i.matchBrackets(e,t.head-1,1)||t.head<e.doc.length&&i.matchBrackets(e,t.head+1,-1);if(!s||!s.end)return t;o=true;let a=s.start.from==t.head?s.end.to:s.end.from;
11return n?r.EditorSelection.range(t.anchor,a):r.EditorSelection.cursor(a)});if(!o)return false;t(H(e,s));return true}const eB=({state:e,dispatch:t})=>eq(e,t,false);const ez=({state:e,dispatch:t})=>eq(e,t,true);function eI(e,t){let n=F(e.state.selection,e=>{let n=t(e);return r.EditorSelection.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});if(n.eq(e.state.selection))return false;e.dispatch(H(e.state,n));return true}function eN(e,t){return eI(e,r=>e.moveByChar(r,t))}const eV=e=>eN(e,!et(e));const eW=e=>eN(e,et(e));const eY=e=>eN(e,true);const eU=e=>eN(e,false);const eG=e=>eI(e,t=>es(e.state,t,true));const eF=e=>eI(e,t=>es(e.state,t,false));function eH(e,t){return eI(e,r=>e.moveByGroup(r,t))}const eK=e=>eH(e,!et(e));const eJ=e=>eH(e,et(e));const e0=e=>eH(e,true);const e1=e=>eH(e,false);const e2=e=>eI(e,t=>e.moveByChar(t,true,r=>eg(e,t.head,r)));function e5(e,t){return eI(e,r=>ev(e,r,t))}const e3=e=>e5(e,true);const e4=e=>e5(e,false);const e8=e=>eI(e,t=>eS(e.state,t,!et(e)));const e6=e=>eI(e,t=>eS(e.state,t,et(e)));function e7(e,t){return eI(e,r=>e.moveVertically(r,t))}const e9=e=>e7(e,false);const te=e=>e7(e,true);function tt(e,t){return eI(e,r=>e.moveVertically(r,t,eA(e).height))}const tr=e=>tt(e,false);const tn=e=>tt(e,true);const ti=e=>eI(e,t=>eE(e,t,true));const to=e=>eI(e,t=>eE(e,t,false));const ts=e=>eI(e,t=>eE(e,t,!et(e)));const ta=e=>eI(e,t=>eE(e,t,et(e)));const tl=e=>eI(e,t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from));const tu=e=>eI(e,t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to));const tf=({state:e,dispatch:t})=>{t(H(e,{anchor:0}));return true};const tc=({state:e,dispatch:t})=>{t(H(e,{anchor:e.doc.length}));return true};const th=({state:e,dispatch:t})=>{t(H(e,{anchor:e.selection.main.anchor,head:0}));return true};const td=({state:e,dispatch:t})=>{t(H(e,{anchor:e.selection.main.anchor,head:e.doc.length}));return true};const tp=({state:e,dispatch:t})=>{t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"}));return true};const tg=({state:e,dispatch:t})=>{let n=tZ(e).map(({from:t,to:n})=>r.EditorSelection.range(t,Math.min(n+1,e.doc.length)));t(e.update({selection:r.EditorSelection.create(n),userEvent:"select"}));return true};const tm=({state:e,dispatch:t})=>{let n=F(e.selection,t=>{let n=i.syntaxTree(e),o=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);if(e.node.from>=o.node.from&&e.node.to<=o.node.to)o=e}for(let e=o;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return r.EditorSelection.range(n.to,n.from)}return t});if(n.eq(e.selection))return false;t(H(e,n));return true};function tO(e,t){let{state:n}=e,i=n.selection,o=n.selection.ranges.slice();for(let r of n.selection.ranges){let i=n.doc.lineAt(r.head);if(t?i.to<e.state.doc.length:i.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<i.from||r.head>i.to){if(!o.some(e=>e.head==r.head))o.push(r);break}if(r.head==n.head)break;n=r}}if(o.length==i.ranges.length)return false;e.dispatch(H(n,r.EditorSelection.create(o,o.length-1)));return true}const tv=e=>tO(e,false);const ty=e=>tO(e,true);const tb=({state:e,dispatch:t})=>{let n=e.selection,i=null;if(n.ranges.length>1)i=r.EditorSelection.create([n.main]);else if(!n.main.empty)i=r.EditorSelection.create([r.EditorSelection.cursor(n.main.head)]);if(!i)return false;t(H(e,i));return true};function tw(e,t){if(e.state.readOnly)return false;let i="delete.selection",{state:o}=e;let s=o.changeByRange(n=>{let{from:o,to:s}=n;if(o==s){let r=t(n);if(r<o){i="delete.backward";r=tx(e,r,false)}else if(r>o){i="delete.forward";r=tx(e,r,true)}o=Math.min(o,r);s=Math.max(s,r)}else{o=tx(e,o,false);s=tx(e,s,true)}return o==s?{range:n}:{changes:{from:o,to:s},range:r.EditorSelection.cursor(o,o<n.head?-1:1)}});if(s.changes.empty)return false;e.dispatch(o.update(s,{scrollIntoView:true,userEvent:i,effects:"delete.selection"==i?n.EditorView.announce.of(o.phrase("Selection deleted")):void 0}));return true}function tx(e,t,r){if(e instanceof n.EditorView)for(let i of e.state.facet(n.EditorView.atomicRanges).map(t=>t(e)))i.between(t,t,(e,n)=>{if(e<t&&n>t)t=r?n:e});return t}const tS=(e,t,n)=>tw(e,o=>{let s=o.from,{state:a}=e,l=a.doc.lineAt(s),u,f;if(n&&!t&&s>l.from&&s<l.from+200&&!/[^ \t]/.test(u=l.text.slice(0,s-l.from))){if("	"==u[u.length-1])return s-1;let e=r.countColumn(u,a.tabSize),t=e%i.getIndentUnit(a)||i.getIndentUnit(a);for(let e=0;e<t&&" "==u[u.length-1-e];e++)s--;f=s}else{f=r.findClusterBreak(l.text,s-l.from,t,t)+l.from;if(f==s&&l.number!=(t?a.doc.lines:1))f+=t?1:-1;else if(!t&&/[\ufe00-\ufe0f]/.test(l.text.slice(f-l.from,s-l.from)))f=r.findClusterBreak(l.text,f-l.from,false,false)+l.from}return f});const t_=e=>tS(e,false,true);const tk=e=>tS(e,false,false);const tQ=e=>tS(e,true,false);const tP=(e,t)=>tw(e,n=>{let i=n.head,{state:o}=e,s=o.doc.lineAt(i);let a=o.charCategorizer(i);for(let e=null;;
11){if(i==(t?s.to:s.from)){if(i==n.head&&s.number!=(t?o.doc.lines:1))i+=t?1:-1;break}let l=r.findClusterBreak(s.text,i-s.from,t)+s.from;let u=s.text.slice(Math.min(i,l)-s.from,Math.max(i,l)-s.from);let f=a(u);if(null!=e&&f!=e)break;if(" "!=u||i!=n.head)e=f;i=l}return i});const tT=e=>tP(e,false);const tA=e=>tP(e,true);const t$=e=>tw(e,t=>e.moveByChar(t,true,r=>eg(e,t.head,r)).head);const tj=e=>tw(e,t=>{let r=e.lineBlockAt(t.head).to;return t.head<r?r:Math.min(e.state.doc.length,t.head+1)});const tC=e=>tw(e,t=>{let r=e.lineBlockAt(t.head).from;return t.head>r?r:Math.max(0,t.head-1)});const tE=e=>tw(e,t=>{let r=e.moveToLineBoundary(t,false).head;return t.head>r?r:Math.max(0,t.head-1)});const tM=e=>tw(e,t=>{let r=e.moveToLineBoundary(t,true).head;return t.head<r?r:Math.min(e.state.doc.length,t.head+1)});const tR=({state:e,dispatch:t})=>{if(e.readOnly)return false;let r=[];for(let t=0,n="",i=e.doc.iter();;){i.next();if(i.lineBreak||i.done){let e=n.search(/\s+$/);if(e>-1)r.push({from:t-(n.length-e),to:t});if(i.done)break;n=""}else n=i.value;t+=i.value.length}if(!r.length)return false;t(e.update({changes:r,userEvent:"delete"}));return true};const tD=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:r.Text.of(["",""])},range:r.EditorSelection.cursor(e.from)}));t(e.update(n,{scrollIntoView:true,userEvent:"input"}));return true};const tL=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n);let o=n==i.from?n-1:r.findClusterBreak(i.text,n-i.from,false)+i.from;let s=n==i.to?n+1:r.findClusterBreak(i.text,n-i.from,true)+i.from;return{changes:{from:o,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(o,n))},range:r.EditorSelection.cursor(s)}});if(n.changes.empty)return false;t(e.update(n,{scrollIntoView:true,userEvent:"move.character"}));return true};function tZ(e){let t=[],r=-1;for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),o=e.doc.lineAt(n.to);if(!n.empty&&n.to==o.from)o=e.doc.lineAt(n.to-1);if(r>=i.number){let e=t[t.length-1];e.to=o.to;e.ranges.push(n)}else t.push({from:i.from,to:o.to,ranges:[n]});r=o.number+1}return t}function tX(e,t,n){if(e.readOnly)return false;let i=[],o=[];for(let t of tZ(e)){if(n?t.to==e.doc.length:0==t.from)continue;let s=e.doc.lineAt(n?t.to+1:t.from-1);let a=s.length+1;if(n){i.push({from:t.to,to:s.to},{from:t.from,insert:s.text+e.lineBreak});for(let n of t.ranges)o.push(r.EditorSelection.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)))}else{i.push({from:s.from,to:t.from},{from:t.to,insert:e.lineBreak+s.text});for(let e of t.ranges)o.push(r.EditorSelection.range(e.anchor-a,e.head-a))}}if(!i.length)return false;t(e.update({changes:i,scrollIntoView:true,selection:r.EditorSelection.create(o,e.selection.mainIndex),userEvent:"move.line"}));return true}const tq=({state:e,dispatch:t})=>tX(e,t,false);const tB=({state:e,dispatch:t})=>tX(e,t,true);function tz(e,t,r){if(e.readOnly)return false;let n=[];for(let t of tZ(e))if(r)n.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak});else n.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(n);t(e.update({changes:i,selection:e.selection.map(i,r?1:-1),scrollIntoView:true,userEvent:"input.copyline"}));return true}const tI=({state:e,dispatch:t})=>tz(e,t,false);const tN=({state:e,dispatch:t})=>tz(e,t,true);const tV=e=>{if(e.state.readOnly)return false;let{state:t}=e,r=t.changes(tZ(t).map(({from:e,to:r})=>{if(e>0)e--;else if(r<t.doc.length)r++;return{from:e,to:r}}));let n=F(t.selection,t=>{let r;if(e.lineWrapping){let n=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);if(i)r=n.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2}return e.moveVertically(t,true,r)}).map(r);e.dispatch({changes:r,selection:n,scrollIntoView:true,userEvent:"delete.line"});return true};const tW=({state:e,dispatch:t})=>{t(e.update(e.replaceSelection(e.lineBreak),{scrollIntoView:true,userEvent:"input"}));return true};const tY=({state:e,dispatch:t})=>{t(e.update(e.changeByRange(t=>{let n=/^\s*/.exec(e.doc.lineAt(t.from).text)[0];return{changes:{from:t.from,to:t.to,insert:e.lineBreak+n},range:r.EditorSelection.cursor(t.from+n.length+1)}}),{scrollIntoView:true,userEvent:"input"}));return true};function tU(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let r=i.syntaxTree(e).resolveInner(t);let n=r.childBefore(t),s=r.childAfter(t),a;if(n&&s&&n.to<=t&&s.from>=t&&(a=n.type.prop(o.NodeProp.closedBy))&&a.indexOf(s.name)>-1&&e.doc.lineAt(n.to).from==e.doc.lineAt(s.from).from&&!/\S/.test(e.sliceDoc(n.to,s.from)))return{from:n.to,to:s.from};return null}const tG=tH(false);const tF=tH(true);function tH(e){return({state:t,dispatch:n})=>{if(t.readOnly)return false;let o=t.changeByRange(n=>{let{from:o,to:s}=n,a=t.doc.lineAt(o);let l=!e&&o==s&&tU(t,o);if(e)o=s=(s<=a.to?a:t.doc.lineAt(s)).to;let u=new i.IndentContext(t,{simulateBreak:o,simulateDoubleBreak:!!l});let f=i.getIndentation(u,o);if(null==f)f=r.countColumn(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize);while(s<a.to&&/\s/.test(a.text[s-a.from]))s++;if(l)({from:o,to:s}=l);else if(o>a.from&&o<a.from+100&&!/\S/.test(a.text.slice(0,o)))o=a.from;
11let c=["",i.indentString(t,f)];if(l)c.push(i.indentString(t,u.lineIndent(a.from,-1)));return{changes:{from:o,to:s,insert:r.Text.of(c)},range:r.EditorSelection.cursor(o+1+c[1].length)}});n(t.update(o,{scrollIntoView:true,userEvent:"input"}));return true}}function tK(e,t){let n=-1;return e.changeByRange(i=>{let o=[];for(let r=i.from;r<=i.to;){let s=e.doc.lineAt(r);if(s.number>n&&(i.empty||i.to>s.from)){t(s,o,i);n=s.number}r=s.to+1}let s=e.changes(o);return{changes:o,range:r.EditorSelection.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}})}const tJ=({state:e,dispatch:t})=>{if(e.readOnly)return false;let r=Object.create(null);let n=new i.IndentContext(e,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}});let o=tK(e,(t,o,s)=>{let a=i.getIndentation(n,t.from);if(null==a)return;if(!/\S/.test(t.text))a=0;let l=/^\s*/.exec(t.text)[0];let u=i.indentString(e,a);if(l!=u||s.from<t.from+l.length){r[t.from]=a;o.push({from:t.from,to:t.from+l.length,insert:u})}});if(!o.changes.empty)t(e.update(o,{userEvent:"indent"}));return true};const t0=({state:e,dispatch:t})=>{if(e.readOnly)return false;t(e.update(tK(e,(t,r)=>{r.push({from:t.from,insert:e.facet(i.indentUnit)})}),{userEvent:"input.indent"}));return true};const t1=({state:e,dispatch:t})=>{if(e.readOnly)return false;t(e.update(tK(e,(t,n)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let s=r.countColumn(o,e.tabSize),a=0;let l=i.indentString(e,Math.max(0,s-i.getIndentUnit(e)));while(a<o.length&&a<l.length&&o.charCodeAt(a)==l.charCodeAt(a))a++;n.push({from:t.from+a,to:t.from+o.length,insert:l.slice(a)})}),{userEvent:"delete.dedent"}));return true};const t2=e=>{e.setTabFocusMode();return true};const t5=e=>{e.setTabFocusMode(2e3);return true};const t3=({state:e,dispatch:t})=>{if(e.selection.ranges.some(e=>!e.empty))return t0({state:e,dispatch:t});t(e.update(e.replaceSelection("	"),{scrollIntoView:true,userEvent:"input"}));return true};const t4=[{key:"Ctrl-b",run:er,shift:eV,preventDefault:true},{key:"Ctrl-f",run:en,shift:eW},{key:"Ctrl-p",run:eP,shift:e9},{key:"Ctrl-n",run:eT,shift:te},{key:"Ctrl-a",run:eZ,shift:tl},{key:"Ctrl-e",run:eX,shift:tu},{key:"Ctrl-d",run:tQ},{key:"Ctrl-h",run:t_},{key:"Ctrl-k",run:tj},{key:"Ctrl-Alt-h",run:tT},{key:"Ctrl-o",run:tD},{key:"Ctrl-t",run:tL},{key:"Ctrl-v",run:eC}];const t8=[{key:"ArrowLeft",run:er,shift:eV,preventDefault:true},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:ec,shift:eK,preventDefault:true},{mac:"Cmd-ArrowLeft",run:eD,shift:ts,preventDefault:true},{key:"ArrowRight",run:en,shift:eW,preventDefault:true},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:eh,shift:eJ,preventDefault:true},{mac:"Cmd-ArrowRight",run:eL,shift:ta,preventDefault:true},{key:"ArrowUp",run:eP,shift:e9,preventDefault:true},{mac:"Cmd-ArrowUp",run:tf,shift:th},{mac:"Ctrl-ArrowUp",run:ej,shift:tr},{key:"ArrowDown",run:eT,shift:te,preventDefault:true},{mac:"Cmd-ArrowDown",run:tc,shift:td},{mac:"Ctrl-ArrowDown",run:eC,shift:tn},{key:"PageUp",run:ej,shift:tr},{key:"PageDown",run:eC,shift:tn},{key:"Home",run:eR,shift:to,preventDefault:true},{key:"Mod-Home",run:tf,shift:th},{key:"End",run:eM,shift:ti,preventDefault:true},{key:"Mod-End",run:tc,shift:td},{key:"Enter",run:tG,shift:tG},{key:"Mod-a",run:tp},{key:"Backspace",run:t_,shift:t_,preventDefault:true},{key:"Delete",run:tQ,preventDefault:true},{key:"Mod-Backspace",mac:"Alt-Backspace",run:tT,preventDefault:true},{key:"Mod-Delete",mac:"Alt-Delete",run:tA,preventDefault:true},{mac:"Mod-Backspace",run:tE,preventDefault:true},{mac:"Mod-Delete",run:tM,preventDefault:true}].concat(t4.map(e=>({mac:e.key,run:e.run,shift:e.shift})));const t6=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e_,shift:e8},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:ek,shift:e6},{key:"Alt-ArrowUp",run:tq},{key:"Shift-Alt-ArrowUp",run:tI},{key:"Alt-ArrowDown",run:tB},{key:"Shift-Alt-ArrowDown",run:tN},{key:"Mod-Alt-ArrowUp",run:tv},{key:"Mod-Alt-ArrowDown",run:ty},{key:"Escape",run:tb},{key:"Mod-Enter",run:tF},{key:"Alt-l",mac:"Ctrl-l",run:tg},{key:"Mod-i",run:tm,preventDefault:true},{key:"Mod-[",run:t1},{key:"Mod-]",run:t0},{key:"Mod-Alt-\\",run:tJ},{key:"Shift-Mod-k",run:tV},{key:"Shift-Mod-\\",run:eB},{key:"Mod-/",run:s},{key:"Alt-A",run:c},{key:"Ctrl-m",mac:"Shift-Alt-m",run:t2}].concat(t8);const t7={key:"Tab",run:t0,shift:t1};t.addCursorAbove=tv;t.addCursorBelow=ty;t.blockComment=h;t.blockUncomment=d;t.copyLineDown=tN;t.copyLineUp=tI;t.cursorCharBackward=eo;t.cursorCharBackwardLogical=eu;t.cursorCharForward=ei;
11t.cursorCharForwardLogical=el;t.cursorCharLeft=er;t.cursorCharRight=en;t.cursorDocEnd=tc;t.cursorDocStart=tf;t.cursorGroupBackward=ep;t.cursorGroupForward=ed;t.cursorGroupForwardWin=em;t.cursorGroupLeft=ec;t.cursorGroupRight=eh;t.cursorLineBoundaryBackward=eR;t.cursorLineBoundaryForward=eM;t.cursorLineBoundaryLeft=eD;t.cursorLineBoundaryRight=eL;t.cursorLineDown=eT;t.cursorLineEnd=eX;t.cursorLineStart=eZ;t.cursorLineUp=eP;t.cursorMatchingBracket=eB;t.cursorPageDown=eC;t.cursorPageUp=ej;t.cursorSubwordBackward=ew;t.cursorSubwordForward=eb;t.cursorSyntaxLeft=e_;t.cursorSyntaxRight=ek;t.defaultKeymap=t6;t.deleteCharBackward=t_;t.deleteCharBackwardStrict=tk;t.deleteCharForward=tQ;t.deleteGroupBackward=tT;t.deleteGroupForward=tA;t.deleteGroupForwardWin=t$;t.deleteLine=tV;t.deleteLineBoundaryBackward=tE;t.deleteLineBoundaryForward=tM;t.deleteToLineEnd=tj;t.deleteToLineStart=tC;t.deleteTrailingWhitespace=tR;t.emacsStyleKeymap=t4;t.history=Q;t.historyField=P;t.historyKeymap=G;t.indentLess=t1;t.indentMore=t0;t.indentSelection=tJ;t.indentWithTab=t7;t.insertBlankLine=tF;t.insertNewline=tW;t.insertNewlineAndIndent=tG;t.insertNewlineKeepIndent=tY;t.insertTab=t3;t.invertedEffects=S;t.isolateHistory=x;t.lineComment=u;t.lineUncomment=f;t.moveLineDown=tB;t.moveLineUp=tq;t.redo=$;t.redoDepth=R;t.redoSelection=C;t.selectAll=tp;t.selectCharBackward=eU;t.selectCharBackwardLogical=eF;t.selectCharForward=eY;t.selectCharForwardLogical=eG;t.selectCharLeft=eV;t.selectCharRight=eW;t.selectDocEnd=td;t.selectDocStart=th;t.selectGroupBackward=e1;t.selectGroupForward=e0;t.selectGroupForwardWin=e2;t.selectGroupLeft=eK;t.selectGroupRight=eJ;t.selectLine=tg;t.selectLineBoundaryBackward=to;t.selectLineBoundaryForward=ti;t.selectLineBoundaryLeft=ts;t.selectLineBoundaryRight=ta;t.selectLineDown=te;t.selectLineEnd=tu;t.selectLineStart=tl;t.selectLineUp=e9;t.selectMatchingBracket=ez;t.selectPageDown=tn;t.selectPageUp=tr;t.selectParentSyntax=tm;t.selectSubwordBackward=e4;t.selectSubwordForward=e3;t.selectSyntaxLeft=e8;t.selectSyntaxRight=e6;t.simplifySelection=tb;t.splitLine=tD;t.standardKeymap=t8;t.temporarilySetTabFocusMode=t5;t.toggleBlockComment=c;t.toggleBlockCommentByLine=p;t.toggleComment=s;t.toggleLineComment=l;t.toggleTabFocusMode=t2;t.transposeChars=tL;t.undo=A;t.undoDepth=M;t.undoSelection=j}}},search:{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/search",version:"6.6.0",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";var r=e("@codemirror/view");var n=e("@codemirror/state");var i=e("crelt");const o="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class s{constructor(e,t,r=0,n=e.length,i,s){this.test=s;this.value={from:0,to:0};this.done=false;this.matches=[];this.buffer="";this.bufferPos=0;this.iter=e.iterRange(r,n);this.bufferStart=r;this.normalize=i?e=>i(o(e)):o;this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){this.bufferStart+=this.buffer.length;this.iter.next();if(this.iter.done)return -1;this.bufferPos=0;this.buffer=this.iter.value}return n.codePointAt(this.buffer,this.bufferPos)}next(){while(this.matches.length)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0){this.done=true;return this}let t=n.fromCodePoint(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=n.codePointSize(e);let i=this.normalize(t);if(i.length)for(let e=0,n=r;;e++){let o=i.charCodeAt(e);let s=this.match(o,n,this.bufferPos+this.bufferStart);if(e==i.length-1){if(s){this.value=s;return this}break}if(n==r&&e<t.length&&t.charCodeAt(e)==o)n++}}}match(e,t,r){let n=null;for(let t=0;t<this.matches.length;t+=2){let i=this.matches[t],o=false;if(this.query.charCodeAt(i)==e)if(i==this.query.length-1)n={from:this.matches[t+1],to:r};else{this.matches[t]++;o=true}if(!o){this.matches.splice(t,2);t-=2}}if(this.query.charCodeAt(0)==e)if(1==this.query.length)n={from:t,to:r};else this.matches.push(1,t);if(n&&this.test&&!this.test(n.from,n.to,this.buffer,this.bufferStart))n=null;return n}}if("undefined"!=typeof Symbol)s.prototype[Symbol.iterator]=function(){return this};const a={from:-1,to:-1,match:/.*/.exec("")};const l="gm"+(null==/x/.unicode?"":"u");class u{constructor(e,t,r,n=0,i=e.length){this.text=e;this.to=i;this.curLine="";this.done=false;this.value=a;if(/\\[sWDnr]|\n|\r|\[\^/.test(t))return new h(e,t,r,n,i);this.re=new RegExp(t,l+((null==r?void 0:r.ignoreCase)?"i":""));this.test=null==r?void 0:r.test;this.iter=e.iter();let o=e.lineAt(n);this.curLineStart=o.from;this.matchPos=p(e,n);this.getLine(this.curLineStart)}getLine(e){this.iter.next(e);if(this.iter.lineBreak)this.curLine="";else{this.curLine=this.iter.value;if(this.curLineStart+this.curLine.length>this.to)this.curLine=this.curLine.slice(0,this.to-this.curLineStart);this.iter.next()}}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1;if(this.curLineStart>this.to)this.curLine="";else this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let r=this.curLineStart+t.index,n=r+t[0].length;this.matchPos=p(this.text,n+(r==n?1:0));if(r==this.curLineStart+this.curLine.length)this.nextLine();if((r<n||r>this.value.to)&&(!this.test||this.test(r,n,t))){this.value={from:r,to:n,match:t};return this}e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to){this.nextLine();e=0}else{this.done=true;return this}}}}const f=new WeakMap;class c{constructor(e,t){this.from=e;this.text=t}get to(){return this.from+this.text.length}static get(e,t,r){let n=f.get(e);if(!n||n.from>=r||n.to<=t){let n=new c(t,e.sliceString(t,r));f.set(e,n);return n}if(n.from==t&&n.to==r)return n;let{text:i,from:o}=n;if(o>t){i=e.sliceString(t,o)+i;o=t}if(n.to<r)i+=e.sliceString(n.to,r);f.set(e,new c(o,i));return new c(t,i.slice(t-o,r-o))}}class h{constructor(e,t,r,n,i){this.text=e;this.to=i;this.done=false;this.value=a;this.matchPos=p(e,n);this.re=new RegExp(t,l+((null==r?void 0:r.ignoreCase)?"i":""));this.test=null==r?void 0:r.test;this.flat=c.get(e,n,this.chunkEnd(n+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from;let t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e){this.re.lastIndex=e+1;t=this.re.exec(this.flat.text)}if(t){let e=this.flat.from+t.index,r=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,r,t))){this.value={from:e,to:r,match:t};this.matchPos=p(this.text,r+(e==r?1:0));return this}}if(this.flat.to==this.to){this.done=true;return this}this.flat=c.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}if("undefined"!=typeof Symbol)u.prototype[Symbol.iterator]=h.prototype[Symbol.iterator]=function(){return this};function d(e){try{new RegExp(e,l);return true}catch(e){return false}}function p(e,t){if(t>=e.length)return t;let r=e.lineAt(t),n;while(t<r.to&&(n=r.text.charCodeAt(t-r.from))>=56320&&n<57344)t++;return t}const g=e=>{let{state:t}=e;let i=String(t.doc.lineAt(e.state.selection.main.head).number);let{close:o,result:s}=r.showDialog(e,{label:t.phrase("Go to line"),input:{type:"text",name:"line",value:i},focus:true,submitLabel:t.phrase("go")});s.then(i=>{let s=i&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(i.elements["line"].value);if(!s)return void e.dispatch({effects:o});let a=t.doc.lineAt(t.selection.main.head);let[,l,u,f,c]=s;let h=f?+f.slice(1):0;let d=u?+u:a.number;if(u&&c){let e=d/100;if(l)e=e*("-"==l?-1:1)+a.number/t.doc.lines;d=Math.round(t.doc.lines*e)}else if(u&&l)d=d*("-"==l?-1:1)+a.number;let p=t.doc.line(Math.max(1,Math.min(t.doc.lines,d)));let g=n.EditorSelection.cursor(p.from+Math.max(0,Math.min(h,p.length)));e.dispatch({effects:[o,r.EditorView.scrollIntoView(g.from,{y:"center"})],selection:g})});return true};const m={highlightWordAroundCursor:false,minSelectionLength:1,maxMatches:100,wholeWords:false};const O=n.Facet.define({combine(e){return n.combineConfig(e,m,{highlightWordAroundCursor:(e,t)=>
11e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function v(e){let t=[_,S];if(e)t.push(O.of(e));return t}const y=r.Decoration.mark({class:"cm-selectionMatch"});const b=r.Decoration.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function w(e,t,r,i){return(0==r||e(t.sliceDoc(r-1,r))!=n.CharCategory.Word)&&(i==t.doc.length||e(t.sliceDoc(i,i+1))!=n.CharCategory.Word)}function x(e,t,r,i){return e(t.sliceDoc(r,r+1))==n.CharCategory.Word&&e(t.sliceDoc(i-1,i))==n.CharCategory.Word}const S=r.ViewPlugin.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){if(e.selectionSet||e.docChanged||e.viewportChanged)this.decorations=this.getDeco(e.view)}getDeco(e){let t=e.state.facet(O);let{state:n}=e,i=n.selection;if(i.ranges.length>1)return r.Decoration.none;let o=i.main,a,l=null;if(o.empty){if(!t.highlightWordAroundCursor)return r.Decoration.none;let e=n.wordAt(o.head);if(!e)return r.Decoration.none;l=n.charCategorizer(o.head);a=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e<t.minSelectionLength||e>200)return r.Decoration.none;if(t.wholeWords){a=n.sliceDoc(o.from,o.to);l=n.charCategorizer(o.head);if(!(w(l,n,o.from,o.to)&&x(l,n,o.from,o.to)))return r.Decoration.none}else{a=n.sliceDoc(o.from,o.to);if(!a)return r.Decoration.none}}let u=[];for(let i of e.visibleRanges){let e=new s(n.doc,a,i.from,i.to);while(!e.next().done){let{from:i,to:s}=e.value;if(!l||w(l,n,i,s)){if(o.empty&&i<=o.from&&s>=o.to)u.push(b.range(i,s));else if(i>=o.to||s<=o.from)u.push(y.range(i,s));if(u.length>t.maxMatches)return r.Decoration.none}}}return r.Decoration.set(u)}},{decorations:e=>e.decorations});const _=r.EditorView.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const k=({state:e,dispatch:t})=>{let{selection:r}=e;let i=n.EditorSelection.create(r.ranges.map(t=>e.wordAt(t.head)||n.EditorSelection.cursor(t.head)),r.mainIndex);if(i.eq(r))return false;t(e.update({selection:i}));return true};function Q(e,t){let{main:r,ranges:n}=e.selection;let i=e.wordAt(r.head),o=i&&i.from==r.from&&i.to==r.to;for(let r=false,i=new s(e.doc,t,n[n.length-1].to);;){i.next();if(i.done){if(r)return null;i=new s(e.doc,t,0,Math.max(0,n[n.length-1].from-1));r=true}else{if(r&&n.some(e=>e.from==i.value.from))continue;if(o){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}}const P=({state:e,dispatch:t})=>{let{ranges:i}=e.selection;if(i.some(e=>e.from===e.to))return k({state:e,dispatch:t});let o=e.sliceDoc(i[0].from,i[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=o))return false;let s=Q(e,o);if(!s)return false;t(e.update({selection:e.selection.addRange(n.EditorSelection.range(s.from,s.to),false),effects:r.EditorView.scrollIntoView(s.to)}));return true};const T=n.Facet.define({combine(e){return n.combineConfig(e,{top:false,caseSensitive:false,literal:false,regexp:false,wholeWord:false,createPanel:e=>new ec(e),scrollToMatch:e=>r.EditorView.scrollIntoView(e)})}});function A(e){return e?[T.of(e),eO]:eO}class ${constructor(e){this.search=e.search;this.caseSensitive=!!e.caseSensitive;this.literal=!!e.literal;this.regexp=!!e.regexp;this.replace=e.replace||"";this.valid=!!this.search&&(!this.regexp||d(this.search));this.unquoted=this.unquote(this.search);this.wholeWord=!!e.wholeWord;this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"	":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new B(this):new R(this)}getCursor(e,t=0,r){let i=e.doc?e:n.EditorState.create({doc:e});if(null==r)r=i.doc.length;return this.regexp?L(this,i,t,r):E(this,i,t,r)}}class j{constructor(e){this.spec=e}}function C(e,t,r){return(n,i,o,s)=>{if(r&&!r(n,i,o,s))return false;let a=n>=s&&i<=s+o.length?o.slice(n-s,i-s):t.doc.sliceString(n,i);return e(a,t,n,i)}}function E(e,t,r,n){let i;if(e.wholeWord)i=M(t.doc,t.charCategorizer(t.selection.main.head));if(e.test)i=C(e.test,t,i);return new s(t.doc,e.unquoted,r,n,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function M(e,t){return(r,i,o,s)=>{if(s>r||s+o.length<i){s=Math.max(0,r-2);o=e.sliceString(s,Math.min(e.length,i+2))}return(t(Z(o,r-s))!=n.CharCategory.Word||t(X(o,r-s))!=n.CharCategory.Word)&&(t(X(o,i-s))!=n.CharCategory.Word||t(Z(o,i-s))!=n.CharCategory.Word)}}class R extends j{constructor(e){super(e)}nextMatch(e,t,r){let n=E(this.spec,e,r,e.doc.length).nextOverlapping();if(n.done){let r=Math.min(e.doc.length,t+this.spec.unquoted.length);n=E(this.spec,e,0,r).nextOverlapping()}return n.done||n.value.from==t&&n.value.to==r?null:n.value}prevMatchInRange(e,t,r){for(let n=r;;){let r=Math.max(t,n-1e4-this.spec.unquoted.length);let i=E(this.spec,e,r,n),o=null;while(!i.nextOverlapping().done)o=i.value;if(o)return o;if(r==t)return null;n-=1e4}}prevMatch(e,t,r){let n=this.prevMatchInRange(e,0,t);
11if(!n)n=this.prevMatchInRange(e,Math.max(0,r-this.spec.unquoted.length),e.doc.length);return n&&(n.from!=t||n.to!=r)?n:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let r=E(this.spec,e,0,e.doc.length),n=[];while(!r.next().done){if(n.length>=t)return null;n.push(r.value)}return n}highlight(e,t,r,n){let i=E(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));while(!i.next().done)n(i.value.from,i.value.to)}}function D(e,t,r){return(n,i,o)=>(!r||r(n,i,o))&&e(o[0],t,n,i)}function L(e,t,r,n){let i;if(e.wholeWord)i=q(t.charCategorizer(t.selection.main.head));if(e.test)i=D(e.test,t,i);return new u(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},r,n)}function Z(e,t){return e.slice(n.findClusterBreak(e,t,false),t)}function X(e,t){return e.slice(t,n.findClusterBreak(e,t))}function q(e){return(t,r,i)=>!i[0].length||(e(Z(i.input,i.index))!=n.CharCategory.Word||e(X(i.input,i.index))!=n.CharCategory.Word)&&(e(X(i.input,i.index+i[0].length))!=n.CharCategory.Word||e(Z(i.input,i.index+i[0].length))!=n.CharCategory.Word)}class B extends j{nextMatch(e,t,r){let n=L(this.spec,e,r,e.doc.length).next();if(n.done)n=L(this.spec,e,0,t).next();return n.done?null:n.value}prevMatchInRange(e,t,r){for(let n=1;;n++){let i=Math.max(t,r-1e4*n);let o=L(this.spec,e,i,r),s=null;while(!o.next().done)s=o.value;if(s&&(i==t||s.from>i+10))return s;if(i==t)return null}}prevMatch(e,t,r){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,r)=>{if("&"==r)return e.match[0];if("$"==r)return"$";for(let t=r.length;t>0;t--){let n=+r.slice(0,t);if(n>0&&n<e.match.length)return e.match[n]+r.slice(t)}return t})}matchAll(e,t){let r=L(this.spec,e,0,e.doc.length),n=[];while(!r.next().done){if(n.length>=t)return null;n.push(r.value)}return n}highlight(e,t,r,n){let i=L(this.spec,e,Math.max(0,t-250),Math.min(r+250,e.doc.length));while(!i.next().done)n(i.value.from,i.value.to)}}const z=n.StateEffect.define();const I=n.StateEffect.define();const N=n.StateField.define({create(e){return new Y(eo(e).create(),null)},update(e,t){for(let r of t.effects)if(r.is(z))e=new Y(r.value.create(),e.panel);else if(r.is(I))e=new Y(e.query,r.value?ei:null);return e},provide:e=>r.showPanel.from(e,e=>e.panel)});function V(e){let t=e.field(N,false);return t?t.query.spec:eo(e)}function W(e){var t;return(null==(t=e.field(N,false))?void 0:t.panel)!=null}class Y{constructor(e,t){this.query=e;this.panel=t}}const U=r.Decoration.mark({class:"cm-searchMatch"}),G=r.Decoration.mark({class:"cm-searchMatch cm-searchMatch-selected"});const F=r.ViewPlugin.fromClass(class{constructor(e){this.view=e;this.decorations=this.highlight(e.state.field(N))}update(e){let t=e.state.field(N);if(t!=e.startState.field(N)||e.docChanged||e.selectionSet||e.viewportChanged)this.decorations=this.highlight(t)}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return r.Decoration.none;let{view:i}=this;let o=new n.RangeSetBuilder;for(let t=0,r=i.visibleRanges,n=r.length;t<n;t++){let{from:s,to:a}=r[t];while(t<n-1&&a>r[t+1].from-500)a=r[++t].to;e.highlight(i.state,s,a,(e,t)=>{let r=i.state.selection.ranges.some(r=>r.from==e&&r.to==t);o.add(e,t,r?G:U)})}return o.finish()}},{decorations:e=>e.decorations});function H(e){return t=>{let r=t.state.field(N,false);return r&&r.query.spec.valid?e(t,r):el(t)}}const K=H((e,{query:t})=>{let{to:r}=e.state.selection.main;let i=t.nextMatch(e.state,r,r);if(!i)return false;let o=n.EditorSelection.single(i.from,i.to);let s=e.state.facet(T);e.dispatch({selection:o,effects:[eg(e,i),s.scrollToMatch(o.main,e)],userEvent:"select.search"});ea(e);return true});const J=H((e,{query:t})=>{let{state:r}=e,{from:i}=r.selection.main;let o=t.prevMatch(r,i,i);if(!o)return false;let s=n.EditorSelection.single(o.from,o.to);let a=e.state.facet(T);e.dispatch({selection:s,effects:[eg(e,o),a.scrollToMatch(s.main,e)],userEvent:"select.search"});ea(e);return true});const ee=H((e,{query:t})=>{let r=t.matchAll(e.state,1e3);if(!r||!r.length)return false;e.dispatch({selection:n.EditorSelection.create(r.map(e=>n.EditorSelection.range(e.from,e.to))),userEvent:"select.search.matches"});return true});const et=({state:e,dispatch:t})=>{let r=e.selection;if(r.ranges.length>1||r.main.empty)return false;let{from:i,to:o}=r.main;let a=[],l=0;for(let t=new s(e.doc,e.sliceDoc(i,o));!t.next().done;){if(a.length>1e3)return false;if(t.value.from==i)l=a.length;a.push(n.EditorSelection.range(t.value.from,t.value.to))}t(e.update({selection:n.EditorSelection.create(a,l),userEvent:"select.search.matches"}));return true};const er=H((e,{query:t})=>{let{state:i}=e,{from:o,to:s}=i.selection.main;if(i.readOnly)return false;let a=t.nextMatch(i,o,o);if(!a)return false;let l=a;let u=[],f,c;let h=[];if(l.from==o&&l.to==s){c=i.toText(t.getReplacement(l));u.push({from:l.from,to:l.to,insert:c});l=t.nextMatch(i,l.from,l.to);h.push(r.EditorView.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))}let d=e.state.changes(u);if(l){f=n.EditorSelection.single(l.from,l.to).map(d);h.push(eg(e,l));h.push(i.facet(T).scrollToMatch(f.main,e))}e.dispatch({changes:d,selection:f,effects:h,userEvent:"input.replace"});return true});const en=H((e,{query:t})=>{if(e.state.readOnly)return false;let n=t.matchAll(e.state,1e9).map(e=>{let{from:r,to:n}=e;return{from:r,to:n,insert:t.getReplacement(e)}});if(!n.length)return false;let i=e.state.phrase("replaced $ matches",n.length)+".";e.dispatch({changes:n,effects:r.EditorView.announce.of(i),userEvent:"input.replace.all"});return true});function ei(e){return e.state.facet(T).createPanel(e)}function eo(e,t){var r,n,i,o,s;let a=e.selection.main;let l=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!l)return t;let u=e.facet(T);return new $({search:(null!=(r=null==t?void 0:t.literal)?r:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!=(n=null==t?void 0:t.caseSensitive)?n:u.caseSensitive,literal:null!=(i=null==t?void 0:t.literal)?i:u.literal,regexp:null!=(o=null==t?void 0:t.regexp)?o:u.regexp,wholeWord:null!=(s=null==t?void 0:t.wholeWord)?s:u.wholeWord})}function es(e){let t=r.getPanel(e,ei);return t&&t.dom.querySelector("[main-field]")}function ea(e){let t=es(e);if(t&&t==e.root.activeElement)t.select()}const el=e=>{let t=e.state.field(N,false);
11if(t&&t.panel){let r=es(e);if(r&&r!=e.root.activeElement){let n=eo(e.state,t.query.spec);if(n.valid)e.dispatch({effects:z.of(n)});r.focus();r.select()}}else e.dispatch({effects:[I.of(true),t?z.of(eo(e.state,t.query.spec)):n.StateEffect.appendConfig.of(eO)]});return true};const eu=e=>{let t=e.state.field(N,false);if(!t||!t.panel)return false;let n=r.getPanel(e,ei);if(n&&n.dom.contains(e.root.activeElement))e.focus();e.dispatch({effects:I.of(false)});return true};const ef=[{key:"Mod-f",run:el,scope:"editor search-panel"},{key:"F3",run:K,shift:J,scope:"editor search-panel",preventDefault:true},{key:"Mod-g",run:K,shift:J,scope:"editor search-panel",preventDefault:true},{key:"Escape",run:eu,scope:"editor search-panel"},{key:"Mod-Shift-l",run:et},{key:"Mod-Alt-g",run:g},{key:"Mod-d",run:P,preventDefault:true}];class ec{constructor(e){this.view=e;let t=this.query=e.state.field(N).query.spec;this.commit=this.commit.bind(this);this.searchField=i("input",{value:t.search,placeholder:eh(e,"Find"),"aria-label":eh(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit});this.replaceField=i("input",{value:t.replace,placeholder:eh(e,"Replace"),"aria-label":eh(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit});this.caseField=i("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit});this.reField=i("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit});this.wordField=i("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function r(e,t,r){return i("button",{class:"cm-button",name:e,onclick:t,type:"button"},r)}this.dom=i("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,r("next",()=>K(e),[eh(e,"next")]),r("prev",()=>J(e),[eh(e,"previous")]),r("select",()=>ee(e),[eh(e,"all")]),i("label",null,[this.caseField,eh(e,"match case")]),i("label",null,[this.reField,eh(e,"regexp")]),i("label",null,[this.wordField,eh(e,"by word")]),...e.state.readOnly?[]:[i("br"),this.replaceField,r("replace",()=>er(e),[eh(e,"replace")]),r("replaceAll",()=>en(e),[eh(e,"replace all")])],i("button",{name:"close",onclick:()=>eu(e),"aria-label":eh(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new $({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});if(!e.eq(this.query)){this.query=e;this.view.dispatch({effects:z.of(e)})}}keydown(e){if(r.runScopeHandlers(this.view,e,"search-panel"))e.preventDefault();else if(13==e.keyCode&&e.target==this.searchField){e.preventDefault();(e.shiftKey?J:K)(this.view)}else if(13==e.keyCode&&e.target==this.replaceField){e.preventDefault();er(this.view)}}update(e){for(let t of e.transactions)for(let e of t.effects)if(e.is(z)&&!e.value.eq(this.query))this.setQuery(e.value)}setQuery(e){this.query=e;this.searchField.value=e.search;this.replaceField.value=e.replace;this.caseField.checked=e.caseSensitive;this.reField.checked=e.regexp;this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(T).top}}function eh(e,t){return e.state.phrase(t)}const ed=30;const ep=/[\s\.,:;?!]/;function eg(e,{from:t,to:n}){let i=e.state.doc.lineAt(t),o=e.state.doc.lineAt(n).to;let s=Math.max(i.from,t-ed),a=Math.min(o,n+ed);let l=e.state.sliceDoc(s,a);if(s!=i.from){for(let e=0;e<ed;e++)if(!ep.test(l[e+1])&&ep.test(l[e])){l=l.slice(e);break}}if(a!=o){for(let e=l.length-1;e>l.length-ed;e--)if(!ep.test(l[e-1])&&ep.test(l[e])){l=l.slice(0,e);break}}return r.EditorView.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${i.number}.`)}const em=r.EditorView.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}});
11const eO=[N,n.Prec.low(F),em];t.RegExpCursor=u;t.SearchCursor=s;t.SearchQuery=$;t.closeSearchPanel=eu;t.findNext=K;t.findPrevious=J;t.getSearchQuery=V;t.gotoLine=g;t.highlightSelectionMatches=v;t.openSearchPanel=el;t.replaceAll=en;t.replaceNext=er;t.search=A;t.searchKeymap=ef;t.searchPanelOpen=W;t.selectMatches=ee;t.selectNextOccurrence=P;t.selectSelectionMatches=et;t.setSearchQuery=z}}},autocomplete:{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/autocomplete",version:"6.20.0",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";var r=e("@codemirror/state");var n=e("@codemirror/view");var i=e("@codemirror/language");class o{constructor(e,t,r,n){this.state=e;this.pos=t;this.explicit=r;this.view=n;this.abortListeners=[];this.abortOnDocChange=false}tokenBefore(e){let t=i.syntaxTree(this.state).resolveInner(this.pos,-1);while(t&&e.indexOf(t.name)<0)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos);let r=Math.max(t.from,this.pos-250);let n=t.text.slice(r-t.from,this.pos-t.from);let i=n.search(d(e,false));return i<0?null:{from:r+i,to:this.pos,text:n.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,r){if("abort"==e&&this.abortListeners){this.abortListeners.push(t);if(r&&r.onDocChange)this.abortOnDocChange=true}}}function s(e){let t=Object.keys(e).join("");let r=/\w/.test(t);if(r)t=t.replace(/\w/g,"");return`[${r?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function a(e){let t=Object.create(null),r=Object.create(null);for(let{label:n}of e){t[n[0]]=true;for(let e=1;e<n.length;e++)r[n[e]]=true}let n=s(t)+s(r)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function l(e){let t=e.map(e=>"string"==typeof e?{label:e}:e);let[r,n]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:a(t);return e=>{let i=e.matchBefore(n);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:r}:null}}function u(e,t){return r=>{for(let n=i.syntaxTree(r.state).resolveInner(r.pos,-1);n;n=n.parent){if(e.indexOf(n.name)>-1)return t(r);if(n.type.isTop)break}return null}}function f(e,t){return r=>{for(let t=i.syntaxTree(r.state).resolveInner(r.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(r)}}class c{constructor(e,t,r,n){this.completion=e;this.source=t;this.match=r;this.score=n}}function h(e){return e.selection.main.from}function d(e,t){var r;let{source:n}=e;let i=t&&"^"!=n[0],o="$"!=n[n.length-1];if(!i&&!o)return e;return new RegExp(`${i?"^":""}(?:${n})${o?"$":""}`,null!=(r=e.flags)?r:e.ignoreCase?"i":"")}const p=r.Annotation.define();function g(e,t,n,i){let{main:o}=e.selection,s=n-o.from,a=i-o.from;return{...e.changeByRange(l=>{if(l!=o&&n!=i&&e.sliceDoc(l.from+s,l.from+a)!=e.sliceDoc(n,i))return{range:l};let u=e.toText(t);return{changes:{from:l.from+s,to:i==o.from?l.to:l.from+a,insert:u},range:r.EditorSelection.cursor(l.from+s+u.length)}}),scrollIntoView:true,userEvent:"input.complete"}}const m=new WeakMap;function O(e){if(!Array.isArray(e))return e;let t=m.get(e);if(!t)m.set(e,t=l(e));return t}const v=r.StateEffect.define();const y=r.StateEffect.define();class b{constructor(e){this.pattern=e;this.chars=[];this.folded=[];this.any=[];this.precise=[];this.byWord=[];this.score=0;this.matched=[];for(let t=0;t<e.length;){let n=r.codePointAt(e,t),i=r.codePointSize(n);this.chars.push(n);let o=e.slice(t,t+i),s=o.toUpperCase();this.folded.push(r.codePointAt(s==o?o.toLowerCase():s,0));t+=i}this.astral=e.length!=this.chars.length}ret(e,t){this.score=e;this.matched=t;return this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:i,precise:o,byWord:s}=this;if(1==t.length){let i=r.codePointAt(e,0),o=r.codePointSize(i);let s=o==e.length?0:-100;if(i==t[0]);else{if(i!=n[0])return null;s+=-200}return this.ret(s,[0,o])}let a=e.indexOf(this.pattern);if(0==a)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,u=0;if(a<0){for(let o=0,s=Math.min(e.length,200);o<s&&u<l;){let s=r.codePointAt(e,o);if(s==t[u]||s==n[u])i[u++]=o;o+=r.codePointSize(s)}if(u<l)return null}let f=0;let c=0,h=false;let d=0,p=-1,g=-1;let m=/[a-z]/.test(e),O=true;for(let i=0,u=Math.min(e.length,200),v=0;i<u&&c<l;){let u=r.codePointAt(e,i);if(a<0){if(f<l&&u==t[f])o[f++]=i;if(d<l)if(u==t[d]||u==n[d]){if(0==d)p=i;g=i+1;d++}else d=0}let y,b=u<255?u>=48&&u<=57||u>=97&&u<=122?2:u>=65&&u<=90?1:0:(y=r.fromCodePoint(u))!=y.toLowerCase()?1:y!=y.toUpperCase()?2:0;if(!i||1==b&&m||0==v&&0!=b){if(t[c]==u||n[c]==u&&(h=true))s[c++]=i;else if(s.length)O=false}v=b;i+=r.codePointSize(u)}
11if(c==l&&0==s[0]&&O)return this.result(-100+(h?-200:0),s,e);if(d==l&&0==p)return this.ret(-200-e.length+(g==e.length?0:-100),[0,g]);if(a>-1)return this.ret(-700-e.length,[a,a+this.pattern.length]);if(d==l)return this.ret(-900-e.length,[p,g]);if(c==l)return this.result(-100+(h?-200:0)+-700+(O?0:-1100),s,e);return 2==t.length?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,n){let i=[],o=0;for(let e of t){let t=e+(this.astral?r.codePointSize(r.codePointAt(n,e)):1);if(o&&i[o-1]==e)i[o-1]=t;else{i[o++]=e;i[o++]=t}}return this.ret(e-n.length,i)}}class w{constructor(e){this.pattern=e;this.matched=[];this.score=0;this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length);let r=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;if(null==r)return null;this.matched=[0,t.length];this.score=r+(e.length==this.pattern.length?0:-100);return this}}const x=r.Facet.define({combine(e){return r.combineConfig(e,{activateOnTyping:true,activateOnCompletion:()=>false,activateOnTypingDelay:100,selectOnOpen:true,override:null,closeOnBlur:true,maxRenderedOptions:100,defaultKeymap:true,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:false,icons:true,addToOptions:[],positionInfo:_,filterStrict:false,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>r=>S(e(r),t(r)),optionClass:(e,t)=>r=>S(e(r),t(r)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function S(e,t){return e?t?e+" "+t:e:t}function _(e,t,r,i,o,s){let a=e.textDirection==n.Direction.RTL,l=a,u=false;let f="top",c,h;let d=t.left-o.left,p=o.right-t.right;let g=i.right-i.left,m=i.bottom-i.top;if(l&&d<Math.min(g,p))l=false;else if(!l&&p<Math.min(g,d))l=true;if(g<=(l?d:p)){c=Math.max(o.top,Math.min(r.top,o.bottom-m))-t.top;h=Math.min(400,l?d:p)}else{u=true;h=Math.min(400,(a?t.right:o.right-t.left)-30);let e=o.bottom-t.bottom;if(e>=m||e>t.top)c=r.bottom-t.top;else{f="bottom";c=t.bottom-r.top}}let O=(t.bottom-t.top)/s.offsetHeight;let v=(t.right-t.left)/s.offsetWidth;return{style:`${f}: ${c/O}px; max-width: ${h/v}px`,class:"cm-completionInfo-"+(u?a?"left-narrow":"right-narrow":l?"left":"right")}}function k(e){let t=e.addToOptions.slice();if(e.icons)t.push({render(e){let t=document.createElement("div");t.classList.add("cm-completionIcon");if(e.type)t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e));t.setAttribute("aria-hidden","true");return t},position:20});t.push({render(e,t,r,n){let i=document.createElement("span");i.className="cm-completionLabel";let o=e.displayLabel||e.label,s=0;for(let e=0;e<n.length;){let t=n[e++],r=n[e++];if(t>s)i.appendChild(document.createTextNode(o.slice(s,t)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(o.slice(t,r)));a.className="cm-completionMatchedText";s=r}if(s<o.length)i.appendChild(document.createTextNode(o.slice(s)));return i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");t.className="cm-completionDetail";t.textContent=e.detail;return t},position:80});return t.sort((e,t)=>e.position-t.position).map(e=>e.render)}function Q(e,t,r){if(e<=r)return{from:0,to:e};if(t<0)t=0;if(t<=e>>1){let e=Math.floor(t/r);return{from:e*r,to:(e+1)*r}}let n=Math.floor((e-t)/r);return{from:e-(n+1)*r,to:e-n*r}}class P{constructor(e,t,r){this.view=e;this.stateField=t;this.applyCompletion=r;this.info=null;this.infoDestroy=null;this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this};this.space=null;this.currentClass="";let n=e.state.field(t);let{options:i,selected:o}=n.open;let s=e.state.facet(x);this.optionContent=k(s);this.optionClass=s.optionClass;this.tooltipClass=s.tooltipClass;this.range=Q(i.length,o,s.maxRenderedOptions);this.dom=document.createElement("div");this.dom.className="cm-tooltip-autocomplete";this.updateTooltipClass(e.state);this.dom.addEventListener("mousedown",r=>{let{options:n}=e.state.field(t).open;for(let t=r.target,i;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<n.length){this.applyCompletion(e,n[+i[1]]);r.preventDefault();return}});this.dom.addEventListener("focusout",t=>{let r=e.state.field(this.stateField,false);
11if(r&&r.tooltip&&e.state.facet(x).closeOnBlur&&t.relatedTarget!=e.contentDOM)e.dispatch({effects:y.of(null)})});this.showOptions(i,n.id)}mount(){this.updateSel()}showOptions(e,t){if(this.list)this.list.remove();this.list=this.dom.appendChild(this.createListBox(e,t,this.range));this.list.addEventListener("scroll",()=>{if(this.info)this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let r=e.state.field(this.stateField);let n=e.startState.field(this.stateField);this.updateTooltipClass(e.state);if(r!=n){let{options:i,selected:o,disabled:s}=r.open;if(!n.open||n.open.options!=i){this.range=Q(i.length,o,e.state.facet(x).maxRenderedOptions);this.showOptions(i,r.id)}this.updateSel();if(s!=(null==(t=n.open)?void 0:t.disabled))this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))if(e)this.dom.classList.remove(e);for(let e of t.split(" "))if(e)this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e;if(this.info)this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to){this.range=Q(t.options.length,t.selected,this.view.state.facet(x).maxRenderedOptions);this.showOptions(t.options,e.id)}let r=this.updateSelectedOption(t.selected);if(r){this.destroyInfo();
11let{completion:i}=t.options[t.selected];let{info:o}=i;if(!o)return;let s="string"==typeof o?document.createTextNode(o):o(i);if(!s)return;if("then"in s)s.then(t=>{if(t&&this.view.state.field(this.stateField,false)==e)this.addInfoPane(t,i)}).catch(e=>n.logException(this.view.state,e,"completion info"));else{this.addInfoPane(s,i);r.setAttribute("aria-describedby",this.info.id)}}}addInfoPane(e,t){this.destroyInfo();let r=this.info=document.createElement("div");r.className="cm-tooltip cm-completionInfo";r.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16);if(null!=e.nodeType){r.appendChild(e);this.infoDestroy=null}else{let{dom:t,destroy:n}=e;r.appendChild(t);this.infoDestroy=n||null}this.dom.appendChild(r);this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let r=this.list.firstChild,n=this.range.from;r;r=r.nextSibling,n++)if("LI"==r.nodeName&&r.id){if(n==e){if(!r.hasAttribute("aria-selected")){r.setAttribute("aria-selected","true");t=r}}else if(r.hasAttribute("aria-selected")){r.removeAttribute("aria-selected");r.removeAttribute("aria-describedby")}}else n--;if(t)A(this.list,t);return t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect();let r=this.info.getBoundingClientRect();let n=e.getBoundingClientRect();let i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}if(n.top>Math.min(i.bottom,t.bottom)-10||n.bottom<Math.max(i.top,t.top)+10)return null;return this.view.state.facet(x).positionInfo(this.view,t,n,r,i,this.dom)}placeInfo(e){if(this.info)if(e){if(e.style)this.info.style.cssText=e.style;this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")}else this.info.style.cssText="top: -1e6px"}createListBox(e,t,r){const n=document.createElement("ul");n.id=t;n.setAttribute("role","listbox");n.setAttribute("aria-expanded","true");n.setAttribute("aria-label",this.view.state.phrase("Completions"));n.addEventListener("mousedown",e=>{if(e.target==n)e.preventDefault()});let i=null;for(let o=r.from;o<r.to;o++){let{completion:s,match:a}=e[o],{section:l}=s;if(l){let e="string"==typeof l?l:l.name;if(e!=i&&(o>r.from||0==r.from)){i=e;if("string"!=typeof l&&l.header)n.appendChild(l.header(l));else{let t=n.appendChild(document.createElement("completion-section"));t.textContent=e}}}const u=n.appendChild(document.createElement("li"));u.id=t+"-"+o;u.setAttribute("role","option");let f=this.optionClass(s);if(f)u.className=f;for(let e of this.optionContent){let t=e(s,this.view.state,this.view,a);if(t)u.appendChild(t)}}if(r.from)n.classList.add("cm-completionListIncompleteTop");if(r.to<e.length)n.classList.add("cm-completionListIncompleteBottom");return n}destroyInfo(){if(this.info){if(this.infoDestroy)this.infoDestroy();this.info.remove();this.info=null}}destroy(){this.destroyInfo()}}function T(e,t){return r=>new P(r,e,t)}function A(e,t){let r=e.getBoundingClientRect();let n=t.getBoundingClientRect();let i=r.height/e.offsetHeight;if(n.top<r.top)e.scrollTop-=(r.top-n.top)/i;else if(n.bottom>r.bottom)e.scrollTop+=(n.bottom-r.bottom)/i}function $(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function j(e,t){let r=[];let n=null,i=null;let o=e=>{r.push(e);let{section:t}=e.completion;if(t){if(!n)n=[];let e="string"==typeof t?t:t.name;if(!n.some(t=>t.name==e))n.push("string"==typeof t?{name:e}:t)}};let s=t.facet(x);for(let n of e)if(n.hasResult()){let e=n.result.getMatch;if(false===n.result.filter)for(let t of n.result.options)o(new c(t,n.source,e?e(t):[],1e9-r.length));else{let r=t.sliceDoc(n.from,n.to),a;let l=s.filterStrict?new w(r):new b(r);for(let t of n.result.options)if(a=l.match(t.label)){let r=t.displayLabel?e?e(t,a.matched):[]:a.matched;let s=a.score+(t.boost||0);o(new c(t,n.source,r,s));if("object"==typeof t.section&&"dynamic"===t.section.rank){let{name:e}=t.section;if(!i)i=Object.create(null);i[e]=Math.max(s,i[e]||-1e9)}}}}if(n){let e=Object.create(null),t=0;let o=(e,t)=>("dynamic"===e.rank&&"dynamic"===t.rank?i[t.name]-i[e.name]:0)||("number"==typeof e.rank?e.rank:1e9)-("number"==typeof t.rank?t.rank:1e9)||(e.name<t.name?-1:1);for(let r of n.sort(o)){t-=1e5;e[r.name]=t}for(let t of r){let{section:r}=t.completion;if(r)t.score+=e["string"==typeof r?r:r.name]}}let a=[],l=null;let u=s.compareCompletions;for(let e of r.sort((e,t)=>
11t.score-e.score||u(e.completion,t.completion))){let t=e.completion;if(l&&l.label==t.label&&l.detail==t.detail&&(null==l.type||null==t.type||l.type==t.type)&&l.apply==t.apply&&l.boost==t.boost){if($(e.completion)>$(l))a[a.length-1]=e}else a.push(e);l=e.completion}return a}class C{constructor(e,t,r,n,i,o){this.options=e;this.attrs=t;this.tooltip=r;this.timestamp=n;this.selected=i;this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new C(this.options,L(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,r,n,i,o){if(n&&!o&&e.some(e=>e.isPending))return n.setDisabled();let s=j(e,t);if(!s.length)return n&&e.some(e=>e.isPending)?n.setDisabled():null;let a=t.facet(x).selectOnOpen?0:-1;if(n&&n.selected!=a&&-1!=n.selected){let e=n.options[n.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){a=t;break}}return new C(s,L(r,a),{pos:e.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:Y,above:i.aboveCursor},n?n.timestamp:Date.now(),a,false)}map(e){return new C(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new C(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,true)}}class E{constructor(e,t,r){this.active=e;this.id=t;this.open=r}static start(){return new E(Z,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,r=t.facet(x);let n=r.override||t.languageDataAt("autocomplete",h(t)).map(O);let i=n.map(t=>{let n=this.active.find(e=>e.source==t)||new q(t,this.active.some(e=>0!=e.state)?1:0);return n.update(e,r)});if(i.length==this.active.length&&i.every((e,t)=>e==this.active[t]))i=this.active;let o=this.open,s=e.effects.some(e=>e.is(I));if(o&&e.docChanged)o=o.map(e.changes);if(e.selection||i.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!M(i,this.active)||s)o=C.build(i,t,this.id,o,r,s);else if(o&&o.disabled&&!i.some(e=>e.isPending))o=null;if(!o&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult()))i=i.map(e=>e.hasResult()?new q(e.source,0):e);for(let t of e.effects)if(t.is(N))o=o&&o.setSelected(t.value,this.id);return i==this.active&&o==this.open?this:new E(i,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?R:D}}function M(e,t){if(e==t)return true;for(let r=0,n=0;;){while(r<e.length&&!e[r].hasResult())r++;while(n<t.length&&!t[n].hasResult())n++;let i=r==e.length,o=n==t.length;if(i||o)return i==o;if(e[r++].result!=t[n++].result)return false}}const R={"aria-autocomplete":"list"};const D={};function L(e,t){let r={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};if(t>-1)r["aria-activedescendant"]=e+"-"+t;return r}const Z=[];function X(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(p);if(r&&t.activateOnCompletion(r))return 12}let r=e.isUserEvent("input.type");return r&&t.activateOnTyping?5:r?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class q{constructor(e,t,r=false){this.source=e;this.state=t;this.explicit=r}hasResult(){return false}get isPending(){return 1==this.state}update(e,t){let r=X(e,t),n=this;if(8&r||16&r&&this.touches(e))n=new q(n.source,0);if(4&r&&0==n.state)n=new q(this.source,1);n=n.updateFor(e,r);for(let t of e.effects)if(t.is(v))n=new q(n.source,1,t.value);else if(t.is(y))n=new q(n.source,0);else if(t.is(I)){for(let e of t.value)if(e.source==n.source)n=e}return n}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(h(e.state))}}class B extends q{constructor(e,t,r,n,i,o){super(e,3,t);this.limit=r;this.result=n;this.from=i;this.to=o}hasResult(){return true}updateFor(e,t){var r;if(!(3&t))return this.map(e.changes);let n=this.result;if(n.map&&!e.changes.empty)n=n.map(n,e.changes);let i=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1);let a=h(e.state);if(a>s||!n||2&t&&(h(e.startState)==this.from||a<this.limit))return new q(this.source,4&t?1:0);let l=e.changes.mapPos(this.limit);if(z(n.validFor,e.state,i,s))return new B(this.source,this.explicit,l,n,i,s);if(n.update&&(n=n.update(n,i,s,new o(e.state,a,false))))return new B(this.source,this.explicit,l,n,n.from,null!=(r=n.to)?r:h(e.state));return new q(this.source,1,this.explicit)}map(e){if(e.empty)return this;let t=this.result.map?this.result.map(this.result,e):this.result;if(!t)return new q(this.source,0);return new B(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}touches(e){return e.changes.touchesRange(this.from,this.to)}}function z(e,t,r,n){if(!e)return false;let i=t.sliceDoc(r,n);return"function"==typeof e?e(i,r,n,t):d(e,true).test(i)}
11const I=r.StateEffect.define({map(e,t){return e.map(e=>e.map(t))}});const N=r.StateEffect.define();const V=r.StateField.define({create(){return E.start()},update(e,t){return e.update(t)},provide:e=>[n.showTooltip.from(e,e=>e.tooltip),n.EditorView.contentAttributes.from(e,e=>e.attrs)]});function W(e,t){const r=t.completion.apply||t.completion.label;let n=e.state.field(V).active.find(e=>e.source==t.source);if(!(n instanceof B))return false;if("string"==typeof r)e.dispatch({...g(e.state,r,n.from,n.to),annotations:p.of(t.completion)});else r(e,t.completion,n.from,n.to);return true}const Y=T(V,W);function U(e,t="option"){return r=>{let i=r.state.field(V,false);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<r.state.facet(x).interactionDelay)return false;let o=1,s;if("page"==t&&(s=n.getTooltip(r,i.open.tooltip)))o=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1);let{length:a}=i.open.options;let l=i.open.selected>-1?i.open.selected+o*(e?1:-1):e?0:a-1;if(l<0)l="page"==t?0:a-1;else if(l>=a)l="page"==t?a-1:0;r.dispatch({effects:N.of(l)});return true}}const G=e=>{let t=e.state.field(V,false);if(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(x).interactionDelay)return false;return W(e,t.open.options[t.open.selected])};const F=e=>{let t=e.state.field(V,false);if(!t)return false;e.dispatch({effects:v.of(true)});return true};const H=e=>{let t=e.state.field(V,false);if(!t||!t.active.some(e=>0!=e.state))return false;e.dispatch({effects:y.of(null)});return true};class K{constructor(e,t){this.active=e;this.context=t;this.time=Date.now();this.updates=[];this.done=void 0}}const J=50,ee=1e3;const et=n.ViewPlugin.fromClass(class{constructor(e){this.view=e;this.debounceUpdate=-1;this.running=[];this.debounceAccept=-1;this.pendingStart=false;this.composing=0;for(let t of e.state.field(V).active)if(t.isPending)this.startQuery(t)}update(e){let t=e.state.field(V);let r=e.state.facet(x);if(!e.selectionSet&&!e.docChanged&&e.startState.field(V)==t)return;let i=e.transactions.some(e=>{let t=X(e,r);return 8&t||(e.selection||e.docChanged)&&!(3&t)});for(let t=0;t<this.running.length;t++){let r=this.running[t];if(i||r.context.abortOnDocChange&&e.docChanged||r.updates.length+e.transactions.length>J&&Date.now()-r.time>ee){for(let e of r.context.abortListeners)try{e()}catch(e){n.logException(this.view.state,e)}r.context.abortListeners=null;this.running.splice(t--,1)}else r.updates.push(...e.transactions)}if(this.debounceUpdate>-1)clearTimeout(this.debounceUpdate);if(e.transactions.some(e=>e.effects.some(e=>e.is(v))))this.pendingStart=true;let o=this.pendingStart?50:r.activateOnTypingDelay;this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),o):-1;if(0!=this.composing){for(let t of e.transactions)if(t.isUserEvent("input.type"))this.composing=2;else if(2==this.composing&&t.selection)this.composing=3}}startUpdate(){this.debounceUpdate=-1;this.pendingStart=false;let{state:e}=this.view,t=e.field(V);for(let e of t.active)if(e.isPending&&!this.running.some(t=>t.active.source==e.source))this.startQuery(e);if(this.running.length&&t.open&&t.open.disabled)this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(x).updateSyncTime)}startQuery(e){let{state:t}=this.view,r=h(t);let i=new o(t,r,e.explicit,this.view);let s=new K(e,i);this.running.push(s);Promise.resolve(e.source(i)).then(e=>{if(!s.context.aborted){s.done=e||null;this.scheduleAccept()}},e=>{this.view.dispatch({effects:y.of(null)});n.logException(this.view.state,e)})}scheduleAccept(){if(this.running.every(e=>void 0!==e.done))this.accept();else if(this.debounceAccept<0)this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(x).updateSyncTime)}accept(){var e;if(this.debounceAccept>-1)clearTimeout(this.debounceAccept);this.debounceAccept=-1;let t=[];let r=this.view.state.facet(x),n=this.view.state.field(V);for(let i=0;i<this.running.length;i++){let o=this.running[i];if(void 0===o.done)continue;this.running.splice(i--,1);if(o.done){let n=h(o.updates.length?o.updates[0].startState:this.view.state);let i=Math.min(n,o.done.from+(o.active.explicit?0:1));let s=new B(o.active.source,o.active.explicit,i,o.done,o.done.from,null!=(e=o.done.to)?e:n);for(let e of o.updates)s=s.update(e,r);if(s.hasResult()){t.push(s);continue}}let s=n.active.find(e=>e.source==o.active.source);if(s&&s.isPending)if(null==o.done){let e=new q(o.active.source,0);for(let t of o.updates)e=e.update(t,r);
11if(!e.isPending)t.push(e)}else this.startQuery(s)}if(t.length||n.open&&n.open.disabled)this.view.dispatch({effects:I.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(V,false);if(t&&t.tooltip&&this.view.state.facet(x).closeOnBlur){let r=t.open&&n.getTooltip(this.view,t.open.tooltip);if(!r||!r.dom.contains(e.relatedTarget))setTimeout(()=>this.view.dispatch({effects:y.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){if(3==this.composing)setTimeout(()=>this.view.dispatch({effects:v.of(false)}),20);this.composing=0}}});const er="object"==typeof navigator&&/Win/.test(navigator.platform);const en=r.Prec.highest(n.EditorView.domEventHandlers({keydown(e,t){let r=t.state.field(V,false);if(!r||!r.open||r.open.disabled||r.open.selected<0||e.key.length>1||e.ctrlKey&&!(er&&e.altKey)||e.metaKey)return false;let n=r.open.options[r.open.selected];let i=r.active.find(e=>e.source==n.source);let o=n.completion.commitCharacters||i.result.commitCharacters;if(o&&o.indexOf(e.key)>-1)W(t,n);return false}}));const ei=n.EditorView.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class eo{constructor(e,t,r,n){this.field=e;this.line=t;this.from=r;this.to=n}}class es{constructor(e,t,r){this.field=e;this.from=t;this.to=r}map(e){let t=e.mapPos(this.from,-1,r.MapMode.TrackDel);let n=e.mapPos(this.to,1,r.MapMode.TrackDel);return null==t||null==n?null:new es(this.field,t,n)}}class ea{constructor(e,t){this.lines=e;this.fieldPositions=t}instantiate(e,t){let r=[],n=[t];let o=e.doc.lineAt(t),s=/^\s*/.exec(o.text)[0];for(let o of this.lines){if(r.length){let r=s,a=/^\t*/.exec(o)[0].length;for(let t=0;t<a;t++)r+=e.facet(i.indentUnit);n.push(t+r.length-a);o=r+o.slice(a)}r.push(o);t+=o.length+1}let a=this.fieldPositions.map(e=>new es(e.field,n[e.line]+e.from,n[e.line]+e.to));return{text:r,ranges:a}}static parse(e){let t=[];let r=[],n=[],i;for(let o of e.split(/\r\n?|\n/)){while(i=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o)){let e=i[1]?+i[1]:null,s=i[2]||i[3]||"",a=-1;let l=s.replace(/\\[{}]/g,e=>e[1]);for(let r=0;r<t.length;r++)if(null!=e?t[r].seq==e:l?t[r].name==l:false)a=r;if(a<0){let r=0;while(r<t.length&&(null==e||null!=t[r].seq&&t[r].seq<e))r++;t.splice(r,0,{seq:e,name:l});a=r;for(let e of n)if(e.field>=a)e.field++}for(let e of n)if(e.line==r.length&&e.from>i.index){let t=i[2]?3+(i[1]||"").length:2;e.from-=t;e.to-=t}n.push(new eo(a,r.length,i.index,i.index+l.length));o=o.slice(0,i.index)+s+o.slice(i.index+i[0].length)}o=o.replace(/\\([{}])/g,(e,t,i)=>{for(let e of n)if(e.line==r.length&&e.from>i){e.from--;e.to--}return t});
11r.push(o)}return new ea(r,n)}}let el=n.Decoration.widget({widget:new class extends n.WidgetType{toDOM(){let e=document.createElement("span");e.className="cm-snippetFieldPosition";return e}ignoreEvent(){return false}}});let eu=n.Decoration.mark({class:"cm-snippetField"});class ef{constructor(e,t){this.ranges=e;this.active=t;this.deco=n.Decoration.set(e.map(e=>(e.from==e.to?el:eu).range(e.from,e.to)),true)}map(e){let t=[];for(let r of this.ranges){let n=r.map(e);if(!n)return null;t.push(n)}return new ef(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}const ec=r.StateEffect.define({map(e,t){return e&&e.map(t)}});const eh=r.StateEffect.define();const ed=r.StateField.define({create(){return null},update(e,t){for(let r of t.effects){if(r.is(ec))return r.value;if(r.is(eh)&&e)return new ef(e.ranges,r.value)}if(e&&t.docChanged)e=e.map(t.changes);if(e&&t.selection&&!e.selectionInsideField(t.selection))e=null;return e},provide:e=>n.EditorView.decorations.from(e,e=>e?e.deco:n.Decoration.none)});function ep(e,t){return r.EditorSelection.create(e.filter(e=>e.field==t).map(e=>r.EditorSelection.range(e.from,e.to)))}function eg(e){let t=ea.parse(e);return(e,n,i,o)=>{let{text:s,ranges:a}=t.instantiate(e.state,i);let{main:l}=e.state.selection;let u={changes:{from:i,to:o==l.from?l.to:o,insert:r.Text.of(s)},scrollIntoView:true,annotations:n?[p.of(n),r.Transaction.userEvent.of("input.complete")]:void 0};if(a.length)u.selection=ep(a,0);if(a.some(e=>e.field>0)){let t=new ef(a,0);let n=u.effects=[ec.of(t)];if(void 0===e.state.field(ed,false))n.push(r.StateEffect.appendConfig.of([ed,e_,eQ,ei]))}e.dispatch(e.state.update(u))}}function em(e){return({state:t,dispatch:r})=>{let n=t.field(ed,false);
11if(!n||e<0&&0==n.active)return false;let i=n.active+e,o=e>0&&!n.ranges.some(t=>t.field==i+e);r(t.update({selection:ep(n.ranges,i),effects:ec.of(o?null:new ef(n.ranges,i)),scrollIntoView:true}));return true}}const eO=({state:e,dispatch:t})=>{let r=e.field(ed,false);if(!r)return false;t(e.update({effects:ec.of(null)}));return true};const ev=em(1);const ey=em(-1);function eb(e){let t=e.field(ed,false);return!!(t&&t.ranges.some(e=>e.field==t.active+1))}function ew(e){let t=e.field(ed,false);return!!(t&&t.active>0)}const ex=[{key:"Tab",run:ev,shift:ey},{key:"Escape",run:eO}];const eS=r.Facet.define({combine(e){return e.length?e[0]:ex}});const e_=r.Prec.highest(n.keymap.compute([eS],e=>e.facet(eS)));function ek(e,t){return{...t,apply:eg(e)}}const eQ=n.EditorView.domEventHandlers({mousedown(e,t){let r=t.state.field(ed,false),n;if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return false;let i=r.ranges.find(e=>e.from<=n&&e.to>=n);if(!i||i.field==r.active)return false;t.dispatch({selection:ep(r.ranges,i.field),effects:ec.of(r.ranges.some(e=>e.field>i.field)?new ef(r.ranges,i.field):null),scrollIntoView:true});return true}});function eP(e){let t=e.replace(/[\]\-\\]/g,"\\$&");try{return new RegExp(`[\\p{Alphabetic}\\p{Number}_${t}]+`,"ug")}catch(e){return new RegExp(`[w${t}]`,"g")}}function eT(e,t){return new RegExp(t(e.source),e.unicode?"u":"")}const eA=Object.create(null);function e$(e){return eA[e]||(eA[e]=new WeakMap)}function ej(e,t,r,n,i){for(let o=e.iterLines(),s=0;!o.next().done;){let{value:e}=o,a;t.lastIndex=0;while(a=t.exec(e))if(!n[a[0]]&&s+a.index!=i){r.push({type:"text",label:a[0]});n[a[0]]=true;if(r.length>=2e3)return}s+=e.length+1}}function eC(e,t,r,n,i){let o=e.length>=1e3;let s=o&&t.get(e);if(s)return s;let a=[],l=Object.create(null);if(e.children){let o=0;for(let s of e.children){if(s.length>=1e3){for(let e of eC(s,t,r,n-o,i-o))if(!l[e.label]){l[e.label]=true;a.push(e)}}else ej(s,r,a,l,i-o);o+=s.length+1}}else ej(e,r,a,l,i);if(o&&a.length<2e3)t.set(e,a);return a}const eE=e=>{let t=e.state.languageDataAt("wordChars",e.pos).join("");let r=eP(t);let n=e.matchBefore(eT(r,e=>e+"$"));if(!n&&!e.explicit)return null;let i=n?n.from:e.pos;let o=eC(e.state.doc,e$(t),r,5e4,i);return{from:i,options:o,validFor:eT(r,e=>"^"+e)}};const eM={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]};const eR=r.StateEffect.define({map(e,t){let n=t.mapPos(e,-1,r.MapMode.TrackAfter);return null==n?void 0:n}});const eD=new class extends r.RangeValue{};eD.startSide=1;eD.endSide=-1;const eL=r.StateField.define({create(){return r.RangeSet.empty},update(e,t){e=e.map(t.changes);if(t.selection){let r=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=r.from&&e<=r.to})}for(let r of t.effects)if(r.is(eR))e=e.update({add:[eD.range(r.value,r.value+1)]});return e}});function eZ(){return[eI,eL]}const eX="()[]{}<>\xab\xbb\xbb\xab[]{}";function eq(e){for(let t=0;t<eX.length;t+=2)if(eX.charCodeAt(t)==e)return eX.charAt(t+1);return r.fromCodePoint(e<128?e:e+1)}function eB(e,t){return e.languageDataAt("closeBrackets",t)[0]||eM}const ez="object"==typeof navigator&&/Android\b/.test(navigator.userAgent);const eI=n.EditorView.inputHandler.of((e,t,n,i)=>{if((ez?e.composing:e.compositionStarted)||e.state.readOnly)return false;let o=e.state.selection.main;if(i.length>2||2==i.length&&1==r.codePointSize(r.codePointAt(i,0))||t!=o.from||n!=o.to)return false;let s=eW(e.state,i);if(!s)return false;e.dispatch(s);return true});const eN=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=eB(e,e.selection.main.head);let i=n.brackets||eM.brackets;let o=null,s=e.changeByRange(t=>{if(t.empty){let n=eG(e.doc,t.head);for(let o of i)if(o==n&&eU(e.doc,t.head)==eq(r.codePointAt(o,0)))return{changes:{from:t.head-o.length,to:t.head+o.length},range:r.EditorSelection.cursor(t.head-o.length)}}return{range:o=t}});if(!o)t(e.update(s,{scrollIntoView:true,userEvent:"delete.backward"}));return!o};const eV=[{key:"Backspace",run:eN}];function eW(e,t){let n=eB(e,e.selection.main.head);let i=n.brackets||eM.brackets;for(let o of i){let s=eq(r.codePointAt(o,0));if(t==o)return s==o?eK(e,o,i.indexOf(o+o+o)>-1,n):eF(e,o,s,n.before||eM.before);if(t==s&&eY(e,e.selection.main.from))return eH(e,o,s)}return null}function eY(e,t){let r=false;e.field(eL).between(0,e.doc.length,e=>{if(e==t)r=true});return r}function eU(e,t){let n=e.sliceString(t,t+2);return n.slice(0,r.codePointSize(r.codePointAt(n,0)))}function eG(e,t){let n=e.sliceString(t-2,t);return r.codePointSize(r.codePointAt(n,0))==n.length?n:n.slice(1)}function eF(e,t,n,i){let o=null,s=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:eR.of(s.to+t.length),range:r.EditorSelection.range(s.anchor+t.length,s.head+t.length)};let a=eU(e.doc,s.head);if(!a||/\s/.test(a)||i.indexOf(a)>-1)return{changes:{insert:t+n,from:s.head},effects:eR.of(s.head+t.length),range:r.EditorSelection.cursor(s.head+t.length)};return{range:o=s}});return o?null:e.update(s,{scrollIntoView:true,userEvent:"input.type"})}function eH(e,t,n){let i=null,o=e.changeByRange(t=>{if(t.empty&&eU(e.doc,t.head)==n)return{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.EditorSelection.cursor(t.head+n.length)};return i={range:t}});return i?null:e.update(o,{scrollIntoView:true,userEvent:"input.type"})}function eK(e,t,n,i){let o=i.stringPrefixes||eM.stringPrefixes;let s=null,a=e.changeByRange(i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:eR.of(i.to+t.length),range:r.EditorSelection.range(i.anchor+t.length,i.head+t.length)};let a=i.head,l=eU(e.doc,a),u;if(l==t){if(eJ(e,a))return{changes:{insert:t+t,from:a},effects:eR.of(a+t.length),range:r.EditorSelection.cursor(a+t.length)};else if(eY(e,a)){let i=n&&e.sliceDoc(a,a+3*t.length)==t+t+t;let o=i?t+t+t:t;return{changes:{from:a,to:a+o.length,insert:o},range:r.EditorSelection.cursor(a+o.length)}}}else if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&(u=e1(e,a-2*t.length,o))>-1&&eJ(e,u))return{changes:{insert:t+t+t+t,from:a},effects:eR.of(a+t.length),range:r.EditorSelection.cursor(a+t.length)};else if(e.charCategorizer(a)(l)!=r.CharCategory.Word){if(e1(e,a,o)>-1&&!e0(e,a,t,o))return{changes:{insert:t+t,from:a},effects:eR.of(a+t.length),range:r.EditorSelection.cursor(a+t.length)}}return{range:s=i}});return s?null:e.update(a,{scrollIntoView:true,userEvent:"input.type"})}function eJ(e,t){let r=i.syntaxTree(e).resolveInner(t+1);return r.parent&&r.from==t}function e0(e,t,r,n){let o=i.syntaxTree(e).resolveInner(t,-1);let s=n.reduce((e,t)=>
11Math.max(e,t.length),0);for(let i=0;i<5;i++){let i=e.sliceDoc(o.from,Math.min(o.to,o.from+r.length+s));let a=i.indexOf(r);if(!a||a>-1&&n.indexOf(i.slice(0,a))>-1){let t=o.firstChild;while(t&&t.from==o.from&&t.to-t.from>r.length+a){if(e.sliceDoc(t.to-r.length,t.to)==r)return false;t=t.firstChild}return true}let l=o.to==t&&o.parent;if(!l)break;o=l}return false}function e1(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=r.CharCategory.Word)return t;for(let o of n){let n=t-o.length;if(e.sliceDoc(n,t)==o&&i(e.sliceDoc(n-1,n))!=r.CharCategory.Word)return n}return -1}function e2(e={}){return[en,V,x.of(e),et,e3,ei]}const e5=[{key:"Ctrl-Space",run:F},{mac:"Alt-`",run:F},{mac:"Alt-i",run:F},{key:"Escape",run:H},{key:"ArrowDown",run:U(true)},{key:"ArrowUp",run:U(false)},{key:"PageDown",run:U(true,"page")},{key:"PageUp",run:U(false,"page")},{key:"Enter",run:G}];const e3=r.Prec.highest(n.keymap.computeN([x],e=>e.facet(x).defaultKeymap?[e5]:[]));function e4(e){let t=e.field(V,false);return t&&t.active.some(e=>e.isPending)?"pending":t&&t.active.some(e=>0!=e.state)?"active":null}const e8=new WeakMap;function e6(e){var t;let r=null==(t=e.field(V,false))?void 0:t.open;if(!r||r.disabled)return[];let n=e8.get(r.options);if(!n)e8.set(r.options,n=r.options.map(e=>e.completion));return n}function e7(e){var t;let r=null==(t=e.field(V,false))?void 0:t.open;return r&&!r.disabled&&r.selected>=0?r.options[r.selected].completion:null}function e9(e){var t;let r=null==(t=e.field(V,false))?void 0:t.open;return r&&!r.disabled&&r.selected>=0?r.selected:null}function te(e){return N.of(e)}t.CompletionContext=o;t.acceptCompletion=G;t.autocompletion=e2;t.clearSnippet=eO;t.closeBrackets=eZ;t.closeBracketsKeymap=eV;t.closeCompletion=H;t.completeAnyWord=eE;t.completeFromList=l;t.completionKeymap=e5;t.completionStatus=e4;t.currentCompletions=e6;t.deleteBracketPair=eN;t.hasNextSnippetField=eb;t.hasPrevSnippetField=ew;t.ifIn=u;t.ifNotIn=f;t.insertBracket=eW;t.insertCompletionText=g;t.moveCompletionSelection=U;t.nextSnippetField=ev;t.pickedCompletion=p;t.prevSnippetField=ey;t.selectedCompletion=e7;t.selectedCompletionIndex=e9;t.setSelectedCompletion=te;t.snippet=eg;t.snippetCompletion=ek;t.snippetKeymap=eS;t.startCompletion=F}}},lint:{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/lint",version:"6.9.4",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";var r=e("@codemirror/view");var n=e("@codemirror/state");var i=e("crelt");class o{constructor(e,t,r){this.from=e;this.to=t;this.diagnostic=r}}class s{constructor(e,t,r){this.diagnostics=e;this.panel=t;this.selected=r}static init(e,t,i){let o=i.facet(Q).markerFilter;if(o)e=o(e,i);let l=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to);let u=new n.RangeSetBuilder,f=[],c=0;let h=i.doc.iter(),d=0,p=i.doc.length;for(let e=0;;){let t=e==l.length?null:l[e];if(!t&&!f.length)break;let n,i;if(f.length){n=c;i=f.reduce((e,t)=>Math.min(e,t.to),t&&t.from>n?t.from:1e8)}else{n=t.from;if(n>p)break;i=t.to;f.push(t);e++}while(e<l.length){let t=l[e];if(t.from==n&&(t.to>t.from||t.to==n)){f.push(t);e++;i=Math.min(t.to,i)}else{i=Math.min(t.from,i);break}}i=Math.min(i,p);let o=false;if(f.some(e=>e.from==n&&(e.to==i||i==p))){o=n==i;if(!o&&i-n<10){let e=n-(d+h.value.length);if(e>0){h.next(e);d=n}for(let e=n;;){if(e>=i){o=true;break}if(!h.lineBreak&&d+h.value.length>e)break;e=d+h.value.length;d+=h.value.length;h.next()}}}let s=X(f);if(o)u.add(n,n,r.Decoration.widget({widget:new C(s),diagnostics:f.slice()}));else{let e=f.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");u.add(n,i,r.Decoration.mark({class:"cm-lintRange cm-lintRange-"+s+e,diagnostics:f.slice(),inclusiveEnd:f.some(e=>e.to>i)}))}c=i;if(c==p)break;for(let e=0;e<f.length;e++)if(f[e].to<=c)f.splice(e--,1)}let g=u.finish();return new s(g,t,a(g))}}function a(e,t=null,r=0){let n=null;e.between(r,1e9,(e,r,{spec:i})=>{if(t&&i.diagnostics.indexOf(t)<0)return;if(n){if(i.diagnostics.indexOf(n.diagnostic)<0)return false;n=new o(n.from,r,n.diagnostic)}else n=new o(e,r,t||i.diagnostics[0])});return n}function l(e,t){let r=t.pos,n=t.end||r;let i=e.state.facet(Q).hideOn(e,r,n);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(c))||e.changes.touchesRange(o.from,Math.max(o.to,n)))}function u(e,t){return e.field(p,false)?t:t.concat(n.StateEffect.appendConfig.of(G))}function f(e,t){return{effects:u(e,[c.of(t)])}}const c=n.StateEffect.define();const h=n.StateEffect.define();const d=n.StateEffect.define();const p=n.StateField.define({create(){return new s(r.Decoration.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let r=e.diagnostics.map(t.changes),n=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);n=a(r,e.selected.diagnostic,i)||a(r,null,i)}if(!r.size&&i&&t.state.facet(Q).autoPanel)i=null;e=new s(r,i,n)}for(let r of t.effects)if(r.is(c)){let n=t.state.facet(Q).autoPanel?r.value.length?M.open:null:e.panel;e=s.init(r.value,n,t.state)}else if(r.is(h))e=new s(e.diagnostics,r.value?M.open:null,e.selected);else if(r.is(d))e=new s(e.diagnostics,e.panel,r.value);return e},provide:e=>[r.showPanel.from(e,e=>e.panel),r.EditorView.decorations.from(e,e=>e.diagnostics)]});function g(e){let t=e.field(p,false);return t?t.diagnostics.size:0}const m=r.Decoration.mark({class:"cm-lintRange cm-lintRange-active"});function O(e,t,r){let{diagnostics:n}=e.state.field(p);let i,o=-1,s=-1;n.between(t-(r<0?1:0),t+(r>0?1:0),(e,n,{spec:a})=>{if(t>=e&&t<=n&&(e==n||(t>e||r>0)&&(t<n||r<0))){i=a.diagnostics;o=e;s=n;return false}});let a=e.state.facet(Q).tooltipFilter;if(i&&a)i=a(i,e.state);if(!i)return null;return{pos:o,end:s,above:e.state.doc.lineAt(o).to<s,create(){return{dom:v(e,i)}}}}function v(e,t){return i("ul",{class:"cm-tooltip-lint"},t.map(t=>j(e,t,false)))}const y=e=>{let t=e.state.field(p,false);if(!t||!t.panel)e.dispatch({effects:u(e.state,[h.of(true)])});let n=r.getPanel(e,M.open);if(n)n.dom.querySelector(".cm-panel-lint ul").focus();return true};const b=e=>{let t=e.state.field(p,false);if(!t||!t.panel)return false;e.dispatch({effects:h.of(false)});return true};const w=e=>{let t=e.state.field(p,false);if(!t)return false;let r=e.state.selection.main,n=a(t.diagnostics,null,r.to+1);if(!n){n=a(t.diagnostics,null,0);if(!n||n.from==r.from&&n.to==r.to)return false}e.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:true});return true};const x=e=>{let{state:t}=e,r=t.field(p,false);if(!r)return false;let n=t.selection.main;let i,o,s,a;r.diagnostics.between(0,t.doc.length,(e,t)=>{if(t<n.to&&(null==i||i<e)){i=e;o=t}if(null==s||e>s){s=e;a=t}});if(null==s||null==i&&s==n.from)return false;e.dispatch({selection:{anchor:null!=i?i:s,head:null!=o?o:a},scrollIntoView:true});return true};
11const S=[{key:"Mod-Shift-m",run:y,preventDefault:true},{key:"F8",run:w}];const _=r.ViewPlugin.fromClass(class{constructor(e){this.view=e;this.timeout=-1;this.set=true;let{delay:t}=e.state.facet(Q);this.lintTime=Date.now()+t;this.run=this.run.bind(this);this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=false;let{state:e}=this.view,{sources:t}=e.facet(Q);if(t.length)k(t.map(e=>Promise.resolve(e(this.view))),t=>{if(this.view.state.doc==e.doc)this.view.dispatch(f(this.view.state,t.reduce((e,t)=>e.concat(t))))},e=>{r.logException(this.view.state,e)})}}update(e){let t=e.state.facet(Q);if(e.docChanged||t!=e.startState.facet(Q)||t.needsRefresh&&t.needsRefresh(e)){this.lintTime=Date.now()+t.delay;if(!this.set){this.set=true;this.timeout=setTimeout(this.run,t.delay)}}}force(){if(this.set){this.lintTime=Date.now();this.run()}}destroy(){clearTimeout(this.timeout)}});function k(e,t,r){let n=[],i=-1;for(let o of e)o.then(r=>{n.push(r);clearTimeout(i);if(n.length==e.length)t(n);else i=setTimeout(()=>t(n),200)},r)}const Q=n.Facet.define({combine(e){return{sources:e.map(e=>e.source).filter(e=>null!=e),...n.combineConfig(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:P,tooltipFilter:P,needsRefresh:(e,t)=>e?t?r=>e(r)||t(r):e:t,hideOn:(e,t)=>e?t?(r,n,i)=>e(r,n,i)||t(r,n,i):e:t,autoPanel:(e,t)=>e||t})}}});function P(e,t){return e?t?(r,n)=>t(e(r,n),n):e:t}function T(e,t={}){return[Q.of({source:e,config:t}),_,G]}function A(e){let t=e.plugin(_);if(t)t.force()}function $(e){let t=[];if(e)n:for(let{name:r}of e){for(let e=0;e<r.length;e++){let n=r[e];if(/[a-zA-Z]/.test(n)&&!t.some(e=>e.toLowerCase()==n.toLowerCase())){t.push(n);continue n}}t.push("")}return t}function j(e,t,r){var n;let o=r?$(t.actions):[];return i("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},i("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null==(n=t.actions)?void 0:n.map((r,n)=>{let s=false,l=n=>{n.preventDefault();if(s)return;s=true;let i=a(e.state.field(p).diagnostics,t);if(i)r.apply(e,i.from,i.to)};let{name:u}=r,f=o[n]?u.indexOf(o[n]):-1;let c=f<0?u:[u.slice(0,f),i("u",u.slice(f,f+1)),u.slice(f+1)];let h=r.markClass?" "+r.markClass:"";return i("button",{type:"button",class:"cm-diagnosticAction"+h,onclick:l,onmousedown:l,"aria-label":` Action: ${u}${f<0?"":` (access key "${o[n]})"`}.`},c)}),t.source&&i("div",{class:"cm-diagnosticSource"},t.source))}class C extends r.WidgetType{constructor(e){super();this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return i("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class E{constructor(e,t){this.diagnostic=t;this.id="item_"+Math.floor(0xffffffff*Math.random()).toString(16);this.dom=j(e,t,true);this.dom.id=this.id;this.dom.setAttribute("role","option")}}class M{constructor(e){this.view=e;this.items=[];let t=t=>{if(t.ctrlKey||t.altKey||t.metaKey)return;if(27==t.keyCode){b(this.view);this.view.focus()}else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65)||!(t.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:r}=this.items[this.selectedIndex],n=$(r.actions);for(let i=0;i<n.length;i++)if(n[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=a(this.view.state.field(p).diagnostics,r);if(t)r.actions[i].apply(e,t.from,t.to)}}t.preventDefault()};let r=e=>{for(let t=0;t<this.items.length;t++)if(this.items[t].dom.contains(e.target))this.moveSelection(t)};this.list=i("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:r});this.dom=i("div",{class:"cm-panel-lint"},this.list,i("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>b(this.view)},"\xd7"));this.update()}get selectedIndex(){let e=this.view.state.field(p).selected;if(!e)return -1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return -1}update(){let{diagnostics:e,selected:t}=this.view.state.field(p);let r=0,n=false,i=null;let o=new Set;e.between(0,this.view.state.doc.length,(e,s,{spec:a})=>{for(let e of a.diagnostics){if(o.has(e))continue;o.add(e);let s=-1,a;for(let t=r;t<this.items.length;t++)if(this.items[t].diagnostic==e){s=t;break}if(s<0){a=new E(this.view,e);this.items.splice(r,0,a);n=true}else{a=this.items[s];if(s>r){this.items.splice(r,s-r);n=true}}if(t&&a.diagnostic==t.diagnostic){if(!a.dom.hasAttribute("aria-selected")){a.dom.setAttribute("aria-selected","true");i=a}}else if(a.dom.hasAttribute("aria-selected"))a.dom.removeAttribute("aria-selected");r++}});while(r<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0)){n=true;this.items.pop()}if(0==this.items.length){this.items.push(new E(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")}));n=true}if(i){this.list.setAttribute("aria-activedescendant",i.id);this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let r=t.height/this.list.offsetHeight;if(e.top<t.top)this.list.scrollTop-=(t.top-e.top)/r;else if(e.bottom>t.bottom)this.list.scrollTop+=(e.bottom-t.bottom)/r}})}else if(this.selectedIndex<0)this.list.removeAttribute("aria-activedescendant");if(n)this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling;t.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){while(e!=r.dom)t(
11);e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);while(e)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(p);let r=a(t.diagnostics,this.items[e].diagnostic);if(!r)return;this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:true,effects:d.of(r)})}static open(e){return new M(e)}}function R(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function D(e){return R(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const L=r.EditorView.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:D("#d11")},".cm-lintRange-warning":{backgroundImage:D("orange")},".cm-lintRange-info":{backgroundImage:D("#999")},".cm-lintRange-hint":{backgroundImage:D("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Z(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function X(e){let t="hint",r=1;for(let n of e){let e=Z(n.severity);if(e>r){r=e;t=n.severity}}return t}class q extends r.GutterMarker{constructor(e){super();this.diagnostics=e;this.severity=X(e)}toDOM(e){let t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;let r=this.diagnostics;let n=e.state.facet(F).tooltipFilter;if(n)r=n(r,e.state);if(r.length)t.onmouseover=()=>z(e,t,r);return t}}function B(e,t){let r=n=>{let i=t.getBoundingClientRect();if(n.clientX>i.left-10&&n.clientX<i.right+10&&n.clientY>i.top-10&&n.clientY<i.bottom+10)return;for(let e=n.target;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",r);if(e.state.field(Y))e.dispatch({effects:W.of(null)})};window.addEventListener("mousemove",r)}function z(e,t,r){function n(){let n=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);const i=e.coordsAtPos(n.from);if(i)e.dispatch({effects:W.of({pos:n.from,above:false,clip:false,create(){return{dom:v(e,r),getCoords:()=>t.getBoundingClientRect()}}})});t.onmouseout=t.onmousemove=null;B(e,t)}let{hoverTime:i}=e.state.facet(F);let o=setTimeout(n,i);t.onmouseout=()=>{clearTimeout(o);t.onmouseout=t.onmousemove=null};t.onmousemove=()=>{clearTimeout(o);o=setTimeout(n,i)}}function I(e,t){let r=Object.create(null);for(let n of t){let t=e.lineAt(n.from);(r[t.from]||(r[t.from]=[])).push(n)}let i=[];for(let e in r)i.push(new q(r[e]).range(+e));return n.RangeSet.of(i,true)}const N=r.gutter({class:"cm-gutter-lint",markers:e=>e.state.field(V),widgetMarker:(e,t,r)=>{let n=[];e.state.field(V).between(r.from,r.to,(e,t,i)=>{if(e>r.from&&e<r.to)n.push(...i.diagnostics)});return n.length?new q(n):null}});const V=n.StateField.define({create(){return n.RangeSet.empty},update(e,t){e=e.map(t.changes);let r=t.state.facet(F).markerFilter;for(let n of t.effects)if(n.is(c)){let i=n.value;if(r)i=r(i||[],t.state);e=I(t.state.doc,i.slice(0))}return e}});
11const W=n.StateEffect.define();const Y=n.StateField.define({create(){return null},update(e,t){if(e&&t.docChanged)e=l(t,e)?null:{...e,pos:t.changes.mapPos(e.pos)};return t.effects.reduce((e,t)=>t.is(W)?t.value:e,e)},provide:e=>r.showTooltip.from(e)});const U=r.EditorView.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:R('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:R('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:R('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}});const G=[p,r.EditorView.decorations.compute([p],e=>{let{selected:t,panel:n}=e.field(p);return t&&n&&t.from!=t.to?r.Decoration.set([m.range(t.from,t.to)]):r.Decoration.none}),r.hoverTooltip(O,{hideOn:l}),L];const F=n.Facet.define({combine(e){return n.combineConfig(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function H(e={}){return[F.of(e),V,N,U,Y]}function K(e,t){let r=e.field(p,false);if(r&&r.diagnostics.size){let e=[],i=[],o=-1;for(let s=n.RangeSet.iter([r.diagnostics]);;s.next()){for(let r=0;r<e.length;r++)if(!s.value||s.value.spec.diagnostics.indexOf(e[r])<0){t(e[r],i[r],o);e.splice(r,1);i.splice(r--,1)}if(!s.value)break;for(let t of s.value.spec.diagnostics)if(e.indexOf(t)<0){e.push(t);i.push(s.from)}o=s.to}}}t.closeLintPanel=b;t.diagnosticCount=g;t.forEachDiagnostic=K;t.forceLinting=A;t.lintGutter=H;t.lintKeymap=S;t.linter=T;t.nextDiagnostic=w;t.openLintPanel=y;t.previousDiagnostic=x;t.setDiagnostics=f;t.setDiagnosticsEffect=c}}},merge:{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/merge",version:"6.11.2",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";var r=e("@codemirror/view");var n=e("@codemirror/state");var i=e("style-mod");var o=e("@codemirror/language");var s=e("@lezer/highlight");class a{constructor(e,t,r,n){this.fromA=e;this.toA=t;this.fromB=r;this.toB=n}offset(e,t=e){return new a(this.fromA+e,this.toA+e,this.fromB+t,this.toB+t)}}function l(e,t,r,n,i,o){if(e==n)return[];let s=v(e,t,r,n,i,o);let u=y(e,t+s,r,n,i+s,o);t+=s;r-=u;i+=s;o-=u;let f=r-t,c=o-i;if(!f||!c)return[new a(t,r,i,o)];if(f>c){let s=e.slice(t,r).indexOf(n.slice(i,o));if(s>-1)return[new a(t,t+s,i,i),new a(t+s+c,r,o,o)]}else if(c>f){let s=n.slice(i,o).indexOf(e.slice(t,r));if(s>-1)return[new a(t,t,i,i+s),new a(r,r,i+s+f,o)]}if(1==f||1==c)return[new a(t,r,i,o)];let d=w(e,t,r,n,i,o);if(d){let[s,a,u]=d;return l(e,t,s,n,i,a).concat(l(e,s+u,r,n,a+u,o))}return h(e,t,r,n,i,o)}let u=1e9;let f=0;let c=false;function h(e,t,r,n,i,o){let s=r-t,l=o-i;if(u<1e9&&Math.min(s,l)>16*u||f>0&&Date.now()>f){if(Math.min(s,l)>64*u)return[new a(t,r,i,o)];return x(e,t,r,n,i,o)}let c=Math.ceil((s+l)/2);p.reset(c);g.reset(c);let h=(r,o)=>e.charCodeAt(t+r)==n.charCodeAt(i+o);let d=(t,i)=>e.charCodeAt(r-t-1)==n.charCodeAt(o-i-1);let O=(s-l)%2!=0?g:null,v=O?null:p;for(let a=0;a<c;a++){if(a>u||f>0&&!(63&a)&&Date.now()>f)return x(e,t,r,n,i,o);let y=p.advance(a,s,l,c,O,false,h)||g.advance(a,s,l,c,v,true,d);if(y)return m(e,t,r,t+y[0],n,i,o,i+y[1])}return[new a(t,r,i,o)]}class d{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let e=0;e<this.len;e++)this.vec[e]=-1;this.vec[e+1]=0;this.start=this.end=0}advance(e,t,r,n,i,o,s){for(let a=-e+this.start;a<=e-this.end;a+=2){let l=n+a;let u=a==-e||a!=e&&this.vec[l-1]<this.vec[l+1]?this.vec[l+1]:this.vec[l-1]+1;let f=u-a;while(u<t&&f<r&&s(u,f)){u++;f++}this.vec[l]=u;if(u>t)this.end+=2;else if(f>r)this.start+=2;else if(i){let e=n+(t-r)-a;if(e>=0&&e<this.len&&-1!=i.vec[e])if(o){let r=i.vec[e];if(r>=t-u)return[r,n+r-e]}else{let r=t-i.vec[e];if(u>=r)return[u,f]}}}return null}}const p=new d,g=new d;function m(e,t,r,n,i,o,s,u){let f=false;if(!L(e,n)&&++n==r)f=true;if(!L(i,u)&&++u==s)f=true;if(f)return[new a(t,r,o,s)];return l(e,t,n,i,o,u).concat(l(e,n,r,i,u,s))}function O(e,t){let r=1,n=Math.min(e,t);while(r<n)r<<=1;return r}function v(e,t,r,n,i,o){if(t==r||t==o||e.charCodeAt(t)!=n.charCodeAt(i))return 0;let s=O(r-t,o-i);for(let a=t,l=i;;){let i=a+s,u=l+s;if(i>r||u>o||e.slice(a,i)!=n.slice(l,u)){if(1==s)return a-t-(L(e,a)?0:1);s>>=1}else{if(i==r||u==o)return i-t;a=i;l=u}}}function y(e,t,r,n,i,o){if(t==r||i==o||e.charCodeAt(r-1)!=n.charCodeAt(o-1))return 0;let s=O(r-t,o-i);for(let a=r,l=o;;){let o=a-s,u=l-s;if(o<t||u<i||e.slice(o,a)!=n.slice(u,l)){if(1==s)return r-a-(L(e,a)?0:1);s>>=1}else{if(o==t||u==i)return r-o;a=o;l=u}}}function b(e,t,r,n,i,o,s,a){let l=n.slice(i,o);let u=null;for(;;){if(u||s<a)return u;for(let a=t+s;;){if(!L(e,a))a++;let f=a+s;if(!L(e,f))f+=f==a+1?1:-1;if(f>=r)break;let c=e.slice(a,f);let h=-1;while(-1!=(h=l.indexOf(c,h+1))){let s=v(e,f,r,n,i+h+c.length,o);let l=y(e,t,a,n,i,i+h);let d=c.length+s+l;if(!u||u[2]<d)u=[a-l,i+h-l,d]}a=f}if(a<0)return u;s>>=1}}function w(e,t,r,n,i,o){let s=r-t,a=o-i;if(s<a){let s=w(n,i,o,e,t,r);return s&&[s[1],s[0],s[2]]}if(s<4||2*a<s)return null;return b(e,t,r,n,i,o,Math.floor(s/4),-1)}function x(e,t,r,n,i,o){c=true;let s=r-t,u=o-i;let f;if(s<u){let a=b(n,i,o,e,t,r,Math.floor(s/6),50);f=a&&[a[1],a[0],a[2]]}else f=b(e,t,r,n,i,o,Math.floor(u/6),50);if(!f)return[new a(t,r,i,o)];let[h,d,p]=f;return l(e,t,h,n,i,d).concat(l(e,h+p,r,n,d+p,o))}function S(e,t){for(let r=1;r<e.length;r++){let n=e[r-1],i=e[r];if(n.toA>i.fromA-t&&n.toB>i.fromB-t){e[r-1]=new a(n.fromA,i.toA,n.fromB,i.toB);e.splice(r--,1)}}}function _(e,t,r){for(;;){S(r,1);let n=false;for(let i=0;i<r.length;i++){let o=r[i],s,l;if(s=v(e,o.fromA,o.toA,t,o.fromB,o.toB))o=r[i]=new a(o.fromA+s,o.toA,o.fromB+s,o.toB);if(l=y(e,o.fromA,o.toA,t,o.fromB,o.toB))o=r[i]=new a(o.fromA,o.toA-l,o.fromB,o.toB-l);let u=o.toA-o.fromA,f=o.toB-o.fromB;if(u&&f)continue;let c=o.fromA-(i?r[i-1].toA:0);let h=(i<r.length-1?r[i+1].fromA:e.length)-o.toA;if(!c||!h)continue;let d=u?e.slice(o.fromA,o.toA):t.slice(o.fromB,o.toB);if(c<=d.length&&e.slice(o.fromA-c,o.fromA)==d.slice(d.length-c)){r[i]=new a(o.fromA-c,o.toA-c,o.fromB-c,o.toB-c);n=true}else if(h<=d.length&&e.slice(o.toA,o.toA+h)==d.slice(0,h)){r[i]=new a(o.fromA+h,o.toA+h,o.fromB+h,o.toB+h);n=true}}if(!n)break}return r}function k(e,t,r){for(let n=0,i=0;i<e.length;i++){let o=e[i];let s=o.toA-o.fromA,l=o.toB-o.fromB;
11if(s&&l||s>3||l>3){let u=i==e.length-1?t.length:e[i+1].fromA;let f=o.fromA-n,c=u-o.toA;let h=C(t,o.fromA,f);let d=j(t,o.toA,c);let p=o.fromA-h,g=d-o.toA;if((!s||!l)&&p&&g){let f=Math.max(s,l);let[c,m,O]=s?[t,o.fromA,o.toA]:[r,o.fromB,o.toB];if(f>p&&t.slice(h,o.fromA)==c.slice(O-p,O)){o=e[i]=new a(h,h+s,o.fromB-p,o.toB-p);h=o.fromA;d=j(t,o.toA,u-o.toA)}else if(f>g&&t.slice(o.toA,d)==c.slice(m,m+g)){o=e[i]=new a(d-s,d,o.fromB+g,o.toB+g);d=o.toA;h=C(t,o.fromA,o.fromA-n)}p=o.fromA-h;g=d-o.toA}if(p||g)o=e[i]=new a(o.fromA-p,o.toA+g,o.fromB-p,o.toB+g);else if(s){if(!l){let r=M(t,o.fromA,o.toA),n;let s=r<0?-1:E(t,o.toA,o.fromA);if(r>-1&&(n=r-o.fromA)<=c&&t.slice(o.fromA,r)==t.slice(o.toA,o.toA+n))o=e[i]=o.offset(n);else if(s>-1&&(n=o.toA-s)<=f&&t.slice(o.fromA-n,o.fromA)==t.slice(s,o.toA))o=e[i]=o.offset(-n)}}else{let t=M(r,o.fromB,o.toB),n;let s=t<0?-1:E(r,o.toB,o.fromB);if(t>-1&&(n=t-o.fromB)<=c&&r.slice(o.fromB,t)==r.slice(o.toB,o.toB+n))o=e[i]=o.offset(n);else if(s>-1&&(n=o.toB-s)<=f&&r.slice(o.fromB-n,o.fromB)==r.slice(s,o.toB))o=e[i]=o.offset(-n)}}n=o.toA}S(e,3);return e}let Q;try{Q=new RegExp("[\\p{Alphabetic}\\p{Number}]","u")}catch(e){}function P(e){return e>48&&e<58||e>64&&e<91||e>96&&e<123}function T(e,t){if(t==e.length)return 0;let r=e.charCodeAt(t);if(r<192)return P(r)?1:0;if(!Q)return 0;if(!R(r)||t==e.length-1)return Q.test(String.fromCharCode(r))?1:0;return Q.test(e.slice(t,t+2))?2:0}function A(e,t){if(!t)return 0;let r=e.charCodeAt(t-1);if(r<192)return P(r)?1:0;if(!Q)return 0;if(!D(r)||1==t)return Q.test(String.fromCharCode(r))?1:0;return Q.test(e.slice(t-2,t))?2:0}const $=8;function j(e,t,r){if(t==e.length||!A(e,t))return t;for(let n=t,i=t+r,o=0;o<$;o++){let t=T(e,n);if(!t||n+t>i)return n;n+=t}return t}function C(e,t,r){if(!t||!T(e,t))return t;for(let n=t,i=t-r,o=0;o<$;o++){let t=A(e,n);if(!t||n-t<i)return n;n-=t}return t}function E(e,t,r){for(;t!=r;t--)if(10==e.charCodeAt(t-1))return t;return -1}function M(e,t,r){for(;t!=r;t++)if(10==e.charCodeAt(t))return t;return -1}const R=e=>e>=55296&&e<=56319;const D=e=>e>=56320&&e<=57343;function L(e,t){return!t||t==e.length||!R(e.charCodeAt(t-1))||!D(e.charCodeAt(t))}function Z(e,t,r){var n;u=(null!=(n=null==r?void 0:r.scanLimit)?n:1e9)>>1;f=(null==r?void 0:r.timeout)?Date.now()+r.timeout:0;c=false;return _(e,t,l(e,0,e.length,t,0,t.length))}function X(){return!c}function q(e,t,r){return k(Z(e,t,r),e,t)}const B=n.Facet.define({combine:e=>e[0]});const z=n.StateEffect.define();const I=n.Facet.define();const N=n.StateField.define({create(e){return null},update(e,t){for(let r of t.effects)if(r.is(z))e=r.value;for(let r of t.state.facet(I))e=r(e,t);return e}});function V(e){let t=e.field(N,false);
11if(!t)return null;let r=e.facet(B);return{chunks:t,side:r?r.side:null}}let W=e=>({state:t,dispatch:i})=>{let o=t.field(N,false),s=t.facet(B);if(!o||!o.length||!s)return false;let{head:a}=t.selection.main,l=0;for(let t=o.length-1;t>=0;t--){let r=o[t];let[n,i]="b"==s.side?[r.fromB,r.toB]:[r.fromA,r.toA];if(i<a){l=t+1;break}if(n<=a){if(1==o.length)return false;l=t+(e<0?0:1);break}}let u=o[(l+(e<0?o.length-1:0))%o.length];let[f,c]="b"==s.side?[u.fromB,u.toB]:[u.fromA,u.toA];i(t.update({selection:{anchor:f},userEvent:"select.byChunk",effects:r.EditorView.scrollIntoView(n.EditorSelection.range(c,f))}));return true};const Y=W(1);const U=W(-1);class G{constructor(e,t,r,n,i,o=true){this.changes=e;this.fromA=t;this.toA=r;this.fromB=n;this.toB=i;this.precise=o}offset(e,t){return e||t?new G(this.changes,this.fromA+e,this.toA+e,this.fromB+t,this.toB+t,this.precise):this}get endA(){return Math.max(this.fromA,this.toA-1)}get endB(){return Math.max(this.fromB,this.toB-1)}static build(e,t,r){let n=q(e.toString(),t.toString(),r);return K(n,e,t,0,0,X())}static updateA(e,t,r,n,i){return er(et(e,n,true,r.length),e,t,r,i)}static updateB(e,t,r,n,i){return er(et(e,n,false,t.length),e,t,r,i)}}function F(e,t,r,n){let i=r.lineAt(e),o=n.lineAt(t);return i.to==e&&o.to==t&&e<r.length&&t<n.length?[e+1,t+1]:[i.from,o.from]}function H(e,t,r,n){let i=r.lineAt(e),o=n.lineAt(t);return i.from==e&&o.from==t?[e,t]:[i.to+1,o.to+1]}function K(e,t,r,n,i,o){let s=[];for(let a=0;a<e.length;a++){let l=e[a];let[u,f]=F(l.fromA+n,l.fromB+i,t,r);let[c,h]=H(l.toA+n,l.toB+i,t,r);let d=[l.offset(-u+n,-f+i)];while(a<e.length-1){let o=e[a+1];let[s,l]=F(o.fromA+n,o.fromB+i,t,r);if(s>c+1&&l>h+1)break;d.push(o.offset(-u+n,-f+i));[c,h]=H(o.toA+n,o.toB+i,t,r);a++}s.push(new G(d,u,Math.max(u,c),f,Math.max(f,h),o))}return s}const J=1e3;function ee(e,t,r,n){let i=0,o=e.length;for(;;){if(i==o){let n=0,o=0;if(i)({toA:n,toB:o}=e[i-1]);let s=t-(r?n:o);return[n+s,o+s]}let s=i+o>>1,a=e[s];let[l,u]=r?[a.fromA,a.toA]:[a.fromB,a.toB];if(l>t)o=s;else{if(!(u<=t))return n?[a.fromA,a.fromB]:[a.toA,a.toB];i=s+1}}}function et(e,t,r,n){let i=[];t.iterChangedRanges((o,s,a,l)=>{let u=0,f=r?t.length:n;let c=0,h=r?n:t.length;if(o>J)[u,c]=ee(e,o-J,r,true);if(s<t.length-J)[f,h]=ee(e,s+J,r,false);let d=l-a-(s-o),p;let[g,m]=r?[d,0]:[0,d];if(i.length&&(p=i[i.length-1]).toA>=u)i[i.length-1]={fromA:p.fromA,fromB:p.fromB,toA:f,toB:h,diffA:p.diffA+g,diffB:p.diffB+m};else i.push({fromA:u,toA:f,fromB:c,toB:h,diffA:g,diffB:m})});return i}function er(e,t,r,n,i){if(!e.length)return t;let o=[];for(let s=0,a=0,l=0,u=0;;s++){let f=s==e.length?null:e[s];let c=f?f.fromA+a:r.length,h=f?f.fromB+l:n.length;while(u<t.length){let e=t[u];if(Math.min(r.length,e.toA+a)>c||Math.min(n.length,e.toB+l)>h)break;o.push(e.offset(a,l));u++}if(!f)break;let d=f.toA+a+f.diffA,p=f.toB+l+f.diffB;let g=q(r.sliceString(c,d),n.sliceString(h,p),i);for(let e of K(g,r,n,c,h,X()))o.push(e);a+=f.diffA;l+=f.diffB;while(u<t.length){let e=t[u];if(e.fromA+a>d&&e.fromB+l>p)break;u++}}return o}const en={scanLimit:500};const ei=r.ViewPlugin.fromClass(class{constructor(e){({deco:this.deco,gutter:this.gutter}=ep(e))}update(e){if(e.docChanged||e.viewportChanged||es(e.startState,e.state)||ea(e.startState,e.state))({deco:this.deco,gutter:this.gutter}
11=ep(e.view))}},{decorations:e=>e.deco});const eo=n.Prec.low(r.gutter({class:"cm-changeGutter",markers:e=>{var t;return(null==(t=e.plugin(ei))?void 0:t.gutter)||n.RangeSet.empty}}));function es(e,t){return e.field(N,false)!=t.field(N,false)}function ea(e,t){return e.facet(B)!=t.facet(B)}const el=r.Decoration.line({class:"cm-changedLine"});const eu=r.Decoration.mark({class:"cm-changedText"});const ef=r.Decoration.mark({tagName:"ins",class:"cm-insertedLine"});const ec=r.Decoration.mark({tagName:"del",class:"cm-deletedLine"});const eh=new class extends r.GutterMarker{constructor(){super(...arguments);this.elementClass="cm-changedLineGutter"}};function ed(e,t,r,n,i,o){let s=r?e.fromA:e.fromB,a=r?e.toA:e.toB;let l=0;if(s!=a){i.add(s,s,el);i.add(s,a,r?ec:ef);if(o)o.add(s,s,eh);for(let u=t.iterRange(s,a-1),f=s;!u.next().done;){if(u.lineBreak){f++;i.add(f,f,el);if(o)o.add(f,f,eh);continue}let t=f+u.value.length;if(n)while(l<e.changes.length){let n=e.changes[l];let o=s+(r?n.fromA:n.fromB);let a=s+(r?n.toA:n.toB);let u=Math.max(f,o),c=Math.min(t,a);if(u<c)i.add(u,c,eu);if(a<t)l++;else break}f=t}}}function ep(e){let t=e.state.field(N);let{side:r,highlightChanges:i,markGutter:o,overrideChunk:s}=e.state.facet(B),a="a"==r;let l=new n.RangeSetBuilder;let u=o?new n.RangeSetBuilder:null;let{from:f,to:c}=e.viewport;for(let r of t){if((a?r.fromA:r.fromB)>=c)break;if((a?r.toA:r.toB)>f){if(!s||!s(e.state,r,l,u))ed(r,e.state.doc,a,i,l,u)}}return{deco:l.finish(),gutter:u&&u.finish()}}class eg extends r.WidgetType{constructor(e){super();this.height=e}eq(e){return this.height==e.height}toDOM(){let e=document.createElement("div");e.className="cm-mergeSpacer";e.style.height=this.height+"px";return e}updateDOM(e){e.style.height=this.height+"px";return true}get estimatedHeight(){return this.height}ignoreEvent(){return false}}const em=n.StateEffect.define({map:(e,t)=>e.map(t)});const eO=n.StateField.define({create:()=>r.Decoration.none,update:(e,t)=>{for(let e of t.effects)if(e.is(em))return e.value;return e.map(t.changes)},provide:e=>r.EditorView.decorations.from(e)});const ev=.01;function ey(e,t){if(e.size!=t.size)return false;let r=e.iter(),n=t.iter();while(r.value){if(r.from!=n.from||Math.abs(r.value.spec.widget.height-n.value.spec.widget.height)>1)return false;r.next();n.next()}return true}function eb(e,t,i){let o=new n.RangeSetBuilder,s=new n.RangeSetBuilder;let a=e.state.field(eO).iter(),l=t.state.field(eO).iter();let u=0,f=0,c=0,h=0,d=e.viewport,p=t.viewport;for(let n=0;;n++){let g=n<i.length?i[n]:null;let m=g?g.fromA:e.state.doc.length,O=g?g.fromB:t.state.doc.length;if(u<m){let n=e.lineBlockAt(u).top+c;let i=t.lineBlockAt(f).top+h;let a=n-i;if(a<-ev){c-=a;o.add(u,u,r.Decoration.widget({widget:new eg(-a),block:true,side:-1}))}else if(a>ev){h+=a;s.add(f,f,r.Decoration.widget({widget:new eg(a),block:true,side:-1}))}}if(m>u+1e3&&u<d.from&&m>d.from&&f<p.from&&O>p.from){let e=Math.min(d.from-u,p.from-f);u+=e;f+=e;n--}else if(g){u=g.toA;f=g.toB}else break;while(a.value&&a.from<u){c-=a.value.spec.widget.height;a.next()}while(l.value&&l.from<f){h-=l.value.spec.widget.height;l.next()}}while(a.value){c-=a.value.spec.widget.height;a.next()}while(l.value){h-=l.value.spec.widget.height;l.next()}let g=e.contentHeight+c-(t.contentHeight+h);if(g<ev)o.add(e.state.doc.length,e.state.doc.length,r.Decoration.widget({widget:new eg(-g),block:true,side:1}));else if(g>ev)s.add(t.state.doc.length,t.state.doc.length,r.Decoration.widget({widget:new eg(g),block:true,side:1}));let m=o.finish(),O=s.finish();if(!ey(m,e.state.field(eO)))e.dispatch({effects:em.of(m)});if(!ey(O,t.state.field(eO)))t.dispatch({effects:em.of(O)})}const ew=n.StateEffect.define({map:(e,t)=>t.mapPos(e)});function ex(e){let t=e.state.facet(B);return t&&t.sibling?"a"==t.side?{a:e,b:t.sibling()}:{a:t.sibling(),b:e}:null}class eS extends r.WidgetType{constructor(e){super();this.lines=e}eq(e){return this.lines==e.lines}toDOM(e){let t=document.createElement("div");t.className="cm-collapsedLines";t.textContent=e.state.phrase("$ unchanged lines",this.lines);t.addEventListener("click",t=>{let r=e.posAtDOM(t.target);e.dispatch({effects:ew.of(r)});let{side:n,sibling:i}=e.state.facet(B);if(i)i().dispatch({effects:ew.of(e_(r,e.state.field(N),"a"==n))})});return t}ignoreEvent(e){return e instanceof MouseEvent}get estimatedHeight(){return 27}get type(){return"collapsed-unchanged-code"}}function e_(e,t,r){let n=0,i=0;for(let o=0;;o++){let s=o<t.length?t[o]:null;if(!s||(r?s.fromA:s.fromB)>=e)return i+(e-n);[n,i]=r?[s.toA,s.toB]:[s.toB,s.toA]}}const ek=n.StateField.define({create(e){return r.Decoration.none},update(e,t){e=e.map(t.changes);for(let r of t.effects)if(r.is(ew))e=e.update({filter:e=>e!=r.value});return e},provide:e=>r.EditorView.decorations.from(e)});function eQ({margin:e=3,minSize:t=4}){return ek.init(r=>eP(r,e,t))}function eP(e,t,i){let o=new n.RangeSetBuilder;let s="a"==e.facet(B).side;let a=e.field(N);let l=1;for(let n=0;;n++){let u=n<a.length?a[n]:null;let f=n?l+t:1;let c=u?e.doc.lineAt(s?u.fromA:u.fromB).number-1-t:e.doc.lines;let h=c-f+1;if(h>=i)o.add(e.doc.line(f).from,e.doc.line(c).to,r.Decoration.replace({widget:new eS(h),block:true}));if(!u)break;l=e.doc.lineAt(Math.min(e.doc.length,s?u.toA:u.toB)).number}return o.finish()}const eT=r.EditorView.styleModule.of(new i.StyleModule({".cm-mergeView":{overflowY:"auto"},".cm-mergeViewEditors":{display:"flex",alignItems:"stretch"},".cm-mergeViewEditor":{flexGrow:1,flexBasis:0,overflow:"hidden"},".cm-merge-revert":{width:"1.6em",flexGrow:0,flexShrink:0,position:"relative"},".cm-merge-revert button":{position:"absolute",display:"block",width:"100%",boxSizing:"border-box",textAlign:"center",background:"none",border:"none",font:"inherit",curs
11or:"pointer"}}));const eA=r.EditorView.baseTheme({".cm-mergeView & .cm-scroller, .cm-mergeView &":{height:"auto !important",overflowY:"visible !important"},"&.cm-merge-a .cm-changedLine, .cm-deletedChunk":{backgroundColor:"rgba(160, 128, 100, .08)"},"&.cm-merge-b .cm-changedLine, .cm-inlineChangedLine":{backgroundColor:"rgba(100, 160, 128, .08)"},"&light.cm-merge-a .cm-changedText, &light .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ee443366, #ee443366) bottom/100% 2px no-repeat"},"&dark.cm-merge-a .cm-changedText, &dark .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ffaa9966, #ffaa9966) bottom/100% 2px no-repeat"},"&light.cm-merge-b .cm-changedText":{background:"linear-gradient(#22bb22aa, #22bb22aa) bottom/100% 2px no-repeat"},"&dark.cm-merge-b .cm-changedText":{background:"linear-gradient(#88ff88aa, #88ff88aa) bottom/100% 2px no-repeat"},"&.cm-merge-b .cm-deletedText":{background:"#ff000033"},".cm-insertedLine, .cm-deletedLine, .cm-deletedLine del":{textDecoration:"none"},".cm-deletedChunk":{paddingLeft:"6px","& .cm-chunkButtons":{position:"absolute",insetInlineEnd:"5px"},"& button":{border:"none",cursor:"pointer",color:"white",margin:"0 2px",borderRadius:"3px","&[name=accept]":{background:"#2a2"},"&[name=reject]":{background:"#d43"}}},".cm-collapsedLines":{padding:"5px 5px 5px 10px",cursor:"pointer","&:before":{content:'"⦚"',marginInlineEnd:"7px"},"&:after":{content:'"⦚"',marginInlineStart:"7px"}},"&light .cm-collapsedLines":{color:"#444",background:"linear-gradient(to bottom, transparent 0, #f3f3f3 30%, #f3f3f3 70%, transparent 100%)"},"&dark .cm-collapsedLines":{color:"#ddd",background:"linear-gradient(to bottom, transparent 0, #222 30%, #222 70%, transparent 100%)"},".cm-changeGutter":{width:"3px",paddingLeft:"1px"},"&light.cm-merge-a .cm-changedLineGutter, &light .cm-deletedLineGutter":{background:"#e43"},"&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter":{background:"#fa9"},"&light.cm-merge-b .cm-changedLineGutter":{background:"#2b2"},"&dark.cm-merge-b .cm-changedLineGutter":{background:"#8f8"},".cm-inlineChangedLineGutter":{background:"#75d"}});const e$=new n.Compartment,ej=new n.Compartment;class eC{constructor(e){this.revertDOM=null;this.revertToA=false;this.revertToLeft=false;this.measuring=-1;this.diffConf=e.diffConfig||en;let t=[n.Prec.low(ei),eA,eT,eO,r.EditorView.updateListener.of(e=>{if(this.measuring<0&&(e.heightChanged||e.viewportChanged)&&!e.transactions.some(e=>e.effects.some(e=>e.is(em))))this.measure()})];let i=[B.of({side:"a",sibling:()=>this.b,highlightChanges:false!==e.highlightChanges,markGutter:false!==e.gutter})];if(false!==e.gutter)i.push(eo);let o=n.EditorState.create({doc:e.a.doc,selection:e.a.selection,extensions:[e.a.extensions||[],r.EditorView.editorAttributes.of({class:"cm-merge-a"}),ej.of(i),t]});let s=[B.of({side:"b",sibling:()=>this.a,highlightChanges:false!==e.highlightChanges,markGutter:false!==e.gutter})];if(false!==e.gutter)s.push(eo);let a=n.EditorState.create({doc:e.b.doc,selection:e.b.selection,extensions:[e.b.extensions||[],r.EditorView.editorAttributes.of({class:"cm-merge-b"}),ej.of(s),t]});this.chunks=G.build(o.doc,a.doc,this.diffConf);let l=[N.init(()=>this.chunks),e$.of(e.collapseUnchanged?eQ(e.collapseUnchanged):[])];o=o.update({effects:n.StateEffect.appendConfig.of(l)}).state;a=a.update({effects:n.StateEffect.appendConfig.of(l)}).state;this.dom=document.createElement("div");this.dom.className="cm-mergeView";this.editorDOM=this.dom.appendChild(document.createElement("div"));this.editorDOM.className="cm-mergeViewEditors";let u=e.orientation||"a-b";let f=document.createElement("div");f.className="cm-mergeViewEditor";let c=document.createElement("div");c.className="cm-mergeViewEditor";this.editorDOM.appendChild("a-b"==u?f:c);this.editorDOM.appendChild("a-b"==u?c:f);this.a=new r.EditorView({state:o,parent:f,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.a)});this.b=new r.EditorView({state:a,parent:c,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.b)});this.setupRevertControls(!!e.revertControls,"b-to-a"==e.revertControls,e.renderRevertControl);if(e.parent)e.parent.appendChild(this.dom);this.scheduleMeasure()}dispatch(e,t){if(e.some(e=>e.docChanged)){let r=e[e.length-1];let i=e.reduce((e,t)=>
11e.compose(t.changes),n.ChangeSet.empty(e[0].startState.doc.length));this.chunks=t==this.a?G.updateA(this.chunks,r.newDoc,this.b.state.doc,i,this.diffConf):G.updateB(this.chunks,this.a.state.doc,r.newDoc,i,this.diffConf);t.update([...e,r.state.update({effects:z.of(this.chunks)})]);let o=t==this.a?this.b:this.a;o.update([o.state.update({effects:z.of(this.chunks)})]);this.scheduleMeasure()}else t.update(e)}reconfigure(e){if("diffConfig"in e)this.diffConf=e.diffConfig;if("orientation"in e){let t="b-a"!=e.orientation;if(t!=(this.editorDOM.firstChild==this.a.dom.parentNode)){let e=this.a.dom.parentNode,r=this.b.dom.parentNode;e.remove();r.remove();this.editorDOM.insertBefore(t?e:r,this.editorDOM.firstChild);this.editorDOM.appendChild(t?r:e);this.revertToLeft=!this.revertToLeft;if(this.revertDOM)this.revertDOM.textContent=""}}if("revertControls"in e||"renderRevertControl"in e){let t=!!this.revertDOM,r=this.revertToA,n=this.renderRevert;if("revertControls"in e){t=!!e.revertControls;r="b-to-a"==e.revertControls}if("renderRevertControl"in e)n=e.renderRevertControl;this.setupRevertControls(t,r,n)}let t="highlightChanges"in e,r="gutter"in e,n="collapseUnchanged"in e;if(t||r||n){let i=[],o=[];if(t||r){let n=this.a.state.facet(B);let s=r?false!==e.gutter:n.markGutter;let a=t?false!==e.highlightChanges:n.highlightChanges;i.push(ej.reconfigure([B.of({side:"a",sibling:()=>this.b,highlightChanges:a,markGutter:s}),s?eo:[]]));o.push(ej.reconfigure([B.of({side:"b",sibling:()=>this.a,highlightChanges:a,markGutter:s}),s?eo:[]]))}if(n){let t=e$.reconfigure(e.collapseUnchanged?eQ(e.collapseUnchanged):[]);i.push(t);o.push(t)}this.a.dispatch({effects:i});this.b.dispatch({effects:o})}this.scheduleMeasure()}setupRevertControls(e,t,r){this.revertToA=t;this.revertToLeft=this.revertToA==(this.editorDOM.firstChild==this.a.dom.parentNode);this.renderRevert=r;if(!e&&this.revertDOM){this.revertDOM.remove();this.revertDOM=null}else if(e&&!this.revertDOM){this.revertDOM=this.editorDOM.insertBefore(document.createElement("div"),this.editorDOM.firstChild.nextSibling);this.revertDOM.addEventListener("mousedown",e=>this.revertClicked(e));this.revertDOM.className="cm-merge-revert"}else if(this.revertDOM)this.revertDOM.textContent=""}scheduleMeasure(){if(this.measuring<0){let e=this.dom.ownerDocument.defaultView||window;this.measuring=e.requestAnimationFrame(()=>{this.measuring=-1;this.measure()})}}measure(){eb(this.a,this.b,this.chunks);if(this.revertDOM)this.updateRevertButtons()}updateRevertButtons(){let e=this.revertDOM,t=e.firstChild;let r=this.a.viewport,n=this.b.viewport;for(let i=0;i<this.chunks.length;i++){let o=this.chunks[i];if(o.fromA>r.to||o.fromB>n.to)break;if(o.fromA<r.from||o.fromB<n.from)continue;let s=this.a.lineBlockAt(o.fromA).top+"px";while(t&&+t.dataset.chunk<i)t=eE(t);if(t&&t.dataset.chunk==String(i)){if(t.style.top!=s)t.style.top=s;t=t.nextSibling}else e.insertBefore(this.renderRevertButton(s,i),t)}while(t)t=eE(t)}renderRevertButton(e,t){let r;if(this.renderRevert)r=this.renderRevert();else{r=document.createElement("button");let e=this.a.state.phrase("Revert this chunk");r.setAttribute("aria-label",e);r.setAttribute("title",e);r.textContent=this.revertToLeft?"⇜":"⇝"}r.style.top=e;r.setAttribute("data-chunk",String(t));return r}revertClicked(e){let t=e.target,r;while(t&&t.parentNode!=this.revertDOM)t=t.parentNode;if(t&&(r=this.chunks[t.dataset.chunk])){let[t,n,i,o,s,a]=this.revertToA?[this.b,this.a,r.fromB,r.toB,r.fromA,r.toA]:[this.a,this.b,r.fromA,r.toA,r.fromB,r.toB];let l=t.state.sliceDoc(i,Math.max(i,o-1));if(i!=o&&a<=n.state.doc.length)l+=t.state.lineBreak;n.dispatch({changes:{from:s,to:Math.min(n.state.doc.length,a),insert:l},userEvent:"revert"});e.preventDefault()}}destroy(){this.a.destroy();this.b.destroy();if(this.measuring>-1)(this.dom.ownerDocument.defaultView||window).cancelAnimationFrame(this.measuring);this.dom.remove()}}function eE(e){let t=e.nextSibling;e.remove();return t}const eM=new class extends r.GutterMarker{constructor(){super(...arguments);this.elementClass="cm-deletedLineGutter"}};const eR=n.Prec.low(r.gutter({class:"cm-changeGutter",markers:e=>{var t;return(null==(t=e.plugin(ei))?void 0:t.gutter)||n.RangeSet.empty},widgetMarker:(e,t)=>t instanceof ez?eM:null}));function eD(e){var t;let i="string"==typeof e.original?n.Text.of(e.original.split(/\r?\n/)):e.original;let o=e.diffConfig||en;return[n.Prec.low(ei),eY,eA,r.EditorView.editorAttributes.of({class:"cm-merge-b"}),I.of((e,t)=>{let r=t.effects.find(e=>e.is(eL));if(r)e=G.updateA(e,r.value.doc,t.startState.doc,r.value.changes,o);if(t.docChanged)e=G.updateB(e,t.state.field(eX),t.newDoc,t.changes,o);return e}),B.of({highlightChanges:false!==e.highlightChanges,markGutter:false!==e.gutter,syntaxHighlightDeletions:false!==e.syntaxHighlightDeletions,syntaxHighlightDeletionsMaxLength:3e3,mergeControls:null!=(t=e.mergeControls)?t:true,overrideChunk:e.allowInlineDiffs?eJ:void 0,side:"b"}),eX.init(()=>i),false!==e.gutter?eR:[],e.collapseUnchanged?eQ(e.collapseUnchanged):[],N.init(e=>G.build(i,e.doc,o))]}
11const eL=n.StateEffect.define();function eZ(e,t){return eL.of({doc:t.apply(eq(e)),changes:t})}const eX=n.StateField.define({create:()=>n.Text.empty,update(e,t){for(let r of t.effects)if(r.is(eL))e=r.value.doc;return e}});function eq(e){return e.field(eX)}const eB=new WeakMap;class ez extends r.WidgetType{constructor(e){super();this.buildDOM=e;this.dom=null}eq(e){return this.dom==e.dom}toDOM(e){return this.dom||(this.dom=this.buildDOM(e))}}function eI(e,t,n){let i=eB.get(t.changes);if(i)return i;let a=r=>{let{highlightChanges:i,syntaxHighlightDeletions:a,syntaxHighlightDeletionsMaxLength:l,mergeControls:u}=e.facet(B);let f=document.createElement("div");f.className="cm-deletedChunk";if(u){let t=f.appendChild(document.createElement("div"));t.className="cm-chunkButtons";let n=e=>{e.preventDefault();eN(r,r.posAtDOM(f))};let i=e=>{e.preventDefault();eV(r,r.posAtDOM(f))};if("function"==typeof u){t.appendChild(u("accept",n));t.appendChild(u("reject",i))}else{let r=t.appendChild(document.createElement("button"));r.name="accept";r.textContent=e.phrase("Accept");r.onmousedown=n;let o=t.appendChild(document.createElement("button"));o.name="reject";o.textContent=e.phrase("Reject");o.onmousedown=i}}if(n||t.fromA>=t.toA)return f;let c=r.state.field(eX).sliceString(t.fromA,t.endA);let h=a&&e.facet(o.language);let d=O();let p=t.changes,g=0,m=false;function O(){let e=f.appendChild(document.createElement("div"));e.className="cm-deletedLine";return e.appendChild(document.createElement("del"))}function v(e,t,r){for(let n=e;n<t;){if("\n"==c.charAt(n)){if(!d.firstChild)d.appendChild(document.createElement("br"));d=O();n++;continue}let e=t,o=r+(m?" cm-deletedText":""),s=false;let a=c.indexOf("\n",n);if(a>-1&&a<t)e=a;if(i&&g<p.length){let t=Math.max(0,m?p[g].toA:p[g].fromA);if(t<=e){e=t;if(m)g++;s=true}}if(e>n){let t=document.createTextNode(c.slice(n,e));if(o){let e=d.appendChild(document.createElement("span"));e.className=o;e.appendChild(t)}else d.appendChild(t);n=e}if(s)m=!m}}if(h&&t.toA-t.fromA<=l){let t=h.parser.parse(c),r=0;s.highlightTree(t,{style:t=>o.highlightingFor(e,t)},(e,t,n)=>{if(e>r)v(r,e,"");v(e,t,n);r=t});v(r,c.length,"")}else v(0,c.length,"");if(!d.firstChild)d.appendChild(document.createElement("br"));return f};let l=r.Decoration.widget({block:true,side:-1,widget:new ez(a)});eB.set(t.changes,l);return l}function eN(e,t){let{state:r}=e,i=null!=t?t:r.selection.main.head;let o=e.state.field(N).find(e=>e.fromB<=i&&e.endB>=i);if(!o)return false;let s=e.state.sliceDoc(o.fromB,Math.max(o.fromB,o.toB-1));let a=e.state.field(eX);if(o.fromB!=o.toB&&o.toA<=a.length)s+=e.state.lineBreak;let l=n.ChangeSet.of({from:o.fromA,to:Math.min(a.length,o.toA),insert:s},a.length);e.dispatch({effects:eL.of({doc:l.apply(a),changes:l}),userEvent:"accept"});return true}function eV(e,t){let{state:r}=e,n=null!=t?t:r.selection.main.head;let i=r.field(N).find(e=>e.fromB<=n&&e.endB>=n);if(!i)return false;let o=r.field(eX);let s=o.sliceString(i.fromA,Math.max(i.fromA,i.toA-1));if(i.fromA!=i.toA&&i.toB<=r.doc.length)s+=r.lineBreak;e.dispatch({changes:{from:i.fromB,to:Math.min(r.doc.length,i.toB),insert:s},userEvent:"revert"});return true}function eW(e){let t=new n.RangeSetBuilder;for(let r of e.field(N)){let n=e.facet(B).overrideChunk&&eG(e,r);t.add(r.fromB,r.fromB,eI(e,r,!!n))}return t.finish()}const eY=n.StateField.define({create:e=>eW(e),update(e,t){return t.state.field(N,false)!=t.startState.field(N,false)?eW(t.state):e},provide:e=>r.EditorView.decorations.from(e)});const eU=new WeakMap;function eG(e,t){let n=eU.get(t);if(void 0!==n)return n;n=null;let i=e.field(eX),o=e.doc;let s=i.lineAt(t.endA).number-i.lineAt(t.fromA).number+1;let a=o.lineAt(t.endB).number-o.lineAt(t.fromB).number+1;i:if(s==a&&s<10){let e=[],o=0;let a=t.fromA,l=t.fromB;for(let n of t.changes){if(n.fromA<n.toA){o+=n.toA-n.fromA;let t=i.sliceString(a+n.fromA,a+n.toA);if(/\n/.test(t))break i;e.push(r.Decoration.widget({widget:new eF(t),side:-1}).range(l+n.fromB))}if(n.fromB<n.toB)e.push(eu.range(l+n.fromB,l+n.toB))}if(o<t.endA-t.fromA-2*s)n=e}eU.set(t,n);return n}class eF extends r.WidgetType{constructor(e){super();this.text=e}eq(e){return this.text==e.text}toDOM(e){let t=document.createElement("del");
11t.className="cm-deletedText";t.textContent=this.text;return t}}const eH=new class extends r.GutterMarker{constructor(){super(...arguments);this.elementClass="cm-inlineChangedLineGutter"}};const eK=r.Decoration.line({class:"cm-inlineChangedLine"});function eJ(e,t,r,n){let i=eG(e,t),o=0;if(!i)return false;for(let s=e.doc.lineAt(t.fromB);;){if(n)n.add(s.from,s.from,eH);r.add(s.from,s.from,eK);while(o<i.length&&i[o].to<=s.to){let e=i[o++];r.add(e.from,e.to,e.value)}if(s.to>=t.endB)break;s=e.doc.lineAt(s.to+1)}return true}t.Change=a;t.Chunk=G;t.MergeView=eC;t.acceptChunk=eN;t.diff=Z;t.getChunks=V;t.getOriginalDoc=eq;t.goToNextChunk=Y;t.goToPreviousChunk=U;t.mergeViewSiblings=ex;t.originalDocChangeEffect=eZ;t.presentableDiff=q;t.rejectChunk=eV;t.uncollapseUnchanged=ew;t.unifiedMergeView=eD;t.updateOriginalDoc=eL}}},"lang-html":{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/lang-html",version:"6.4.11",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
vendor: 7,744 bytes, line 11
11"index.cjs":function(e,t,r){"use strict";var n=e("@lezer/html");var i=e("@codemirror/lang-css");var o=e("@codemirror/lang-javascript");var s=e("@codemirror/view");var a=e("@codemirror/state");var l=e("@codemirror/language");const u=["_blank","_self","_top","_parent"];const f=["ascii","utf-8","utf-16","latin1","latin1"];const c=["get","post","put","delete"];const h=["application/x-www-form-urlencoded","multipart/form-data","text/plain"];const d=["true","false"];const p={};const g={a:{attrs:{href:null,ping:null,type:null,media:null,target:u,hreflang:null}},abbr:p,address:p,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:p,aside:p,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:p,base:{attrs:{href:null,target:u}},bdi:p,bdo:p,blockquote:{attrs:{cite:null}},body:p,br:p,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:h,formmethod:c,formnovalidate:["novalidate"],formtarget:u,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:p,center:p,cite:p,code:p,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:p,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:p,div:p,dl:p,dt:p,em:p,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:p,figure:p,footer:p,form:{attrs:{action:null,name:null,"accept-charset":f,autocomplete:["on","off"],enctype:h,method:c,novalidate:["novalidate"],target:u}},h1:p,h2:p,h3:p,h4:p,h5:p,h6:p,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:p,hgroup:p,hr:p,html:{attrs:{manifest:null}},i:p,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:h,formmethod:c,formnovalidate:["novalidate"],formtarget:u,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:p,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:p,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:p,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:f,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:p,noscript:p,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:p,param:{attrs:{name:null,value:null}},pre:p,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:p,rt:p,ruby:p,samp:p,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:f}},section:p,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:p,source:{attrs:{src:null,type:null,media:null}},span:p,strong:p,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:p,summary:p,sup:p,table:p,tbody:p,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:p,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:p,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:p,time:{attrs:{datetime:null}},title:p,tr:p,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:p,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:p};const m={accesskey:null,class:null,contenteditable:d,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:d,autocorrect:d,autocapitalize:d,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":d,"aria-autocomplete":["inline","list","both","none"],"aria-busy":d,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":d,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":d,"aria-hidden":d,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":d,"aria-multiselectable":d,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":d,"aria-relevant":null,"aria-required":d,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};const O="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".
11split(" ").map(e=>"on"+e);for(let e of O)m[e]=null;class v{constructor(e,t){this.tags={...g,...e};this.globalAttrs={...m,...t};this.allTags=Object.keys(this.tags);this.globalAttrNames=Object.keys(this.globalAttrs)}}v.default=new v;function y(e,t,r=e.length){if(!t)return"";let n=t.firstChild;let i=n&&n.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,r)):""}function b(e,t=false){for(;e;e=e.parent)if("Element"==e.name)if(!t)return e;else t=false;return null}function w(e,t,r){let n=r.tags[y(e,b(t))];return(null==n?void 0:n.children)||r.allTags}function x(e,t){let r=[];for(let n=b(t);n&&!n.type.isTop;n=b(n.parent)){let i=y(e,n);if(i&&"CloseTag"==n.lastChild.name)break;if(i&&r.indexOf(i)<0&&("EndTag"==t.name||t.from>=n.firstChild.to))r.push(i)}return r}const S=/^[:\-\.\w\u00b7-\uffff]*$/;function _(e,t,r,n,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">";let s=b(r,"StartTag"==r.name||"TagName"==r.name);return{from:n,to:i,options:w(e.doc,s,t).map(e=>({label:e,type:"type"})).concat(x(e.doc,r).map((e,t)=>({label:"/"+e,apply:"/"+e+o,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function k(e,t,r,n){let i=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:r,to:n,options:x(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t})),validFor:S}}function Q(e,t,r,n){let i=[],o=0;for(let n of w(e.doc,r,t))i.push({label:"<"+n,type:"type"});for(let t of x(e.doc,r))i.push({label:"</"+t+">",type:"type",boost:99-o++});return{from:n,to:n,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function P(e,t,r,n,i){let o=b(r),s=o?t.tags[y(e.doc,o)]:null;let a=s&&s.attrs?Object.keys(s.attrs):[];let l=s&&false===s.globalAttrs?a:a.length?a.concat(t.globalAttrNames):t.globalAttrNames;return{from:n,to:i,options:l.map(e=>({label:e,type:"property"})),validFor:S}}function T(e,t,r,n,i){var o;let s=null==(o=r.parent)?void 0:o.getChild("AttributeName");let a=[],l;if(s){let o=e.sliceDoc(s.from,s.to);let u=t.globalAttrs[o];if(!u){let n=b(r),i=n?t.tags[y(e.doc,n)]:null;u=(null==i?void 0:i.attrs)&&i.attrs[o]}if(u){let t=e.sliceDoc(n,i).toLowerCase(),r='"',o='"';if(/^['"]/.test(t)){l='"'==t[0]?/^[^"]*$/:/^[^']*$/;r="";o=e.sliceDoc(i,i+1)==t[0]?"":t[0];t=t.slice(1);n++}else l=/^[^\s<>='"]*$/;for(let e of u)a.push({label:e,apply:r+e+o,type:"constant"})}}return{from:n,to:i,options:a,validFor:l}}function A(e,t){let{state:r,pos:n}=t,i=l.syntaxTree(r).resolveInner(n,-1),o=i.resolve(n);for(let e=n,t;o==i&&(t=i.childBefore(e));){let r=t.lastChild;if(!r||!r.type.isError||r.from<r.to)break;o=i=t;e=r.from}if("TagName"==i.name)return i.parent&&/CloseTag$/.test(i.parent.name)?k(r,i,i.from,n):_(r,e,i,i.from,n);if("StartTag"==i.name||"IncompleteTag"==i.name)return _(r,e,i,n,n);if("StartCloseTag"==i.name||"IncompleteCloseTag"==i.name)return k(r,i,n,n);if("OpenTag"==i.name||"SelfClosingTag"==i.name||"AttributeName"==i.name)return P(r,e,i,"AttributeName"==i.name?i.from:n,n);if("Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name)return T(r,e,i,"Is"==i.name?n:i.from,n);else if(t.explicit&&("Element"==o.name||"Text"==o.name||"Document"==o.name))return Q(r,e,i,n);else return null}function $(e){return A(v.default,e)}function j(e){let{extraTags:t,extraGlobalAttributes:r}=e;let n=r||t?new v(t,r):v.default;return e=>A(n,e)}const C=o.javascriptLanguage.parser.configure({top:"SingleExpression"});const E=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:o.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:o.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:o.tsxLanguage.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:C},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:o.javascriptLanguage.parser},{tag:"style",attrs(e){return(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:i.cssLanguage.parser}];const M=[{name:"style",parser:i.cssLanguage.parser.configure({top:"Styles"})}].concat(O.map(e=>({name:e,parser:o.javascriptLanguage.parser})));const R=l.LRLanguage.define({name:"html",parser:n.parser.configure({props:[l.indentNodeProp.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);if(e.node.to<=e.pos+t[0].length)return e.continue();return e.lineIndent(e.node.from)+(t[2]?0:e.unit)}
11,"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,r;for(let r=e.node;;){let e=r.lastChild;if(!e||"Element"!=e.name||e.to!=r.to)break;t=r=e}if(t&&!((r=t.lastChild)&&("CloseTag"==r.name||"SelfClosingTag"==r.name)))return e.lineIndent(t.from)+e.unit;return null}}),l.foldNodeProp.add({Element(e){let t=e.firstChild,r=e.lastChild;if(!t||"OpenTag"!=t.name)return null;return{from:t.to,to:"CloseTag"==r.name?r.from:e.to}}}),l.bracketMatchingHandle.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}});const D=R.configure({wrap:n.configureNesting(E,M)});function L(e={}){let t="",r;if(false===e.matchClosingTags)t="noMatch";if(true===e.selfClosingTags)t=(t?t+" ":"")+"selfClosing";if(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)r=n.configureNesting((e.nestedLanguages||[]).concat(E),(e.nestedAttributes||[]).concat(M));let s=r?R.configure({wrap:r,dialect:t}):t?D.configure({dialect:t}):D;return new l.LanguageSupport(s,[D.data.of({autocomplete:j(e)}),false!==e.autoCloseTags?X:[],o.javascript().support,i.css().support])}const Z=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));const X=s.EditorView.inputHandler.of((e,t,r,n,i)=>{if(e.composing||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!D.isActiveAt(e.state,t,-1))return false;let o=i(),{state:s}=o;let u=s.changeByRange(e=>{var t,r,i;let o=s.doc.sliceString(e.from-1,e.to)==n;let{head:u}=e,f=l.syntaxTree(s).resolveInner(u,-1),c;if(o&&">"==n&&"EndTag"==f.name){let n=f.parent;if((null==(r=null==(t=n.parent)?void 0:t.lastChild)?void 0:r.name)!="CloseTag"&&(c=y(s.doc,n.parent,u))&&!Z.has(c)){let t=u+(">"===s.doc.sliceString(u,u+1)?1:0);let r=`</${c}>`;return{range:e,changes:{from:u,to:t,insert:r}}}}else if(o&&"/"==n&&"IncompleteCloseTag"==f.name){let e=f.parent;if(f.from==u-2&&(null==(i=e.lastChild)?void 0:i.name)!="CloseTag"&&(c=y(s.doc,e,u))&&!Z.has(c)){let e=u+(">"===s.doc.sliceString(u,u+1)?1:0);let t=`${c}>`;return{range:a.EditorSelection.cursor(u+t.length,-1),changes:{from:u,to:e,insert:t}}}}return{range:e}});if(u.changes.empty)return false;e.dispatch([o,s.update(u,{userEvent:"input.complete",scrollIntoView:true})]);return true});t.autoCloseTags=X;t.html=L;t.htmlCompletionSource=$;t.htmlCompletionSourceWith=j;t.htmlLanguage=D}}},"lang-css":{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/lang-css",version:"6.3.1",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";var r=e("@lezer/css");var n=e("@codemirror/language");var i=e("@lezer/common");let o=null;function s(){if(!o&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],r=new Set;for(let n in e)if("cssText"!=n&&"cssFloat"!=n){if("string"==typeof e[n]){if(/[A-Z]/.test(n))n=n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());if(!r.has(n)){t.push(n);r.add(n)}}}o=t.sort().map(e=>({type:"property",label:e,apply:e+": "}))}return o||[]}const a=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e}));const l=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","regi
11on","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e})));const u=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e}));const f=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supp
11orts","@view-transition"].map(e=>({type:"keyword",label:e}));const c=/^(\w[\w-]*|-\w[\w-]*|)$/,h=/^-(-[\w-]*)?$/;function d(e,t){var r;if("("==e.name||e.type.isError)e=e.parent||e;if("ArgList"!=e.name)return false;let n=null==(r=e.parent)?void 0:r.firstChild;if((null==n?void 0:n.name)!="Callee")return false;return"var"==t.sliceString(n.from,n.to)}const p=new i.NodeWeakMap;const g=["Declaration"];function m(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function O(e,t,r){if(t.to-t.from>4096){let n=p.get(t);if(n)return n;let o=[],s=new Set,a=t.cursor(i.IterMode.IncludeAnonymous);if(a.firstChild())do for(let t of O(e,a.node,r))if(!s.has(t.label)){s.add(t.label);o.push(t)}while(a.nextSibling());p.set(t,o);return o}{let n=[],i=new Set;t.cursor().iterate(t=>{var o;if(r(t)&&t.matchContext(g)&&(null==(o=t.node.nextSibling)?void 0:o.name)==":"){let r=e.sliceString(t.from,t.to);if(!i.has(r)){i.add(r);n.push({label:r,type:"variable"})}}});return n}}const v=e=>t=>{let{state:r,pos:i}=t,o=n.syntaxTree(r).resolveInner(i,-1);let p=o.type.isError&&o.from==o.to-1&&"-"==r.doc.sliceString(o.from,o.to);if("PropertyName"==o.name||(p||"TagName"==o.name)&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:s(),validFor:c};if("ValueName"==o.name)return{from:o.from,options:l,validFor:c};if("PseudoClassName"==o.name)return{from:o.from,options:a,validFor:c};if(e(o)||(t.explicit||p)&&d(o,r.doc))return{from:e(o)||p?o.from:i,options:O(r.doc,m(o),e),validFor:h};if("TagName"==o.name){for(let{parent:e}=o;e;e=e.parent)if("Block"==e.name)return{from:o.from,options:s(),validFor:c};return{from:o.from,options:u,validFor:c}}if("AtKeyword"==o.name)return{from:o.from,options:f,validFor:c};if(!t.explicit)return null;let g=o.resolve(i),v=g.childBefore(i);if(v&&":"==v.name&&"PseudoClassSelector"==g.name)return{from:i,options:a,validFor:c};if(v&&":"==v.name&&"Declaration"==g.name||"ArgList"==g.name)return{from:i,options:l,validFor:c};if("Block"==g.name||"Styles"==g.name)return{from:i,options:s(),validFor:c};return null};const y=v(e=>"VariableName"==e.name);const b=n.LRLanguage.define({name:"css",parser:r.parser.configure({props:[n.indentNodeProp.add({Declaration:n.continuedIndent()}),n.foldNodeProp.add({"Block KeyframeList":n.foldInside})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function w(){return new n.LanguageSupport(b,b.data.of({autocomplete:y}))}t.css=w;t.cssCompletionSource=y;t.cssLanguage=b;t.defineCSSCompletionSource=v}}},"lang-javascript":{
11"package.json":function(e,t,r){r.exports={name:"@codemirror/lang-javascript",version:"6.2.4",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t,r){"use strict";var n=e("@lezer/javascript");var i=e("@codemirror/language");var o=e("@codemirror/state");var s=e("@codemirror/view");var a=e("@codemirror/autocomplete");var l=e("@lezer/common");const u=[a.snippetCompletion("function ${name}(${params}) {\n	${}\n}",{label:"function",detail:"definition",type:"keyword"}),a.snippetCompletion("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n	${}\n}",{label:"for",detail:"loop",type:"keyword"}),a.snippetCompletion("for (let ${name} of ${collection}) {\n	${}\n}",{label:"for",detail:"of loop",type:"keyword"}),a.snippetCompletion("do {\n	${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),a.snippetCompletion("while (${}) {\n	${}\n}",{label:"while",detail:"loop",type:"keyword"}),a.snippetCompletion("try {\n	${}\n} catch (${error}) {\n	${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),a.snippetCompletion("if (${}) {\n	${}\n}",{label:"if",detail:"block",type:"keyword"}),a.snippetCompletion("if (${}) {\n	${}\n} else {\n	${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),a.snippetCompletion("class ${name} {\n	constructor(${params}) {\n		${}\n	}\n}",{label:"class",detail:"definition",type:"keyword"}),a.snippetCompletion('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),a.snippetCompletion('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})];const f=u.concat([a.snippetCompletion("interface ${name} {\n	${}\n}",{label:"interface",detail:"definition",type:"keyword"}),a.snippetCompletion("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),a.snippetCompletion("enum ${name} {\n	${}\n}",{label:"enum",detail:"definition",type:"keyword"})]);const c=new l.NodeWeakMap;const h=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function d(e){return(t,r)=>{let n=t.node.getChild("VariableDefinition");if(n)r(n,e);return true}}const p=["FunctionDeclaration"];const g={FunctionDeclaration:d("function"),ClassDeclaration:d("class"),ClassExpression:()=>true,EnumDeclaration:d("constant"),TypeAliasDeclaration:d("type"),NamespaceDeclaration:d("namespace"),VariableDefinition(e,t){if(!e.matchContext(p))t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function m(e,t){let r=c.get(t);if(r)return r;let n=[],i=true;function o(t,r){let i=e.sliceString(t.from,t.to);n.push({label:i,type:r})}t.cursor(l.IterMode.IncludeAnonymous).iterate(t=>{if(i)i=false;else if(t.name){let e=g[t.name];if(e&&e(t,o)||h.has(t.name))return false}else if(t.to-t.from>8192){for(let r of m(e,t.node))n.push(r);return false}});c.set(t,n);return n}const O=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/;const v=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function y(e){let t=i.syntaxTree(e.state).resolveInner(e.pos,-1);if(v.indexOf(t.name)>-1)return null;let r="VariableName"==t.name||t.to-t.from<20&&O.test(e.state.sliceDoc(t.from,t.to));if(!r&&!e.explicit)return null;let n=[];for(let r=t;r;r=r.parent)if(h.has(r.name))n=n.concat(m(e.state.doc,r));return{options:n,from:r?t.from:e.pos,validFor:O}}function b(e,t,r){var n;let i=[];for(;;){let o=t.firstChild,s;if((null==o?void 0:o.name)=="VariableName"){i.push(e(o));return{path:i.reverse(),name:r}}if((null==o?void 0:o.name)!="MemberExpression"||(null==(n=s=o.lastChild)?void 0:n.name)!="PropertyName")return null;i.push(e(s));t=o}}function w(e){let t=t=>e.state.doc.sliceString(t.from,t.to);let r=i.syntaxTree(e.state).resolveInner(e.pos,-1);if("PropertyName"==r.name)return b(t,r.parent,t(r));if(("."==r.name||"?."==r.name)&&"MemberExpression"==r.parent.name)return b(t,r.parent,"");if(v.indexOf(r.name)>-1)return null;if("VariableName"==r.name||r.to-r.from<20&&O.test(t(r)))return{path:[],name:t(r)};if("MemberExpression"==r.name)return b(t,r,"");else return e.explicit?{path:[],name:""}:null}function x(e,t){let r=[],n=new Set;for(let i=0;;i++){for(let o of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(o)||n.has(o))continue;n.add(o);let s;try{s=e[o]}catch(e){continue}r.push({label:o,type:"function"==typeof s?/^[A-Z]/.test(o)?"class":t?"function":"method":t?"variable":"property",boost:-i})}let o=Object.getPrototypeOf(e);if(!o)return r;e=o}}function S(e){let t=new Map;return r=>{let n=w(r);if(!n)return null;let i=e;for(let e of n.path){i=i[e];if(!i)return null}let o=t.get(i);if(!o)t.set(i,o=x(i,!n.path.length));return{from:r.pos-n.name.length,options:o,validFor:O}}}const _=i.LRLanguage.define({name:"javascript",parser:n.parser.configure({props:[i.indentNodeProp.add({IfStatement:i.continuedIndent({except:/^\s*({|else\b)/}),TryStatement:i.continuedIndent({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:i.flatIndent,SwitchBody:e=>{let t=e.textAfter,r=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(r?0:n?1:2)*e.unit},Block:i.delimitedIndent({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":i.continuedIndent({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)}
11,"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),i.foldNodeProp.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":i.foldInside,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}});const k={test:e=>/^JSX/.test(e.name),facet:i.defineLanguageFacet({commentTokens:{block:{open:"{/*",close:"*/}"}}})};const Q=_.configure({dialect:"ts"},"typescript");const P=_.configure({dialect:"jsx",props:[i.sublanguageProp.add(e=>e.isTop?[k]:void 0)]});const T=_.configure({dialect:"jsx ts",props:[i.sublanguageProp.add(e=>e.isTop?[k]:void 0)]},"typescript");let A=e=>({label:e,type:"keyword"});const $="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(A);const j=$.concat(["declare","implements","private","protected","public"].map(A));function C(e={}){let t=e.jsx?e.typescript?T:P:e.typescript?Q:_;let r=e.typescript?f.concat(j):u.concat($);return new i.LanguageSupport(t,[_.data.of({autocomplete:a.ifNotIn(v,a.completeFromList(r))}),_.data.of({autocomplete:y}),e.jsx?D:[]])}function E(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}function M(e,t,r=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,r));return""}const R="object"==typeof navigator&&/Android\b/.test(navigator.userAgent);const D=s.EditorView.inputHandler.of((e,t,r,n,s)=>{if((R?e.composing:e.compositionStarted)||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!_.isActiveAt(e.state,t,-1))return false;let a=s(),{state:l}=a;let u=l.changeByRange(e=>{var t;let{head:r}=e,s=i.syntaxTree(l).resolveInner(r-1,-1),a;if("JSXStartTag"==s.name)s=s.parent;if(l.doc.sliceString(r-1,r)!=n||"JSXAttributeValue"==s.name&&s.to>r);else if(">"==n&&"JSXFragmentTag"==s.name)return{range:e,changes:{from:r,insert:"</>"}};else if("/"==n&&"JSXStartCloseTag"==s.name){let e=s.parent,n=e.parent;if(n&&e.from==r-2&&((a=M(l.doc,n.firstChild,r))||(null==(t=n.firstChild)?void 0:t.name)=="JSXFragmentTag")){let e=`${a}>`;return{range:o.EditorSelection.cursor(r+e.length,-1),changes:{from:r,insert:e}}}}else if(">"==n){let t=E(s);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(l.doc.sliceString(r,r+2))&&(a=M(l.doc,t,r)))return{range:e,changes:{from:r,insert:`</${a}>`}}}return{range:e}});if(u.changes.empty)return false;e.dispatch([a,l.update(u,{userEvent:"input.complete",scrollIntoView:true})]);return true});function L(e,t){if(!t){t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:true,node:true,es6:true,es2015:true,es2017:true,es2020:true},rules:{}};
11e.getRules().forEach((e,r)=>{var n;if(null==(n=e.meta.docs)?void 0:n.recommended)t.rules[r]=2})}return r=>{let{state:n}=r,i=[];for(let{from:r,to:o}of _.findRegions(n)){let s=n.doc.lineAt(r),a={line:s.number-1,col:r-s.from,pos:r};for(let s of e.verify(n.sliceDoc(r,o),t))i.push(X(s,n.doc,a))}return i}}function Z(e,t,r,n){return r.line(e+n.line).from+t+(1==e?n.col-1:-1)}function X(e,t,r){let n=Z(e.line,e.column,t,r);let i={from:n,to:null!=e.endLine&&1!=e.endColumn?Z(e.endLine,e.endColumn,t,r):n,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:o}=e.fix,s=t[0]+r.pos-n,a=t[1]+r.pos-n;i.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+s,to:t+a,insert:o},scrollIntoView:true})}}]}return i}t.autoCloseTags=D;t.completionPath=w;t.esLint=L;t.javascript=C;t.javascriptLanguage=_;t.jsxLanguage=P;t.localCompletionSource=y;t.scopeCompletionSource=S;t.snippets=u;t.tsxLanguage=T;t.typescriptLanguage=Q;t.typescriptSnippets=f}}}},"@marijn":{"find-cluster-break":{
11"package.json":function(e,t,r){r.exports={name:"@marijn/find-cluster-break",version:"1.0.2",main:"src/index.js"}},src:{
11"index.js":function(e,t,r){r.export({isExtendingChar:function(){return o},findClusterBreak:function(){return l}});let n=[],i=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,r=0;t<e.length;t++)(t%2?i:n).push(r+=e[t])})();function o(e){if(e<768)return false;for(let t=0,r=n.length;;){let o=t+r>>1;if(e<n[o])r=o;else{if(!(e>=i[o]))return true;t=o+1}if(t==r)return false}}function s(e){return e>=127462&&e<=127487}const a=8205;function l(e,t,r=true,n=true){return(r?u:f)(e,t,n)}function u(e,t,r){if(t==e.length)return t;if(t&&h(e.charCodeAt(t))&&d(e.charCodeAt(t-1)))t--;let n=c(e,t);t+=p(n);while(t<e.length){let i=c(e,t);if(n==a||i==a||r&&o(i)){t+=p(i);n=i}else if(s(i)){let r=0,n=t-2;while(n>=0&&s(c(e,n))){r++;n-=2}if(r%2==0)break;t+=2}else break}return t}function f(e,t,r){while(t>0){let n=u(e,t-2,r);if(n<t)return n;t--}return 0}function c(e,t){let r=e.charCodeAt(t);if(!d(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);if(!h(n))return r;return(r-55296<<10)+(n-56320)+65536}function h(e){return e>=56320&&e<57344}function d(e){return e>=55296&&e<56320}function p(e){return e<65536?1:2}}}}},"style-mod":{
11"package.json":function(e,t,r){r.exports={name:"style-mod",version:"4.1.3",main:"dist/style-mod.cjs",module:"src/style-mod.js"}},dist:{
11"style-mod.cjs":function(e,t,r){var n="ͼ";var i="undefined"==typeof Symbol?"__"+n:Symbol.for(n);var o="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet");var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};var a=t.StyleModule=function(e,t){this.rules=[];var r=t||{};var n=r.finish;function i(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function o(e,t,r,s){var a=[],l=/^@(\w+)\b/.exec(e[0]),u=l&&"keyframes"==l[1];if(l&&null==t)return r.push(e[0]+";");for(var f in t){var c=t[f];if(/&/.test(f))o(f.split(/,\s*/).map(function(t){return e.map(function(e){return t.replace(/&/,e)})}).reduce(function(e,t){return e.concat(t)}),c,r);else if(c&&"object"==typeof c){if(!l)throw new RangeError("The value of a property ("+f+") should be a primitive value.");o(i(f),c,a,u)}else if(null!=c)a.push(f.replace(/_.*/,"").replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})+": "+c+";")}if(a.length||u)r.push((n&&!l&&!s?e.map(n):e).join(", ")+" {"+a.join(" ")+"}")}for(var s in e)o(i(s),e[s],this.rules)};a.prototype.getRules=function(){return this.rules.join("\n")};a.newName=function(){var e=s[i]||1;s[i]=e+1;return n+e.toString(36)};a.mount=function(e,t,r){var n=e[o],i=r&&r.nonce;if(n){if(i)n.setNonce(i)}else n=new u(e,i);n.mount(Array.isArray(t)?t:[t],e)};var l=new Map;var u=function(e,t){var r=e.ownerDocument||e,n=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){var i=l.get(r);if(i)return e[o]=i;this.sheet=new n.CSSStyleSheet;l.set(r,this)}else{this.styleTag=r.createElement("style");if(t)this.styleTag.setAttribute("nonce",t)}this.modules=[];e[o]=this};u.prototype.mount=function(e,t){var r=this.sheet;var n=0,i=0;for(var o=0;o<e.length;o++){var s=e[o],a=this.modules.indexOf(s);if(a<i&&a>-1){this.modules.splice(a,1);i--;a=-1}if(-1==a){this.modules.splice(i++,0,s);if(r)for(var l=0;l<s.rules.length;l++)r.insertRule(s.rules[l],n++)}else{while(i<a)n+=this.modules[i++].rules.length;n+=s.rules.length;i++}}if(r){if(t.adoptedStyleSheets.indexOf(this.sheet)<0)t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets)}else{var u="";for(var f=0;f<this.modules.length;f++)u+=this.modules[f].getRules()+"\n";this.styleTag.textContent=u;var c=t.head||t;if(this.styleTag.parentNode!=c)c.insertBefore(this.styleTag,c.firstChild)}};u.prototype.setNonce=function(e){if(this.styleTag&&this.styleTag.getAttribute("nonce")!=e)this.styleTag.setAttribute("nonce",e)}}}},"w3c-keyname":{
11"package.json":function(e,t,r){r.exports={name:"w3c-keyname",version:"2.2.8",main:"index.cjs",module:"index.js"}},
11"index.cjs":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"};var n={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'};var i="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);var o="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var s=0;s<10;s++)r[48+s]=r[96+s]=String(s);for(var s=1;s<=24;s++)r[s+111]="F"+s;for(var s=65;s<=90;s++){r[s]=String.fromCharCode(s+32);n[s]=String.fromCharCode(s)}for(var a in r)if(!n.hasOwnProperty(a))n[a]=r[a];function l(e){var t=i&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key;var s=!t&&e.key||(e.shiftKey?n:r)[e.keyCode]||e.key||"Unidentified";if("Esc"==s)s="Escape";if("Del"==s)s="Delete";if("Left"==s)s="ArrowLeft";if("Up"==s)s="ArrowUp";if("Right"==s)s="ArrowRight";if("Down"==s)s="ArrowDown";return s}t.base=r;t.keyName=l;t.shift=n}},crelt:{
11"package.json":function(e,t,r){r.exports={name:"crelt",version:"1.0.6",main:"dist/index.cjs",module:"index.js"}},dist:{
11"index.cjs":function(e,t,r){"use strict";function n(){var e=arguments[0];if("string"==typeof e)e=document.createElement(e);var t=1,r=arguments[1];if(r&&"object"==typeof r&&null==r.nodeType&&!Array.isArray(r)){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var o=r[n];if("string"==typeof o)e.setAttribute(n,o);else if(null!=o)e[n]=o}t++}for(;t<arguments.length;t++)i(e,arguments[t]);return e}function i(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else if(Array.isArray(t))for(var r=0;r<t.length;r++)i(e,t[r]);else throw new RangeError("Unsupported child node: "+t)}r.exports=n}}},"@lezer":{common:{
11"package.json":function(e,t,r){r.exports={name:"@lezer/common",version:"1.5.1",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";const r=1024;let n=0;class i{constructor(e,t){this.from=e;this.to=t}}class o{constructor(e={}){this.id=n++;this.perNode=!!e.perNode;this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")});this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");if("function"!=typeof e)e=l.match(e);return t=>{let r=e(t);return void 0===r?null:[this,r]}}}o.closedBy=new o({deserialize:e=>e.split(" ")});o.openedBy=new o({deserialize:e=>e.split(" ")});o.group=new o({deserialize:e=>e.split(" ")});o.isolate=new o({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});o.contextHash=new o({perNode:true});o.lookAhead=new o({perNode:true});o.mounted=new o({perNode:true});class s{constructor(e,t,r,n=false){this.tree=e;this.overlay=t;this.parser=r;this.bracketed=n}static get(e){return e&&e.props&&e.props[o.mounted.id]}}const a=Object.create(null);class l{constructor(e,t,r,n=0){this.name=e;this.props=t;this.id=r;this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):a;let r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0);let n=new l(e.name||"",t,e.id,r);if(e.props)for(let r of e.props){if(!Array.isArray(r))r=r(n);if(r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return true;let t=this.prop(o.group);return t?t.indexOf(e)>-1:false}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(o.group),n=-1;n<(r?r.length:0);n++){let i=t[n<0?e.name:r[n]];if(i)return i}}}}l.none=new l("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);if(e){if(!n)n=Object.assign({},r.props);let t=e[1],i=e[0];if(i.combine&&i.id in n)t=i.combine(n[i.id],t);n[i.id]=t}}t.push(n?new l(r.name,n,r.id,r.flags):r)}return new u(t)}}const f=new WeakMap,c=new WeakMap;t.IterMode=void 0;(function(e){e[e["ExcludeBuffers"]=1]="ExcludeBuffers";e[e["IncludeAnonymous"]=2]="IncludeAnonymous";e[e["IgnoreMounts"]=4]="IgnoreMounts";e[e["IgnoreOverlays"]=8]="IgnoreOverlays";e[e["EnterBracketed"]=16]="EnterBracketed"})(t.IterMode||(t.IterMode={}));class h{constructor(e,t,r,n,i){this.type=e;this.children=t;this.positions=r;this.length=n;this.props=null;if(i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=s.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let r=e.toString();if(r){if(t)t+=",";t+=r}}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Q(this.topNode,e)}cursorAt(e,t=0,r=0){let n=f.get(this)||this.topNode;let i=new Q(n);i.moveTo(e,t);f.set(this,i._tree);return i}get topNode(){return new v(this,0,0,null)}resolve(e,t=0){let r=m(f.get(this)||this.topNode,e,t,false);f.set(this,r);return r}resolveInner(e,t=0){let r=m(c.get(this)||this.topNode,e,t,true);c.set(this,r);return r}resolveStack(e,t=0){return k(this,e,t)}iterate(e){let{enter:r,leave:n,from:i=0,to:o=this.length}=e;let s=e.mode||0,a=(s&t.IterMode.IncludeAnonymous)>0;for(let e=this.cursor(s|t.IterMode.IncludeAnonymous);;){let t=false;if(e.from<=o&&e.to>=i&&(!a&&e.type.isAnonymous||false!==r(e))){if(e.firstChild())continue;t=true}for(;;){if(t&&n&&(a||!e.type.isAnonymous))n(e);if(e.nextSibling())break;if(!e.parent())return;t=true}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];
11if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:j(l.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,r)=>new h(this.type,e,t,r,this.propValues),e.makeTree||((e,t,r)=>new h(l.none,e,t,r)))}static build(e){return T(e)}}h.empty=new h(l.none,[],[],0);class d{constructor(e,t){this.buffer=e;this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new d(this.buffer,this.index)}}class p{constructor(e,t,r){this.buffer=e;this.length=t;this.set=r}get type(){return l.none}toString(){let e=[];for(let t=0;t<this.buffer.length;){e.push(this.childString(t));t=this.buffer[t+3]}return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3];let n=this.set.types[t],i=n.name;if(/\W/.test(i)&&!n.isError)i=JSON.stringify(i);e+=4;if(r==e)return i;let o=[];while(e<r){o.push(this.childString(e));e=this.buffer[e+3]}return i+"("+o.join(",")+")"}findChild(e,t,r,n,i){let{buffer:o}=this,s=-1;for(let a=e;a!=t;a=o[a+3])if(g(i,n,o[a+1],o[a+2])){s=a;if(r>0)break}return s}slice(e,t,r){let n=this.buffer;let i=new Uint16Array(t-e),o=0;for(let s=e,a=0;s<t;){i[a++]=n[s++];i[a++]=n[s++]-r;let t=i[a++]=n[s++]-r;i[a++]=n[s++]-e;o=Math.max(o,t)}return new p(i,o,this.set)}}function g(e,t,r,n){switch(e){case -2:return r<t;case -1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return true}}function m(e,r,n,i){var o;while(e.from==e.to||(n<1?e.from>=r:e.from>r)||(n>-1?e.to<=r:e.to<r)){let t=!i&&e instanceof v&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=i?0:t.IterMode.IgnoreOverlays;if(i){for(let t=e,i=t.parent;i;t=i,i=t.parent)if(t instanceof v&&t.index<0&&(null==(o=i.enter(r,n,s))?void 0:o.from)!=t.from)e=i}for(;;){let t=e.enter(r,n,s);if(!t)return e;e=t}}class O{cursor(e=0){return new Q(this,e)}getChild(e,t=null,r=null){let n=y(this,e,t,r);return n.length?n[0]:null}getChildren(e,t=null,r=null){return y(this,e,t,r)}resolve(e,t=0){return m(this,e,t,false)}resolveInner(e,t=0){return m(this,e,t,true)}matchContext(e){return b(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;while(t){let e=t.lastChild;if(!e||e.to!=t.to)break;if(e.type.isError&&e.from==e.to){r=t;t=e.prevSibling}else t=e}return r}get node(){return this}get next(){return this.parent}}class v extends O{constructor(e,t,r,n){super();this._tree=e;this.from=t;this.index=r;this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,r,n,i,o=0){for(let a=this;;){for(let{children:l,positions:u}=a._tree,f=r>0?l.length:-1;e!=f;e+=r){let f=l[e],c=u[e]+a.from,d;if(o&t.IterMode.EnterBracketed&&f instanceof h&&(d=s.get(f))&&!d.overlay&&d.bracketed&&n>=c&&n<=c+f.length||g(i,n,c,c+f.length)){if(f instanceof p){if(o&t.IterMode.ExcludeBuffers)continue;let s=f.findChild(0,f.buffer.length,r,n-c,i);if(s>-1)return new x(new w(a,f,e,c),null,s)}else if(o&t.IterMode.IncludeAnonymous||!f.type.isAnonymous||P(f)){let l;if(!(o&t.IterMode.IgnoreMounts)&&(l=s.get(f))&&!l.overlay)return new v(l.tree,c,e,a);let u=new v(f,c,e,a);return o&t.IterMode.IncludeAnonymous||!u.type.isAnonymous?u:u.nextChild(r<0?f.children.length-1:0,r,n,i,o)}}}if(o&t.IterMode.IncludeAnonymous||!a.type.isAnonymous)return null;e=a.index>=0?a.index+r:r<0?-1:a._parent._tree.children.length;a=a._parent;if(!a)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,r,n=0){let i;if(!(n&t.IterMode.IgnoreOverlays)&&(i=s.get(this._tree))&&i.overlay){let o=e-this.from,s=n&t.IterMode.EnterBracketed&&i.bracketed;for(let{from:e,to:t}of i.overlay)if((r>0||s?e<=o:e<o)&&(r<0||s?t>=o:t>o))return new v(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,r,n)}nextSignificantParent(){let e=this;while(e.type.isAnonymous&&e._parent)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function y(e,t,r,n){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=r)for(let e=false;!e;){e=i.type.is(r);if(!i.nextSibling())return o}for(;;){if(null!=n&&i.type.is(n))return o;if(i.type.is(t))o.push(i.node);
11if(!i.nextSibling())return null==n?o:[]}}function b(e,t,r=t.length-1){for(let n=e;r>=0;n=n.parent){if(!n)return false;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return false;r--}}return true}class w{constructor(e,t,r,n){this.parent=e;this.buffer=t;this.index=r;this.start=n}}class x extends O{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super();this.context=e;this._parent=t;this.index=r;this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context;let i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return i<0?null:new x(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,r,n=0){if(n&t.IterMode.ExcludeBuffers)return null;let{buffer:i}=this.context;let o=i.findChild(this.index+4,i.buffer[this.index+3],r>0?1:-1,e-this.context.start,r);return o<0?null:new x(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context;let t=e.buffer[this.index+3];if(t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length))return new x(this.context,this._parent,t);return this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context;let t=this._parent?this._parent.index+4:0;if(this.index==t)return this.externalSibling(-1);return new x(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[];let{buffer:r}=this.context;let n=this.index+4,i=r.buffer[this.index+3];if(i>n){let o=r.buffer[this.index+1];e.push(r.slice(n,i,o));t.push(0)}return new h(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function S(e){if(!e.length)return null;let t=0,r=e[0];for(let n=1;n<e.length;n++){let i=e[n];if(i.from>r.from||i.to<r.to){r=i;t=n}}let n=r instanceof v&&r.index<0?null:r.parent;let i=e.slice();if(n)i[t]=n;else i.splice(t,1);return new _(i,r)}class _{constructor(e,t){this.heads=e;this.node=t}get next(){return S(this.heads)}}function k(e,t,r){let n=e.resolveInner(t,r),i=null;for(let e=n instanceof v?n:n.context.parent;e;e=e.parent)if(e.index<0){let o=e.parent;(i||(i=[n])).push(o.resolve(t,r));e=o}else{let o=s.get(e.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let s=new v(o.tree,o.overlay[0].from+e.from,-1,e);(i||(i=[n])).push(m(s,t,r,false))}}return i?S(i):n}class Q{get name(){return this.type.name}constructor(e,r=0){this.buffer=null;this.stack=[];this.index=0;this.bufferNode=null;this.mode=r&~t.IterMode.EnterBracketed;if(e instanceof v)this.yieldNode(e);else{this._tree=e.context.parent;this.buffer=e.context;
11for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e;this.yieldBuf(e.index)}}yieldNode(e){if(!e)return false;this._tree=e;this.type=e.type;this.from=e.from;this.to=e.to;return true}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;this.type=t||n.set.types[n.buffer[e]];this.from=r+n.buffer[e+1];this.to=r+n.buffer[e+2];return true}yield(e){if(!e)return false;if(e instanceof v){this.buffer=null;return this.yieldNode(e)}this.buffer=e.context;return this.yieldBuf(e.index,e.type)}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer;let i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);if(i<0)return false;this.stack.push(this.index);return this.yieldBuf(i)}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,r,n=this.mode){if(!this.buffer)return this.yield(this._tree.enter(e,r,n));return n&t.IterMode.ExcludeBuffers?false:this.enterChild(1,e,r)}parent(){if(!this.buffer)return this.yieldNode(this.mode&t.IterMode.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&t.IterMode.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();this.buffer=null;return this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):false;let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):false}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let r,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return false}else for(let e=0;e<this.index;e++)if(i.buffer.buffer[e+3]<this.index)return false;({index:r,parent:n}=i)}else({index:r,_parent:n}=this._tree);for(;n;{index:r,_parent:n}=n)if(r>-1)for(let i=r+e,o=e<0?-1:n._tree.children.length;i!=o;i+=e){let e=n._tree.children[i];if(this.mode&t.IterMode.IncludeAnonymous||e instanceof p||!e.type.isAnonymous||P(e))return false}return true}move(e,t){if(t&&this.enterChild(e,0,4))return true;for(;;){if(this.sibling(e))return true;if(this.atLastNode(e)||!this.parent())return false}}next(e=true){return this.move(1,e)}prev(e=true){return this.move(-1,e)}moveTo(e,t=0){while(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))if(!this.parent())break;while(this.enterChild(1,e,t));return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)o:for(let n=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==n){if(n==this.index)return o;t=o;r=i+1;break o}n=this.stack[--i]}for(let e=r;e<this.stack.length;e++)t=new x(this.buffer,t,this.stack[e]);return this.bufferNode=new x(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let n=false;if(this.type.isAnonymous||false!==e(this)){if(this.firstChild()){r++;continue}if(!this.type.isAnonymous)n=true}for(;;){if(n&&t)t(this);n=this.type.isAnonymous;if(!r)return;if(this.nextSibling())break;this.parent();r--;n=true}}}matchContext(e){if(!this.buffer)return b(this.node.parent,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let n=e.length-1,i=this.stack.length-1;n>=0;i--){if(i<0)return b(this._tree,e,n);let o=r[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[n]&&e[n]!=o.name)return false;n--}}return true}}function P(e){return e.children.some(e=>e instanceof p||!e.type.isAnonymous||P(e))}function T(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:s=r,reused:a=[],minRepeatType:l=i.types.length}=e;let u=Array.isArray(n)?new d(n,n.length):n;let f=i.types;let c=0,g=0;function m(e,t,r,n,o,h){let{id:d,start:S,end:_,size:k}=u;let Q=g,P=c;if(k<0){u.next();if(-1==k){let t=a[d];r.push(t);n.push(S-e);return}if(-3==k){c=d;return}if(-4==k){g=d;return}else throw new RangeError(`Unrecognized record size: ${k}`)}let T=f[d],A,$;let C=S-e;if(_-S<=s&&($=w(u.pos-t,o))){let t=new Uint16Array($.size-$.skip);let r=u.pos-$.size,n=t.length;while(u.pos>r)n=x($.start,t,n);
11A=new p(t,_-$.start,i);C=$.start-e}else{let e=u.pos-k;u.next();let t=[],r=[];let n=d>=l?d:-1;let i=0,o=_;while(u.pos>e)if(n>=0&&u.id==n&&u.size>=0){if(u.end<=o-s){y(t,r,S,i,u.end,o,n,Q,P);i=t.length;o=u.end}u.next()}else if(h>2500)O(S,e,t,r);else m(S,e,t,r,n,h+1);if(n>=0&&i>0&&i<t.length)y(t,r,S,i,S,o,n,Q,P);t.reverse();r.reverse();if(n>-1&&i>0){let e=v(T,P);A=j(T,t,r,0,t.length,0,_-S,e,e)}else A=b(T,t,r,_-S,Q-_,P)}r.push(A);n.push(C)}function O(e,t,r,n){let o=[];let a=0,l=-1;while(u.pos>t){let{id:e,start:t,end:r,size:n}=u;if(n>4)u.next();else if(l>-1&&t<l)break;else{if(l<0)l=r-s;o.push(e,t,r);a++;u.next()}}if(a){let t=new Uint16Array(4*a);let s=o[o.length-2];for(let e=o.length-3,r=0;e>=0;e-=3){t[r++]=o[e];t[r++]=o[e+1]-s;t[r++]=o[e+2]-s;t[r++]=r}r.push(new p(t,o[2]-s,i));n.push(s-e)}}function v(e,t){return(r,n,i)=>{let s=0,a=r.length-1,l,u;if(a>=0&&(l=r[a])instanceof h){if(!a&&l.type==e&&l.length==i)return l;if(u=l.prop(o.lookAhead))s=n[a]+l.length+u}return b(e,r,n,i,s,t)}}function y(e,t,r,n,o,s,a,l,u){let f=[],c=[];while(e.length>n){f.push(e.pop());c.push(t.pop()+r-o)}e.push(b(i.types[a],f,c,s-o,l-s,u));t.push(o-r)}function b(e,t,r,n,i,s,a){if(s){let e=[o.contextHash,s];a=a?[e].concat(a):[e]}if(i>25){let e=[o.lookAhead,i];a=a?[e].concat(a):[e]}return new h(e,t,r,n,a)}function w(e,t){let r=u.fork();let n=0,i=0,o=0,a=r.end-s;let f={size:0,start:0,skip:0};o:for(let s=r.pos-e;r.pos>s;){let e=r.size;if(r.id==t&&e>=0){f.size=n;f.start=i;f.skip=o;o+=4;n+=4;r.next();continue}let u=r.pos-e;if(e<0||u<s||r.start<a)break;let c=r.id>=l?4:0;let h=r.start;r.next();while(r.pos>u){if(r.size<0)if(-3==r.size||-4==r.size)c+=4;else break o;else if(r.id>=l)c+=4;r.next()}i=h;n+=e;o+=c}if(t<0||n==e){f.size=n;f.start=i;f.skip=o}return f.size>4?f:void 0}function x(e,t,r){let{id:n,start:i,end:o,size:s}=u;u.next();if(s>=0&&n<l){let a=r;if(s>4){let n=u.pos-(s-4);while(u.pos>n)r=x(e,t,r)}t[--r]=a;t[--r]=o-e;t[--r]=i-e;t[--r]=n}else if(-3==s)c=n;else if(-4==s)g=n;return r}let S=[],_=[];while(u.pos>0)m(e.start||0,e.bufferStart||0,S,_,-1,0);let k=null!=(t=e.length)?t:S.length?_[0]+S[0].length:0;return new h(f[e.topID],S.reverse(),_.reverse(),k)}const A=new WeakMap;function $(e,t){if(!e.isAnonymous||t instanceof p||t.type!=e)return 1;let r=A.get(t);if(null==r){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof h)){r=1;break}r+=$(e,n)}A.set(t,r)}return r}function j(e,t,r,n,i,o,s,a,l){let u=0;for(let r=n;r<i;r++)u+=$(e,t[r]);let f=Math.ceil(1.5*u/8);let c=[],h=[];function d(t,r,n,i,s){for(let a=n;a<i;){let n=a,u=r[a],p=$(e,t[a]);a++;for(;a<i;a++){let r=$(e,t[a]);if(p+r>=f)break;p+=r}if(a==n+1){if(p>f){let e=t[n];d(e.children,e.positions,0,e.children.length,r[n]+s);continue}c.push(t[n])}else{let i=r[a-1]+t[a-1].length-u;c.push(j(e,t,r,n,a,u,i,null,l))}h.push(u+s-o)}}d(t,r,n,i,0);return(a||l)(c,h,s)}class C{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);if(!n)this.map.set(e,n=new Map);n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){if(e instanceof x)this.setBuffer(e.context.buffer,e.index,t);else if(e instanceof v)this.map.set(e.tree,t)}get(e){return e instanceof x?this.getBuffer(e.context.buffer,e.index):e instanceof v?this.map.get(e.tree):void 0}cursorSet(e,t){if(e.buffer)this.setBuffer(e.buffer.buffer,e.index,t);else this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class E{constructor(e,t,r,n,i=false,o=false){this.from=e;this.to=t;this.tree=r;this.offset=n;this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=false){let n=[new E(0,e.length,e,0,false,r)];for(let r of t)if(r.to>e.length)n.push(r);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[];let i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let u=s<t.length?t[s]:null;let f=u?u.fromA:1e9;if(f-a>=r)while(o&&o.from<f){let t=o;if(a>=t.from||f<=t.to||l){let e=Math.max(t.from,a)-l,r=Math.min(t.to,f)-l;t=e>=r?null:new E(e,r,t.tree,t.offset+l,s>0,!!u)}if(t)n.push(t);if(o.to>f)break;o=i<e.length?e[i++]:null}if(!u)break;a=u.toA;l=u.toA-u.toB}return n}}class M{startParse(e,t,r){if("string"==typeof e)e=new R(e);r=r?r.length?r.map(e=>new i(e.from,e.to)):[new i(0,0)]:[new i(0,e.length)];return this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class R{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return false}read(e,t){return this.string.slice(e,t)}}function D(e){return(t,r,n,i)=>new B(t,e,r,n,i)}class L{constructor(e,t,r,n,i,o){this.parser=e;this.parse=t;this.overlay=r;this.bracketed=n;this.target=i;this.from=o}}function Z(e){if(!e.length||e.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class X{constructor(e,t,r,n,i,o,s,a){this.parser=e;this.predicate=t;this.mounts=r;this.index=n;this.start=i;this.bracketed=o;this.target=s;this.prev=a;this.depth=0;this.ranges=[]}}
11const q=new o({perNode:true});class B{constructor(e,t,r,n,i){this.nest=t;this.input=r;this.fragments=n;this.ranges=i;this.inner=[];this.innerDone=0;this.baseTree=null;this.stoppedAt=null;this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;this.baseParse=null;this.baseTree=e;this.startInner();if(null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;if(null!=this.stoppedAt)e=new h(e.type,e.children,e.positions,e.length,e.propValues.concat([[q,this.stoppedAt]]));return e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[o.mounted.id]=new s(t,e.overlay,e.parser,e.bracketed);e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)if(this.inner[t].from<e)e=Math.min(e,this.inner[t].parse.parsedPos);return e}stopAt(e){this.stoppedAt=e;if(this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new W(this.fragments);let r=null;let n=null;let o=new Q(new v(this.baseTree,this.ranges[0].from,0,null),t.IterMode.IncludeAnonymous|t.IterMode.IgnoreMounts);o:for(let t,s;;){let a=true,l;if(null!=this.stoppedAt&&o.from>=this.stoppedAt)a=false;else if(e.hasNode(o)){if(r){let e=r.mounts.find(e=>e.frag.from<=o.from&&e.frag.to>=o.to&&e.mount.overlay);if(e)for(let t of e.mount.overlay){let n=t.from+e.pos,i=t.to+e.pos;if(n>=o.from&&i<=o.to&&!r.ranges.some(e=>e.from<i&&e.to>n))r.ranges.push({from:n,to:i})}}a=false}else if(n&&(s=z(n.ranges,o.from,o.to)))a=2!=s;else if(!o.type.isAnonymous&&(t=this.nest(o,this.input))&&(o.from<o.to||!t.overlay)){if(!o.tree){N(o);if(r)r.depth++;if(n)n.depth++}let s=e.findMounts(o.from,t.parser);if("function"==typeof t.overlay)r=new X(t.parser,t.overlay,s,this.inner.length,o.from,!!t.bracketed,o.tree,r);else{let e=Y(this.ranges,t.overlay||(o.from<o.to?[new i(o.from,o.to)]:[]));if(e.length)Z(e);if(e.length||!t.overlay)this.inner.push(new L(t.parser,e.length?t.parser.startParse(this.input,G(s,e),e):t.parser.startParse(""),t.overlay?t.overlay.map(e=>new i(e.from-o.from,e.to-o.from)):null,!!t.bracketed,o.tree,e.length?e[0].from:o.from));if(t.overlay){if(e.length)n={ranges:e,depth:0,prev:n}}else a=false}}else if(r&&(l=r.predicate(o))){if(true===l)l=new i(o.from,o.to);if(l.from<l.to){let e=r.ranges.length-1;if(e>=0&&r.ranges[e].to==l.from)r.ranges[e]={from:r.ranges[e].from,to:l.to};else r.ranges.push(l)}}if(a&&o.firstChild()){if(r)r.depth++;if(n)n.depth++}else for(;;){if(o.nextSibling())break;if(!o.parent())break o;if(r&&!--r.depth){let e=Y(this.ranges,r.ranges);if(e.length){Z(e);this.inner.splice(r.index,0,new L(r.parser,r.parser.startParse(this.input,G(r.mounts,e),e),r.ranges.map(e=>new i(e.from-r.start,e.to-r.start)),r.bracketed,r.target,e[0].from))}r=r.prev}if(n&&!--n.depth)n=n.prev}}}}function z(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}function I(e,t,r,n,i,o){if(t<r){let s=e.buffer[t+1];n.push(e.slice(t,r,s));i.push(s-o)}}function N(e){let{node:t}=e,r=[];let n=t.context.buffer;do{r.push(e.index);e.parent()}while(!e.tree);let i=e.tree,o=i.children.indexOf(n);let s=i.children[o],a=s.buffer,u=[o];function f(e,n,i,o,l,c){let d=r[c];let p=[],g=[];I(s,e,d,p,g,o);let m=a[d+1],O=a[d+2];u.push(p.length);let v=c?f(d+4,a[d+3],s.set.types[a[d]],m,O-m,c-1):t.toTree();p.push(v);g.push(m-o);I(s,a[d+3],n,p,g,o);return new h(i,p,g,l)}i.children[o]=f(0,a.length,l.none,0,s.length,r.length-1);for(let t of u){let r=e.tree.children[t],n=e.tree.positions[t];e.yield(new v(r,n+e.from,t,e._tree))}}class V{constructor(e,r){this.offset=r;this.done=false;this.cursor=e.cursor(t.IterMode.IncludeAnonymous|t.IterMode.IgnoreMounts)}moveTo(e){let{cursor:r}=this,n=e-this.offset;while(!this.done&&r.from<n)if(r.to>=e&&r.enter(n,1,t.IterMode.IgnoreOverlays|t.IterMode.ExcludeBuffers));else if(!r.next(false))this.done=true}hasNode(e){this.moveTo(e.from);if(!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return true;if(t.children.length&&0==t.positions[0]&&t.children[0]instanceof h)t=t.children[0];else break}return false}}class W{constructor(e){var t;this.fragments=e;this.curTo=0;this.fragI=0;if(e.length){let r=this.curFrag=e[0];this.curTo=null!=(t=r.tree.prop(q))?t:r.to;this.inner=new V(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(e){while(this.curFrag&&e.from>=this.curTo)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;this.fragI++;if(this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!=(e=t.tree.prop(q))?e:t.to;this.inner=new V(t.tree,-t.offset)}}findMounts(e,t){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null==(r=e.tree)?void 0:r.prop(o.mounted);if(i&&i.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let r=this.fragments[t];if(r.from>=e.to)break;if(r.tree==this.curFrag.tree)n.push({frag:r,pos:e.from-r.offset,mount:i})}}}return n}}function Y(e,t){let r=null,n=t;
11for(let o=1,s=0;o<e.length;o++){let a=e[o-1].to,l=e[o].from;for(;s<n.length;s++){let e=n[s];if(e.from>=l)break;if(!(e.to<=a)){if(!r)n=r=t.slice();if(e.from<a){r[s]=new i(e.from,a);if(e.to>l)r.splice(s+1,0,new i(l,e.to))}else if(e.to>l)r[s--]=new i(l,e.to);else r.splice(s--,1)}}}return n}function U(e,t,r,n){let o=0,s=0,a=false,l=false,u=-1e9;let f=[];for(;;){let c=o==e.length?1e9:a?e[o].to:e[o].from;let h=s==t.length?1e9:l?t[s].to:t[s].from;if(a!=l){let e=Math.max(u,r),t=Math.min(c,h,n);if(e<t)f.push(new i(e,t))}u=Math.min(c,h);if(1e9==u)break;if(c==u)if(a){a=false;o++}else a=true;if(h==u)if(l){l=false;s++}else l=true}return f}function G(e,t){let r=[];for(let{pos:n,mount:o,frag:s}of e){let e=n+(o.overlay?o.overlay[0].from:0),a=e+o.tree.length;let l=Math.max(s.from,e),u=Math.min(s.to,a);if(o.overlay){let a=o.overlay.map(e=>new i(e.from+n,e.to+n));let f=U(t,a,l,u);for(let t=0,n=l;;t++){let i=t==f.length,a=i?u:f[t].from;if(a>n)r.push(new E(n,a,o.tree,-e,s.from>=n||s.openStart,s.to<=a||s.openEnd));if(i)break;n=f[t].to}}else r.push(new E(l,u,o.tree,-e,s.from>=e||s.openStart,s.to<=a||s.openEnd))}return r}t.DefaultBufferLength=r;t.MountedTree=s;t.NodeProp=o;t.NodeSet=u;t.NodeType=l;t.NodeWeakMap=C;t.Parser=M;t.Tree=h;t.TreeBuffer=p;t.TreeCursor=Q;t.TreeFragment=E;t.parseMixed=D}}},highlight:{
11"package.json":function(e,t,r){r.exports={name:"@lezer/highlight",version:"1.2.3",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";var r=e("@lezer/common");let n=0;class i{constructor(e,t,r,i){this.name=e;this.set=t;this.base=r;this.modified=i;this.id=n++}toString(){let{name:e}=this;for(let t of this.modified)if(t.name)e=`${t.name}(${e})`;return e}static define(e,t){let r="string"==typeof e?e:"?";if(e instanceof i)t=e;if(null==t?void 0:t.base)throw new Error("Can not derive from a modified tag");let n=new i(r,[],null,[]);n.set.push(n);if(t)for(let e of t.set)n.set.push(e);return n}static defineModifier(e){let t=new s(e);return e=>{if(e.modified.indexOf(t)>-1)return e;return s.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}}let o=0;class s{constructor(e){this.name=e;this.instances=[];this.id=o++}static get(e,t){if(!t.length)return e;let r=t[0].instances.find(r=>r.base==e&&a(t,r.modified));if(r)return r;let n=[],o=new i(e.name,n,e,t);for(let e of t)e.instances.push(o);let u=l(t);for(let t of e.set)if(!t.modified.length)for(let e of u)n.push(s.get(t,e));return o}}function a(e,t){return e.length==t.length&&e.every((e,r)=>e==t[r])}function l(e){let t=[[]];for(let r=0;r<e.length;r++)for(let n=0,i=t.length;n<i;n++)t.push(t[n].concat(e[r]));return t.sort((e,t)=>t.length-e.length)}function u(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!Array.isArray(n))n=[n];for(let e of r.split(" "))if(e){let r=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!n)throw new RangeError("Invalid path: "+e);r.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]);t+=n[0].length;if(t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=r.length-1,a=r[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new c(n,i,s>0?r.slice(0,s):null);t[a]=l.sort(t[a])}}return f.add(t)}const f=new r.NodeProp({combine(e,t){let r,n,i;while(e||t){if(!e||t&&e.depth>=t.depth){i=t;t=t.next}else{i=e;e=e.next}if(r&&r.mode==i.mode&&!i.context&&!r.context)continue;let o=new c(i.tags,i.mode,i.context);if(r)r.next=o;else n=o;r=o}return n}});class c{constructor(e,t,r,n){this.tags=e;this.mode=t;this.context=r;this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){if(!e||e.depth<this.depth){this.next=e;return this}e.next=this.sort(e.next);return e}get depth(){return this.context?this.context.length:0}}c.empty=new c([],2,null);function h(e,t){let r=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)r[e.id]=t.class;else r[t.tag.id]=t.class;let{scope:n,all:i=null}=t||{};return{style:e=>{let t=i;for(let n of e)for(let e of n.set){let n=r[e.id];if(n){t=t?t+" "+n:n;break}}return t},scope:n}}function d(e,t){let r=null;for(let n of e){let e=n.style(t);if(e)r=r?r+" "+e:e}return r}function p(e,t,r,n=0,i=e.length){let o=new m(n,Array.isArray(t)?t:[t],r);o.highlightRange(e.cursor(),n,i,"",o.highlighters);o.flush(i)}function g(e,t,r,n,i,o=0,s=e.length){let a=o;function l(t,r){if(t<=a)return;for(let o=e.slice(a,t),s=0;;){let e=o.indexOf("\n",s);let t=e<0?o.length:e;if(t>s)n(o.slice(s,t),r);if(e<0)break;i();s=e+1}a=t}p(t,r,(e,t,r)=>{l(e,"");l(t,r)},o,s);l(s,"")}class m{constructor(e,t,r){this.at=e;this.highlighters=t;this.span=r;this.class=""}startSpan(e,t){if(t!=this.class){this.flush(e);if(e>this.at)this.at=e;this.class=t}}flush(e){if(e>this.at&&this.class)this.span(this.at,e,this.class)}highlightRange(e,t,n,i,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=t)return;if(s.isTop)o=this.highlighters.filter(e=>!e.scope||e.scope(s));let u=i;let f=O(e)||c.empty;let h=d(o,f.tags);if(h){if(u)u+=" ";u+=h;if(1==f.mode)i+=(i?" ":"")+h}this.startSpan(Math.max(t,a),u);if(f.opaque)return;let p=e.tree&&e.tree.prop(r.NodeProp.mounted);if(p&&p.overlay){let r=e.node.enter(p.overlay[0].from+a,1);let s=this.highlighters.filter(e=>!e.scope||e.scope(p.tree.type));let f=e.firstChild();for(let c=0,h=a;;c++){let d=c<p.overlay.length?p.overlay[c]:null;let g=d?d.from+a:l;let m=Math.max(t,h),O=Math.min(n,g);
11if(m<O&&f)while(e.from<O){this.highlightRange(e,m,O,i,o);this.startSpan(Math.min(O,e.to),u);if(e.to>=g||!e.nextSibling())break}if(!d||g>n)break;h=d.to+a;if(h>t){this.highlightRange(r.cursor(),Math.max(t,d.from+a),Math.min(n,h),"",s);this.startSpan(Math.min(n,h),u)}}if(f)e.parent()}else if(e.firstChild()){if(p)i="";do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,i,o);this.startSpan(Math.min(n,e.to),u)}while(e.nextSibling());e.parent()}}}function O(e){let t=e.type.prop(f);while(t&&t.context&&!e.matchContext(t.context))t=t.next;return t||null}const v=i.define;const y=v(),b=v(),w=v(b),x=v(b),S=v(),_=v(S),k=v(S),Q=v(),P=v(Q),T=v(),A=v(),$=v(),j=v($),C=v();const E={comment:y,lineComment:v(y),blockComment:v(y),docComment:v(y),name:b,variableName:v(b),typeName:w,tagName:v(w),propertyName:x,attributeName:v(x),className:v(b),labelName:v(b),namespace:v(b),macroName:v(b),literal:S,string:_,docString:v(_),character:v(_),attributeValue:v(_),number:k,integer:v(k),float:v(k),bool:v(S),regexp:v(S),escape:v(S),color:v(S),url:v(S),keyword:T,self:v(T),null:v(T),atom:v(T),unit:v(T),modifier:v(T),operatorKeyword:v(T),controlKeyword:v(T),definitionKeyword:v(T),moduleKeyword:v(T),operator:A,derefOperator:v(A),arithmeticOperator:v(A),logicOperator:v(A),bitwiseOperator:v(A),compareOperator:v(A),updateOperator:v(A),definitionOperator:v(A),typeOperator:v(A),controlOperator:v(A),punctuation:$,separator:v($),bracket:j,angleBracket:v(j),squareBracket:v(j),paren:v(j),brace:v(j),content:Q,heading:P,heading1:v(P),heading2:v(P),heading3:v(P),heading4:v(P),heading5:v(P),heading6:v(P),contentSeparator:v(Q),list:v(Q),quote:v(Q),emphasis:v(Q),strong:v(Q),link:v(Q),monospace:v(Q),strikethrough:v(Q),inserted:v(),deleted:v(),changed:v(),invalid:v(),meta:C,documentMeta:v(C),annotation:v(C),processingInstruction:v(C),definition:i.defineModifier("definition"),constant:i.defineModifier("constant"),function:i.defineModifier("function"),standard:i.defineModifier("standard"),local:i.defineModifier("local"),special:i.defineModifier("special")};for(let e in E){let t=E[e];if(t instanceof i)t.name=e}const M=h([{tag:E.link,class:"tok-link"},{tag:E.heading,class:"tok-heading"},{tag:E.emphasis,class:"tok-emphasis"},{tag:E.strong,class:"tok-strong"},{tag:E.keyword,class:"tok-keyword"},{tag:E.atom,class:"tok-atom"},{tag:E.bool,class:"tok-bool"},{tag:E.url,class:"tok-url"},{tag:E.labelName,class:"tok-labelName"},{tag:E.inserted,class:"tok-inserted"},{tag:E.deleted,class:"tok-deleted"},{tag:E.literal,class:"tok-literal"},{tag:E.string,class:"tok-string"},{tag:E.number,class:"tok-number"},{tag:[E.regexp,E.escape,E.special(E.string)],class:"tok-string2"},{tag:E.variableName,class:"tok-variableName"},{tag:E.local(E.variableName),class:"tok-variableName tok-local"},{tag:E.definition(E.variableName),class:"tok-variableName tok-definition"},{tag:E.special(E.variableName),class:"tok-variableName2"},{tag:E.definition(E.propertyName),class:"tok-propertyName tok-definition"},{tag:E.typeName,class:"tok-typeName"},{tag:E.namespace,class:"tok-namespace"},{tag:E.className,class:"tok-className"},{tag:E.macroName,class:"tok-macroName"},{tag:E.propertyName,class:"tok-propertyName"},{tag:E.operator,class:"tok-operator"},{tag:E.comment,class:"tok-comment"},{tag:E.meta,class:"tok-meta"},{tag:E.invalid,class:"tok-invalid"},{tag:E.punctuation,class:"tok-punctuation"}]);t.Tag=i;t.classHighlighter=M;t.getStyleTags=O;t.highlightCode=g;t.highlightTree=p;t.styleTags=u;t.tagHighlighter=h;t.tags=E}}},html:{
11"package.json":function(e,t,r){r.exports={name:"@lezer/html",version:"1.3.13",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=e("@lezer/lr");var n=e("@lezer/highlight");var i=e("@lezer/common");const o=55,s=1,a=56,l=2,u=57,f=3,c=4,h=5,d=6,p=7,g=8,m=9,O=10,v=11,y=12,b=13,w=58,x=14,S=15,_=59,k=21,Q=23,P=24,T=25,A=27,$=28,j=29,C=32,E=35,M=37,R=38,D=0,L=1;const Z={area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true};const X={dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true};const q={dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}};function B(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let z=null,I=null,N=0;function V(e,t){let r=e.pos+t;if(N==r&&I==e)return z;let n=e.peek(t),i="";for(;;){if(!B(n))break;i+=String.fromCharCode(n);n=e.peek(++t)}I=e;N=r;return z=i?i.toLowerCase():n==G||n==F?void 0:null}const W=60,Y=62,U=47,G=63,F=33,H=45;function K(e,t){this.name=e;this.parent=t}const J=[d,O,p,g,m];const ee=new r.ContextTracker({start:null,shift(e,t,r,n){return J.indexOf(t)>-1?new K(V(n,1)||"",e):e},reduce(e,t){return t==k&&e?e.parent:e},reuse(e,t,r,n){let i=t.type.id;return i==d||i==M?new K(V(n,1)||"",e):e},strict:false});const et=new r.ExternalTokenizer((e,t)=>
11{if(e.next!=W){if(e.next<0&&t.context)e.acceptToken(w);return}e.advance();let r=e.next==U;if(r)e.advance();let n=V(e,0);if(void 0===n)return;if(!n)return e.acceptToken(r?S:x);let i=t.context?t.context.name:null;if(r){if(n==i)return e.acceptToken(v);if(i&&X[i])return e.acceptToken(w,-2);if(t.dialectEnabled(D))return e.acceptToken(y);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(b)}else{if("script"==n)return e.acceptToken(p);if("style"==n)return e.acceptToken(g);if("textarea"==n)return e.acceptToken(m);if(Z.hasOwnProperty(n))return e.acceptToken(O);if(i&&q[i]&&q[i][n])e.acceptToken(w,-1);else e.acceptToken(d)}},{contextual:true});const er=new r.ExternalTokenizer(e=>{for(let t=0,r=0;;r++){if(e.next<0){if(r)e.acceptToken(_);break}if(e.next==H)t++;else if(e.next==Y&&t>=2){if(r>=3)e.acceptToken(_,-2);break}else t=0;e.advance()}});function en(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return true;return false}const ei=new r.ExternalTokenizer((e,t)=>{if(e.next==U&&e.peek(1)==Y){let r=t.dialectEnabled(L)||en(t.context);e.acceptToken(r?h:c,2)}else if(e.next==Y)e.acceptToken(c,1)});function eo(e,t,n){let i=2+e.length;return new r.ExternalTokenizer(r=>{for(let o=0,s=0,a=0;;a++){if(r.next<0){if(a)r.acceptToken(t);break}if(0==o&&r.next==W||1==o&&r.next==U||o>=2&&o<i&&r.next==e.charCodeAt(o-2)){o++;s++}else if(o==i&&r.next==Y){if(a>s)r.acceptToken(t,-s);else r.acceptToken(n,-(s-2));break}else if((10==r.next||13==r.next)&&a){r.acceptToken(t,1);break}else o=s=0;r.advance()}})}const es=eo("script",o,s);const ea=eo("style",a,l);const el=eo("textarea",u,f);const eu=n.styleTags({"Text RawText IncompleteTag IncompleteCloseTag":n.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":n.tags.angleBracket,TagName:n.tags.tagName,"MismatchedCloseTag/TagName":[n.tags.tagName,n.tags.invalid],AttributeName:n.tags.attributeName,"AttributeValue UnquotedAttributeValue":n.tags.attributeValue,Is:n.tags.definitionOperator,"EntityReference CharacterReference":n.tags.character,Comment:n.tags.blockComment,ProcessingInst:n.tags.processingInstruction,DoctypeDecl:n.tags.documentMeta});const ef=r.LRParser.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:",c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:ee,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,3
111,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[eu],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;
11=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[es,ea,el,ei,et,er,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function ec(e,t){let r=Object.create(null);for(let n of e.getChildren(P)){let e=n.getChild(T),i=n.getChild(A)||n.getChild($);if(e)r[t.read(e.from,e.to)]=i?i.type.id==A?t.read(i.from+1,i.to-1):t.read(i.from,i.to):""}return r}function eh(e,t){let r=e.getChild(Q);return r?t.read(r.from,r.to):" "}function ed(e,t,r){let n;for(let i of r)if(!i.attrs||i.attrs(n||(n=ec(e.node.parent.firstChild,t))))return{parser:i.parser,bracketed:true};return null}function ep(e=[],t=[]){let r=[],n=[],o=[],s=[];for(let t of e){let e="script"==t.tag?r:"style"==t.tag?n:"textarea"==t.tag?o:s;e.push(t)}let a=t.length?Object.create(null):null;for(let e of t)(a[e.name]||(a[e.name]=[])).push(e);return i.parseMixed((e,t)=>{let i=e.type.id;if(i==j)return ed(e,t,r);if(i==C)return ed(e,t,n);if(i==E)return ed(e,t,o);if(i==k&&s.length){let r=e.node,n=r.firstChild,i=n&&eh(n,t),o;if(i){for(let e of s)if(e.tag==i&&(!e.attrs||e.attrs(o||(o=ec(n,t))))){let t=r.lastChild;let i=t.type.id==R?t.from:r.to;if(i>n.to)return{parser:e.parser,overlay:[{from:n.to,to:i}]}}}}if(a&&i==P){let r=e.node,n;if(n=r.firstChild){let e=a[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=eh(r.parent,t))continue;let e=r.lastChild;if(e.type.id==A){let t=e.from+1;let r=e.lastChild,i=e.to-(r&&r.isError?0:1);if(i>t)return{parser:n.parser,overlay:[{from:t,to:i}],bracketed:true}}else if(e.type.id==$)return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}return null})}t.configureNesting=ep;t.parser=ef}}},lr:{
11"package.json":function(e,t,r){r.exports={name:"@lezer/lr",version:"1.4.8",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t,r){"use strict";var n=e("@lezer/common");class i{constructor(e,t,r,n,i,o,s,a,l,u=0,f){this.p=e;this.stack=t;this.state=r;this.reducePos=n;this.pos=i;this.score=o;this.buffer=s;this.bufferBase=a;this.curContext=l;this.lookAhead=u;this.parent=f}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,r=0){let n=e.parser.context;return new i(e,[],t,r,r,0,[],0,n?new o(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length);this.state=e}reduce(e){var t;let r=e>>19,n=65535&e;let{parser:i}=this.p;let o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos);let s=i.dynamicPrecedence(n);if(s)this.score+=s;if(0==r){this.pushState(i.getGoto(this.state,n,true),this.reducePos);if(n<i.minRepeatTerm)this.storeNode(n,this.reducePos,this.reducePos,o?8:4,true);this.reduceContext(n,this.reducePos);return}let a=this.stack.length-(r-1)*3-(262144&e?6:0);let l=a?this.stack[a-2]:this.p.ranges[0].from,u=this.reducePos-l;if(u>=2e3&&!(null==(t=this.p.parser.nodeSet.types[n])?void 0:t.isAnonymous)){if(l==this.p.lastBigReductionStart){this.p.bigReductionCount++;this.p.lastBigReductionSize=u}else if(this.p.lastBigReductionSize<u){this.p.bigReductionCount=1;this.p.lastBigReductionStart=l;this.p.lastBigReductionSize=u}}let f=a?this.stack[a-1]:0,c=this.bufferBase+this.buffer.length-f;if(n<i.minRepeatTerm||131072&e){let e=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,l,e,c+4,true)}if(262144&e)this.state=this.stack[a];else{let e=this.stack[a-3];this.state=i.getGoto(e,n,true)}while(this.stack.length>a)this.stack.pop();this.reduceContext(n,l)}storeNode(e,t,r,n=4,i=false){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,n=this.buffer.length;if(0==n&&e.parent){n=e.bufferBase-e.parent.bufferBase;e=e.parent}if(n>0&&0==e.buffer[n-4]&&e.buffer[n-1]>-1){if(t==r)return;if(e.buffer[n-2]>=t){e.buffer[n-2]=r;return}}}if(i&&this.pos!=r){let i=this.buffer.length;if(i>0&&(0!=this.buffer[i-4]||this.buffer[i-1]<0)){let e=false;for(let t=i;t>0&&this.buffer[t-2]>r;t-=4)if(this.buffer[t-1]>=0){e=true;break}if(e)while(i>0&&this.buffer[i-2]>r){this.buffer[i]=this.buffer[i-4];this.buffer[i+1]=this.buffer[i-3];this.buffer[i+2]=this.buffer[i-2];this.buffer[i+3]=this.buffer[i-1];i-=4;if(n>4)n-=4}}this.buffer[i]=e;this.buffer[i+1]=t;this.buffer[i+2]=r;this.buffer[i+3]=n}else this.buffer.push(e,t,r,n)}shift(e,t,r,n){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let i=e,{parser:o}=this.p;this.pos=n;let s=o.stateFlag(i,1);if(!s&&(n>r||t<=o.maxNode))this.reducePos=n;this.pushState(i,s?r:Math.min(r,this.reducePos));this.shiftContext(t,r);if(t<=o.maxNode)this.buffer.push(t,r,n,4)}else{this.pos=n;this.shiftContext(t,r);if(t<=this.p.parser.maxNode)this.buffer.push(t,r,n,4)}}apply(e,t,r,n){if(65536&e)this.reduce(e);else this.shift(e,t,r,n)}useNode(e,t){let r=this.p.reused.length-1;if(r<0||this.p.reused[r]!=e){this.p.reused.push(e);r++}let n=this.pos;this.reducePos=this.pos=n+e.length;this.pushState(t,n);this.buffer.push(r,n,this.reducePos,-1);if(this.curContext)this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this;let t=e.buffer.length;while(t>0&&e.buffer[t-2]>e.reducePos)t-=4;let r=e.buffer.slice(t),n=e.bufferBase+t;while(e&&n==e.bufferBase)e=e.parent;return new i(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let r=e<=this.p.parser.maxNode;if(r)this.storeNode(e,this.pos,t,4);this.storeNode(0,this.pos,t,r?8:4);this.pos=this.reducePos=t;this.score-=190}canShift(e){for(let t=new s(this);;){let r=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==r)return false;if((65536&r)==0)return true;t.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let n=0,i;n<t.length;n+=2)if((i=t[n+1])!=this.state&&this.p.parser.hasAction(i,e))r.push(t[n],i);if(this.stack.length<120)for(let e=0;r.length<8&&e<t.length;e+=2){let n=t[e+1];if(!r.some((e,t)=>1&t&&e==n))r.push(t[e],n)}t=r}let r=[];for(let e=0;e<t.length&&r.length<4;e+=2){let n=t[e+1];if(n==this.state)continue;let i=this.split();i.pushState(n,this.pos);i.storeNode(0,i.pos,i.pos,4,true);i.shiftContext(t[e],this.pos);i.reducePos=this.pos;i.score-=200;r.push(i)}return r}forceReduce(){let{parser:e}=this.p;let t=e.stateSlot(this.state,5);if((65536&t)==0)return false;if(!e.validAction(this.state,t)){let r=t>>19,n=65535&t;let i=this.stack.length-3*r;if(i<0||e.getGoto(this.stack[i],n,false)<0){let e=this.findForcedReduction();if(null==e)return false;t=e}this.storeNode(0,this.pos,this.pos,4,true);this.score-=100}this.reducePos=this.pos;this.reduce(t);return true}findForcedReduction(){let{parser:e}=this.p,t=[];let r=(n,i)=>{if(t.includes(n))return;t.push(n);return e.allActions(n,t=>{if(393216&t);else if(65536&t){let r=(t>>19)-i;if(r>1){let n=65535&t,i=this.stack.length-3*r;if(i>=0&&e.getGoto(this.stack[i],n,false)>=0)return r<<19|65536|n}}else{let e=r(t,i+1);if(null!=e)return e}})};return r(this.state,0)}forceAll(){while(!this.p.parser.stateFlag(this.state,2))if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,true);break}return this}get deadEnd(){if(3!=this.stack.length)return false;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,true);this.state=this.stack[0];this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return false;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return false;return true}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){if(this.curContext)this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){if(this.curContext)this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;if(e<0||-3!=this.buffer[e])this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;if(e<0||-4!=this.buffer[e])this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new o(this.curContext.tracker,e);if(t.hash!=this.curContext.hash)this.emitContext();this.curContext=t}}setLookAhead(e){if(e<=this.lookAhead)return false;this.emitLookAhead();this.lookAhead=e;return true}close(){if(this.curContext&&this.curContext.tracker.strict)this.emitContext();if(this.lookAhead>0)this.emitLookAhead()}}class o{constructor(e,t){this.tracker=e;this.context=t;this.hash=e.strict?e.hash(t):0}}class s{constructor(e){this.start=e;this.state=e.state;this.stack=e.stack;this.base=this.stack.length}reduce(e){let t=65535&e,r=e>>19;if(0==r){if(this.stack==this.start.stack)this.stack=this.stack.slice();
11this.stack.push(this.state,0,0);this.base+=3}else this.base-=(r-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,true);this.state=n}}class a{constructor(e,t,r){this.stack=e;this.pos=t;this.index=r;this.buffer=e.buffer;if(0==this.index)this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new a(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;if(null!=e){this.index=this.stack.bufferBase-e.bufferBase;this.stack=e;this.buffer=e.buffer}}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4;this.pos-=4;if(0==this.index)this.maybeNext()}fork(){return new a(this.stack,this.pos,this.index)}}function l(e,t=Uint16Array){if("string"!=typeof e)return e;let r=null;for(let n=0,i=0;n<e.length;){let o=0;for(;;){let t=e.charCodeAt(n++),r=false;if(126==t){o=65535;break}if(t>=92)t--;if(t>=34)t--;let i=t-32;if(i>=46){i-=46;r=true}o+=i;if(r)break;o*=46}if(r)r[i++]=o;else r=new t(o)}return r}class u{constructor(){this.start=-1;this.value=-1;this.end=-1;this.extended=-1;this.lookAhead=0;this.mask=0;this.context=0}}const f=new u;class c{constructor(e,t){this.input=e;this.ranges=t;this.chunk="";this.chunkOff=0;this.chunk2="";this.chunk2Pos=0;this.next=-1;this.token=f;this.rangeIndex=0;this.pos=this.chunkPos=t[0].from;this.range=t[0];this.end=t[t.length-1].to;this.readNext()}resolveOffset(e,t){let r=this.range,n=this.rangeIndex;let i=this.pos+e;while(i<r.from){if(!n)return null;let e=this.ranges[--n];i-=r.from-e.to;r=e}while(t<0?i>r.to:i>=r.to){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];i+=e.from-r.to;r=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,r,n;if(t>=0&&t<this.chunk.length){r=this.pos+e;n=this.chunk.charCodeAt(t)}else{let t=this.resolveOffset(e,1);if(null==t)return -1;r=t;if(r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;while(t.to<=r)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=r);if(r+this.chunk2.length>t.to)this.chunk2=this.chunk2.slice(0,t.to-r);n=this.chunk2.charCodeAt(0)}}if(r>=this.token.lookAhead)this.token.lookAhead=r+1;return n}acceptToken(e,t=0){let r=t?this.resolveOffset(t,-1):this.pos;if(null==r||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e;this.token.end=r}acceptTokenTo(e,t){this.token.value=e;this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2;this.chunkPos=this.chunk2Pos;this.chunk2=e;this.chunk2Pos=t;this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk;this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos);let t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e;this.chunkPos=this.pos;this.chunkOff=0}}readNext(){if(this.chunkOff>=this.chunk.length){this.getChunk();if(this.chunkOff==this.chunk.length)return this.next=-1}return this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){this.chunkOff+=e;while(this.pos+e>=this.range.to){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos;this.range=this.ranges[++this.rangeIndex];this.pos=this.range.from}this.pos+=e;if(this.pos>=this.token.lookAhead)this.token.lookAhead=this.pos+1;return this.readNext()}setDone(){this.pos=this.chunkPos=this.end;this.range=this.ranges[this.rangeIndex=this.ranges.length-1];this.chunk="";return this.next=-1}reset(e,t){if(t){this.token=t;t.start=e;t.lookAhead=e+1;t.value=t.extended=-1}else this.token=f;if(this.pos!=e){this.pos=e;if(e==this.end){this.setDone();return this}while(e<this.range.from)this.range=this.ranges[--this.rangeIndex];while(e>=this.range.to)this.range=this.ranges[++this.rangeIndex];if(e>=this.chunkPos&&e<this.chunkPos+this.chunk.length)this.chunkOff=e-this.chunkPos;else{this.chunk="";this.chunkOff=0}
11this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let r="";for(let n of this.ranges){if(n.from>=t)break;if(n.to>e)r+=this.input.read(Math.max(n.from,e),Math.min(n.to,t))}return r}}class h{constructor(e,t){this.data=e;this.id=t}token(e,t){let{parser:r}=t.p;g(this.data,e,t,this.id,r.data,r.tokenPrecTable)}}h.prototype.contextual=h.prototype.fallback=h.prototype.extend=false;class d{constructor(e,t,r){this.precTable=t;this.elseToken=r;this.data="string"==typeof e?l(e):e}token(e,t){let r=e.pos,n=0;for(;;){let r=e.next<0,i=e.resolveOffset(1,1);g(this.data,e,t,0,this.data,this.precTable);if(e.token.value>-1)break;if(null==this.elseToken)return;if(!r)n++;if(null==i)break;e.reset(i,e.token)}if(n){e.reset(r,e.token);e.acceptToken(this.elseToken,n)}}}d.prototype.contextual=h.prototype.fallback=h.prototype.extend=false;class p{constructor(e,t={}){this.token=e;this.contextual=!!t.contextual;this.fallback=!!t.fallback;this.extend=!!t.extend}}function g(e,t,r,n,i,o){let s=0,a=1<<n,{dialect:l}=r.p.parser;o:for(;;){if((a&e[s])==0)break;let r=e[s+1];for(let n=s+3;n<r;n+=2)if((e[n+1]&a)>0){let r=e[n];if(l.allows(r)&&(-1==t.token.value||t.token.value==r||O(r,t.token.value,i,o))){t.acceptToken(r);break}}let n=t.next,u=0,f=e[s+2];if(t.next<0&&f>u&&65535==e[r+3*f-3]){s=e[r+3*f-1];continue}for(;u<f;){let i=u+f>>1;let o=r+i+(i<<1);let a=e[o],l=e[o+1]||65536;if(n<a)f=i;else if(n>=l)u=i+1;else{s=e[o+2];t.advance();continue o}}break}}function m(e,t,r){for(let n=t,i;65535!=(i=e[n]);n++)if(i==r)return n-t;return -1}function O(e,t,r,n){let i=m(r,n,t);return i<0||m(r,n,e)<i}const v="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let y=null;function b(e,t,r){let i=e.cursor(n.IterMode.IncludeAnonymous);i.moveTo(t);for(;;)if(!(r<0?i.childBefore(t):i.childAfter(t)))for(;;){if((r<0?i.to<t:i.from>t)&&!i.type.isError)return r<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(r<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return r<0?0:e.length}}class w{constructor(e,t){this.fragments=e;this.nodeSet=t;this.i=0;this.fragment=null;this.safeFrom=-1;this.safeTo=-1;this.trees=[];this.start=[];this.index=[];this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){this.safeFrom=e.openStart?b(e.tree,e.from+e.offset,1)-e.offset:e.from;this.safeTo=e.openEnd?b(e.tree,e.to+e.offset,-1)-e.offset:e.to;while(this.trees.length){this.trees.pop();this.start.pop();this.index.pop()}this.trees.push(e.tree);this.start.push(-e.offset);this.index.push(0);this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;while(this.fragment&&this.safeTo<=e)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0){this.nextFragment();return null}let r=this.trees[t],i=this.index[t];if(i==r.children.length){this.trees.pop();this.start.pop();this.index.pop();continue}let o=r.children[i];let s=this.start[t]+r.positions[i];if(s>e){this.nextStart=s;return null}if(o instanceof n.Tree){if(s==e){if(s<this.safeFrom)return null;let e=s+o.length;if(e<=this.safeTo){let t=o.prop(n.NodeProp.lookAhead);if(!t||e+t<this.fragment.to)return o}}this.index[t]++;if(s+o.length>=Math.max(this.safeFrom,e)){this.trees.push(o);this.start.push(s);this.index.push(0)}}else{this.index[t]++;this.nextStart=s+o.length}}}}class x{constructor(e,t){this.stream=t;this.tokens=[];this.mainToken=null;this.actions=[];this.tokens=e.tokenizers.map(e=>new u)}getActions(e){let t=0;let r=null;let{parser:n}=e.p,{tokenizers:i}=n;let o=n.stateSlot(e.state,3);let s=e.curContext?e.curContext.hash:0;let a=0;for(let n=0;n<i.length;n++){if((1<<n&o)==0)continue;let l=i[n],u=this.tokens[n];if(!r||l.fallback){if(l.contextual||u.start!=e.pos||u.mask!=o||u.context!=s){this.updateCachedToken(u,l,e);u.mask=o;u.context=s}if(u.lookAhead>u.end+25)a=Math.max(u.lookAhead,a);if(0!=u.value){let n=t;if(u.extended>-1)t=this.addActions(e,u.extended,u.end,t);t=this.addActions(e,u.value,u.end,t);if(!l.extend){r=u;if(t>n)break}}}}while(this.actions.length>t)this.actions.pop();if(a)e.setLookAhead(a);if(!r&&e.pos==this.stream.end){r=new u;r.value=e.p.parser.eofTerm;r.start=r.end=e.pos;t=this.addActions(e,r.value,r.end,t)}this.mainToken=r;return this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new u,{pos:r,p:n}=e;t.start=r;t.end=Math.min(r+1,n.stream.end);t.value=r==n.stream.end?n.parser.eofTerm:0;return t}updateCachedToken(e,t,r){let n=this.stream.clipPos(r.pos);t.token(this.stream.reset(n,e),r);if(e.value>-1){let{parser:t}=r.p;for(let n=0;n<t.specialized.length;n++)if(t.specialized[n]==e.value){let i=t.specializers[n](this.stream.read(e.start,e.end),r);if(i>=0&&r.p.parser.dialect.allows(i>>1)){if((1&i)==0)e.value=i>>1;else e.extended=i>>1;break}}}else{e.value=0;e.end=this.stream.clipPos(n+1)}}putAction(e,t,r,n){for(let t=0;t<n;t+=3)if(this.actions[t]==e)return n;this.actions[n++]=e;this.actions[n++]=t;this.actions[n++]=r;return n}addActions(e,t,r,n){let{state:i}=e,{parser:o}=e.p,{data:s}=o;for(let e=0;e<2;e++)for(let a=o.stateSlot(i,e?2:1);;a+=3){if(65535==s[a])if(1==s[a+1])a=A(s,a+2);else{if(0==n&&2==s[a+1])n=this.putAction(A(s,a+2),t,r,n);break}if(s[a]==t)n=this.putAction(A(s,a+1),t,r,n)}return n}}class S{constructor(e,t,r,n){this.parser=e;this.input=t;this.ranges=n;this.recovering=0;this.nextStackID=9812;this.minStackPos=0;this.reused=[];this.stoppedAt=null;this.lastBigReductionStart=-1;this.lastBigReductionSize=0;this.bigReductionCount=0;this.stream=new c(t,n);this.tokens=new x(e,this.stream);this.topTerm=e.top[1];let{from:o}=n[0];this.stacks=[i.start(this,e.top[0],o)];this.fragments=r.length&&this.stream.end-o>4*e.bufferLength?new w(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos;let r=this.stacks=[];let n,i;if(this.bigReductionCount>300&&1==e.length){let[t]=e;while(t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let s=e[o];for(;;){this.tokens.mainToken=null;if(s.pos>t)r.push(s);else{if(this.advanceStack(s,r,e))continue;if(!n){n=[];i=[]}n.push(s);let t=this.tokens.getMainToken(s);i.push(t.value,t.end)}break}}if(!r.length){let e=n&&$(n);if(e){if(v)console.log("Finish with "+this.stackID(e));return this.stackToTree(e)}if(this.parser.strict){if(v&&n)console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none"));throw new SyntaxError("No parse at "+t)}if(!this.recovering)this.recovering=5}if(this.recovering&&n){let e=null!=this.stoppedAt&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,i,r);if(e){if(v)console.log("Force-finish "+this.stackID(e));return this.stackToTree(e.forceAll())}}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e){r.sort((e,t)=>
11t.score-e.score);while(r.length>e)r.pop()}if(r.some(e=>e.reducePos>t))this.recovering--}else if(r.length>1){s:for(let e=0;e<r.length-1;e++){let t=r[e];for(let n=e+1;n<r.length;n++){let i=r[n];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500)if((t.score-i.score||t.buffer.length-i.buffer.length)>0)r.splice(n--,1);else{r.splice(e--,1);continue s}}}if(r.length>12){r.sort((e,t)=>t.score-e.score);r.splice(12,r.length-12)}}this.minStackPos=r[0].pos;for(let e=1;e<r.length;e++)if(r[e].pos<this.minStackPos)this.minStackPos=r[e].pos;return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,r){let i=e.pos,{parser:o}=this;let s=v?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,r=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?o.getGoto(e.state,a.type.id):-1;if(i>-1&&a.length&&(!t||(a.prop(n.NodeProp.contextHash)||0)==r)){e.useNode(a,i);if(v)console.log(s+this.stackID(e)+` (via reuse of ${o.getName(a.type.id)})`);return true}if(!(a instanceof n.Tree)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(l instanceof n.Tree&&0==a.positions[0])a=l;else break}}let a=o.stateSlot(e.state,4);if(a>0){e.reduce(a);if(v)console.log(s+this.stackID(e)+` (via always-reduce ${o.getName(65535&a)})`);return true}if(e.stack.length>=8400)while(e.stack.length>6e3&&e.forceReduce());let l=this.tokens.getActions(e);for(let n=0;n<l.length;){let a=l[n++],u=l[n++],f=l[n++];let c=n==l.length||!r;let h=c?e:e.split();let d=this.tokens.mainToken;h.apply(a,u,d?d.start:h.pos,f);if(v)console.log(s+this.stackID(h)+` (via ${(65536&a)==0?"shift":`reduce of ${o.getName(65535&a)}`} for ${o.getName(u)} @ ${i}${h==e?"":", split"})`);if(c)return true;if(h.pos>i)t.push(h);else r.push(h)}return false}advanceFully(e,t){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return false;if(e.pos>r){_(e,t);return true}}}runRecovery(e,t,r){let n=null,i=false;for(let o=0;o<e.length;o++){let s=e[o],a=t[o<<1],l=t[(o<<1)+1];let u=v?this.stackID(s)+" -> ":"";if(s.deadEnd){if(i)continue;i=true;s.restart();if(v)console.log(u+this.stackID(s)+" (restarted)");let e=this.advanceFully(s,r);if(e)continue}let f=s.split(),c=u;for(let e=0;e<10&&f.forceReduce();e++){if(v)console.log(c+this.stackID(f)+" (via force-reduce)");let e=this.advanceFully(f,r);if(e)break;if(v)c=this.stackID(f)+" -> "}for(let e of s.recoverByInsert(a)){if(v)console.log(u+this.stackID(e)+" (via recover-insert)");this.advanceFully(e,r)}if(this.stream.end>s.pos){if(l==s.pos){l++;a=0}s.recoverByDelete(a,l);if(v)console.log(u+this.stackID(s)+` (via recover-delete ${this.parser.getName(a)})`);_(s,r)}else if(!n||n.score<f.score)n=f}return n}stackToTree(e){e.close();return n.Tree.build({buffer:a.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(y||(y=new WeakMap)).get(e);if(!t)y.set(e,t=String.fromCodePoint(this.nextStackID++));return t+e}}function _(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.pos==e.pos&&n.sameState(e)){if(t[r].score<e.score)t[r]=e;return}}t.push(e)}class k{constructor(e,t,r){this.source=e;this.flags=t;this.disabled=r}allows(e){return!this.disabled||0==this.disabled[e]}}const Q=e=>e;class P{constructor(e){this.start=e.start;this.shift=e.shift||Q;this.reduce=e.reduce||Q;this.reuse=e.reuse||Q;this.hash=e.hash||(()=>0);this.strict=false!==e.strict}}class T extends n.Parser{constructor(e){super();this.wrappers=[];if(14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;r<e.repeatNodeCount;r++)t.push("");let r=Object.keys(e.topRules).map(t=>e.topRules[t][1]);let i=[];for(let e=0;e<t.length;e++)i.push([]);function o(e,t,r){i[e].push([t,t.deserialize(String(r))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];if("string"==typeof e)e=n.NodeProp[e];for(let r=1;r<t.length;){let n=t[r++];if(n>=0)o(n,e,t[r++]);else{let i=t[r+-n];for(let s=-n;s>0;s--)o(t[r++],e,i);r++}}}this.nodeSet=new n.NodeSet(t.map((t,o)=>n.NodeType.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:i[o],top:r.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1})));if(e.propSources)this.nodeSet=this.nodeSet.extend(...e.propSources);this.strict=false;this.bufferLength=n.DefaultBufferLength;let s=l(e.tokenData);this.context=e.context;this.specializerSpecs=e.specialized||[];this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(j);this.states=l(e.states,Uint32Array);this.data=l(e.stateData);this.goto=l(e.goto);this.maxTerm=e.maxTerm;this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new h(s,e):e);this.topRules=e.topRules;this.dialects=e.dialects||{};this.dynamicPrecedences=e.dynamicPrecedences||null;this.tokenPrecTable=e.tokenPrec;this.termNames=e.termNames||null;this.maxNode=this.nodeSet.types.length-1;this.dialect=this.parseDialect();this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,r){let n=new S(this,e,t,r);for(let i of this.wrappers)n=i(n,e,t,r);return n}getGoto(e,t,r=false){let n=this.goto;if(t>=n[0])return -1;for(let i=n[t+1];;){let t=n[i++],o=1&t;let s=n[i++];if(o&&r)return s;for(let r=i+(t>>
111);i<r;i++)if(n[i]==e)return s;if(o)return -1}}hasAction(e,t){let r=this.data;for(let n=0;n<2;n++)for(let i=this.stateSlot(e,n?2:1),o;;i+=3){if(65535==(o=r[i]))if(1==r[i+1])o=r[i=A(r,i+2)];else if(2==r[i+1])return A(r,i+2);else break;if(o==t||0==o)return A(r,i+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t?true:null)}allActions(e,t){let r=this.stateSlot(e,4);let n=r?t(r):void 0;for(let r=this.stateSlot(e,1);null==n;r+=3){if(65535==this.data[r])if(1==this.data[r+1])r=A(this.data,r+2);else break;n=t(A(this.data,r+1))}return n}nextStates(e){let t=[];for(let r=this.stateSlot(e,1);;r+=3){if(65535==this.data[r])if(1==this.data[r+1])r=A(this.data,r+2);else break;if((1&this.data[r+2])==0){let e=this.data[r+1];if(!t.some((t,r)=>1&r&&t==e))t.push(this.data[r],e)}}return t}configure(e){let t=Object.assign(Object.create(T.prototype),this);if(e.props)t.nodeSet=this.nodeSet.extend(...e.props);if(e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=r}if(e.tokenizers)t.tokenizers=this.tokenizers.map(t=>{let r=e.tokenizers.find(e=>e.from==t);return r?r.to:t});if(e.specializers){t.specializers=this.specializers.slice();t.specializerSpecs=this.specializerSpecs.map((r,n)=>{let i=e.specializers.find(e=>e.from==r.external);if(!i)return r;let o=Object.assign(Object.assign({},r),{external:i.to});t.specializers[n]=j(o);return o})}if(e.contextTracker)t.context=e.contextTracker;if(e.dialect)t.dialect=this.parseDialect(e.dialect);if(null!=e.strict)t.strict=e.strict;if(e.wrap)t.wrappers=t.wrappers.concat(e.wrap);if(null!=e.bufferLength)t.bufferLength=e.bufferLength;return t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),r=t.map(()=>false);if(e)for(let n of e.split(" ")){let e=t.indexOf(n);if(e>=0)r[e]=true}let n=null;for(let e=0;e<t.length;e++)if(!r[e])for(let r=this.dialects[t[e]],i;65535!=(i=this.data[r++]);)(n||(n=new Uint8Array(this.maxTerm+1)))[i]=1;return new k(e,r,n)}static deserialize(e){return new T(e)}}function A(e,t){return e[t]|e[t+1]<<16}function $(e){let t=null;for(let r of e){let e=r.p.stoppedAt;if((r.pos==r.p.stream.end||null!=e&&r.pos>e)&&r.p.parser.stateFlag(r.state,2)&&(!t||t.score<r.score))t=r}return t}function j(e){if(e.external){let t=e.extend?1:0;return(r,n)=>e.external(r,n)<<1|t}return e.get}t.ContextTracker=P;t.ExternalTokenizer=p;t.InputStream=c;t.LRParser=T;t.LocalTokenGroup=d;t.Stack=i}}},css:{
11"package.json":function(e,t,r){r.exports={name:"@lezer/css",version:"1.3.0",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=e("@lezer/lr");var n=e("@lezer/highlight");const i=122,o=1,s=123,a=124,l=2,u=125,f=3,c=4;const h=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];const d=58,p=40,g=95,m=91,O=45,v=46,y=35,b=37,w=38,x=92,S=10,_=42;function k(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Q(e){return e>=48&&e<=57}function P(e){return Q(e)||e>=97&&e<=102||e>=65&&e<=70}const T=(e,t,r)=>(n,i)=>{for(let o=false,s=0,a=0;;a++){let{next:u}=n;if(k(u)||u==O||u==g||o&&Q(u)){if(!o&&(u!=O||a>0))o=true;if(s===a&&u==O)s++;n.advance()}else if(u==x&&n.peek(1)!=S){n.advance();if(P(n.next)){do n.advance();while(P(n.next));if(32==n.next)n.advance()}else if(n.next>-1)n.advance();o=true}else{if(o)n.acceptToken(2==s&&i.canShift(l)?t:u==p?r:e);break}}};const A=new r.ExternalTokenizer(T(s,l,a));const $=new r.ExternalTokenizer(T(u,f,c));const j=new r.ExternalTokenizer(e=>{if(h.includes(e.peek(-1))){let{next:t}=e;if(k(t)||t==g||t==y||t==v||t==_||t==m||t==d&&k(e.peek(1))||t==O||t==w)e.acceptToken(i)}});const C=new r.ExternalTokenizer(e=>{if(!h.includes(e.peek(-1))){let{next:t}=e;if(t==b){e.advance();e.acceptToken(o)}if(k(t)){do e.advance();while(k(e.next)||Q(e.next));e.acceptToken(o)}}});const E=n.styleTags({"AtKeyword import charset namespace keyframes media supports":n.tags.definitionKeyword,"from to selector":n.tags.keyword,NamespaceName:n.tags.namespace,KeyframeName:n.tags.labelName,KeyframeRangeName:n.tags.operatorKeyword,TagName:n.tags.tagName,ClassName:n.tags.className,PseudoClassName:n.tags.constant(n.tags.className),IdName:n.tags.labelName,"FeatureName PropertyName":n.tags.propertyName,AttributeName:n.tags.attributeName,NumberLiteral:n.tags.number,KeywordQuery:n.tags.keyword,UnaryQueryOp:n.tags.operatorKeyword,"CallTag ValueName":n.tags.atom,VariableName:n.tags.variableName,Callee:n.tags.operatorKeyword,Unit:n.tags.unit,"UniversalSelector NestingSelector":n.tags.definitionOperator,"MatchOp CompareOp":n.tags.compareOperator,"ChildOp SiblingOp, LogicOp":n.tags.logicOperator,BinOp:n.tags.arithmeticOperator,Important:n.tags.modifier,Comment:n.tags.blockComment,ColorLiteral:n.tags.color,"ParenthesizedContent StringLiteral":n.tags.string,":":n.tags.punctuation,"PseudoOp #":n.tags.derefOperator,"; ,":n.tags.separator,"( )":n.tags.paren,"[ ]":n.tags.squareBracket,"{ }":n.tags.brace});const M={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124};const R={__proto__:null,or:98,and:98,not:106,only:106,layer:170};const D={__proto__:null,selector:112,layer:166};const L={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204};const Z={__proto__:null,to:207};const X=r.LRParser.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP'#Dq'#DqOOQP,5:[,5:[OOQO'#Ds'#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW'#DZ'#DZO,ZQhO'#DdO,xQhO'#FaO'tQhO'#DbO-WQ`O'#DhOOQW'#F['#F[O-]Q`O,5;SO-eQ`O'#DeOOQS-E8i-E8iOOQ['#Cs'#CsO-jQdO'#CtO.QQdO'#CzO.hQdO'#C}O/OQ!pO'#DPO1RQ!jO,5:jOOQO'#DU'#DUO*mQ`O'#DTO1cQ!nO'#FXO3`Q`O'#DVO3eQ`O'#DkOOQ['#FX'#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS'#E['#E[O3rQ`O,5:tO3wQdO,5:tOOQO'#E_'#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO'#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO'#EtO5TQ`O,5;zO5TQ`O,5;zPOOO'#Ej'#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO'#DoO7oQdO'#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO'#DZO8UQ!bO,59vO8^QhO,5:OOOQO'#F]'#F]O8XQ!bO,59zO'tQhO,59xO8fQhO'#EvO8sQ`O,5;{O9OQhO,59|O9uQhO'#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO'#FYOOQS'#FY'#FYOOQS'#Em'#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mO<rQhO'#EQOOQW'#EQ'#EQO=WQ`O1G0UO1[QhO1G0UOOQ[,59o,59oO'tQhO'#DXOOQ[,59q,59qO=]Q#tO,5:VOOQS1G0[1G0[OOQS1G0^1G0^OOQS1G0`1G0`O=hQ`O1G0`O=mQdO'#E`OOQS1G0c1G0cOOQS1G0i1G0iO=xQaO,5:RO-`Q`O1G0kOOQS1G0k1G0kO-eQ`O1G0kO>PQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO'#F_O?ZQ`O,5:ZO?`Q!fO'#ElO@^QdO'#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO'#DZOAtQhO'#F^OBPQ`O'#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO'#DYOBmQ`O,59sO'tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO'#DPOOQO'#Eb'#EbOCYQ`O'#EaOOQO'#Ea'#EaOCeQ`O'#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO'#EsO&lQdO'#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zO
11EdQ!bO<<IOOElQdO'#EqOEvQ`O,5;yOOQP1G/u1G/uOOQS-E8j-E8jOFOQdO'#EpOFYQ`O,5;rOOQ]1G.x1G.xOOQP<<IO<<IOOFbQdO7+$|OOQO'#D]'#D]OFiQ!bO7+%QOFqQhO'#EoOF{Q`O,5;xO&lQdO,5;xOOQW1G/o1G/oOOQO'#ES'#ESOGTQ`O1G0WOOQS<<I[<<I[O&lQdO,59tOGnQhO1G/_OOQ[1G/_1G/_OGuQ`O1G/_OOQW-E8l-E8lOOQ[7+%]7+%]OOQO,5:{,5:{O=pQdO'#ExOCeQ`O,5;cOOQS,5;c,5;cOOQS-E8u-E8uOOQS1G0f1G0fOOQS<<Iq<<IqOG}Q!fO,5;_OOQS-E8q-E8qOOQO<<IX<<IXOOQPAN>jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<<Hh<<HhOOQW<<Hl<<HlOIjQhO<<HlOI{QhO,5;ZOJWQ`O,5;ZOOQO-E8m-E8mOJ]QdO1G1dOBZQdO'#EuOJgQ`O7+%rOOQW7+%r7+%rOJoQ!bO1G/`OOQ[7+$y7+$yOJzQhO7+$yPKRQ`O'#EnOOQO,5;d,5;dOOQO-E8v-E8vOOQS1G0}1G0}OKWQ`OAN>WO&lQdO1G0uOK]Q`O7+'OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<<I^<<I^OOQ[<<He<<HePOQW,5;Y,5;YOOQWG23rG23rOKeQdO7+&a",stateData:"Kx~O#sOS#tQQ~OW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#oRO~OQiOW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#ohO~O#m$SP~P!dO#tmO~O#ooO~O]qO`rOarOjsOmtO!juO!mwO#nvO~OpzO!^xO~P$SOc!QO#o|O#p}O~O#o!RO~O#o!TO~OW[OZ[O]TO`VOaVOjWOmXO!jYO!mZO#oRO~OS!]Oe!YO!V![O!Y!`O#q!XOp$TP~Ok$TP~P&POQ!jOe!cOm!dOp!eOr!mOt!mOz!kO!`!lO#o!bO#p!hO#}!fO~Ot!qO!`!lO#o!pO~Ot!sO#o!sO~OS!]Oe!YO!V![O!Y!`O#q!XO~Oe!vOpzO#Z!xO~O]YX`YX`!pXaYXjYXmYXpYX!^YX!jYX!mYX#nYX~O`!zO~Ok!{O#m$SXo$SX~O#m$SXo$SX~P!dO#u#OO#v#OO#w#QO~Oc#UO#o|O#p}O~OpzO!^xO~Oo$SP~P!dOe#`O~Oe#aO~Ol#bO!h#cO~O]qO`rOarOjsOmtO~Op!ia!^!ia!j!ia!m!ia#n!iad!ia~P*zOp!la!^!la!j!la!m!la#n!lad!la~P*zOR#gOS!]Oe!YOr#gOt#gO!V![O!Y!`O#q#dO#}!fO~O!R#iO!^#jOk$TXp$TX~Oe#mO~Ok#oOpzO~Oe!vO~O]#rO`#rOd#uOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl#wO~P&lO]#rO`#rOi#rOj#rOk#rOo#yO~P&lOP#zOSsXesXksXvsX!VsX!YsX!usX!wsX#qsX!TsXQsX]sX`sXdsXisXjsXmsXpsXrsXtsXzsX!`sX#osX#psX#}sXlsXosX!^sX!qsX#msX~Ov#{O!u#|O!w#}Ok$TP~P'tOe#aOS#{Xk#{Xv#{X!V#{X!Y#{X!u#{X!w#{X#q#{XQ#{X]#{X`#{Xd#{Xi#{Xj#{Xm#{Xp#{Xr#{Xt#{Xz#{X!`#{X#o#{X#p#{X#}#{Xl#{Xo#{X!^#{X!q#{X#m#{X~Oe$RO~Oe$TO~Ok$VOv#{O~Ok$WO~Ot$XO!`!lO~Op$YO~OpzO!R#iO~OpzO#Z$`O~O!q$bOk!oa#m!oao!oa~P&lOk#hX#m#hXo#hX~P!dOk!{O#m$Sao$Sa~O#u#OO#v#OO#w$hO~Ol$jO!h$kO~Op!ii!^!ii!j!ii!m!ii#n!iid!ii~P*zOp!ki!^!ki!j!ki!m!ki#n!kid!ki~P*zOp!li!^!li!j!li!m!li#n!lid!li~P*zOp#fa!^#fa~P$SOo$lO~Od$RP~P%_Od#zP~P&lO`!PXd}X!R}X!T!PX~O`$sO!T$tO~Od$uO!R#iO~Ok#jXp#jX!^#jX~P'tO!^#jOk$Tap$Ta~O!R#iOk!Uap!Ua!^!Uad!Ua`!Ua~OS!]Oe!YO!V![O!Y!`O#q$yO~Od$QP~P9dOv#{OQ#|X]#|X`#|Xd#|Xe#|Xi#|Xj#|Xk#|Xm#|Xp#|Xr#|Xt#|Xz#|X!`#|X#o#|X#p#|X#}#|Xl#|Xo#|X~O]#rO`#rOd%OOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl%PO~P&lO]#rO`#rOi#rOj#rOk#rOo%QO~P&lOe%SOS!tXk!tX!V!tX!Y!tX#q!tX~Ok%TO~Od%YOt%ZO!a%ZO~Ok%[O~Oo%cO#o%^O#}%]O~Od%dO~P$SOv#{O!^%hO!q%jOk!oi#m!oio!oi~P&lOk#ha#m#hao#ha~P!dOk!{O#m$Sio$Si~O!^%mOd$RX~P$SOd%oO~Ov#{OQ#`Xd#`Xe#`Xm#`Xp#`Xr#`Xt#`Xz#`X!^#`X!`#`X#o#`X#p#`X#}#`X~O!^%qOd#zX~P&lOd%sO~Ol%tOv#{O~OR#gOr#gOt#gO#q%vO#}!fO~O!R#iOk#jap#ja!^#ja~O`!PXd}X!R}X!^}X~O!R#iO!^%xOd$QX~O`%zO~Od%{O~O#o%|O~Ok&OO~O`&PO!R#iO~Od&ROk&QO~Od&UO~OP#zOpsX!^sXdsX~O#}%]Op#TX!^#TX~OpzO!^&WO~Oo&[O#o%^O#}%]O~Ov#{OQ#gXe#gXk#gXm#gXp#gXr#gXt#gXz#gX!^#gX!`#gX!q#gX#m#gX#o#gX#p#gX#}#gXo#gX~O!^%hO!q&`Ok!oq#m!oqo!oq~P&lOl&aOv#{O~Od#eX!^#eX~P%_O!^%mOd$Ra~Od#dX!^#dX~P&lO!^%qOd#za~Od&fO~P&lOd&gO!T&hO~Od#cX!^#cX~P9dO!^%xOd$Qa~O]&mOd&oO~OS#bae#ba!V#ba!Y#ba#q#ba~Od&qO~PG]Od&qOk&rO~Ov#{OQ#gae#gak#gam#gap#gar#gat#gaz#ga!^#ga!`#ga!q#ga#m#ga#o#ga#p#ga#}#gao#ga~Od#ea!^#ea~P$SOd#da!^#da~P&lOR#gOr#gOt#gO#q%vO#}%]O~O!R#iOd#ca!^#ca~O`&xO~O!^%xOd$Qi~P&lO]&mOd&|O~Ov#{Od|ik|i~Od&}O~PG]Ok'OO~Od'PO~O!^%xOd$Qq~Od#cq!^#cq~P&lO#s!a#t#}]#}v!m~",goto:"2h$UPPPPP$VP$YP$c$uP$cP%X$cPP%_PPP%e%o%oPPPPP%oPP%oP&]P%oP%o'W%oP't'w'}'}(^'}P'}P'}P'}'}P(m'}(yP(|PP)p)v$c)|$c*SP$cP$c$cP*Y*{+YP$YP+aP+dP$YP$YP$YP+j$YP+m+p+s+z$YP$YPP$YP,P,V,f,|-[-b-l-r-x.O.U.`.f.l.rPPPPPPPPPPP.x/R/w/z0|P1U1u2O2R2U2[RnQ_^OP`kz!{$dq[OPYZ`kuvwxz!v!{#`$d%mqSOPYZ`kuvwxz!v!{#`$d%mQpTR#RqQ!OVR#SrQ#S!QS$Q!i!jR$i#U!V!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'Q!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QU#g!Y$t&hU%`$Y%b&WR&V%_!V!iac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QR$S!kQ%W$RR&S%Xk!^]bf!Y![!g#i#j#m$P$R%X%xQ#e!YQ${#mQ%w$tQ&j%xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l'QQ%u$sQ&d%qQ&l%zR'Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x'QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , CallLiteral CallTag ParenthesizedContent PseudoClassName Arg
11List IdSelector IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to AtRule Styles",maxTerm:143,nodeProps:[["isolate",-2,5,36,""],["openedBy",20,"(",28,"[",31,"{"],["closedBy",21,")",29,"]",32,"}"]],propSources:[E],skippedNodes:[0,5,106],repeatNodeCount:15,tokenData:"JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;'S$q;'S;=`Iz<%lO$q`$tSOy%Qz;'S%Q;'S;=`%c<%lO%Q`%VS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Q~'ah#s~!a`OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;'S%Q;'S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;'S%Q;'S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;'S%Q;'S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;'S%Q;'S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;'S%Q;'S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;'S%Q;'S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;'S%Q;'S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;'S%Q;'S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;'S%Q;'S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c<%lO-u~.gOt~~.jRO;'S-u;'S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;'S%Q;'S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;'S%Q;'S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;'S%Q;'S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;'S%Q;'S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;'S%Q;'S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;'S%Q;'S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;'S%Q;'S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;'S%Q;'S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qb7VSZQOy%Qz;'S%Q;'S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z<%lO7c~8RRO;'S7c;'S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;'S%Q;'S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj<VY!a`Oy%Qz{%Q{|<u|}%Q}!O<u!O!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj<zU!a`Oy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj=eU!a`#}YOy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj>O[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj>yS!^YOy%Qz;'S%Q;'S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;'S%Q;'S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;'S%Q;'S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%QjBUU`YOy%Qz![%Q![!]Bh!];'S%Q;'S;=`%c<%lO%QbBoSaQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjCQSkYOy%Qz;'S%Q;'S;=`%c<%lO%QhCcU!TWOy%Qz!_%Q!_!`Cu!`;'S%Q;'S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QlDaS!TW!hSOy%Qz;'S%Q;'S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;'S%Q;'S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjHQSmYOy%Qz;'S%Q;'S;=`%c<%lO%QnHcSl^Oy%Qz;'S%Q;'S;=`%c<%lO%QjHtSpYOy%Qz;'S%Q;'S;=`%c<%lO%QjIVSoYOy%Qz;'S%Q;'S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Q`I}P;=`<%l$q",tokenizers:[j,C,A,$,1,2,3,4,new r.LocalTokenGroup("m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~",28,129)],topRules:{StyleSheet:[0,6],Styles:[1,105]},specialized:[{term:124,get:e=>M[e]||-1},{term:125,get:e=>R[e]||-1},{term:4,get:e=>D[e]||-1},{term:25,get:e=>L[e]||-1},{term:123,get:e=>Z[e]||-1}],tokenPrec:1963});t.parser=X}}},javascript:{
11"package.json":function(e,t,r){r.exports={name:"@lezer/javascript",version:"1.5.4",main:"dist/index.cjs",module:"dist/index.js"}},dist:{
11"index.cjs":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=e("@lezer/lr");var i=e("@lezer/highlight");const o=316,s=317,a=1,l=2,u=3,f=4,c=318,h=320,d=321,p=5,g=6,m=0;const O=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];const v=125,y=59,b=47,w=42,x=43,S=45,_=60,k=44,Q=63,P=46,T=91;const A=new n.ContextTracker({start:false,shift(e,t){return t==p||t==g||t==h?e:t==d},strict:false});const $=new n.ExternalTokenizer((e,t)=>{let{next:r}=e;if(r==v||-1==r||t.context)e.acceptToken(c)},{contextual:true,fallback:true});const j=new n.ExternalTokenizer((e,t)=>{let{next:r}=e,n;if(O.indexOf(r)>-1)return;if(r==b&&((n=e.peek(1))==b||n==w))return;if(r!=v&&r!=y&&-1!=r&&!t.context)e.acceptToken(o)},{contextual:true});const C=new n.ExternalTokenizer((e,t)=>{if(e.next==T&&!t.context)e.acceptToken(s)},{contextual:true});const E=new n.ExternalTokenizer((e,t)=>{let{next:r}=e;if(r==x||r==S){e.advance();if(r==e.next){e.advance();let r=!t.context&&t.canShift(a);e.acceptToken(r?a:l)}}else if(r==Q&&e.peek(1)==P){e.advance();e.advance();if(e.next<48||e.next>57)e.acceptToken(u)}},{contextual:true});function M(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const R=new n.ExternalTokenizer((e,t)=>
11{if(e.next!=_||!t.dialectEnabled(m))return;e.advance();if(e.next==b)return;let r=0;while(O.indexOf(e.next)>-1){e.advance();r++}if(M(e.next,true)){e.advance();r++;while(M(e.next,false)){e.advance();r++}while(O.indexOf(e.next)>-1){e.advance();r++}if(e.next==k)return;for(let t=0;;t++){if(7==t){if(!M(e.next,true))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance();r++}}e.acceptToken(f,-r)});const D=i.styleTags({"get set async static":i.tags.modifier,"for while do if else switch try catch finally return throw break continue default case defer":i.tags.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":i.tags.operatorKeyword,"let var const using function class extends":i.tags.definitionKeyword,"import export from":i.tags.moduleKeyword,"with debugger new":i.tags.keyword,TemplateString:i.tags.special(i.tags.string),super:i.tags.atom,BooleanLiteral:i.tags.bool,this:i.tags.self,null:i.tags.null,Star:i.tags.modifier,VariableName:i.tags.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i.tags.function(i.tags.variableName),VariableDefinition:i.tags.definition(i.tags.variableName),Label:i.tags.labelName,PropertyName:i.tags.propertyName,PrivatePropertyName:i.tags.special(i.tags.propertyName),"CallExpression/MemberExpression/PropertyName":i.tags.function(i.tags.propertyName),"FunctionDeclaration/VariableDefinition":i.tags.function(i.tags.definition(i.tags.variableName)),"ClassDeclaration/VariableDefinition":i.tags.definition(i.tags.className),"NewExpression/VariableName":i.tags.className,PropertyDefinition:i.tags.definition(i.tags.propertyName),PrivatePropertyDefinition:i.tags.definition(i.tags.special(i.tags.propertyName)),UpdateOp:i.tags.updateOperator,"LineComment Hashbang":i.tags.lineComment,BlockComment:i.tags.blockComment,Number:i.tags.number,String:i.tags.string,Escape:i.tags.escape,ArithOp:i.tags.arithmeticOperator,LogicOp:i.tags.logicOperator,BitOp:i.tags.bitwiseOperator,CompareOp:i.tags.compareOperator,RegExp:i.tags.regexp,Equals:i.tags.definitionOperator,Arrow:i.tags.function(i.tags.punctuation),": Spread":i.tags.punctuation,"( )":i.tags.paren,"[ ]":i.tags.squareBracket,"{ }":i.tags.brace,"InterpolationStart InterpolationEnd":i.tags.special(i.tags.brace),".":i.tags.derefOperator,", ;":i.tags.separator,"@":i.tags.meta,TypeName:i.tags.typeName,TypeDefinition:i.tags.definition(i.tags.typeName),"type enum interface implements namespace module declare":i.tags.definitionKeyword,"abstract global Privacy readonly override":i.tags.modifier,"is keyof unique infer asserts":i.tags.operatorKeyword,JSXAttributeValue:i.tags.attributeValue,JSXText:i.tags.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i.tags.angleBracket,"JSXIdentifier JSXNameSpacedName":i.tags.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i.tags.attributeName,"JSXBuiltin/JSXIdentifier":i.tags.standard(i.tags.tagName)});const L={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546};const Z={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401};const X={__proto__:null,"<":193};const q=n.LRParser
vendor: 12,780 bytes, line 11
11.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`O'#G|O<]Q`O'#HOO9kQ`O'#HRO=SQ`O'#HUO>kQ`O'#CeO>{Q`O'#HcO?TQ`O'#HiO?TQ`O'#HkO`QlO'#HmO?TQ`O'#HoO?TQ`O'#HrO?YQ`O'#HxO?_Q!0LsO'#IOO%[QlO'#IQO?jQ!0LsO'#ISO?uQ!0LsO'#IUO9uQ!0LrO'#IWO@QQ!0MxO'#CiOASQpO'#DlQOQ`OOO%[QlO'#EQOAjQ`O'#ETO:dQMhO'#EnOAuQ`O'#EnOBQQ!bO'#FeOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Jv'#JvO%[QlO'#JvOOQO'#Jy'#JyOOQO'#Ih'#IhOCQQpO'#EgOOQ!0Lb'#Ef'#EfOOQ!0Lb'#J}'#J}OC|Q!0MSO'#EgODWQpO'#EWOOQO'#Jx'#JxODlQpO'#JyOEyQpO'#EWODWQpO'#EgPFWO&2DjO'#CbPOOO)CD})CD}OOOO'#I`'#I`OFcO#tO,59UOOQ!0Lh,59U,59UOOOO'#Ia'#IaOFqO&jO,59UOGPQ!L^O'#DcOOOO'#Ic'#IcOGWO#@ItO,59{OOQ!0Lf,59{,59{OGfQlO'#IdOGyQ`O'#JtOIxQ!fO'#JtO+}QlO'#JtOJPQ`O,5:ROJgQ`O'#EpOJtQ`O'#KTOKPQ`O'#KSOKPQ`O'#KSOKXQ`O,5;^OK^Q`O'#KROOQ!0Ln,5:^,5:^OKeQlO,5:^OMcQ!0MxO,5:fONSQ`O,5:nONmQ!0LrO'#KQONtQ`O'#KPO9eQ`O'#KPO! YQ`O'#KPO! bQ`O,5;]O! gQ`O'#KPO!#lQ!fO'#JsOOQ!0Lh'#Ci'#CiO%[QlO'#ESO!$[Q!fO,5:sOOQS'#Jz'#JzOOQO-E<j-E<jO9kQ`O,5=_O!$rQ`O,5=_O!$wQlO,5;ZO!&zQMhO'#EkO!(eQ`O,5;ZO!(jQlO'#DyO!(tQpO,5;dO!(|QpO,5;dO%[QlO,5;dOOQ['#FT'#FTOOQ['#FV'#FVO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eOOQ['#FZ'#FZO!)[QlO,5;tOOQ!0Lf,5;y,5;yOOQ!0Lf,5;z,5;zOOQ!0Lf,5;|,5;|O%[QlO'#IpO!+_Q!0LrO,5<iO%[QlO,5;eO!&zQMhO,5;eO!+|QMhO,5;eO!-nQMhO'#E^O%[QlO,5;wOOQ!0Lf,5;{,5;{O!-uQ,UO'#FjO!.rQ,UO'#KXO!.^Q,UO'#KXO!.yQ,UO'#KXOOQO'#KX'#KXO!/_Q,UO,5<SOOOW,5<`,5<`O!/pQlO'#FvOOOW'#Io'#IoO7VO7dO,5<QO!/wQ,UO'#FxOOQ!0Lf,5<Q,5<QO!0hQ$IUO'#CyOOQ!0Lh'#C}'#C}O!0{O#@ItO'#DRO!1iQMjO,5<eO!1pQ`O,5<hO!3YQ(CWO'#GXO!3jQ`O'#GYO!3oQ`O'#GYO!5_Q(CWO'#G^O!6dQpO'#GbOOQO'#Gn'#GnO!,TQMhO'#GmOOQO'#Gp'#GpO!,TQMhO'#GoO!7VQ$IUO'#JlOOQ!0Lh'#Jl'#JlO!7aQ`O'#JkO!7oQ`O'#JjO!7wQ`O'#CuOOQ!0Lh'#C{'#C{O!8YQ`O'#C}OOQ!0Lh'#DV'#DVOOQ!0Lh'#DX'#DXO!8_Q`O,5<eO1SQ`O'#DZO!,TQMhO'#GPO!,TQMhO'#GRO!8gQ`O'#GTO!8lQ`O'#GUO!3oQ`O'#G[O!,TQMhO'#GaO<]Q`O'#JkO!8qQ`O'#EqO!9`Q`O,5<gOOQ!0Lb'#Cr'#CrO!9hQ`O'#ErO!:bQpO'#EsOOQ!0Lb'#KR'#KRO!:iQ!0LrO'#KaO9uQ!0LrO,5=cO`QlO,5>tOOQ['#Jh'#JhOOQ[,5>u,5>uOOQ[-E<]-E<]O!<hQ!0MxO,5:bO!:]QpO,5:`O!?RQ!0MxO,5:jO%[QlO,5:jO!AiQ!0MxO,5:lOOQO,5@z,5@zO!BYQMhO,5=_O!BhQ!0LrO'#JiO9`Q`O'#JiO!ByQ!0LrO,59ZO!CUQpO,59ZO!C^QMhO,59ZO:dQMhO,59ZO!CiQ`O,5;ZO!CqQ`O'#HbO!DVQ`O'#KdO%[QlO,5;}O!:]QpO,5<PO!D_Q`O,5=zO!DdQ`O,5=zO!DiQ`O,5=zO!DwQ`O,5=zO9uQ!0LrO,5=zO<]Q`O,5=jOOQO'#Cy'#CyO!EOQpO,5=gO!EWQMhO,5=hO!EcQ`O,5=jO!EhQ!bO,5=mO!EpQ`O'#K`O?YQ`O'#HWO9kQ`O'#HYO!EuQ`O'#HYO:dQMhO'#H[O!EzQ`O'#H[OOQ[,5=p,5=pO!FPQ`O'#H]O!FbQ`O'#CoO!FgQ`O,59PO!FqQ`O,59PO!HvQlO,59POOQ[,59P,59PO!IWQ!0LrO,59PO%[QlO,59PO!KcQlO'#HeOOQ['#Hf'#HfOOQ['#Hg'#HgO`QlO,5=}O!KyQ`O,5=}O`QlO,5>TO`QlO,5>VO!LOQ`O,5>XO`QlO,5>ZO!LTQ`O,5>^O!LYQlO,5>dOOQ[,5>j,5>jO%[QlO,5>jO9uQ!0LrO,5>lOOQ[,5>n,5>nO#!dQ`O,5>nOOQ[,5>p,5>pO#!dQ`O,5>pOOQ[,5>r,5>rO##QQpO'#D_O%[QlO'#JvO##sQpO'#JvO##}QpO'#DmO#$`QpO'#DmO#&qQlO'#DmO#&xQ`O'#JuO#'QQ`O,5:WO#'VQ`O'#EtO#'eQ`O'#KUO#'mQ`O,5;_O#'rQpO'#DmO#(PQpO'#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#(WQ`O,5:oO?YQ`O,5;YO!CUQpO,5;YO!C^QMhO,5;YO:dQMhO,5;YO#(`Q`O,5@bO#(eQ07dO,5:sOOQO-E<f-E<fO#)kQ!0MSO,5;RODWQpO,5:rO#)uQpO,5:rODWQpO,5;RO!ByQ!0LrO,5:rOOQ!0Lb'#Ej'#EjOOQO,5;R,5;RO%[QlO,5;RO#*SQ!0LrO,5;RO#*_Q!0LrO,5;RO!CUQpO,5:rOOQO,5;X,5;XO#*mQ!0LrO,5;RPOOO'#I^'#I^P#+RO&2DjO,58|POOO,58|,58|OOOO-E<^-E<^OOQ!0Lh1G.p1G.pOOOO-E<_-E<_OOOO,59},59}O#+^Q!bO,59}OOOO-E<a-E<aOOQ!0Lf1G/g1G/gO#+cQ!fO,5?OO+}QlO,5?OOOQO,5?U,5?UO#+mQlO'#IdOOQO-E<b-E<bO#+zQ`O,5@`O#,SQ!fO,5@`O#,ZQ`O,5@nOOQ!0Lf1G/m1G/mO%[QlO,5@oO#,cQ`O'#IjOOQO-E<h-E<hO#,ZQ`O,5@nOOQ!0Lb1G0x1G0xOOQ!0Ln1G/x1G/xOOQ!0Ln1G0Y1G0YO%[QlO,5@lO#,wQ!0LrO,5@lO#-YQ!0LrO,5@lO#-aQ`O,5@kO9eQ`O,5@kO#-iQ`O,5@kO#-wQ`O'#ImO#-aQ`O,5@kOOQ!0Lb1G0w1G0wO!(tQpO,5:uO!)PQpO,5:uOOQS,5:w,5:wO#.iQdO,5:wO#.qQMhO1G2yO9kQ`O1G2yOOQ!0Lf1G0u1G0uO#/PQ!0MxO1G0uO#0UQ!0MvO,5;VOOQ!0Lh'#GW'#GWO#0rQ!0MzO'#JlO!$wQlO1G0uO#2}Q!fO'#JwO%[QlO'#JwO#3XQ`O,5:eOOQ!0Lh'#D_'#D_OOQ!0Lf1G1O1G1OO%[QlO1G1OOOQ!0Lf1G1f1G1fO#3^Q`O1G1OO#5rQ!0MxO1G1PO#5yQ!0MxO1G1PO#8aQ!0MxO1G1PO#8hQ!0MxO1G1PO#;OQ!0MxO1G1PO#=fQ!0MxO1G1PO#=mQ!0MxO1G1PO#=tQ!0MxO1G1PO#@[Q!0MxO1G1PO#@cQ!0MxO1G1PO#BpQ?MtO'#CiO#DkQ?MtO1G1`O#DrQ?MtO'#JsO#EVQ!0MxO,5?[OOQ!0Lb-E<n-E<nO#GdQ!0MxO1G1PO#HaQ!0MzO1G1POOQ!0Lf1G1P1G1PO#IdQMjO'#J|O#InQ`O,5:xO#IsQ!0MxO1G1cO#JgQ,UO,5<WO#JoQ,UO,5<XO#JwQ,UO'#FoO#K`Q`O'#FnOOQO'#KY'#KYOOQO'#In'#InO#KeQ,UO1G1nOOQ!0Lf1G1n1G1nOOOW1G1y1G1yO#KvQ?MtO'#JrO#LQQ`O,5<bO!)[QlO,5<bOOOW-E<m-E<mOOQ!0Lf1G1l1G1lO#LVQpO'#KXOOQ!0Lf,5<d,5<dO#L_QpO,5<dO#LdQMhO'#DTOOOO'#Ib'#IbO#LkO#@ItO,59mOOQ!0Lh,59m,59mO%[QlO1G2PO!8lQ`O'#IrO#LvQ`O,5<zOOQ!0Lh,5<w,5<wO!,TQMhO'#IuO#MdQMjO,5=XO!,TQMhO'#IwO#NVQMjO,5=ZO!&zQMhO,5=]OOQO1G2S1G2SO#NaQ!dO'#CrO#NtQ(CWO'#ErO$ |QpO'#GbO$!dQ!dO,5<sO$!kQ`O'#K[O9eQ`O'#K[O$!yQ`O,5<uO$#aQ!dO'#C{O!,TQMhO,5<tO$#kQ`O'#GZO$$PQ`O,5<tO$$UQ!dO'#GWO$$cQ!dO'#K]O$$mQ`O'#K]O!&zQMhO'#K]O$$rQ`O,5<xO$$wQlO'#JvO$%RQpO'#GcO#$`QpO'#GcO$%dQ`O'#GgO!3oQ`O'#GkO$%iQ!0LrO'#ItO$%tQpO,5<|OOQ!0Lp,5<|,5<|O$%{QpO'#GcO$&YQpO'#GdO$&kQpO'#GdO$&pQMjO,5=XO$'QQMjO,5=ZOOQ!0Lh,5=^,5=^O!,TQMhO,5@VO!,TQMhO,5@VO$'bQ`O'#IyO$'vQ`O,5@UO$(OQ`O,59aOOQ!0Lh,59i,59iO$(TQ`O,5@VO$)TQ$IYO,59uOOQ!0Lh'#Jp'#JpO$)vQMjO,5<kO$*iQMjO,5<mO@zQ`O,5<oOOQ!0Lh,5<p,5<pO$*sQ`O,5<vO$*xQMjO,5<{O$+YQ`O'#KPO!$wQlO1G2RO$+_Q`O1G2RO9eQ`O'#KSO9eQ`O'#EtO%[QlO'#EtO9eQ`O'#I{O$+dQ!0LrO,5@{OOQ[1G2}1G2}OOQ[1G4`1G4`OOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$-fQ!0MxO1G0UOOQ[1G2y1G2yO!&zQMhO1G2yO%[QlO1G2yO#.tQ`O1G2yO$/jQMhO'#EkOOQ!0Lb,5@T,5@TO$/wQ!0LrO,5@TOOQ[1G.u1G.uO!ByQ!0LrO1G.uO!CUQpO1G.uO!C^QMhO1G.uO$0YQ`O1G0uO$0_Q`O'#CiO$0jQ`O'#KeO$0rQ`O,5=|O$0wQ`O'#KeO$0|Q`O'#KeO$1[Q`O'#JRO$1jQ`O,5AOO$1rQ!fO1G1iOOQ!0Lf1G1k1G1kO9kQ`O1G3fO@zQ`O1G3fO$1yQ`O1G3fO$2OQ`O1G3fO!DiQ`O1G3fO9uQ!0LrO1G3fOOQ[1G3f1G3fO!EcQ`O1G3UO!&zQMhO1G3RO$2TQ`O1G3ROOQ[1G3S1G3SO!&zQMhO1G3SO$2YQ`O1G3SO$2bQpO'#HQOOQ[1G3U1G3UO!6_QpO'#I}O!EhQ!bO1G3XOOQ[1G3X1G3XOOQ[,5=r,5=rO$2jQMhO,5=tO9kQ`O,5=tO$%dQ`O,5=vO9`Q`O,5=vO!CUQpO,5=vO!C^QMhO,5=vO:dQMhO,5=vO$2xQ`O'#KcO$3TQ`O,5=wOOQ[1G.k1G.kO$3YQ!0LrO1G.kO@zQ`O1G.kO$3eQ`O1G.kO9uQ!0LrO1G.kO$5mQ!fO,5AQO$5zQ`O,5AQO9eQ`O,5AQO$6VQlO,5>PO$6^Q`O,5>POOQ[1G3i1G3iO`QlO1G3iOOQ[1G3o1G3oOOQ[1G3q1G3qO?TQ`O1G3sO$6cQlO1G3uO$:gQlO'#HtOOQ[1G3x1G3xO$:tQ`O'#HzO?YQ`O'#H|OOQ[1G4O1G4OO$:|QlO1G4OO9uQ!0LrO1G4UOOQ[1G4W1G4WOOQ!0Lb'#G_'#G_O9uQ!0LrO1G4YO9uQ!0LrO1G4[O$?TQ`O,5@bO!)[QlO,5;`O9eQ`O,5;`O?YQ`O,5:XO!)[QlO,5:XO!CUQpO,5:XO$?YQ?MtO,5:XOOQO,5;`,5;`O$?dQpO'#IeO$?zQ`O,5@aOOQ!0Lf1G/r1G/rO$@SQpO'#IkO$@^Q`O,5@pOOQ!0Lb1G0y1G0yO#$`QpO,5:XOOQO'#Ig'#IgO$@fQpO,5:qOOQ!0Ln,5:q,5:qO#(ZQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO?YQ`O1G0tO!CUQpO1G0tO!C^QMhO1G0tOOQ!0Lb1G5|1G5|O!ByQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$@mQ!0LrO1G0mO$@xQ!0LrO1G0mO!CUQpO1G0^ODWQpO1G0^O$AWQ!0LrO1G0mOOQO1G0^1G0^O$AlQ!0MxO1G0mPOOO-E<[-E<[POOO1G.h1G.hOOOO1G/i1G/iO$AvQ!bO,5<iO$BOQ!fO1G4jOOQO1G4p1G4pO%[QlO,5?OO$BYQ`O1G5zO$BbQ`O1G6YO$BjQ!fO1G6ZO9eQ`O,5?UO$BtQ!0MxO1G6WO%[QlO1G6WO$CUQ!0LrO1G6WO$CgQ`O1G6VO$CgQ`O1G6VO9eQ`O1G6VO$CoQ`O,5?XO9eQ`O,5?XOOQO,5?X,5?XO$DTQ`O,5?XO$+YQ`O,5?XOOQO-E<k-E<kOOQS1G0a1G0aOOQS1G0c1G0cO#.lQ`O1G0cOOQ[7+(e7+(eO!&zQMhO7+(eO%[QlO7+(eO$DcQ`O7+(eO$DnQMhO7+(eO$D|Q!0MzO,5=XO$GXQ!0MzO,5=ZO$IdQ!0MzO,5=XO$KuQ!0MzO,5=ZO$NWQ!0MzO,59uO%!]Q!0MzO,5<kO%$hQ!0MzO,5<mO%&sQ!0MzO,5<{OOQ!0Lf7+&a7+&aO%)UQ!0MxO7+&aO%)xQlO'#IfO%*VQ`O,5@cO%*_Q!fO,5@cOOQ!0Lf1G0P1G0PO%*iQ`O7+&jOOQ!0Lf7+&j7+&jO%*nQ?MtO,5:fO%[QlO7+&zO%*xQ?MtO,5:bO%+VQ?MtO,5:jO%+aQ?MtO,5:lO%+kQMhO'#IiO%+uQ`O,5@hOOQ!0Lh1G0d1G0dOOQO1G1r1G1rOOQO1G1s1G1sO%+}Q!jO,5<ZO!)[QlO,5<YOOQO-E<l-E<lOOQ!0Lf7+'Y7+'YOOOW7+'e7+'eOOOW1G1|1G1|O%,YQ`O1G1|OOQ!0Lf1G2O1G2OOOOO,59o,59oO%,_Q!dO,59oOOOO-E<`-E<`OOQ!0Lh1G/X1G/XO%,fQ!0MxO7+'kOOQ!0Lh,5?^,5?^O%-YQMhO1G2fP%-aQ`O'#IrPOQ!0Lh-E<p-E<pO%-}QMjO,5?aOOQ!0Lh-E<s-E<sO%.pQMjO,5?cOOQ!0Lh-E<u-E<uO%.zQ!dO1G2wO%/RQ!dO'#CrO%/iQMhO'#KSO$$wQlO'#JvOOQ!0Lh1G2_1G2_O%/sQ`O'#IqO%0[Q`O,5@vO%0[Q`O,5@vO%0dQ`O,5@vO%0oQ`O,5@vOOQO1G2a1G2aO%0}QMjO1G2`O$+YQ`O'#K[O!,TQMhO1G2`O%1_Q(CWO'#IsO%1lQ`O,5@wO!&zQMhO,5@wO%1tQ!dO,5@wOOQ!0Lh1G2d1G2dO%4UQ!fO'#CiO%4`Q`O,5=POOQ!0Lb,5<},5<}O%4hQpO,5<}OOQ!0Lb,5=O,5=OOCwQ`O,5<}O%4sQpO,5<}OOQ!0Lb,5=R,5=RO$+YQ`O,5=VOOQO,5?`,5?`OOQO-E<r-E<rOOQ!0Lp1G2h1G2hO#$`QpO,5<}O$$wQlO,5=PO%5RQ`O,5=OO%5^QpO,5=OO!,TQMhO'#IuO%6WQMjO1G2sO!,TQMhO'#IwO%6yQMjO1G2uO%7TQMjO1G5qO%7_QMjO1G5qOOQO,5?e,5?eOOQO-E<w-E<wOOQO1G.{1G.{O!,TQMhO1G5qO!,TQMhO1G5qO!:]QpO,59wO%[QlO,59wOOQ!0Lh,5<j,5<jO%7lQ`O1G2ZO!,TQMhO1G2bO%7qQ!0MxO7+'mOOQ!0Lf7+'m7+'mO!$wQlO7+'mO%8eQ`O,5;`OOQ!0Lb,5?g,5?gOOQ!0Lb-E<y-E<yO%8jQ!dO'#K^O#(ZQ`O7+(eO4UQ!fO7+(eO$DfQ`O7+(eO%8tQ!0MvO'#CiO%9XQ!0MvO,5=SO%9lQ`O,5=SO%9tQ`O,5=SOOQ!0Lb1G5o1G5oOOQ[7+$a7+$aO!ByQ!0LrO7+$aO!CUQpO7+$aO!$wQlO7+&aO%9yQ`O'#JQO%:bQ`O,5APOOQO1G3h1G3hO9kQ`O,5APO%:bQ`O,5APO%:jQ`O,5APOOQO,5?m,5?mOOQO-E=P-E=POOQ!0Lf7+'T7+'TO%:oQ`O7+)QO9uQ!0LrO7+)QO9kQ`O7+)QO@zQ`O7+)QO%:tQ`O7+)QOOQ[7+)Q7+)QOOQ[7+(p7+(pO%:yQ!0MvO7+(mO!&zQMhO7+(mO!E^Q`O7+(nOOQ[7+(n7+(nO!&zQMhO7+(nO%;TQ`O'#KbO%;`Q`O,5=lOOQO,5?i,5?iOOQO-E<{-E<{OOQ[7+(s7+(sO%<rQpO'#HZOOQ[1G3`1G3`O!&zQMhO1G3`O%[QlO1G3`O%<yQ`O1G3`O%=UQMhO1G3`O9uQ!0LrO1G3bO$%dQ`O1G3bO9`Q`O1G3bO!CUQpO1G3bO!C^QMhO1G3bO%=dQ`O'#JPO%=xQ`O,5@}O%>QQpO,5@}OOQ!0Lb1G3c1G3cOOQ[7+$V7+$VO@zQ`O7+$VO9uQ!0LrO7+$VO%>]Q`O7+$VO%[QlO1G6lO%[QlO1G6mO%>bQ!0LrO1G6lO%>lQlO1G3kO%>sQ`O1G3kO%>xQlO1G3kOOQ[7+)T7+)TO9uQ!0LrO7+)_O`QlO7+)aOOQ['#Kh'#KhOOQ['#JS'#JSO%?PQlO,5>`OOQ[,5>`,5>`O%[QlO'#HuO%?^Q`O'#HwOOQ[,5>f,5>fO9eQ`O,5>fOOQ[,5>h,5>hOOQ[7+)j7+)jOOQ[7+)p7+)pOOQ[7+)t7+)tOOQ[7+)v7+)vO%?cQpO1G5|O%?}Q?MtO1G0zO%@XQ`O1G0zOOQO1G/s1G/sO%@dQ?MtO1G/sO?YQ`O1G/sO!)[QlO'#DmOOQO,5?P,5?POOQO-E<c-E<cOOQO,5?V,5?VOOQO-E<i-E<iO!CUQpO1G/sOOQO-E<e-E<eOOQ!0Ln1G0]1G0]OOQ!0Lf7+%u7+%uO#(ZQ`O7+%uOOQ!0Lf7+&`7+&`O?YQ`O7+&`O!CUQpO7+&`OOQO7+%x7+%xO$AlQ!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%@nQ!0LrO7+&XO!ByQ!0LrO7+%xO!CUQpO7+%xO%@yQ!0LrO7+&XO%AXQ!0MxO7++rO%[QlO7++rO%AiQ`O7++qO%AiQ`O7++qOOQO1G4s1G4sO9eQ`O1G4sO%AqQ`O1G4sOOQS7+%}7+%}O#(ZQ`O<<LPO4UQ!fO<<LPO%BPQ`O<<LPOOQ[<<LP<<LPO!&zQMhO<<LPO%[QlO<<LPO%BXQ`O<<LPO%BdQ!0MzO,5?aO%DoQ!0MzO,5?cO%FzQ!0MzO1G2`O%I]Q!0MzO1G2sO%KhQ!0MzO1G2uO%MsQ!fO,5?QO%[QlO,5?QOOQO-E<d-E<dO%M}Q`O1G5}OOQ!0Lf<<JU<<JUO%NVQ?MtO1G0uO&!^Q?MtO1G1PO&!eQ?MtO1G1PO&$fQ?MtO1G1PO&$mQ?MtO1G1PO&&nQ?MtO1G1PO&(oQ?MtO1G1PO&(vQ?MtO1G1PO&(}Q?MtO1G1PO&+OQ?MtO1G1PO&+VQ?MtO1G1PO&+^Q!0MxO<<JfO&-UQ?MtO1G1PO&.RQ?MvO1G1PO&/UQ?MvO'#JlO&1[Q?MtO1G1cO&1iQ?MtO1G0UO&1sQMjO,5?TOOQO-E<g-E<gO!)[QlO'#FqOOQO'#KZ'#KZOOQO1G1u1G1uO&1}Q`O1G1tO&2SQ?MtO,5?[OOOW7+'h7+'hOOOO1G/Z1G/ZO&2^Q!dO1G4xOOQ!0Lh7+(Q7+(QP!&zQMhO,5?^O!,TQMhO7+(cO&2eQ`O,5?]O9eQ`O,5?]O$+YQ`O,5?]OOQO-E<o-E<oO&2sQ`O1G6bO&2sQ`O1G6bO&2{Q`O1G6bO&3WQMjO7+'zO&3hQ!dO,5?_O&3rQ`O,5?_O!&zQMhO,5?_OOQO-E<q-E<qO&3wQ!dO1G6cO&4RQ`O1G6cO&4ZQ`O1G2kO!&zQMhO1G2kOOQ!0Lb1G2i1G2iOOQ!0Lb1G2j1G2jO%4hQpO1G2iO!CUQpO1G2iOCwQ`O1G2iOOQ!0Lb1G2q1G2qO&4`QpO1G2iO&4nQ`O1G2kO$+YQ`O1G2jOCwQ`O1G2jO$$wQlO1G2kO&4vQ`O1G2jO&5jQMjO,5?aOOQ!0Lh-E<t-E<tO&6]QMjO,5?cOOQ!0Lh-E<v-E<vO!,TQMhO7++]O&6gQMjO7++]O&6qQMjO7++]OOQ!0Lh1G/c1G/cO&7OQ`O1G/cOOQ!0Lh7+'u7+'uO&7TQMjO7+'|O&7eQ!0MxO<<KXOOQ!0Lf<<KX<<KXO&8XQ`O1G0zO!&zQMhO'#IzO&8^Q`O,5@xO&:`Q!fO<<LPO!&zQMhO1G2nO&:gQ!0LrO1G2nOOQ[<<G{<<G{O!ByQ!0LrO<<G{O&:xQ!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?l,5?lO&;lQ`O,5?lO&;qQ`O,5?lOOQO-E=O-E=OO&<PQ`O1G6kO&<PQ`O1G6kO9kQ`O1G6kO@zQ`O<<LlOOQ[<<Ll<<LlO&<XQ`O<<LlO9uQ!0LrO<<LlO9kQ`O<<LlOOQ[<<LX<<LXO%:yQ!0MvO<<LXOOQ[<<LY<<LYO!E^Q`O<<LYO&<^QpO'#I|O&<iQ`O,5@|O!)[QlO,5@|OOQ[1G3W1G3WOOQO'#JO'#JOO9uQ!0LrO'#JOO&<qQpO,5=uOOQ[,5=u,5=uO&<xQpO'#EgO&=PQpO'#GeO&=UQ`O7+(zO&=ZQ`O7+(zOOQ[7+(z7+(zO!&zQMhO7+(zO%[QlO7+(zO&=cQ`O7+(zOOQ[7+(|7+(|O9uQ!0LrO7+(|O$%dQ`O7+(|O9`Q`O7+(|O!CUQpO7+(|O&=nQ`O,5?kOOQO-E<}-E<}OOQO'#H^'#H^O&=yQ`O1G6iO9uQ!0LrO<<GqOOQ[<<Gq<<GqO@zQ`O<<GqO&>RQ`O7+,WO&>WQ`O7+,XO%[QlO7+,WO%[QlO7+,XOOQ[7+)V7+)VO&>]Q`O7+)VO&>bQlO7+)VO&>iQ`O7+)VOOQ[<<Ly<<LyOOQ[<<L{<<L{OOQ[-E=Q-E=QOOQ[1G3z1G3zO&>nQ`O,5>aOOQ[,5>c,5>cO&>sQ`O1G4QO9eQ`O7+&fO!)[QlO7+&fOOQO7+%_7+%_O&>xQ?MtO1G6ZO?YQ`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO?YQ`O<<IzOOQO<<Is<<IsO$AlQ!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!ByQ!0LrO<<IdO&?SQ!0LrO<<IsO&?_Q!0MxO<= ^O&?oQ`O<= ]OOQO7+*_7+*_O9eQ`O7+*_OOQ[ANAkANAkO&?wQ!fOANAkO!&zQMhOANAkO#(ZQ`OANAkO4UQ!fOANAkO&@OQ`OANAkO%[QlOANAkO&@WQ!0MzO7+'zO&BiQ!0MzO,5?aO&DtQ!0MzO,5?cO&GPQ!0MzO7+'|O&IbQ!fO1G4lO&IlQ?MtO7+&aO&KpQ?MvO,5=XO&MwQ?MvO,5=ZO&NXQ?MvO,5=XO&NiQ?MvO,5=ZO&NyQ?MvO,59uO'#PQ?MvO,5<kO'%SQ?MvO,5<mO''hQ?MvO,5<{O')^Q?MtO7+'kO')kQ?MtO7+'mO')xQ`O,5<]OOQO7+'`7+'`OOQ!0Lh7+*d7+*dO')}QMjO<<K}OOQO1G4w1G4wO'*UQ`O1G4wO'*aQ`O1G4wO'*oQ`O7++|O'*oQ`O7++|O!&zQMhO1G4yO'*wQ!dO1G4yO'+RQ`O7++}O'+ZQ`O7+(VO'+fQ!dO7+(VOOQ!0Lb7+(T7+(TOOQ!0Lb7+(U7+(UO!CUQpO7+(TOCwQ`O7+(TO'+pQ`O7+(VO!&zQMhO7+(VO$+YQ`O7+(UO'+uQ`O7+(VOCwQ`O7+(UO'+}QMjO<<NwO!,TQMhO<<NwOOQ!0Lh7+$}7+$}O',XQ!dO,5?fOOQO-E<x-E<xO',cQ!0MvO7+(YO!&zQMhO7+(YOOQ[AN=gAN=gO9kQ`O1G5WOOQO
vendor: 40,221 bytes, line 11
111G5W1G5WO',sQ`O1G5WO',xQ`O7+,VO',xQ`O7+,VO9uQ!0LrOANBWO@zQ`OANBWOOQ[ANBWANBWO'-QQ`OANBWOOQ[ANAsANAsOOQ[ANAtANAtO'-VQ`O,5?hOOQO-E<z-E<zO'-bQ?MtO1G6hOOQO,5?j,5?jOOQO-E<|-E<|OOQ[1G3a1G3aO'-lQ`O,5=POOQ[<<Lf<<LfO!&zQMhO<<LfO&=UQ`O<<LfO'-qQ`O<<LfO%[QlO<<LfOOQ[<<Lh<<LhO9uQ!0LrO<<LhO$%dQ`O<<LhO9`Q`O<<LhO'-yQpO1G5VO'.UQ`O7+,TOOQ[AN=]AN=]O9uQ!0LrOAN=]OOQ[<= r<= rOOQ[<= s<= sO'.^Q`O<= rO'.cQ`O<= sOOQ[<<Lq<<LqO'.hQ`O<<LqO'.mQlO<<LqOOQ[1G3{1G3{O?YQ`O7+)lO'.tQ`O<<JQO'/PQ?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$AlQ!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<My<<MyOOQ[G27VG27VO!&zQMhOG27VO#(ZQ`OG27VO'/ZQ!fOG27VO4UQ!fOG27VO'/bQ`OG27VO'/jQ?MtO<<JfO'/wQ?MvO1G2`O'1mQ?MvO,5?aO'3pQ?MvO,5?cO'5sQ?MvO1G2sO'7vQ?MvO1G2uO'9yQ?MtO<<KXO':WQ?MtO<<I{OOQO1G1w1G1wO!,TQMhOANAiOOQO7+*c7+*cO':eQ`O7+*cO':pQ`O<= hO':xQ!dO7+*eOOQ!0Lb<<Kq<<KqO$+YQ`O<<KqOCwQ`O<<KqO';SQ`O<<KqO!&zQMhO<<KqOOQ!0Lb<<Ko<<KoO!CUQpO<<KoO';_Q!dO<<KqOOQ!0Lb<<Kp<<KpO';iQ`O<<KqO!&zQMhO<<KqO$+YQ`O<<KpO';nQMjOANDcO';xQ!0MvO<<KtOOQO7+*r7+*rO9kQ`O7+*rO'<YQ`O<= qOOQ[G27rG27rO9uQ!0LrOG27rO@zQ`OG27rO!)[QlO1G5SO'<bQ`O7+,SO'<jQ`O1G2kO&=UQ`OANBQOOQ[ANBQANBQO!&zQMhOANBQO'<oQ`OANBQOOQ[ANBSANBSO9uQ!0LrOANBSO$%dQ`OANBSOOQO'#H_'#H_OOQO7+*q7+*qOOQ[G22wG22wOOQ[ANE^ANE^OOQ[ANE_ANE_OOQ[ANB]ANB]O'<wQ`OANB]OOQ[<<MW<<MWO!)[QlOAN?lOOQOG24yG24yO$AlQ!0MxOG24yO#(ZQ`OLD,qOOQ[LD,qLD,qO!&zQMhOLD,qO'<|Q!fOLD,qO'=TQ?MvO7+'zO'>yQ?MvO,5?aO'@|Q?MvO,5?cO'CPQ?MvO7+'|O'DuQMjOG27TOOQO<<M}<<M}OOQ!0LbANA]ANA]O$+YQ`OANA]OCwQ`OANA]O'EVQ!dOANA]OOQ!0LbANAZANAZO'E^Q`OANA]O!&zQMhOANA]O'EiQ!dOANA]OOQ!0LbANA[ANA[OOQO<<N^<<N^OOQ[LD-^LD-^O9uQ!0LrOLD-^O'EsQ?MtO7+*nOOQO'#Gf'#GfOOQ[G27lG27lO&=UQ`OG27lO!&zQMhOG27lOOQ[G27nG27nO9uQ!0LrOG27nOOQ[G27wG27wO'E}Q?MtOG25WOOQOLD*eLD*eOOQ[!$(!]!$(!]O#(ZQ`O!$(!]O!&zQMhO!$(!]O'FXQ!0MzOG27TOOQ!0LbG26wG26wO$+YQ`OG26wO'HjQ`OG26wOCwQ`OG26wO'HuQ!dOG26wO!&zQMhOG26wOOQ[!$(!x!$(!xOOQ[LD-WLD-WO&=UQ`OLD-WOOQ[LD-YLD-YOOQ[!)9Ew!)9EwO#(ZQ`O!)9EwOOQ!0LbLD,cLD,cO$+YQ`OLD,cOCwQ`OLD,cO'H|Q`OLD,cO'IXQ!dOLD,cOOQ[!$(!r!$(!rOOQ[!.K;c!.K;cO'I`Q?MvOG27TOOQ!0Lb!$( }!$( }O$+YQ`O!$( }OCwQ`O!$( }O'KUQ`O!$( }OOQ!0Lb!)9Ei!)9EiO$+YQ`O!)9EiOCwQ`O!)9EiOOQ!0Lb!.K;T!.K;TO$+YQ`O!.K;TOOQ!0Lb!4/0o!4/0oO!)[QlO'#DzO1PQ`O'#EXO'KaQ!fO'#JrO'KhQ!L^O'#DvO'KoQlO'#EOO'KvQ!fO'#CiO'N^Q!fO'#CiO!)[QlO'#EQO'NnQlO,5;ZO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO'#IpO(!qQ`O,5<iO!)[QlO,5;eO(!yQMhO,5;eO($dQMhO,5;eO!)[QlO,5;wO!&zQMhO'#GmO(!yQMhO'#GmO!&zQMhO'#GoO(!yQMhO'#GoO1SQ`O'#DZO1SQ`O'#DZO!&zQMhO'#GPO(!yQMhO'#GPO!&zQMhO'#GRO(!yQMhO'#GRO!&zQMhO'#GaO(!yQMhO'#GaO!)[QlO,5:jO($kQpO'#D_O($uQpO'#JvO!)[QlO,5@oO'NnQlO1G0uO(%PQ?MtO'#CiO!)[QlO1G2PO!&zQMhO'#IuO(!yQMhO'#IuO!&zQMhO'#IwO(!yQMhO'#IwO(%ZQ!dO'#CrO!&zQMhO,5<tO(!yQMhO,5<tO'NnQlO1G2RO!)[QlO7+&zO!&zQMhO1G2`O(!yQMhO1G2`O!&zQMhO'#IuO(!yQMhO'#IuO!&zQMhO'#IwO(!yQMhO'#IwO!&zQMhO1G2bO(!yQMhO1G2bO'NnQlO7+'mO'NnQlO7+&aO!&zQMhOANAiO(!yQMhOANAiO(%nQ`O'#EoO(%sQ`O'#EoO(%{Q`O'#F]O(&QQ`O'#EyO(&VQ`O'#KTO(&bQ`O'#KRO(&mQ`O,5;ZO(&rQMjO,5<eO(&yQ`O'#GYO('OQ`O'#GYO('TQ`O,5<eO(']Q`O,5<gO('eQ`O,5;ZO('mQ?MtO1G1`O('tQ`O,5<tO('yQ`O,5<tO((OQ`O,5<vO((TQ`O,5<vO((YQ`O1G2RO((_Q`O1G0uO((dQMjO<<K}O((kQMjO<<K}O((rQMhO'#F|O9`Q`O'#F{OAuQ`O'#EnO!)[QlO,5;tO!3oQ`O'#GYO!3oQ`O'#GYO!3oQ`O'#G[O!3oQ`O'#G[O!,TQMhO7+(cO!,TQMhO7+(cO%.zQ!dO1G2wO%.zQ!dO1G2wO!&zQMhO,5=]O!&zQMhO,5=]",stateData:"()x~O'|OS'}OSTOS(ORQ~OPYOQYOSfOY!VOaqOdzOeyOl!POpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!uwO!xxO!|]O$W|O$niO%h}O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO&W!WO&^!XO&`!YO&b!ZO&d![O&g!]O&m!^O&s!_O&u!`O&w!aO&y!bO&{!cO(TSO(VTO(YUO(aVO(o[O~OWtO~P`OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa!wOs!nO!S!oO!b!yO!c!vO!d!vO!|<VO#T!pO#U!pO#V!xO#W!pO#X!pO#[!zO#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O(O!{O~OP]XR]X[]Xa]Xj]Xr]X!Q]X!S]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X'z]X(a]X(r]X(y]X(z]X~O!g%RX~P(qO_!}O(V#PO(W!}O(X#PO~O_#QO(X#PO(Y#PO(Z#QO~Ox#SO!U#TO(b#TO(c#VO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T<ZO(VTO(YUO(aVO(o[O~O![#ZO!]#WO!Y(hP!Y(vP~P+}O!^#cO~P`OPYOQYOSfOd!jOe!iOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(VTO(YUO(aVO(o[O~Op#mO![#iO!|]O#i#lO#j#iO(T<[O!k(sP~P.iO!l#oO(T#nO~O!x#sO!|]O%h#tO~O#k#uO~O!g#vO#k#uO~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!]$_O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa(fX'z(fX'w(fX!k(fX!Y(fX!_(fX%i(fX!g(fX~P1qO#S$dO#`$eO$Q$eOP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX!_(gX%i(gX~Oa(gX'z(gX'w(gX!Y(gX!k(gXv(gX!g(gX~P4UO#`$eO~O$]$hO$_$gO$f$mO~OSfO!_$nO$i$oO$k$qO~Oh%VOj%dOk%dOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T$sO(VTO(YUO(a$uO(y$}O(z%POg(^P~Ol%[O~P7eO!l%eO~O!S%hO!_%iO(T%gO~O!g%mO~Oa%nO'z%nO~O!Q%rO~P%[O(U!lO~P%[O%n%vO~P%[Oh%VO!l%eO(T%gO(U!lO~Oe%}O!l%eO(T%gO~Oj$RO~O!_&PO(T%gO(U!lO(VTO(YUO`)WP~O!Q&SO!l&RO%j&VO&T&WO~P;SO!x#sO~O%s&YO!S)SX!_)SX(T)SX~O(T&ZO~Ol!PO!u&`O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO~Od&eOe&dO!x&bO%h&cO%{&aO~P<bOd&hOeyOl!PO!_&gO!u&`O!xxO!|]O%h}O%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO~Ob&kO#`&nO%j&iO(U!lO~P=gO!l&oO!u&sO~O!l#oO~O!_XO~Oa%nO'x&{O'z%nO~Oa%nO'x'OO'z%nO~Oa%nO'x'QO'z%nO~O'w]X!Y]Xv]X!k]X&[]X!_]X%i]X!g]X~P(qO!b'_O!c'WO!d'WO(U!lO(VTO(YUO~Os'UO!S'TO!['XO(e'SO!^(iP!^(xP~P@nOn'bO!_'`O(T%gO~Oe'gO!l%eO(T%gO~O!Q&SO!l&RO~Os!nO!S!oO!|<VO#T!pO#U!pO#W!pO#X!pO(U!lO(VTO(YUO(e!mO(o!sO~O!b'mO!c'lO!d'lO#V!pO#['nO#]'nO~PBYOa%nOh%VO!g#vO!l%eO'z%nO(r'pO~O!p'tO#`'rO~PChOs!nO!S!oO(VTO(YUO(e!mO(o!sO~O!_XOs(mX!S(mX!b(mX!c(mX!d(mX!|(mX#T(mX#U(mX#V(mX#W(mX#X(mX#[(mX#](mX(U(mX(V(mX(Y(mX(e(mX(o(mX~O!c'lO!d'lO(U!lO~PDWO(P'xO(Q'xO(R'zO~O_!}O(V'|O(W!}O(X'|O~O_#QO(X'|O(Y'|O(Z#QO~Ov(OO~P%[Ox#SO!U#TO(b#TO(c(RO~O![(TO!Y'WX!Y'^X!]'WX!]'^X~P+}O!](VO!Y(hX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!](VO!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~O!Y(hX~PHRO!Y([O~O!Y(uX!](uX!g(uX!k(uX(r(uX~O#`(uX#k#dX!^(uX~PJUO#`(]O!Y(wX!](wX~O!](^O!Y(vX~O!Y(aO~O#`$eO~PJUO!^(bO~P`OR#zO!Q#yO!S#{O!l#xO(aVOP!na[!naj!nar!na!]!na!p!na#R!na#n!na#o!na#p!na#q!na#r!na#s!na#t!na#u!na#v!na#x!na#z!na#{!na(r!na(y!na(z!na~Oa!na'z!na'w!na!Y!na!k!nav!na!_!na%i!na!g!na~PKlO!k(cO~O!g#vO#`(dO(r'pO!](tXa(tX'z(tX~O!k(tX~PNXO!S%hO!_%iO!|]O#i(iO#j(hO(T%gO~O!](jO!k(sX~O!k(lO~O!S%hO!_%iO#j(hO(T%gO~OP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~O!g#vO!k(gX~P! uOR(nO!Q(mO!l#xO#S$dO!|!{a!S!{a~O!x!{a%h!{a!_!{a#i!{a#j!{a(T!{a~P!#vO!x(rO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~O#k(xO~O![(zO!k(kP~P%[O(e(|O(o[O~O!S)OO!l#xO(e(|O(o[O~OP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(T)]O(VTO(YUO(aVO(o[O~O!]$_Oa$qa'z$qa'w$qa!k$qa!Y$qa!_$qa%i$qa!g$qa~Ol)dO~P!&zOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Og(pP~P!,TO!Q)iO!g)hO!_$^X$Z$^X$]$^X$_$^X$f$^X~O!g)hO!_({X$Z({X$]({X$_({X$f({X~O!Q)iO~P!.^O!Q)iO!_({X$Z({X$]({X$_({X$f({X~O!_)kO$Z)oO$])jO$_)jO$f)pO~O![)sO~P!)[O$]$hO$_$gO$f)wO~On$zX!Q$zX#S$zX'y$zX(y$zX(z$zX~OgmXg$zXnmX!]mX#`mX~P!0SOx)yO(b)zO(c)|O~On*VO!Q*OO'y*PO(y$}O(z%PO~Og)}O~P!1WOg*WO~Oh%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S*YO!_*ZO!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op*`O![*^O(T*XO!k)OP~P!1uO#k*aO~O!l*bO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(T*dO(VTO(YUO(a$uO(y$}O(z%PO~O![*gO!Y)PP~P!3tOr*sOs!nO!S*iO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO(e!mO~O!^*pO~P!5iO#S$dOn(`X!Q(`X'y(`X(y(`X(z(`X!](`X#`(`X~Og(`X$O(`X~P!6kOn*xO#`*wOg(_X!](_X~O!]*yOg(^X~Oj%dOk%dOl%dO(T&ZOg(^P~Os*|O~Og)}O(T&ZO~O!l+SO~O(T(vO~Op+WO!S%hO![#iO!_%iO!|]O#i#lO#j#iO(T%gO!k(sP~O!g#vO#k+XO~O!S%hO![+ZO!](^O!_%iO(T%gO!Y(vP~Os'[O!S+]O![+[O(VTO(YUO(e(|O~O!^(xP~P!9|O!]+^Oa)TX'z)TX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa!ja!]!ja'z!ja'w!ja!Y!ja!k!jav!ja!_!ja%i!ja!g!ja~P!:tOR#zO!Q#yO!S#{O!l#xO(aVOP!ra[!raj!rar!ra!]!ra!p!ra#R!ra#n!ra#o!ra#p!ra#q!ra#r!ra#s!ra#t!ra#u!ra#v!ra#x!ra#z!ra#{!ra(r!ra(y!ra(z!ra~Oa!ra'z!ra'w!ra!Y!ra!k!rav!ra!_!ra%i!ra!g!ra~P!=[OR#zO!Q#yO!S#{O!l#xO(aVOP!ta[!taj!tar!ta!]!ta!p!ta#R!ta#n!ta#o!ta#p!ta#q!ta#r!ta#s!ta#t!ta#u!ta#v!ta#x!ta#z!ta#{!ta(r!ta(y!ta(z!ta~Oa!ta'z!ta'w!ta!Y!ta!k!tav!ta!_!ta%i!ta!g!ta~P!?rOh%VOn+gO!_'`O%i+fO~O!g+iOa(]X!_(]X'z(]X!](]X~Oa%nO!_XO'z%nO~Oh%VO!l%eO~Oh%VO!l%eO(T%gO~O!g#vO#k(xO~Ob+tO%j+uO(T+qO(VTO(YUO!^)XP~O!]+vO`)WX~O[+zO~O`+{O~O!_&PO(T%gO(U!lO`)WP~O%j,OO~P;SOh%VO#`,SO~Oh%VOn,VO!_$|O~O!_,XO~O!Q,ZO!_XO~O%n%vO~O!x,`O~Oe,eO~Ob,fO(T#nO(VTO(YUO!^)VP~Oe%}O~O%j!QO(T&ZO~P=gO[,kO`,jO~OPYOQYOSfOdzOeyOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!iuO!lZO!oYO!pYO!qYO!svO!xxO!|]O$niO%h}O(VTO(YUO(aVO(o[O~O!_!eO!u!gO$W!kO(T!dO~P!FyO`,jOa%nO'z%nO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa,pOl!OO!uwO%l!OO%m!OO%n!OO~P!IcO!l&oO~O&^,vO~O!_,xO~O&o,zO&q,{OP&laQ&laS&laY&laa&lad&lae&lal&lap&lar&las&lat&laz&la|&la!O&la!S&la!W&la!X&la!_&la!i&la!l&la!o&la!p&la!q&la!s&la!u&la!x&la!|&la$W&la$n&la%h&la%j&la%l&la%m&la%n&la%q&la%s&la%v&la%w&la%y&la&W&la&^&la&`&la&b&la&d&la&g&la&m&la&s&la&u&la&w&la&y&la&{&la'w&la(T&la(V&la(Y&la(a&la(o&la!^&la&e&lab&la&j&la~O(T-QO~Oh!eX!]!RX!^!RX!g!RX!g!eX!l!eX#`!RX~O!]!eX!^!eX~P#!iO!g-VO#`-UOh(jX!]#hX!^#hX!g(jX!l(jX~O!](jX!^(jX~P##[Oh%VO!g-XO!l%eO!]!aX!^!aX~Os!nO!S!oO(VTO(YUO(e!mO~OP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(VTO(YUO(aVO(o[O~O(T=QO~P#$qO!]-]O!^(iX~O!^-_O~O!g-VO#`-UO!]#hX!^#hX~O!]-`O!^(xX~O!^-bO~O!c-cO!d-cO(U!lO~P#$`O!^-fO~P'_On-iO!_'`O~O!Y-nO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(U!{a(V!{a(Y!{a(e!{a(o!{a~P!#vO!p-sO#`-qO~PChO!c-uO!d-uO(U!lO~PDWOa%nO#`-qO'z%nO~Oa%nO!g#vO#`-qO'z%nO~Oa%nO!g#vO!p-sO#`-qO'z%nO(r'pO~O(P'xO(Q'xO(R-zO~Ov-{O~O!Y'Wa!]'Wa~P!:tO![.PO!Y'WX!]'WX~P%[O!](VO!Y(ha~O!Y(ha~PHRO!](^O!Y(va~O!S%hO![.TO!_%iO(T%gO!Y'^X!]'^X~O#`.VO!](ta!k(taa(ta'z(ta~O!g#vO~P#,wO!](jO!k(sa~O!S%hO!_%iO#j.ZO(T%gO~Op.`O!S%hO![.]O!_%iO!|]O#i._O#j.]O(T%gO!]'aX!k'aX~OR.dO!l#xO~Oh%VOn.gO!_'`O%i.fO~Oa#ci!]#ci'z#ci'w#ci!Y#ci!k#civ#ci!_#ci%i#ci!g#ci~P!:tOn>]O!Q*OO'y*PO(y$}O(z%PO~O#k#_aa#_a#`#_a'z#_a!]#_a!k#_a!_#_a!Y#_a~P#/sO#k(`XP(`XR(`X[(`Xa(`Xj(`Xr(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X'z(`X(a(`X(r(`X!k(`X!Y(`X'w(`Xv(`X!_(`X%i(`X!g(`X~P!6kO!].tO!k(kX~P!:tO!k.wO~O!Y.yO~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mia#mij#mir#mi!]#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'z#mi(r#mi(y#mi(z#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#n#mi~P#3cO#n$OO~P#3cOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO[#mia#mij#mi!]#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'z#mi(r#mi(y#mi(z#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#r#mi~P#6QO#r$QO~P#6QOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO(aVOa#mi!]#mi#x#mi#z#mi#{#mi'z#mi(r#mi(y#mi(z#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#v#mi~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO(aVO(z#}Oa#mi!]#mi#z#mi#{#mi'z#mi(r#mi(y#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#x$UO~P#;VO#x#mi~P#;VO#v$SO~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO(aVO(y#|O(z#}Oa#mi!]#mi#{#mi'z#mi(r#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#z#mi~P#={O#z$WO~P#={OP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X!]]X!^]X~O$O]X~P#@jOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO#z<gO#{<hO(aVO(r$YO(y#|O(z#}O~O$O.{O~P#BwO#S$dO#`<nO$Q<nO$O(gX!^(gX~P! uOa'da!]'da'z'da'w'da!k'da!Y'dav'da!_'da%i'da!g'da~P!:tO[#mia#mij#mir#mi!]#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'z#mi(r#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO(y#mi(z#mi~P#EyOn>]O!Q*OO'y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P#EyO!]/POg(pX~P!1WOg/RO~Oa$Pi!]$Pi'z$Pi'w$Pi!Y$Pi!k$Piv$Pi!_$Pi%i$Pi!g$Pi~P!:tO$]/SO$_/SO~O$]/TO$_/TO~O!g)hO#`/UO!_$cX$Z$cX$]$cX$_$cX$f$cX~O![/VO~O!_)kO$Z/XO$])jO$_)jO$f/YO~O!]<iO!^(fX~P#BwO!^/ZO~O!g)hO$f({X~O$f/]O~Ov/^O~P!&zOx)yO(b)zO(c/aO~O!S/dO~O(y$}On%aa!Q%aa'y%aa(z%aa!]%aa#`%aa~Og%aa$O%aa~P#L{O(z%POn%ca!Q%ca'y%ca(y%ca!]%ca#`%ca~Og%ca$O%ca~P#MnO!]fX!gfX!kfX!k$zX(rfX~P!0SOp%WO![/mO!](^O(T/lO!Y(vP!Y)PP~P!1uOr*sO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO~Os<}O!S/nO![+[O!^*pO(e<|O!^(xP~P$ [O!k/oO~P#/sO!]/pO!g#vO(r'pO!k)OX~O!k/uO~OnoX!QoX'yoX(yoX(zoX~O!g#vO!koX~P$#OOp/wO!S%hO![*^O!_%iO(T%gO!k)OP~O#k/xO~O!Y$zX!]$zX!g%RX~P!0SO!]/yO!Y)PX~P#/sO!g/{O~O!Y/}O~OpkO(T0OO~P.iOh%VOr0TO!g#vO!l%eO(r'pO~O!g+iO~Oa%nO!]0XO'z%nO~O!^0ZO~P!5iO!c0[O!d0[O(U!lO~P#$`Os!nO!S0]O(VTO(YUO(e!mO~O#[0_O~Og%aa!]%aa#`%aa$O%aa~P!1WOg%ca!]%ca#`%ca$O%ca~P!1WOj%dOk%dOl%dO(T&ZOg'mX!]'mX~O!]*yOg(^a~Og0hO~On0jO#`0iOg(_a!](_a~OR0kO!Q0kO!S0lO#S$dOn}a'y}a(y}a(z}a!]}a#`}a~Og}a$O}a~P$(cO!Q*OO'y*POn$sa(y$sa(z$sa!]$sa#`$sa~Og$sa$O$sa~P$)_O!Q*OO'y*POn$ua(y$ua(z$ua!]$ua#`$ua~Og$ua$O$ua~P$*QO#k0oO~Og%Ta!]%Ta#`%Ta$O%Ta~P!1WO!g#vO~O#k0rO~O!]+^Oa)Ta'z)Ta~OR#zO!Q#yO!S#{O!l#xO(aVOP!ri[!rij!rir!ri!]!ri!p!ri#R!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#t!ri#u!ri#v!ri#x!ri#z!ri#{!ri(r!ri(y!ri(z!ri~Oa!ri'z!ri'w!ri!Y!ri!k!riv!ri!_!ri%i!ri!g!ri~P$+oOh%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op0{O%]0|O(T0zO~P$.VO!g+iOa(]a!_(]a'z(]a!](]a~O#k1SO~O[]X!]fX!^fX~O!]1TO!^)XX~O!^1VO~O[1WO~Ob1YO(T+qO(VTO(YUO~O!_&PO(T%gO`'uX!]'uX~O!]+vO`)Wa~O!k1]O~P!:tO[1`O~O`1aO~O#`1fO~On1iO!_$|O~O(e(|O!^)UP~Oh%VOn1rO!_1oO%i1qO~O[1|O!]1zO!^)VX~O!^1}O~O`2POa%nO'z%nO~O(T#nO(VTO(YUO~O#S$dO#`$eO$Q$eOP(gXR(gX[(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~Oj2SO&[2TOa(gX~P$3pOj2SO#`$eO&[2TO~Oa2VO~P%[Oa2XO~O&e2[OP&ciQ&ciS&ciY&cia&cid&cie&cil&cip&cir&cis&cit&ciz&ci|&ci!O&ci!S&ci!W&ci!X&ci!_&ci!i&ci!l&ci!o&ci!p&ci!q&ci!s&ci!u&ci!x&ci!|&ci$W&ci$n&ci%h&ci%j&ci%l&ci%m&ci%n&ci%q&ci%s&ci%v&ci%w&ci%y&ci&W&ci&^&ci&`&ci&b&ci&d&ci&g&ci&m&ci&s&ci&u&ci&w&ci&y&ci&{&ci'w&ci(T&ci(V&ci(Y&ci(a&ci(o&ci!^&cib&ci&j&ci~Ob2bO!^2`O&j2aO~P`O!_XO!l2dO~O&q,{OP&liQ&liS&liY&lia&lid&lie&lil&lip&lir&lis&lit&liz&li|&li!O&li!S&li!W&li!X&li!_&li!i&li!l&li!o&li!p&li!q&li!s&li!u&li!x&li!|&li$W&li$n&li%h&li%j&li%l&li%m&li%n&li%q&li%s&li%v&li%w&li%y&li&W&li&^&li&`&li&b&li&d&li&g&li&m&li&s&li&u&li&w&li&y&li&{&li'w&li(T&li(V&li(Y&li(a&li(o&li!^&li&e&lib&li&j&li~O!Y2jO~O!]!aa!^!aa~P#BwOs!nO!S!oO![2pO(e!mO!]'XX!^'XX~P@nO!]-]O!^(ia~O!]'_X!^'_X~P!9|O!]-`O!^(xa~O!^2wO~P'_Oa%nO#`3QO'z%nO~Oa%nO!g#vO#`3QO'z%nO~Oa%nO!g#vO!p3UO#`3QO'z%nO(r'pO~Oa%nO'z%nO~P!:tO!]$_Ov$qa~O!Y'Wi!]'Wi~P!:tO!](VO!Y(hi~O!](^O!Y(vi~O!Y(wi!](wi~P!:tO!](ti!k(tia(ti'z(ti~P!:tO#`3WO!](ti!k(tia(ti'z(ti~O!](jO!k(si~O!S%hO!_%iO!|]O#i3]O#j3[O(T%gO~O!S%hO!_%iO#j3[O(T%gO~On3dO!_'`O%i3cO~Oh%VOn3dO!_'`O%i3cO~O#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa'z%aa(a%aa(r%aa!k%aa!Y%aa'w%aav%aa!_%aa%i%aa!g%aa~P#L{O#k%caP%caR%ca[%caa%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca'z%ca(a%ca(r%ca!k%ca!Y%ca'w%cav%ca!_%ca%i%ca!g%ca~P#MnO#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!]%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa'z%aa(a%aa(r%aa!k%aa!Y%aa'w%aa#`%aav%aa!_%aa%i%aa!g%aa~P#/sO#k%caP%caR%ca[%caa%caj%car%ca!S%ca!]%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca'z%ca(a%ca(r%ca!k%ca!Y%ca'w%ca#`%cav%ca!_%ca%i%ca!g%ca~P#/sO#k}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a'z}a(a}a(r}a!k}a!Y}a'w}av}a!_}a%i}a!g}a~P$(cO#k$saP$saR$sa[$saa$saj$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa'z$sa(a$sa(r$sa!k$sa!Y$sa'w$sav$sa!_$sa%i$sa!g$sa~P$)_O#k$uaP$uaR$ua[$uaa$uaj$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua'z$ua(a$ua(r$ua!k$ua!Y$ua'w$uav$ua!_$ua%i$ua!g$ua~P$*QO#k%TaP%TaR%Ta[%Taa%Taj%Tar%Ta!S%Ta!]%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta'z%Ta(a%Ta(r%Ta!k%Ta!Y%Ta'w%Ta#`%Tav%Ta!_%Ta%i%Ta!g%Ta~P#/sOa#cq!]#cq'z#cq'w#cq!Y#cq!k#cqv#cq!_#cq%i#cq!g#cq~P!:tO![3lO!]'YX!k'YX~P%[O!].tO!k(ka~O!].tO!k(ka~P!:tO!Y3oO~O$O!na!^!na~PKlO$O!ja!]!ja!^!ja~P#BwO$O!ra!^!ra~P!=[O$O!ta!^!ta~P!?rOg']X!]']X~P!,TO!]/POg(pa~OSfO!_4TO$d4UO~O!^4YO~Ov4ZO~P#/sOa$mq!]$mq'z$mq'w$mq!Y$mq!k$mqv$mq!_$mq%i$mq!g$mq~P!:tO!Y4]O~P!&zO!S4^O~O!Q*OO'y*PO(z%POn'ia(y'ia!]'ia#`'ia~Og'ia$O'ia~P%-fO!Q*OO'y*POn'ka(y'ka(z'ka!]'ka#`'ka~Og'ka$O'ka~P%.XO(r$YO~P#/sO!YfX!Y$zX!]fX!]$zX!g%RX#`fX~P!0SOp%WO(T=WO~P!1uOp4bO!S%hO![4aO!_%iO(T%gO!]'eX!k'eX~O!]/pO!k)Oa~O!]/pO!g#vO!k)Oa~O!]/pO!g#vO(r'pO!k)Oa~Og$|i!]$|i#`$|i$O$|i~P!1WO![4jO!Y'gX!]'gX~P!3tO!]/yO!Y)Pa~O!]/yO!Y)Pa~P#/sOP]XR]X[]Xj]Xr]X!Q]X!S]X!Y]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~Oj%YX!g%YX~P%2OOj4oO!g#vO~Oh%VO!g#vO!l%eO~Oh%VOr4tO!l%eO(r'pO~Or4yO!g#vO(r'pO~Os!nO!S4zO(VTO(YUO(e!mO~O(y$}On%ai!Q%ai'y%ai(z%ai!]%ai#`%ai~Og%ai$O%ai~P%5oO(z%POn%ci!Q%ci'y%ci(y%ci!]%ci#`%ci~Og%ci$O%ci~P%6bOg(_i!](_i~P!1WO#`5QOg(_i!](_i~P!1WO!k5VO~Oa$oq!]$oq'z$oq'w$oq!Y$oq!k$oqv$oq!_$oq%i$oq!g$oq~P!:tO!Y5ZO~O!]5[O!_)QX~P#/sOa$zX!_$zX%^]X'z$zX!]$zX~P!0SO%^5_OaoX!_oX'zoX!]oX~P$#OOp5`O(T#nO~O%^5_O~Ob5fO%j5gO(T+qO(VTO(YUO!]'tX!^'tX~O!]1TO!^)Xa~O[5kO~O`5lO~O[5pO~Oa%nO'z%nO~P#/sO!]5uO#`5wO!^)UX~O!^5xO~Or6OOs!nO!S*iO!b!yO!c!vO!d!vO!|<VO#T!pO#U!pO#V!pO#W!pO#X!pO#[5}O#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O!^5|O~P%;eOn6TO!_1oO%i6SO~Oh%VOn6TO!_1oO%i6SO~Ob6[O(T#nO(VTO(YUO!]'sX!^'sX~O!]1zO!^)Va~O(VTO(YUO(e6^O~O`6bO~Oj6eO&[6fO~PNXO!k6gO~P%[Oa6iO~Oa6iO~P%[Ob2bO!^6nO&j2aO~P`O!g6pO~O!g6rOh(ji!](ji!^(ji!g(ji!l(jir(ji(r(ji~O!]#hi!^#hi~P#BwO#`6sO!]#hi!^#hi~O!]!ai!^!ai~P#BwOa%nO#`6|O'z%nO~Oa%nO!g#vO#`6|O'z%nO~O!](tq!k(tqa(tq'z(tq~P!:tO!](jO!k(sq~O!S%hO!_%iO#j7TO(T%gO~O!_'`O%i7WO~On7[O!_'`O%i7WO~O#k'iaP'iaR'ia['iaa'iaj'iar'ia!S'ia!l'ia!p'ia#R'ia#n'ia#o'ia#p'ia#q'ia#r'ia#s'ia#t'ia#u'ia#v'ia#x'ia#z'ia#{'ia'z'ia(a'ia(r'ia!k'ia!Y'ia'w'iav'ia!_'ia%i'ia!g'ia~P%-fO#k'kaP'kaR'ka['kaa'kaj'kar'ka!S'ka!l'ka!p'ka#R'ka#n'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#x'ka#z'ka#{'ka'z'ka(a'ka(r'ka!k'ka!Y'ka'w'kav'ka!_'ka%i'ka!g'ka~P%.XO#k$|iP$|iR$|i[$|ia$|ij$|ir$|i!S$|i!]$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i'z$|i(a$|i(r$|i!k$|i!Y$|i'w$|i#`$|iv$|i!_$|i%i$|i!g$|i~P#/sO#k%aiP%aiR%ai[%aia%aij%air%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai'z%ai(a%ai(r%ai!k%ai!Y%ai'w%aiv%ai!_%ai%i%ai!g%ai~P%5oO#k%ciP%ciR%ci[%cia%cij%cir%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci'z%ci(a%ci(r%ci!k%ci!Y%ci'w%civ%ci!_%ci%i%ci!g%ci~P%6bO!]'Ya!k'Ya~P!:tO!].tO!k(ki~O$O#ci!]#ci!^#ci~P#BwOP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mij#mir#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#n#mi~P%NdO#n<_O~P%NdOP$[OR#zOr<kO!Q#yO!S#{O!l#xO!p$[O#n<_O#o<`O#p<`O#q<`O(aVO[#mij#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#r#mi~P&!lO#r<aO~P&!lOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO(aVO#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#v#mi~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO(aVO(z#}O#z#mi#{#mi$O#mi(r#mi(y#mi!]#mi!^#mi~O#x<eO~P&&uO#x#mi~P&&uO#v<cO~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO(aVO(y#|O(z#}O#{#mi$O#mi(r#mi!]#mi!^#mi~O#z#mi~P&)UO#z<gO~P&)UOa#|y!]#|y'z#|y'w#|y!Y#|y!k#|yv#|y!_#|y%i#|y!g#|y~P!:tO[#mij#mir#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi!]#mi!^#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n<_O#o<`O#p<`O#q<`O(aVO(y#mi(z#mi~P&,QOn>^O!Q*OO'y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P&,QO#S$dOP(`XR(`X[(`Xj(`Xn(`Xr(`X!Q(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X$O(`X'y(`X(a(`X(r(`X(y(`X(z(`X!](`X!^(`X~O$O$Pi!]$Pi!^$Pi~P#BwO$O!ri!^!ri~P$+oOg']a!]']a~P!1WO!^7nO~O!]'da!^'da~P#BwO!Y7oO~P#/sO!g#vO(r'pO!]'ea!k'ea~O!]/pO!k)Oi~O!]/pO!g#vO!k)Oi~Og$|q!]$|q#`$|q$O$|q~P!1WO!Y'ga!]'ga~P#/sO!g7vO~O!]/yO!Y)Pi~P#/sO!]/yO!Y)Pi~O!Y7yO~Oh%VOr8OO!l%eO(r'pO~Oj8QO!g#vO~Or8TO!g#vO(r'pO~O!Q*OO'y*PO(z%POn'ja(y'ja!]'ja#`'ja~Og'ja$O'ja~P&5RO!Q*OO'y*POn'la(y'la(z'la!]'la#`'la~Og'la$O'la~P&5tOg(_q!](_q~P!1WO#`8VOg(_q!](_q~P!1WO!Y8WO~Og%Oq!]%Oq#`%Oq$O%Oq~P!1WOa$oy!]$oy'z$oy'w$oy!Y$oy!k$oyv$oy!_$oy%i$oy!g$oy~P!:tO!g6rO~O!]5[O!_)Qa~O!_'`OP$TaR$Ta[$Taj$Tar$Ta!Q$Ta!S$Ta!]$Ta!l$Ta!p$Ta#R$Ta#n$Ta#o$Ta#p$Ta#q$Ta#r$Ta#s$Ta#t$Ta#u$Ta#v$Ta#x$Ta#z$Ta#{$Ta(a$Ta(r$Ta(y$Ta(z$Ta~O%i7WO~P&8fO%^8[Oa%[i!_%[i'z%[i!]%[i~Oa#cy!]#cy'z#cy'w#cy!Y#cy!k#cyv#cy!_#cy%i#cy!g#cy~P!:tO[8^O~Ob8`O(T+qO(VTO(YUO~O!]1TO!^)Xi~O`8dO~O(e(|O!]'pX!^'pX~O!]5uO!^)Ua~O!^8nO~P%;eO(o!sO~P$&YO#[8oO~O!_1oO~O!_1oO%i8qO~On8tO!_1oO%i8qO~O[8yO!]'sa!^'sa~O!]1zO!^)Vi~O!k8}O~O!k9OO~O!k9RO~O!k9RO~P%[Oa9TO~O!g9UO~O!k9VO~O!](wi!^(wi~P#BwOa%nO#`9_O'z%nO~O!](ty!k(tya(ty'z(ty~P!:tO!](jO!k(sy~O%i9bO~P&8fO!_'`O%i9bO~O#k$|qP$|qR$|q[$|qa$|qj$|qr$|q!S$|q!]$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q'z$|q(a$|q(r$|q!k$|q!Y$|q'w$|q#`$|qv$|q!_$|q%i$|q!g$|q~P#/sO#k'jaP'jaR'ja['jaa'jaj'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja'z'ja(a'ja(r'ja!k'ja!Y'ja'w'jav'ja!_'ja%i'ja!g'ja~P&5RO#k'laP'laR'la['laa'laj'lar'la!S'la!l'la!p'la#R'la#n'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#x'la#z'la#{'la'z'la(a'la(r'la!k'la!Y'la'w'lav'la!_'la%i'la!g'la~P&5tO#k%OqP%OqR%Oq[%Oqa%Oqj%Oqr%Oq!S%Oq!]%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq'z%Oq(a%Oq(r%Oq!k%Oq!Y%Oq'w%Oq#`%Oqv%Oq!_%Oq%i%Oq!g%Oq~P#/sO!]'Yi!k'Yi~P!:tO$O#cq!]#cq!^#cq~P#BwO(y$}OP%aaR%aa[%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa$O%aa(a%aa(r%aa!]%aa!^%aa~On%aa!Q%aa'y%aa(z%aa~P&IyO(z%POP%caR%ca[%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca$O%ca(a%ca(r%ca!]%ca!^%ca~On%ca!Q%ca'y%ca(y%ca~P&LQOn>^O!Q*OO'y*PO(z%PO~P&IyOn>^O!Q*OO'y*PO(y$}O~P&LQOR0kO!Q0kO!S0lO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a$O}a'y}a(a}a(r}a(y}a(z}a!]}a!^}a~O!Q*OO'y*POP$saR$sa[$saj$san$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa$O$sa(a$sa(r$sa(y$sa(z$sa!]$sa!^$sa~O!Q*OO'y*POP$uaR$ua[$uaj$uan$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua$O$ua(a$ua(r$ua(y$ua(z$ua!]$ua!^$ua~On>^O!Q*OO'y*PO(y$}O(z%PO~OP%TaR%Ta[%Taj%Tar%Ta!S%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta$O%Ta(a%Ta(r%Ta!]%Ta!^%Ta~P''VO$O$mq!]$mq!^$mq~P#BwO$O$oq!]$oq!^$oq~P#BwO!^9oO~O$O9pO~P!1WO!g#vO!]'ei!k'ei~O!g#vO(r'pO!]'ei!k'ei~O!]/pO!k)Oq~O!Y'gi!]'gi~P#/sO!]/yO!Y)Pq~Or9wO!g#vO(r'pO~O[9yO!Y9xO~P#/sO!Y9xO~Oj:PO!g#vO~Og(_y!](_y~P!1WO!]'na!_'na~P#/sOa%[q!_%[q'z%[q!]%[q~P#/sO[:UO~O!]1TO!^)Xq~O`:YO~O#`:ZO!]'pa!^'pa~O!]5uO!^)Ui~P#BwO!S:]O~O!_1oO%i:`O~O(VTO(YUO(e:eO~O!]1zO!^)Vq~O!k:hO~O!k:iO~O!k:jO~O!k:jO~P%[O#`:mO!]#hy!^#hy~O!]#hy!^#hy~P#BwO%i:rO~P&8fO!_'`O%i:rO~O$O#|y!]#|y!^#|y~P#BwOP$|iR$|i[$|ij$|ir$|i!S$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i$O$|i(a$|i(r$|i!]$|i!^$|i~P''VO!Q*OO'y*PO(z%POP'iaR'ia['iaj'ian'iar'ia!S'ia!l'ia!p'ia#R'ia#n'ia#o'ia#p'ia#q'ia#r'ia#s'ia#t'ia#u'ia#v'ia#x'ia#z'ia#{'ia$O'ia(a'ia(r'ia(y'ia!]'ia!^'ia~O!Q*OO'y*POP'kaR'ka['kaj'kan'kar'ka!S'ka!l'ka!p'ka#R'ka#n'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#x'ka#z'ka#{'ka$O'ka(a'ka(r'ka(y'ka(z'ka!]'ka!^'ka~O(y$}OP%aiR%ai[%aij%ain%air%ai!Q%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai$O%ai'y%ai(a%ai(r%ai(z%ai!]%ai!^%ai~O(z%POP%ciR%ci[%cij%cin%cir%ci!Q%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci$O%ci'y%ci(a%ci(r%ci(y%ci!]%ci!^%ci~O$O$oy!]$oy!^$oy~P#BwO$O#cy!]#cy!^#cy~P#BwO!g#vO!]'eq!k'eq~O!]/pO!k)Oy~O!Y'gq!]'gq~P#/sOr:|O!g#vO(r'pO~O[;QO!Y;PO~P#/sO!Y;PO~Og(_!R!](_!R~P!1WOa%[y!_%[y'z%[y!]%[y~P#/sO!]1TO!^)Xy~O!]5uO!^)Uq~O(T;XO~O!_1oO%i;[O~O!k;_O~O%i;dO~P&8fOP$|qR$|q[$|qj$|qr$|q!S$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q$O$|q(a$|q(r$|q!]$|q!^$|q~P''VO!Q*OO'y*PO(z%POP'jaR'ja['jaj'jan'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja$O'ja(a'ja(r'ja(y'ja!]'ja!^'ja~O!Q*OO'y*POP'laR'la['laj'lan'lar'la!S'la!l'la!p'la#R'la#n'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#x'la#z'la#{'la$O'la(a'la(r'la(y'la(z'la!]'la!^'la~OP%OqR%Oq[%Oqj%Oqr%Oq!S%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq$O%Oq(a%Oq(r%Oq!]%Oq!^%Oq~P''VOg%e!Z!]%e!Z#`%e!Z$O%e!Z~P!1WO!Y;hO~P#/sOr;iO!g#vO(r'pO~O[;kO!Y;hO~P#/sO!]'pq!^'pq~P#BwO!]#h!Z!^#h!Z~P#BwO#k%e!ZP%e!ZR%e!Z[%e!Za%e!Zj%e!Zr%e!Z!S%e!Z!]%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z'z%e!Z(a%e!Z(r%e!Z!k%e!Z!Y%e!Z'w%e!Z#`%e!Zv%e!Z!_%e!Z%i%e!Z!g%e!Z~P#/sOr;tO!g#vO(r'pO~O!Y;uO~P#/sOr;|O!g#vO(r'pO~O!Y;}O~P#/sOP%e!ZR%e!Z[%e!Zj%e!Zr%e!Z!S%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z$O%e!Z(a%e!Z(r%e!Z!]%e!Z!^%e!Z~P''VOr<QO!g#vO(r'pO~Ov(fX~P1qO!Q%rO~P!)[O(U!lO~P!)[O!YfX!]fX#`fX~P%2OOP]XR]X[]Xj]Xr]X!Q]X!S]X!]]X!]fX!l]X!p]X#R]X#S]X#`]X#`fX#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~O!gfX!k]X!kfX(rfX~P'LTOP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_XO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(T)]O(VTO(YUO(aVO(o[O~O!]<iO!^$qa~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<tO!S${O!_$|O!i>WO!l$xO#j<zO$W%`O$t<vO$v<xO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Ol)dO~P(!yOr!eX(r!eX~P#!iOr(jX(r(jX~P##[O!^]X!^fX~P'LTO!YfX!Y$zX!]fX!]$zX#`fX~P!0SO#k<^O~O!g#vO#k<^O~O#`<nO~Oj<bO~O#`=OO!](wX!^(wX~O#`<nO!](uX!^(uX~O#k=PO~Og=RO~P!1WO#k=XO~O#k=YO~Og=RO(T&ZO~O!g#vO#k=ZO~O!g#vO#k=PO~O$O=[O~P#BwO#k=]O~O#k=^O~O#k=cO~O#k=dO~O#k=eO~O#k=fO~O$O=gO~P!1WO$O=hO~P!1WOl=sO~P7eOk#S#T#U#W#X#[#i#j#u$n$t$v$y%]%^%h%i%j%q%s%v%w%y%{~(OT#o!X'|(U#ps#n#qr!Q'}$]'}(T$_(e~",goto:"$9Y)]PPPPPP)^PP)aP)rP+W/]PPPP6mPP7TPP=QPPP@tPA^PA^PPPA^PCfPA^PA^PA^PCjPCoPD^PIWPPPI[PPPPI[L_PPPLeMVPI[PI[PP! eI[PPPI[PI[P!#lI[P!'S!(X!(bP!)U!)Y!)U!,gPPPPPPP!-W!(XPP!-h!/YP!2iI[I[!2n!5z!:h!:h!>gPPP!>oI[PPPPPPPPP!BOP!C]PPI[!DnPI[PI[I[I[I[I[PI[!FQP!I[P!LbP!Lf!Lp!Lt!LtP!IXP!Lx!LxP#!OP#!SI[PI[#!Y#%_CjA^PA^PA^A^P#&lA^A^#)OA^#+vA^#.SA^A^#.r#1W#1W#1]#1f#1W#1qPP#1WPA^#2ZA^#6YA^A^6mPPP#:_PPP#:x#:xP#:xP#;`#:xPP#;fP#;]P#;]#;y#;]#<e#<k#<n)aP#<q)aP#<z#<z#<zP)aP)aP)aP)aPP)aP#=Q#=TP#=T)aP#=XP#=[P)aP)aP)aP)aP)aP)a)aPP#=b#=h#=s#=y#>P#>V#>]#>k#>q#>{#?R#?]#?c#?s#?y#@k#@}#AT#AZ#Ai#BO#Cs#DR#DY#Et#FS#Gt#HS#HY#H`#Hf#Hp#Hv#H|#IW#Ij#IpPPPPPPPPPPP#IvPPPPPPP#Jk#Mx$ b$ i$ qPPP$']P$'f$*_$0x$0{$1O$1}$2Q$2X$2aP$2g$2jP$3W$3[$4S$5b$5g$5}PP$6S$6Y$6^$6a$6e$6i$7e$7|$8e$8i$8l$8o$8y$8|$9Q$9UR!|RoqOXst!Z#d%m&r&t&u&w,s,x2[2_Y!vQ'`-e1o5{Q%tvQ%|yQ&T|Q&j!VS'W!e-]Q'f!iS'l!r!yU*k$|*Z*oQ+o%}S+|&V&WQ,d&dQ-c'_Q-m'gQ-u'mQ0[*qQ1b,OQ1y,eR<{<Y%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_S#q]<V!r)_$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU+P%]<s<tQ+t&PQ,f&gQ,m&oQ0x+gQ0}+iQ1Y+uQ2R,kQ3`.gQ5`0|Q5f1TQ6[1zQ7Y3dQ8`5gR9e7['QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S!S!nQ!r!v!y!z$|'W'_'`'l'm'n*k*o*q*r-]-c-e-u0[0_1o5{5}%[$ti#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q&X|Q'U!eS'[%i-`Q+t&PQ,P&WQ,f&gQ0n+SQ1Y+uQ1_+{Q2Q,jQ2R,kQ5f1TQ5o1aQ6[1zQ6_1|Q6`2PQ8`5gQ8c5lQ8|6bQ:X8dQ:f8yQ;V:YR<}*ZrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R,h&k&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'b'r(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>R>S[#]WZ#W#Z'X(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ%wxQ%{yW&Q|&V&W,OQ&_!TQ'c!hQ'e!iQ(q#sS+n%|%}Q+r&PQ,_&bQ,c&dS-l'f'gQ.i(rQ1R+oQ1X+uQ1Z+vQ1^+zQ1t,`S1x,d,eQ2|-mQ5e1TQ5i1WQ5n1`Q6Z1yQ8_5gQ8b5kQ8f5pQ:T8^R;T:U!U$zi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y!^%yy!i!u%{%|%}'V'e'f'g'k'u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{Q+h%wQ,T&[Q,W&]Q,b&dQ.h(qQ1s,_U1w,c,d,eQ3e.iQ6U1tS6Y1x1yQ8x6Z#f>T#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o>U<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hW%Ti%V*y>PS&[!Q&iQ&]!RQ&^!SU*}%[%d=sR,R&Y%]%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^T)z$u){V+P%]<s<tW'[!e%i*Z-`S(}#y#zQ+c%rQ+y&SS.b(m(nQ1j,XQ5T0kR8i5u'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S$i$^c#Y#e%q%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.|.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vT#TV#U'RkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ'Y!eR2q-]!W!nQ!e!r!v!y!z$|'W'_'`'l'm'n*Z*k*o*q*r-]-c-e-u0[0_1o5{5}R1l,ZnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&y!^Q'v!xS(s#u<^Q+l%zQ,]&_Q,^&aQ-j'dQ-w'oS.r(x=PS0q+X=ZQ1P+mQ1n,[Q2c,zQ2e,{Q2m-WQ2z-kQ2}-oS5Y0r=eQ5a1QS5d1S=fQ6t2oQ6x2{Q6}3SQ8]5bQ9Y6vQ9Z6yQ9^7OR:l9V$d$]c#Y#e%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vS(o#p'iQ)P#zS+b%q.|S.c(n(pR3^.d'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS#q]<VQ&t!XQ&u!YQ&w![Q&x!]R2Z,vQ'a!hQ+e%wQ-h'cS.e(q+hQ2x-gW3b.h.i0w0yQ6w2yW7U3_3a3e5^U9a7V7X7ZU:q9c9d9fS;b:p:sQ;p;cR;x;qU!wQ'`-eT5y1o5{!Q_OXZ`st!V!Z#d#h%e%m&i&k&r&t&u&w(j,s,x.[2[2_]!pQ!r'`-e1o5{T#q]<V%^{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S(}#y#zS.b(m(n!s=l$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU$fd)_,mS(p#p'iU*v%R(w4OU0m+O.n7gQ5^0xQ7V3`Q9d7YR:s9em!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}Q't!uS(f#g2US-s'k'wQ/s*]Q0R*jQ3U-vQ4f/tQ4r0TQ4s0UQ4x0^Q7r4`S7}4t4vS8R4y4{Q9r7sQ9v7yQ9{8OQ:Q8TS:{9w9xS;g:|;PS;s;h;iS;{;t;uS<P;|;}R<S<QQ#wbQ's!uS(e#g2US(g#m+WQ+Y%fQ+j%xQ+p&OU-r'k't'wQ.W(fU/r*]*`/wQ0S*jQ0V*lQ1O+kQ1u,aS3R-s-vQ3Z.`S4e/s/tQ4n0PS4q0R0^Q4u0WQ6W1vQ7P3US7q4`4bQ7u4fU7|4r4x4{Q8P4wQ8v6XS9q7r7sQ9u7yQ9}8RQ:O8SQ:c8wQ:y9rS:z9v9xQ;S:QQ;^:dS;f:{;PS;r;g;hS;z;s;uS<O;{;}Q<R<PQ<T<SQ=o=jQ={=tR=|=uV!wQ'`-e%^aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S#wz!j!r=i$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=o>R%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Q%fj!^%xy!i!u%{%|%}'V'e'f'g'k'u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{S&Oz!jQ+k%yQ,a&dW1v,b,c,d,eU6X1w1x1yS8w6Y6ZQ:d8x!r=j$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ=t>QR=u>R%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'b'r(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Y#bWZ#W#Z(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ,n&o!p=k$Z$n)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=n'XU']!e%i*ZR2s-`%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_!r)_$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ,m&oQ0x+gQ3`.gQ7Y3dR9e7[!b$Tc#Y%q(S(Y(t(y)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!P<d)^)q-Z.|2k2n3p3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!f$Vc#Y%q(S(Y(t(y)W)X)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!T<f)^)q-Z.|2k2n3p3v3w3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!^$Zc#Y%q(S(Y(t(y)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<WQ4_/kz>S)^)q-Z.|2k2n3p4P4X6u7b7k7l8k9X9g9m9n;W;`=vQ>X>ZR>Y>['QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS$oh$pR4U/U'XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$kf$qQ$ifS)j$l)nR)v$qT$jf$qT)l$l)n'XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$oh$pQ$rhR)u$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_!s>Q$Z$n'X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S#glOPXZst!Z!`!o#S#d#o#{$n%m&k&n&o&r&t&u&w&{'T'b)O)s*i+]+g,p,s,x-i.g/V/n0]0l1r2S2T2V2X2[2_2a3d4T4z6T6e6f6i7[8t9T!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^Q+T%aQ/c*Oo4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!U$yi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>YQ*c$zU*l$|*Z*oQ+U%bQ0W*m#f=q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n=r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hQ=w>TQ=x>UQ=y>VR=z>W!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hnoOXst!Z#d%m&r&t&u&w,s,x2[2_S*f${*YQ-R'OQ-S'QR4i/y%[%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q,U&]Q1h,WQ5s1gR8h5tV*n$|*Z*oU*n$|*Z*oT5z1o5{S0P*i/nQ4w0]T8S4z:]Q+j%xQ0V*lQ1O+kQ1u,aQ6W1vQ8v6XQ:c8wR;^:d!U%Oi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Yx*R$v)e*S*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>OS0`*t0a#f<o#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<p<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!d=S(u)c*[*e.j.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[`=T3}7c7f7j9h:t:w;yS=_.l3iT=`7e9k!U%Qi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y|*T$v)e*U*t+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>OS0b*u0c#f<q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!h=U(u)c*[*e.k.l.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[d=V3}7d7e7j9h9i:t:u:w;yS=a.m3jT=b7f9lrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q&f!UR,p&ornOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R&f!UQ,Y&^R1d,RsnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q1p,_S6R1s1tU8p6P6Q6US:_8r8sS;Y:^:aQ;m;ZR;w;nQ&m!VR,i&iR6_1|R:f8yW&Q|&V&W,OR1Z+vQ&r!WR,s&sR,y&xT2],x2_R,}&yQ,|&yR2f,}Q'y!{R-y'ySsOtQ#dXT%ps#dQ#OTR'{#OQ#RUR'}#RQ){$uR/`){Q#UVR(Q#UQ#XWU(W#X(X.QQ(X#YR.Q(YQ-^'YR2r-^Q.u(yS3m.u3nR3n.vQ-e'`R2v-eY!rQ'`-e1o5{R'j!rQ/Q)eR4S/QU#_W%h*YU(_#_(`.RQ(`#`R.R(ZQ-a']R2t-at`OXst!V!Z#d%m&i&k&r&t&u&w,s,x2[2_S#hZ%eU#r`#h.[R.[(jQ(k#jQ.X(gW.a(k.X3X7RQ3X.YR7R3YQ)n$lR/W)nQ$phR)t$pQ$`cU)a$`-|<jQ-|<WR<j)qQ/q*]W4c/q4d7t9sU4d/r/s/tS7t4e4fR9s7u$e*Q$v(u)c)e*[*e*t*u+Q+R+V.l.m.o.p.q/_/g/i/k/v/|0d0e0v1e3f3g3h3}4R4[4g4h4l4|5O5R5S5W5r7]7^7_7`7e7f7h7i7j7p7w7z8U8X8Z9h9i9j9t9|:R:S:t:u:v:w:x:};R;e;j;v;y=p=}>O>Z>[Q/z*eU4k/z4m7xQ4m/|R7x4lS*o$|*ZR0Y*ox*S$v)e*t*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>O!d.j(u)c*[*e.l.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/h*S.j7ca7c3}7e7f7j9h:t:w;yQ0a*tQ3i.lU4}0a3i9kR9k7e|*U$v)e*t*u+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>O!h.k(u)c*[*e.l.m.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/j*U.k7de7d3}7e7f7j9h9i:t:u:w;yQ0c*uQ3j.mU5P0c3j9lR9l7fQ*z%UR0g*zQ5]0vR8Y5]Q+_%kR0u+_Q5v1jS8j5v:[R:[8kQ,[&_R1m,[Q5{1oR8m5{Q1{,fS6]1{8zR8z6_Q1U+rW5h1U5j8a:VQ5j1XQ8a5iR:V8bQ+w&QR1[+wQ2_,xR6m2_YrOXst#dQ&v!ZQ+a%mQ,r&rQ,t&tQ,u&uQ,w&wQ2Y,sS2],x2_R6l2[Q%opQ&z!_Q&}!aQ'P!bQ'R!cQ'q!uQ+`%lQ+l%zQ,Q&XQ,h&mQ-P&|W-p'k's't'wQ-w'oQ0X*nQ1P+mQ1c,PS2O,i,lQ2g-OQ2h-RQ2i-SQ2}-oW3P-r-s-v-xQ5a1QQ5m1_Q5q1eQ6V1uQ6a2QQ6k2ZU6z3O3R3UQ6}3SQ8]5bQ8e5oQ8g5rQ8l5zQ8u6WQ8{6`S9[6{7PQ9^7OQ:W8cQ:b8vQ:g8|Q:n9]Q;U:XQ;]:cQ;a:oQ;l;VR;o;^Q%zyQ'd!iQ'o!uU+m%{%|%}Q-W'VU-k'e'f'gS-o'k'uQ0Q*jS1Q+n+oQ2o-YS2{-l-mQ3S-tS4p0R0UQ5b1RQ6v2uQ6y2|Q7O3TU7{4r4s4vQ9z7}R;O9{S$wi>PR*{%VU%Ui%V>PR0f*yQ$viS(u#v+iS)c$b$cQ)e$dQ*[$xS*e${*YQ*t%OQ*u%QQ+Q%^Q+R%_Q+V%cQ.l<oQ.m<qQ.o<uQ.p<wQ.q<yQ/_)yQ/g*RQ/i*TQ/k*VQ/v*aS/|*g/mQ0d*wQ0e*xl0v+f,V.f1i1q3c6S7W8q9b:`:r;[;dQ1e,SQ3f=SQ3g=UQ3h=XS3}<l<mQ4R/PS4[/d4^Q4g/xQ4h/yQ4l/{Q4|0`Q5O0bQ5R0iQ5S0jQ5W0oQ5r1fQ7]=]Q7^=_Q7_=aQ7`=cQ7e<pQ7f<rQ7h<vQ7i<xQ7j<zQ7p4_Q7w4jQ7z4oQ8U5QQ8X5[Q8Z5_Q9h=YQ9i=TQ9j=VQ9t7vQ9|8QQ:R8VQ:S8[Q:t=^Q:u=`Q:v=bQ:w=dQ:x9pQ:}9yQ;R:PQ;e=gQ;j;QQ;v;kQ;y=hQ=p>PQ=}>XQ>O>YQ>Z>]R>[>^Q+O%]Q.n<sR7g<tnpOXst!Z#d%m&r&t&u&w,s,x2[2_Q!fPS#fZ#oQ&|!`W'h!o*i0]4zQ(P#SQ)Q#{Q)r$nS,l&k&nQ,q&oQ-O&{S-T'T/nQ-g'bQ.x)OQ/[)sQ0s+]Q0y+gQ2W,pQ2y-iQ3a.gQ4W/VQ5U0lQ6Q1rQ6c2SQ6d2TQ6h2VQ6j2XQ6o2aQ7Z3dQ7m4TQ8s6TQ9P6eQ9Q6fQ9S6iQ9f7[Q:a8tR:k9T#[cOPXZst!Z!`!o#d#o#{%m&k&n&o&r&t&u&w&{'T'b)O*i+]+g,p,s,x-i.g/n0]0l1r2S2T2V2X2[2_2a3d4z6T6e6f6i7[8t9TQ#YWQ#eYQ%quQ%svS%uw!gS(S#W(VQ(Y#ZQ(t#uQ(y#xQ)R$OQ)S$PQ)T$QQ)U$RQ)V$SQ)W$TQ)X$UQ)Y$VQ)Z$WQ)[$XQ)^$ZQ)`$_Q)b$aQ)g$eW)q$n)s/V4TQ+d%tQ+x&RS-Z'X2pQ-x'rS-}(T.PQ.S(]Q.U(dQ.s(xQ.v(zQ.z<UQ.|<XQ.}<YQ/O<]Q/b)}Q0p+XQ2k-UQ2n-XQ3O-qQ3V.VQ3k.tQ3p<^Q3q<_Q3r<`Q3s<aQ3t<bQ3u<cQ3v<dQ3w<eQ3x<fQ3y<gQ3z<hQ3{.{Q3|<kQ4P<nQ4Q<{Q4X<iQ5X0rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i<VR)f$dY!uQ'`-e1o5{Q'k!rS'u!v!yS'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:
11"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:A,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[D
vendor: 15,963 bytes, line 11
11],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Z!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(WpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Wp(Z!b'|0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(X#S$i&j'}0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$i&j(Wp(Z!b'}0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(V':f$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(Z!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$d`(Z!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Wp(Z!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$i&j(Wp(Z!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$i&j(Z!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Z!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$i&j(WpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(WpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Wp(Z!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$i&j(o%1l(Wp(Z!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$i&j(Wp(Z!b$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$i&j(Wp(Z!b$]#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$i&j(Wp(Z!b#p(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$i&j$Q(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(z+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$i&j#z(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(Y';W$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$i&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$d`$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(WpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$d`(WpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!l/.^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!k!Lf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$i&j(Wp(Z!b(U%&f#q(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$i&j(Wp(Z!b#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$i&j(Wp(Z!br+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!]+Jf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$i&j(Wp(Z!b!Q.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_![!L^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$i&j(Wp(Z!b#o(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$i&j(Z!b!X7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$i&j!X7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$i&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$i&j(Z!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(Z!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(Z!b!X7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(Z!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Z!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$i&j(Wp!X7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$i&j(Wp!X7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Wp!X7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Wp!X7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(WpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$i&j(WpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$i&j(Wp(Z!b!X7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Wp(Z!b!X7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Wp(Z!b!X7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Wp(Z!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$i&j(Wp(Z!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$i&j(Wp(Z!b(O0/l!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$i&j(Wp(Z!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$i&j(Z!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$i&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(Z!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$i&j(WpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(WpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Wp(Z!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$i&j$Q(Ch(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Z#t$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#R-<U(Wp(Z!b$n7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$k&j(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#r(Ch(Wp(Z!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$Q(Ch(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#s(Ch(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#`*!Y$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#k(Cl$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#s(Ch$f#|$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#s(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(r(Ct$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$i&j#{(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!|$Ip$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!S0,v$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$i&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$i&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$i&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$i&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$i&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!Y#)l$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#x(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$i&j(Wp(Z!b(a+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$i&j(Wp(Z!b(T,2j$_#t(e$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$i&j(Wp(Z!b$_#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X!_#Hb(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(y+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z)>v$?V_!^(CdvBr$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!q7`$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$i&j(Wp(Z!b'|0/l$]#t(T,2j(e$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[
vendor: 672 bytes, line 11
11j,C,E,R,2,3,4,5,6,7,8,9,10,11,12,13,14,$,new n.LocalTokenGroup("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new n.LocalTokenGroup("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:e=>L[e]||-1},{term:343,get:e=>Z[e]||-1},{term:95,get:e=>X[e]||-1}],tokenPrec:15201});t.parser=q}}}},jquery:{
11"package.json":function(e,t,r){r.exports={name:"jquery",version:"3.7.1",main:"dist/jquery.js"}},dist:{
11"jquery.js":function(e,t,r){(function(e,t){"use strict";if("object"==typeof r&&"object"==typeof r.exports)r.exports=e.document?t(e,true):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)};else t(e)})("undefined"!=typeof window?window:this,function(e,t){"use strict";var r=[];var n=Object.getPrototypeOf;var i=r.slice;var o=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)};var s=r.push;var a=r.indexOf;var l={};var u=l.toString;var f=l.hasOwnProperty;var c=f.toString;var h=c.call(Object);var d={};var p=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item};var g=function(e){return null!=e&&e===e.window};var m=e.document;var O={type:true,src:true,nonce:true,noModule:true};function v(e,t,r){r=r||m;var n,i,o=r.createElement("script");o.text=e;if(t)for(n in O){i=t[n]||t.getAttribute&&t.getAttribute(n);if(i)o.setAttribute(n,i)}r.head.appendChild(o).parentNode.removeChild(o)}function y(e){if(null==e)return e+"";return"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var b="3.7.1",w=/HTML$/i,x=function(e,t){return new x.fn.init(e,t)};x.fn=x.prototype={jquery:b,constructor:x,length:0,toArray:function(){return i.call(this)},get:function(e){if(null==e)return i.call(this);return e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);t.prevObject=this;return t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(t,r){return e.call(t,r,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,r=+e+(e<0?t:0);return this.pushStack(r>=0&&r<t?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:r.sort,splice:r.splice};x.extend=x.fn.extend=function(){var e,t,r,n,i,o,s=arguments[0]||{},a=1,l=arguments.length,u=false;if("boolean"==typeof s){u=s;s=arguments[a]||{};a++}if("object"!=typeof s&&!p(s))s={};if(a===l){s=this;a--}for(;a<l;a++)if(null!=(e=arguments[a]))for(t in e){n=e[t];if("__proto__"!==t&&s!==n){if(u&&n&&(x.isPlainObject(n)||(i=Array.isArray(n)))){r=s[t];o=i&&!Array.isArray(r)?[]:i||x.isPlainObject(r)?r:{};i=false;s[t]=x.extend(u,o,n)}else if(void 0!==n)s[t]=n}}return s};x.extend({expando:"jQuery"+(b+Math.random()).replace(/\D/g,""),isReady:true,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,r;if(!e||"[object Object]"!==u.call(e))return false;t=n(e);if(!t)return true;r=f.call(t,"constructor")&&t.constructor;return"function"==typeof r&&c.call(r)===h},isEmptyObject:function(e){var t;for(t in e)return false;return true},globalEval:function(e,t,r){v(e,{nonce:t&&t.nonce},r)},each:function(e,t){var r,n=0;if(S(e)){r=e.length;for(;n<r&&false!==t.call(e[n],n,e[n]);n++);}else for(n in e)if(false===t.call(e[n],n,e[n]))break;return e},text:function(e){var t,r="",n=0,i=e.nodeType;if(!i)while(t=e[n++])r+=x.text(t);if(1===i||11===i)return e.textContent;if(9===i)return e.documentElement.textContent;if(3===i||4===i)return e.nodeValue;return r},makeArray:function(e,t){var r=t||[];if(null!=e)if(S(Object(e)))x.merge(r,"string"==typeof e?[e]:e);else s.call(r,e);return r},inArray:function(e,t,r){return null==t?-1:a.call(t,e,r)},isXMLDoc:function(e){var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!w.test(t||r&&r.nodeName||"HTML")},merge:function(e,t){var r=+t.length,n=0,i=e.length;for(;n<r;n++)e[i++]=t[n];e.length=i;return e},grep:function(e,t,r){var n,i=[],o=0,s=e.length,a=!r;for(;o<s;o++){n=!t(e[o],o);if(n!==a)i.push(e[o])}return i},map:function(e,t,r){var n,i,s=0,a=[];if(S(e)){n=e.length;for(;s<n;s++){i=t(e[s],s,r);if(null!=i)a.push(i)}}else for(s in e){i=t(e[s],s,r);if(null!=i)a.push(i)}return o(a)},guid:1,support:d});if("function"==typeof Symbol)x.fn[Symbol.iterator]=r[Symbol.iterator];x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function S(e){var t=!!e&&"length"in e&&e.length,r=y(e);if(p(e)||g(e))return false;return"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}
11function _(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var k=r.pop;var Q=r.sort;var P=r.splice;var T="[\\x20\\t\\r\\n\\f]";var A=new RegExp("^"+T+"+|((?:^|[^\\\\])(?:\\\\.)*)"+T+"+$","g");x.contains=function(e,t){var r=t&&t.parentNode;return e===r||!!(r&&1===r.nodeType&&(e.contains?e.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))};var $=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function j(e,t){if(t){if("\0"===e)return"�";return e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" "}return"\\"+e}x.escapeSelector=function(e){return(e+"").replace($,j)};var C=m,E=s;(function(){var t,n,o,s,l,u=E,c,h,p,g,m,O=x.expando,v=0,y=0,b=et(),w=et(),S=et(),$=et(),j=function(e,t){if(e===t)l=true;return 0},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="(?:\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+T+"*("+R+")(?:"+T+"*([*^$|!~]?=)"+T+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+T+"*\\]",L=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",Z=new RegExp(T+"+","g"),X=new RegExp("^"+T+"*,"+T+"*"),q=new RegExp("^"+T+"*([>+~]|"+T+")"+T+"*"),B=new RegExp(T+"|>"),z=new RegExp(L),I=new RegExp("^"+R+"$"),N={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+L),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+T+"*(even|odd|(([+-]|)(\\d*)n|)"+T+"*(?:([+-]|)"+T+"*(\\d+)|))"+T+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+T+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+T+"*((?:-\\d)?\\d*)"+T+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,U=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\([^\\r\\n\\f])","g"),F=function(e,t){var r="0x"+e.slice(1)-65536;if(t)return t;return r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},H=function(){eu()},K=ed(function(e){return true===e.disabled&&_(e,"fieldset")},{dir:"parentNode",next:"legend"});function J(){try{return c.activeElement}catch(e){}}try{u.apply(r=i.call(C.childNodes),C.childNodes);r[C.childNodes.length].nodeType}catch(e){u={apply:function(e,t){E.apply(e,i.call(t))},call:function(e){E.apply(e,i.call(arguments,1))}}}function ee(e,t,r,n){var i,o,s,a,l,f,h,m=t&&t.ownerDocument,v=t?t.nodeType:9;r=r||[];if("string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return r;if(!n){eu(t);t=t||c;if(p){if(11!==v&&(l=Y.exec(e))){if(i=l[1]){if(9===v){if(!(s=t.getElementById(i)))return r;else if(s.id===i){u.call(r,s);return r}}else if(m&&(s=m.getElementById(i))&&ee.contains(t,s)&&s.id===i){u.call(r,s);return r}}else if(l[2]){u.apply(r,t.getElementsByTagName(e));return r}else if((i=l[3])&&t.getElementsByClassName){u.apply(r,t.getElementsByClassName(i));return r}}if(!$[e+" "]&&(!g||!g.test(e))){h=e;m=t;if(1===v&&(B.test(e)||q.test(e))){m=U.test(e)&&el(t.parentNode)||t;if(m!=t||!d.scope)if(a=t.getAttribute("id"))a=x.escapeSelector(a);else t.setAttribute("id",a=O);f=ec(e);o=f.length;while(o--)f[o]=(a?"#"+a:":scope")+" "+eh(f[o]);h=f.join(",")}try{u.apply(r,m.querySelectorAll(h));return r}catch(t){$(e,true)}finally{if(a===O)t.removeAttribute("id")}}}}return ew(e.replace(A,"$1"),t,r,n)}function et(){var e=[];function t(r,i){if(e.push(r+" ")>n.cacheLength)delete t[e.shift()];return t[r+" "]=i}return t}function er(e){e[O]=true;return e}function en(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return false}finally{if(t.parentNode)t.parentNode.removeChild(t);t=null}}function ei(e){return function(t){return _(t,"input")&&t.type===e}}function eo(e){return function(t){return(_(t,"input")||_(t,"button"))&&t.type===e}}function es(e){return function(t){if("form"in t){if(t.parentNode&&false===t.disabled){if("label"in t)if("label"in t.parentNode)return t.parentNode.disabled===e;else return t.disabled===e;return t.isDisabled===e||!e!==t.isDisabled&&K(t)===e}return t.disabled===e}if("label"in t)return t.disabled===e;return false}}function ea(e){return er(function(t){t*=1;return er(function(r,n){var i,o=e([],r.length,t),s=o.length;while(s--)if(r[i=o[s]])r[i]=!(n[i]=r[i])})})}function el(e){return e&&void 0!==e.getElementsByTagName&&e}function eu(e){var t,r=e?e.ownerDocument||e:C;if(r==c||9!==r.nodeType||!r.documentElement)return c;c=r;h=c.documentElement;p=!x.isXMLDoc(c);m=h.matches||h.webkitMatchesSelector||h.msMatchesSelector;if(h.msMatchesSelector&&C!=c&&(t=c.defaultView)&&t.top!==t)t.addEventListener("unload",H);d.getById=en(function(e){h.appendChild(e).id=x.expando;return!c.getElementsByName||!c.getElementsByName(x.expando).length});d.disconnectedMatch=en(function(e){return m.call(e,"*")});d.scope=en(function(){return c.querySelectorAll(":scope")});d.cssHas=en(function(){try{c.querySelector(":has(*,:jqfake)");return false}catch(e){return true}});
11if(d.getById){n.filter.ID=function(e){var t=e.replace(G,F);return function(e){return e.getAttribute("id")===t}};n.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var r=t.getElementById(e);return r?[r]:[]}}}else{n.filter.ID=function(e){var t=e.replace(G,F);return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}};n.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var r,n,i,o=t.getElementById(e);if(o){r=o.getAttributeNode("id");if(r&&r.value===e)return[o];i=t.getElementsByName(e);n=0;while(o=i[n++]){r=o.getAttributeNode("id");if(r&&r.value===e)return[o]}}return[]}}}n.find.TAG=function(e,t){if(void 0!==t.getElementsByTagName)return t.getElementsByTagName(e);return t.querySelectorAll(e)};n.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)};g=[];en(function(e){var t;h.appendChild(e).innerHTML="<a id='"+O+"' href='' disabled='disabled'></a><select id='"+O+"-\r\\' disabled='disabled'><option selected=''></option></select>";if(!e.querySelectorAll("[selected]").length)g.push("\\["+T+"*(?:value|"+M+")");if(!e.querySelectorAll("[id~="+O+"-]").length)g.push("~=");if(!e.querySelectorAll("a#"+O+"+*").length)g.push(".#.+[+~]");if(!e.querySelectorAll(":checked").length)g.push(":checked");t=c.createElement("input");t.setAttribute("type","hidden");e.appendChild(t).setAttribute("name","D");h.appendChild(e).disabled=true;if(2!==e.querySelectorAll(":disabled").length)g.push(":enabled",":disabled");t=c.createElement("input");t.setAttribute("name","");e.appendChild(t);if(!e.querySelectorAll("[name='']").length)g.push("\\["+T+"*name"+T+"*="+T+"*(?:''|\"\")")});if(!d.cssHas)g.push(":has");g=g.length&&new RegExp(g.join("|"));j=function(e,t){if(e===t){l=true;return 0}var r=!e.compareDocumentPosition-!t.compareDocumentPosition;if(r)return r;r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1;if(1&r||!d.sortDetached&&t.compareDocumentPosition(e)===r){if(e===c||e.ownerDocument==C&&ee.contains(C,e))return -1;if(t===c||t.ownerDocument==C&&ee.contains(C,t))return 1;return s?a.call(s,e)-a.call(s,t):0}return 4&r?-1:1};return c}ee.matches=function(e,t){return ee(e,null,null,t)};ee.matchesSelector=function(e,t){eu(e);if(p&&!$[t+" "]&&(!g||!g.test(t)))try{var r=m.call(e,t);if(r||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){$(t,true)}return ee(t,c,null,[e]).length>0};ee.contains=function(e,t){if((e.ownerDocument||e)!=c)eu(e);return x.contains(e,t)};ee.attr=function(e,t){if((e.ownerDocument||e)!=c)eu(e);var r=n.attrHandle[t.toLowerCase()],i=r&&f.call(n.attrHandle,t.toLowerCase())?r(e,t,!p):void 0;if(void 0!==i)return i;return e.getAttribute(t)};ee.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};x.uniqueSort=function(e){var t,r=[],n=0,o=0;l=!d.sortStable;s=!d.sortStable&&i.call(e,0);Q.call(e,j);if(l){while(t=e[o++])if(t===e[o])n=r.push(o);while(n--)P.call(e,r[n],1)}s=null;return e};x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(i.apply(this)))};n=x.expr={cacheLength:50,createPseudo:er,match:N,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(G,F);e[3]=(e[3]||e[4]||e[5]||"").replace(G,F);if("~="===e[2])e[3]=" "+e[3]+" ";return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if("nth"===e[1].slice(0,3)){if(!e[3])ee.error(e[0]);e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3]));e[5]=+(e[7]+e[8]||"odd"===e[3])}else if(e[3])ee.error(e[0]);return e},PSEUDO:function(e){var t,r=!e[6]&&e[2];if(N.CHILD.test(e[0]))return null;if(e[3])e[2]=e[4]||e[5]||"";else if(r&&z.test(r)&&(t=ec(r,true))&&(t=r.indexOf(")",r.length-t)-r.length)){e[0]=e[0].slice(0,t);e[2]=r.slice(0,t)}return e.slice(0,3)}},filter:{TAG:function(e){var t=e.replace(G,F).toLowerCase();return"*"===e?function(){return true}:function(e){return _(e,t)}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+T+")"+e+"("+T+"|$)"),b(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,r){return function(n){var i=ee.attr(n,e);if(null==i)return"!="===t;if(!t)return true;i+="";if("="===t)return i===r;if("!="===t)return i!==r;if("^="===t)return r&&0===i.indexOf(r);if("*="===t)return r&&i.indexOf(r)>-1;if("$="===t)return r&&i.slice(-r.length)===r;if("~="===t)return(" "+i.replace(Z," ")+" ").indexOf(r)>-1;if("|="===t)return i===r||i.slice(0,r.length+1)===r+"-";return false}},CHILD:function(e,t,r,n,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===i?function(e){return!!e.parentNode}:function(t,r,l){var u,f,c,h,d,p=o!==s?"nextSibling":"previousSibling",g=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=false;if(g){if(o){while(p){c=t;while(c=c[p])if(a?_(c,m):1===c.nodeType)return false;d=p="only"===e&&!d&&"nextSibling"}return true}d=[s?g.firstChild:g.lastChild];if(s&&y){f=g[O]||(g[O]={});u=f[e]||[];h=u[0]===v&&u[1];b=h&&u[2];c=h&&g.childNodes[h];while(c=++h&&c&&c[p]||(b=h=0)||d.pop())if(1===c.nodeType&&++b&&c===t){f[e]=[v,h,b];break}}else{if(y){f=t[O]||(t[O]={});u=f[e]||[];h=u[0]===v&&u[1];b=h}if(false===b){while(c=++h&&c&&c[p]||(b=h=0)||d.pop())if((a?_(c,m):1===c.nodeType)&&++b){if(y){f=c[O]||(c[O]={});f[e]=[v,b]}if(c===t)break}}}b-=i;return b===n||b%n===0&&b/n>=0}}},PSEUDO:function(e,t){var r,i=n.pseudos[e]||n.setFilters[e.toLowerCase()]||ee.error("unsupported pseudo: "+e);if(i[O])return i(t);if(i.length>1){r=[e,e,"",t];return n.setFilters.hasOwnProperty(e.toLowerCase())?er(function(e,r){var n,o=i(e,t),s=o.length;while(s--){n=a.call(e,o[s]);e[n]=!(r[n]=o[s])}}):function(e){return i(e,0,r)}}return i}},pseudos:{not:er(function(e){var t=[],r=[],n=eb(e.replace(A,"$1"));return n[O]?er(function(e,t,r,i){var o,s=n(e,null,i,[]),a=e.length;while(a--)if(o=s[a])e[a]=!(t[a]=o)}):function(e,i,o){t[0]=e;n(t,null,o,r);t[0]=null;return!r.pop()}}),has:er(function(e){return function(t){return ee(e,t).length>0}}),contains:er(function(e){e=e.replace(G,F);return function(t){return(t.textContent||x.text(t)).indexOf(e)>-1}}),lang:er(function(e){if(!I.test(e||""))ee.error("unsupported lang: "+e);e=e.replace(G,F).toLowerCase();return function(t){var r;do if(r=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang")){r=r.toLowerCase();return r===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return false}}),target:function(t){var r=e.location&&e.location.hash;return r&&r.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===J()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:es(false),disabled:es(true),checked:function(e){return _(e,"input")&&!!e.checked||_(e,"option")&&!!e.selected},selected:function(e){if(e.parentNode)e.parentNode.selectedIndex;return true===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return false;return true},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)}
11,input:function(e){return V.test(e.nodeName)},button:function(e){return _(e,"input")&&"button"===e.type||_(e,"button")},text:function(e){var t;return _(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ea(function(){return[0]}),last:ea(function(e,t){return[t-1]}),eq:ea(function(e,t,r){return[r<0?r+t:r]}),even:ea(function(e,t){var r=0;for(;r<t;r+=2)e.push(r);return e}),odd:ea(function(e,t){var r=1;for(;r<t;r+=2)e.push(r);return e}),lt:ea(function(e,t,r){var n;n=r<0?r+t:r>t?t:r;for(;--n>=0;)e.push(n);return e}),gt:ea(function(e,t,r){var n=r<0?r+t:r;for(;++n<t;)e.push(n);return e})}};n.pseudos.nth=n.pseudos.eq;for(t in{radio:true,checkbox:true,file:true,password:true,image:true})n.pseudos[t]=ei(t);for(t in{submit:true,reset:true})n.pseudos[t]=eo(t);function ef(){}ef.prototype=n.filters=n.pseudos;n.setFilters=new ef;function ec(e,t){var r,i,o,s,a,l,u,f=w[e+" "];if(f)return t?0:f.slice(0);a=e;l=[];u=n.preFilter;while(a){if(!r||(i=X.exec(a))){if(i)a=a.slice(i[0].length)||a;l.push(o=[])}r=false;if(i=q.exec(a)){r=i.shift();o.push({value:r,type:i[0].replace(A," ")});a=a.slice(r.length)}for(s in n.filter)if((i=N[s].exec(a))&&(!u[s]||(i=u[s](i)))){r=i.shift();o.push({value:r,type:s,matches:i});a=a.slice(r.length)}if(!r)break}if(t)return a.length;return a?ee.error(e):w(e,l).slice(0)}function eh(e){var t=0,r=e.length,n="";for(;t<r;t++)n+=e[t].value;return n}function ed(e,t,r){var n=t.dir,i=t.next,o=i||n,s=r&&"parentNode"===o,a=y++;return t.first?function(t,r,i){while(t=t[n])if(1===t.nodeType||s)return e(t,r,i);return false}:function(t,r,l){var u,f,c=[v,a];if(l){while(t=t[n])if(1===t.nodeType||s){if(e(t,r,l))return true}}else while(t=t[n])if(1===t.nodeType||s){f=t[O]||(t[O]={});if(i&&_(t,i))t=t[n]||t;else{if((u=f[o])&&u[0]===v&&u[1]===a)return c[2]=u[2];f[o]=c;if(c[2]=e(t,r,l))return true}}return false}}function ep(e){return e.length>1?function(t,r,n){var i=e.length;while(i--)if(!e[i](t,r,n))return false;return true}:e[0]}function eg(e,t,r){var n=0,i=t.length;for(;n<i;n++)ee(e,t[n],r);return r}function em(e,t,r,n,i){var o,s=[],a=0,l=e.length,u=null!=t;for(;a<l;a++)if(o=e[a]){if(!r||r(o,n,i)){s.push(o);if(u)t.push(a)}}return s}function eO(e,t,r,n,i,o){if(n&&!n[O])n=eO(n);if(i&&!i[O])i=eO(i,o);return er(function(o,s,l,f){var c,h,d,p,g=[],m=[],O=s.length,v=o||eg(t||"*",l.nodeType?[l]:l,[]),y=e&&(o||!t)?em(v,g,e,l,f):v;if(r){p=i||(o?e:O||n)?[]:s;r(y,p,l,f)}else p=y;if(n){c=em(p,m);n(c,[],l,f);h=c.length;while(h--)if(d=c[h])p[m[h]]=!(y[m[h]]=d)}if(o){if(i||e){if(i){c=[];h=p.length;while(h--)if(d=p[h])c.push(y[h]=d);i(null,p=[],c,f)}h=p.length;while(h--)if((d=p[h])&&(c=i?a.call(o,d):g[h])>-1)o[c]=!(s[c]=d)}}else{p=em(p===s?p.splice(O,p.length):p);if(i)i(null,s,p,f);else u.apply(s,p)}})}function ev(e){var t,r,i,s=e.length,l=n.relative[e[0].type],u=l||n.relative[" "],f=l?1:0,c=ed(function(e){return e===t},u,true),h=ed(function(e){return a.call(t,e)>-1},u,true),d=[function(e,r,n){var i=!l&&(n||r!=o)||((t=r).nodeType?c(e,r,n):h(e,r,n));t=null;return i}];for(;f<s;f++)if(r=n.relative[e[f].type])d=[ed(ep(d),r)];else{r=n.filter[e[f].type].apply(null,e[f].matches);if(r[O]){i=++f;for(;i<s&&!n.relative[e[i].type];i++);return eO(f>1&&ep(d),f>1&&eh(e.slice(0,f-1).concat({value:" "===e[f-2].type?"*":""})).replace(A,"$1"),r,f<i&&ev(e.slice(f,i)),i<s&&ev(e=e.slice(i)),i<s&&eh(e))}d.push(r)}return ep(d)}function ey(e,t){var r=t.length>0,i=e.length>0,s=function(s,a,l,f,h){var d,g,m,O=0,y="0",b=s&&[],w=[],S=o,_=s||i&&n.find.TAG("*",h),Q=v+=null==S?1:Math.random()||.1,P=_.length;if(h)o=a==c||a||h;for(;y!==P&&null!=(d=_[y]);y++){if(i&&d){g=0;if(!a&&d.ownerDocument!=c){eu(d);l=!p}while(m=e[g++])if(m(d,a||c,l)){u.call(f,d);break}if(h)v=Q}if(r){if(d=!m&&d)O--;if(s)b.push(d)}}O+=y;if(r&&y!==O){g=0;while(m=t[g++])m(b,w,a,l);if(s){if(O>0){while(y--)if(!(b[y]||w[y]))w[y]=k.call(f)}w=em(w)}u.apply(f,w);if(h&&!s&&w.length>0&&O+t.length>1)x.uniqueSort(f)}if(h){v=Q;o=S}return b};return r?er(s):s}function eb(e,t){var r,n=[],i=[],o=S[e+" "];if(!o){if(!t)t=ec(e);r=t.length;while(r--){o=ev(t[r]);if(o[O])n.push(o);else i.push(o)}o=S(e,ey(i,n));o.selector=e}return o}function ew(e,t,r,i){var o,s,a,l,f,c="function"==typeof e&&e,h=!i&&ec(e=c.selector||e);r=r||[];if(1===h.length){s=h[0]=h[0].slice(0);if(s.length>2&&"ID"===(a=s[0]).type&&9===t.nodeType&&p&&n.relative[s[1].type]){t=(n.find.ID(a.matches[0].replace(G,F),t)||[])[0];if(!t)return r;if(c)t=t.parentNode;e=e.slice(s.shift().value.length)}o=N.needsContext.test(e)?0:s.length;while(o--){a=s[o];if(n.relative[l=a.type])break;if(f=n.find[l]){if(i=f(a.matches[0].replace(G,F),U.test(s[0].type)&&el(t.parentNode)||t)){s.splice(o,1);e=i.length&&eh(s);if(!e){u.apply(r,i);return r}break}}}}(c||eb(e,h))(i,t,!p,r,!t||U.test(e)&&el(t.parentNode)||t);return r}d.sortStable=O.split("").sort(j).join("")===O;eu();d.sortDetached=en(function(e){return 1&e.compareDocumentPosition(c.createElement("fieldset"))});x.find=ee;x.expr[":"]=x.expr.pseudos;x.unique=x.uniqueSort;ee.compile=eb;ee.select=ew;ee.setDocument=eu;ee.tokenize=ec;ee.escape=x.escapeSelector;ee.getText=x.text;ee.isXML=x.isXMLDoc;ee.selectors=x.expr;ee.support=x.support;ee.uniqueSort=x.uniqueSort})();var M=function(e,t,r){var n=[],i=void 0!==r;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(r))break;n.push(e)}return n};var R=function(e,t){var r=[];for(;e;e=e.nextSibling)if(1===e.nodeType&&e!==t)r.push(e);return r};var D=x.expr.match.needsContext;var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Z(e,t,r){if(p(t))return x.grep(e,function(e,n){return!!t.call(e,n,e)!==r});
11if(t.nodeType)return x.grep(e,function(e){return e===t!==r});if("string"!=typeof t)return x.grep(e,function(e){return a.call(t,e)>-1!==r});return x.filter(t,e,r)}x.filter=function(e,t,r){var n=t[0];if(r)e=":not("+e+")";if(1===t.length&&1===n.nodeType)return x.find.matchesSelector(n,e)?[n]:[];return x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))};x.fn.extend({find:function(e){var t,r,n=this.length,i=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<n;t++)if(x.contains(i[t],this))return true}));r=this.pushStack([]);for(t=0;t<n;t++)x.find(e,i[t],r);return n>1?x.uniqueSort(r):r},filter:function(e){return this.pushStack(Z(this,e||[],false))},not:function(e){return this.pushStack(Z(this,e||[],true))},is:function(e){return!!Z(this,"string"==typeof e&&D.test(e)?x(e):e||[],false).length}});var X,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,B=x.fn.init=function(e,t,r){var n,i;if(!e)return this;r=r||X;if("string"==typeof e){n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e);if(n&&(n[1]||!t))if(n[1]){t=t instanceof x?t[0]:t;x.merge(this,x.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:m,true));if(L.test(n[1])&&x.isPlainObject(t))for(n in t)if(p(this[n]))this[n](t[n]);else this.attr(n,t[n]);return this}else{i=m.getElementById(n[2]);if(i){this[0]=i;this.length=1}return this}if(!t||t.jquery)return(t||r).find(e);return this.constructor(t).find(e)}if(e.nodeType){this[0]=e;this.length=1;return this}if(p(e))return void 0!==r.ready?r.ready(e):e(x);return x.makeArray(e,this)};B.prototype=x.fn;X=x(m);var z=/^(?:parents|prev(?:Until|All))/,I={children:true,contents:true,next:true,prev:true};x.fn.extend({has:function(e){var t=x(e,this),r=t.length;return this.filter(function(){var e=0;for(;e<r;e++)if(x.contains(this,t[e]))return true})},closest:function(e,t){var r,n=0,i=this.length,o=[],s="string"!=typeof e&&x(e);if(!D.test(e)){for(;n<i;n++)for(r=this[n];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(s?s.index(r)>-1:1===r.nodeType&&x.find.matchesSelector(r,e))){o.push(r);break}}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(e){if(!e)return this[0]&&this[0].parentNode?this.first().prevAll().length:-1;if("string"==typeof e)return a.call(x(e),this[0]);return a.call(this,e.jquery?e[0]:e)},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function N(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return M(e,"parentNode")},parentsUntil:function(e,t,r){return M(e,"parentNode",r)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return M(e,"nextSibling")},prevAll:function(e){return M(e,"previousSibling")},nextUntil:function(e,t,r){return M(e,"nextSibling",r)},prevUntil:function(e,t,r){return M(e,"previousSibling",r)},siblings:function(e){return R((e.parentNode||{}).firstChild,e)},children:function(e){return R(e.firstChild)},contents:function(e){if(null!=e.contentDocument&&n(e.contentDocument))return e.contentDocument;if(_(e,"template"))e=e.content||e;
11return x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(r,n){var i=x.map(this,t,r);if("Until"!==e.slice(-5))n=r;if(n&&"string"==typeof n)i=x.filter(n,i);if(this.length>1){if(!I[e])x.uniqueSort(i);if(z.test(e))i.reverse()}return this.pushStack(i)}});var V=/[^\x20\t\r\n\f]+/g;function W(e){var t={};x.each(e.match(V)||[],function(e,r){t[r]=true});return t}x.Callbacks=function(e){e="string"==typeof e?W(e):x.extend({},e);var t,r,n,i,o=[],s=[],a=-1,l=function(){i=i||e.once;n=t=true;for(;s.length;a=-1){r=s.shift();while(++a<o.length)if(false===o[a].apply(r[0],r[1])&&e.stopOnFalse){a=o.length;r=false}}if(!e.memory)r=false;t=false;if(i)o=r?[]:""},u={add:function(){if(o){if(r&&!t){a=o.length-1;s.push(r)}(function t(r){x.each(r,function(r,n){if(p(n)){if(!e.unique||!u.has(n))o.push(n)}else if(n&&n.length&&"string"!==y(n))t(n)})})(arguments);if(r&&!t)l()}return this},remove:function(){x.each(arguments,function(e,t){var r;while((r=x.inArray(t,o,r))>-1){o.splice(r,1);if(r<=a)a--}});return this},has:function(e){return e?x.inArray(e,o)>-1:o.length>0},empty:function(){if(o)o=[];return this},disable:function(){i=s=[];o=r="";return this},disabled:function(){return!o},lock:function(){i=s=[];if(!r&&!t)o=r="";return this},locked:function(){return!!i},fireWith:function(e,r){if(!i){r=r||[];r=[e,r.slice?r.slice():r];s.push(r);if(!t)l()}return this},fire:function(){u.fireWith(this,arguments);return this},fired:function(){return!!n}};return u};function Y(e){return e}function U(e){throw e}function G(e,t,r,n){var i;try{if(e&&p(i=e.promise))i.call(e).done(t).fail(r);else if(e&&p(i=e.then))i.call(e,t,r);else t.apply(void 0,[e].slice(n))}catch(e){r.apply(void 0,[e])}}x.extend({Deferred:function(t){var r=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){o.done(arguments).fail(arguments);return this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(t){x.each(r,function(r,n){var i=p(e[n[4]])&&e[n[4]];o[n[1]](function(){var e=i&&i.apply(this,arguments);if(e&&p(e.promise))e.promise().progress(t.notify).done(t.resolve).fail(t.reject);else t[n[0]+"With"](this,i?[e]:arguments)})});e=null}).promise()},then:function(t,n,i){var o=0;function s(t,r,n,i){return function(){var a=this,l=arguments,u=function(){var e,u;if(t<o)return;e=n.apply(a,l);if(e===r.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then;if(p(u))if(i)u.call(e,s(o,r,Y,i),s(o,r,U,i));else{o++;u.call(e,s(o,r,Y,i),s(o,r,U,i),s(o,r,Y,r.notifyWith))}else{if(n!==Y){a=void 0;l=[e]}(i||r.resolveWith)(a,l)}},f=i?u:function(){try{u()}catch(e){if(x.Deferred.exceptionHook)x.Deferred.exceptionHook(e,f.error);if(t+1>=o){if(n!==U){a=void 0;l=[e]}r.rejectWith(a,l)}}};if(t)f();else{if(x.Deferred.getErrorHook)f.error=x.Deferred.getErrorHook();else if(x.Deferred.getStackHook)f.error=x.Deferred.getStackHook();e.setTimeout(f)}}}return x.Deferred(function(e){r[0][3].add(s(0,e,p(i)?i:Y,e.notifyWith));r[1][3].add(s(0,e,p(t)?t:Y));r[2][3].add(s(0,e,p(n)?n:U))}).promise()},promise:function(e){return null!=e?x.extend(e,i):i}},o={};x.each(r,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add;if(a)s.add(function(){n=a},r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock);s.add(t[3].fire);o[t[0]]=function(){o[t[0]+"With"](this===o?void 0:this,arguments);return this};o[t[0]+"With"]=s.fireWith});i.promise(o);if(t)t.call(o,o);return o},when:function(e){var t=arguments.length,r=t,n=Array(r),o=i.call(arguments),s=x.Deferred(),a=function(e){return function(r){n[e]=this;o[e]=arguments.length>1?i.call(arguments):r;if(!--t)s.resolveWith(n,o)}};if(t<=1){G(e,s.done(a(r)).resolve,s.reject,!t);if("pending"===s.state()||p(o[r]&&o[r].then))return s.then()}while(r--)G(o[r],a(r),s.reject);return s.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,r){if(e.console&&e.console.warn&&t&&F.test(t.name))e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,r)};x.readyException=function(t){e.setTimeout(function(){throw t})};var H=x.Deferred();x.fn.ready=function(e){H.then(e).catch(function(e){x.readyException(e)});return this};x.extend({isReady:false,readyWait:1,ready:function(e){if(true===e?--x.readyWait:x.isReady)return;x.isReady=true;if(true!==e&&--x.readyWait>0)return;H.resolveWith(m,[x])}});x.ready.then=H.then;function K(){m.removeEventListener("DOMContentLoaded",K);e.removeEventListener("load",K);x.ready()}if("complete"!==m.readyState&&("loading"===m.readyState||m.documentElement.doScroll)){m.addEventListener("DOMContentLoaded",K);e.addEventListener("load",K)}else e.setTimeout(x.ready);var J=function(e,t,r,n,i,o,s){var a=0,l=e.length,u=null==r;if("object"===y(r)){i=true;for(a in r)J(e,t,a,r[a],true,o,s)}
11else if(void 0!==n){i=true;if(!p(n))s=true;if(u)if(s){t.call(e,n);t=null}else{u=t;t=function(e,t,r){return u.call(x(e),r)}}if(t)for(;a<l;a++)t(e[a],r,s?n:n.call(e[a],a,t(e[a],r)))}if(i)return e;if(u)return t.call(e);return l?t(e[0],r):o};var ee=/^-ms-/,et=/-([a-z])/g;function er(e,t){return t.toUpperCase()}function en(e){return e.replace(ee,"ms-").replace(et,er)}var ei=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function eo(){this.expando=x.expando+eo.uid++}eo.uid=1;eo.prototype={cache:function(e){var t=e[this.expando];if(!t){t={};if(ei(e))if(e.nodeType)e[this.expando]=t;else Object.defineProperty(e,this.expando,{value:t,configurable:true})}return t},set:function(e,t,r){var n,i=this.cache(e);if("string"==typeof t)i[en(t)]=r;else for(n in t)i[en(n)]=t[n];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][en(t)]},access:function(e,t,r){if(void 0===t||t&&"string"==typeof t&&void 0===r)return this.get(e,t);this.set(e,t,r);return void 0!==r?r:t},remove:function(e,t){var r,n=e[this.expando];if(void 0===n)return;if(void 0!==t){if(Array.isArray(t))t=t.map(en);else{t=en(t);t=t in n?[t]:t.match(V)||[]}r=t.length;while(r--)delete n[t[r]]}if(void 0===t||x.isEmptyObject(n))if(e.nodeType)e[this.expando]=void 0;else delete e[this.expando]},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var es=new eo;var ea=new eo;var el=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,eu=/[A-Z]/g;function ef(e){if("true"===e)return true;if("false"===e)return false;if("null"===e)return null;if(e===+e+"")return+e;if(el.test(e))return JSON.parse(e);return e}function ec(e,t,r){var n;if(void 0===r&&1===e.nodeType){n="data-"+t.replace(eu,"-$&").toLowerCase();r=e.getAttribute(n);if("string"==typeof r){try{r=ef(r)}catch(e){}ea.set(e,t,r)}else r=void 0}return r}x.extend({hasData:function(e){return ea.hasData(e)||es.hasData(e)},data:function(e,t,r){return ea.access(e,t,r)},removeData:function(e,t){ea.remove(e,t)},_data:function(e,t,r){return es.access(e,t,r)},_removeData:function(e,t){es.remove(e,t)}});x.fn.extend({data:function(e,t){var r,n,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length){i=ea.get(o);if(1===o.nodeType&&!es.get(o,"hasDataAttrs")){r=s.length;while(r--)if(s[r]){n=s[r].name;if(0===n.indexOf("data-")){n=en(n.slice(5));ec(o,n,i[n])}}es.set(o,"hasDataAttrs",true)}}return i}if("object"==typeof e)return this.each(function(){ea.set(this,e)});return J(this,function(t){var r;if(o&&void 0===t){r=ea.get(o,e);if(void 0!==r)return r;r=ec(o,e);if(void 0!==r)return r;return}this.each(function(){ea.set(this,e,t)})},null,t,arguments.length>1,null,true)},removeData:function(e){return this.each(function(){ea.remove(this,e)})}});x.extend({queue:function(e,t,r){var n;if(e){t=(t||"fx")+"queue";n=es.get(e,t);if(r)if(!n||Array.isArray(r))n=es.access(e,t,x.makeArray(r));else n.push(r);return n||[]}},dequeue:function(e,t){t=t||"fx";var r=x.queue(e,t),n=r.length,i=r.shift(),o=x._queueHooks(e,t),s=function(){x.dequeue(e,t)};if("inprogress"===i){i=r.shift();n--}if(i){if("fx"===t)r.unshift("inprogress");delete o.stop;i.call(e,s,o)}if(!n&&o)o.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return es.get(e,r)||es.access(e,r,{empty:x.Callbacks("once memory").add(function(){es.remove(e,[t+"queue",r])})})}});x.fn.extend({queue:function(e,t){var r=2;if("string"!=typeof e){t=e;e="fx";r--}if(arguments.length<r)return x.queue(this[0],e);return void 0===t?this:this.each(function(){var r=x.queue(this,e,t);x._queueHooks(this,e);if("fx"===e&&"inprogress"!==r[0])x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,n=1,i=x.Deferred(),o=this,s=this.length,a=function(){if(!--n)i.resolveWith(o,[o])};if("string"!=typeof e){t=e;e=void 0}e=e||"fx";while(s--){r=es.get(o[s],e+"queueHooks");if(r&&r.empty){n++;r.empty.add(a)}}a();return i.promise(t)}});var eh=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var ed=new RegExp("^(?:([+-])=|)("+eh+")([a-z%]*)$","i");var ep=["Top","Right","Bottom","Left"];var eg=m.documentElement;var em=function(e){return x.contains(e.ownerDocument,e)},eO={composed:true};if(eg.getRootNode)em=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(eO)===e.ownerDocument};var ev=function(e,t){e=t||e;return"none"===e.style.display||""===e.style.display&&em(e)&&"none"===x.css(e,"display")};function ey(e,t,r,n){var i,o,s=20,a=n?function(){return n.cur()}:function(){return x.css(e,t,"")},l=a(),u=r&&r[3]||(x.cssNumber[t]?"":"px"),f=e.nodeType&&(x.cssNumber[t]||"px"!==u&&+l)&&ed.exec(x.css(e,t));if(f&&f[3]!==u){l/=2;u=u||f[3];f=+l||1;while(s--){x.style(e,t,f+u);if((1-o)*(1-(o=a()/l||.5))<=0)s=0;f/=o}f*=2;x.style(e,t,f+u);r=r||[]}if(r){f=+f||+l||0;i=r[1]?f+(r[1]+1)*r[2]:+r[2];if(n){n.unit=u;n.start=f;n.end=i}}return i}var eb={};function ew(e){var t,r=e.ownerDocument,n=e.nodeName,i=eb[n];if(i)return i;t=r.body.appendChild(r.createElement(n));i=x.css(t,"display");t.parentNode.removeChild(t);if("none"===i)i="block";eb[n]=i;return i}function ex(e,t){var r,n,i=[],o=0,s=e.length;for(;o<s;o++){n=e[o];if(n.style){r=n.style.display;
11if(t){if("none"===r){i[o]=es.get(n,"display")||null;if(!i[o])n.style.display=""}if(""===n.style.display&&ev(n))i[o]=ew(n)}else if("none"!==r){i[o]="none";es.set(n,"display",r)}}}for(o=0;o<s;o++)if(null!=i[o])e[o].style.display=i[o];return e}x.fn.extend({show:function(){return ex(this,true)},hide:function(){return ex(this)},toggle:function(e){if("boolean"==typeof e)return e?this.show():this.hide();return this.each(function(){if(ev(this))x(this).show();else x(this).hide()})}});var eS=/^(?:checkbox|radio)$/i;var e_=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var ek=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=m.createDocumentFragment(),t=e.appendChild(m.createElement("div")),r=m.createElement("input");r.setAttribute("type","radio");r.setAttribute("checked","checked");r.setAttribute("name","t");t.appendChild(r);d.checkClone=t.cloneNode(true).cloneNode(true).lastChild.checked;t.innerHTML="<textarea>x</textarea>";d.noCloneChecked=!!t.cloneNode(true).lastChild.defaultValue;t.innerHTML="<option></option>";d.option=!!t.lastChild})();var eQ={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};eQ.tbody=eQ.tfoot=eQ.colgroup=eQ.caption=eQ.thead;eQ.th=eQ.td;if(!d.option)eQ.optgroup=eQ.option=[1,"<select multiple='multiple'>","</select>"];function eP(e,t){var r;r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];
11if(void 0===t||t&&_(e,t))return x.merge([e],r);return r}function eT(e,t){var r=0,n=e.length;for(;r<n;r++)es.set(e[r],"globalEval",!t||es.get(t[r],"globalEval"))}var eA=/<|&#?\w+;/;function e$(e,t,r,n,i){var o,s,a,l,u,f,c=t.createDocumentFragment(),h=[],d=0,p=e.length;for(;d<p;d++){o=e[d];if(o||0===o)if("object"===y(o))x.merge(h,o.nodeType?[o]:o);else if(eA.test(o)){s=s||c.appendChild(t.createElement("div"));a=(e_.exec(o)||["",""])[1].toLowerCase();l=eQ[a]||eQ._default;s.innerHTML=l[1]+x.htmlPrefilter(o)+l[2];f=l[0];while(f--)s=s.lastChild;x.merge(h,s.childNodes);s=c.firstChild;s.textContent=""}else h.push(t.createTextNode(o))}c.textContent="";d=0;while(o=h[d++]){if(n&&x.inArray(o,n)>-1){if(i)i.push(o);continue}u=em(o);s=eP(c.appendChild(o),"script");if(u)eT(s);if(r){f=0;while(o=s[f++])if(ek.test(o.type||""))r.push(o)}}return c}var ej=/^([^.]*)(?:\.(.+)|)/;function eC(){return true}function eE(){return false}function eM(e,t,r,n,i,o){var s,a;if("object"==typeof t){if("string"!=typeof r){n=n||r;r=void 0}for(a in t)eM(e,a,r,n,t[a],o);return e}if(null==n&&null==i){i=r;n=r=void 0}else if(null==i)if("string"==typeof r){i=n;n=void 0}else{i=n;n=r;r=void 0}if(false===i)i=eE;else if(!i)return e;if(1===o){s=i;i=function(e){x().off(e);return s.apply(this,arguments)};i.guid=s.guid||(s.guid=x.guid++)}return e.each(function(){x.event.add(this,t,i,n,r)})}x.event={global:{},add:function(e,t,r,n,i){var o,s,a,l,u,f,c,h,d,p,g,m=es.get(e);if(!ei(e))return;if(r.handler){o=r;r=o.handler;i=o.selector}if(i)x.find.matchesSelector(eg,i);if(!r.guid)r.guid=x.guid++;if(!(l=m.events))l=m.events=Object.create(null);if(!(s=m.handle))s=m.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0};t=(t||"").match(V)||[""];u=t.length;while(u--){a=ej.exec(t[u])||[];d=g=a[1];p=(a[2]||"").split(".").sort();if(!d)continue;c=x.event.special[d]||{};d=(i?c.delegateType:c.bindType)||d;c=x.event.special[d]||{};f=x.extend({type:d,origType:g,data:n,handler:r,guid:r.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:p.join(".")},o);if(!(h=l[d])){h=l[d]=[];h.delegateCount=0;if(!c.setup||false===c.setup.call(e,n,p,s)){if(e.addEventListener)e.addEventListener(d,s)}}if(c.add){c.add.call(e,f);if(!f.handler.guid)f.handler.guid=r.guid}if(i)h.splice(h.delegateCount++,0,f);else h.push(f);x.event.global[d]=true}},remove:function(e,t,r,n,i){var o,s,a,l,u,f,c,h,d,p,g,m=es.hasData(e)&&es.get(e);if(!m||!(l=m.events))return;t=(t||"").match(V)||[""];u=t.length;while(u--){a=ej.exec(t[u])||[];d=g=a[1];p=(a[2]||"").split(".").sort();if(!d){for(d in l)x.event.remove(e,d+t[u],r,n,true);continue}c=x.event.special[d]||{};d=(n?c.delegateType:c.bindType)||d;h=l[d]||[];a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)");s=o=h.length;while(o--){f=h[o];if((i||g===f.origType)&&(!r||r.guid===f.guid)&&(!a||a.test(f.namespace))&&(!n||n===f.selector||"**"===n&&f.selector)){h.splice(o,1);if(f.selector)h.delegateCount--;if(c.remove)c.remove.call(e,f)}}if(s&&!h.length){if(!c.teardown||false===c.teardown.call(e,p,m.handle))x.removeEvent(e,d,m.handle);delete l[d]}}if(x.isEmptyObject(l))es.remove(e,"handle events")},dispatch:function(e){var t,r,n,i,o,s,a=new Array(arguments.length),l=x.event.fix(e),u=(es.get(this,"events")||Object.create(null))[l.type]||[],f=x.event.special[l.type]||{};a[0]=l;for(t=1;t<arguments.length;t++)a[t]=arguments[t];l.delegateTarget=this;if(f.preDispatch&&false===f.preDispatch.call(this,l))return;s=x.event.handlers.call(this,l,u);t=0;while((i=s[t++])&&!l.isPropagationStopped()){l.currentTarget=i.elem;r=0;while((o=i.handlers[r++])&&!l.isImmediatePropagationStopped())if(!l.rnamespace||false===o.namespace||l.rnamespace.test(o.namespace)){l.handleObj=o;l.data=o.data;n=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a);if(void 0!==n){if(false===(l.result=n)){l.preventDefault();l.stopPropagation()}}}}if(f.postDispatch)f.postDispatch.call(this,l);return l.result},handlers:function(e,t){var r,n,i,o,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1)){for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&!("click"===e.type&&true===u.disabled)){o=[];s={};for(r=0;r<l;r++){n=t[r];i=n.selector+" ";if(void 0===s[i])s[i]=n.needsContext?x(i,this).index(u)>-1:x.find(i,this,null,[u]).length;if(s[i])o.push(n)}if(o.length)a.push({elem:u,handlers:o})}}u=this;if(l<t.length)a.push({elem:u,handlers:t.slice(l)});return a},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:true,configurable:true,get:p(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
11,set:function(t){Object.defineProperty(this,e,{enumerable:true,configurable:true,writable:true,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:true},click:{setup:function(e){var t=this||e;if(eS.test(t.type)&&t.click&&_(t,"input"))eR(t,"click",true);return false},trigger:function(e){var t=this||e;if(eS.test(t.type)&&t.click&&_(t,"input"))eR(t,"click");return true},_default:function(e){var t=e.target;return eS.test(t.type)&&t.click&&_(t,"input")&&es.get(t,"click")||_(t,"a")}},beforeunload:{postDispatch:function(e){if(void 0!==e.result&&e.originalEvent)e.originalEvent.returnValue=e.result}}}};function eR(e,t,r){if(!r){if(void 0===es.get(e,t))x.event.add(e,t,eC);return}es.set(e,t,false);x.event.add(e,t,{namespace:false,handler:function(e){var r,n=es.get(this,t);if(1&e.isTrigger&&this[t])if(n){if((x.event.special[t]||{}).delegateType)e.stopPropagation()}else{n=i.call(arguments);es.set(this,t,n);this[t]();r=es.get(this,t);es.set(this,t,false);if(n!==r){e.stopImmediatePropagation();e.preventDefault();return r}}else if(n){es.set(this,t,x.event.trigger(n[0],n.slice(1),this));e.stopPropagation();e.isImmediatePropagationStopped=eC}}})}x.removeEvent=function(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r)};x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);if(e&&e.type){this.originalEvent=e;this.type=e.type;this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&false===e.returnValue?eC:eE;this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target;this.currentTarget=e.currentTarget;this.relatedTarget=e.relatedTarget}else this.type=e;if(t)x.extend(this,t);this.timeStamp=e&&e.timeStamp||Date.now();this[x.expando]=true};x.Event.prototype={constructor:x.Event,isDefaultPrevented:eE,isPropagationStopped:eE,isImmediatePropagationStopped:eE,isSimulated:false,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=eC;if(e&&!this.isSimulated)e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=eC;if(e&&!this.isSimulated)e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=eC;if(e&&!this.isSimulated)e.stopImmediatePropagation();this.stopPropagation()}};x.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,char:true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:true},x.event.addProp);x.each({focus:"focusin",blur:"focusout"},function(e,t){function r(e){if(m.documentMode){var r=es.get(this,"handle"),n=x.event.fix(e);n.type="focusin"===e.type?"focus":"blur";n.isSimulated=true;r(e);if(n.target===n.currentTarget)r(n)}else x.event.simulate(t,e.target,x.event.fix(e))}x.event.special[e]={setup:function(){var n;eR(this,e,true);if(!m.documentMode)return false;n=es.get(this,t);if(!n)this.addEventListener(t,r);es.set(this,t,(n||0)+1)},trigger:function(){eR(this,e);return true},teardown:function(){var e;if(!m.documentMode)return false;e=es.get(this,t)-1;if(e)es.set(this,t,e);else{this.removeEventListener(t,r);es.remove(this,t)}},_default:function(t){return es.get(t.target,e)},delegateType:t};x.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,i=m.documentMode?this:n,o=es.get(i,t);if(!o)if(m.documentMode)this.addEventListener(t,r);else n.addEventListener(e,r,true);es.set(i,t,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,i=m.documentMode?this:n,o=es.get(i,t)-1;if(o)es.set(i,t,o);else{if(m.documentMode)this.removeEventListener(t,r);else n.removeEventListener(e,r,true);es.remove(i,t)}}}});
11x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var r,n=this,i=e.relatedTarget,o=e.handleObj;if(!i||i!==n&&!x.contains(n,i)){e.type=o.origType;r=o.handler.apply(this,arguments);e.type=t}return r}}});x.fn.extend({on:function(e,t,r,n){return eM(this,e,t,r,n)},one:function(e,t,r,n){return eM(this,e,t,r,n,1)},off:function(e,t,r){var n,i;if(e&&e.preventDefault&&e.handleObj){n=e.handleObj;x(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler);return this}if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}if(false===t||"function"==typeof t){r=t;t=void 0}if(false===r)r=eE;return this.each(function(){x.event.remove(this,e,r,t)})}});var eD=/<script|<style|<link/i,eL=/checked\s*(?:[^=]|=\s*.checked.)/i,eZ=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function eX(e,t){if(_(e,"table")&&_(11!==t.nodeType?t:t.firstChild,"tr"))return x(e).children("tbody")[0]||e;return e}function eq(e){e.type=(null!==e.getAttribute("type"))+"/"+e.type;return e}function eB(e){if("true/"===(e.type||"").slice(0,5))e.type=e.type.slice(5);else e.removeAttribute("type");return e}function ez(e,t){var r,n,i,o,s,a,l;if(1!==t.nodeType)return;if(es.hasData(e)){o=es.get(e);l=o.events;if(l){es.remove(t,"handle events");for(i in l)for(r=0,n=l[i].length;r<n;r++)x.event.add(t,i,l[i][r])}}if(ea.hasData(e)){s=ea.access(e);a=x.extend({},s);ea.set(t,a)}}function eI(e,t){var r=t.nodeName.toLowerCase();if("input"===r&&eS.test(e.type))t.checked=e.checked;else if("input"===r||"textarea"===r)t.defaultValue=e.defaultValue}function eN(e,t,r,n){t=o(t);var i,s,a,l,u,f,c=0,h=e.length,g=h-1,m=t[0],O=p(m);if(O||h>1&&"string"==typeof m&&!d.checkClone&&eL.test(m))return e.each(function(i){var o=e.eq(i);if(O)t[0]=m.call(this,i,o.html());eN(o,t,r,n)});if(h){i=e$(t,e[0].ownerDocument,false,e,n);s=i.firstChild;if(1===i.childNodes.length)i=s;if(s||n){a=x.map(eP(i,"script"),eq);l=a.length;for(;c<h;c++){u=i;if(c!==g){u=x.clone(u,true,true);if(l)x.merge(a,eP(u,"script"))}r.call(e[c],u,c)}if(l){f=a[a.length-1].ownerDocument;x.map(a,eB);for(c=0;c<l;c++){u=a[c];if(ek.test(u.type||"")&&!es.access(u,"globalEval")&&x.contains(f,u))if(u.src&&"module"!==(u.type||"").toLowerCase()){if(x._evalUrl&&!u.noModule)x._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},f)}else v(u.textContent.replace(eZ,""),u,f)}}}}return e}function eV(e,t,r){var n,i=t?x.filter(t,e):e,o=0;for(;null!=(n=i[o]);o++){if(!r&&1===n.nodeType)x.cleanData(eP(n));if(n.parentNode){if(r&&em(n))eT(eP(n,"script"));n.parentNode.removeChild(n)}}return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,r){var n,i,o,s,a=e.cloneNode(true),l=em(e);
11if(!d.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!x.isXMLDoc(e)){s=eP(a);o=eP(e);for(n=0,i=o.length;n<i;n++)eI(o[n],s[n])}if(t)if(r){o=o||eP(e);s=s||eP(a);for(n=0,i=o.length;n<i;n++)ez(o[n],s[n])}else ez(e,a);s=eP(a,"script");if(s.length>0)eT(s,!l&&eP(e,"script"));return a},cleanData:function(e){var t,r,n,i=x.event.special,o=0;for(;void 0!==(r=e[o]);o++)if(ei(r)){if(t=r[es.expando]){if(t.events)for(n in t.events)if(i[n])x.event.remove(r,n);else x.removeEvent(r,n,t.handle);r[es.expando]=void 0}if(r[ea.expando])r[ea.expando]=void 0}}});x.fn.extend({detach:function(e){return eV(this,e,true)},remove:function(e){return eV(this,e)},text:function(e){return J(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){if(1===this.nodeType||11===this.nodeType||9===this.nodeType)this.textContent=e})},null,e,arguments.length)},append:function(){return eN(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eX(this,e);t.appendChild(e)}})},prepend:function(){return eN(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eX(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return eN(this,arguments,function(e){if(this.parentNode)this.parentNode.insertBefore(e,this)})},after:function(){return eN(this,arguments,function(e){if(this.parentNode)this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)if(1===e.nodeType){x.cleanData(eP(e,false));e.textContent=""}return this},clone:function(e,t){e=null==e?false:e;t=null==t?e:t;return this.map(function(){return x.clone(this,e,t)})},html:function(e){return J(this,function(e){var t=this[0]||{},r=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!eD.test(e)&&!eQ[(e_.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;r<n;r++){t=this[r]||{};if(1===t.nodeType){x.cleanData(eP(t,false));t.innerHTML=e}}t=0}catch(e){}}if(t)this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return eN(this,arguments,function(t){var r=this.parentNode;if(x.inArray(this,e)<0){x.cleanData(eP(this));if(r)r.replaceChild(t,this)}},e)}});x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var r,n=[],i=x(e),o=i.length-1,a=0;for(;a<=o;a++){r=a===o?this:this.clone(true);x(i[a])[t](r);s.apply(n,r.get())}return this.pushStack(n)}});var eW=new RegExp("^("+eh+")(?!px)[a-z%]+$","i");var eY=/^--/;var eU=function(t){var r=t.ownerDocument.defaultView;if(!r||!r.opener)r=e;return r.getComputedStyle(t)};var eG=function(e,t,r){var n,i,o={};for(i in t){o[i]=e.style[i];e.style[i]=t[i]}n=r.call(e);for(i in t)e.style[i]=o[i];return n};var eF=new RegExp(ep.join("|"),"i");(function(){function t(){if(!f)return;u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";f.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";eg.appendChild(u).appendChild(f);var t=e.getComputedStyle(f);n="1%"!==t.top;l=12===r(t.marginLeft);f.style.right="60%";s=36===r(t.right);i=36===r(t.width);f.style.position="absolute";o=12===r(f.offsetWidth/3);eg.removeChild(u);f=null}function r(e){return Math.round(parseFloat(e))}var n,i,o,s,a,l,u=m.createElement("div"),f=m.createElement("div");if(!f.style)return;f.style.backgroundClip="content-box";f.cloneNode(true).style.backgroundClip="";d.clearCloneStyle="content-box"===f.style.backgroundClip;x.extend(d,{boxSizingReliable:function(){t();return i},pixelBoxStyles:function(){t();return s},pixelPosition:function(){t();return n},reliableMarginLeft:function(){t();return l},scrollboxSize:function(){t();return o},reliableTrDimensions:function(){var t,r,n,i;if(null==a){t=m.createElement("table");r=m.createElement("tr");
11n=m.createElement("div");t.style.cssText="position:absolute;left:-11111px;border-collapse:separate";r.style.cssText="box-sizing:content-box;border:1px solid";r.style.height="1px";n.style.height="9px";n.style.display="block";eg.appendChild(t).appendChild(r).appendChild(n);i=e.getComputedStyle(r);a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===r.offsetHeight;eg.removeChild(t)}return a}})})();function eH(e,t,r){var n,i,o,s,a=eY.test(t),l=e.style;r=r||eU(e);if(r){s=r.getPropertyValue(t)||r[t];if(a&&s)s=s.replace(A,"$1")||void 0;if(""===s&&!em(e))s=x.style(e,t);if(!d.pixelBoxStyles()&&eW.test(s)&&eF.test(t)){n=l.width;i=l.minWidth;o=l.maxWidth;l.minWidth=l.maxWidth=l.width=s;s=r.width;l.width=n;l.minWidth=i;l.maxWidth=o}}return void 0!==s?s+"":s}function eK(e,t){return{get:function(){if(e())return void delete this.get;return(this.get=t).apply(this,arguments)}}}var eJ=["Webkit","Moz","ms"],e0=m.createElement("div").style,e1={};function e2(e){var t=e[0].toUpperCase()+e.slice(1),r=eJ.length;while(r--){e=eJ[r]+t;if(e in e0)return e}}function e5(e){var t=x.cssProps[e]||e1[e];if(t)return t;if(e in e0)return e;return e1[e]=e2(e)||e}var e3=/^(none|table(?!-c[ea]).+)/,e4={position:"absolute",visibility:"hidden",display:"block"},e8={letterSpacing:"0",fontWeight:"400"};function e6(e,t,r){var n=ed.exec(t);return n?Math.max(0,n[2]-(r||0))+(n[3]||"px"):t}function e7(e,t,r,n,i,o){var s="width"===t?1:0,a=0,l=0,u=0;if(r===(n?"border":"content"))return 0;for(;s<4;s+=2){if("margin"===r)u+=x.css(e,r+ep[s],true,i);if(n){if("content"===r)l-=x.css(e,"padding"+ep[s],true,i);if("margin"!==r)l-=x.css(e,"border"+ep[s]+"Width",true,i)}else{l+=x.css(e,"padding"+ep[s],true,i);if("padding"!==r)l+=x.css(e,"border"+ep[s]+"Width",true,i);else a+=x.css(e,"border"+ep[s]+"Width",true,i)}}if(!n&&o>=0)l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0;return l+u}function e9(e,t,r){var n=eU(e),i=!d.boxSizingReliable()||r,o=i&&"border-box"===x.css(e,"boxSizing",false,n),s=o,a=eH(e,t,n),l="offset"+t[0].toUpperCase()+t.slice(1);if(eW.test(a)){if(!r)return a;a="auto"}if((!d.boxSizingReliable()&&o||!d.reliableTrDimensions()&&_(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===x.css(e,"display",false,n))&&e.getClientRects().length){o="border-box"===x.css(e,"boxSizing",false,n);s=l in e;if(s)a=e[l]}a=parseFloat(a)||0;return a+e7(e,t,r||(o?"border":"content"),s,n,a)+"px"}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=eH(e,"opacity");return""===r?"1":r}}}},cssNumber:{animationIterationCount:true,aspectRatio:true,borderImageSlice:true,columnCount:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,scale:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeMiterlimit:true,strokeOpacity:true},cssProps:{},style:function(e,t,r,n){if(!e||3===e.nodeType||8===e.nodeType||!e.style)return;var i,o,s,a=en(t),l=eY.test(t),u=e.style;if(!l)t=e5(a);s=x.cssHooks[t]||x.cssHooks[a];if(void 0!==r){o=typeof r;if("string"===o&&(i=ed.exec(r))&&i[1]){r=ey(e,t,i);o="number"}if(null==r||r!==r)return;if("number"===o&&!l)r+=i&&i[3]||(x.cssNumber[a]?"":"px");if(!d.clearCloneStyle&&""===r&&0===t.indexOf("background"))u[t]="inherit";if(!s||!("set"in s)||void 0!==(r=s.set(e,r,n)))if(l)u.setProperty(t,r);else u[t]=r}else{if(s&&"get"in s&&void 0!==(i=s.get(e,false,n)))return i;return u[t]}},css:function(e,t,r,n){var i,o,s,a=en(t),l=eY.test(t);if(!l)t=e5(a);s=x.cssHooks[t]||x.cssHooks[a];if(s&&"get"in s)i=s.get(e,true,r);if(void 0===i)i=eH(e,t,n);if("normal"===i&&t in e8)i=e8[t];if(""===r||r){o=parseFloat(i);return true===r||isFinite(o)?o||0:i}return i}});x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,r,n){if(r)return!e3.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?e9(e,t,n):eG(e,e4,function(){return e9(e,t,n)})},set:function(e,r,n){var i,o=eU(e),s=!d.scrollboxSize()&&"absolute"===o.position,a=s||n,l=a&&"border-box"===x.css(e,"boxSizing",false,o),u=n?e7(e,t,n,l,o):0;if(l&&s)u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-e7(e,t,"border",false,o)-.5);if(u&&(i=ed.exec(r))&&"px"!==(i[3]||"px")){e.style[t]=r;
11r=x.css(e,t)}return e6(e,r,u)}}});x.cssHooks.marginLeft=eK(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(eH(e,"marginLeft"))||e.getBoundingClientRect().left-eG(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"});x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(r){var n=0,i={},o="string"==typeof r?r.split(" "):[r];for(;n<4;n++)i[e+ep[n]+t]=o[n]||o[n-2]||o[0];return i}};if("margin"!==e)x.cssHooks[e+t].set=e6});x.fn.extend({css:function(e,t){return J(this,function(e,t,r){var n,i,o={},s=0;if(Array.isArray(t)){n=eU(e);i=t.length;for(;s<i;s++)o[t[s]]=x.css(e,t[s],false,n);return o}return void 0!==r?x.style(e,t,r):x.css(e,t)},e,t,arguments.length>1)}});function te(e,t,r,n,i){return new te.prototype.init(e,t,r,n,i)}x.Tween=te;te.prototype={constructor:te,init:function(e,t,r,n,i,o){this.elem=e;this.prop=r;this.easing=i||x.easing._default;this.options=t;this.start=this.now=this.cur();this.end=n;this.unit=o||(x.cssNumber[r]?"":"px")},cur:function(){var e=te.propHooks[this.prop];return e&&e.get?e.get(this):te.propHooks._default.get(this)},run:function(e){var t,r=te.propHooks[this.prop];if(this.options.duration)this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration);else this.pos=t=e;this.now=(this.end-this.start)*t+this.start;if(this.options.step)this.options.step.call(this.elem,this.now,this);if(r&&r.set)r.set(this);else te.propHooks._default.set(this);return this}};te.prototype.init.prototype=te.prototype;te.propHooks={_default:{get:function(e){var t;if(1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop])return e.elem[e.prop];t=x.css(e.elem,e.prop,"");return t&&"auto"!==t?t:0},set:function(e){if(x.fx.step[e.prop])x.fx.step[e.prop](e);else if(1===e.elem.nodeType&&(x.cssHooks[e.prop]||null!=e.elem.style[e5(e.prop)]))x.style(e.elem,e.prop,e.now+e.unit);else e.elem[e.prop]=e.now}}};te.propHooks.scrollTop=te.propHooks.scrollLeft={set:function(e){if(e.elem.nodeType&&e.elem.parentNode)e.elem[e.prop]=e.now}};x.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"};x.fx=te.prototype.init;x.fx.step={};var tt,tr,tn=/^(?:toggle|show|hide)$/,ti=/queueHooks$/;function to(){if(tr){if(false===m.hidden&&e.requestAnimationFrame)e.requestAnimationFrame(to);else e.setTimeout(to,x.fx.interval);x.fx.tick()}}function ts(){e.setTimeout(function(){tt=void 0});return tt=Date.now()}function ta(e,t){var r,n=0,i={height:e};t=t?1:0;for(;n<4;n+=2-t){r=ep[n];i["margin"+r]=i["padding"+r]=e}if(t)i.opacity=i.width=e;return i}function tl(e,t,r){var n,i=(tc.tweeners[t]||[]).concat(tc.tweeners["*"]),o=0,s=i.length;for(;o<s;o++)if(n=i[o].call(r,t,e))return n}function tu(e,t,r){var n,i,o,s,a,l,u,f,c="width"in t||"height"in t,h=this,d={},p=e.style,g=e.nodeType&&ev(e),m=es.get(e,"fxshow");if(!r.queue){s=x._queueHooks(e,"fx");if(null==s.unqueued){s.unqueued=0;a=s.empty.fire;s.empty.fire=function(){if(!s.unqueued)a()}}s.unqueued++;h.always(function(){h.always(function(){s.unqueued--;if(!x.queue(e,"fx").length)s.empty.fire()})})}for(n in t){i=t[n];if(tn.test(i)){delete t[n];o=o||"toggle"===i;if(i===(g?"hide":"show"))if("show"!==i||!m||void 0===m[n])continue;else g=true;d[n]=m&&m[n]||x.style(e,n)}}l=!x.isEmptyObject(t);if(!l&&x.isEmptyObject(d))return;if(c&&1===e.nodeType){r.overflow=[p.overflow,p.overflowX,p.overflowY];u=m&&m.display;if(null==u)u=es.get(e,"display");f=x.css(e,"display");if("none"===f)if(u)f=u;else{ex([e],true);u=e.style.display||u;f=x.css(e,"display");ex([e])}if("inline"===f||"inline-block"===f&&null!=u){if("none"===x.css(e,"float")){if(!l){h.done(function(){p.display=u});if(null==u){f=p.display;u="none"===f?"":f}}p.display="inline-block"}}}if(r.overflow){p.overflow="hidden";h.always(function(){p.overflow=r.overflow[0];p.overflowX=r.overflow[1];p.overflowY=r.overflow[2]})}l=false;for(n in d){if(!l){if(m){if("hidden"in m)g=m.hidden}else m=es.access(e,"fxshow",{display:u});if(o)m.hidden=!g;if(g)ex([e],true);h.done(function(){if(!g)ex([e]);es.remove(e,"fxshow");for(n in d)x.style(e,n,d[n])})}l=tl(g?m[n]:0,n,h);if(!(n in m)){m[n]=l.start;if(g){l.end=l.start;l.start=0}}}}function tf(e,t){var r,n,i,o,s;for(r in e){n=en(r);i=t[n];o=e[r];if(Array.isArray(o)){i=o[1];o=e[r]=o[0]}if(r!==n){e[n]=o;delete e[r]}s=x.cssHooks[n];if(s&&"expand"in s){o=s.expand(o);delete e[n];for(r in o)if(!(r in e)){e[r]=o[r];t[r]=i}}else t[n]=i}}function tc(e,t,r){var n,i,o=0,s=tc.prefilters.length,a=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return false;var t=tt||ts(),r=Math.max(0,u.startTime+u.duration-t),n=r/u.duration||0,o=1-n,s=0,l=u.tweens.length;for(;s<l;s++)u.tweens[s].run(o);a.notifyWith(e,[u,o,r]);if(o<1&&l)return r;if(!l)a.notifyWith(e,[u,1,0]);a.resolveWith(e,[u]);return false},u=a.promise({elem:e,props:x.extend({},t),opts:x.extend(true,{specialEasing:{},easing:x.easing._default},r),originalProperties:t,originalOptions:r,startTime:tt||ts(),duration:r.duration,tweens:[],createTween:function(t,r){var n=x.Tween(e,u.opts,t,r,u.opts.specialEasing[t]||u.o
11pts.easing);u.tweens.push(n);return n},stop:function(t){var r=0,n=t?u.tweens.length:0;if(i)return this;i=true;for(;r<n;r++)u.tweens[r].run(1);if(t){a.notifyWith(e,[u,1,0]);a.resolveWith(e,[u,t])}else a.rejectWith(e,[u,t]);return this}}),f=u.props;tf(f,u.opts.specialEasing);for(;o<s;o++){n=tc.prefilters[o].call(u,e,f,u.opts);if(n){if(p(n.stop))x._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n);return n}}x.map(f,tl,u);if(p(u.opts.start))u.opts.start.call(e,u);u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always);x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue}));return u}x.Animation=x.extend(tc,{tweeners:{"*":[function(e,t){var r=this.createTween(e,t);ey(r.elem,e,ed.exec(t),r);return r}]},tweener:function(e,t){if(p(e)){t=e;e=["*"]}else e=e.match(V);var r,n=0,i=e.length;for(;n<i;n++){r=e[n];tc.tweeners[r]=tc.tweeners[r]||[];tc.tweeners[r].unshift(t)}},prefilters:[tu],prefilter:function(e,t){if(t)tc.prefilters.unshift(e);else tc.prefilters.push(e)}});x.speed=function(e,t,r){var n=e&&"object"==typeof e?x.extend({},e):{complete:r||!r&&t||p(e)&&e,duration:e,easing:r&&t||t&&!p(t)&&t};if(x.fx.off)n.duration=0;else if("number"!=typeof n.duration)if(n.duration in x.fx.speeds)n.duration=x.fx.speeds[n.duration];else n.duration=x.fx.speeds._default;if(null==n.queue||true===n.queue)n.queue="fx";n.old=n.complete;n.complete=function(){if(p(n.old))n.old.call(this);if(n.queue)x.dequeue(this,n.queue)};return n};x.fn.extend({fadeTo:function(e,t,r,n){return this.filter(ev).css("opacity",0).show().end().animate({opacity:t},e,r,n)},animate:function(e,t,r,n){var i=x.isEmptyObject(e),o=x.speed(t,r,n),s=function(){var t=tc(this,x.extend({},e),o);if(i||es.get(this,"finish"))t.stop(true)};s.finish=s;return i||false===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,r){var n=function(e){var t=e.stop;delete e.stop;t(r)};if("string"!=typeof e){r=t;t=e;e=void 0}if(t)this.queue(e||"fx",[]);return this.each(function(){var t=true,i=null!=e&&e+"queueHooks",o=x.timers,s=es.get(this);if(i){if(s[i]&&s[i].stop)n(s[i])}else for(i in s)if(s[i]&&s[i].stop&&ti.test(i))n(s[i]);for(i=o.length;i--;)if(o[i].elem===this&&(null==e||o[i].queue===e)){o[i].anim.stop(r);t=false;o.splice(i,1)}if(t||!r)x.dequeue(this,e)})},finish:function(e){if(false!==e)e=e||"fx";return this.each(function(){var t,r=es.get(this),n=r[e+"queue"],i=r[e+"queueHooks"],o=x.timers,s=n?n.length:0;r.finish=true;x.queue(this,e,[]);if(i&&i.stop)i.stop.call(this,true);for(t=o.length;t--;)if(o[t].elem===this&&o[t].queue===e){o[t].anim.stop(true);o.splice(t,1)}for(t=0;t<s;t++)if(n[t]&&n[t].finish)n[t].finish.call(this);delete r.finish})}});x.each(["toggle","show","hide"],function(e,t){var r=x.fn[t];x.fn[t]=function(e,n,i){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(ta(t,true),e,n,i)}});x.each({slideDown:ta("show"),slideUp:ta("hide"),slideToggle:ta("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,r,n){return this.animate(t,e,r,n)}});x.timers=[];x.fx.tick=function(){var e,t=0,r=x.timers;tt=Date.now();for(;t<r.length;t++){e=r[t];if(!e()&&r[t]===e)r.splice(t--,1)}if(!r.length)x.fx.stop();tt=void 0};x.fx.timer=function(e){x.timers.push(e);x.fx.start()};x.fx.interval=13;x.fx.start=function(){if(tr)return;tr=true;to()};x.fx.stop=function(){tr=null};x.fx.speeds={slow:600,fast:200,_default:400};x.fn.delay=function(t,r){t=x.fx?x.fx.speeds[t]||t:t;r=r||"fx";return this.queue(r,function(r,n){var i=e.setTimeout(r,t);n.stop=function(){e.clearTimeout(i)}})};(function(){var e=m.createElement("input"),t=m.createElement("select"),r=t.appendChild(m.createElement("option"));e.type="checkbox";d.checkOn=""!==e.value;d.optSelected=r.selected;e=m.createElement("input");e.value="t";e.type="radio";d.radioValue="t"===e.value})();var th,td=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return J(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}});x.extend({attr:function(e,t,r){var n,i,o=e.nodeType;if(3===o||8===o||2===o)return;if(void 0===e.getAttribute)return x.prop(e,t,r);if(1!==o||!x.isXMLDoc(e))i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?th:void 0);if(void 0!==r){if(null===r)return void x.removeAttr(e,t);if(i&&"set"in i&&void 0!==(n=i.set(e,r,t)))return n;e.setAttribute(t,r+"");return r}if(i&&"get"in i&&null!==(n=i.get(e,t)))return n;n=x.find.attr(e,t);return null==n?void 0:n},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&_(e,"
11input")){var r=e.value;e.setAttribute("type",t);if(r)e.value=r;return t}}}},removeAttr:function(e,t){var r,n=0,i=t&&t.match(V);if(i&&1===e.nodeType)while(r=i[n++])e.removeAttribute(r)}});th={set:function(e,t,r){if(false===t)x.removeAttr(e,r);else e.setAttribute(r,r);return r}};x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var r=td[t]||x.find.attr;td[t]=function(e,t,n){var i,o,s=t.toLowerCase();if(!n){o=td[s];td[s]=i;i=null!=r(e,t,n)?s:null;td[s]=o}return i}});var tp=/^(?:input|select|textarea|button)$/i,tg=/^(?:a|area)$/i;x.fn.extend({prop:function(e,t){return J(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}});x.extend({prop:function(e,t,r){var n,i,o=e.nodeType;if(3===o||8===o||2===o)return;if(1!==o||!x.isXMLDoc(e)){t=x.propFix[t]||t;i=x.propHooks[t]}if(void 0!==r){if(i&&"set"in i&&void 0!==(n=i.set(e,r,t)))return n;return e[t]=r}if(i&&"get"in i&&null!==(n=i.get(e,t)))return n;return e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");if(t)return parseInt(t,10);if(tp.test(e.nodeName)||tg.test(e.nodeName)&&e.href)return 0;return -1}}},propFix:{for:"htmlFor",class:"className"}});if(!d.optSelected)x.propHooks.selected={get:function(e){var t=e.parentNode;if(t&&t.parentNode)t.parentNode.selectedIndex;return null},set:function(e){var t=e.parentNode;if(t){t.selectedIndex;if(t.parentNode)t.parentNode.selectedIndex}}};x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this});function tm(e){var t=e.match(V)||[];return t.join(" ")}function tO(e){return e.getAttribute&&e.getAttribute("class")||""}function tv(e){if(Array.isArray(e))return e;if("string"==typeof e)return e.match(V)||[];return[]}x.fn.extend({addClass:function(e){var t,r,n,i,o,s;if(p(e))return this.each(function(t){x(this).addClass(e.call(this,t,tO(this)))});t=tv(e);if(t.length)return this.each(function(){n=tO(this);r=1===this.nodeType&&" "+tm(n)+" ";if(r){for(o=0;o<t.length;o++){i=t[o];if(r.indexOf(" "+i+" ")<0)r+=i+" "}s=tm(r);if(n!==s)this.setAttribute("class",s)}});return this},removeClass:function(e){var t,r,n,i,o,s;if(p(e))return this.each(function(t){x(this).removeClass(e.call(this,t,tO(this)))});if(!arguments.length)return this.attr("class","");t=tv(e);if(t.length)return this.each(function(){n=tO(this);r=1===this.nodeType&&" "+tm(n)+" ";if(r){for(o=0;o<t.length;o++){i=t[o];while(r.indexOf(" "+i+" ")>-1)r=r.replace(" "+i+" "," ")}s=tm(r);if(n!==s)this.setAttribute("class",s)}});return this},toggleClass:function(e,t){var r,n,i,o,s=typeof e,a="string"===s||Array.isArray(e);if(p(e))return this.each(function(r){x(this).toggleClass(e.call(this,r,tO(this),t),t)});if("boolean"==typeof t&&a)return t?this.addClass(e):this.removeClass(e);r=tv(e);return this.each(function(){if(a){o=x(this);for(i=0;i<r.length;i++){n=r[i];if(o.hasClass(n))o.removeClass(n);else o.addClass(n)}}else if(void 0===e||"boolean"===s){n=tO(this);if(n)es.set(this,"__className__",n);if(this.setAttribute)this.setAttribute("class",n||false===e?"":es.get(this,"__className__")||"")}})},hasClass:function(e){var t,r,n=0;t=" "+e+" ";while(r=this[n++])if(1===r.nodeType&&(" "+tm(tO(r))+" ").indexOf(t)>-1)return true;return false}});var ty=/\r/g;x.fn.extend({val:function(e){var t,r,n,i=this[0];if(!arguments.length){if(i){t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()];if(t&&"get"in t&&void 0!==(r=t.get(i,"value")))return r;r=i.value;if("string"==typeof r)return r.replace(ty,"");return null==r?"":r}return}n=p(e);return this.each(function(r){var i;if(1!==this.nodeType)return;i=n?e.call(this,r,x(this).val()):e;if(null==i)i="";else if("number"==typeof i)i+="";else if(Array.isArray(i))i=x.map(i,function(e){return null==e?"":e+""});t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||void 0===t.set(this,i,"value"))this.value=i})}});x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:tm(x.text(e))}},select:{get:function(e){var t,r,n,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:i.length;n=o<0?l:s?o:0;for(;n<l;n++){r=i[n];if((r.selected||n===o)&&!r.disabled&&(!r.parentNode.disabled||!_(r.parentNode,"optgroup"))){t=x(r).val();if(s)return t;a.push(t)}}return a}
11,set:function(e,t){var r,n,i=e.options,o=x.makeArray(t),s=i.length;while(s--){n=i[s];if(n.selected=x.inArray(x.valHooks.option.get(n),o)>-1)r=true}if(!r)e.selectedIndex=-1;return o}}}});x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}};if(!d.checkOn)x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value}});var tb=e.location;var tw={guid:Date.now()};var tx=/\?/;x.parseXML=function(t){var r,n;if(!t||"string"!=typeof t)return null;try{r=new e.DOMParser().parseFromString(t,"text/xml")}catch(e){}n=r&&r.getElementsByTagName("parsererror")[0];if(!r||n)x.error("Invalid XML: "+(n?x.map(n.childNodes,function(e){return e.textContent}).join("\n"):t));return r};var tS=/^(?:focusinfocus|focusoutblur)$/,t_=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,r,n,i){var o,s,a,l,u,c,h,d,O=[n||m],v=f.call(t,"type")?t.type:t,y=f.call(t,"namespace")?t.namespace.split("."):[];s=d=a=n=n||m;if(3===n.nodeType||8===n.nodeType)return;if(tS.test(v+x.event.triggered))return;if(v.indexOf(".")>-1){y=v.split(".");v=y.shift();y.sort()}u=v.indexOf(":")<0&&"on"+v;t=t[x.expando]?t:new x.Event(v,"object"==typeof t&&t);t.isTrigger=i?2:3;t.namespace=y.join(".");t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;t.result=void 0;if(!t.target)t.target=n;r=null==r?[t]:x.makeArray(r,[t]);h=x.event.special[v]||{};if(!i&&h.trigger&&false===h.trigger.apply(n,r))return;if(!i&&!h.noBubble&&!g(n)){l=h.delegateType||v;if(!tS.test(l+v))s=s.parentNode;for(;s;s=s.parentNode){O.push(s);a=s}if(a===(n.ownerDocument||m))O.push(a.defaultView||a.parentWindow||e)}o=0;while((s=O[o++])&&!t.isPropagationStopped()){d=s;t.type=o>1?l:h.bindType||v;c=(es.get(s,"events")||Object.create(null))[t.type]&&es.get(s,"handle");if(c)c.apply(s,r);c=u&&s[u];if(c&&c.apply&&ei(s)){t.result=c.apply(s,r);if(false===t.result)t.preventDefault()}}t.type=v;if(!i&&!t.isDefaultPrevented()){if((!h._default||false===h._default.apply(O.pop(),r))&&ei(n)){if(u&&p(n[v])&&!g(n)){a=n[u];if(a)n[u]=null;x.event.triggered=v;if(t.isPropagationStopped())d.addEventListener(v,t_);n[v]();if(t.isPropagationStopped())d.removeEventListener(v,t_);x.event.triggered=void 0;if(a)n[u]=a}}}return t.result},simulate:function(e,t,r){var n=x.extend(new x.Event,r,{type:e,isSimulated:true});x.event.trigger(n,null,t)}});x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var r=this[0];if(r)return x.event.trigger(e,t,r,true)}});var tk=/\[\]$/,tQ=/\r?\n/g,tP=/^(?:submit|button|image|reset|file)$/i,tT=/^(?:input|select|textarea|keygen)/i;function tA(e,t,r,n){var i;if(Array.isArray(t))x.each(t,function(t,i){if(r||tk.test(e))n(e,i);else tA(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,n)});else if(r||"object"!==y(t))n(e,t);else for(i in t)tA(e+"["+i+"]",t[i],r,n)}x.param=function(e,t){var r,n=[],i=function(e,t){var r=p(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){i(this.name,this.value)});else for(r in e)tA(r,e[r],t,i);return n.join("&")};x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&tT.test(this.nodeName)&&!tP.test(e)&&(this.checked||!eS.test(e))}).map(function(e,t){var r=x(this).val();if(null==r)return null;if(Array.isArray(r))return x.map(r,function(e){return{name:t.name,value:e.replace(tQ,"\r\n")}});return{name:t.name,value:r.replace(tQ,"\r\n")}}).get()}});var t$=/%20/g,tj=/#.*$/,tC=/([?&])_=[^&]*/,tE=/^(.*?):[ \t]*([^\r\n]*)$/mg,tM=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,tR=/^(?:GET|HEAD)$/,tD=/^\/\//,tL={},tZ={},tX="*/".concat("*"),tq=m.createElement("a");tq.href=tb.href;function tB(e){return function(t,r){if("string"!=typeof t){r=t;t="*"}var n,i=0,o=t.toLowerCase().match(V)||[];
11if(p(r))while(n=o[i++])if("+"===n[0]){n=n.slice(1)||"*";(e[n]=e[n]||[]).unshift(r)}else(e[n]=e[n]||[]).push(r)}}function tz(e,t,r,n){var i={},o=e===tZ;function s(a){var l;i[a]=true;x.each(e[a]||[],function(e,a){var u=a(t,r,n);if("string"!=typeof u||o||i[u]){if(o)return!(l=u)}else{t.dataTypes.unshift(u);s(u);return false}});return l}return s(t.dataTypes[0])||!i["*"]&&s("*")}function tI(e,t){var r,n,i=x.ajaxSettings.flatOptions||{};for(r in t)if(void 0!==t[r])(i[r]?e:n||(n={}))[r]=t[r];if(n)x.extend(true,e,n);return e}function tN(e,t,r){var n,i,o,s,a=e.contents,l=e.dataTypes;while("*"===l[0]){l.shift();if(void 0===n)n=e.mimeType||t.getResponseHeader("Content-Type")}if(n){for(i in a)if(a[i]&&a[i].test(n)){l.unshift(i);break}}if(l[0]in r)o=l[0];else{for(i in r){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}if(!s)s=i}o=o||s}if(o){if(o!==l[0])l.unshift(o);return r[o]}}function tV(e,t,r,n){var i,o,s,a,l,u={},f=e.dataTypes.slice();if(f[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];o=f.shift();while(o){if(e.responseFields[o])r[e.responseFields[o]]=t;if(!l&&n&&e.dataFilter)t=e.dataFilter(t,e.dataType);l=o;o=f.shift();if(o){if("*"===o)o=l;else if("*"!==l&&l!==o){s=u[l+" "+o]||u["* "+o];if(!s)for(i in u){a=i.split(" ");if(a[1]===o){s=u[l+" "+a[0]]||u["* "+a[0]];if(s){if(true===s)s=u[i];else if(true!==u[i]){o=a[0];f.unshift(a[1])}break}}}if(true!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}}}return{state:"success",data:t}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:tb.href,type:"GET",isLocal:tM.test(tb.protocol),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tX,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":true,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(e,t){return t?tI(tI(e,x.ajaxSettings),t):tI(x.ajaxSettings,e)},ajaxPrefilter:tB(tL),ajaxTransport:tB(tZ),ajax:function(t,r){if("object"==typeof t){r=t;t=void 0}r=r||{};var n,i,o,s,a,l,u,f,c,h,d=x.ajaxSetup({},r),p=d.context||d,g=d.context&&(p.nodeType||p.jquery)?x(p):x.event,O=x.Deferred(),v=x.Callbacks("once memory"),y=d.statusCode||{},b={},w={},S="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s){s={};while(t=tE.exec(o))s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){if(null==u){e=w[e.toLowerCase()]=w[e.toLowerCase()]||e;b[e]=t}return this},overrideMimeType:function(e){if(null==u)d.mimeType=e;return this},statusCode:function(e){var t;if(e)if(u)_.always(e[_.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||S;if(n)n.abort(t);k(0,t);return this}};O.promise(_);d.url=((t||d.url||tb.href)+"").replace(tD,tb.protocol+"//");d.type=r.method||r.type||d.method||d.type;d.dataTypes=(d.dataType||"*").toLowerCase().match(V)||[""];if(null==d.crossDomain){l=m.createElement("a");try{l.href=d.url;l.href=l.href;d.crossDomain=tq.protocol+"//"+tq.host!==l.protocol+"//"+l.host}catch(e){d.crossDomain=true}}if(d.data&&d.processData&&"string"!=typeof d.data)d.data=x.param(d.data,d.traditional);tz(tL,d,r,_);if(u)return _;f=x.event&&d.global;if(f&&0===x.active++)x.event.trigger("ajaxStart");d.type=d.type.toUpperCase();d.hasContent=!tR.test(d.type);i=d.url.replace(tj,"");if(d.hasContent){if(d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded"))d.data=d.data.replace(t$,"+")}else{h=d.url.slice(i.length);if(d.data&&(d.processData||"string"==typeof d.data)){i+=(tx.test(i)?"&":"?")+d.data;delete d.data}if(false===d.cache){i=i.replace(tC,"$1");h=(tx.test(i)?"&":"?")+"_="+tw.guid+++h}d.url=i+h}if(d.ifModified){if(x.lastModified[i])_.setRequestHeader("If-Modified-Since",x.lastModified[i]);if(x.etag[i])_.setRequestHeader("If-None-Match",x.etag[i])}if(d.data&&d.hasContent&&false!==d.contentType||r.contentType)_.setRequestHeader("Content-Type",d.contentType);_.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+tX+"; q=0.01":""):d.accepts["*"]);for(c in d.headers)_.setRequestHeader(c,d.headers[c]);
11if(d.beforeSend&&(false===d.beforeSend.call(p,_,d)||u))return _.abort();S="abort";v.add(d.complete);_.done(d.success);_.fail(d.error);n=tz(tZ,d,r,_);if(n){_.readyState=1;if(f)g.trigger("ajaxSend",[_,d]);if(u)return _;if(d.async&&d.timeout>0)a=e.setTimeout(function(){_.abort("timeout")},d.timeout);try{u=false;n.send(b,k)}catch(e){if(u)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,r,s,l){var c,h,m,b,w,S=r;if(u)return;u=true;if(a)e.clearTimeout(a);n=void 0;o=l||"";_.readyState=t>0?4:0;c=t>=200&&t<300||304===t;if(s)b=tN(d,_,s);if(!c&&x.inArray("script",d.dataTypes)>-1&&x.inArray("json",d.dataTypes)<0)d.converters["text script"]=function(){};b=tV(d,b,_,c);if(c){if(d.ifModified){w=_.getResponseHeader("Last-Modified");if(w)x.lastModified[i]=w;w=_.getResponseHeader("etag");if(w)x.etag[i]=w}if(204===t||"HEAD"===d.type)S="nocontent";else if(304===t)S="notmodified";else{S=b.state;h=b.data;m=b.error;c=!m}}else{m=S;if(t||!S){S="error";if(t<0)t=0}}_.status=t;_.statusText=(r||S)+"";if(c)O.resolveWith(p,[h,S,_]);else O.rejectWith(p,[_,S,m]);_.statusCode(y);y=void 0;if(f)g.trigger(c?"ajaxSuccess":"ajaxError",[_,d,c?h:m]);v.fireWith(p,[_,S]);if(f){g.trigger("ajaxComplete",[_,d]);if(!--x.active)x.event.trigger("ajaxStop")}}return _},getJSON:function(e,t,r){return x.get(e,t,r,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}});x.each(["get","post"],function(e,t){x[t]=function(e,r,n,i){if(p(r)){i=i||n;n=r;r=void 0}return x.ajax(x.extend({url:e,type:t,dataType:i,data:r,success:n},x.isPlainObject(e)&&e))}});x.ajaxPrefilter(function(e){var t;for(t in e.headers)if("content-type"===t.toLowerCase())e.contentType=e.headers[t]||""});x._evalUrl=function(e,t,r){return x.ajax({url:e,type:"GET",dataType:"script",cache:true,async:false,global:false,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,r)}})};x.fn.extend({wrapAll:function(e){var t;if(this[0]){if(p(e))e=e.call(this[0]);t=x(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode)t.insertBefore(this[0]);t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)}return this},wrapInner:function(e){if(p(e))return this.each(function(t){x(this).wrapInner(e.call(this,t))});return this.each(function(){var t=x(this),r=t.contents();if(r.length)r.wrapAll(e);else t.append(e)})},wrap:function(e){var t=p(e);return this.each(function(r){x(this).wrapAll(t?e.call(this,r):e)})},unwrap:function(e){this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)});return this}});x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)};x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var tW={0:200,1223:204},tY=x.ajaxSettings.xhr();d.cors=!!tY&&"withCredentials"in tY;d.ajax=tY=!!tY;x.ajaxTransport(function(t){var r,n;if(d.cors||tY&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();a.open(t.type,t.url,t.async,t.username,t.password);if(t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];if(t.mimeType&&a.overrideMimeType)a.overrideMimeType(t.mimeType);if(!t.crossDomain&&!i["X-Requested-With"])i["X-Requested-With"]="XMLHttpRequest";for(s in i)a.setRequestHeader(s,i[s]);r=function(e){return function(){if(r){r=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null;if("abort"===e)a.abort();else if("error"===e)"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText);else o(tW[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders())}}};a.onload=r();n=a.onerror=a.ontimeout=r("error");if(void 0!==a.onabort)a.onabort=n;else a.onreadystatechange=function(){if(4===a.readyState)e.setTimeout(function(){if(r)n()})};r=r("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(r)throw e}},abort:function(){if(r)r()}}});x.ajaxPrefilter(function(e){if(e.crossDomain)e.contents.script=false});x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){x.globalEval(e);return e}}});x.ajaxPrefilter("script",function(e){if(void 0===e.cache)e.cache=false;if(e.crossDomain)e.type="GET"});x.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,r;return{send:function(n,i){t=x("<script>").attr(e.scriptAttrs||{}
11).prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(e){t.remove();r=null;if(e)i("error"===e.type?404:200,e.type)});m.head.appendChild(t[0])},abort:function(){if(r)r()}}}});var tU=[],tG=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tU.pop()||x.expando+"_"+tw.guid++;this[e]=true;return e}});x.ajaxPrefilter("json jsonp",function(t,r,n){var i,o,s,a=false!==t.jsonp&&(tG.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tG.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0]){i=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback;if(a)t[a]=t[a].replace(tG,"$1"+i);else if(false!==t.jsonp)t.url+=(tx.test(t.url)?"&":"?")+t.jsonp+"="+i;t.converters["script json"]=function(){if(!s)x.error(i+" was not called");return s[0]};t.dataTypes[0]="json";o=e[i];e[i]=function(){s=arguments};n.always(function(){if(void 0===o)x(e).removeProp(i);else e[i]=o;if(t[i]){t.jsonpCallback=r.jsonpCallback;tU.push(i)}if(s&&p(o))o(s[0]);s=o=void 0});return"script"}});d.createHTMLDocument=function(){var e=m.implementation.createHTMLDocument("").body;e.innerHTML="<form></form><form></form>";return 2===e.childNodes.length}();x.parseHTML=function(e,t,r){if("string"!=typeof e)return[];if("boolean"==typeof t){r=t;t=false}var n,i,o;if(!t)if(d.createHTMLDocument){t=m.implementation.createHTMLDocument("");n=t.createElement("base");n.href=m.location.href;t.head.appendChild(n)}else t=m;i=L.exec(e);o=!r&&[];if(i)return[t.createElement(i[1])];i=e$([e],t,o);if(o&&o.length)x(o).remove();
11return x.merge([],i.childNodes)};x.fn.load=function(e,t,r){var n,i,o,s=this,a=e.indexOf(" ");if(a>-1){n=tm(e.slice(a));e=e.slice(0,a)}if(p(t)){r=t;t=void 0}else if(t&&"object"==typeof t)i="POST";if(s.length>0)x.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments;s.html(n?x("<div>").append(x.parseHTML(e)).find(n):e)}).always(r&&function(e,t){s.each(function(){r.apply(this,o||[e.responseText,t,e])})});return this};x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length};x.offset={setOffset:function(e,t,r){var n,i,o,s,a,l,u,f=x.css(e,"position"),c=x(e),h={};if("static"===f)e.style.position="relative";a=c.offset();o=x.css(e,"top");l=x.css(e,"left");u=("absolute"===f||"fixed"===f)&&(o+l).indexOf("auto")>-1;if(u){n=c.position();s=n.top;i=n.left}else{s=parseFloat(o)||0;i=parseFloat(l)||0}if(p(t))t=t.call(e,r,x.extend({},a));if(null!=t.top)h.top=t.top-a.top+s;if(null!=t.left)h.left=t.left-a.left+i;if("using"in t)t.using.call(e,h);else c.css(h)}};x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,r,n=this[0];if(!n)return;if(!n.getClientRects().length)return{top:0,left:0};t=n.getBoundingClientRect();r=n.ownerDocument.defaultView;return{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}},position:function(){if(!this[0])return;var e,t,r,n=this[0],i={top:0,left:0};if("fixed"===x.css(n,"position"))t=n.getBoundingClientRect();else{t=this.offset();r=n.ownerDocument;e=n.offsetParent||r.documentElement;while(e&&(e===r.body||e===r.documentElement)&&"static"===x.css(e,"position"))e=e.parentNode;if(e&&e!==n&&1===e.nodeType){i=x(e).offset();i.top+=x.css(e,"borderTopWidth",true);i.left+=x.css(e,"borderLeftWidth",true)}}return{top:t.top-i.top-x.css(n,"marginTop",true),left:t.left-i.left-x.css(n,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===x.css(e,"position"))e=e.offsetParent;return e||eg})}});x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var r="pageYOffset"===t;x.fn[e]=function(n){return J(this,function(e,n,i){var o;if(g(e))o=e;else if(9===e.nodeType)o=e.defaultView;if(void 0===i)return o?o[t]:e[n];if(o)o.scrollTo(r?o.pageXOffset:i,r?i:o.pageYOffset);else e[n]=i},e,n,arguments.length)}});x.each(["top","left"],function(e,t){x.cssHooks[t]=eK(d.pixelPosition,function(e,r){if(r){r=eH(e,t);return eW.test(r)?x(e).position()[t]+"px":r}})});x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(r,n){x.fn[n]=function(i,o){var s=arguments.length&&(r||"boolean"!=typeof i),a=r||(true===i||true===o?"margin":"border");return J(this,function(t,r,i){var o;if(g(t))return 0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e];if(9===t.nodeType){o=t.documentElement;return Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])}return void 0===i?x.css(t,r,a):x.style(t,r,i,a)},t,s?i:void 0,s)}})});x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}});x.fn.extend({bind:function(e,t,r){return this.on(e,null,t,r)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,r,n){return this.on(t,e,r,n)},undelegate:function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}});x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){x.fn[t]=function(e,r){return arguments.length>0?this.on(t,null,e,r):this.trigger(t)}});var tF=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var r,n,o;if("string"==typeof t){r=e[t];t=e;e=r}if(!p(e))return;n=i.call(arguments,2);o=function(){return e.apply(t||this,n.concat(i.call(arguments)))};o.guid=e.guid=e.guid||x.guid++;return o};x.holdReady=function(e){if(e)x.readyWait++;else x.ready(true)};x.isArray=Array.isArray;x.parseJSON=JSON.parse;x.nodeName=_;x.isFunction=p;x.isWindow=g;x.camelCase=en;x.type=y;x.now=Date.now;x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))};x.trim=function(e){return null==e?"":(e+"").replace(tF,"$1")};if("function"==typeof define&&define.amd)define("jquery",[],function(){return x});var tH=e.jQuery,tK=e.$;x.noConflict=function(t){if(e.$===x)e.$=tK;if(t&&e.jQuery===x)e.jQuery=tH;return x};if(void 0===t)e.jQuery=e.$=x;return x})}}},"html-compare":{
11"package.json":function(e,t,r){r.exports={name:"html-compare",version:"0.0.1",main:"lib/index.js"}},lib:{
11"index.js":function(e,t,r){"use strict";var n=e("lodash");var i=e("cheerio");var o=e("./util/cheerio-utils").node;var s=e("./diffing/compare-nodes");var a=e("./diffing/prepare-for-diff");var l=e("./diffing/change-types");var u=e("./diffing/tag-comparison-heuristic");r.exports={compare:c,added:l.added,removed:l.removed,changed:l.changed,IDENTICAL:l.DiffLevel.IDENTICAL,SAME_BUT_DIFFERENT:l.DiffLevel.SAME_BUT_DIFFERENT,NOT_THE_SAME_NODE:l.DiffLevel.NOT_THE_SAME_NODE,defaultTagComparisonFn:u()};var f={ignore:[],ignoreComments:true,ignoreText:[]};function c(e,t,r){r=h(r);var n=i.load(e);var l=i.load(t);var u=o(n,n.root());var f=o(l,l.root());a(u,r);a(f,r);var c=s(u,f,r);return{different:!!c.changes,changes:c?c.changes:[],before:e,after:t,$before:n,$after:l}}function h(e){e=n.defaults(e||{},f);if(true===e.ignoreText)e.ignoreText=["*"];e.tagComparison=d(e.tagComparison);["ignore","ignoreText"].map(function(t){e[t]=p(e[t])});e.memo={};return e}function d(e){if(void 0===e)return u();if("function"==typeof e)return e;if("object"==typeof e)return u(e);throw new Error("Invalid 'tagComparison' option provided: "+e)}function p(e){return void 0===e.length?[e]:e}},util:{
11"cheerio-utils.js":function(e,t,r){"use strict";var n={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};r.exports={node:function(e,t){if(!t)return t;if(void 0!==t.type)t=e(t);t.cheerio=e;if(t.length&&!t[0].__uid)t[0].__uid=Math.random().toString().substring(2);return t},nodeType:function(e){var t=e[0].nodeType;if(void 0!==e[0].data){var r=e[0].data;if(/^\[CDATA/.test(r))return"directive";if(t!=n.TEXT_NODE&&t!=n.COMMENT_NODE)return"directive"}switch(t){case n.TEXT_NODE:return"text";case n.ELEMENT_NODE:return"element";case n.COMMENT_NODE:return"comment";default:throw new Error("Unhandled node type: "+e[0].nodeType)}},safeParent:function(e){var t=e.parent();return t.length?t:e.cheerio.root()},canonicalizeText:function(e){e=r.exports.canonicalizeAttribute(e);e=e.replace(/^\s+|\s+$/g,"");e=e.replace(/\s+/g," ");return e},canonicalizeAttribute:function(e){if(void 0===e)return;return e.replace(/\n\s+/g," ")}}},
11"css-path.js":function(e,t,r){"use strict";var n=e("util");var i=e("../util/cheerio-utils").nodeType;r.exports=o;function o(e){if(!e.length||"element"!=i(e))return;if("root"==e[0].type)return":root";var t=e.parent();if(!t.length)return s(e);var r=o(e.parent());return r+" > "+s(e)}function s(e){var t=e[0].name,r=t;if(e.attr("id"))r+="#"+e.attr("id");else if(e.attr("class")){var i=e.attr("class").replace(/^\s+|\s+$/,"").split(/\s+/);r+="."+i.join(".")}var o=e.prevAll(r).length+e.nextAll(r).length>0;if(!o)return r;var s=e.prevAll(r).length+1;return r+n.format(":nth-of-type(%d)",s)}}},diffing:{
11"compare-nodes.js":function(e,t,r){"use strict";var n=e("lodash");var i=e("../util/cheerio-utils").node;var o=e("../util/cheerio-utils").canonicalizeText;var s=e("../util/cheerio-utils").canonicalizeAttribute;var a=e("../util/cheerio-utils").nodeType;var l=e("./change-types");r.exports=f;var u=e("./change-types").DiffLevel;function f(t,r,c){var h=t[0].__uid+":"+r[0].__uid;if(c.memo&&void 0!==c.memo[h])return c.memo[h];if(c.ignore){if(x(t)&&x(r))return false}var d=p(t,r,c);if(c.memo)c.memo[h]=d;return d;function p(e,t,r){var n=a(e),i=a(t);if(n!=i)return{level:u.NOT_THE_SAME_NODE,changes:[l.changed(e,t)]};switch(n){case"text":return y(e,t,r.ignoreText);case"element":return g(e,t,r.tagComparison);case"directive":case"comment":return w(e,t);default:throw new Error("Unrecognized node type: "+n)}}function g(e,t,r){var i=n.compact([m(e,t)]);var o=O(e,t,c);var s=r(e,t,o);if(s==u.IDENTICAL)return false;return{level:s,changes:i.concat(o)}}function m(e,t){if(e[0].name!=t[0].name)return l.changed(e,t);var r=n.keys(e[0].attribs);var i=n.keys(t[0].attribs);var o=n.uniq(r.concat(i));var a=n.some(o,function(r){var n=s(e[0].attribs[r]);var i=s(t[0].attribs[r]);return n!=i});if(a)return l.changed(e,t);return false}function O(e,t,r){var o=n.map(e.contents(),function(t){return i(e.cheerio,t)});var s=n.map(t.contents(),function(e){return i(t.cheerio,e)});return v(e,t,o,s,r)}function v(t,r,i,o,s){var a=e("./node-list-diff");var u=a.diffLists(i,o,s);var c=0,h=0,d=[];n.each(u,function(e){if(e.added||e.removed){if(e.added){var a=o.slice(h,h+e.count);d=d.concat(a.map(function(e,n){return l.added(e,t,c,r,h+n)}));h+=e.count}else if(e.removed){var u=i.slice(c,c+e.count);d=d.concat(u.map(function(e,n){return l.removed(e,t,c+n,r,h)}));c+=e.count}}else{var p=n.zip(i.slice(c,c+e.count),o.slice(h,h+e.count));c+=e.count;h+=e.count;n.each(p,function(e){var t=f(e[0],e[1],s);if(t)d=d.concat(t.changes)})}});return d}function y(e,t,r){if(b(e,t,r))return false;var n=o(e.text());var i=o(t.text());if(n!=i)return{level:u.SAME_BUT_DIFFERENT,changes:[l.changedText(e,t)]};return false}function b(e,t,r){var i=e.parent(),o=t.parent();return n.some(r,function(e){return i.is(e)&&o.is(e)})}function w(e,t){var r=e.cheerio.html(e);var n=t.cheerio.html(t);if(r!=n)return{level:u.SAME_BUT_DIFFERENT,changes:[l.changedText(e,t)]};return false}function x(e){if("element"!=a(e))return false;return n.some(c.ignore,function(t){return e.is(t)})}}},
11"change-types.js":function(e,t,r){"use strict";var n=e("lodash");var i=e("colors");var o=e("diff");var s=e("../display/stringify-node");var a=e("../util/css-path");var l=e("../util/cheerio-utils").node;var u=e("../util/cheerio-utils").safeParent;r.exports={added:f,removed:c,changed:h,changedText:h,DiffLevel:{SAME_BUT_DIFFERENT:"same-but-different",NOT_THE_SAME_NODE:"not-the-same-node",IDENTICAL:"identical"}};function f(e,t,r,n,o){return{type:"added",before:d(t,void 0,r),after:d(n,e,o),message:"Added:    "+i.green(s(e))}}function c(e,t,r,n,o){return{type:"removed",before:d(t,e,r),after:d(n,void 0,o),message:"Removed:  "+i.red(s(e))}}function h(e,t){var r=g(e),n=g(t);return{type:"changed",before:d(r.$parent,e,r.index),after:d(n.$parent,t,n.index),message:"Modified: "+m(s(e),s(t))}}function d(e,t,r){var i=p(e,t,r);return n.extend(i,{parentPath:a(e),path:t?a(t):void 0,index:r,$node:t,$parent:e})}function p(e,t,r){var n=e.cheerio;var i=r-1;var o=t?r+1:r;var s=e.contents();var a=i>=0&&i<s.length;var l=o>=0&&o<s.length;return{$previous:a?n(e.contents()[i]):void 0,$next:l?n(e.contents()[o]):void 0}}function g(e){var t=e.cheerio,r=l(t,u(e));var i=n.findIndex(r.contents(),function(r){return t(r).is(e)});return{$parent:r,index:i}}function m(e,t){var r=o.diffWords(e,t);return n.map(r,function(e){var t=e.added?"green":e.removed?"red":"grey";return i[t](e.value)}).join("")}},
11"node-list-diff.js":function(e,t,r){"use strict";var n=e("diff").Diff;var i=e("./compare-nodes");e("../util/cheerio-utils").node;var o=e("./change-types").DiffLevel;function s(e){var t=new n;t.equals=function(t,r){if("string"==typeof t||"string"==typeof r)return false;var n=i(t,r,e);return!n||n.level==o.SAME_BUT_DIFFERENT};t.tokenize=function(e){return e};return t}r.exports={diffLists:function(e,t,r){var n=s(r);return n.diff(e,t)}}},
11"prepare-for-diff.js":function(e,t,r){"use strict";var n=e("lodash");var i=e("../util/cheerio-utils").canonicalizeText;var o=e("../util/cheerio-utils").node;var s=e("../util/cheerio-utils").nodeType;r.exports=a;function a(e,t){f(e);if(t.ignoreComments)l(e);n.each(e.contents(),function(r){a(o(e.cheerio,r),t)})}function l(e){if("comment"==s(e)){u(e);e.remove()}}function u(e){var t=e.parent();if(0==t.length)t=e.cheerio.root();var r=t.contents().get();var n=[].concat(r).indexOf(e[0]);if(n<=0||n>=r.length-1)return;var i=r[n-1],s=r[n+1];if("text"==i.type&&"text"==s.type){var a=o(e.cheerio,i);var l=o(e.cheerio,s);i.data=a.text()+" "+l.text();l.remove()}}function f(e){if("text"==s(e)){if(""==i(e.text()))e.remove()}}},
11"tag-comparison-heuristic.js":function(e,t,r){"use strict";var n=e("lodash");var i=e("./change-types");var o=i.DiffLevel;var s=e("../util/cheerio-utils").canonicalizeAttribute;r.exports=u;var a={name:{same:10,differs:-10},id:{same:35,differs:-15},attributes:{same:12,differs:-12},contents:{same:11,differs:-11}};var l={name:1,id:1,attributes:1,contents:1};function u(e){e=n.defaults(e||{},l);n.each(e,function(t,r){if(false===t)e[r]=0;if(true===t)e[r]=1});return t;function t(t,s,a){var l=false;var u=0;var f=t[0].name!=s[0].name;l=l||f&&e.name>0;u+=i("name",f);var c=n.keys(t[0].attribs);var h=n.keys(s[0].attribs);var d=n.uniq(c.concat(h));if(d.indexOf("id")>=0){d.splice(d.indexOf("id"),1);var p=r(t[0].attribs["id"],s[0].attribs["id"]);l=l||p&&e.id>0;u+=i("id",p)}if(d.length){var g=n.filter(d,function(e){return r(t[0].attribs[e],s[0].attribs[e])});var m=g.length/d.length;var O=m>.5;l=l||g.length>0&&e.attributes>0;u+=i("attributes",O)}var v=n.max([t.contents().length,s.contents().length]);if(v>0){var y;var b={added:0,removed:0,changed:0};n.each(a,function(e){if(e.before.$parent.is(t)||e.after.$parent.is(s))b[e.type]++});y=n.max([b.added,b.removed])+b.changed;var w=y/v>.99;l=l||a.length>0;u+=i("contents",w)}if(!l)return o.IDENTICAL;return u>=0?o.SAME_BUT_DIFFERENT:o.NOT_THE_SAME_NODE}function r(e,t){e=s(e);t=s(t);return e!=t}function i(t,r){return a[t][r?"differs":"same"]*e[t]}}}},display:{
11"stringify-node.js":function(e,t,r){"use strict";r.exports=i;var n=e("../util/cheerio-utils").nodeType;function i(e){if(!e||!e.length)return"[nothing]";switch(n(e)){case"text":var t=e.text();return'"'+t+'"';default:var r=e.cheerio;var i=e.clone();return r.html(i)}}}}}},lodash:{
11"package.json":function(e,t,r){r.exports={name:"lodash",version:"4.17.15",main:"lodash.js"}},
vendor: 2,217 bytes, line 11
11"lodash.js":function(e,r,n){(function(){var e;var i="4.17.15";var o=200;var s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function";var l="__lodash_hash_undefined__";var u=500;var f="__lodash_placeholder__";var c=1,h=2,d=4;var p=1,g=2;var m=1,O=2,v=4,y=8,b=16,w=32,x=64,S=128,_=256,k=512;var Q=30,P="...";var T=800,A=16;var $=1,j=2,C=3;var E=1/0,M=0x1fffffffffffff,R=17976931348623157e292,D=0/0;var L=0xffffffff,Z=L-1,X=L>>>1;var q=[["ary",S],["bind",m],["bindKey",O],["curry",y],["curryRight",b],["flip",k],["partial",w],["partialRight",x],["rearg",_]];var B="[object Arguments]",z="[object Array]",I="[object AsyncFunction]",N="[object Boolean]",V="[object Date]",W="[object DOMException]",Y="[object Error]",U="[object Function]",G="[object GeneratorFunction]",F="[object Map]",H="[object Number]",K="[object Null]",J="[object Object]",ee="[object Promise]",et="[object Proxy]",er="[object RegExp]",en="[object Set]",ei="[object String]",eo="[object Symbol]",es="[object Undefined]",ea="[object WeakMap]",el="[object WeakSet]";var eu="[object ArrayBuffer]",ef="[object DataView]",ec="[object Float32Array]",eh="[object Float64Array]",ed="[object Int8Array]",ep="[object Int16Array]",eg="[object Int32Array]",em="[object Uint8Array]",eO="[object Uint8ClampedArray]",ev="[object Uint16Array]",ey="[object Uint32Array]";var eb=/\b__p \+= '';/g,ew=/\b(__p \+=) '' \+/g,ex=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var eS=/&(?:amp|lt|gt|quot|#39);/g,e_=/[&<>"']/g,ek=RegExp(eS.source),eQ=RegExp(e_.source);var eP=/<%-([\s\S]+?)%>/g,eT=/<%([\s\S]+?)%>/g,eA=/<%=([\s\S]+?)%>/g;var e$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ej=/^\w*$/,eC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var eE=/[\\^$.*+?()[\]{}|]/g,eM=RegExp(eE.source);var eR=/^\s+|\s+$/g,eD=/^\s+/,eL=/\s+$/;var eZ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eX=/\{\n\/\* \[wrapped with (.+)\] \*/,eq=/,? & /;var eB=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ez=/\\(\\)?/g;var eI=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var eN=/\w*$/;var eV=/^[-+]0x[0-9a-f]+$/i;var eW=/^0b[01]+$/i;var eY=/^\[object .+?Constructor\]$/;var eU=/^0o[0-7]+$/i;var eG=/^(?:0|[1-9]\d*)$/;
vendor: 4,308 bytes, line 11
11var eF=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var eH=/($^)/;var eK=/['\n\r\u2028\u2029\\]/g;var eJ="\\ud800-\\udfff",e0="\\u0300-\\u036f",e1="\\ufe20-\\ufe2f",e2="\\u20d0-\\u20ff",e5=e0+e1+e2,e3="\\u2700-\\u27bf",e4="a-z\\xdf-\\xf6\\xf8-\\xff",e8="\\xac\\xb1\\xd7\\xf7",e6="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",e7="\\u2000-\\u206f",e9=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",te="A-Z\\xc0-\\xd6\\xd8-\\xde",tt="\\ufe0e\\ufe0f",tr=e8+e6+e7+e9;var tn="['’]",ti="["+eJ+"]",to="["+tr+"]",ts="["+e5+"]",ta="\\d+",tl="["+e3+"]",tu="["+e4+"]",tf="[^"+eJ+tr+ta+e3+e4+te+"]",tc="\\ud83c[\\udffb-\\udfff]",th="(?:"+ts+"|"+tc+")",td="[^"+eJ+"]",tp="(?:\\ud83c[\\udde6-\\uddff]){2}",tg="[\\ud800-\\udbff][\\udc00-\\udfff]",tm="["+te+"]",tO="\\u200d";var tv="(?:"+tu+"|"+tf+")",ty="(?:"+tm+"|"+tf+")",tb="(?:"+tn+"(?:d|ll|m|re|s|t|ve))?",tw="(?:"+tn+"(?:D|LL|M|RE|S|T|VE))?",tx=th+"?",tS="["+tt+"]?",t_="(?:"+tO+"(?:"+[td,tp,tg].join("|")+")"+tS+tx+")*",tk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tQ="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tP=tS+tx+t_,tT="(?:"+[tl,tp,tg].join("|")+")"+tP,tA="(?:"+[td+ts+"?",ts,tp,tg,ti].join("|")+")";var t$=RegExp(tn,"g");var tj=RegExp(ts,"g");var tC=RegExp(tc+"(?="+tc+")|"+tA+tP,"g");var tE=RegExp([tm+"?"+tu+"+"+tb+"(?="+[to,tm,"$"].join("|")+")",ty+"+"+tw+"(?="+[to,tm+tv,"$"].join("|")+")",tm+"?"+tv+"+"+tb,tm+"+"+tw,tQ,tk,ta,tT].join("|"),"g");var tM=RegExp("["+tO+eJ+e5+tt+"]");var tR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var tD=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var tL=-1;var tZ={};tZ[ec]=tZ[eh]=tZ[ed]=tZ[ep]=tZ[eg]=tZ[em]=tZ[eO]=tZ[ev]=tZ[ey]=true;tZ[B]=tZ[z]=tZ[eu]=tZ[N]=tZ[ef]=tZ[V]=tZ[Y]=tZ[U]=tZ[F]=tZ[H]=tZ[J]=tZ[er]=tZ[en]=tZ[ei]=tZ[ea]=false;var tX={};tX[B]=tX[z]=tX[eu]=tX[ef]=tX[N]=tX[V]=tX[ec]=tX[eh]=tX[ed]=tX[ep]=tX[eg]=tX[F]=tX[H]=tX[J]=tX[er]=tX[en]=tX[ei]=tX[eo]=tX[em]=tX[eO]=tX[ev]=tX[ey]=true;tX[Y]=tX[U]=tX[ea]=false;var tq={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"};var tB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var tz={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};var tI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var tN=parseFloat,tV=parseInt;var tW="object"==typeof t&&t&&t.Object===Object&&t;var tY="object"==typeof self&&self&&self.Object===Object&&self;var tU=tW||tY||Function("return this")();var tG="object"==typeof r&&r&&!r.nodeType&&r;var tF=tG&&"object"==typeof n&&n&&!n.nodeType&&n;var tH=tF&&tF.exports===tG;var tK=tH&&tW.process;var tJ=function(){try{var e=tF&&tF.require&&tF.require("util").t
11ypes;if(e)return e;return tK&&tK.binding&&tK.binding("util")}catch(e){}}();var t0=tJ&&tJ.isArrayBuffer,t1=tJ&&tJ.isDate,t2=tJ&&tJ.isMap,t5=tJ&&tJ.isRegExp,t3=tJ&&tJ.isSet,t4=tJ&&tJ.isTypedArray;function t8(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function t6(e,t,r,n){var i=-1,o=null==e?0:e.length;while(++i<o){var s=e[i];t(n,s,r(s),e)}return n}function t7(e,t){var r=-1,n=null==e?0:e.length;while(++r<n)if(false===t(e[r],r,e))break;return e}function t9(e,t){var r=null==e?0:e.length;while(r--)if(false===t(e[r],r,e))break;return e}function re(e,t){var r=-1,n=null==e?0:e.length;while(++r<n)if(!t(e[r],r,e))return false;return true}function rt(e,t){var r=-1,n=null==e?0:e.length,i=0,o=[];while(++r<n){var s=e[r];if(t(s,r,e))o[i++]=s}return o}function rr(e,t){var r=null==e?0:e.length;return!!r&&rp(e,t,0)>-1}function rn(e,t,r){var n=-1,i=null==e?0:e.length;while(++n<i)if(r(t,e[n]))return true;return false}function ri(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}function ro(e,t){var r=-1,n=t.length,i=e.length;while(++r<n)e[i+r]=t[r];return e}function rs(e,t,r,n){var i=-1,o=null==e?0:e.length;if(n&&o)r=e[++i];while(++i<o)r=t(r,e[i],i,e);return r}function ra(e,t,r,n){var i=null==e?0:e.length;if(n&&i)r=e[--i];while(i--)r=t(r,e[i],i,e);return r}function rl(e,t){var r=-1,n=null==e?0:e.length;while(++r<n)if(t(e[r],r,e))return true;return false}var ru=rv("length");function rf(e){return e.split("")}function rc(e){return e.match(eB)||[]}function rh(e,t,r){var n;r(e,function(e,r,i){if(t(e,r,i)){n=r;return false}});return n}function rd(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i)if(t(e[o],o,e))return o;return -1}function rp(e,t,r){return t===t?rI(e,t,r):rd(e,rm,r)}function rg(e,t,r,n){var i=r-1,o=e.length;while(++i<o)if(n(e[i],t))return i;return -1}function rm(e){return e!==e}function rO(e,t){var r=null==e?0:e.length;return r?rx(e,t)/r:D}function rv(t){return function(r){return null==r?e:r[t]}}function ry(t){return function(r){return null==t?e:t[r]}}function rb(e,t,r,n,i){i(e,function(e,i,o){r=n?(n=false,e):t(r,e,i,o)});return r}function rw(e,t){var r=e.length;e.sort(t);while(r--)e[r]=e[r].value;return e}function rx(t,r){var n,i=-1,o=t.length;while(++i<o){var s=r(t[i]);if(e!==s)n=e===n?s:n+s}return n}function rS(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function r_(e,t){return ri(t,function(t){return[t,e[t]]})}function rk(e){return function(t){return e(t)}}function rQ(e,t){return ri(t,function(t){return e[t]})}function rP(e,t){return e.has(t)}function rT(e,t){var r=-1,n=e.length;while(++r<n&&rp(t,e[r],0)>-1);return r}function rA(e,t){var r=e.length;while(r--&&rp(t,e[r],0)>-1);return r}function r$(e,t){var r=e.length,n=0;while(r--)if(e[r]===t)++n;return n}var rj=ry(tq);var rC=ry(tB);function rE(e){return"\\"+tI[e]}function rM(t,r){return null==t?e:t[r]}function rR(e){return tM.test(e)}function rD(e){return tR.test(e)}function rL(e){var t,r=[];while(!(t=e.next()).done)r.push(t.value);return r}function rZ(e){var t=-1,r=Array(e.size);e.forEach(function(e,n){r[++t]=[n,e]});return r}function rX(e,t){return function(r){return e(t(r))}}function rq(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var s=e[r];if(s===t||s===f){e[r]=f;o[i++]=r}}return o}function rB(e){var t=-1,r=Array(e.size);e.forEach(function(e){r[++t]=e});return r}function rz(e){var t=-1,r=Array(e.size);e.forEach(function(e){r[++t]=[e,e]});return r}function rI(e,t,r){var n=r-1,i=e.length;while(++n<i)if(e[n]===t)return n;return -1}function rN(e,t,r){var n=r+1;while(n--)if(e[n]===t)break;return n}function rV(e){return rR(e)?rU(e):ru(e)}function rW(e){return rR(e)?rG(e):rf(e)}var rY=ry(tz);function rU(e){var t=tC.lastIndex=0;while(tC.test(e))++t;return t}function rG(e){return e.match(tC)||[]}function rF(e){return e.match(tE)||[]}var rH=function t(r){r=null==r?tU:rK.defaults(tU.Object(),r,rK.pick(tU,tD));var n=r.Array,eB=r.Date,eJ=r.Error,e0=r.Function,e1=r.Math,e2=r.Object,e5=r.RegExp,e3=r.String,e4=r.TypeError;var e8=n.prototype,e6=e0.prototype,e7=e2.prototype;var e9=r["__core-js_shared__"];var te=e6.toString;var tt=e7.hasOwnProperty;var tr=0;var tn=function(){var e=/[^.]+$/.exec(e9&&e9.keys&&e9.keys.IE_PROTO||"");
11return e?"Symbol(src)_1."+e:""}();var ti=e7.toString;var to=te.call(e2);var ts=tU._;var ta=e5("^"+te.call(tt).replace(eE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var tl=tH?r.Buffer:e,tu=r.Symbol,tf=r.Uint8Array,tc=tl?tl.allocUnsafe:e,th=rX(e2.getPrototypeOf,e2),td=e2.create,tp=e7.propertyIsEnumerable,tg=e8.splice,tm=tu?tu.isConcatSpreadable:e,tO=tu?tu.iterator:e,tv=tu?tu.toStringTag:e;var ty=function(){try{var e=oG(e2,"defineProperty");e({},"",{});return e}catch(e){}}();var tb=r.clearTimeout!==tU.clearTimeout&&r.clearTimeout,tw=eB&&eB.now!==tU.Date.now&&eB.now,tx=r.setTimeout!==tU.setTimeout&&r.setTimeout;var tS=e1.ceil,t_=e1.floor,tk=e2.getOwnPropertySymbols,tQ=tl?tl.isBuffer:e,tP=r.isFinite,tT=e8.join,tA=rX(e2.keys,e2),tC=e1.max,tE=e1.min,tM=eB.now,tR=r.parseInt,tq=e1.random,tB=e8.reverse;var tz=oG(r,"DataView"),tI=oG(r,"Map"),tW=oG(r,"Promise"),tY=oG(r,"Set"),tG=oG(r,"WeakMap"),tF=oG(e2,"create");var tK=tG&&new tG;var tJ={};var ru=s_(tz),rf=s_(tI),ry=s_(tW),rI=s_(tY),rU=s_(tG);var rG=tu?tu.prototype:e,rH=rG?rG.valueOf:e,rJ=rG?rG.toString:e;function r0(e){if(lH(e)&&!lM(e)&&!(e instanceof r3)){if(e instanceof r5)return e;if(tt.call(e,"__wrapped__"))return sQ(e)}return new r5(e)}var r1=function(){function t(){}return function(r){if(!lF(r))return{};if(td)return td(r);t.prototype=r;var n=new t;t.prototype=e;return n}}();function r2(){}function r5(t,r){this.__wrapped__=t;this.__actions__=[];this.__chain__=!!r;this.__index__=0;this.__values__=e}r0.templateSettings={escape:eP,evaluate:eT,interpolate:eA,variable:"",imports:{_:r0}};r0.prototype=r2.prototype;r0.prototype.constructor=r0;r5.prototype=r1(r2.prototype);r5.prototype.constructor=r5;function r3(e){this.__wrapped__=e;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=L;this.__views__=[]}function r4(){var e=new r3(this.__wrapped__);e.__actions__=os(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=os(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=os(this.__views__);return e}function r8(){if(this.__filtered__){var e=new r3(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}function r6(){var e=this.__wrapped__.value(),t=this.__dir__,r=lM(e),n=t<0,i=r?e.length:0,o=o0(0,i,this.__views__),s=o.start,a=o.end,l=a-s,u=n?a:s-1,f=this.__iteratees__,c=f.length,h=0,d=tE(l,this.__takeCount__);if(!r||!n&&i==l&&d==l)return iH(e,this.__actions__);var p=[];s:while(l--&&h<d){u+=t;var g=-1,m=e[u];while(++g<c){var O=f[g],v=O.iteratee,y=O.type,b=v(m);if(y==j)m=b;else if(!b)if(y==$)continue s;else break s}p[h++]=m}return p}r3.prototype=r1(r2.prototype);r3.prototype.constructor=r3;function r7(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function r9(){this.__data__=tF?tF(null):{};this.size=0}function ne(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function nt(t){var r=this.__data__;if(tF){var n=r[t];return n===l?e:n}return tt.call(r,t)?r[t]:e}function nr(t){var r=this.__data__;return tF?r[t]!==e:tt.call(r,t)}function nn(t,r){var n=this.__data__;this.size+=this.has(t)?0:1;n[t]=tF&&e===r?l:r;return this}r7.prototype.clear=r9;r7.prototype["delete"]=ne;r7.prototype.get=nt;r7.prototype.has=nr;r7.prototype.set=nn;function ni(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function no(){this.__data__=[];this.size=0}function ns(e){var t=this.__data__,r=nj(t,e);if(r<0)return false;var n=t.length-1;if(r==n)t.pop();else tg.call(t,r,1);--this.size;return true}function na(t){var r=this.__data__,n=nj(r,t);return n<0?e:r[n][1]}function nl(e){return nj(this.__data__,e)>-1}function nu(e,t){var r=this.__data__,n=nj(r,e);if(n<0){++this.size;r.push([e,t])}else r[n][1]=t;return this}ni.prototype.clear=no;ni.prototype["delete"]=ns;ni.prototype.get=na;ni.prototype.has=nl;ni.prototype.set=nu;function nf(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function nc(){this.size=0;this.__data__={hash:new r7,map:new(tI||ni),string:new r7}}function nh(e){var t=oY(this,e)["delete"](e);this.size-=t?1:0;return t}
11function nd(e){return oY(this,e).get(e)}function np(e){return oY(this,e).has(e)}function ng(e,t){var r=oY(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}nf.prototype.clear=nc;nf.prototype["delete"]=nh;nf.prototype.get=nd;nf.prototype.has=np;nf.prototype.set=ng;function nm(e){var t=-1,r=null==e?0:e.length;this.__data__=new nf;while(++t<r)this.add(e[t])}function nO(e){this.__data__.set(e,l);return this}function nv(e){return this.__data__.has(e)}nm.prototype.add=nm.prototype.push=nO;nm.prototype.has=nv;function ny(e){var t=this.__data__=new ni(e);this.size=t.size}function nb(){this.__data__=new ni;this.size=0}function nw(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function nx(e){return this.__data__.get(e)}function nS(e){return this.__data__.has(e)}function n_(e,t){var r=this.__data__;if(r instanceof ni){var n=r.__data__;if(!tI||n.length<o-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new nf(n)}r.set(e,t);this.size=r.size;return this}ny.prototype.clear=nb;ny.prototype["delete"]=nw;ny.prototype.get=nx;ny.prototype.has=nS;ny.prototype.set=n_;function nk(e,t){var r=lM(e),n=!r&&lE(e),i=!r&&!n&&lX(e),o=!r&&!n&&!i&&ur(e),s=r||n||i||o,a=s?rS(e.length,e3):[],l=a.length;for(var u in e)if((t||tt.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||o7(u,l))))a.push(u);return a}function nQ(t){var r=t.length;return r?t[i$(0,r-1)]:e}function nP(e,t){return sw(os(e),nL(t,0,e.length))}function nT(e){return sw(os(e))}function nA(t,r,n){if(e!==n&&!l$(t[r],n)||e===n&&!(r in t))nR(t,r,n)}function n$(t,r,n){var i=t[r];if(!(tt.call(t,r)&&l$(i,n))||e===n&&!(r in t))nR(t,r,n)}function nj(e,t){var r=e.length;while(r--)if(l$(e[r][0],t))return r;return -1}function nC(e,t,r,n){nI(e,function(e,i,o){t(n,e,r(e),o)});return n}function nE(e,t){return e&&oa(t,uZ(t),e)}function nM(e,t){return e&&oa(t,uX(t),e)}function nR(e,t,r){if("__proto__"==t&&ty)ty(e,t,{configurable:true,enumerable:true,value:r,writable:true});else e[t]=r}function nD(t,r){var i=-1,o=r.length,s=n(o),a=null==t;while(++i<o)s[i]=a?e:uC(t,r[i]);return s}function nL(t,r,n){if(t===t){if(e!==n)t=t<=n?t:n;if(e!==r)t=t>=r?t:r}return t}function nZ(t,r,n,i,o,s){var a,l=r&c,u=r&h,f=r&d;if(n)a=o?n(t,i,o,s):n(t);if(e!==a)return a;if(!lF(t))return t;var p=lM(t);if(p){a=o5(t);if(!l)return os(t,a)}else{var g=oJ(t),m=g==U||g==G;if(lX(t))return i8(t,l);if(g==J||g==B||m&&!o){a=u||m?{}:o3(t);if(!l)return u?ou(t,nM(a,t)):ol(t,nE(a,t))}else{if(!tX[g])return o?t:{};a=o4(t,g,l)}}s||(s=new ny);var O=s.get(t);if(O)return O;s.set(t,a);if(l9(t))t.forEach(function(e){a.add(nZ(e,r,n,e,t,s))});else if(lK(t))t.forEach(function(e,i){a.set(i,nZ(e,r,n,i,t,s))});var v=f?u?oz:oB:u?uX:uZ;var y=p?e:v(t);t7(y||t,function(e,i){if(y){i=e;e=t[i]}n$(a,i,nZ(e,r,n,i,t,s))});return a}function nX(e){var t=uZ(e);return function(r){return nq(r,e,t)}}function nq(t,r,n){var i=n.length;if(null==t)return!i;t=e2(t);while(i--){var o=n[i],s=r[o],a=t[o];if(e===a&&!(o in t)||!s(a))return false}return true}function nB(t,r,n){if("function"!=typeof t)throw new e4(a);return sO(function(){t.apply(e,n)},r)}function nz(e,t,r,n){var i=-1,s=rr,a=true,l=e.length,u=[],f=t.length;if(!l)return u;if(r)t=ri(t,rk(r));if(n){s=rn;a=false}else if(t.length>=o){s=rP;a=false;t=new nm(t)}s:while(++i<l){var c=e[i],h=null==r?c:r(c);c=n||0!==c?c:0;if(a&&h===h){var d=f;while(d--)if(t[d]===h)continue s;u.push(c)}else if(!s(t,h,n))u.push(c)}return u}var nI=oh(nK);var nN=oh(nJ,true);function nV(e,t){var r=true;nI(e,function(e,n,i){r=!!t(e,n,i);return r});return r}function nW(t,r,n){var i=-1,o=t.length;while(++i<o){var s=t[i],a=r(s);if(null!=a&&(e===l?a===a&&!ut(a):n(a,l)))var l=a,u=s}return u}function nY(t,r,n,i){var o=t.length;n=uf(n);if(n<0)n=-n>o?0:o+n;i=e===i||i>o?o:uf(i);if(i<0)i+=o;i=n>i?0:uc(i);while(n<i)t[n++]=r;return t}function nU(e,t){var r=[];nI(e,function(e,n,i){if(t(e,n,i))r.push(e)});return r}function nG(e,t,r,n,i){var o=-1,s=e.length;r||(r=o6);i||(i=[]);while(++o<s){var a=e[o];if(t>0&&r(a))if(t>1)nG(a,t-1,r,n,i);else ro(i,a);else if(!n)i[i.length]=a}return i}var nF=od();var nH=od(true);function nK(e,t){return e&&nF(e,t,uZ)}function nJ(e,t){return e&&nH(e,t,uZ)}function n0(e,t){return rt(t,function(t){return lY(e[t])})}function n1(t,r){r=i2(r,t);var n=0,i=r.length;while(null!=t&&n<i)t=t[sS(r[n++])];return n&&n==i?t:e}function n2(e,t,r){var n=t(e);return lM(e)?n:ro(n,r(e))}function n5(t){if(null==t)return e===t?es:K;return tv&&tv in e2(t)?oF(t):sc(t)}function n3(e,t){return e>t}function n4(e,t){return null!=e&&tt.call(e,t)}function n8(e,t){return null!=e&&t in e2(e)}function n6(e,t,r){return e>=tE(t,r)&&e<tC(t,r)}function n7(t,r,i){var o=i?rn:rr,s=t[0].length,a=t.length,l=a,u=n(a),f=1/0,c=[];while(l--){var h=t[l];if(l&&r)h=ri(h,rk(r));f=tE(h.length,f);u[l]=!i&&(r||s>=120&&h.length>=120)?new nm(l&&h):e}h=t[0];var d=-1,p=u[0];s:while(++d<s&&c.length<f){var g=h[d],m=r?r(g):g;g=i||0!==g?g:0;if(!(p?rP(p,m):o(c,m,i))){l=a;while(--l){var O=u[l];if(!(O?rP(O,m):o(t[l],m,i)))continue s}if(p)p.push(m);c.push(g)}}return c}function n9(e,t,r,n){nK(e,function(e,i,o){t(n,r(e),i,o)});return n}function ie(t,r,n){r=i2(r,t);t=sd(t,r);var i=null==t?t:t[sS(sH(r))];return null==i?e:t8(i,t,n)}function it(e){return lH(e)&&n5(e)==B}function ir(e){return lH(e)&&n5(e)==eu}function ii(e){return lH(e)&&n5(e)==V}function io(e,t,r,n,i){if(e===t)return true;if(null==e||null==t||!lH(e)&&!lH(t))return e!==e&&t!==t;return is(e,t,r,n,io,i)}function is(e,t,r,n,i,o){var s=lM(e),a=lM(t),l=s?z:oJ(e),u=a?z:oJ(t);l=l==B?J:l;u=u==B?J:u;var f=l==J,c=u==J,h=l==u;if(h&&lX(e)){if(!lX(t))return false;s=true;f=false}
11if(h&&!f){o||(o=new ny);return s||ur(e)?oL(e,t,r,n,i,o):oZ(e,t,l,r,n,i,o)}if(!(r&p)){var d=f&&tt.call(e,"__wrapped__"),g=c&&tt.call(t,"__wrapped__");if(d||g){var m=d?e.value():e,O=g?t.value():t;o||(o=new ny);return i(m,O,r,n,o)}}if(!h)return false;o||(o=new ny);return oX(e,t,r,n,i,o)}function ia(e){return lH(e)&&oJ(e)==F}function il(t,r,n,i){var o=n.length,s=o,a=!i;if(null==t)return!s;t=e2(t);while(o--){var l=n[o];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return false}while(++o<s){l=n[o];var u=l[0],f=t[u],c=l[1];if(a&&l[2]){if(e===f&&!(u in t))return false}else{var h=new ny;if(i)var d=i(f,c,u,t,r,h);if(!(e===d?io(c,f,p|g,i,h):d))return false}}return true}function iu(e){if(!lF(e)||sn(e))return false;var t=lY(e)?ta:eY;return t.test(s_(e))}function ic(e){return lH(e)&&n5(e)==er}function ih(e){return lH(e)&&oJ(e)==en}function id(e){return lH(e)&&lG(e.length)&&!!tZ[n5(e)]}function ip(e){if("function"==typeof e)return e;if(null==e)return fD;if("object"==typeof e)return lM(e)?ib(e[0],e[1]):iy(e);return fG(e)}function ig(e){if(!so(e))return tA(e);var t=[];for(var r in e2(e))if(tt.call(e,r)&&"constructor"!=r)t.push(r);return t}function im(e){if(!lF(e))return sf(e);var t=so(e),r=[];for(var n in e)if(!("constructor"==n&&(t||!tt.call(e,n))))r.push(n);return r}function iO(e,t){return e<t}function iv(e,t){var r=-1,i=lD(e)?n(e.length):[];nI(e,function(e,n,o){i[++r]=t(e,n,o)});return i}function iy(e){var t=oU(e);if(1==t.length&&t[0][2])return sa(t[0][0],t[0][1]);return function(r){return r===e||il(r,e,t)}}function ib(t,r){if(se(t)&&ss(r))return sa(sS(t),r);return function(n){var i=uC(n,t);return e===i&&i===r?uM(n,t):io(r,i,p|g)}}function iw(t,r,n,i,o){if(t===r)return;nF(r,function(s,a){o||(o=new ny);if(lF(s))ix(t,r,a,n,iw,i,o);else{var l=i?i(sg(t,a),s,a+"",t,r,o):e;if(e===l)l=s;nA(t,a,l)}},uX)}function ix(t,r,n,i,o,s,a){var l=sg(t,n),u=sg(r,n),f=a.get(u);if(f)return void nA(t,n,f);var c=s?s(l,u,n+"",t,r,a):e;var h=e===c;if(h){var d=lM(u),p=!d&&lX(u),g=!d&&!p&&ur(u);c=u;if(d||p||g)if(lM(l))c=l;else if(lL(l))c=os(l);else if(p){h=false;c=i8(u,true)}else if(g){h=false;c=ot(u,true)}else c=[];else if(l8(u)||lE(u)){c=l;if(lE(l))c=ud(l);else if(!lF(l)||lY(l))c=o3(u)}else h=false}if(h){a.set(u,c);o(c,u,i,s,a);a["delete"](u)}nA(t,n,c)}function iS(t,r){var n=t.length;if(!n)return;r+=r<0?n:0;return o7(r,n)?t[r]:e}function i_(e,t,r){var n=-1;t=ri(t.length?t:[fD],rk(oW()));var i=iv(e,function(e,r,i){var o=ri(t,function(t){return t(e)});return{criteria:o,index:++n,value:e}});return rw(i,function(e,t){return on(e,t,r)})}function ik(e,t){return iQ(e,t,function(t,r){return uM(e,r)})}function iQ(e,t,r){var n=-1,i=t.length,o={};while(++n<i){var s=t[n],a=n1(e,s);if(r(a,s))iD(o,i2(s,e),a)}return o}function iP(e){return function(t){return n1(t,e)}}function iT(e,t,r,n){var i=n?rg:rp,o=-1,s=t.length,a=e;if(e===t)t=os(t);if(r)a=ri(e,rk(r));while(++o<s){var l=0,u=t[o],f=r?r(u):u;while((l=i(a,f,l,n))>-1){if(a!==e)tg.call(a,l,1);tg.call(e,l,1)}}return e}function iA(e,t){var r=e?t.length:0,n=r-1;while(r--){var i=t[r];if(r==n||i!==o){var o=i;if(o7(i))tg.call(e,i,1);else iU(e,i)}}return e}function i$(e,t){return e+t_(tq()*(t-e+1))}function ij(e,t,r,i){var o=-1,s=tC(tS((t-e)/(r||1)),0),a=n(s);while(s--){a[i?s:++o]=e;e+=r}return a}function iC(e,t){var r="";if(!e||t<1||t>M)return r;do{if(t%2)r+=e;t=t_(t/2);if(t)e+=e}while(t);return r}function iE(e,t){return sv(sh(e,t,fD),e+"")}function iM(e){return nQ(u5(e))}function iR(e,t){var r=u5(e);return sw(r,nL(t,0,r.length))}function iD(t,r,n,i){if(!lF(t))return t;r=i2(r,t);var o=-1,s=r.length,a=s-1,l=t;while(null!=l&&++o<s){var u=sS(r[o]),f=n;if(o!=a){var c=l[u];f=i?i(c,u,l):e;if(e===f)f=lF(c)?c:o7(r[o+1])?[]:{}}n$(l,u,f);l=l[u]}return t}var iL=tK?function(e,t){tK.set(e,t);return e}:fD;var iZ=ty?function(e,t){return ty(e,"toString",{configurable:true,enumerable:false,value:fC(t),writable:true})}:fD;function iX(e){return sw(u5(e))}function iq(e,t,r){var i=-1,o=e.length;if(t<0)t=-t>o?0:o+t;r=r>o?o:r;if(r<0)r+=o;o=t>r?0:r-t>>>0;t>>>=0;var s=n(o);while(++i<o)s[i]=e[i+t];return s}function iB(e,t){var r;nI(e,function(e,n,i){r=t(e,n,i);return!r});return!!r}function iz(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t===t&&i<=X){while(n<i){var o=n+i>>>1,s=e[o];if(null!==s&&!ut(s)&&(r?s<=t:s<t))n=o+1;else i=o}return i}return iI(e,t,fD,r)}function iI(t,r,n,i){r=n(r);var o=0,s=null==t?0:t.length,a=r!==r,l=null===r,u=ut(r),f=e===r;while(o<s){var c=t_((o+s)/2),h=n(t[c]),d=e!==h,p=null===h,g=h===h,m=ut(h);if(a)var O=i||g;else O=f?g&&(i||d):l?g&&d&&(i||!p):u?g&&d&&!p&&(i||!m):p||m?false:i?h<=r:h<r;if(O)o=c+1;else s=c}return tE(s,Z)}function iN(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var s=e[r],a=t?t(s):s;if(!r||!l$(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function iV(e){if("number"==typeof e)return e;if(ut(e))return D;return+e}function iW(e){if("string"==typeof e)return e;if(lM(e))return ri(e,iW)+"";if(ut(e))return rJ?rJ.call(e):"";var t=e+"";return"0"==t&&1/e==-E?"-0":t}function iY(e,t,r){var n=-1,i=rr,s=e.length,a=true,l=[],u=l;if(r){a=false;i=rn}else if(s>=o){var f=t?null:oj(e);if(f)return rB(f);a=false;i=rP;u=new nm}else u=t?[]:l;s:while(++n<s){var c=e[n],h=t?t(c):c;c=r||0!==c?c:0;if(a&&h===h){var d=u.length;while(d--)if(u[d]===h)continue s;if(t)u.push(h);l.push(c)}else if(!i(u,h,r)){if(u!==l)u.push(h);l.push(c)}}return l}function iU(e,t){t=i2(t,e);e=sd(e,t);
11return null==e||delete e[sS(sH(t))]}function iG(e,t,r,n){return iD(e,t,r(n1(e,t)),n)}function iF(e,t,r,n){var i=e.length,o=n?i:-1;while((n?o--:++o<i)&&t(e[o],o,e));return r?iq(e,n?0:o,n?o+1:i):iq(e,n?o+1:0,n?i:o)}function iH(e,t){var r=e;if(r instanceof r3)r=r.value();return rs(t,function(e,t){return t.func.apply(t.thisArg,ro([e],t.args))},r)}function iK(e,t,r){var i=e.length;if(i<2)return i?iY(e[0]):[];var o=-1,s=n(i);while(++o<i){var a=e[o],l=-1;while(++l<i)if(l!=o)s[o]=nz(s[o]||a,e[l],t,r)}return iY(nG(s,1),t,r)}function iJ(t,r,n){var i=-1,o=t.length,s=r.length,a={};while(++i<o){var l=i<s?r[i]:e;n(a,t[i],l)}return a}function i0(e){return lL(e)?e:[]}function i1(e){return"function"==typeof e?e:fD}function i2(e,t){if(lM(e))return e;return se(e,t)?[e]:sx(ug(e))}var i5=iE;function i3(t,r,n){var i=t.length;n=e===n?i:n;return!r&&n>=i?t:iq(t,r,n)}var i4=tb||function(e){return tU.clearTimeout(e)};function i8(e,t){if(t)return e.slice();var r=e.length,n=tc?tc(r):new e.constructor(r);e.copy(n);return n}function i6(e){var t=new e.constructor(e.byteLength);new tf(t).set(new tf(e));return t}function i7(e,t){var r=t?i6(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function i9(e){var t=new e.constructor(e.source,eN.exec(e));t.lastIndex=e.lastIndex;return t}function oe(e){return rH?e2(rH.call(e)):{}}function ot(e,t){var r=t?i6(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function or(t,r){if(t!==r){var n=e!==t,i=null===t,o=t===t,s=ut(t);var a=e!==r,l=null===r,u=r===r,f=ut(r);if(!l&&!f&&!s&&t>r||s&&a&&u&&!l&&!f||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!f&&t<r||f&&n&&o&&!i&&!s||l&&n&&o||!a&&o||!u)return -1}return 0}function on(e,t,r){var n=-1,i=e.criteria,o=t.criteria,s=i.length,a=r.length;while(++n<s){var l=or(i[n],o[n]);if(l){if(n>=a)return l;var u=r[n];return l*("desc"==u?-1:1)}}return e.index-t.index}function oi(e,t,r,i){var o=-1,s=e.length,a=r.length,l=-1,u=t.length,f=tC(s-a,0),c=n(u+f),h=!i;while(++l<u)c[l]=t[l];while(++o<a)if(h||o<s)c[r[o]]=e[o];while(f--)c[l++]=e[o++];return c}function oo(e,t,r,i){var o=-1,s=e.length,a=-1,l=r.length,u=-1,f=t.length,c=tC(s-l,0),h=n(c+f),d=!i;while(++o<c)h[o]=e[o];var p=o;while(++u<f)h[p+u]=t[u];while(++a<l)if(d||o<s)h[p+r[a]]=e[o++];return h}function os(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function oa(t,r,n,i){var o=!n;n||(n={});var s=-1,a=r.length;while(++s<a){var l=r[s];var u=i?i(n[l],t[l],l,n,t):e;if(e===u)u=t[l];if(o)nR(n,l,u);else n$(n,l,u)}return n}function ol(e,t){return oa(e,oH(e),t)}function ou(e,t){return oa(e,oK(e),t)}function of(e,t){return function(r,n){var i=lM(r)?t6:nC,o=t?t():{};return i(r,e,oW(n,2),o)}}function oc(t){return iE(function(r,n){var i=-1,o=n.length,s=o>1?n[o-1]:e,a=o>2?n[2]:e;s=t.length>3&&"function"==typeof s?(o--,s):e;if(a&&o9(n[0],n[1],a)){s=o<3?e:s;o=1}r=e2(r);while(++i<o){var l=n[i];if(l)t(r,l,i,s)}return r})}function oh(e,t){return function(r,n){if(null==r)return r;if(!lD(r))return e(r,n);var i=r.length,o=t?i:-1,s=e2(r);while(t?o--:++o<i)if(false===n(s[o],o,s))break;return r}}function od(e){return function(t,r,n){var i=-1,o=e2(t),s=n(t),a=s.length;while(a--){var l=s[e?a:++i];if(false===r(o[l],l,o))break}return t}}function op(e,t,r){var n=t&m,i=oO(e);function o(){var t=this&&this!==tU&&this instanceof o?i:e;return t.apply(n?r:this,arguments)}return o}function og(t){return function(r){r=ug(r);var n=rR(r)?rW(r):e;var i=n?n[0]:r.charAt(0);var o=n?i3(n,1).join(""):r.slice(1);return i[t]()+o}}function om(e){return function(t){return rs(fP(fe(t).replace(t$,"")),e,"")}}function oO(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=r1(e.prototype),n=e.apply(r,t);return lF(n)?n:r}}function ov(t,r,i){var o=oO(t);function s(){var a=arguments.length,l=n(a),u=a,f=oV(s);while(u--)l[u]=arguments[u];
11var c=a<3&&l[0]!==f&&l[a-1]!==f?[]:rq(l,f);a-=c.length;if(a<i)return oA(t,r,ow,s.placeholder,e,l,c,e,e,i-a);var h=this&&this!==tU&&this instanceof s?o:t;return t8(h,this,l)}return s}function oy(t){return function(r,n,i){var o=e2(r);if(!lD(r)){var s=oW(n,3);r=uZ(r);n=function(e){return s(o[e],e,o)}}var a=t(r,n,i);return a>-1?o[s?r[a]:a]:e}}function ob(t){return oq(function(r){var n=r.length,i=n,o=r5.prototype.thru;if(t)r.reverse();while(i--){var s=r[i];if("function"!=typeof s)throw new e4(a);if(o&&!l&&"wrapper"==oN(s))var l=new r5([],true)}i=l?i:n;while(++i<n){s=r[i];var u=oN(s),f="wrapper"==u?oI(s):e;l=f&&sr(f[0])&&f[1]==(S|y|w|_)&&!f[4].length&&1==f[9]?l[oN(f[0])].apply(l,f[3]):1==s.length&&sr(s)?l[u]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&lM(t))return l.plant(t).value();var i=0,o=n?r[i].apply(this,e):t;while(++i<n)o=r[i].call(this,o);return o}})}function ow(t,r,i,o,s,a,l,u,f,c){var h=r&S,d=r&m,p=r&O,g=r&(y|b),v=r&k,w=p?e:oO(t);function x(){var e=arguments.length,m=n(e),O=e;while(O--)m[O]=arguments[O];if(g)var y=oV(x),b=r$(m,y);if(o)m=oi(m,o,s,g);if(a)m=oo(m,a,l,g);e-=b;if(g&&e<c){var S=rq(m,y);return oA(t,r,ow,x.placeholder,i,m,S,u,f,c-e)}var _=d?i:this,k=p?_[t]:t;e=m.length;if(u)m=sp(m,u);else if(v&&e>1)m.reverse();if(h&&f<e)m.length=f;if(this&&this!==tU&&this instanceof x)k=w||oO(k);return k.apply(_,m)}return x}function ox(e,t){return function(r,n){return n9(r,e,t(n),{})}}function oS(t,r){return function(n,i){var o;if(e===n&&e===i)return r;if(e!==n)o=n;if(e!==i){if(e===o)return i;if("string"==typeof n||"string"==typeof i){n=iW(n);i=iW(i)}else{n=iV(n);i=iV(i)}o=t(n,i)}return o}}function o_(e){return oq(function(t){t=ri(t,rk(oW()));return iE(function(r){var n=this;return e(t,function(e){return t8(e,n,r)})})})}function ok(t,r){r=e===r?" ":iW(r);var n=r.length;if(n<2)return n?iC(r,t):r;var i=iC(r,tS(t/rV(r)));return rR(r)?i3(rW(i),0,t).join(""):i.slice(0,t)}function oQ(e,t,r,i){var o=t&m,s=oO(e);function a(){var t=-1,l=arguments.length,u=-1,f=i.length,c=n(f+l),h=this&&this!==tU&&this instanceof a?s:e;while(++u<f)c[u]=i[u];while(l--)c[u++]=arguments[++t];return t8(h,o?r:this,c)}return a}function oP(t){return function(r,n,i){if(i&&"number"!=typeof i&&o9(r,n,i))n=i=e;r=uu(r);if(e===n){n=r;r=0}else n=uu(n);i=e===i?r<n?1:-1:uu(i);return ij(r,n,i,t)}}function oT(e){return function(t,r){if(!("string"==typeof t&&"string"==typeof r)){t=uh(t);r=uh(r)}return e(t,r)}}function oA(t,r,n,i,o,s,a,l,u,f){var c=r&y,h=c?a:e,d=c?e:a,p=c?s:e,g=c?e:s;r|=c?w:x;r&=~(c?x:w);if(!(r&v))r&=~(m|O);var b=[t,r,o,p,h,g,d,l,u,f];var S=n.apply(e,b);if(sr(t))sm(S,b);S.placeholder=i;return sy(S,t,r)}function o$(e){var t=e1[e];return function(e,r){e=uh(e);r=null==r?0:tE(uf(r),292);if(r&&tP(e)){var n=(ug(e)+"e").split("e"),i=t(n[0]+"e"+(+n[1]+r));n=(ug(i)+"e").split("e");return+(n[0]+"e"+(n[1]-r))}return t(e)}}var oj=tY&&1/rB(new tY([,-0]))[1]==E?function(e){return new tY(e)}:fN;function oC(e){return function(t){var r=oJ(t);if(r==F)return rZ(t);if(r==en)return rz(t);return r_(t,e(t))}}function oE(t,r,n,i,o,s,l,u){var f=r&O;if(!f&&"function"!=typeof t)throw new e4(a);var c=i?i.length:0;if(!c){r&=~(w|x);i=o=e}l=e===l?l:tC(uf(l),0);u=e===u?u:uf(u);c-=o?o.length:0;if(r&x){var h=i,d=o;i=o=e}var p=f?e:oI(t);var g=[t,r,n,i,o,h,d,s,l,u];if(p)su(g,p);t=g[0];r=g[1];n=g[2];i=g[3];o=g[4];u=g[9]=g[9]===e?f?0:t.length:tC(g[9]-c,0);if(!u&&r&(y|b))r&=~(y|b);if(r&&r!=m)v=r==y||r==b?ov(t,r,u):r!=w&&r!=(m|w)||o.length?ow.apply(e,g):oQ(t,r,n,i);else var v=op(t,r,n);var S=p?iL:sm;return sy(S(v,g),t,r)}function oM(t,r,n,i){if(e===t||l$(t,e7[n])&&!tt.call(i,n))return r;return t}function oR(t,r,n,i,o,s){if(lF(t)&&lF(r)){s.set(r,t);iw(t,r,e,oR,s);s["delete"](r)}return t}function oD(t){return l8(t)?e:t}function oL(t,r,n,i,o,s){var a=n&p,l=t.length,u=r.length;if(l!=u&&!(a&&u>l))return false;var f=s.get(t);if(f&&s.get(r))return f==r;var c=-1,h=true,d=n&g?new nm:e;s.set(t,r);s.set(r,t);while(++c<l){var m=t[c],O=r[c];if(i)var v=a?i(O,m,c,r,t,s):i(m,O,c,t,r,s);if(e!==v){if(v)continue;h=false;break}
11if(d){if(!rl(r,function(e,t){if(!rP(d,t)&&(m===e||o(m,e,n,i,s)))return d.push(t)})){h=false;break}}else if(!(m===O||o(m,O,n,i,s))){h=false;break}}s["delete"](t);s["delete"](r);return h}function oZ(e,t,r,n,i,o,s){switch(r){case ef:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer;t=t.buffer;case eu:if(e.byteLength!=t.byteLength||!o(new tf(e),new tf(t)))break;return true;case N:case V:case H:return l$(+e,+t);case Y:return e.name==t.name&&e.message==t.message;case er:case ei:return e==t+"";case F:var a=rZ;case en:var l=n&p;a||(a=rB);if(e.size!=t.size&&!l)break;var u=s.get(e);if(u)return u==t;n|=g;s.set(e,t);var f=oL(a(e),a(t),n,i,o,s);s["delete"](e);return f;case eo:if(rH)return rH.call(e)==rH.call(t)}return false}function oX(t,r,n,i,o,s){var a=n&p,l=oB(t),u=l.length,f=oB(r),c=f.length;if(u!=c&&!a)return false;var h=u;while(h--){var d=l[h];if(!(a?d in r:tt.call(r,d)))return false}var g=s.get(t);if(g&&s.get(r))return g==r;var m=true;s.set(t,r);s.set(r,t);var O=a;while(++h<u){d=l[h];var v=t[d],y=r[d];if(i)var b=a?i(y,v,d,r,t,s):i(v,y,d,t,r,s);if(!(e===b?v===y||o(v,y,n,i,s):b)){m=false;break}O||(O="constructor"==d)}if(m&&!O){var w=t.constructor,x=r.constructor;if(w!=x&&"constructor"in t&&"constructor"in r&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x))m=false}s["delete"](t);s["delete"](r);return m}function oq(t){return sv(sh(t,e,sq),t+"")}function oB(e){return n2(e,uZ,oH)}function oz(e){return n2(e,uX,oK)}var oI=tK?function(e){return tK.get(e)}:fN;function oN(e){var t=e.name+"",r=tJ[t],n=tt.call(tJ,t)?r.length:0;while(n--){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function oV(e){var t=tt.call(r0,"placeholder")?r0:e;return t.placeholder}function oW(){var e=r0.iteratee||fL;e=e===fL?ip:e;return arguments.length?e(arguments[0],arguments[1]):e}function oY(e,t){var r=e.__data__;return st(t)?r["string"==typeof t?"string":"hash"]:r.map}function oU(e){var t=uZ(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,ss(i)]}return t}function oG(t,r){var n=rM(t,r);return iu(n)?n:e}function oF(t){var r=tt.call(t,tv),n=t[tv];try{t[tv]=e;var i=true}catch(e){}var o=ti.call(t);if(i)if(r)t[tv]=n;else delete t[tv];return o}var oH=tk?function(e){if(null==e)return[];e=e2(e);return rt(tk(e),function(t){return tp.call(e,t)})}:fJ;var oK=tk?function(e){var t=[];while(e){ro(t,oH(e));e=th(e)}return t}:fJ;var oJ=n5;if(tz&&oJ(new tz(new ArrayBuffer(1)))!=ef||tI&&oJ(new tI)!=F||tW&&oJ(tW.resolve())!=ee||tY&&oJ(new tY)!=en||tG&&oJ(new tG)!=ea)oJ=function(t){var r=n5(t),n=r==J?t.constructor:e,i=n?s_(n):"";if(i)switch(i){case ru:return ef;case rf:return F;case ry:return ee;case rI:return en;case rU:return ea}return r};function o0(e,t,r){var n=-1,i=r.length;while(++n<i){var o=r[n],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=tE(t,e+s);break;case"takeRight":e=tC(e,t-s);break}}return{start:e,end:t}}function o1(e){var t=e.match(eX);return t?t[1].split(eq):[]}function o2(e,t,r){t=i2(t,e);var n=-1,i=t.length,o=false;while(++n<i){var s=sS(t[n]);if(!(o=null!=e&&r(e,s)))break;e=e[s]}if(o||++n!=i)return o;i=null==e?0:e.length;return!!i&&lG(i)&&o7(s,i)&&(lM(e)||lE(e))}function o5(e){var t=e.length,r=new e.constructor(t);if(t&&"string"==typeof e[0]&&tt.call(e,"index")){r.index=e.index;r.input=e.input}return r}function o3(e){return"function"!=typeof e.constructor||so(e)?{}:r1(th(e))}function o4(e,t,r){var n=e.constructor;switch(t){case eu:return i6(e);case N:case V:return new n(+e);case ef:return i7(e,r);case ec:case eh:case ed:case ep:case eg:case em:case eO:case ev:case ey:return ot(e,r);case F:return new n;case H:case ei:return new n(e);case er:return i9(e);case en:return new n;case eo:return oe(e)}}function o8(e,t){var r=t.length;if(!r)return e;var n=r-1;t[n]=(r>1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(eZ,"{\n/* [wrapped with "+t+"] */\n")}function o6(e){return lM(e)||lE(e)||!!(tm&&e&&e[tm])}function o7(e,t){var r=typeof e;t=null==t?M:t;return!!t&&("number"==r||"symbol"!=r&&eG.test(e))&&e>-1&&e%1==0&&e<t}function o9(e,t,r){if(!lF(r))return false;var n=typeof t;if("number"==n?lD(r)&&o7(t,r.length):"string"==n&&t in r)return l$(r[t],e);return false}function se(e,t){if(lM(e))return false;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||ut(e))return true;return ej.test(e)||!e$.test(e)||null!=t&&e in e2(t)}function st(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function sr(e){var t=oN(e),r=r0[t];if("function"!=typeof r||!(t in r3.prototype))return false;if(e===r)return true;var n=oI(r);return!!n&&e===n[0]}function sn(e){return!!tn&&tn in e}var si=e9?lY:f0;function so(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||e7;return e===r}function ss(e){return e===e&&!lF(e)}function sa(t,r){return function(n){if(null==n)return false;return n[t]===r&&(e!==r||t in e2(n))}}function sl(e){var t=lh(e,function(e){if(r.size===u)r.clear();return e});var r=t.cache;return t}function su(e,t){var r=e[1],n=t[1],i=r|n,o=i<(m|O|S);var s=n==S&&r==y||n==S&&r==_&&e[7].length<=t[8]||n==(S|_)&&t[7].length<=t[8]&&r==y;if(!(o||s))return e;if(n&m){e[2]=t[2];i|=r&m?0:v}var a=t[3];if(a){var l=e[3];e[3]=l?oi(l,a,t[4]):a;e[4]=l?rq(e[3],f):t[4]}a=t[5];if(a){l=e[5];e[5]=l?oo(l,a,t[6]):a;e[6]=l?rq(e[5],f):t[6]}a=t[7];if(a)e[7]=a;if(n&S)e[8]=null==e[8]?t[8]:tE(e[8],t[8]);if(null==e[9])e[9]=t[9];e[0]=t[0];e[1]=i;return e}function sf(e){var t=[];if(null!=e)for(var r in e2(e))t.push(r);return t}function sc(e){return ti.call(e)}function sh(t,r,i){r=tC(e===r?t.length-1:r,0);return function(){var e=arguments,o=-1,s=tC(e.length-r,0),a=n(s);while(++o<s)a[o]=e[r+o];o=-1;var l=n(r+1);while(++o<r)l[o]=e[o];l[r]=i(a);return t8(t,this,l)}}function sd(e,t){return t.length<2?e:n1(e,iq(t,0,-1))}function sp(t,r){var n=t.length,i=tE(r.length,n),o=os(t);while(i--){var s=r[i];t[i]=o7(s,n)?o[s]:e}return t}function sg(e,t){if("constructor"===t&&"function"==typeof e[t])return;if("__proto__"==t)return;return e[t]}var sm=sb(iL);var sO=tx||function(e,t){return tU.setTimeout(e,t)};var sv=sb(iZ);function sy(e,t,r){var n=t+"";return sv(e,o8(n,sk(o1(n),r)))}
11function sb(t){var r=0,n=0;return function(){var i=tM(),o=A-(i-n);n=i;if(o>0){if(++r>=T)return arguments[0]}else r=0;return t.apply(e,arguments)}}function sw(t,r){var n=-1,i=t.length,o=i-1;r=e===r?i:r;while(++n<r){var s=i$(n,o),a=t[s];t[s]=t[n];t[n]=a}t.length=r;return t}var sx=sl(function(e){var t=[];if(46===e.charCodeAt(0))t.push("");e.replace(eC,function(e,r,n,i){t.push(n?i.replace(ez,"$1"):r||e)});return t});function sS(e){if("string"==typeof e||ut(e))return e;var t=e+"";return"0"==t&&1/e==-E?"-0":t}function s_(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function sk(e,t){t7(q,function(r){var n="_."+r[0];if(t&r[1]&&!rr(e,n))e.push(n)});return e.sort()}function sQ(e){if(e instanceof r3)return e.clone();var t=new r5(e.__wrapped__,e.__chain__);t.__actions__=os(e.__actions__);t.__index__=e.__index__;t.__values__=e.__values__;return t}function sP(t,r,i){r=(i?o9(t,r,i):e===r)?1:tC(uf(r),0);var o=null==t?0:t.length;if(!o||r<1)return[];var s=0,a=0,l=n(tS(o/r));while(s<o)l[a++]=iq(t,s,s+=r);return l}function sT(e){var t=-1,r=null==e?0:e.length,n=0,i=[];while(++t<r){var o=e[t];if(o)i[n++]=o}return i}function sA(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return ro(lM(r)?os(r):[r],nG(t,1))}var s$=iE(function(e,t){return lL(e)?nz(e,nG(t,1,lL,true)):[]});var sj=iE(function(t,r){var n=sH(r);if(lL(n))n=e;return lL(t)?nz(t,nG(r,1,lL,true),oW(n,2)):[]});var sC=iE(function(t,r){var n=sH(r);if(lL(n))n=e;return lL(t)?nz(t,nG(r,1,lL,true),e,n):[]});function sE(t,r,n){var i=null==t?0:t.length;if(!i)return[];r=n||e===r?1:uf(r);return iq(t,r<0?0:r,i)}function sM(t,r,n){var i=null==t?0:t.length;if(!i)return[];r=n||e===r?1:uf(r);r=i-r;return iq(t,0,r<0?0:r)}function sR(e,t){return e&&e.length?iF(e,oW(t,3),true,true):[]}function sD(e,t){return e&&e.length?iF(e,oW(t,3),true):[]}function sL(e,t,r,n){var i=null==e?0:e.length;if(!i)return[];if(r&&"number"!=typeof r&&o9(e,t,r)){r=0;n=i}return nY(e,t,r,n)}function sZ(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:uf(r);if(i<0)i=tC(n+i,0);return rd(e,oW(t,3),i)}function sX(t,r,n){var i=null==t?0:t.length;if(!i)return -1;var o=i-1;if(e!==n){o=uf(n);o=n<0?tC(i+o,0):tE(o,i-1)}return rd(t,oW(r,3),o,true)}function sq(e){var t=null==e?0:e.length;return t?nG(e,1):[]}function sB(e){var t=null==e?0:e.length;return t?nG(e,E):[]}function sz(t,r){var n=null==t?0:t.length;if(!n)return[];r=e===r?1:uf(r);return nG(t,r)}function sI(e){var t=-1,r=null==e?0:e.length,n={};while(++t<r){var i=e[t];n[i[0]]=i[1]}return n}function sN(t){return t&&t.length?t[0]:e}function sV(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:uf(r);if(i<0)i=tC(n+i,0);return rp(e,t,i)}function sW(e){var t=null==e?0:e.length;return t?iq(e,0,-1):[]}var sY=iE(function(e){var t=ri(e,i0);return t.length&&t[0]===e[0]?n7(t):[]});var sU=iE(function(t){var r=sH(t),n=ri(t,i0);if(r===sH(n))r=e;else n.pop();return n.length&&n[0]===t[0]?n7(n,oW(r,2)):[]});var sG=iE(function(t){var r=sH(t),n=ri(t,i0);r="function"==typeof r?r:e;if(r)n.pop();return n.length&&n[0]===t[0]?n7(n,e,r):[]});function sF(e,t){return null==e?"":tT.call(e,t)}function sH(t){var r=null==t?0:t.length;return r?t[r-1]:e}function sK(t,r,n){var i=null==t?0:t.length;if(!i)return -1;var o=i;if(e!==n){o=uf(n);o=o<0?tC(i+o,0):tE(o,i-1)}return r===r?rN(t,r,o):rd(t,rm,o,true)}function sJ(t,r){return t&&t.length?iS(t,uf(r)):e}var s0=iE(s1);function s1(e,t){return e&&e.length&&t&&t.length?iT(e,t):e}function s2(e,t,r){return e&&e.length&&t&&t.length?iT(e,t,oW(r,2)):e}function s5(t,r,n){return t&&t.length&&r&&r.length?iT(t,r,e,n):t}var s3=oq(function(e,t){var r=null==e?0:e.length,n=nD(e,t);iA(e,ri(t,function(e){return o7(e,r)?+e:e}).sort(or));return n});function s4(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,i=[],o=e.length;t=oW(t,3);while(++n<o){var s=e[n];if(t(s,n,e)){r.push(s);i.push(n)}}iA(e,i);return r}function s8(e){return null==e?e:tB.call(e)}function s6(t,r,n){var i=null==t?0:t.length;if(!i)return[];if(n&&"number"!=typeof n&&o9(t,r,n)){r=0;n=i}else{r=null==r?0:uf(r);n=e===n?i:uf(n)}return iq(t,r,n)}function s7(e,t){return iz(e,t)}function s9(e,t,r){return iI(e,t,oW(r,2))}function ae(e,t){var r=null==e?0:e.length;if(r){var n=iz(e,t);if(n<r&&l$(e[n],t))return n}return -1}function at(e,t){return iz(e,t,true)}function ar(e,t,r){return iI(e,t,oW(r,2),true)}function an(e,t){var r=null==e?0:e.length;if(r){var n=iz(e,t,true)-1;if(l$(e[n],t))return n}return -1}
11function ai(e){return e&&e.length?iN(e):[]}function ao(e,t){return e&&e.length?iN(e,oW(t,2)):[]}function as(e){var t=null==e?0:e.length;return t?iq(e,1,t):[]}function aa(t,r,n){if(!(t&&t.length))return[];r=n||e===r?1:uf(r);return iq(t,0,r<0?0:r)}function al(t,r,n){var i=null==t?0:t.length;if(!i)return[];r=n||e===r?1:uf(r);r=i-r;return iq(t,r<0?0:r,i)}function au(e,t){return e&&e.length?iF(e,oW(t,3),false,true):[]}function af(e,t){return e&&e.length?iF(e,oW(t,3)):[]}var ac=iE(function(e){return iY(nG(e,1,lL,true))});var ah=iE(function(t){var r=sH(t);if(lL(r))r=e;return iY(nG(t,1,lL,true),oW(r,2))});var ad=iE(function(t){var r=sH(t);r="function"==typeof r?r:e;return iY(nG(t,1,lL,true),e,r)});function ap(e){return e&&e.length?iY(e):[]}function ag(e,t){return e&&e.length?iY(e,oW(t,2)):[]}function am(t,r){r="function"==typeof r?r:e;return t&&t.length?iY(t,e,r):[]}function aO(e){if(!(e&&e.length))return[];var t=0;e=rt(e,function(e){if(lL(e)){t=tC(e.length,t);return true}});return rS(t,function(t){return ri(e,rv(t))})}function av(t,r){if(!(t&&t.length))return[];var n=aO(t);if(null==r)return n;return ri(n,function(t){return t8(r,e,t)})}var ay=iE(function(e,t){return lL(e)?nz(e,t):[]});var ab=iE(function(e){return iK(rt(e,lL))});var aw=iE(function(t){var r=sH(t);if(lL(r))r=e;return iK(rt(t,lL),oW(r,2))});var ax=iE(function(t){var r=sH(t);r="function"==typeof r?r:e;return iK(rt(t,lL),e,r)});var aS=iE(aO);function a_(e,t){return iJ(e||[],t||[],n$)}function ak(e,t){return iJ(e||[],t||[],iD)}var aQ=iE(function(t){var r=t.length,n=r>1?t[r-1]:e;n="function"==typeof n?(t.pop(),n):e;return av(t,n)});function aP(e){var t=r0(e);t.__chain__=true;return t}function aT(e,t){t(e);return e}function aA(e,t){return t(e)}var a$=oq(function(t){var r=t.length,n=r?t[0]:0,i=this.__wrapped__,o=function(e){return nD(e,t)};if(r>1||this.__actions__.length||!(i instanceof r3)||!o7(n))return this.thru(o);i=i.slice(n,+n+(r?1:0));i.__actions__.push({func:aA,args:[o],thisArg:e});return new r5(i,this.__chain__).thru(function(t){if(r&&!t.length)t.push(e);return t})});function aj(){return aP(this)}function aC(){return new r5(this.value(),this.__chain__)}function aE(){if(this.__values__===e)this.__values__=ul(this.value());var t=this.__index__>=this.__values__.length,r=t?e:this.__values__[this.__index__++];return{done:t,value:r}}function aM(){return this}function aR(t){var r,n=this;while(n instanceof r2){var i=sQ(n);i.__index__=0;i.__values__=e;if(r)o.__wrapped__=i;else r=i;var o=i;n=n.__wrapped__}o.__wrapped__=t;return r}function aD(){var t=this.__wrapped__;if(t instanceof r3){var r=t;if(this.__actions__.length)r=new r3(this);r=r.reverse();r.__actions__.push({func:aA,args:[s8],thisArg:e});return new r5(r,this.__chain__)}return this.thru(s8)}function aL(){return iH(this.__wrapped__,this.__actions__)}var aZ=of(function(e,t,r){if(tt.call(e,r))++e[r];else nR(e,r,1)});function aX(t,r,n){var i=lM(t)?re:nV;if(n&&o9(t,r,n))r=e;return i(t,oW(r,3))}function aq(e,t){var r=lM(e)?rt:nU;return r(e,oW(t,3))}var aB=oy(sZ);var az=oy(sX);function aI(e,t){return nG(aK(e,t),1)}function aN(e,t){return nG(aK(e,t),E)}function aV(t,r,n){n=e===n?1:uf(n);return nG(aK(t,r),n)}function aW(e,t){var r=lM(e)?t7:nI;return r(e,oW(t,3))}function aY(e,t){var r=lM(e)?t9:nN;return r(e,oW(t,3))}var aU=of(function(e,t,r){if(tt.call(e,r))e[r].push(t);else nR(e,r,[t])});function aG(e,t,r,n){e=lD(e)?e:u5(e);r=r&&!n?uf(r):0;var i=e.length;if(r<0)r=tC(i+r,0);return ue(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&rp(e,t,r)>-1}var aF=iE(function(e,t,r){var i=-1,o="function"==typeof t,s=lD(e)?n(e.length):[];nI(e,function(e){s[++i]=o?t8(t,e,r):ie(e,t,r)});return s});var aH=of(function(e,t,r){nR(e,r,t)});function aK(e,t){var r=lM(e)?ri:iv;return r(e,oW(t,3))}function aJ(t,r,n,i){if(null==t)return[];if(!lM(r))r=null==r?[]:[r];n=i?e:n;if(!lM(n))n=null==n?[]:[n];return i_(t,r,n)}var a0=of(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function a1(e,t,r){var n=lM(e)?rs:rb,i=arguments.length<3;return n(e,oW(t,4),r,i,nI)}function a2(e,t,r){var n=lM(e)?ra:rb,i=arguments.length<3;return n(e,oW(t,4),r,i,nN)}function a5(e,t){var r=lM(e)?rt:nU;return r(e,ld(oW(t,3)))}function a3(e){var t=lM(e)?nQ:iM;return t(e)}function a4(t,r,n){r=(n?o9(t,r,n):e===r)?1:uf(r);var i=lM(t)?nP:iR;return i(t,r)}function a8(e){var t=lM(e)?nT:iX;return t(e)}function a6(e){if(null==e)return 0;if(lD(e))return ue(e)?rV(e):e.length;var t=oJ(e);if(t==F||t==en)return e.size;return ig(e).length}function a7(t,r,n){var i=lM(t)?rl:iB;if(n&&o9(t,r,n))r=e;return i(t,oW(r,3))}var a9=iE(function(e,t){if(null==e)return[];var r=t.length;if(r>1&&o9(e,t[0],t[1]))t=[];else if(r>2&&o9(t[0],t[1],t[2]))t=[t[0]];return i_(e,nG(t,1),[])});var le=tw||function(){return tU.Date.now()};function lt(e,t){if("function"!=typeof t)throw new e4(a);e=uf(e);return function(){if(--e<1)return t.apply(this,arguments)}}function lr(t,r,n){r=n?e:r;r=t&&null==r?t.length:r;return oE(t,S,e,e,e,e,r)}function ln(t,r){var n;if("function"!=typeof r)throw new e4(a);t=uf(t);return function(){if(--t>0)n=r.apply(this,arguments);if(t<=1)r=e;return n}}var li=iE(function(e,t,r){var n=m;if(r.length){var i=rq(r,oV(li));n|=w}return oE(e,n,t,r,i)});var lo=iE(function(e,t,r){var n=m|O;if(r.length){var i=rq(r,oV(lo));n|=w}return oE(t,n,e,r,i)});function ls(t,r,n){r=n?e:r;var i=oE(t,y,e,e,e,e,e,r);i.placeholder=ls.placeholder;return i}function la(t,r,n){r=n?e:r;var i=oE(t,b,e,e,e,e,e,r);i.placeholder=la.placeholder;return i}function ll(t,r,n){var i,o,s,l,u,f,c=0,h=false,d=false,p=true;if("function"!=typeof t)throw new e4(a);r=uh(r)||0;if(lF(n)){h=!!n.leading;d="maxWait"in n;s=d?tC(uh(n.maxWait)||0,r):s;p="trailing"in n?!!n.trailing:p}function g(r){var n=i,s=o;i=o=e;c=r;l=t.apply(s,n);return l}function m(e){c=e;u=sO(y,r);return h?g(e):l}function O(e){var t=e-f,n=e-c,i=r-t;return d?tE(i,s-n):i}function v(t){var n=t-f,i=t-c;return e===f||n>=r||n<0||d&&i>=s}function y(){var e=le();if(v(e))return b(e);u=sO(y,O(e))}function b(t){u=e;if(p&&i)return g(t);i=o=e;return l}function w(){if(e!==u)i4(u);c=0;i=f=o=u=e}function x(){return e===u?l:b(le())}function S(){var t=le(),n=v(t);i=arguments;o=this;f=t;if(n){if(e===u)return m(f);if(d){i4(u);u=sO(y,r);return g(f)}}if(e===u)u=sO(y,r);return l}S.cancel=w;S.flush=x;return S}var lu=iE(function(e,t){return nB(e,1,t)});var lf=iE(function(e,t,r){return nB(e,uh(t)||0,r)});function lc(e){return oE(e,k)}function lh(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new e4(a);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);r.cache=o.set(i,s)||o;return s};r.cache=new(lh.Cache||nf);return r}lh.Cache=nf;function ld(e){if("function"!=typeof e)throw new e4(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function lp(e){return ln(2,e)}var lg=i5(function(e,t){t=1==t.length&&lM(t[0])?ri(t[0],rk(oW())):ri(nG(t,1),rk(oW()));var r=t.length;return iE(function(n){var i=-1,o=tE(n.length,r);while(++i<o)n[i]=t[i].call(this,n[i]);return t8(e,this,n)})});var lm=iE(function(t,r){var n=rq(r,oV(lm));return oE(t,w,e,r,n)});var lO=iE(function(t,r){var n=rq(r,oV(lO));return oE(t,x,e,r,n)});var lv=oq(function(t,r){return oE(t,_,e,e,e,r)});function ly(t,r){if("function"!=typeof t)throw new e4(a);r=e===r?r:uf(r);return iE(t,r)}function lb(e,t){if("function"!=typeof e)throw new e4(a);
11t=null==t?0:tC(uf(t),0);return iE(function(r){var n=r[t],i=i3(r,0,t);if(n)ro(i,n);return t8(e,this,i)})}function lw(e,t,r){var n=true,i=true;if("function"!=typeof e)throw new e4(a);if(lF(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return ll(e,t,{leading:n,maxWait:t,trailing:i})}function lx(e){return lr(e,1)}function lS(e,t){return lm(i1(t),e)}function l_(){if(!arguments.length)return[];var e=arguments[0];return lM(e)?e:[e]}function lk(e){return nZ(e,d)}function lQ(t,r){r="function"==typeof r?r:e;return nZ(t,d,r)}function lP(e){return nZ(e,c|d)}function lT(t,r){r="function"==typeof r?r:e;return nZ(t,c|d,r)}function lA(e,t){return null==t||nq(e,t,uZ(t))}function l$(e,t){return e===t||e!==e&&t!==t}var lj=oT(n3);var lC=oT(function(e,t){return e>=t});var lE=it(function(){return arguments}())?it:function(e){return lH(e)&&tt.call(e,"callee")&&!tp.call(e,"callee")};var lM=n.isArray;var lR=t0?rk(t0):ir;function lD(e){return null!=e&&lG(e.length)&&!lY(e)}function lL(e){return lH(e)&&lD(e)}function lZ(e){return true===e||false===e||lH(e)&&n5(e)==N}var lX=tQ||f0;var lq=t1?rk(t1):ii;function lB(e){return lH(e)&&1===e.nodeType&&!l8(e)}function lz(e){if(null==e)return true;if(lD(e)&&(lM(e)||"string"==typeof e||"function"==typeof e.splice||lX(e)||ur(e)||lE(e)))return!e.length;var t=oJ(e);if(t==F||t==en)return!e.size;if(so(e))return!ig(e).length;for(var r in e)if(tt.call(e,r))return false;return true}function lI(e,t){return io(e,t)}function lN(t,r,n){n="function"==typeof n?n:e;var i=n?n(t,r):e;return e===i?io(t,r,e,n):!!i}function lV(e){if(!lH(e))return false;var t=n5(e);return t==Y||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!l8(e)}function lW(e){return"number"==typeof e&&tP(e)}function lY(e){if(!lF(e))return false;var t=n5(e);return t==U||t==G||t==I||t==et}function lU(e){return"number"==typeof e&&e==uf(e)}function lG(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function lF(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function lH(e){return null!=e&&"object"==typeof e}var lK=t2?rk(t2):ia;function lJ(e,t){return e===t||il(e,t,oU(t))}function l0(t,r,n){n="function"==typeof n?n:e;return il(t,r,oU(r),n)}function l1(e){return l4(e)&&e!=+e}function l2(e){if(si(e))throw new eJ(s);return iu(e)}function l5(e){return null===e}function l3(e){return null==e}function l4(e){return"number"==typeof e||lH(e)&&n5(e)==H}function l8(e){if(!lH(e)||n5(e)!=J)return false;var t=th(e);if(null===t)return true;var r=tt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&te.call(r)==to}var l6=t5?rk(t5):ic;function l7(e){return lU(e)&&e>=-M&&e<=M}var l9=t3?rk(t3):ih;function ue(e){return"string"==typeof e||!lM(e)&&lH(e)&&n5(e)==ei}function ut(e){return"symbol"==typeof e||lH(e)&&n5(e)==eo}var ur=t4?rk(t4):id;function un(t){return e===t}function ui(e){return lH(e)&&oJ(e)==ea}function uo(e){return lH(e)&&n5(e)==el}var us=oT(iO);var ua=oT(function(e,t){return e<=t});function ul(e){if(!e)return[];if(lD(e))return ue(e)?rW(e):os(e);if(tO&&e[tO])return rL(e[tO]());var t=oJ(e),r=t==F?rZ:t==en?rB:u5;return r(e)}function uu(e){if(!e)return 0===e?e:0;e=uh(e);if(e===E||e===-E){var t=e<0?-1:1;return t*R}return e===e?e:0}function uf(e){var t=uu(e),r=t%1;return t===t?r?t-r:t:0}function uc(e){return e?nL(uf(e),0,L):0}function uh(e){if("number"==typeof e)return e;if(ut(e))return D;if(lF(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=lF(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(eR,"");var r=eW.test(e);return r||eU.test(e)?tV(e.slice(2),r?2:8):eV.test(e)?D:+e}function ud(e){return oa(e,uX(e))}function up(e){return e?nL(uf(e),-M,M):0===e?e:0}function ug(e){return null==e?"":iW(e)}var um=oc(function(e,t){if(so(t)||lD(t))return void oa(t,uZ(t),e);for(var r in t)if(tt.call(t,r))n$(e,r,t[r])});var uO=oc(function(e,t){oa(t,uX(t),e)});var uv=oc(function(e,t,r,n){oa(t,uX(t),e,n)});var uy=oc(function(e,t,r,n){oa(t,uZ(t),e,n)});var ub=oq(nD);function uw(e,t){var r=r1(e);return null==t?r:nE(r,t)}var ux=iE(function(t,r){t=e2(t);var n=-1;var i=r.length;var o=i>2?r[2]:e;if(o&&o9(r[0],r[1],o))i=1;
11while(++n<i){var s=r[n];var a=uX(s);var l=-1;var u=a.length;while(++l<u){var f=a[l];var c=t[f];if(e===c||l$(c,e7[f])&&!tt.call(t,f))t[f]=s[f]}}return t});var uS=iE(function(t){t.push(e,oR);return t8(uI,e,t)});function u_(e,t){return rh(e,oW(t,3),nK)}function uk(e,t){return rh(e,oW(t,3),nJ)}function uQ(e,t){return null==e?e:nF(e,oW(t,3),uX)}function uP(e,t){return null==e?e:nH(e,oW(t,3),uX)}function uT(e,t){return e&&nK(e,oW(t,3))}function uA(e,t){return e&&nJ(e,oW(t,3))}function u$(e){return null==e?[]:n0(e,uZ(e))}function uj(e){return null==e?[]:n0(e,uX(e))}function uC(t,r,n){var i=null==t?e:n1(t,r);return e===i?n:i}function uE(e,t){return null!=e&&o2(e,t,n4)}function uM(e,t){return null!=e&&o2(e,t,n8)}var uR=ox(function(e,t,r){if(null!=t&&"function"!=typeof t.toString)t=ti.call(t);e[t]=r},fC(fD));var uD=ox(function(e,t,r){if(null!=t&&"function"!=typeof t.toString)t=ti.call(t);if(tt.call(e,t))e[t].push(r);else e[t]=[r]},oW);var uL=iE(ie);function uZ(e){return lD(e)?nk(e):ig(e)}function uX(e){return lD(e)?nk(e,true):im(e)}function uq(e,t){var r={};t=oW(t,3);nK(e,function(e,n,i){nR(r,t(e,n,i),e)});return r}function uB(e,t){var r={};t=oW(t,3);nK(e,function(e,n,i){nR(r,n,t(e,n,i))});return r}var uz=oc(function(e,t,r){iw(e,t,r)});var uI=oc(function(e,t,r,n){iw(e,t,r,n)});var uN=oq(function(e,t){var r={};if(null==e)return r;var n=false;t=ri(t,function(t){t=i2(t,e);n||(n=t.length>1);return t});oa(e,oz(e),r);if(n)r=nZ(r,c|h|d,oD);var i=t.length;while(i--)iU(r,t[i]);return r});function uV(e,t){return uY(e,ld(oW(t)))}var uW=oq(function(e,t){return null==e?{}:ik(e,t)});function uY(e,t){if(null==e)return{};var r=ri(oz(e),function(e){return[e]});t=oW(t);return iQ(e,r,function(e,r){return t(e,r[0])})}function uU(t,r,n){r=i2(r,t);var i=-1,o=r.length;if(!o){o=1;t=e}while(++i<o){var s=null==t?e:t[sS(r[i])];if(e===s){i=o;s=n}t=lY(s)?s.call(t):s}return t}function uG(e,t,r){return null==e?e:iD(e,t,r)}function uF(t,r,n,i){i="function"==typeof i?i:e;return null==t?t:iD(t,r,n,i)}var uH=oC(uZ);var uK=oC(uX);function uJ(e,t,r){var n=lM(e),i=n||lX(e)||ur(e);t=oW(t,4);if(null==r){var o=e&&e.constructor;r=i?n?new o:[]:lF(e)?lY(o)?r1(th(e)):{}:{}}(i?t7:nK)(e,function(e,n,i){return t(r,e,n,i)});return r}function u0(e,t){return null==e?true:iU(e,t)}function u1(e,t,r){return null==e?e:iG(e,t,i1(r))}function u2(t,r,n,i){i="function"==typeof i?i:e;return null==t?t:iG(t,r,i1(n),i)}function u5(e){return null==e?[]:rQ(e,uZ(e))}function u3(e){return null==e?[]:rQ(e,uX(e))}function u4(t,r,n){if(e===n){n=r;r=e}if(e!==n){n=uh(n);n=n===n?n:0}if(e!==r){r=uh(r);r=r===r?r:0}return nL(uh(t),r,n)}function u8(t,r,n){r=uu(r);if(e===n){n=r;r=0}else n=uu(n);t=uh(t);return n6(t,r,n)}function u6(t,r,n){if(n&&"boolean"!=typeof n&&o9(t,r,n))r=n=e;if(e===n){if("boolean"==typeof r){n=r;r=e}else if("boolean"==typeof t){n=t;t=e}}if(e===t&&e===r){t=0;r=1}else{t=uu(t);if(e===r){r=t;t=0}else r=uu(r)}if(t>r){var i=t;t=r;r=i}if(n||t%1||r%1){var o=tq();return tE(t+o*(r-t+tN("1e-"+((o+"").length-1))),r)}return i$(t,r)}var u7=om(function(e,t,r){t=t.toLowerCase();return e+(r?u9(t):t)});function u9(e){return fQ(ug(e).toLowerCase())}function fe(e){e=ug(e);return e&&e.replace(eF,rj).replace(tj,"")}function ft(t,r,n){t=ug(t);r=iW(r);var i=t.length;n=e===n?i:nL(uf(n),0,i);var o=n;n-=r.length;return n>=0&&t.slice(n,o)==r}function fr(e){e=ug(e);return e&&eQ.test(e)?e.replace(e_,rC):e}function fn(e){e=ug(e);return e&&eM.test(e)?e.replace(eE,"\\$&"):e}var fi=om(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});var fo=om(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()});var fs=og("toLowerCase");function fa(e,t,r){e=ug(e);t=uf(t);var n=t?rV(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return ok(t_(i),r)+e+ok(tS(i),r)}function fl(e,t,r){e=ug(e);t=uf(t);var n=t?rV(e):0;return t&&n<t?e+ok(t-n,r):e}function fu(e,t,r){e=ug(e);t=uf(t);var n=t?rV(e):0;return t&&n<t?ok(t-n,r)+e:e}function ff(e,t,r){if(r||null==t)t=0;else if(t)t*=1;return tR(ug(e).replace(eD,""),t||0)}function fc(t,r,n){r=(n?o9(t,r,n):e===r)?1:uf(r);return iC(ug(t),r)}function fh(){var e=arguments,t=ug(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var fd=om(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function fp(t,r,n){if(n&&"number"!=typeof n&&o9(t,r,n))r=n=e;n=e===n?L:n>>>0;if(!n)return[];t=ug(t);if(t&&("string"==typeof r||null!=r&&!l6(r))){r=iW(r);if(!r&&rR(t))return i3(rW(t),0,n)}return t.split(r,n)}var fg=om(function(e,t,r){return e+(r?" ":"")+fQ(t)});function fm(e,t,r){e=ug(e);r=null==r?0:nL(uf(r),0,e.length);t=iW(t);return e.slice(r,r+t.length)==t}function fO(t,r,n){var i=r0.templateSettings;if(n&&o9(t,r,n))r=e;t=ug(t);r=uv({},r,i,oM);var o=uv({},r.imports,i.imports,oM),s=uZ(o),a=rQ(o,s);var l,u,f=0,c=r.interpolate||eH,h="__p += '";var d=e5((r.escape||eH).source+"|"+c.source+"|"+(c===eA?eI:eH).source+"|"+(r.evaluate||eH).source+"|$","g");var p="//# sourceURL="+(tt.call(r,"sourceURL")?(r.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++tL+"]")+"\n";t.replace(d,function(e,r,n,i,o,s){n||(n=i);h+=t.slice(f,s).replace(eK,rE);if(r){l=true;h+="' +\n__e("+r+") +\n'"}if(o){u=true;h+="';\n"+o+";\n__p += '"}if(n)h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'";f=s+e.length;return e});h+="';\n";var g=tt.call(r,"variable")&&r.variable;if(!g)h="with (obj) {\n"+h+"\n}\n";h=(u?h.replace(eb,""):h).replace(ew,"$1").replace(ex,"$1;");h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
11\n")+h+"return __p\n}";var m=fT(function(){return e0(s,p+"return "+h).apply(e,a)});m.source=h;if(lV(m))throw m;return m}function fv(e){return ug(e).toLowerCase()}function fy(e){return ug(e).toUpperCase()}function fb(t,r,n){t=ug(t);if(t&&(n||e===r))return t.replace(eR,"");if(!t||!(r=iW(r)))return t;var i=rW(t),o=rW(r),s=rT(i,o),a=rA(i,o)+1;return i3(i,s,a).join("")}function fw(t,r,n){t=ug(t);if(t&&(n||e===r))return t.replace(eL,"");if(!t||!(r=iW(r)))return t;var i=rW(t),o=rA(i,rW(r))+1;return i3(i,0,o).join("")}function fx(t,r,n){t=ug(t);if(t&&(n||e===r))return t.replace(eD,"");if(!t||!(r=iW(r)))return t;var i=rW(t),o=rT(i,rW(r));return i3(i,o).join("")}function fS(t,r){var n=Q,i=P;if(lF(r)){var o="separator"in r?r.separator:o;n="length"in r?uf(r.length):n;i="omission"in r?iW(r.omission):i}t=ug(t);var s=t.length;if(rR(t)){var a=rW(t);s=a.length}if(n>=s)return t;var l=n-rV(i);if(l<1)return i;var u=a?i3(a,0,l).join(""):t.slice(0,l);if(e===o)return u+i;if(a)l+=u.length-l;if(l6(o)){if(t.slice(l).search(o)){var f,c=u;if(!o.global)o=e5(o.source,ug(eN.exec(o))+"g");o.lastIndex=0;while(f=o.exec(c))var h=f.index;u=u.slice(0,e===h?l:h)}}else if(t.indexOf(iW(o),l)!=l){var d=u.lastIndexOf(o);if(d>-1)u=u.slice(0,d)}return u+i}function f_(e){e=ug(e);return e&&ek.test(e)?e.replace(eS,rY):e}var fk=om(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()});var fQ=og("toUpperCase");function fP(t,r,n){t=ug(t);r=n?e:r;if(e===r)return rD(t)?rF(t):rc(t);return t.match(r)||[]}var fT=iE(function(t,r){try{return t8(t,e,r)}catch(e){return lV(e)?e:new eJ(e)}});var fA=oq(function(e,t){t7(t,function(t){t=sS(t);nR(e,t,li(e[t],e))});return e});function f$(e){var t=null==e?0:e.length,r=oW();e=t?ri(e,function(e){if("function"!=typeof e[1])throw new e4(a);return[r(e[0]),e[1]]}):[];return iE(function(r){var n=-1;while(++n<t){var i=e[n];if(t8(i[0],this,r))return t8(i[1],this,r)}})}function fj(e){return nX(nZ(e,c))}function fC(e){return function(){return e}}function fE(e,t){return null==e||e!==e?t:e}var fM=ob();var fR=ob(true);function fD(e){return e}function fL(e){return ip("function"==typeof e?e:nZ(e,c))}function fZ(e){return iy(nZ(e,c))}function fX(e,t){return ib(e,nZ(t,c))}var fq=iE(function(e,t){return function(r){return ie(r,e,t)}});var fB=iE(function(e,t){return function(r){return ie(e,r,t)}});function fz(e,t,r){var n=uZ(t),i=n0(t,n);if(null==r&&!(lF(t)&&(i.length||!n.length))){r=t;t=e;e=this;i=n0(t,uZ(t))}var o=!(lF(r)&&"chain"in r)||!!r.chain,s=lY(e);t7(i,function(r){var n=t[r];e[r]=n;if(s)e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=os(this.__actions__);i.push({func:n,args:arguments,thisArg:e});r.__chain__=t;return r}return n.apply(e,ro([this.value()],arguments))}});return e}function fI(){if(tU._===this)tU._=ts;return this}function fN(){}function fV(e){e=uf(e);return iE(function(t){return iS(t,e)})}var fW=o_(ri);var fY=o_(re);var fU=o_(rl);function fG(e){return se(e)?rv(sS(e)):iP(e)}function fF(t){return function(r){return null==t?e:n1(t,r)}}var fH=oP();var fK=oP(true);function fJ(){return[]}function f0(){return false}function f1(){return{}}function f2(){return""}function f5(){return true}function f3(e,t){e=uf(e);if(e<1||e>M)return[];var r=L,n=tE(e,L);t=oW(t);e-=L;var i=rS(n,t);while(++r<e)t(r);return i}function f4(e){if(lM(e))return ri(e,sS);return ut(e)?[e]:os(sx(ug(e)))}function f8(e){var t=++tr;return ug(e)+t}var f6=oS(function(e,t){return e+t},0);var f7=o$("ceil");var f9=oS(function(e,t){return e/t},1);var ce=o$("floor");function ct(t){return t&&t.length?nW(t,fD,n3):e}function cr(t,r){return t&&t.length?nW(t,oW(r,2),n3):e}function cn(e){return rO(e,fD)}function ci(e,t){return rO(e,oW(t,2))}function co(t){return t&&t.length?nW(t,fD,iO):e}function cs(t,r){return t&&t.length?nW(t,oW(r,2),iO):e}var ca=oS(function(e,t){return e*t},1);var cl=o$("round");var cu=oS(function(e,t){return e-t},0);function cf(e){return e&&e.length?rx(e,fD):0}function cc(e,t){return e&&e.length?rx(e,oW(t,2)):0}r0.after=lt;r0.ary=lr;r0.assign=um;r0.assignIn=uO;r0.assignInWith=uv;r0.assignWith=uy;r0.at=ub;r0.before=ln;r0.bind=li;r0.bindAll=fA;r0.bindKey=lo;r0.castArray=l_;r0.chain=aP;r0.chunk=sP;r0.compact=sT;r0.concat=sA;r0.cond=f$;r0.conforms=fj;r0.constant=fC;r0.countBy=aZ;r0.create=uw;r0.curry=ls;r0.curryRight=la;r0.debounce=ll;r0.defaults=ux;r0.defaultsDeep=uS;r0.defer=lu;r0.delay=lf;r0.difference=s$;r0.differenceBy=sj;r0.differenceWith=sC;r0.drop=sE;r0.dropRight=sM;r0.dropRightWhile=sR;r0.dropWhile=sD;r0.fill=sL;r0.filter=aq;r0.flatMap=aI;r0.flatMapDeep=aN;r0.flatMapDepth=aV;r0.flatten=sq;r0.flattenDeep=sB;r0.flattenDepth=sz;r0.flip=lc;r0.flow=fM;r0.flowRight=fR;r0.fromPairs=sI;r0.functions=u$;r0.functionsIn=uj;r0.groupBy=aU;r0.initial=sW;r0.intersection=sY;r0.intersectionBy=sU;r0.intersectionWith=sG;r0.invert=uR;r0.invertBy=uD;r0.invokeMap=aF;r0.iteratee=fL;r0.keyBy=aH;r0.keys=uZ;r0.keysIn=uX;r0.map=aK;r0.mapKeys=uq;r0.mapValues=uB;r0.matches=fZ;r0.matchesProperty=fX;r0.memoize=lh;r0.merge=uz;r0.mergeWith=uI;r0.method=fq;r0.methodOf=fB;r0.mixin=fz;r0.negate=ld;r0.nthArg=fV;r0.omit=uN;r0.omitBy=uV;r0.once=lp;r0.orderBy=aJ;r0.over=fW;r0.overArgs=lg;r0.overEvery=fY;r0.overSome=fU;r0.partial=lm;r0.partialRight=lO;r0.partition=a0;r0.pick=uW;r0.pickBy=uY;r0.property=fG;r0.propertyOf=fF;r0.pull=s0;r0.pullAll=s1;r0.pullAllBy=s2;r0.pullAllWith=s5;r0.pullAt=s3;r0.range=fH;r0.rangeRight=fK;r0.rearg=lv;r0.reject=a5;r0.remove=s4;r0.rest=ly;r0.reverse=s8;r0.sampleSize=a4;r0.set=uG;r0.setWith=uF;r0.shuffle=a8;r0.slice=s6;r0.sortBy=a9;r0.sortedUniq=ai;r0.sortedUniqBy=ao;r0.split=fp;r0.spread=lb;r0.tail=as;r0.take=aa;r0.takeRight=al;r0.takeRightWhile=au;r0.takeWhile=af;r0.tap=aT;r0.throttle=lw;r0.thru=aA;r0.toArray=ul;r0.toPairs=uH;r0.toPairsIn=uK;r0.toPath=f4;r0.toPlainObject=ud;r0.transform=uJ;r0.unary=lx;r0.union=ac;r0.unionBy=ah;r0.unionWith=ad;r0.uniq=ap;r0.uniqBy=ag;r0.uniqWith=am;r0.unset=u0;r0.unzip=aO;r0.unzipWith=av;r0.update=u1;r0.updateWith=u2;r0.values=u5;r0.valuesIn=u3;r0.without=ay;r0.words=fP;r0.wrap=lS;r0.xor=ab;r0.xorBy=aw;r0.xorWith=ax;r0.zip=aS;r0.zipObject=a_;r0.zipObjectDeep=ak;r0.zipWith=aQ;r0.entries=uH;r0.entriesIn=uK;r0.extend=uO;r0.extendWith=uv;fz(r0,r0);r0.add=f6;r0.attempt=fT;
11r0.camelCase=u7;r0.capitalize=u9;r0.ceil=f7;r0.clamp=u4;r0.clone=lk;r0.cloneDeep=lP;r0.cloneDeepWith=lT;r0.cloneWith=lQ;r0.conformsTo=lA;r0.deburr=fe;r0.defaultTo=fE;r0.divide=f9;r0.endsWith=ft;r0.eq=l$;r0.escape=fr;r0.escapeRegExp=fn;r0.every=aX;r0.find=aB;r0.findIndex=sZ;r0.findKey=u_;r0.findLast=az;r0.findLastIndex=sX;r0.findLastKey=uk;r0.floor=ce;r0.forEach=aW;r0.forEachRight=aY;r0.forIn=uQ;r0.forInRight=uP;r0.forOwn=uT;r0.forOwnRight=uA;r0.get=uC;r0.gt=lj;r0.gte=lC;r0.has=uE;r0.hasIn=uM;r0.head=sN;r0.identity=fD;r0.includes=aG;r0.indexOf=sV;r0.inRange=u8;r0.invoke=uL;r0.isArguments=lE;r0.isArray=lM;r0.isArrayBuffer=lR;r0.isArrayLike=lD;r0.isArrayLikeObject=lL;r0.isBoolean=lZ;r0.isBuffer=lX;r0.isDate=lq;r0.isElement=lB;r0.isEmpty=lz;r0.isEqual=lI;r0.isEqualWith=lN;r0.isError=lV;r0.isFinite=lW;r0.isFunction=lY;r0.isInteger=lU;r0.isLength=lG;r0.isMap=lK;r0.isMatch=lJ;r0.isMatchWith=l0;r0.isNaN=l1;r0.isNative=l2;r0.isNil=l3;r0.isNull=l5;r0.isNumber=l4;r0.isObject=lF;r0.isObjectLike=lH;r0.isPlainObject=l8;r0.isRegExp=l6;r0.isSafeInteger=l7;r0.isSet=l9;r0.isString=ue;
11r0.isSymbol=ut;r0.isTypedArray=ur;r0.isUndefined=un;r0.isWeakMap=ui;r0.isWeakSet=uo;r0.join=sF;r0.kebabCase=fi;r0.last=sH;r0.lastIndexOf=sK;r0.lowerCase=fo;r0.lowerFirst=fs;r0.lt=us;r0.lte=ua;r0.max=ct;r0.maxBy=cr;r0.mean=cn;r0.meanBy=ci;r0.min=co;r0.minBy=cs;r0.stubArray=fJ;r0.stubFalse=f0;r0.stubObject=f1;r0.stubString=f2;r0.stubTrue=f5;r0.multiply=ca;r0.nth=sJ;r0.noConflict=fI;r0.noop=fN;r0.now=le;r0.pad=fa;r0.padEnd=fl;r0.padStart=fu;r0.parseInt=ff;r0.random=u6;r0.reduce=a1;r0.reduceRight=a2;r0.repeat=fc;r0.replace=fh;r0.result=uU;r0.round=cl;r0.runInContext=t;r0.sample=a3;r0.size=a6;r0.snakeCase=fd;r0.some=a7;r0.sortedIndex=s7;r0.sortedIndexBy=s9;r0.sortedIndexOf=ae;r0.sortedLastIndex=at;r0.sortedLastIndexBy=ar;r0.sortedLastIndexOf=an;r0.startCase=fg;r0.startsWith=fm;r0.subtract=cu;r0.sum=cf;r0.sumBy=cc;r0.template=fO;r0.times=f3;r0.toFinite=uu;r0.toInteger=uf;r0.toLength=uc;r0.toLower=fv;r0.toNumber=uh;r0.toSafeInteger=up;r0.toString=ug;r0.toUpper=fy;r0.trim=fb;r0.trimEnd=fw;r0.trimStart=fx;r0.truncate=fS;r0.unescape=f_;r0.uniqueId=f8;r0.upperCase=fk;r0.upperFirst=fQ;r0.each=aW;r0.eachRight=aY;r0.first=sN;fz(r0,function(){var e={};nK(r0,function(t,r){if(!tt.call(r0.prototype,r))e[r]=t});return e}(),{chain:false});r0.VERSION=i;t7(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){r0[e].placeholder=r0});t7(["drop","take"],function(t,r){r3.prototype[t]=function(n){n=e===n?1:tC(uf(n),0);var i=this.__filtered__&&!r?new r3(this):this.clone();if(i.__filtered__)i.__takeCount__=tE(n,i.__takeCount__);else i.__views__.push({size:tE(n,L),type:t+(i.__dir__<0?"Right":"")});return i};r3.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}});t7(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==$||r==C;r3.prototype[e]=function(e){var t=this.clone();t.__iteratees__.push({iteratee:oW(e,3),type:r});t.__filtered__=t.__filtered__||n;return t}});t7(["head","last"],function(e,t){var r="take"+(t?"Right":"");r3.prototype[e]=function(){return this[r](1).value()[0]}});t7(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");r3.prototype[e]=function(){return this.__filtered__?new r3(this):this[r](1)}});r3.prototype.compact=function(){return this.filter(fD)};r3.prototype.find=function(e){return this.filter(e).head()};r3.prototype.findLast=function(e){return this.reverse().find(e)};r3.prototype.invokeMap=iE(function(e,t){if("function"==typeof e)return new r3(this);return this.map(function(r){return ie(r,e,t)})});r3.prototype.reject=function(e){return this.filter(ld(oW(e)))};r3.prototype.slice=function(t,r){t=uf(t);var n=this;if(n.__filtered__&&(t>0||r<0))return new r3(n);if(t<0)n=n.takeRight(-t);else if(t)n=n.drop(t);if(e!==r){r=uf(r);n=r<0?n.dropRight(-r):n.take(r-t)}return n};r3.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};r3.prototype.toArray=function(){return this.take(L)};nK(r3.prototype,function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),i=/^(?:head|last)$/.test(r),o=r0[i?"take"+("last"==r?"Right":""):r],s=i||/^find/.test(r);if(!o)return;r0.prototype[r]=function(){var r=this.__wrapped__,a=i?[1]:arguments,l=r instanceof r3,u=a[0],f=l||lM(r);var c=function(e){var t=o.apply(r0,ro([e],a));return i&&h?t[0]:t};if(f&&n&&"function"==typeof u&&1!=u.length)l=f=false;var h=this.__chain__,d=!!this.__actions__.length,p=s&&!h,g=l&&!d;if(!s&&f){r=g?r:new r3(this);var m=t.apply(r,a);m.__actions__.push({func:aA,args:[c],thisArg:e});return new r5(m,h)}if(p&&g)return t.apply(this,a);m=this.thru(c);return p?i?m.value()[0]:m.value():m}});t7(["pop","push","shift","sort","splice","unshift"],function(e){var t=e8[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);r0.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(lM(i)?i:[],e)}return this[r](function(r){return t.apply(lM(r)?r:[],e)})}});nK(r3.prototype,function(e,t){var r=r0[t];if(r){var n=r.name+"";if(!tt.call(tJ,n))tJ[n]=[];tJ[n].push({name:t,func:r})}});tJ[ow(e,O).name]=[{name:"wrapper",func:e}];r3.prototype.clone=r4;r3.prototype.reverse=r8;r3.prototype.value=r6;r0.prototype.at=a$;r0.prototype.chain=aj;r0.prototype.commit=aC;r0.prototype.next=aE;r0.prototype.plant=aR;r0.prototype.reverse=aD;r0.prototype.toJSON=r0.prototype.valueOf=r0.prototype.value=aL;r0.prototype.first=r0.prototype.head;if(tO)r0.prototype[tO]=aM;return r0};var rK=rH();if("function"==typeof define&&"object"==typeof define.amd&&define.amd){tU._=rK;define(function(){return rK})}else if(tF){(tF.exports=rK)._=rK;tG._=rK}else tU._=rK}).call(this)}},cheerio:{
11"package.json":function(e,t,r){r.exports={name:"cheerio",version:"0.22.0",description:"Tiny, fast, and elegant implementation of core jQuery designed specifically for the server",author:"Matt Mueller <[email protected]> (mat.io)",license:"MIT",keywords:["htmlparser","jquery","selector","scraper","parser","html"],repository:{type:"git",url:"git://github.com/cheeriojs/cheerio.git"},main:"./index.js",files:["index.js","lib"],engines:{node:">= 0.6"},dependencies:{"css-select":"~1.2.0","dom-serializer":"~0.1.0",entities:"~1.1.1",htmlparser2:"^3.9.1","lodash.assignin":"^4.0.9","lodash.bind":"^4.1.4","lodash.defaults":"^4.0.1","lodash.filter":"^4.4.0","lodash.flatten":"^4.2.0","lodash.foreach":"^4.3.0","lodash.map":"^4.4.0","lodash.merge":"^4.4.0","lodash.pick":"^4.2.1","lodash.reduce":"^4.4.0","lodash.reject":"^4.4.0","lodash.some":"^4.4.0"},devDependencies:{benchmark:"^2.1.0",coveralls:"^2.11.9","expect.js":"~0.3.1",istanbul:"^0.4.3",jsdom:"^9.2.1",jquery:"^3.0.0",jshint:"^2.9.2",mocha:"^2.5.3",xyz:"~0.5.0"},scripts:{test:"make test"}}},
11"index.js":function(e,t,r){t=r.exports=e("./lib/cheerio");t.version=e("./package.json").version},lib:{
11"cheerio.js":function(e,t,r){var n=e("./parse"),i=e("./utils").isHtml,o={extend:e("lodash.assignin"),bind:e("lodash.bind"),forEach:e("lodash.foreach"),defaults:e("lodash.defaults")};var s=[e("./api/attributes"),e("./api/traversing"),e("./api/manipulation"),e("./api/css"),e("./api/forms")];var a=r.exports=function(e,t,r,s){if(!(this instanceof a))return new a(e,t,r,s);this.options=o.defaults(s||{},this.options);if(!e)return this;if(r){if("string"==typeof r)r=n(r,this.options);this._root=a.call(this,r)}if(e.cheerio)return e;if(l(e))e=[e];if(Array.isArray(e)){o.forEach(e,o.bind(function(e,t){this[t]=e},this));this.length=e.length;return this}if("string"==typeof e&&i(e))return a.call(this,n(e,this.options).children);if(t){if("string"==typeof t)if(i(t)){t=n(t,this.options);t=a.call(this,t)}else{e=[t,e].join(" ");t=this._root}else if(!t.cheerio)t=a.call(this,t)}else t=this._root;if(!t)return this;return t.find(e)};o.extend(a,e("./static"));a.prototype.cheerio="[cheerio object]";a.prototype.options={withDomLvl1:true,normalizeWhitespace:false,xmlMode:false,decodeEntities:true};a.prototype.length=0;a.prototype.splice=Array.prototype.splice;a.prototype._make=function(e,t){var r=new this.constructor(e,t,this._root,this.options);r.prevObject=this;return r};a.prototype.toArray=function(){return this.get()};s.forEach(function(e){o.extend(a.prototype,e)});var l=function(e){return e.name||"text"===e.type||"comment"===e.type}},
11"parse.js":function(e,t,r){var n=e("htmlparser2");t=r.exports=function(e,r){var n=t.evaluate(e,r),i=t.evaluate("<root></root>",r)[0];i.type="root";t.update(n,i);return i};t.evaluate=function(e,t){var r;r="string"==typeof e||Buffer.isBuffer(e)?n.parseDOM(e,t):e;return r};t.update=function(e,t){if(!Array.isArray(e))e=[e];if(t)t.children=e;else t=null;for(var r=0;r<e.length;r++){var n=e[r];var i=n.parent||n.root,o=i&&i.children;if(o&&o!==e){o.splice(o.indexOf(n),1);if(n.prev)n.prev.next=n.next;if(n.next)n.next.prev=n.prev}if(t){n.prev=e[r-1]||null;n.next=e[r+1]||null}else n.prev=n.next=null;if(t&&"root"===t.type){n.root=t;n.parent=null}else{n.root=null;n.parent=t}}return t}},
11"utils.js":function(e,t){var r=e("./parse"),n=e("dom-serializer");var i={tag:true,script:true,style:true};t.isTag=function(e){if(e.type)e=e.type;return i[e]||false};t.camelCase=function(e){return e.replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()})};t.cssCase=function(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()};t.domEach=function(e,t){var r=0,n=e.length;while(r<n&&false!==t.call(e,r,e[r]))++r;return e};t.cloneDom=function(e,t){return r(n(e,t),t).children};var o=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/;t.isHtml=function(e){if("<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3)return true;var t=o.exec(e);return!!(t&&t[1])}},api:{
11"attributes.js":function(e,t){var r=e("../static"),n=e("../utils"),i=n.isTag,o=n.domEach,s=Object.prototype.hasOwnProperty,a=n.camelCase,l=n.cssCase,u=/\s+/,f="data-",c={forEach:e("lodash.foreach"),extend:e("lodash.assignin"),some:e("lodash.some")},h={null:null,true:true,false:false},d=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,p=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;var g=function(e,t){if(!e||!i(e))return;if(!e.attribs)e.attribs={};if(!t)return e.attribs;if(s.call(e.attribs,t))return d.test(t)?t:e.attribs[t];if("option"===e.name&&"value"===t)return r.text(e.children);if("input"===e.name&&("radio"===e.attribs.type||"checkbox"===e.attribs.type)&&"value"===t)return"on"};var m=function(e,t,r){if(null===r)w(e,t);else e.attribs[t]=r+""};t.attr=function(e,t){if("object"==typeof e||void 0!==t){if("function"==typeof t)return o(this,function(r,n){m(n,e,t.call(n,r,n.attribs[e]))});return o(this,function(r,n){if(!i(n))return;if("object"==typeof e)c.forEach(e,function(e,t){m(n,t,e)});else m(n,e,t)})}return g(this[0],e)};var O=function(e,t){if(!e||!i(e))return;return e.hasOwnProperty(t)?e[t]:d.test(t)?void 0!==g(e,t):g(e,t)};var v=function(e,t,r){e[t]=d.test(t)?!!r:r};t.prop=function(e,t){var r=0,n;if("string"==typeof e&&void 0===t){switch(e){case"style":n=this.css();c.forEach(n,function(e,t){n[r++]=t});n.length=r;break;case"tagName":case"nodeName":n=this[0].name.toUpperCase();break;default:n=O(this[0],e)}return n}if("object"==typeof e||void 0!==t){if("function"==typeof t)return o(this,function(r,n){v(n,e,t.call(n,r,O(n,e)))});return o(this,function(r,n){if(!i(n))return;if("object"==typeof e)c.forEach(e,function(e,t){v(n,t,e)});else v(n,e,t)})}};var y=function(e,t,r){if(!e.data)e.data={};if("object"==typeof t)return c.extend(e.data,t);if("string"==typeof t&&void 0!==r)e.data[t]=r;else if("object"==typeof t)c.extend(e.data,t)};var b=function(e,t){var r=1===arguments.length;var n,i,o,u,c,d,g;if(r){n=Object.keys(e.attribs).filter(function(e){return e.slice(0,f.length)===f});o=n.map(function(e){return a(e.slice(f.length))})}else{n=[f+l(t)];o=[t]}for(d=0,g=n.length;d<g;++d){i=n[d];u=o[d];if(s.call(e.attribs,i)){c=e.attribs[i];if(s.call(h,c))c=h[c];else if(c===String(Number(c)))c=Number(c);else if(p.test(c))try{c=JSON.parse(c)}catch(e){}e.data[u]=c}}return r?e.data:c};t.data=function(e,t){var r=this[0];if(!r||!i(r))return;if(!r.data)r.data={};if(!e)return b(r);if("object"==typeof e||void 0!==t){o(this,function(r,n){y(n,e,t)});return this}if(s.call(r.data,e))return r.data[e];return b(r,e)};t.val=function(e){var t=0===arguments.length,r=this[0];if(!r)return;switch(r.name){case"textarea":return this.text(e);case"input":switch(this.attr("type")){case"radio":if(t)return this.attr("value");this.attr("value",e);return this;default:return this.attr("value",e)}case"select":var n=this.find("option:selected"),i;if(void 0===n)return;if(!t){if(!this.attr().hasOwnProperty("multiple")&&"object"==typeof e)return this;if("object"!=typeof e)e=[e];this.find("option").removeAttr("selected");for(var s=0;s<e.length;s++)this.find('option[value="'+e[s]+'"]').attr("selected","");return this}i=n.attr("value");if(this.attr().hasOwnProperty("multiple")){i=[];o(n,function(e,t){i.push(g(t,"value"))})}return i;case"option":if(!t){this.attr("value",e);return this}return this.attr("value")}};var w=function(e,t){if(!e.attribs||!s.call(e.attribs,t))return;delete e.attribs[t]};t.removeAttr=function(e){o(this,function(t,r){w(r,e)});return this};t.hasClass=function(e){return c.some(this,function(t){var r=t.attribs,n=r&&r["class"],i=-1,o;if(n)while((i=n.indexOf(e,i+1))>-1){o=i+e.length;if((0===i||u.test(n[i-1]))&&(o===n.length||u.test(n[o])))return true}})};t.addClass=function(e){if("function"==typeof e)return o(this,function(r,n){var i=n.attribs["class"]||"";t.addClass.call([n],e.call(n,r,i))});if(!e||"string"!=typeof e)return this;var r=e.split(u),n=this.length;for(var s=0;s<n;s++)if(i(this[s])){var a=g(this[s],"class"),l,f;if(a){f=" "+a+" ";l=r.length;for(var c=0;c<l;c++){var h=r[c]+" ";if(f.indexOf(" "+h)<0)f+=h}m(this[s],"class",f.trim())}else m(this[s],"class",r.join(" ").trim())}return this};var x=function(e){return e?e.trim().split(u):[]};t.removeClass=function(e){var r,n,s;if("function"==typeof e)return o(this,function(r,n){t.removeClass.call([n],e.call(n,r,n.attribs["class"]||""))});r=x(e);n=r.length;s=0===arguments.length;return o(this,function(e,t){if(!i(t))return;if(s)t.attribs.class="";else{var o=x(t.attribs.class),a,l;for(var u=0;u<n;u++){a=o.indexOf(r[u]);if(a>=0){o.splice(a,1);l=true;u--}
11}if(l)t.attribs.class=o.join(" ")}})};t.toggleClass=function(e,r){if("function"==typeof e)return o(this,function(n,i){t.toggleClass.call([i],e.call(i,n,i.attribs["class"]||"",r),r)});if(!e||"string"!=typeof e)return this;var n=e.split(u),s=n.length,a="boolean"==typeof r?r?1:-1:0,l=this.length,f,c;for(var h=0;h<l;h++)if(i(this[h])){f=x(this[h].attribs.class);for(var d=0;d<s;d++){c=f.indexOf(n[d]);if(a>=0&&c<0)f.push(n[d]);else if(a<=0&&c>=0)f.splice(c,1)}this[h].attribs.class=f.join(" ")}return this};t.is=function(e){if(e)return this.filter(e).length>0;return false}},
11"traversing.js":function(e,t){var r=e("css-select"),n=e("../utils"),i=n.domEach,o=e("htmlparser2").DomUtils.uniqueSort,s=n.isTag,a={bind:e("lodash.bind"),forEach:e("lodash.foreach"),reject:e("lodash.reject"),filter:e("lodash.filter"),reduce:e("lodash.reduce")};t.find=function(e){var t=a.reduce(this,function(e,t){return e.concat(a.filter(t.children,s))},[]);var n=this.constructor.contains;var i;if(e&&"string"!=typeof e){i=e.cheerio?e.get():[e];return this._make(i.filter(function(e){var t,r;for(t=0,r=this.length;t<r;++t)if(n(this[t],e))return true},this))}var o={__proto__:this.options,context:this.toArray()};return this._make(r(e,t,o))};t.parent=function(e){var r=[];i(this,function(e,t){var n=t.parent;if(n&&r.indexOf(n)<0)r.push(n)});if(arguments.length)r=t.filter.call(r,e,this);return this._make(r)};t.parents=function(e){var t=[];this.get().reverse().forEach(function(r){u(this,r.parent,e,1/0).forEach(function(e){if(-1===t.indexOf(e))t.push(e)})},this);return this._make(t)};t.parentsUntil=function(e,t){var n=[],i,o;if("string"==typeof e)i=r(e,this.parents().toArray(),this.options)[0];else if(e&&e.cheerio)o=e.toArray();else if(e)i=e;this.toArray().reverse().forEach(function(e){while(e=e.parent)if(i&&e!==i||o&&-1===o.indexOf(e)||!i&&!o){if(s(e)&&-1===n.indexOf(e))n.push(e)}else break},this);return this._make(t?r(t,n,this.options):n)};t.closest=function(e){var t=[];if(!e)return this._make(t);i(this,(function(r,n){var i=u(this,n,e,1)[0];if(i&&t.indexOf(i)<0)t.push(i)}).bind(this));return this._make(t)};t.next=function(e){if(!this[0])return this;var r=[];a.forEach(this,function(e){while(e=e.next)if(s(e))return void r.push(e)});return e?t.filter.call(r,e,this):this._make(r)};t.nextAll=function(e){if(!this[0])return this;var r=[];a.forEach(this,function(e){while(e=e.next)if(s(e)&&-1===r.indexOf(e))r.push(e)});return e?t.filter.call(r,e,this):this._make(r)};t.nextUntil=function(e,n){if(!this[0])return this;var i=[],o,l;if("string"==typeof e)o=r(e,this.nextAll().get(),this.options)[0];else if(e&&e.cheerio)l=e.get();else if(e)o=e;a.forEach(this,function(e){while(e=e.next)if(o&&e!==o||l&&-1===l.indexOf(e)||!o&&!l){if(s(e)&&-1===i.indexOf(e))i.push(e)}else break});return n?t.filter.call(i,n,this):this._make(i)};t.prev=function(e){if(!this[0])return this;var r=[];a.forEach(this,function(e){while(e=e.prev)if(s(e))return void r.push(e)});return e?t.filter.call(r,e,this):this._make(r)};t.prevAll=function(e){if(!this[0])return this;var r=[];a.forEach(this,function(e){while(e=e.prev)if(s(e)&&-1===r.indexOf(e))r.push(e)});return e?t.filter.call(r,e,this):this._make(r)};t.prevUntil=function(e,n){if(!this[0])return this;var i=[],o,l;if("string"==typeof e)o=r(e,this.prevAll().get(),this.options)[0];else if(e&&e.cheerio)l=e.get();else if(e)o=e;a.forEach(this,function(e){while(e=e.prev)if(o&&e!==o||l&&-1===l.indexOf(e)||!o&&!l){if(s(e)&&-1===i.indexOf(e))i.push(e)}else break});return n?t.filter.call(i,n,this):this._make(i)};t.siblings=function(e){var r=this.parent();var n=a.filter(r?r.children():this.siblingsAndMe(),a.bind(function(e){return s(e)&&!this.is(e)},this));if(void 0!==e)return t.filter.call(n,e,this);return this._make(n)};t.children=function(e){var r=a.reduce(this,function(e,t){return e.concat(a.filter(t.children,s))},[]);if(void 0===e)return this._make(r);return t.filter.call(r,e,this)};t.contents=function(){return this._make(a.reduce(this,function(e,t){e.push.apply(e,t.children);return e},[]))};t.each=function(e){var t=0,r=this.length;while(t<r&&false!==e.call(this[t],t,this[t]))++t;return this};t.map=function(e){return this._make(a.reduce(this,function(t,r,n){var i=e.call(r,n,r);return null==i?t:t.concat(i)},[]))};var l=function(e){return function(t,n){var i;n=n||this;i="string"==typeof t?r.compile(t,n.options):"function"==typeof t?function(e,r){return t.call(e,r,e)}:t.cheerio?t.is.bind(t):function(e){return t===e};return n._make(e(this,i))}};t.filter=l(a.filter);t.not=l(a.reject);t.has=function(e){var r=this;return t.filter.call(this,function(){return r._make(this).find(e).length>0})};t.first=function(){return this.length>1?this._make(this[0]):this};t.last=function(){return this.length>1?this._make(this[this.length-1]):this};t.eq=function(e){e*=1;if(0===e&&this.length<=1)return this;if(e<0)e=this.length+e;return this[e]?this._make(this[e]):this._make([])};t.get=function(e){if(null==e)return Array.prototype.slice.call(this);return this[e<0?this.length+e:e]};t.index=function(e){var t,r;if(0===arguments.length){t=this.parent().children();r=this[0]}else if("string"==typeof e){t=this._make(e);r=this[0]}else{t=this;r=e.cheerio?e[0]:e}return t.get().indexOf(r)};t.slice=function(){return this._make([].slice.apply(this,arguments))};function u(e,r,n,i){var o=[];while(r&&o.length<i){if(!n||t.filter.call([r],n,e).length)o.push(r);r=r.parent}return o}t.end=function(){return this.prevObject||this._make([])};t.add=function(e,t){var r=this._make(e,t);var n=o(r.get().concat(this.get()));for(var i=0;i<n.length;++i)r[i]=n[i];r.length=n.length;return r};t.addBack=function(e){return this.add(arguments.length?this.prevObject.filter(e):this.prevObject)}},
11"manipulation.js":function(e,t){var r=e("../parse"),n=e("../static"),i=r.update,o=r.evaluate,s=e("../utils"),a=s.domEach,l=s.cloneDom,u=s.isHtml,f=Array.prototype.slice,c={flatten:e("lodash.flatten"),bind:e("lodash.bind"),forEach:e("lodash.foreach")};t._makeDomArray=function(e,t){if(null==e)return[];if(e.cheerio)return t?l(e.get(),e.options):e.get();if(Array.isArray(e))return c.flatten(e.map(function(e){return this._makeDomArray(e,t)},this));if("string"==typeof e)return o(e,this.options);return t?l([e]):[e]};var h=function(e){return function(){var t=f.call(arguments),r=this.length-1;return a(this,function(i,o){var s,a;a="function"==typeof t[0]?t[0].call(o,i,n.html(o.children)):t;s=this._makeDomArray(a,i<r);e(s,o.children,o)})}};var d=function(e,t,r,n,i){var o=[t,r].concat(n),s=e[t-1]||null,a=e[t]||null;var l,u,f,c,h;for(l=0,u=n.length;l<u;++l){c=n[l];h=c.parent||c.root;f=h&&h.children.indexOf(n[l]);if(h&&f>-1){h.children.splice(f,1);if(i===h&&t>f)o[0]--}c.root=null;c.parent=i;if(c.prev)c.prev.next=c.next||null;if(c.next)c.next.prev=c.prev||null;c.prev=n[l-1]||s;c.next=n[l+1]||a}if(s)s.next=n[0];if(a)a.prev=n[n.length-1];return e.splice.apply(e,o)};t.appendTo=function(e){if(!e.cheerio)e=this.constructor.call(this.constructor,e,null,this._originalRoot);e.append(this);return this};t.prependTo=function(e){if(!e.cheerio)e=this.constructor.call(this.constructor,e,null,this._originalRoot);e.prepend(this);return this};t.append=h(function(e,t,r){d(t,t.length,0,e,r)});t.prepend=h(function(e,t,r){d(t,0,0,e,r)});t.wrap=function(e){var t="function"==typeof e&&e,r=this.length-1;
11c.forEach(this,c.bind(function(n,o){var s=n.parent||n.root,a=s.children,l,f;if(!s)return;if(t)e=t.call(n,o);if("string"==typeof e&&!u(e))e=this.parents().last().find(e).clone();l=this._makeDomArray(e,o<r).slice(0,1);f=a.indexOf(n);i([n],l[0]);d(a,f,0,l,s)},this));return this};t.after=function(){var e=f.call(arguments),t=this.length-1;a(this,function(r,i){var o=i.parent||i.root;if(!o)return;var s=o.children,a=s.indexOf(i),l,u;if(a<0)return;l="function"==typeof e[0]?e[0].call(i,r,n.html(i.children)):e;u=this._makeDomArray(l,r<t);d(s,a+1,0,u,o)});return this};t.insertAfter=function(e){var t=[],r=this;if("string"==typeof e)e=this.constructor.call(this.constructor,e,null,this._originalRoot);e=this._makeDomArray(e);r.remove();a(e,function(e,n){var i=r._makeDomArray(r.clone());var o=n.parent||n.root;if(!o)return;var s=o.children,a=s.indexOf(n);if(a<0)return;d(s,a+1,0,i,o);t.push(i)});return this.constructor.call(this.constructor,this._makeDomArray(t))};t.before=function(){var e=f.call(arguments),t=this.length-1;a(this,function(r,i){var o=i.parent||i.root;if(!o)return;var s=o.children,a=s.indexOf(i),l,u;if(a<0)return;l="function"==typeof e[0]?e[0].call(i,r,n.html(i.children)):e;u=this._makeDomArray(l,r<t);d(s,a,0,u,o)});return this};t.insertBefore=function(e){var t=[],r=this;if("string"==typeof e)e=this.constructor.call(this.constructor,e,null,this._originalRoot);e=this._makeDomArray(e);r.remove();a(e,function(e,n){var i=r._makeDomArray(r.clone());var o=n.parent||n.root;if(!o)return;var s=o.children,a=s.indexOf(n);if(a<0)return;d(s,a,0,i,o);t.push(i)});return this.constructor.call(this.constructor,this._makeDomArray(t))};t.remove=function(e){var t=this;if(e)t=t.filter(e);a(t,function(e,t){var r=t.parent||t.root;if(!r)return;var n=r.children,i=n.indexOf(t);if(i<0)return;n.splice(i,1);if(t.prev)t.prev.next=t.next;if(t.next)t.next.prev=t.prev;t.prev=t.next=t.parent=t.root=null});return this};t.replaceWith=function(e){var t=this;a(this,function(r,n){var o=n.parent||n.root;if(!o)return;var s=o.children,a=t._makeDomArray("function"==typeof e?e.call(n,r,n):e),l;i(a,null);l=s.indexOf(n);d(s,l,1,a,o);n.parent=n.prev=n.next=n.root=null});return this};t.empty=function(){a(this,function(e,t){c.forEach(t.children,function(e){e.next=e.prev=e.parent=null});t.children.length=0});return this};t.html=function(e){if(void 0===e){if(!this[0]||!this[0].children)return null;return n.html(this[0].children,this.options)}var t=this.options;a(this,function(r,n){c.forEach(n.children,function(e){e.next=e.prev=e.parent=null});var s=e.cheerio?e.clone().get():o(""+e,t);i(s,n)});return this};t.toString=function(){return n.html(this,this.options)};t.text=function(e){if(void 0===e)return n.text(this);if("function"==typeof e)return a(this,function(r,i){var o=[i];return t.text.call(o,e.call(i,r,n.text(o)))});a(this,function(t,r){c.forEach(r.children,function(e){e.next=e.prev=e.parent=null});var n={data:""+e,type:"text",parent:r,prev:null,next:null,children:[]};i(n,r)});return this};t.clone=function(){return this._make(l(this.get(),this.options))}},
11"css.js":function(e,t){var r=e("../utils").domEach,n={pick:e("lodash.pick")};var i=Object.prototype.toString;t.css=function(e,t){if(2===arguments.length||"[object Object]"===i.call(e))return r(this,function(r,n){o(n,e,t,r)});return s(this[0],e)};function o(e,t,r,n){if("string"==typeof t){var i=s(e);if("function"==typeof r)r=r.call(e,n,i[t]);if(""===r)delete i[t];else if(null!=r)i[t]=r;e.attribs.style=a(i)}else if("object"==typeof t)Object.keys(t).forEach(function(r){o(e,r,t[r])})}function s(e,t){var r=l(e.attribs.style);if("string"==typeof t)return r[t];if(Array.isArray(t))return n.pick(r,t);return r}function a(e){return Object.keys(e||{}).reduce(function(t,r){return t+((t?" ":"")+r+": "+e[r])+";"},"")}function l(e){e=(e||"").trim();if(!e)return{};return e.split(";").reduce(function(e,t){var r=t.indexOf(":");if(r<1||r===t.length-1)return e;e[t.slice(0,r).trim()]=t.slice(r+1).trim();return e},{})}},
11"forms.js":function(e,t){var r="input,select,textarea,keygen",n=/%20/g,i=/\r?\n/g,o={map:e("lodash.map")};t.serialize=function(){var e=this.serializeArray();var t=o.map(e,function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)});return t.join("&").replace(n,"+")};t.serializeArray=function(){var e=this.constructor;return this.map(function(){var t=this;var n=e(t);if("form"===t.name)return n.find(r).toArray();return n.filter(r).toArray()}).filter('[name!=""]:not(:disabled):not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map(function(t,r){var n=e(r);var s=n.attr("name");var a=n.val();if(null==a)return null;if(Array.isArray(a))return o.map(a,function(e){return{name:s,value:e.replace(i,"\r\n")}});return{name:s,value:a.replace(i,"\r\n")}}).get()}}},
11"static.js":function(e,t){var r=e("dom-serializer"),n=e("css-select"),i=e("./parse"),o={merge:e("lodash.merge"),defaults:e("lodash.defaults")};t.load=function(r,n){var s=e("./cheerio");n=o.defaults(n||{},s.prototype.options);var a=i(r,n);var l=function(e,t,r,i){if(!(this instanceof l))return new l(e,t,r,i);i=o.defaults(i||{},n);return s.call(this,e,t,r||a,i)};l.prototype=Object.create(s.prototype);l.prototype.constructor=l;l.fn=l.prototype;l.prototype._originalRoot=a;o.merge(l,t);l._root=a;l._options=n;return l};function s(e,t,i){if(t){if("string"==typeof t)t=n(t,e._root,i)}else{if(!e._root||!e._root.children)return"";t=e._root.children}return r(t,i)}t.html=function(t,r){var n=e("./cheerio");if("[object Object]"===Object.prototype.toString.call(t)&&!r&&!("length"in t)&&!("type"in t)){r=t;t=void 0}r=o.defaults(r||{},this._options,n.prototype.options);return s(this,t,r)};t.xml=function(e){var t=o.defaults({xmlMode:true},this._options);return s(this,e,t)};t.text=function(e){if(!e)e=this.root();var r="",n=e.length,i;for(var o=0;o<n;o++){i=e[o];if("text"===i.type)r+=i.data;else if(i.children&&"comment"!==i.type)r+=t.text(i.children)}return r};t.parseHTML=function(e,t,r){var n;if(!e||"string"!=typeof e)return null;if("boolean"==typeof t)r=t;n=this.load(e);if(!r)n("script").remove();return n.root()[0].children.slice()};t.root=function(){return this(this._root)};t.contains=function(e,t){if(t===e)return false;while(t&&t!==t.parent){t=t.parent;if(t===e)return true}return false}}}},htmlparser2:{
11"package.json":function(e,t,r){r.exports={name:"htmlparser2",version:"3.10.1",browser:{"readable-stream":false},main:"lib/index.js"}},lib:{
11"index.js":function(e,t,r){var n=e("./Parser.js");var i=e("domhandler");function o(e,t){delete r.exports[e];r.exports[e]=t;return t}r.exports={Parser:n,Tokenizer:e("./Tokenizer.js"),ElementType:e("domelementtype"),DomHandler:i,get FeedHandler(){return o("FeedHandler",e("./FeedHandler.js"))},get Stream(){return o("Stream",e("./Stream.js"))},get WritableStream(){return o("WritableStream",e("./WritableStream.js"))},get ProxyHandler(){return o("ProxyHandler",e("./ProxyHandler.js"))},get DomUtils(){return o("DomUtils",e("domutils"))},get CollectingHandler(){return o("CollectingHandler",e("./CollectingHandler.js"))},DefaultHandler:i,get RssHandler(){return o("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var r=new i(t);new n(r,t).end(e);return r.dom},parseFeed:function(e,t){var i=new r.exports.FeedHandler(t);new n(i,t).end(e);return i.dom},createDomStream:function(e,t,r){var o=new i(e,t,r);return new n(o,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},
11"Parser.js":function(e,t,r){var n=e("./Tokenizer.js");var i={input:true,option:true,optgroup:true,select:true,button:true,datalist:true,textarea:true};var o={tr:{tr:true,th:true,td:true},th:{th:true},td:{thead:true,th:true,td:true},body:{head:true,link:true,script:true},li:{li:true},p:{p:true},h1:{p:true},h2:{p:true},h3:{p:true},h4:{p:true},h5:{p:true},h6:{p:true},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:true},optgroup:{optgroup:true}};var s={__proto__:null,area:true,base:true,basefont:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,isindex:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true};var a={__proto__:null,math:true,svg:true};var l={__proto__:null,mi:true,mo:true,mn:true,ms:true,mtext:true,"annotation-xml":true,foreignObject:true,desc:true,title:true};var u=/\s|\//;function f(e,t){this._options=t||{};this._cbs=e||{};this._tagname="";this._attribname="";this._attribvalue="";this._attribs=null;this._stack=[];this._foreignContext=[];this.startIndex=0;this.endIndex=null;this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode;this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode;if(this._options.Tokenizer)n=this._options.Tokenizer;this._tokenizer=new n(this._options,this);if(this._cbs.onparserinit)this._cbs.onparserinit(this)}e("inherits")(f,e("events").EventEmitter);f.prototype._updatePosition=function(e){if(null===this.endIndex)if(this._tokenizer._sectionStart<=e)this.startIndex=0;else this.startIndex=this._tokenizer._sectionStart-e;else this.startIndex=this.endIndex+1;this.endIndex=this._tokenizer.getAbsoluteIndex()};f.prototype.ontext=function(e){this._updatePosition(1);this.endIndex--;if(this._cbs.ontext)this._cbs.ontext(e)};f.prototype.onopentagname=function(e){if(this._lowerCaseTagNames)e=e.toLowerCase();this._tagname=e;if(!this._options.xmlMode&&e in o)for(var t;(t=this._stack[this._stack.length-1])in o[e];this.onclosetag(t));if(this._options.xmlMode||!(e in s)){this._stack.push(e);if(e in a)this._foreignContext.push(true);else if(e in l)this._foreignContext.push(false)}if(this._cbs.onopentagname)this._cbs.onopentagname(e);if(this._cbs.onopentag)this._attribs={}};f.prototype.onopentagend=function(){this._updatePosition(1);if(this._attribs){if(this._cbs.onopentag)this._cbs.onopentag(this._tagname,this._attribs);this._attribs=null}if(!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in s)this._cbs.onclosetag(this._tagname);this._tagname=""};f.prototype.onclosetag=function(e){this._updatePosition(1);if(this._lowerCaseTagNames)e=e.toLowerCase();if(e in a||e in l)this._foreignContext.pop();if(!this._stack.length||e in s&&!this._options.xmlMode){if(!this._options.xmlMode&&("br"===e||"p"===e)){this.onopentagname(e);this._closeCurrentTag()}}else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag){t=this._stack.length-t;while(t--)this._cbs.onclosetag(this._stack.pop())}else this._stack.length=t;else if("p"===e&&!this._options.xmlMode){this.onopentagname(e);this._closeCurrentTag()}}};f.prototype.onselfclosingtag=function(){if(this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1])this._closeCurrentTag();else this.onopentagend()};f.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend();if(this._stack[this._stack.length-1]===e){if(this._cbs.onclosetag)this._cbs.onclosetag(e);this._stack.pop()}};f.prototype.onattribname=function(e){if(this._lowerCaseAttributeNames)e=e.toLowerCase();this._attribname=e};f.prototype.onattribdata=function(e){this._attribvalue+=e};f.prototype.onattribend=function(){if(this._cbs.onattribute)this._cbs.onattribute(this._attribname,this._attribvalue);if(this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname))this._attribs[this._attribname]=this._attribvalue;this._attribname="";this._attribvalue=""};f.prototype._getInstructionName=function(e){var t=e.search(u),r=t
11<0?e:e.substr(0,t);if(this._lowerCaseTagNames)r=r.toLowerCase();return r};f.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}};f.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}};f.prototype.oncomment=function(e){this._updatePosition(4);if(this._cbs.oncomment)this._cbs.oncomment(e);if(this._cbs.oncommentend)this._cbs.oncommentend()};f.prototype.oncdata=function(e){this._updatePosition(1);if(this._options.xmlMode||this._options.recognizeCDATA){if(this._cbs.oncdatastart)this._cbs.oncdatastart();if(this._cbs.ontext)this._cbs.ontext(e);if(this._cbs.oncdataend)this._cbs.oncdataend()}else this.oncomment("[CDATA["+e+"]]")};f.prototype.onerror=function(e){if(this._cbs.onerror)this._cbs.onerror(e)};f.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));if(this._cbs.onend)this._cbs.onend()};f.prototype.reset=function(){if(this._cbs.onreset)this._cbs.onreset();this._tokenizer.reset();this._tagname="";this._attribname="";this._attribs=null;this._stack=[];if(this._cbs.onparserinit)this._cbs.onparserinit(this)};f.prototype.parseComplete=function(e){this.reset();this.end(e)};f.prototype.write=function(e){this._tokenizer.write(e)};f.prototype.end=function(e){this._tokenizer.end(e)};f.prototype.pause=function(){this._tokenizer.pause()};f.prototype.resume=function(){this._tokenizer.resume()};f.prototype.parseChunk=f.prototype.write;f.prototype.done=f.prototype.end;r.exports=f},
11"Tokenizer.js":function(e,t,r){r.exports=em;var n=e("entities/lib/decode_codepoint.js");var i=e("entities/maps/entities.json");var o=e("entities/maps/legacy.json");var s=e("entities/maps/xml.json");var a=0;var l=a++;var u=a++;var f=a++;var c=a++;var h=a++;var d=a++;var p=a++;var g=a++;var m=a++;var O=a++;var v=a++;var y=a++;var b=a++;var w=a++;var x=a++;var S=a++;var _=a++;var k=a++;var Q=a++;var P=a++;var T=a++;var A=a++;var $=a++;var j=a++;var C=a++;var E=a++;var M=a++;var R=a++;var D=a++;var L=a++;var Z=a++;var X=a++;var q=a++;var B=a++;var z=a++;var I=a++;var N=a++;var V=a++;var W=a++;var Y=a++;var U=a++;var G=a++;var F=a++;var H=a++;var K=a++;var J=a++;var ee=a++;var et=a++;var er=a++;var en=a++;var ei=a++;var eo=a++;var es=a++;var ea=a++;var el=a++;var eu=0;var ef=eu++;var ec=eu++;var eh=eu++;function ed(e){return" "===e||"\n"===e||"	"===e||"\f"===e||"\r"===e}function ep(e,t,r){var n=e.toLowerCase();if(e===n)return function(e){if(e===n)this._state=t;else{this._state=r;this._index--}};return function(i){if(i===n||i===e)this._state=t;else{this._state=r;this._index--}}}function eg(e,t){var r=e.toLowerCase();return function(n){if(n===r||n===e)this._state=t;else{this._state=f;this._index--}}}function em(e,t){this._state=l;this._buffer="";this._sectionStart=0;this._index=0;this._bufferOffset=0;this._baseState=l;this._special=ef;this._cbs=t;this._running=true;this._ended=false;this._xmlMode=!!(e&&e.xmlMode);this._decodeEntities=!!(e&&e.decodeEntities)}em.prototype._stateText=function(e){if("<"===e){if(this._index>this._sectionStart)this._cbs.ontext(this._getSection());this._state=u;this._sectionStart=this._index}else if(this._decodeEntities&&this._special===ef&&"&"===e){if(this._index>this._sectionStart)this._cbs.ontext(this._getSection());this._baseState=l;this._state=ei;this._sectionStart=this._index}};em.prototype._stateBeforeTagName=function(e){if("/"===e)this._state=h;else if("<"===e){this._cbs.ontext(this._getSection());this._sectionStart=this._index}else if(">"===e||this._special!==ef||ed(e))this._state=l;else if("!"===e){this._state=x;this._sectionStart=this._index+1}else if("?"===e){this._state=_;this._sectionStart=this._index+1}else{this._state=this._xmlMode||"s"!==e&&"S"!==e?f:Z;this._sectionStart=this._index}};em.prototype._stateInTagName=function(e){if("/"===e||">"===e||ed(e)){this._emitToken("onopentagname");this._state=g;this._index--}};em.prototype._stateBeforeCloseingTagName=function(e){if(ed(e));else if(">"===e)this._state=l;else if(this._special!==ef)if("s"===e||"S"===e)this._state=X;else{this._state=l;this._index--}else{this._state=d;this._sectionStart=this._index}};em.prototype._stateInCloseingTagName=function(e){if(">"===e||ed(e)){this._emitToken("onclosetag");this._state=p;this._index--}};em.prototype._stateAfterCloseingTagName=function(e){if(">"===e){this._state=l;this._sectionStart=this._index+1}};em.prototype._stateBeforeAttributeName=function(e){if(">"===e){this._cbs.onopentagend();this._state=l;this._sectionStart=this._index+1}else if("/"===e)this._state=c;else if(!ed(e)){this._state=m;this._sectionStart=this._index}};em.prototype._stateInSelfClosingTag=function(e){if(">"===e){this._cbs.onselfclosingtag();this._state=l;this._sectionStart=this._index+1}else if(!ed(e)){this._state=g;this._index--}};em.prototype._stateInAttributeName=function(e){if("="===e||"/"===e||">"===e||ed(e)){this._cbs.onattribname(this._getSection());this._sectionStart=-1;this._state=O;this._index--}};em.prototype._stateAfterAttributeName=function(e){if("="===e)this._state=v;else if("/"===e||">"===e){this._cbs.onattribend();this._state=g;this._index--}else if(!ed(e)){this._cbs.onattribend();this._state=m;this._sectionStart=this._index}};em.prototype._stateBeforeAttributeValue=function(e){if('"'===e){this._state=y;this._sectionStart=this._index+1}else if("'"===e){this._state=b;this._sectionStart=this._index+1}else if(!ed(e)){this._state=w;this._sectionStart=this._index;this._index--}};em.prototype._stateInAttributeValueDoubleQuotes=function(e){if('"'===e){this._emitToken("onattribdata");this._cbs.onattribend();this._state=g}else if(this._decodeEntities&&"&"===e){this._emitToken("onattribdata");this._baseState=this._state;this._state=ei;this._sectionStart=this._index}};em.prototype._stateInAttributeValueSingleQuotes=function(e){if("'"===e){this._emitToken("onattribdata");this._cbs.onattribend();this._state=g}else if(this._decodeEntities&&"&"===e){this._emitToken("onattribdata");this._baseState=this._state;this._state=ei;this._sectionStart=this._index}};em.prototype._stateInAttributeValueNoQuotes=function(e){if(ed(e)||">"===e){this._emitToken("onattribdata");this._cbs.onattribend();this._state=g;this._index--}else if(this._decodeEntities&&"&"===e){this._emitToken("onattribdata");this._baseState=this._state;this._state=ei;this._sectionStart=this._index}};em.prototype._stateBeforeDeclaration=function(e){this._state="["===e?A:"-"===e?k:S};em.prototype._stateInDeclaration=function(e){if(">"===e){this._cbs.ondeclaration(this._getSection());this._state=l;this._sectionStart=this._index+1}};em.prototype._stateInProcessingInstruction=function(e){if(">"===e){this._cbs.onprocessinginstruction(this._getSection());this._state=l;this._sectionStart=this._index+1}};em.prototype._stateBeforeComment=function(e){if("-"===e){this._state=Q;this._sectionStart=this._index+1}else this._state=S};em.prototype._stateInComment=function(e){if("-"===e)this._state=P};em.prototype._stateAfterComment1=function(e){if("-"===e)this._state=T;else this._state=Q};em.prototype._stateAfterComment2=function(e){if(">"===e){this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2));this._state=l;this._sectionStart=this._index+1}else if("-"!==e)this._state=Q};em.prototype._stateBeforeCdata1=ep("C",$,S);em.prototype._stateBeforeCdata2=ep("D",j,S);em.prototype._stateBeforeCdata3=ep("A",C,S);em.prototype._stateBeforeCdata4=ep("T",E,S);em.prototype._stateBeforeCdata5=ep("A",M,S);em.prototype._stateBeforeCdata6=function(e){if("["===e){this._state=R;this._sectionStart=this._index+1}else{this._state=S;this._index--}};em.prototype._stateInCdata=function(e){if("]"===e)this._state=D};em.prototype._stateAfterCdata1=function(e){if("]"===e)this._state=L;else this._state=R};em.prototype._stateAfterCdata2=function(e){if(">"===e){this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2));this._state=l;this._sectionStart=this._index+1}else if("]"!==e)this._state=R};em.prototype._stateBeforeSpecial=function(e){if("c"===e||"C"===e)this._state=q;else if("t"===e||"T"===e)this._state=F;else{this._state=f;this._index--}};em.prototype._stateBeforeSpecialEnd=function(e){if(this._special===ec&&("c"===e||"C"===e))this._state=V;else if(this._special===eh&&("t"===e||"T"===e))this._state=ee;else this._state=l};em.prototype._stateBeforeScript1=eg("R",B);em.prototype._stateBeforeScript2=eg("I",z);em.prototype._stateBeforeScript3=eg("P",I);em.prototype._stateBeforeScript4=eg("T",N);em.prototype._stateBeforeScript5=function(e){if("/"===e||">"===e||ed(e))this._special=ec;this._state=f;this._index--};em.prototype._stateAfterScript1=ep("R",W,l);em.prototype._stateAfterScript2=ep("I",Y,l);em.prototype._stateAfterScript3=ep("P",U,l);em.prototype._stateAfterScript4=ep("T",G,l);em.prototype._stateAfterScript5=function(e){if(">"===e||ed(e)){this._special=ef;this._state=d;this._sectionStart=this._index-6;this._index--}else this._state=l};em.prototype._stateBeforeStyle1=eg("Y",H);em.prototype._stateBeforeStyle2=eg("L",K);em.prototype._stateBeforeStyle3=eg("E",J);em.prototype._stateBeforeStyle4=function(e){if("/"===e||">"===e||ed(e))this._special=eh;this._state=f;this._index--};em.prototype._stateAfterStyle1=ep("Y",et,l);em.prototype._stateAfterStyle2=ep("L",er,l);em.prototype._stateAfterStyle3=ep("E",en,l);em.prototype._stateAfterStyle4=function(e){if(">"===e||ed(e)){this._special=ef;this._state=d;this._sectionStart=this._index-5;this._index--}else this._state=l};em.prototype._stateBeforeEntity=ep("#",eo,es);em.prototype._stateBeforeNumericEntity=ep("X",el,ea);em.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?s:i;if(t.hasOwnProperty(e)){this._emitPartial(t[e]);this._sectionStart=this._index+1}}};em.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;if(t>6)t=6;while(t>=2){var r=this._buffer.substr(e,t);if(o.hasOwnProperty(r)){this._emitPartial(o[r]);this._sectionStart+=t+1;return}t--}};em.prototype._stateInNamedEntity=function(e){if(";"===e){this._parseNamedEntityStrict();if(this._sectionStart+1<this._index&&!this._xmlMode)this._parseLegacyEntity();this._state=this._baseState}else if((e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")){if(this._xmlMode);else if(this._sectionStart+1===this._index);else if(this._baseState!==l){if("="!==e)this._parseNamedEntityStrict()}else this._parseLegacyEntity();this._state=this._baseState;this._index--}};em.prototype._decodeNumericEntity=function(e,t){var r=this._sectionStart+e;if(r!==this._index){var i=this._buffer.substring(r,this._index);var o=parseInt(i,t);this._emitPartial(n(o));this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState};em.prototype._stateInNumericEntity=function(e){if(";"===e){this._decodeNumericEntity(2,10);this._sectionStart++}else if(e<"0"||e>"9"){if(this._xmlMode)this._state=this._baseState;else this._decodeNumericEntity(2,10);this._index--}};em.prototype._stateInHexEntity=function(e){if(";"===e){this._decodeNumericEntity(3,16);this._sectionStart++}else if((e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")){if(this._xmlMode)this._state=this._baseState;else this._decodeNumericEntity(3,16);this._index--}};em.prototype._cleanup=function(){if(this._sectionStart<0){this._buffer="";this._bufferOffset+=this._index;this._index=0}else if(this._running){if(this._state===l){if(this._sectionStart!==this._index)this._cbs.ontext(this._buffer.substr(this._sectionStart));this._buffer="";this._bufferOffset+=this._index;this._index=0}else if(this._sectionStart===this._index){this._buffer="";this._bufferOffset+=this._index;this._index=0}else{this._buffer=this._buffer.substr(this._sectionStart);this._index-=this._sectionStart;this._bufferOffset+=this._sectionStart}this._sectionStart=0}};
11em.prototype.write=function(e){if(this._ended)this._cbs.onerror(Error(".write() after done!"));this._buffer+=e;this._parse()};em.prototype._parse=function(){while(this._index<this._buffer.length&&this._running){var e=this._buffer.charAt(this._index);if(this._state===l)this._stateText(e);else if(this._state===u)this._stateBeforeTagName(e);else if(this._state===f)this._stateInTagName(e);else if(this._state===h)this._stateBeforeCloseingTagName(e);else if(this._state===d)this._stateInCloseingTagName(e);else if(this._state===p)this._stateAfterCloseingTagName(e);else if(this._state===c)this._stateInSelfClosingTag(e);else if(this._state===g)this._stateBeforeAttributeName(e);else if(this._state===m)this._stateInAttributeName(e);else if(this._state===O)this._stateAfterAttributeName(e);else if(this._state===v)this._stateBeforeAttributeValue(e);else if(this._state===y)this._stateInAttributeValueDoubleQuotes(e);else if(this._state===b)this._stateInAttributeValueSingleQuotes(e);else if(this._state===w)this._stateInAttributeValueNoQuotes(e);else if(this._state===x)this._stateBeforeDeclaration(e);else if(this._state===S)this._stateInDeclaration(e);else if(this._state===_)this._stateInProcessingInstruction(e);else if(this._state===k)this._stateBeforeComment(e);else if(this._state===Q)this._stateInComment(e);else if(this._state===P)this._stateAfterComment1(e);else if(this._state===T)this._stateAfterComment2(e);else if(this._state===A)this._stateBeforeCdata1(e);else if(this._state===$)this._stateBeforeCdata2(e);else if(this._state===j)this._stateBeforeCdata3(e);else if(this._state===C)this._stateBeforeCdata4(e);else if(this._state===E)this._stateBeforeCdata5(e);else if(this._state===M)this._stateBeforeCdata6(e);else if(this._state===R)this._stateInCdata(e);else if(this._state===D)this._stateAfterCdata1(e);else if(this._state===L)this._stateAfterCdata2(e);else if(this._state===Z)this._stateBeforeSpecial(e);else if(this._state===X)this._stateBeforeSpecialEnd(e);else if(this._state===q)this._stateBeforeScript1(e);else if(this._state===B)this._stateBeforeScript2(e);else if(this._state===z)this._stateBeforeScript3(e);else if(this._state===I)this._stateBeforeScript4(e);else if(this._state===N)this._stateBeforeScript5(e);else if(this._state===V)this._stateAfterScript1(e);else if(this._state===W)this._stateAfterScript2(e);else if(this._state===Y)this._stateAfterScript3(e);else if(this._state===U)this._stateAfterScript4(e);else if(this._state===G)this._stateAfterScript5(e);else if(this._state===F)this._stateBeforeStyle1(e);else if(this._state===H)this._stateBeforeStyle2(e);else if(this._state===K)this._stateBeforeStyle3(e);else if(this._state===J)this._stateBeforeStyle4(e);else if(this._state===ee)this._stateAfterStyle1(e);else if(this._state===et)this._stateAfterStyle2(e);else if(this._state===er)this._stateAfterStyle3(e);else if(this._state===en)this._stateAfterStyle4(e);else if(this._state===ei)this._stateBeforeEntity(e);else if(this._state===eo)this._stateBeforeNumericEntity(e);else if(this._state===es)this._stateInNamedEntity(e);else if(this._state===ea)this._stateInNumericEntity(e);else if(this._state===el)this._stateInHexEntity(e);else this._cbs.onerror(Error("unknown _state"),this._state);this._index++}this._cleanup()};em.prototype.pause=function(){this._running=false};em.prototype.resume=function(){this._running=true;if(this._index<this._buffer.length)this._parse();if(this._ended)this._finish()};em.prototype.end=function(e){if(this._ended)this._cbs.onerror(Error(".end() after done!"));if(e)this.write(e);this._ended=true;if(this._running)this._finish()};em.prototype._finish=function(){if(this._sectionStart<this._index)this._handleTrailingData();this._cbs.onend()};em.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);if(this._state===R||this._state===D||this._state===L)this._cbs.oncdata(e);else if(this._state===Q||this._state===P||this._state===T)this._cbs.oncomment(e);else if(this._state!==es||this._xmlMode)if(this._state!==ea||this._xmlMode)if(this._state!==el||this._xmlMode){if(this._state!==f&&this._state!==g&&this._state!==v&&this._state!==O&&this._state!==m&&this._state!==b&&this._state!==y&&this._state!==w&&this._state!==d)this._cbs.ontext(e)}else{this._decodeNumericEntity(3,16);if(this._sectionStart<this._index){this._state=this._baseState;this._handleTrailingData()}}else{this._decodeNumericEntity(2,10);if(this._sectionStart<this._index){this._state=this._baseState;this._handleTrailingData()}}else{this._parseLegacyEntity();if(this._sectionStart<this._index){this._state=this._baseState;this._handleTrailingData()}}};em.prototype.reset=function(){em.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)};em.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index};em.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)};em.prototype._emitToken=function(e){this._cbs[e](this._getSection());this._sectionStart=-1};em.prototype._emitPartial=function(e){if(this._baseState!==l)this._cbs.onattribdata(e);else this._cbs.ontext(e)}},
11"FeedHandler.js":function(e,t,r){var n=e("domhandler");var i=e("domutils");function o(e,t){this.init(e,t)}e("inherits")(o,n);o.prototype.init=n;function s(e,t){return i.getElementsByTagName(e,t,true)}function a(e,t){return i.getElementsByTagName(e,t,true,1)[0]}function l(e,t,r){return i.getText(i.getElementsByTagName(e,t,r,1)).trim()}function u(e,t,r,n,i){var o=l(r,n,i);if(o)e[t]=o}var f=function(e){return"rss"===e||"feed"===e||"rdf:RDF"===e};o.prototype.onend=function(){var e={},t=a(f,this.dom),r,i;if(t)if("feed"===t.name){i=t.children;e.type="atom";u(e,"id","id",i);u(e,"title","title",i);if((r=a("link",i))&&(r=r.attribs)&&(r=r.href))e.link=r;u(e,"description","subtitle",i);if(r=l("updated",i))e.updated=new Date(r);u(e,"author","email",i,true);e.items=s("entry",i).map(function(e){var t={},r;e=e.children;u(t,"id","id",e);u(t,"title","title",e);if((r=a("link",e))&&(r=r.attribs)&&(r=r.href))t.link=r;if(r=l("summary",e)||l("content",e))t.description=r;if(r=l("updated",e))t.pubDate=new Date(r);return t})}else{i=a("channel",t.children).children;e.type=t.name.substr(0,3);e.id="";u(e,"title","title",i);u(e,"link","link",i);u(e,"description","description",i);if(r=l("lastBuildDate",i))e.updated=new Date(r);u(e,"author","managingEditor",i,true);e.items=s("item",t.children).map(function(e){var t={},r;e=e.children;u(t,"id","guid",e);u(t,"title","title",e);u(t,"link","link",e);u(t,"description","description",e);if(r=l("pubDate",e))t.pubDate=new Date(r);return t})}this.dom=e;n.prototype._handleCallback.call(this,t?null:Error("couldn't find root of feed"))};r.exports=o},
11"Stream.js":function(e,t,r){r.exports=i;var n=e("./WritableStream.js");function i(e){n.call(this,new o(this),e)}e("inherits")(i,n);i.prototype.readable=true;function o(e){this.scope=e}var s=e("../").EVENTS;Object.keys(s).forEach(function(e){if(0===s[e])o.prototype["on"+e]=function(){this.scope.emit(e)};else if(1===s[e])o.prototype["on"+e]=function(t){this.scope.emit(e,t)};else if(2===s[e])o.prototype["on"+e]=function(t,r){this.scope.emit(e,t,r)};else throw Error("wrong number of arguments!")})},
11"WritableStream.js":function(e,t,r){r.exports=a;var n=e("./Parser.js");var i=e("readable-stream").Writable;var o=e("string_decoder").StringDecoder;var s=e("buffer").Buffer;function a(e,t){var r=this._parser=new n(e,t);var s=this._decoder=new o;i.call(this,{decodeStrings:false});this.once("finish",function(){r.end(s.end())})}e("inherits")(a,i);a.prototype._write=function(e,t,r){if(e instanceof s)e=this._decoder.write(e);this._parser.write(e);r()}},
11"ProxyHandler.js":function(e,t,r){r.exports=n;function n(e){this._cbs=e||{}}var i=e("./").EVENTS;Object.keys(i).forEach(function(e){if(0===i[e]){e="on"+e;n.prototype[e]=function(){if(this._cbs[e])this._cbs[e]()}}else if(1===i[e]){e="on"+e;n.prototype[e]=function(t){if(this._cbs[e])this._cbs[e](t)}}else if(2===i[e]){e="on"+e;n.prototype[e]=function(t,r){if(this._cbs[e])this._cbs[e](t,r)}}else throw Error("wrong number of arguments")})},
11"CollectingHandler.js":function(e,t,r){r.exports=n;function n(e){this._cbs=e||{};this.events=[]}var i=e("./").EVENTS;Object.keys(i).forEach(function(e){if(0===i[e]){e="on"+e;n.prototype[e]=function(){this.events.push([e]);if(this._cbs[e])this._cbs[e]()}}else if(1===i[e]){e="on"+e;n.prototype[e]=function(t){this.events.push([e,t]);if(this._cbs[e])this._cbs[e](t)}}else if(2===i[e]){e="on"+e;n.prototype[e]=function(t,r){this.events.push([e,t,r]);if(this._cbs[e])this._cbs[e](t,r)}}else throw Error("wrong number of arguments")});n.prototype.onreset=function(){this.events=[];if(this._cbs.onreset)this._cbs.onreset()};n.prototype.restart=function(){if(this._cbs.onreset)this._cbs.onreset();for(var e=0,t=this.events.length;e<t;e++)if(this._cbs[this.events[e][0]]){var r=this.events[e].length;if(1===r)this._cbs[this.events[e][0]]();else if(2===r)this._cbs[this.events[e][0]](this.events[e][1]);else this._cbs[this.events[e][0]](this.events[e][1],this.events[e][2])}}}}},entities:{lib:{
11"decode_codepoint.js":function(e,t,r){var n=e("../maps/decode.json");r.exports=i;function i(e){if(e>=55296&&e<=57343||e>1114111)return"�";if(e in n)e=n[e];var t="";if(e>65535){e-=65536;t+=String.fromCharCode(e>>>10&1023|55296);e=56320|1023&e}t+=String.fromCharCode(e);return t}},
11"encode.js":function(e,t){var r=s(e("../maps/xml.json")),n=a(r);t.XML=h(r,n);var i=s(e("../maps/entities.json")),o=a(i);t.HTML=h(i,o);function s(e){return Object.keys(e).sort().reduce(function(t,r){t[e[r]]="&"+r+";";return t},{})}function a(e){var t=[],r=[];Object.keys(e).forEach(function(e){if(1===e.length)t.push("\\"+e);else r.push(e)});r.unshift("["+t.join("")+"]");return new RegExp(r.join("|"),"g")}var l=/[^\0-\x7F]/g,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function f(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function c(e){var t=e.charCodeAt(0);var r=e.charCodeAt(1);var n=(t-55296)*1024+r-56320+65536;return"&#x"+n.toString(16).toUpperCase()+";"}function h(e,t){function r(t){return e[t]}return function(e){return e.replace(t,r).replace(u,c).replace(l,f)}}var d=a(r);function p(e){return e.replace(d,f).replace(u,c).replace(l,f)}t.escape=p},
11"decode.js":function(e,t,r){var n=e("../maps/entities.json"),i=e("../maps/legacy.json"),o=e("../maps/xml.json"),s=e("./decode_codepoint.js");var a=u(o),l=u(n);function u(e){var t=Object.keys(e).join("|"),r=h(e);t+="|#[xX][\\da-fA-F]+|#\\d+";var n=new RegExp("&(?:"+t+");","g");return function(e){return String(e).replace(n,r)}}var f=function(){var e=Object.keys(i).sort(c);var t=Object.keys(n).sort(c);for(var r=0,o=0;r<t.length;r++)if(e[o]===t[r]){t[r]+=";?";o++}else t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=h(n);function l(e){if(";"!==e.substr(-1))e+=";";return a(e)}return function(e){return String(e).replace(s,l)}}();function c(e,t){return e<t?1:-1}function h(e){return function(t){if("#"===t.charAt(1)){if("X"===t.charAt(2)||"x"===t.charAt(2))return s(parseInt(t.substr(3),16));return s(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]}}r.exports={XML:a,HTML:f,HTMLStrict:l}}},maps:{
11"decode.json":function(e,t,r){r.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},
11"entities.json":function(e,t,r){r.exports={Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",b
11sime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\uD835\uDD20",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"\uD835\uDD54",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"\xa9",COPY:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"\xca",ecirc:"\xea",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18
11:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ä¢",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"\uD835\uDCBD",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"⁣",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",Ifr:"ℑ",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"Ä«",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Ä®",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"È·",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Ð¥",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"â©¿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"â
11‹–",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ä¿",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"â§«",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"â©»",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",midast:"*",midcir:"â«°",mid:"∣",middot:"\xb7",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:"\xa0",nopf:"\uD835\uDD5F",Nopf:"ℕ",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"â
11‹ ",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",Ocirc:"\xd4",ocirc:"\xf4",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"\xb6",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",popf:"\uD835\uDD61",Popf:"ℙ",pound:"\xa3",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",Qopf:"ℚ",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"\xae",REG:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rf
11isht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"\uD835\uDCC7",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:"	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickS
11pace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"\xd7",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",yuml:"\xff",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"\uD835\uDD37",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",Zopf:"ℤ",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"}},
11"legacy.json":function(e,t,r){r.exports={Aacute:"\xc1",aacute:"\xe1",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",AElig:"\xc6",aelig:"\xe6",Agrave:"\xc0",agrave:"\xe0",amp:"&",AMP:"&",Aring:"\xc5",aring:"\xe5",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",brvbar:"\xa6",Ccedil:"\xc7",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",Eacute:"\xc9",eacute:"\xe9",Ecirc:"\xca",ecirc:"\xea",Egrave:"\xc8",egrave:"\xe8",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",Iacute:"\xcd",iacute:"\xed",Icirc:"\xce",icirc:"\xee",iexcl:"\xa1",Igrave:"\xcc",igrave:"\xec",iquest:"\xbf",Iuml:"\xcf",iuml:"\xef",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",Ntilde:"\xd1",ntilde:"\xf1",Oacute:"\xd3",oacute:"\xf3",Ocirc:"\xd4",ocirc:"\xf4",Ograve:"\xd2",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",Oslash:"\xd8",oslash:"\xf8",Otilde:"\xd5",otilde:"\xf5",Ouml:"\xd6",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",THORN:"\xde",thorn:"\xfe",times:"\xd7",Uacute:"\xda",uacute:"\xfa",Ucirc:"\xdb",ucirc:"\xfb",Ugrave:"\xd9",ugrave:"\xf9",uml:"\xa8",Uuml:"\xdc",uuml:"\xfc",Yacute:"\xdd",yacute:"\xfd",yen:"\xa5",yuml:"\xff"}},
11"xml.json":function(e,t,r){r.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}},
11"package.json":function(e,t,r){r.exports={name:"entities",version:"1.1.2",main:"./index.js"}},
11"index.js":function(e,t){var r=e("./lib/encode.js"),n=e("./lib/decode.js");t.decode=function(e,t){return(!t||t<=0?n.XML:n.HTML)(e)};t.decodeStrict=function(e,t){return(!t||t<=0?n.XML:n.HTMLStrict)(e)};t.encode=function(e,t){return(!t||t<=0?r.XML:r.HTML)(e)};t.encodeXML=r.XML;t.encodeHTML4=t.encodeHTML5=t.encodeHTML=r.HTML;t.decodeXML=t.decodeXMLStrict=n.XML;t.decodeHTML4=t.decodeHTML5=t.decodeHTML=n.HTML;t.decodeHTML4Strict=t.decodeHTML5Strict=t.decodeHTMLStrict=n.HTMLStrict;t.escape=r.escape}},inherits:{
11"package.json":function(e,t,r){r.exports={name:"inherits",version:"2.0.4",browser:"./inherits_browser.js",main:"./inherits.js"}},
11"inherits_browser.js":function(e,t,r){if("function"==typeof Object.create)r.exports=function(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}};else r.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e}}}},"meteor-node-stubs":{deps:{
11"events.js":function(e){e("events/")},
11"buffer.js":function(e){e("buffer/")},
11"util.js":function(e){e("util/util.js")},
11"os.js":function(e){e("os-browserify/browser.js")},
11"process.js":function(e){e("process/browser.js")}},node_modules:{events:{
11"package.json":function(e,t,r){r.exports={name:"events",version:"3.3.0",main:"./events.js"}},
11"events.js":function(e,t,r){"use strict";var n="object"==typeof Reflect?Reflect:null;var i=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};var o;o=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function s(e){if(console&&console.warn)console.warn(e)}var a=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}r.exports=l;r.exports.once=b;l.EventEmitter=l;l.prototype._events=void 0;l.prototype._eventsCount=0;l.prototype._maxListeners=void 0;var u=10;function f(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(l,"defaultMaxListeners",{enumerable:true,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}});l.init=function(){if(void 0===this._events||this._events===Object.getPrototypeOf(this)._events){this._events=Object.create(null);this._eventsCount=0}this._maxListeners=this._maxListeners||void 0};l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");this._maxListeners=e;return this};function c(e){if(void 0===e._maxListeners)return l.defaultMaxListeners;return e._maxListeners}l.prototype.getMaxListeners=function(){return c(this)};l.prototype.emit=function(e){var t=[];for(var r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e;var o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return false;if(n){var s;if(t.length>0)s=t[0];if(s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));a.context=s;throw a}var l=o[e];if(void 0===l)return false;if("function"==typeof l)i(l,this,t);else{var u=l.length;var f=O(l,u);for(var r=0;r<u;++r)i(f[r],this,t)}return true};function h(e,t,r,n){var i;var o;var a;f(r);o=e._events;if(void 0===o){o=e._events=Object.create(null);e._eventsCount=0}else{if(void 0!==o.newListener){e.emit("newListener",t,r.listener?r.listener:r);o=e._events}a=o[t]}if(void 0===a){a=o[t]=r;++e._eventsCount}else{if("function"==typeof a)a=o[t]=n?[r,a]:[a,r];else if(n)a.unshift(r);else a.push(r);i=c(e);if(i>0&&a.length>i&&!a.warned){a.warned=true;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning";l.emitter=e;l.type=t;l.count=a.length;s(l)}}return e}l.prototype.addListener=function(e,t){return h(this,e,t,false)};l.prototype.on=l.prototype.addListener;l.prototype.prependListener=function(e,t){return h(this,e,t,true)};function d(){if(!this.fired){this.target.removeListener(this.type,this.wrapFn);this.fired=true;if(0===arguments.length)return this.listener.call(this.target);return this.listener.apply(this.target,arguments)}}function p(e,t,r){var n={fired:false,wrapFn:void 0,target:e,type:t,listener:r};var i=d.bind(n);i.listener=r;n.wrapFn=i;return i}l.prototype.once=function(e,t){f(t);this.on(e,p(this,e,t));return this};l.prototype.prependOnceListener=function(e,t){f(t);this.prependListener(e,p(this,e,t));return this};l.prototype.removeListener=function(e,t){var r,n,i,o,s;f(t);n=this._events;if(void 0===n)return this;r=n[e];if(void 0===r)return this;if(r===t||r.listener===t)if(0===--this._eventsCount)this._events=Object.create(null);else{delete n[e];if(n.removeListener)this.emit("removeListener",e,r.listener||t)}else if("function"!=typeof r){i=-1;for(o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener;i=o;break}if(i<0)return this;if(0===i)r.shift();else v(r,i);if(1===r.length)n[e]=r[0];if(void 0!==n.removeListener)this.emit("removeListener",e,s||t)}return this};l.prototype.off=l.prototype.removeListener;l.prototype.removeAllListeners=function(e){var t,r,n;r=this._events;if(void 0===r)return this;if(void 0===r.removeListener){if(0===arguments.length){this._events=Object.create(null);this._eventsCount=0}else if(void 0!==r[e])if(0===--this._eventsCount)this._events=Object.create(null);else delete r[e];return this}if(0===arguments.length){var i=Object.keys(r);var o;for(n=0;n<i.length;++n){o=i[n];if("removeListener"!==o)this.removeAllListeners(o)}this.removeAllListeners("removeListener");this._events=Object.create(null);this._eventsCount=0;return this}t=r[e];if("function"==typeof t)this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this};function g(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];if(void 0===i)return[];if("function"==typeof i)return r?[i.listener||i]:[i];return r?y(i):O(i,i.length)}l.prototype.listeners=function(e){return g(this,e,true)};l.prototype.rawListeners=function(e){return g(this,e,false)};l.listenerCount=function(e,t){if("function"==typeof e.listenerCount)return e.listenerCount(t);return m.call(e,t)};l.prototype.listenerCount=m;function m(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}l.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]};function O(e,t){var r=new Array(t);for(var n=0;n<t;++n)r[n]=e[n];return r}function v(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function y(e){var t=new Array(e.length);for(var r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function b(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o);n(r)}function o(){if("function"==typeof e.removeListener)e.removeListener("error",i);r([].slice.call(arguments))}x(e,t,o,{once:true});if("error"!==t)w(e,i,{once:true})})}function w(e,t,r){if("function"==typeof e.on)x(e,"error",t,r)}function x(e,t,r,n){if("function"==typeof e.on)if(n.once)e.once(t,r);else e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){if(n.once)e.removeEventListener(t,i);r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}}},buffer:{
11"package.json":function(e,t,r){r.exports={name:"buffer",version:"5.7.1",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("base64-js");var i=e("ieee754");var o="function"==typeof Symbol&&"function"==typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;t.Buffer=u;t.SlowBuffer=b;t.INSPECT_MAX_BYTES=50;var s=0x7fffffff;t.kMaxLength=s;u.TYPED_ARRAY_SUPPORT=a();if(!u.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&"function"==typeof console.error)console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1);var t={foo:function(){return 42}};Object.setPrototypeOf(t,Uint8Array.prototype);Object.setPrototypeOf(e,t);return 42===e.foo()}catch(e){return false}}Object.defineProperty(u.prototype,"parent",{enumerable:true,get:function(){if(!u.isBuffer(this))return;return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:true,get:function(){if(!u.isBuffer(this))return;return this.byteOffset}});function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);Object.setPrototypeOf(t,u.prototype);return t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return f(e,t,r)}u.poolSize=8192;function f(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return m(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return O(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return O(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);var i=v(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return f(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e,t,r){c(e);if(e<=0)return l(e);if(void 0!==t)return"string"==typeof r?l(e).fill(t,r):l(e).fill(t);return l(e)}u.alloc=function(e,t,r){return h(e,t,r)};function d(e){c(e);return l(e<0?0:0|y(e))}u.allocUnsafe=function(e){return d(e)};u.allocUnsafeSlow=function(e){return d(e)};function p(e,t){if("string"!=typeof t||""===t)t="utf8";if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|w(e,t);var n=l(r);var i=n.write(e,t);if(i!==r)n=n.slice(0,i);return n}function g(e){var t=e.length<0?0:0|y(e.length);var r=l(t);for(var n=0;n<t;n+=1)r[n]=255&e[n];return r}function m(e){if(H(e,Uint8Array)){var t=new Uint8Array(e);return O(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function O(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);Object.setPrototypeOf(n,u.prototype);return n}function v(e){if(u.isBuffer(e)){var t=0|y(e.length);var r=l(t);if(0===r.length)return r;e.copy(r,0,0,t);return r}if(void 0!==e.length){if("number"!=typeof e.length||K(e.length))return l(0);return g(e)}if("Buffer"===e.type&&Array.isArray(e.data))return g(e.data)}function y(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function b(e){if(+e!=e)e=0;return u.alloc(+e)}u.isBuffer=function(e){return null!=e&&true===e._isBuffer&&e!==u.prototype};u.compare=function(e,t){if(H(e,Uint8Array))e=u.from(e,e.offset,e.byteLength);if(H(t,Uint8Array))t=u.from(t,t.offset,t.byteLength);if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;var r=e.length;var n=t.length;for(var i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i];n=t[i];break}if(r<n)return -1;if(n<r)return 1;return 0};u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t){t=0;for(r=0;r<e.length;++r)t+=e[r].length}var n=u.allocUnsafe(t);var i=0;for(r=0;r<e.length;++r){var o=e[r];if(H(o,Uint8Array))if(i+o.length>n.length)u.from(o).copy(n,i);else Uint8Array.prototype.set.call(n,o,i);else if(u.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function w(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length;var n=arguments.length>2&&true===arguments[2];if(!n&&0===r)return 0;var i=false;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(i)return n?-1:W(e).length;t=(""+t).toLowerCase();i=true}}u.byteLength=w;function x(e,t,r){var n=false;if(void 0===t||t<0)t=0;if(t>this.length)return"";if(void 0===r||r>this.length)r=this.length;if(r<=0)return"";r>>>=0;t>>>=0;if(r<=t)return"";if(!e)e="utf8";while(true)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return D(this,t,r);case"base64":return j(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}u.prototype._isBuffer=true;function S(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this};u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4){S(this,t,t+3);S(this,t+1,t+2)}return this};u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8){S(this,t,t+7);S(this,t+1,t+6);
11S(this,t+2,t+5);S(this,t+3,t+4)}return this};u.prototype.toString=function(){var e=this.length;if(0===e)return"";if(0===arguments.length)return C(this,0,e);return x.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(this===e)return true;return 0===u.compare(this,e)};u.prototype.inspect=function(){var e="";var r=t.INSPECT_MAX_BYTES;e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim();if(this.length>r)e+=" ... ";return"<Buffer "+e+">"};if(o)u.prototype[o]=u.prototype.inspect;u.prototype.compare=function(e,t,r,n,i){if(H(e,Uint8Array))e=u.from(e,e.offset,e.byteLength);if(!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t)t=0;if(void 0===r)r=e?e.length:0;if(void 0===n)n=0;if(void 0===i)i=this.length;if(t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;t>>>=0;r>>>=0;n>>>=0;i>>>=0;if(this===e)return 0;var o=i-n;var s=r-t;var a=Math.min(o,s);var l=this.slice(n,i);var f=e.slice(t,r);for(var c=0;c<a;++c)if(l[c]!==f[c]){o=l[c];s=f[c];break}if(o<s)return -1;if(s<o)return 1;return 0};function _(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r){n=r;r=0}else if(r>0x7fffffff)r=0x7fffffff;else if(r<-0x80000000)r=-0x80000000;r*=1;if(K(r))r=i?0:e.length-1;if(r<0)r=e.length+r;if(r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t)t=u.from(t,n);if(u.isBuffer(t)){if(0===t.length)return -1;return k(e,t,r,n,i)}if("number"==typeof t){t&=255;if("function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return k(e,[t],r,n,i)}throw new TypeError("val must be string, number or Buffer")}function k(e,t,r,n,i){var o=1;var s=e.length;var a=t.length;if(void 0!==n){n=String(n).toLowerCase();if("ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n){if(e.length<2||t.length<2)return -1;o=2;s/=2;a/=2;r/=2}}function l(e,t){if(1===o)return e[t];return e.readUInt16BE(t*o)}var u;if(i){var f=-1;for(u=r;u<s;u++)if(l(e,u)===l(t,-1===f?0:u-f)){if(-1===f)f=u;if(u-f+1===a)return f*o}else{if(-1!==f)u-=u-f;f=-1}}else{if(r+a>s)r=s-a;for(u=r;u>=0;u--){var c=true;for(var h=0;h<a;h++)if(l(e,u+h)!==l(t,h)){c=false;break}if(c)return u}}return -1}u.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)};u.prototype.indexOf=function(e,t,r){return _(this,e,t,r,true)};u.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,false)};function Q(e,t,r,n){r=Number(r)||0;var i=e.length-r;if(n){n=Number(n);if(n>i)n=i}else n=i;var o=t.length;if(n>o/2)n=o/2;for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(K(a))break;e[r+s]=a}return s}function P(e,t,r,n){return F(W(t,e.length-r),e,r,n)}function T(e,t,r,n){return F(Y(t),e,r,n)}function A(e,t,r,n){return F(G(t),e,r,n)}function $(e,t,r,n){return F(U(t,e.length-r),e,r,n)}u.prototype.write=function(e,t,r,n){if(void 0===t){n="utf8";r=this.length;t=0}else if(void 0===r&&"string"==typeof t){n=t;r=this.length;t=0}else if(isFinite(t)){t>>>=0;if(isFinite(r)){r>>>=0;if(void 0===n)n="utf8"}else{n=r;r=void 0}}else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if(void 0===r||r>i)r=i;if(e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");if(!n)n="utf8";var o=false;for(;;)switch(n){case"hex":return Q(this,e,t,r);case"utf8":case"utf-8":return P(this,e,t,r);case"ascii":case"latin1":case"binary":return T(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();o=true}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(e,t,r){if(0===t&&r===e.length)return n.fromByteArray(e);return n.fromByteArray(e.slice(t,r))}function C(e,t,r){r=Math.min(e.length,r);var n=[];var i=t;while(i<r){var o=e[i];var s=null;var a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){var l,u,f,c;switch(a){case 1:if(o<128)s=o;break;case 2:l=e[i+1];if((192&l)===128){c=(31&o)<<6|63&l;if(c>127)s=c}break;case 3:l=e[i+1];u=e[i+2];if((192&l)===128&&(192&u)===128){c=(15&o)<<12|(63&l)<<6|63&u;if(c>2047&&(c<55296||c>57343))s=c}break;case 4:l=e[i+1];u=e[i+2];f=e[i+3];if((192&l)===128&&(192&u)===128&&(192&f)===128){c=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&f;if(c>65535&&c<1114112)s=c}}}if(null===s){s=65533;a=1}else if(s>65535){s-=65536;n.push(s>>>10&1023|55296);s=56320|1023&s}n.push(s);i+=a}return M(n)}var E=4096;function M(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var r="";var n=0;while(n<t)r+=String.fromCharCode.apply(String,e.slice(n,n+=E));return r}function R(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function D(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function L(e,t,r){var n=e.length;if(!t||t<0)t=0;if(!r||r<0||r>n)r=n;var i="";for(var o=t;o<r;++o)i+=J[e[o]];return i}function Z(e,t,r){var n=e.slice(t,r);var i="";for(var o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}u.prototype.slice=function(e,t){var r=this.length;e=~~e;t=void 0===t?r:~~t;if(e<0){e+=r;if(e<0)e=0}else if(e>r)e=r;if(t<0){t+=r;
11if(t<0)t=0}else if(t>r)t=r;if(t<e)t=e;var n=this.subarray(e,t);Object.setPrototypeOf(n,u.prototype);return n};function X(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0;t>>>=0;if(!r)X(e,t,this.length);var n=this[e];var i=1;var o=0;while(++o<t&&(i*=256))n+=this[e+o]*i;return n};u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0;t>>>=0;if(!r)X(e,t,this.length);var n=this[e+--t];var i=1;while(t>0&&(i*=256))n+=this[e+--t]*i;return n};u.prototype.readUint8=u.prototype.readUInt8=function(e,t){e>>>=0;if(!t)X(e,1,this.length);return this[e]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){e>>>=0;if(!t)X(e,2,this.length);return this[e]|this[e+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){e>>>=0;if(!t)X(e,2,this.length);return this[e]<<8|this[e+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){e>>>=0;if(!t)X(e,4,this.length);return(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){e>>>=0;if(!t)X(e,4,this.length);return 0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])};u.prototype.readIntLE=function(e,t,r){e>>>=0;t>>>=0;if(!r)X(e,t,this.length);var n=this[e];var i=1;var o=0;while(++o<t&&(i*=256))n+=this[e+o]*i;i*=128;if(n>=i)n-=Math.pow(2,8*t);return n};u.prototype.readIntBE=function(e,t,r){e>>>=0;t>>>=0;if(!r)X(e,t,this.length);var n=t;var i=1;var o=this[e+--n];while(n>0&&(i*=256))o+=this[e+--n]*i;i*=128;if(o>=i)o-=Math.pow(2,8*t);return o};u.prototype.readInt8=function(e,t){e>>>=0;if(!t)X(e,1,this.length);if(!(128&this[e]))return this[e];return(255-this[e]+1)*-1};u.prototype.readInt16LE=function(e,t){e>>>=0;if(!t)X(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r};u.prototype.readInt16BE=function(e,t){e>>>=0;if(!t)X(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r};u.prototype.readInt32LE=function(e,t){e>>>=0;if(!t)X(e,4,this.length);return this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};u.prototype.readInt32BE=function(e,t){e>>>=0;if(!t)X(e,4,this.length);return this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};u.prototype.readFloatLE=function(e,t){e>>>=0;if(!t)X(e,4,this.length);return i.read(this,e,true,23,4)};u.prototype.readFloatBE=function(e,t){e>>>=0;if(!t)X(e,4,this.length);return i.read(this,e,false,23,4)};u.prototype.readDoubleLE=function(e,t){e>>>=0;if(!t)X(e,8,this.length);return i.read(this,e,true,52,8)};u.prototype.readDoubleBE=function(e,t){e>>>=0;if(!t)X(e,8,this.length);return i.read(this,e,false,52,8)};function q(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){e*=1;t>>>=0;r>>>=0;if(!n){var i=Math.pow(2,8*r)-1;q(this,e,t,r,i,0)}var o=1;var s=0;this[t]=255&e;while(++s<r&&(o*=256))this[t+s]=e/o&255;return t+r};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){e*=1;t>>>=0;r>>>=0;if(!n){var i=Math.pow(2,8*r)-1;q(this,e,t,r,i,0)}var o=r-1;var s=1;this[t+o]=255&e;while(--o>=0&&(s*=256))this[t+o]=e/s&255;return t+r};u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,1,255,0);this[t]=255&e;return t+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,2,65535,0);this[t]=255&e;this[t+1]=e>>>8;return t+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,2,65535,0);this[t]=e>>>8;this[t+1]=255&e;return t+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,4,0xffffffff,0);this[t+3]=e>>>24;this[t+2]=e>>>16;this[t+1]=e>>>8;this[t]=255&e;return t+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,4,0xffffffff,0);this[t]=e>>>24;this[t+1]=e>>>16;this[t+2]=e>>>8;this[t+3]=255&e;return t+4};u.prototype.writeIntLE=function(e,t,r,n){e*=1;t>>>=0;if(!n){var i=Math.pow(2,8*r-1);q(this,e,t,r,i-1,-i)}var o=0;var s=1;var a=0;this[t]=255&e;while(++o<r&&(s*=256)){if(e<0&&0===a&&0!==this[t+o-1])a=1;this[t+o]=(e/s|0)-a&255}return t+r};u.prototype.writeIntBE=function(e,t,r,n){e*=1;t>>>=0;if(!n){var i=Math.pow(2,8*r-1);q(this,e,t,r,i-1,-i)}var o=r-1;var s=1;var a=0;this[t+o]=255&e;while(--o>=0&&(s*=256)){if(e<0&&0===a&&0!==this[t+o+1])a=1;this[t+o]=(e/s|0)-a&255}return t+r};u.prototype.writeInt8=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,1,127,-128);if(e<0)e=255+e+1;this[t]=255&e;return t+1};u.prototype.writeInt16LE=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,2,32767,-32768);this[t]=255&e;this[t+1]=e>>>8;return t+2};u.prototype.writeInt16BE=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,2,32767,-32768);this[t]=e>>>8;this[t+1]=255&e;return t+2};u.prototype.writeInt32LE=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,4,0x7fffffff,-0x80000000);this[t]=255&e;this[t+1]=e>>>8;this[t+2]=e>>>16;this[t+3]=e>>>24;return t+4};u.prototype.writeInt32BE=function(e,t,r){e*=1;t>>>=0;if(!r)q(this,e,t,4,0x7fffffff,-0x80000000);if(e<0)e=0xffffffff+e+1;this[t]=e>>>24;this[t+1]=e>>>16;this[t+2]=e>>>8;this[t+3]=255&e;return t+4};function B(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(e,t,r,n,o){t*=1;r>>>=0;if(!o)B(e,t,r,4,34028234663852886e22,-34028234663852886e22);i.write(e,t,r,n,23,4);return r+4}u.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,true,r)};u.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,false,r)};function I(e,t,r,n,o){t*=1;r>>>=0;if(!o)B(e,t,r,8,17976931348623157e292,-17976931348623157e292);i.write(e,t,r,n,52,8);return r+8}u.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,true,r)};u.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,false,r)};u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(!r)r=0;
11if(!n&&0!==n)n=this.length;if(t>=e.length)t=e.length;if(!t)t=0;if(n>0&&n<r)n=r;if(n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");if(n>this.length)n=this.length;if(e.length-t<n-r)n=e.length-t+r;var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i};u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t){n=t;t=0;r=this.length}else if("string"==typeof r){n=r;r=this.length}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);if("utf8"===n&&i<128||"latin1"===n)e=i}}else if("number"==typeof e)e&=255;else if("boolean"==typeof e)e=Number(e);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t>>>=0;r=void 0===r?this.length:r>>>0;if(!e)e=0;var o;if("number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=u.isBuffer(e)?e:u.from(e,n);var a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var N=/[^+/0-9A-Za-z-_]/g;function V(e){e=e.split("=")[0];e=e.trim().replace(N,"");if(e.length<2)return"";while(e.length%4!==0)e+="=";return e}function W(e,t){t=t||1/0;var r;var n=e.length;var i=null;var o=[];for(var s=0;s<n;++s){r=e.charCodeAt(s);if(r>55295&&r<57344){if(!i){if(r>56319){if((t-=3)>-1)o.push(239,191,189);continue}if(s+1===n){if((t-=3)>-1)o.push(239,191,189);continue}i=r;continue}if(r<56320){if((t-=3)>-1)o.push(239,191,189);i=r;continue}r=(i-55296<<10|r-56320)+65536}else if(i){if((t-=3)>-1)o.push(239,191,189)}i=null;if(r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw new Error("Invalid code point")}return o}function Y(e){var t=[];for(var r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function U(e,t){var r,n,i;var o=[];for(var s=0;s<e.length;++s){if((t-=2)<0)break;r=e.charCodeAt(s);n=r>>8;i=r%256;o.push(i);o.push(n)}return o}function G(e){return n.toByteArray(V(e))}function F(e,t,r,n){for(var i=0;i<n;++i){if(i+r>=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!==e}var J=function(){var e="0123456789abcdef";var t=new Array(256);for(var r=0;r<16;++r){var n=16*r;for(var i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}()}},"base64-js":{
11"package.json":function(e,t,r){r.exports={name:"base64-js",version:"1.5.1",main:"index.js"}},
11"index.js":function(e,t){"use strict";t.byteLength=u;t.toByteArray=c;t.fromByteArray=p;var r=[];var n=[];var i="undefined"!=typeof Uint8Array?Uint8Array:Array;var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var s=0,a=o.length;s<a;++s){r[s]=o[s];n[o.charCodeAt(s)]=s}n["-".charCodeAt(0)]=62;n["_".charCodeAt(0)]=63;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");if(-1===r)r=t;var n=r===t?0:4-r%4;return[r,n]}function u(e){var t=l(e);var r=t[0];var n=t[1];return(r+n)*3/4-n}function f(e,t,r){return(t+r)*3/4-r}function c(e){var t;var r=l(e);var o=r[0];var s=r[1];var a=new i(f(e,o,s));var u=0;var c=s>0?o-4:o;var h;for(h=0;h<c;h+=4){t=n[e.charCodeAt(h)]<<18|n[e.charCodeAt(h+1)]<<12|n[e.charCodeAt(h+2)]<<6|n[e.charCodeAt(h+3)];a[u++]=t>>16&255;a[u++]=t>>8&255;a[u++]=255&t}if(2===s){t=n[e.charCodeAt(h)]<<2|n[e.charCodeAt(h+1)]>>4;a[u++]=255&t}if(1===s){t=n[e.charCodeAt(h)]<<10|n[e.charCodeAt(h+1)]<<4|n[e.charCodeAt(h+2)]>>2;a[u++]=t>>8&255;a[u++]=255&t}return a}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function d(e,t,r){var n;var i=[];for(var o=t;o<r;o+=3){n=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]);i.push(h(n))}return i.join("")}function p(e){var t;var n=e.length;var i=n%3;var o=[];var s=16383;for(var a=0,l=n-i;a<l;a+=s)o.push(d(e,a,a+s>l?l:a+s));if(1===i){t=e[n-1];o.push(r[t>>2]+r[t<<4&63]+"==")}else if(2===i){t=(e[n-2]<<8)+e[n-1];o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")}return o.join("")}}},ieee754:{
11"package.json":function(e,t,r){r.exports={name:"ieee754",version:"1.2.1",main:"index.js"}},
11"index.js":function(e,t){t.read=function(e,t,r,n,i){var o,s;var a=8*i-n-1;var l=(1<<a)-1;var u=l>>1;var f=-7;var c=r?i-1:0;var h=r?-1:1;var d=e[t+c];c+=h;o=d&(1<<-f)-1;d>>=-f;f+=a;for(;f>0;o=256*o+e[t+c],c+=h,f-=8);s=o&(1<<-f)-1;o>>=-f;f+=n;for(;f>0;s=256*s+e[t+c],c+=h,f-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n);o-=u}return(d?-1:1)*s*Math.pow(2,o-n)};t.write=function(e,t,r,n,i,o){var s,a,l;var u=8*o-i-1;var f=(1<<u)-1;var c=f>>1;var h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0;var d=n?0:o-1;var p=n?1:-1;var g=t<0||0===t&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===1/0){a=isNaN(t)?1:0;s=f}else{s=Math.floor(Math.log(t)/Math.LN2);if(t*(l=Math.pow(2,-s))<1){s--;l*=2}if(s+c>=1)t+=h/l;else t+=h*Math.pow(2,1-c);if(t*l>=2){s++;l/=2}if(s+c>=f){a=0;s=f}else if(s+c>=1){a=(t*l-1)*Math.pow(2,i);s+=c}else{a=t*Math.pow(2,c-1)*Math.pow(2,i);s=0}}for(;i>=8;e[r+d]=255&a,d+=p,a/=256,i-=8);s=s<<i|a;u+=i;for(;u>0;e[r+d]=255&s,d+=p,s/=256,u-=8);e[r+d-p]|=128*g}}},util:{
11"package.json":function(e,t,r){r.exports={name:"util",version:"0.12.5",browser:{"./support/isBuffer.js":"./support/isBufferBrowser.js"},main:"./util.js"}},support:{"isBuffer.js":"/node_modules/meteor-node-stubs/node_modules/util/support/isBufferBrowser.js",
11"types.js":function(e,t){"use strict";var r=e("is-arguments");var n=e("is-generator-function");var i=e("which-typed-array");var o=e("is-typed-array");function s(e){return e.call.bind(e)}var a="undefined"!=typeof BigInt;var l="undefined"!=typeof Symbol;var u=s(Object.prototype.toString);var f=s(Number.prototype.valueOf);var c=s(String.prototype.valueOf);var h=s(Boolean.prototype.valueOf);if(a)var d=s(BigInt.prototype.valueOf);if(l)var p=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return false;try{t(e);return true}catch(e){return false}}t.isArgumentsObject=r;t.isGeneratorFunction=n;t.isTypedArray=o;function m(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}t.isPromise=m;function O(e){if("undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView)return ArrayBuffer.isView(e);return o(e)||q(e)}t.isArrayBufferView=O;function v(e){return"Uint8Array"===i(e)}t.isUint8Array=v;function y(e){return"Uint8ClampedArray"===i(e)}t.isUint8ClampedArray=y;function b(e){return"Uint16Array"===i(e)}t.isUint16Array=b;function w(e){return"Uint32Array"===i(e)}t.isUint32Array=w;function x(e){return"Int8Array"===i(e)}t.isInt8Array=x;function S(e){return"Int16Array"===i(e)}t.isInt16Array=S;function _(e){return"Int32Array"===i(e)}t.isInt32Array=_;function k(e){return"Float32Array"===i(e)}t.isFloat32Array=k;function Q(e){return"Float64Array"===i(e)}t.isFloat64Array=Q;function P(e){return"BigInt64Array"===i(e)}t.isBigInt64Array=P;function T(e){return"BigUint64Array"===i(e)}t.isBigUint64Array=T;function A(e){return"[object Map]"===u(e)}A.working="undefined"!=typeof Map&&A(new Map);function $(e){if("undefined"==typeof Map)return false;return A.working?A(e):e instanceof Map}t.isMap=$;function j(e){return"[object Set]"===u(e)}j.working="undefined"!=typeof Set&&j(new Set);function C(e){if("undefined"==typeof Set)return false;return j.working?j(e):e instanceof Set}t.isSet=C;function E(e){return"[object WeakMap]"===u(e)}E.working="undefined"!=typeof WeakMap&&E(new WeakMap);function M(e){if("undefined"==typeof WeakMap)return false;return E.working?E(e):e instanceof WeakMap}t.isWeakMap=M;function R(e){return"[object WeakSet]"===u(e)}R.working="undefined"!=typeof WeakSet&&R(new WeakSet);function D(e){return R(e)}t.isWeakSet=D;function L(e){return"[object ArrayBuffer]"===u(e)}L.working="undefined"!=typeof ArrayBuffer&&L(new ArrayBuffer);function Z(e){if("undefined"==typeof ArrayBuffer)return false;return L.working?L(e):e instanceof ArrayBuffer}t.isArrayBuffer=Z;function X(e){return"[object DataView]"===u(e)}X.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&X(new DataView(new ArrayBuffer(1),0,1));function q(e){if("undefined"==typeof DataView)return false;return X.working?X(e):e instanceof DataView}t.isDataView=q;var B="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function z(e){return"[object SharedArrayBuffer]"===u(e)}function I(e){if(void 0===B)return false;if(void 0===z.working)z.working=z(new B);return z.working?z(e):e instanceof B}t.isSharedArrayBuffer=I;function N(e){return"[object AsyncFunction]"===u(e)}t.isAsyncFunction=N;function V(e){return"[object Map Iterator]"===u(e)}t.isMapIterator=V;function W(e){return"[object Set Iterator]"===u(e)}t.isSetIterator=W;function Y(e){return"[object Generator]"===u(e)}t.isGeneratorObject=Y;function U(e){return"[object WebAssembly.Module]"===u(e)}t.isWebAssemblyCompiledModule=U;function G(e){return g(e,f)}t.isNumberObject=G;function F(e){return g(e,c)}t.isStringObject=F;function H(e){return g(e,h)}t.isBooleanObject=H;function K(e){return a&&g(e,d)}t.isBigIntObject=K;function J(e){return l&&g(e,p)}t.isSymbolObject=J;function ee(e){return G(e)||F(e)||H(e)||K(e)||J(e)}t.isBoxedPrimitive=ee;function et(e){return"undefined"!=typeof Uint8Array&&(Z(e)||I(e))}t.isAnyArrayBuffer=et;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:false,value:function(){throw new Error(e+" is not supported in userland")}})})},
11"isBufferBrowser.js":function(e,t,r){r.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}}},
11"util.js":function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){var t=Object.keys(e);var r={};for(var n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r};var i=/%[sdj%]/g;t.format=function(e){if(!S(e)){var t=[];for(var r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}var r=1;var n=arguments;var o=n.length;var s=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}});for(var a=n[r];r<o;a=n[++r])if(b(a)||!P(a))s+=" "+a;else s+=" "+l(a);return s};t.deprecate=function(e,r){if("undefined"!=typeof process&&true===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=false;function i(){if(!n){if(process.throwDeprecation)throw new Error(r);if(process.traceDeprecation)console.trace(r);else console.error(r);n=true}return e.apply(this,arguments)}return i};var o={};var s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase();s=new RegExp("^"+a+"$","i")}t.debuglog=function(e){e=e.toUpperCase();if(!o[e])if(s.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]};function l(e,r){var n={seen:[],stylize:f};if(arguments.length>=3)n.depth=arguments[2];if(arguments.length>=4)n.colors=arguments[3];if(y(r))n.showHidden=r;else if(r)t._extend(n,r);if(k(n.showHidden))n.showHidden=false;if(k(n.depth))n.depth=2;if(k(n.colors))n.colors=false;if(k(n.customInspect))n.customInspect=true;if(n.colors)n.stylize=u;return h(n,e,n.depth)}t.inspect=l;l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(e,t){var r=l.styles[t];if(r)return"\x1b["+l.colors[r][0]+"m"+e+"\x1b["+l.colors[r][1]+"m";return e}function f(e,t){return e}function c(e){var t={};e.forEach(function(e,r){t[e]=true});return t}function h(e,r,n){if(e.customInspect&&r&&$(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i=r.inspect(n,e);if(!S(i))i=h(e,i,n);return i}var o=d(e,r);if(o)return o;var s=Object.keys(r);var a=c(s);if(e.showHidden)s=Object.getOwnPropertyNames(r);if(A(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(r);if(0===s.length){if($(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(Q(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(T(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A(r))return p(r)}var u="",f=false,y=["{","}"];if(v(r)){f=true;y=["[","]"]}if($(r)){var b=r.name?": "+r.name:"";u=" [Function"+b+"]"}if(Q(r))u=" "+RegExp.prototype.toString.call(r);if(T(r))u=" "+Date.prototype.toUTCString.call(r);if(A(r))u=" "+p(r);if(0===s.length&&(!f||0==r.length))return y[0]+u+y[1];if(n<0)if(Q(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");e.seen.push(r);var w;w=f?g(e,r,n,a,s):s.map(function(t){return m(e,r,n,a,t,f)});e.seen.pop();return O(w,u,y)}function d(e,t){if(k(t))return e.stylize("undefined","undefined");if(S(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(x(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){var o=[];for(var s=0,a=t.length;s<a;++s)if(D(t,String(s)))o.push(m(e,t,r,n,String(s),true));else o.push("");i.forEach(function(i){if(!i.match(/^\d+$/))o.push(m(e,t,r,n,i,true))});return o}function m(e,t,r,n,i,o){var s,a,l;l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]};if(l.get)a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special");
11else if(l.set)a=e.stylize("[Setter]","special");if(!D(n,i))s="["+i+"]";if(!a)if(e.seen.indexOf(l.value)<0){a=b(r)?h(e,l.value,null):h(e,l.value,r-1);if(a.indexOf("\n")>-1)a=o?a.split("\n").map(function(e){return"  "+e}).join("\n").slice(2):"\n"+a.split("\n").map(function(e){return"   "+e}).join("\n")}else a=e.stylize("[Circular]","special");if(k(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i);if(s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){s=s.slice(1,-1);s=e.stylize(s,"name")}else{s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");s=e.stylize(s,"string")}}return s+": "+a}function O(e,t,r){var n=0;var i=e.reduce(function(e,t){n++;if(t.indexOf("\n")>=0)n++;return e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(i>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}t.types=e("./support/types");function v(e){return Array.isArray(e)}t.isArray=v;function y(e){return"boolean"==typeof e}t.isBoolean=y;function b(e){return null===e}t.isNull=b;function w(e){return null==e}t.isNullOrUndefined=w;function x(e){return"number"==typeof e}t.isNumber=x;function S(e){return"string"==typeof e}t.isString=S;function _(e){return"symbol"==typeof e}t.isSymbol=_;function k(e){return void 0===e}t.isUndefined=k;function Q(e){return P(e)&&"[object RegExp]"===C(e)}t.isRegExp=Q;t.types.isRegExp=Q;function P(e){return"object"==typeof e&&null!==e}t.isObject=P;function T(e){return P(e)&&"[object Date]"===C(e)}t.isDate=T;t.types.isDate=T;function A(e){return P(e)&&("[object Error]"===C(e)||e instanceof Error)}t.isError=A;t.types.isNativeError=A;function $(e){return"function"==typeof e}t.isFunction=$;function j(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}t.isPrimitive=j;t.isBuffer=e("./support/isBuffer");function C(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date;var t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}t.log=function(){console.log("%s - %s",R(),t.format.apply(t,arguments))};t.inherits=e("inherits");t._extend=function(e,t){if(!t||!P(t))return e;var r=Object.keys(t);var n=r.length;while(n--)e[r[n]]=t[r[n]];return e};function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var L="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(L&&e[L]){var t=e[L];if("function"!=typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');Object.defineProperty(t,L,{value:t,enumerable:false,writable:false,configurable:true});return t}function t(){var t,r;var n=new Promise(function(e,n){t=e;r=n});var i=[];for(var o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){if(e)r(e);else t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}Object.setPrototypeOf(t,Object.getPrototypeOf(e));if(L)Object.defineProperty(t,L,{value:t,enumerable:false,writable:false,configurable:true});return Object.defineProperties(t,n(e))};t.promisify.custom=L;function Z(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e;e=r}return t(e)}function X(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){var t=[];for(var r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var i=this;var o=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){process.nextTick(o.bind(null,null,e))},function(e){process.nextTick(Z.bind(null,e,o))})}Object.setPrototypeOf(t,Object.getPrototypeOf(e));Object.defineProperties(t,n(e));return t}t.callbackify=X}},"is-arguments":{
11"package.json":function(e,t,r){r.exports={name:"is-arguments",version:"1.2.0",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("has-tostringtag/shams")();var i=e("call-bound");var o=i("Object.prototype.toString");var s=function(e){if(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)return false;return"[object Arguments]"===o(e)};var a=function(e){if(s(e))return true;return null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"callee"in e&&"[object Function]"===o(e.callee)};var l=function(){return s(arguments)}();s.isLegacyArguments=a;r.exports=l?s:a}},"has-tostringtag":{
11"shams.js":function(e,t,r){"use strict";var n=e("has-symbols/shams");r.exports=function(){return n()&&!!Symbol.toStringTag}}},"has-symbols":{
11"shams.js":function(e,t,r){"use strict";r.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return false;if("symbol"==typeof Symbol.iterator)return true;var e={};var t=Symbol("test");var r=Object(t);if("string"==typeof t)return false;if("[object Symbol]"!==Object.prototype.toString.call(t))return false;if("[object Symbol]"!==Object.prototype.toString.call(r))return false;var n=42;e[t]=n;for(var i in e)return false;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return false;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return false;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return false;if(!Object.prototype.propertyIsEnumerable.call(e,t))return false;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==n||true!==s.enumerable)return false}return true}},
11"package.json":function(e,t,r){r.exports={name:"has-symbols",version:"1.1.0",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol;var i=e("./shams");r.exports=function(){if("function"!=typeof n)return false;if("function"!=typeof Symbol)return false;if("symbol"!=typeof n("foo"))return false;if("symbol"!=typeof Symbol("bar"))return false;return i()}}},"call-bound":{
11"package.json":function(e,t,r){r.exports={name:"call-bound",version:"1.0.4",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("get-intrinsic");var i=e("call-bind-apply-helpers");var o=i([n("%String.prototype.indexOf%")]);r.exports=function(e,t){var r=n(e,!!t);if("function"==typeof r&&o(e,".prototype.")>-1)return i([r]);return r}}},"get-intrinsic":{
11"package.json":function(e,t,r){r.exports={name:"get-intrinsic",version:"1.3.0",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n;var i=e("es-object-atoms");var o=e("es-errors");var s=e("es-errors/eval");var a=e("es-errors/range");var l=e("es-errors/ref");var u=e("es-errors/syntax");var f=e("es-errors/type");var c=e("es-errors/uri");var h=e("math-intrinsics/abs");var d=e("math-intrinsics/floor");var p=e("math-intrinsics/max");var g=e("math-intrinsics/min");var m=e("math-intrinsics/pow");var O=e("math-intrinsics/round");var v=e("math-intrinsics/sign");var y=Function;var b=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}};var w=e("gopd");var x=e("es-define-property");var S=function(){throw new f};var _=w?function(){try{arguments.callee;return S}catch(e){try{return w(arguments,"callee").get}catch(e){return S}}}():S;var k=e("has-symbols")();var Q=e("get-proto");var P=e("get-proto/Object.getPrototypeOf");var T=e("get-proto/Reflect.getPrototypeOf");var A=e("call-bind-apply-helpers/functionApply");var $=e("call-bind-apply-helpers/functionCall");var j={};var C="undefined"!=typeof Uint8Array&&Q?Q(Uint8Array):n;var E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":k&&Q?Q([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":j,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
11IteratorPrototype%":k&&Q?Q(Q([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&Q?Q(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&Q?Q(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&Q?Q(""[Symbol.iterator]()):n,"%Symbol%":k?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":_,"%TypedArray%":C,"%TypeError%":f,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":$,"%Function.prototype.apply%":A,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":P,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":O,"%Math.sign%":v,"%Reflect.getPrototypeOf%":T};if(Q)try{null.error}catch(e){var M=Q(Q(e));E["%Error.prototype%"]=M}var R=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");if(n)r=n.prototype}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");if(i&&Q)r=Q(i.prototype)}E[t]=r;return r};var D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var L=e("function-bind");var Z=e("hasown");var X=L.call($,Array.prototype.concat);var q=L.call(A,Array.prototype.splice);var B=L.call($,String.prototype.replace);var z=L.call($,String.prototype.slice);var I=L.call($,RegExp.prototype.exec);var N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var V=/\\(\\)?/g;var W=function(e){var t=z(e,0,1);var r=z(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];B(e,N,function(e,t,r,i){n[n.length]=r?B(i,V,"$1"):t||e});return n};var Y=function(e,t){var r=e;var n;if(Z(D,r)){n=D[r];r="%"+n[0]+"%"}if(Z(E,r)){var i=E[r];if(i===j)i=R(r);if(void 0===i&&!t)throw new f("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};
11r.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new f('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e);var n=r.length>0?r[0]:"";var i=Y("%"+n+"%",t);var o=i.name;var s=i.value;var a=false;var l=i.alias;if(l){n=l[0];q(r,X([0,1],l))}for(var c=1,h=true;c<r.length;c+=1){var d=r[c];var p=z(d,0,1);var g=z(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new u("property names with quotes must have matching quotes");if("constructor"===d||!h)a=true;n+="."+d;o="%"+n+"%";if(Z(E,o))s=E[o];else if(null!=s){if(!(d in s)){if(!t)throw new f("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&c+1>=r.length){var m=w(s,d);h=!!m;s=h&&"get"in m&&!("originalValue"in m.get)?m.get:s[d]}else{h=Z(s,d);s=s[d]}if(h&&!a)E[o]=s}}return s}}},"es-object-atoms":{
11"package.json":function(e,t,r){r.exports={name:"es-object-atoms",version:"1.1.1",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";r.exports=Object}},"es-errors":{
11"package.json":function(e,t,r){r.exports={name:"es-errors",version:"1.3.0",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";r.exports=Error},
11"eval.js":function(e,t,r){"use strict";r.exports=EvalError},
11"range.js":function(e,t,r){"use strict";r.exports=RangeError},
11"ref.js":function(e,t,r){"use strict";r.exports=ReferenceError},
11"syntax.js":function(e,t,r){"use strict";r.exports=SyntaxError},
11"type.js":function(e,t,r){"use strict";r.exports=TypeError},
11"uri.js":function(e,t,r){"use strict";r.exports=URIError}},"math-intrinsics":{
11"abs.js":function(e,t,r){"use strict";r.exports=Math.abs},
11"floor.js":function(e,t,r){"use strict";r.exports=Math.floor},
11"max.js":function(e,t,r){"use strict";r.exports=Math.max},
11"min.js":function(e,t,r){"use strict";r.exports=Math.min},
11"pow.js":function(e,t,r){"use strict";r.exports=Math.pow},
11"round.js":function(e,t,r){"use strict";r.exports=Math.round},
11"sign.js":function(e,t,r){"use strict";var n=e("./isNaN");r.exports=function(e){if(n(e)||0===e)return e;return e<0?-1:1}},
11"isNaN.js":function(e,t,r){"use strict";r.exports=Number.isNaN||function(e){return e!==e}}},gopd:{
11"package.json":function(e,t,r){r.exports={name:"gopd",version:"1.2.0",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("./gOPD");if(n)try{n([],"length")}catch(e){n=null}r.exports=n},
11"gOPD.js":function(e,t,r){"use strict";r.exports=Object.getOwnPropertyDescriptor}},"es-define-property":{
11"package.json":function(e,t,r){r.exports={name:"es-define-property",version:"1.0.1",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=Object.defineProperty||false;if(n)try{n({},"a",{value:1})}catch(e){n=false}r.exports=n}},"get-proto":{
11"package.json":function(e,t,r){r.exports={name:"get-proto",version:"1.0.1",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("./Reflect.getPrototypeOf");var i=e("./Object.getPrototypeOf");var o=e("dunder-proto/get");r.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},
11"Reflect.getPrototypeOf.js":function(e,t,r){"use strict";r.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},
11"Object.getPrototypeOf.js":function(e,t,r){"use strict";var n=e("es-object-atoms");r.exports=n.getPrototypeOf||null}},"dunder-proto":{
11"get.js":function(e,t,r){"use strict";var n=e("call-bind-apply-helpers");var i=e("gopd");var o;try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!o&&i&&i(Object.prototype,"__proto__");var a=Object;var l=a.getPrototypeOf;r.exports=s&&"function"==typeof s.get?n([s.get]):"function"==typeof l?function(e){return l(null==e?e:a(e))}:false}},"call-bind-apply-helpers":{
11"package.json":function(e,t,r){r.exports={name:"call-bind-apply-helpers",version:"1.0.2",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("function-bind");var i=e("es-errors/type");var o=e("./functionCall");var s=e("./actualApply");r.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return s(n,o,e)}},
11"functionCall.js":function(e,t,r){"use strict";r.exports=Function.prototype.call},
11"actualApply.js":function(e,t,r){"use strict";var n=e("function-bind");var i=e("./functionApply");var o=e("./functionCall");var s=e("./reflectApply");r.exports=s||n.call(o,i)},
11"functionApply.js":function(e,t,r){"use strict";r.exports=Function.prototype.apply},
11"reflectApply.js":function(e,t,r){"use strict";r.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},
11"applyBind.js":function(e,t,r){"use strict";var n=e("function-bind");var i=e("./functionApply");var o=e("./actualApply");r.exports=function(){return o(n,i,arguments)}}},"function-bind":{
11"package.json":function(e,t,r){r.exports={name:"function-bind",version:"1.1.2",main:"index"}},
11"index.js":function(e,t,r){"use strict";var n=e("./implementation");r.exports=Function.prototype.bind||n},
11"implementation.js":function(e,t,r){"use strict";var n="Function.prototype.bind called on incompatible ";var i=Object.prototype.toString;var o=Math.max;var s="[object Function]";var a=function(e,t){var r=[];for(var n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};var l=function(e,t){var r=[];for(var n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r};var u=function(e,t){var r="";for(var n=0;n<e.length;n+=1){r+=e[n];if(n+1<e.length)r+=t}return r};r.exports=function(e){var t=this;if("function"!=typeof t||i.apply(t)!==s)throw new TypeError(n+t);var r=l(arguments,1);var f;var c=function(){if(this instanceof f){var n=t.apply(this,a(r,arguments));if(Object(n)===n)return n;return this}return t.apply(e,a(r,arguments))};var h=o(0,t.length-r.length);var d=[];for(var p=0;p<h;p++)d[p]="$"+p;f=Function("binder","return function ("+u(d,",")+"){ return binder.apply(this,arguments); }")(c);if(t.prototype){var g=function(){};g.prototype=t.prototype;f.prototype=new g;g.prototype=null}return f}}},hasown:{
11"package.json":function(e,t,r){r.exports={name:"hasown",version:"2.0.2",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=Function.prototype.call;var i=Object.prototype.hasOwnProperty;var o=e("function-bind");r.exports=o.call(n,i)}},"is-generator-function":{
11"package.json":function(e,t,r){r.exports={name:"is-generator-function",version:"1.1.0",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("call-bound");var i=e("safe-regex-test");var o=i(/^\s*(?:function)?\*/);var s=e("has-tostringtag/shams")();var a=e("get-proto");var l=n("Object.prototype.toString");var u=n("Function.prototype.toString");var f=function(){if(!s)return false;try{return Function("return function*() {}")()}catch(e){}};var c;r.exports=function(e){if("function"!=typeof e)return false;if(o(u(e)))return true;if(!s){var t=l(e);return"[object GeneratorFunction]"===t}if(!a)return false;if(void 0===c){var r=f();c=r?a(r):false}return a(e)===c}}},"safe-regex-test":{
11"package.json":function(e,t,r){r.exports={name:"safe-regex-test",version:"1.1.0",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("call-bound");var i=e("is-regex");var o=n("RegExp.prototype.exec");var s=e("es-errors/type");r.exports=function(e){if(!i(e))throw new s("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}}},"is-regex":{
11"package.json":function(e,t,r){r.exports={name:"is-regex",version:"1.2.1",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("call-bound");var i=e("has-tostringtag/shams")();var o=e("hasown");var s=e("gopd");var a;if(i){var l=n("RegExp.prototype.exec");var u={};var f=function(){throw u};var c={toString:f,valueOf:f};if("symbol"==typeof Symbol.toPrimitive)c[Symbol.toPrimitive]=f;a=function(e){if(!e||"object"!=typeof e)return false;var t=s(e,"lastIndex");var r=t&&o(t,"value");if(!r)return false;try{l(e,c)}catch(e){return e===u}}}else{var h=n("Object.prototype.toString");var d="[object RegExp]";a=function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)return false;return h(e)===d}}r.exports=a}},"which-typed-array":{
11"package.json":function(e,t,r){r.exports={name:"which-typed-array",version:"1.1.19",main:"index.js"}},
11"index.js":function(e,r,n){"use strict";var i=e("for-each");var o=e("available-typed-arrays");var s=e("call-bind");var a=e("call-bound");var l=e("gopd");var u=e("get-proto");var f=a("Object.prototype.toString");var c=e("has-tostringtag/shams")();var h="undefined"==typeof globalThis?t:globalThis;var d=o();var p=a("String.prototype.slice");var g=a("Array.prototype.indexOf",true)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1};var m={__proto__:null};c&&l&&u?i(d,function(e){var t=new h[e];if(Symbol.toStringTag in t&&u){var r=u(t);var n=l(r,Symbol.toStringTag);if(!n&&r){var i=u(r);n=l(i,Symbol.toStringTag)}m["$"+e]=s(n.get)}}):i(d,function(e){var t=new h[e];var r=t.slice||t.set;if(r)m["$"+e]=s(r)});var O=function(e){var t=false;i(m,function(r,n){if(!t)try{if("$"+r(e)===n)t=p(n,1)}catch(e){}});return t};var v=function(e){var t=false;i(m,function(r,n){if(!t)try{r(e);t=p(n,1)}catch(e){}});return t};n.exports=function(e){if(!e||"object"!=typeof e)return false;if(!c){var t=p(f(e),8,-1);if(g(d,t)>-1)return t;if("Object"!==t)return false;return v(e)}if(!l)return null;return O(e)}}},"for-each":{
11"package.json":function(e,t,r){r.exports={name:"for-each",version:"0.3.5",main:"index"}},
11"index.js":function(e,t,r){"use strict";var n=e("is-callable");var i=Object.prototype.toString;var o=Object.prototype.hasOwnProperty;var s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)if(o.call(e,n))if(null==r)t(e[n],n,e);else t.call(r,e[n],n,e)};var a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)if(null==r)t(e.charAt(n),n,e);else t.call(r,e.charAt(n),n,e)};var l=function(e,t,r){for(var n in e)if(o.call(e,n))if(null==r)t(e[n],n,e);else t.call(r,e[n],n,e)};function u(e){return"[object Array]"===i.call(e)}r.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var i;if(arguments.length>=3)i=r;if(u(e))s(e,t,i);else if("string"==typeof e)a(e,t,i);else l(e,t,i)}}},"is-callable":{
11"package.json":function(e,t,r){r.exports={name:"is-callable",version:"1.2.7",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=Function.prototype.toString;var i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;var o;var s;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{o=Object.defineProperty({},"length",{get:function(){throw s}});s={};i(function(){throw 42},null,o)}catch(e){if(e!==s)i=null}else i=null;var a=/^\s*class\b/;var l=function(e){try{var t=n.call(e);return a.test(t)}catch(e){return false}};var u=function(e){try{if(l(e))return false;n.call(e);return true}catch(e){return false}};var f=Object.prototype.toString;var c="[object Object]";var h="[object Function]";var d="[object GeneratorFunction]";var p="[object HTMLAllCollection]";var g="[object HTML document.all class]";var m="[object HTMLCollection]";var O="function"==typeof Symbol&&!!Symbol.toStringTag;var v=!(0 in[,]);var y=function(){return false};if("object"==typeof document){var b=document.all;if(f.call(b)===f.call(document.all))y=function(e){if((v||!e)&&(void 0===e||"object"==typeof e))try{var t=f.call(e);return(t===p||t===g||t===m||t===c)&&null==e("")}catch(e){}return false}}r.exports=i?function(e){if(y(e))return true;if(!e)return false;if("function"!=typeof e&&"object"!=typeof e)return false;try{i(e,null,o)}catch(e){if(e!==s)return false}return!l(e)&&u(e)}:function(e){if(y(e))return true;if(!e)return false;if("function"!=typeof e&&"object"!=typeof e)return false;if(O)return u(e);if(l(e))return false;var t=f.call(e);if(t!==h&&t!==d&&!/^\[object HTML/.test(t))return false;return u(e)}}},"available-typed-arrays":{
11"package.json":function(e,t,r){r.exports={name:"available-typed-arrays",version:"1.0.7",main:"index.js"}},
11"index.js":function(e,r,n){"use strict";var i=e("possible-typed-array-names");var o="undefined"==typeof globalThis?t:globalThis;n.exports=function(){var e=[];for(var t=0;t<i.length;t++)if("function"==typeof o[i[t]])e[e.length]=i[t];return e}}},"possible-typed-array-names":{
11"package.json":function(e,t,r){r.exports={name:"possible-typed-array-names",version:"1.1.0",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";r.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}},"call-bind":{
11"package.json":function(e,t,r){r.exports={name:"call-bind",version:"1.0.8",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("set-function-length");var i=e("es-define-property");var o=e("call-bind-apply-helpers");var s=e("call-bind-apply-helpers/applyBind");r.exports=function(e){var t=o(arguments);var r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),true)};if(i)i(r.exports,"apply",{value:s});else r.exports.apply=s}},"set-function-length":{
11"package.json":function(e,t,r){r.exports={name:"set-function-length",version:"1.2.2",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("get-intrinsic");var i=e("define-data-property");var o=e("has-property-descriptors")();var s=e("gopd");var a=e("es-errors/type");var l=n("%Math.floor%");r.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2];var n=true;var u=true;if("length"in e&&s){var f=s(e,"length");if(f&&!f.configurable)n=false;if(f&&!f.writable)u=false}if(n||u||!r)o?i(e,"length",t,true,true):i(e,"length",t);return e}}},"define-data-property":{
11"package.json":function(e,t,r){r.exports={name:"define-data-property",version:"1.1.4",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("es-define-property");var i=e("es-errors/syntax");var o=e("es-errors/type");var s=e("gopd");r.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null;var l=arguments.length>4?arguments[4]:null;var u=arguments.length>5?arguments[5]:null;var f=arguments.length>6?arguments[6]:false;var c=!!s&&s(e,t);if(n)n(e,t,{configurable:null===u&&c?c.configurable:!u,enumerable:null===a&&c?c.enumerable:!a,value:r,writable:null===l&&c?c.writable:!l});else if(!f&&(a||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}}},"has-property-descriptors":{
11"package.json":function(e,t,r){r.exports={name:"has-property-descriptors",version:"1.0.2",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("es-define-property");var i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return true}};r.exports=i}},"is-typed-array":{
11"package.json":function(e,t,r){r.exports={name:"is-typed-array",version:"1.1.15",main:"index.js"}},
11"index.js":function(e,t,r){"use strict";var n=e("which-typed-array");r.exports=function(e){return!!n(e)}}},inherits:{
11"package.json":function(e,t,r){r.exports={name:"inherits",version:"2.0.4",browser:"./inherits_browser.js",main:"./inherits.js"}},
11"inherits_browser.js":function(e,t,r){if("function"==typeof Object.create)r.exports=function(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}};else r.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e}}}},"os-browserify":{
11"browser.js":function(e,t){t.endianness=function(){return"LE"};t.hostname=function(){if("undefined"!=typeof location)return location.hostname;return""};t.loadavg=function(){return[]};t.uptime=function(){return 0};t.freemem=function(){return Number.MAX_VALUE};t.totalmem=function(){return Number.MAX_VALUE};t.cpus=function(){return[]};t.type=function(){return"Browser"};t.release=function(){if("undefined"!=typeof navigator)return navigator.appVersion;return""};t.networkInterfaces=t.getNetworkInterfaces=function(){return{}};t.arch=function(){return"javascript"};t.platform=function(){return"browser"};t.tmpdir=t.tmpDir=function(){return"/tmp"};t.EOL="\n";t.homedir=function(){return"/"}}},process:{
11"browser.js":function(e,t,r){var n=r.exports={};var i;var o;function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{i="function"==typeof setTimeout?setTimeout:s}catch(e){i=s}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}})();function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===s||!i)&&setTimeout){i=setTimeout;return setTimeout(e,0)}try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}function u(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout){o=clearTimeout;return clearTimeout(e)}try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}var f=[];var c=false;var h;var d=-1;function p(){if(!c||!h)return;c=false;if(h.length)f=h.concat(f);else d=-1;if(f.length)g()}function g(){if(c)return;var e=l(p);c=true;var t=f.length;while(t){h=f;f=[];while(++d<t)if(h)h[d].run();d=-1;t=f.length}h=null;c=false;u(e)}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];f.push(new m(e,t));if(1===f.length&&!c)l(g)};function m(e,t){this.fun=e;this.array=t}m.prototype.run=function(){this.fun.apply(null,this.array)};n.title="browser";n.browser=true;n.env={};n.argv=[];n.version="";n.versions={};function O(){}n.on=O;n.addListener=O;n.once=O;n.off=O;n.removeListener=O;n.removeAllListeners=O;n.emit=O;n.prependListener=O;n.prependOnceListener=O;n.listeners=function(e){return[]};n.binding=function(e){throw new Error("process.binding is not supported")};n.cwd=function(){return"/"};n.chdir=function(e){throw new Error("process.chdir is not supported")};n.umask=function(){return 0}}}},
11"package.json":function(e,t,r){r.exports={name:"meteor-node-stubs",version:"1.2.25",main:"index.js"}},
11"index.js":function(e,r,i){var o=e("./map.json");var s={};Object.keys(o).forEach(function(e){if("string"==typeof o[e]){var t=i.id.split("/");t.pop();t.push("node_modules",o[e]);r[e]=s[e+".js"]=s["node:"+e]=t.join("/")}else{r[e]=o[e];s[e+".js"]=s["node:"+e]=function(){}}});if("function"==typeof n)n({"..":{node_modules:s}});if("function"!=typeof t.Buffer)try{t.Buffer=e("buffer").Buffer}catch(e){}},
11"map.json":function(e,t,r){r.exports={assert:"assert/",buffer:"buffer/",child_process:null,cluster:null,console:"console-browserify",constants:"constants-browserify",crypto:"../wrappers/crypto.js",dgram:null,dns:null,domain:"domain-browser",events:"events/",fs:null,http:"stream-http",https:"https-browserify",module:"../wrappers/module.js",net:null,os:"os-browserify/browser.js",path:"path-browserify",process:"process/browser.js",punycode:"punycode/",querystring:"querystring-es3/",readline:null,repl:null,stream:"stream-browserify",_stream_duplex:"readable-stream/lib/_stream_duplex.js",_stream_passthrough:"readable-stream/lib/_stream_passthrough.js",_stream_readable:"readable-stream/lib/_stream_readable.js",_stream_transform:"readable-stream/lib/_stream_transform.js",_stream_writable:"readable-stream/lib/_stream_writable.js",string_decoder:"string_decoder/",sys:"util/util.js",timers:"timers-browserify",tls:null,tty:"tty-browserify",url:"url/",util:"util/util.js",vm:"vm-browserify",zlib:"browserify-zlib"}}},domhandler:{
11"package.json":function(e,t,r){r.exports={name:"domhandler",version:"2.4.2",main:"index.js"}},
11"index.js":function(e,t,r){var n=e("domelementtype");var i=/\s+/g;var o=e("./lib/node");var s=e("./lib/element");function a(e,t,r){if("object"==typeof e){r=t;t=e;e=null}else if("function"==typeof t){r=t;t=l}this._callback=e;this._options=t||l;this._elementCB=r;this.dom=[];this._done=false;this._tagStack=[];this._parser=this._parser||null}var l={normalizeWhitespace:false,withStartIndices:false,withEndIndices:false};a.prototype.onparserinit=function(e){this._parser=e};a.prototype.onreset=function(){a.call(this,this._callback,this._options,this._elementCB)};a.prototype.onend=function(){if(this._done)return;this._done=true;this._parser=null;this._handleCallback(null)};a.prototype._handleCallback=a.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e};a.prototype.onclosetag=function(){var e=this._tagStack.pop();if(this._options.withEndIndices&&e)e.endIndex=this._parser.endIndex;if(this._elementCB)this._elementCB(e)};a.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;t="tag"===e.type?Object.create(s):Object.create(o);for(var r in e)if(e.hasOwnProperty(r))t[r]=e[r];return t};a.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1];var r=t?t.children:this.dom;var n=r[r.length-1];e.next=null;if(this._options.withStartIndices)e.startIndex=this._parser.startIndex;if(this._options.withEndIndices)e.endIndex=this._parser.endIndex;if(n){e.prev=n;n.next=e}else e.prev=null;r.push(e);e.parent=t||null};a.prototype.onopentag=function(e,t){var r={type:"script"===e?n.Script:"style"===e?n.Style:n.Tag,name:e,attribs:t,children:[]};var i=this._createDomElement(r);this._addDomElement(i);this._tagStack.push(i)};a.prototype.ontext=function(e){var t=this._options.normalizeWhitespace||this._options.ignoreWhitespace;var r;if(!this._tagStack.length&&this.dom.length&&(r=this.dom[this.dom.length-1]).type===n.Text)if(t)r.data=(r.data+e).replace(i," ");else r.data+=e;else if(this._tagStack.length&&(r=this._tagStack[this._tagStack.length-1])&&(r=r.children[r.children.length-1])&&r.type===n.Text)if(t)r.data=(r.data+e).replace(i," ");else r.data+=e;else{if(t)e=e.replace(i," ");var o=this._createDomElement({data:e,type:n.Text});this._addDomElement(o)}};a.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===n.Comment){t.data+=e;return}var r={data:e,type:n.Comment};var i=this._createDomElement(r);this._addDomElement(i);this._tagStack.push(i)};a.prototype.oncdatastart=function(){var e={children:[{data:"",type:n.Text}],type:n.CDATA};var t=this._createDomElement(e);this._addDomElement(t);this._tagStack.push(t)};a.prototype.oncommentend=a.prototype.oncdataend=function(){this._tagStack.pop()};a.prototype.onprocessinginstruction=function(e,t){var r=this._createDomElement({name:e,data:t,type:n.Directive});this._addDomElement(r)};r.exports=a},lib:{
11"node.js":function(e,t,r){var n=r.exports={get firstChild(){var i=this.children;return i&&i[0]||null},get lastChild(){var o=this.children;return o&&o[o.length-1]||null},get nodeType(){return a[this.type]||a.element}};var s={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"};var a={element:1,text:3,cdata:4,comment:8};Object.keys(s).forEach(function(e){var t=s[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){this[t]=e;return e}})})},
11"element.js":function(e,t,r){var n=e("./node");var i=r.exports=Object.create(n);var o={tagName:"name"};Object.keys(o).forEach(function(e){var t=o[e];Object.defineProperty(i,e,{get:function(){return this[t]||null},set:function(e){this[t]=e;return e}})})}}},domelementtype:{
11"package.json":function(e,t,r){r.exports={name:"domelementtype",version:"1.3.1",main:"index.js"}},
11"index.js":function(e,t,r){r.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}}},domutils:{
11"package.json":function(e,t,r){r.exports={name:"domutils",version:"1.5.1",main:"index.js"}},
11"index.js":function(e,t,r){var n=r.exports;[e("./lib/stringify"),e("./lib/traversal"),e("./lib/manipulation"),e("./lib/querying"),e("./lib/legacy"),e("./lib/helpers")].forEach(function(e){Object.keys(e).forEach(function(t){n[t]=e[t].bind(n)})})},lib:{
11"stringify.js":function(e,t,r){var n=e("domelementtype"),i=e("dom-serializer"),o=n.isTag;r.exports={getInnerHTML:s,getOuterHTML:i,getText:a};function s(e,t){return e.children?e.children.map(function(e){return i(e,t)}).join(""):""}function a(e){if(Array.isArray(e))return e.map(a).join("");if(o(e)||e.type===n.CDATA)return a(e.children);if(e.type===n.Text)return e.data;return""}},
11"traversal.js":function(e,t){var r=t.getChildren=function(e){return e.children};var n=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=n(e);return t?r(t):[e]};t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]};t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)};t.getName=function(e){return e.name}},
11"manipulation.js":function(e,t){t.removeElement=function(e){if(e.prev)e.prev.next=e.next;if(e.next)e.next.prev=e.prev;if(e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}};t.replaceElement=function(e,t){var r=t.prev=e.prev;if(r)r.next=t;var n=t.next=e.next;if(n)n.prev=t;var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}};t.appendChild=function(e,t){t.parent=e;if(1!==e.children.push(t)){var r=e.children[e.children.length-2];r.next=t;t.prev=r;t.next=null}};t.append=function(e,t){var r=e.parent,n=e.next;t.next=n;t.prev=e;e.next=t;t.parent=r;if(n){n.prev=t;if(r){var i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else if(r)r.children.push(t)};t.prepend=function(e,t){var r=e.parent;if(r){var n=r.children;n.splice(n.lastIndexOf(e),0,t)}if(e.prev)e.prev.next=t;t.parent=r;t.prev=e.prev;t.next=e;e.prev=t}},
11"querying.js":function(e,t,r){var n=e("domelementtype").isTag;r.exports={filter:i,find:o,findOneChild:s,findOne:a,existsOne:l,findAll:u};function i(e,t,r,n){if(!Array.isArray(t))t=[t];if("number"!=typeof n||!isFinite(n))n=1/0;return o(e,t,false!==r,n)}function o(e,t,r,n){var i=[],s;for(var a=0,l=t.length;a<l;a++){if(e(t[a])){i.push(t[a]);if(--n<=0)break}s=t[a].children;if(r&&s&&s.length>0){s=o(e,s,r,n);i=i.concat(s);n-=s.length;if(n<=0)break}}return i}function s(e,t){for(var r=0,n=t.length;r<n;r++)if(e(t[r]))return t[r];return null}function a(e,t){var r=null;for(var i=0,o=t.length;i<o&&!r;i++)if(!n(t[i]))continue;else if(e(t[i]))r=t[i];else if(t[i].children.length>0)r=a(e,t[i].children);return r}function l(e,t){for(var r=0,i=t.length;r<i;r++)if(n(t[r])&&(e(t[r])||t[r].children.length>0&&l(e,t[r].children)))return true;return false}function u(e,t){var r=[];for(var i=0,o=t.length;i<o;i++)if(n(t[i])){if(e(t[i]))r.push(t[i]);if(t[i].children.length>0)r=r.concat(u(e,t[i].children))}return r}},
11"legacy.js":function(e,t){var r=e("domelementtype");var n=t.isTag=r.isTag;t.testElement=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){if("tag_name"===r){if(!n(t)||!e.tag_name(t.name))return false}else if("tag_type"===r){if(!e.tag_type(t.type))return false}else if("tag_contains"===r){if(n(t)||!e.tag_contains(t.data))return false}else if(!t.attribs||!e[r](t.attribs[r]))return false}return true};var i={tag_name:function(e){if("function"==typeof e)return function(t){return n(t)&&e(t.name)};if("*"===e)return n;return function(t){return n(t)&&t.name===e}},tag_type:function(e){if("function"==typeof e)return function(t){return e(t.type)};return function(t){return t.type===e}},tag_contains:function(e){if("function"==typeof e)return function(t){return!n(t)&&e(t.data)};return function(t){return!n(t)&&t.data===e}}};function o(e,t){if("function"==typeof t)return function(r){return r.attribs&&t(r.attribs[e])};return function(r){return r.attribs&&r.attribs[e]===t}}function s(e,t){return function(r){return e(r)||t(r)}}t.getElements=function(e,t,r,n){var a=Object.keys(e).map(function(t){var r=e[t];return t in i?i[t](r):o(t,r)});return 0===a.length?[]:this.filter(a.reduce(s),t,r,n)};t.getElementById=function(e,t,r){if(!Array.isArray(t))t=[t];return this.findOne(o("id",e),t,false!==r)};t.getElementsByTagName=function(e,t,r,n){return this.filter(i.tag_name(e),t,r,n)};t.getElementsByTagType=function(e,t,r,n){return this.filter(i.tag_type(e),t,r,n)}},
11"helpers.js":function(e,t){t.removeSubsets=function(e){var t=e.length,r,n,i;while(--t>-1){r=n=e[t];e[t]=null;i=true;while(n){if(e.indexOf(n)>-1){i=false;e.splice(t,1);break}n=n.parent}if(i)e[t]=r}return e};var r={DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16};var n=t.compareDocumentPosition=function(e,t){var n=[];var i=[];var o,s,a,l,u,f;if(e===t)return 0;o=e;while(o){n.unshift(o);o=o.parent}o=t;while(o){i.unshift(o);o=o.parent}f=0;while(n[f]===i[f])f++;if(0===f)return r.DISCONNECTED;s=n[f-1];a=s.children;l=n[f];u=i[f];if(a.indexOf(l)>a.indexOf(u)){if(s===t)return r.FOLLOWING|r.CONTAINED_BY;return r.FOLLOWING}if(s===e)return r.PRECEDING|r.CONTAINS;return r.PRECEDING};t.uniqueSort=function(e){var t=e.length,i,o;e=e.slice();while(--t>-1){i=e[t];o=e.indexOf(i);if(o>-1&&o<t)e.splice(t,1)}e.sort(function(e,t){var i=n(e,t);if(i&r.PRECEDING)return -1;if(i&r.FOLLOWING)return 1;return 0});return e}}}},"dom-serializer":{
11"package.json":function(e,t,r){r.exports={name:"dom-serializer",version:"0.1.1",main:"./index.js"}},
11"index.js":function(e,t,r){var n=e("domelementtype");var i=e("entities");var o={__proto__:null,style:true,script:true,xmp:true,iframe:true,noembed:true,noframes:true,plaintext:true,noscript:true};function s(e,t){if(!e)return;var r="",n;for(var o in e){n=e[o];if(r)r+=" ";r+=o;if(null!==n&&""!==n||t.xmlMode)r+='="'+(t.decodeEntities?i.encodeXML(n):n)+'"'}return r}var a={__proto__:null,area:true,base:true,basefont:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,isindex:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true};var l=r.exports=function(e,t){if(!Array.isArray(e)&&!e.cheerio)e=[e];t=t||{};var r="";for(var i=0;i<e.length;i++){var o=e[i];if("root"===o.type)r+=l(o.children,t);else if(n.isTag(o))r+=u(o,t);else if(o.type===n.Directive)r+=f(o);else if(o.type===n.Comment)r+=d(o);else if(o.type===n.CDATA)r+=h(o);else r+=c(o,t)}return r};function u(e,t){if("svg"===e.name)t={decodeEntities:t.decodeEntities,xmlMode:true};var r="<"+e.name,n=s(e.attribs,t);if(n)r+=" "+n;if(t.xmlMode&&(!e.children||0===e.children.length))r+="/>";else{r+=">";if(e.children)r+=l(e.children,t);if(!a[e.name]||t.xmlMode)r+="</"+e.name+">"}return r}function f(e){return"<"+e.data+">"}function c(e,t){var r=e.data||"";if(t.decodeEntities&&!(e.parent&&e.parent.name in o))r=i.encodeXML(r);return r}function h(e){return"<![CDATA["+e.children[0].data+"]]>"}function d(e){return"\x3c!--"+e.data+"--\x3e"}}},"readable-stream":{
11"package.json":function(e,t,r){r.exports={name:"readable-stream",version:"3.6.2",browser:{util:false,worker_threads:false,"./errors":"./errors-browser.js","./readable.js":"./readable-browser.js","./lib/internal/streams/from.js":"./lib/internal/streams/from-browser.js","./lib/internal/streams/stream.js":"./lib/internal/streams/stream-browser.js"},main:"readable.js"}},"errors.js":"/node_modules/readable-stream/errors-browser.js","readable.js":"/node_modules/readable-stream/readable-browser.js",lib:{internal:{streams:{"from.js":"/node_modules/readable-stream/lib/internal/streams/from-browser.js","stream.js":"/node_modules/readable-stream/lib/internal/streams/stream-browser.js",
11"stream-browser.js":function(e,t,r){r.exports=e("events").EventEmitter},
11"buffer_list.js":function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){t=u(t);if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,u(n.key),n)}}function l(e,t,r){if(t)a(e.prototype,t);if(r)a(e,r);Object.defineProperty(e,"prototype",{writable:false});return e}function u(e){var t=f(e,"string");return"symbol"==typeof t?t:String(t)}function f(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var c=e("buffer"),h=c.Buffer;var d=e("util"),p=d.inspect;var g=p&&p.custom||"inspect";function m(e,t,r){h.prototype.copy.call(e,t,r)}r.exports=function(){function e(){s(this,e);this.head=null;this.tail=null;this.length=0}l(e,[{key:"push",value:function(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};if(0===this.length)this.tail=t;this.head=t;++this.length}},{key:"shift",value:function(){if(0===this.length)return;var e=this.head.data;if(1===this.length)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e}},{key:"clear",value:function(){this.head=this.tail=null;this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";var t=this.head;var r=""+t.data;while(t=t.next)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return h.alloc(0);var t=h.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r){m(r.data,t,n);n+=r.data.length;r=r.next}return t}},{key:"consume",value:function(e,t){var r;if(e<this.head.data.length){r=this.head.data.slice(0,e);this.head.data=this.head.data.slice(e)}else r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e);return r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head;var r=1;var n=t.data;e-=n.length;while(t=t.next){var i=t.data;var o=e>i.length?i.length:e;if(o===i.length)n+=i;else n+=i.slice(0,e);e-=o;if(0===e){if(o===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(o)}break}++r}this.length-=r;return n}},{key:"_getBuffer",value:function(e){var t=h.allocUnsafe(e);var r=this.head;var n=1;r.data.copy(t);e-=r.data.length;while(r=r.next){var i=r.data;var o=e>i.length?i.length:e;i.copy(t,t.length-e,0,o);e-=o;if(0===e){if(o===i.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=i.slice(o)}break}++n}this.length-=n;return t}},{key:g,value:function(e,t){return p(this,i(i({},t),{},{depth:0,customInspect:false}))}}]);return e}()},
11"destroy.js":function(e,t,r){"use strict";function n(e,t){var r=this;var n=this._readableState&&this._readableState.destroyed;var s=this._writableState&&this._writableState.destroyed;if(n||s){if(t)t(e);else if(e)if(this._writableState){if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(a,this,e)}}else process.nextTick(a,this,e);return this}if(this._readableState)this._readableState.destroyed=true;if(this._writableState)this._writableState.destroyed=true;this._destroy(e||null,function(e){if(!t&&e)if(r._writableState)if(r._writableState.errorEmitted)process.nextTick(o,r);else{r._writableState.errorEmitted=true;process.nextTick(i,r,e)}else process.nextTick(i,r,e);else if(t){process.nextTick(o,r);t(e)}else process.nextTick(o,r)});return this}function i(e,t){a(e,t);o(e)}function o(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function s(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function a(e,t){e.emit("error",t)}function l(e,t){var r=e._readableState;var n=e._writableState;if(r&&r.autoDestroy||n&&n.autoDestroy)e.destroy(t);else e.emit("error",t)}r.exports={destroy:n,undestroy:s,errorOrDestroy:l}},
11"state.js":function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var s=i(t,o,r);if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var a=o?r:"highWaterMark";throw new n(a,s)}return Math.floor(s)}return e.objectMode?16:16384}r.exports={getHighWaterMark:o}},
11"async_iterator.js":function(e,t,r){"use strict";var n;function i(e,t,r){t=o(t);if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function o(e){var t=s(e,"string");return"symbol"==typeof t?t:String(t)}function s(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var a=e("./end-of-stream");var l=Symbol("lastResolve");var u=Symbol("lastReject");var f=Symbol("error");var c=Symbol("ended");var h=Symbol("lastPromise");var d=Symbol("handlePromise");var p=Symbol("stream");function g(e,t){return{value:e,done:t}}function m(e){var t=e[l];if(null!==t){var r=e[p].read();if(null!==r){e[h]=null;e[l]=null;e[u]=null;t(g(r,false))}}}function O(e){process.nextTick(m,e)}function v(e,t){return function(r,n){e.then(function(){if(t[c])return void r(g(void 0,true));t[d](r,n)},n)}}var y=Object.getPrototypeOf(function(){});var b=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this;var t=this[f];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(g(void 0,true));if(this[p].destroyed)return new Promise(function(t,r){process.nextTick(function(){if(e[f])r(e[f]);else t(g(void 0,true))})});var r=this[h];var n;if(r)n=new Promise(v(r,this));else{var i=this[p].read();if(null!==i)return Promise.resolve(g(i,false));n=new Promise(this[d])}this[h]=n;return n}},i(n,Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e)return void r(e);t(g(void 0,true))})})}),n),y);var w=function(e){var t;var r=Object.create(b,(t={},i(t,p,{value:e,writable:true}),i(t,l,{value:null,writable:true}),i(t,u,{value:null,writable:true}),i(t,f,{value:null,writable:true}),i(t,c,{value:e._readableState.endEmitted,writable:true}),i(t,d,{value:function(e,t){var n=r[p].read();if(n){r[h]=null;r[l]=null;r[u]=null;e(g(n,false))}else{r[l]=e;r[u]=t}},writable:true}),t));r[h]=null;a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];if(null!==t){r[h]=null;r[l]=null;r[u]=null;t(e)}r[f]=e;return}var n=r[l];if(null!==n){r[h]=null;r[l]=null;r[u]=null;n(g(void 0,true))}r[c]=true});e.on("readable",O.bind(null,r));return r};r.exports=w},
11"end-of-stream.js":function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=false;return function(){if(t)return;t=true;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}function o(){}function s(e){return e.setHeader&&"function"==typeof e.abort}function a(e,t,r){if("function"==typeof t)return a(e,null,t);if(!t)t={};r=i(r||o);var l=t.readable||false!==t.readable&&e.readable;var u=t.writable||false!==t.writable&&e.writable;var f=function(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function(){u=false;c=true;if(!l)r.call(e)};var d=e._readableState&&e._readableState.endEmitted;var p=function(){l=false;d=true;if(!u)r.call(e)};var g=function(t){r.call(e,t)};var m=function(){var t;if(l&&!d){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(u&&!c){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var O=function(){e.req.on("finish",h)};if(s(e)){e.on("complete",h);e.on("abort",m);if(e.req)O();else e.on("request",O)}else if(u&&!e._writableState){e.on("end",f);e.on("close",f)}e.on("end",p);e.on("finish",h);if(false!==t.error)e.on("error",g);e.on("close",m);return function(){e.removeListener("complete",h);e.removeListener("abort",m);e.removeListener("request",O);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",f);e.removeListener("close",f);e.removeListener("finish",h);e.removeListener("end",p);e.removeListener("error",g);e.removeListener("close",m)}}r.exports=a},
11"from-browser.js":function(e,t,r){r.exports=function(){throw new Error("Readable.from is not available in the browser")}},
11"pipeline.js":function(e,t,r){"use strict";var n;function i(e){var t=false;return function(){if(t)return;t=true;e.apply(void 0,arguments)}}var o=e("../../../errors").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function u(e){return e.setHeader&&"function"==typeof e.abort}function f(t,r,o,s){s=i(s);var l=false;t.on("close",function(){l=true});if(void 0===n)n=e("./end-of-stream");n(t,{readable:r,writable:o},function(e){if(e)return s(e);l=true;s()});var f=false;return function(e){if(l)return;if(f)return;f=true;if(u(t))return t.abort();if("function"==typeof t.destroy)return t.destroy();s(e||new a("pipe"))}}function c(e){e()}function h(e,t){return e.pipe(t)}function d(e){if(!e.length)return l;if("function"!=typeof e[e.length-1])return l;return e.pop()}function p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=d(t);if(Array.isArray(t[0]))t=t[0];if(t.length<2)throw new s("streams");var i;var o=t.map(function(e,r){var s=r<t.length-1;var a=r>0;return f(e,s,a,function(e){if(!i)i=e;if(e)o.forEach(c);if(s)return;o.forEach(c);n(i)})});return t.reduce(h)}r.exports=p}}},
11"_stream_readable.js":function(e,r,n){"use strict";n.exports=A;var i;A.ReadableState=T;e("events").EventEmitter;var o=function(e,t){return e.listeners(t).length};var s=e("./internal/streams/stream");var a=e("buffer").Buffer;var l=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function u(e){return a.from(e)}function f(e){return a.isBuffer(e)||e instanceof l}var c=e("util");var h;h=c&&c.debuglog?c.debuglog("stream"):function(){};var d=e("./internal/streams/buffer_list");var p=e("./internal/streams/destroy");var g=e("./internal/streams/state"),m=g.getHighWaterMark;var O=e("../errors").codes,v=O.ERR_INVALID_ARG_TYPE,y=O.ERR_STREAM_PUSH_AFTER_EOF,b=O.ERR_METHOD_NOT_IMPLEMENTED,w=O.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var x;var S;var _;e("inherits")(A,s);var k=p.errorOrDestroy;var Q=["error","close","destroy","pause","resume"];function P(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);if(e._events&&e._events[t])if(Array.isArray(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]];else e.on(t,r)}function T(t,r,n){i=i||e("./_stream_duplex");t=t||{};if("boolean"!=typeof n)n=r instanceof i;this.objectMode=!!t.objectMode;if(n)this.objectMode=this.objectMode||!!t.readableObjectMode;this.highWaterMark=m(this,t,"readableHighWaterMark",n);this.buffer=new d;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.paused=true;this.emitClose=false!==t.emitClose;this.autoDestroy=!!t.autoDestroy;this.destroyed=false;this.defaultEncoding=t.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(t.encoding){if(!x)x=e("string_decoder/").StringDecoder;this.decoder=new x(t.encoding);this.encoding=t.encoding}}function A(t){i=i||e("./_stream_duplex");if(!(this instanceof A))return new A(t);var r=this instanceof i;this._readableState=new T(t,this,r);this.readable=true;if(t){if("function"==typeof t.read)this._read=t.read;if("function"==typeof t.destroy)this._destroy=t.destroy}s.call(this)}Object.defineProperty(A.prototype,"destroyed",{enumerable:false,get:function(){if(void 0===this._readableState)return false;return this._readableState.destroyed},set:function(e){if(!this._readableState)return;this._readableState.destroyed=e}});A.prototype.destroy=p.destroy;A.prototype._undestroy=p.undestroy;A.prototype._destroy=function(e,t){t(e)};A.prototype.push=function(e,t){var r=this._readableState;var n;if(r.objectMode)n=true;else if("string"==typeof e){t=t||r.defaultEncoding;if(t!==r.encoding){e=a.from(e,t);t=""}n=true}return $(this,e,t,false,n)};A.prototype.unshift=function(e){return $(this,e,null,true,false)};function $(e,t,r,n,i){h("readableAddChunk",t);var o=e._readableState;if(null===t){o.reading=false;D(e,o)}else{var s;if(!i)s=C(o,t);if(s)k(e,s);else if(o.objectMode||t&&t.length>0){if("string"!=typeof t&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype)t=u(t);if(n)if(o.endEmitted)k(e,new w);else j(e,o,t,true);else if(o.ended)k(e,new y);else{if(o.destroyed)return false;o.reading=false;if(o.decoder&&!r){t=o.decoder.write(t);if(o.objectMode||0!==t.length)j(e,o,t,false);else X(e,o)}else j(e,o,t,false)}}else if(!n){o.reading=false;X(e,o)}}return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function j(e,t,r,n){if(t.flowing&&0===t.length&&!t.sync){t.awaitDrain=0;e.emit("data",r)}else{t.length+=t.objectMode?1:r.length;if(n)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)L(e)}X(e,t)}function C(e,t){var r;if(!f(t)&&"string"!=typeof t&&void 0!==t&&!e.objectMode)r=new v("chunk",["string","Buffer","Uint8Array"],t);return r}A.prototype.isPaused=function(){return false===this._readableState.flowing};A.prototype.setEncoding=function(t){if(!x)x=e("string_decoder/").StringDecoder;var r=new x(t);this._readableState.decoder=r;this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head;var i="";while(null!==n){i+=r.write(n.data);n=n.next}this._readableState.buffer.clear();if(""!==i)this._readableState.buffer.push(i);this._readableState.length=i.length;return this};var E=0x40000000;function M(e){if(e>=E)e=E;else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function R(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;if(e>t.highWaterMark)t.highWaterMark=M(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}A.prototype.read=function(e){h("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(0!==e)t.emittedReadable=false;if(0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended)){h("read: emitReadable",t.length,t.ended);if(0===t.length&&t.ended)U(this);else L(this);return null}e=R(e,t);if(0===e&&t.ended){if(0===t.length)U(this);return null}var n=t.needReadable;h("need readable",n);if(0===t.length||t.length-e<t.highWaterMark){n=true;h("length less than watermark",n)}if(t.ended||t.reading){n=false;h("reading or ended",n)}else if(n){h("do read");t.reading=true;t.sync=true;if(0===t.length)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=R(r,t)}var i;i=e>0?Y(e,t):null;if(null===i){t.needReadable=t.length<=t.highWaterMark;e=0}else{t.length-=e;t.awaitDrain=0}if(0===t.length){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)U(this)}
11if(null!==i)this.emit("data",i);return i};function D(e,t){h("onEofChunk");if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;if(t.sync)L(e);else{t.needReadable=false;if(!t.emittedReadable){t.emittedReadable=true;Z(e)}}}function L(e){var t=e._readableState;h("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){h("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(Z,e)}}function Z(e){var t=e._readableState;h("emitReadable_",t.destroyed,t.length,t.ended);if(!t.destroyed&&(t.length||t.ended)){e.emit("readable");t.emittedReadable=false}t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark;W(e)}function X(e,t){if(!t.readingMore){t.readingMore=true;process.nextTick(q,e,t)}}function q(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var r=t.length;h("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}A.prototype._read=function(e){k(this,new b("_read()"))};A.prototype.pipe=function(e,t){var r=this;var n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1;h("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||false!==t.end)&&e!==process.stdout&&e!==process.stderr;var s=i?l:O;if(n.endEmitted)process.nextTick(s);else r.once("end",s);e.on("unpipe",a);function a(e,t){h("onunpipe");if(e===r){if(t&&false===t.hasUnpiped){t.hasUnpiped=true;c()}}}function l(){h("onend");e.end()}var u=B(r);e.on("drain",u);var f=false;function c(){h("cleanup");e.removeListener("close",g);e.removeListener("finish",m);e.removeListener("drain",u);e.removeListener("error",p);e.removeListener("unpipe",a);r.removeListener("end",l);r.removeListener("end",O);r.removeListener("data",d);f=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))u()}r.on("data",d);function d(t){h("ondata");var i=e.write(t);h("dest.write",i);if(false===i){if((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!f){h("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function p(t){h("onerror",t);O();e.removeListener("error",p);if(0===o(e,"error"))k(e,t)}P(e,"error",p);function g(){e.removeListener("finish",m);O()}e.once("close",g);function m(){h("onfinish");e.removeListener("close",g);O()}e.once("finish",m);function O(){h("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){h("pipe resume");r.resume()}return e};function B(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(0===t.awaitDrain&&o(e,"data")){t.flowing=true;W(e)}}}A.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(0===t.pipesCount)return this;if(1===t.pipesCount){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var n=t.pipes;var i=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:false});return this}var s=F(t.pipes,e);if(-1===s)return this;t.pipes.splice(s,1);t.pipesCount-=1;if(1===t.pipesCount)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};A.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);var n=this._readableState;if("data"===e){n.readableListening=this.listenerCount("readable")>0;if(false!==n.flowing)this.resume()}else if("readable"===e){if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.flowing=false;n.emittedReadable=false;h("on readable",n.length,n.reading);if(n.length)L(this);else if(!n.reading)process.nextTick(I,this)}}return r};A.prototype.addListener=A.prototype.on;A.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);if("readable"===e)process.nextTick(z,this);return r};A.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);if("readable"===e||void 0===e)process.nextTick(z,this);return t};function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0;if(t.resumeScheduled&&!t.paused)t.flowing=true;else if(e.listenerCount("data")>0)e.resume()}function I(e){h("readable nexttick read 0");e.read(0)}A.prototype.resume=function(){var e=this._readableState;if(!e.flowing){h("resume");e.flowing=!e.readableListening;N(this,e)}e.paused=false;return this};function N(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;process.nextTick(V,e,t)}}function V(e,t){h("resume",t.reading);if(!t.reading)e.read(0);t.resumeScheduled=false;e.emit("resume");W(e);if(t.flowing&&!t.reading)e.read(0)}A.prototype.pause=function(){h("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){h("pause");this._readableState.flowing=false;
11this.emit("pause")}this._readableState.paused=true;return this};function W(e){var t=e._readableState;h("flow",t.flowing);while(t.flowing&&null!==e.read());}A.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",function(){h("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)});e.on("data",function(i){h("wrapped data");if(r.decoder)i=r.decoder.write(i);if(r.objectMode&&null==i)return;if(!r.objectMode&&(!i||!i.length))return;var o=t.push(i);if(!o){n=true;e.pause()}});for(var i in e)if(void 0===this[i]&&"function"==typeof e[i])this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i);for(var o=0;o<Q.length;o++)e.on(Q[o],this.emit.bind(this,Q[o]));this._read=function(t){h("wrapped _read",t);if(n){n=false;e.resume()}};return this};if("function"==typeof Symbol)A.prototype[Symbol.asyncIterator]=function(){if(void 0===S)S=e("./internal/streams/async_iterator");return S(this)};Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(A.prototype,"readableBuffer",{enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(A.prototype,"readableFlowing",{enumerable:false,get:function(){return this._readableState.flowing},set:function(e){if(this._readableState)this._readableState.flowing=e}});A._fromList=Y;Object.defineProperty(A.prototype,"readableLength",{enumerable:false,get:function(){return this._readableState.length}});function Y(e,t){if(0===t.length)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length);t.buffer.clear()}else r=t.buffer.consume(e,t.decoder);return r}function U(e){var t=e._readableState;h("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(G,t,e)}}function G(e,t){h("endReadableNT",e.endEmitted,e.length);if(!e.endEmitted&&0===e.length){e.endEmitted=true;t.readable=false;t.emit("end");if(e.autoDestroy){var r=t._writableState;if(!r||r.autoDestroy&&r.finished)t.destroy()}}}if("function"==typeof Symbol)A.from=function(t,r){if(void 0===_)_=e("./internal/streams/from");return _(A,t,r)};function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}},
11"_stream_duplex.js":function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};r.exports=u;var i=e("./_stream_readable");var o=e("./_stream_writable");e("inherits")(u,i);var s=n(o.prototype);for(var a=0;a<s.length;a++){var l=s[a];if(!u.prototype[l])u.prototype[l]=o.prototype[l]}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e);o.call(this,e);this.allowHalfOpen=true;if(e){if(false===e.readable)this.readable=false;if(false===e.writable)this.writable=false;if(false===e.allowHalfOpen){this.allowHalfOpen=false;this.once("end",f)}}}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(u.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(u.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function f(){if(this._writableState.ended)return;process.nextTick(c,this)}function c(e){e.end()}Object.defineProperty(u.prototype,"destroyed",{enumerable:false,get:function(){if(void 0===this._readableState||void 0===this._writableState)return false;return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(void 0===this._readableState||void 0===this._writableState)return;this._readableState.destroyed=e;this._writableState.destroyed=e}})},
11"_stream_writable.js":function(e,r,n){"use strict";n.exports=T;function i(e){var t=this;this.next=null;this.entry=null;this.finish=function(){V(t,e)}}var o;T.WritableState=Q;var s={deprecate:e("util-deprecate")};var a=e("./internal/streams/stream");var l=e("buffer").Buffer;var u=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function f(e){return l.from(e)}function c(e){return l.isBuffer(e)||e instanceof u}var h=e("./internal/streams/destroy");var d=e("./internal/streams/state"),p=d.getHighWaterMark;var g=e("../errors").codes,m=g.ERR_INVALID_ARG_TYPE,O=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,y=g.ERR_STREAM_CANNOT_PIPE,b=g.ERR_STREAM_DESTROYED,w=g.ERR_STREAM_NULL_VALUES,x=g.ERR_STREAM_WRITE_AFTER_END,S=g.ERR_UNKNOWN_ENCODING;var _=h.errorOrDestroy;e("inherits")(T,a);function k(){}function Q(t,r,n){o=o||e("./_stream_duplex");t=t||{};if("boolean"!=typeof n)n=r instanceof o;this.objectMode=!!t.objectMode;if(n)this.objectMode=this.objectMode||!!t.writableObjectMode;this.highWaterMark=p(this,t,"writableHighWaterMark",n);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=false===t.decodeStrings;this.decodeStrings=!s;this.defaultEncoding=t.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){D(r,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=false!==t.emitClose;this.autoDestroy=!!t.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new i(this)}Q.prototype.getBuffer=function(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(Q.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var P;if("function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]){P=Function.prototype[Symbol.hasInstance];Object.defineProperty(T,Symbol.hasInstance,{value:function(e){if(P.call(this,e))return true;if(this!==T)return false;return e&&e._writableState instanceof Q}})}else P=function(e){return e instanceof this};function T(t){o=o||e("./_stream_duplex");var r=this instanceof o;if(!r&&!P.call(T,this))return new T(t);this._writableState=new Q(t,this,r);this.writable=true;if(t){if("function"==typeof t.write)this._write=t.write;if("function"==typeof t.writev)this._writev=t.writev;if("function"==typeof t.destroy)this._destroy=t.destroy;if("function"==typeof t.final)this._final=t.final}a.call(this)}T.prototype.pipe=function(){_(this,new y)};function A(e,t){var r=new x;_(e,r);process.nextTick(t,r)}function $(e,t,r,n){var i;if(null===r)i=new w;else if("string"!=typeof r&&!t.objectMode)i=new m("chunk",["string","Buffer"],r);if(i){_(e,i);process.nextTick(n,i);return false}return true}T.prototype.write=function(e,t,r){var n=this._writableState;var i=false;var o=!n.objectMode&&c(e);if(o&&!l.isBuffer(e))e=f(e);
11if("function"==typeof t){r=t;t=null}if(o)t="buffer";else if(!t)t=n.defaultEncoding;if("function"!=typeof r)r=k;if(n.ending)A(this,r);else if(o||$(this,n,e,r)){n.pendingcb++;i=C(this,n,o,e,t,r)}return i};T.prototype.cork=function(){this._writableState.corked++};T.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)X(this,e)}};T.prototype.setDefaultEncoding=function(e){if("string"==typeof e)e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new S(e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(T.prototype,"writableBuffer",{enumerable:false,get:function(){return this._writableState&&this._writableState.getBuffer()}});function j(e,t,r){if(!e.objectMode&&false!==e.decodeStrings&&"string"==typeof t)t=l.from(t,r);return t}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function C(e,t,r,n,i,o){if(!r){var s=j(t,n,i);if(n!==s){r=true;i="buffer";n=s}}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(!l)t.needDrain=true;if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null};if(u)u.next=t.lastBufferedRequest;else t.bufferedRequest=t.lastBufferedRequest;t.bufferedRequestCount+=1}else E(e,t,false,a,n,i,o);return l}function E(e,t,r,n,i,o,s){t.writelen=n;t.writecb=s;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new b("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,o,t.onwrite);t.sync=false}function M(e,t,r,n,i){--t.pendingcb;if(r){process.nextTick(i,n);process.nextTick(I,e,t);e._writableState.errorEmitted=true;_(e,n)}else{i(n);e._writableState.errorEmitted=true;_(e,n);I(e,t)}}function R(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function D(e,t){var r=e._writableState;var n=r.sync;var i=r.writecb;if("function"!=typeof i)throw new v;R(r);if(t)M(e,r,n,t,i);else{var o=q(r)||e.destroyed;if(!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest)X(e,r);if(n)process.nextTick(L,e,r,o,i);else L(e,r,o,i)}}function L(e,t,r,n){if(!r)Z(e,t);t.pendingcb--;n();I(e,t)}function Z(e,t){if(0===t.length&&t.needDrain){t.needDrain=false;e.emit("drain")}}function X(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount;var o=new Array(n);var s=t.corkedRequestsFree;s.entry=r;var a=0;var l=true;while(r){o[a]=r;if(!r.isBuf)l=false;r=r.next;a+=1}o.allBuffers=l;E(e,t,true,t.length,o,"",s.finish);t.pendingcb++;t.lastBufferedRequest=null;if(s.next){t.corkedRequestsFree=s.next;s.next=null}else t.corkedRequestsFree=new i(t);t.bufferedRequestCount=0}else{while(r){var u=r.chunk;var f=r.encoding;var c=r.callback;var h=t.objectMode?1:u.length;E(e,t,false,h,u,f,c);r=r.next;t.bufferedRequestCount--;if(t.writing)break}if(null===r)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}T.prototype._write=function(e,t,r){r(new O("_write()"))};T.prototype._writev=null;T.prototype.end=function(e,t,r){var n=this._writableState;if("function"==typeof e){r=e;e=null;t=null}else if("function"==typeof t){r=t;t=null}if(null!=e)this.write(e,t);if(n.corked){n.corked=1;this.uncork()}if(!n.ending)N(this,n,r);return this};Object.defineProperty(T.prototype,"writableLength",{enumerable:false,get:function(){return this._writableState.length}});function q(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function B(e,t){e._final(function(r){t.pendingcb--;if(r)_(e,r);t.prefinished=true;e.emit("prefinish");I(e,t)})}function z(e,t){if(!t.prefinished&&!t.finalCalled)if("function"!=typeof e._final||t.destroyed){t.prefinished=true;e.emit("prefinish")}else{t.pendingcb++;
11t.finalCalled=true;process.nextTick(B,e,t)}}function I(e,t){var r=q(t);if(r){z(e,t);if(0===t.pendingcb){t.finished=true;e.emit("finish");if(t.autoDestroy){var n=e._readableState;if(!n||n.autoDestroy&&n.endEmitted)e.destroy()}}}return r}function N(e,t,r){t.ending=true;I(e,t);if(r)if(t.finished)process.nextTick(r);else e.once("finish",r);t.ended=true;e.writable=false}function V(e,t,r){var n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--;i(r);n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(T.prototype,"destroyed",{enumerable:false,get:function(){if(void 0===this._writableState)return false;return this._writableState.destroyed},set:function(e){if(!this._writableState)return;this._writableState.destroyed=e}});T.prototype.destroy=h.destroy;T.prototype._undestroy=h.undestroy;T.prototype._destroy=function(e,t){t(e)}},
11"_stream_transform.js":function(e,t,r){"use strict";r.exports=f;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0;var l=e("./_stream_duplex");e("inherits")(f,l);function u(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null;r.writecb=null;if(null!=t)this.push(t);n(e);var i=this._readableState;i.reading=false;if(i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);l.call(this,e);this._transformState={afterTransform:u.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if("function"==typeof e.transform)this._transform=e.transform;if("function"==typeof e.flush)this._flush=e.flush}this.on("prefinish",c)}function c(){var e=this;if("function"!=typeof this._flush||this._readableState.destroyed)h(this,null,null);else this._flush(function(t,r){h(e,t,r)})}f.prototype.push=function(e,t){this._transformState.needTransform=false;return l.prototype.push.call(this,e,t)};f.prototype._transform=function(e,t,r){r(new i("_transform()"))};f.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r;n.writechunk=e;n.writeencoding=t;if(!n.transforming){var i=this._readableState;if(n.needTransform||i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}};f.prototype._read=function(e){var t=this._transformState;if(null===t.writechunk||t.transforming)t.needTransform=true;else{t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}};f.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})};function h(e,t,r){if(t)return e.emit("error",t);if(null!=r)e.push(r);if(e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}},
11"_stream_passthrough.js":function(e,t,r){"use strict";r.exports=i;var n=e("./_stream_transform");e("inherits")(i,n);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}i.prototype._transform=function(e,t,r){r(null,e)}}},
11"readable-browser.js":function(e,t,r){t=r.exports=e("./lib/_stream_readable.js");t.Stream=t;t.Readable=t;t.Writable=e("./lib/_stream_writable.js");t.Duplex=e("./lib/_stream_duplex.js");t.Transform=e("./lib/_stream_transform.js");t.PassThrough=e("./lib/_stream_passthrough.js");t.finished=e("./lib/internal/streams/end-of-stream.js");t.pipeline=e("./lib/internal/streams/pipeline.js")},
11"errors-browser.js":function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var i={};function o(e,t,r){if(!r)r=Error;function o(e,r,n){if("string"==typeof t)return t;return t(e,r,n)}var s=function(e){n(t,e);function t(t,r,n){return e.call(this,o(t,r,n))||this}return t}(r);s.prototype.name=r.name;s.prototype.code=e;i[e]=s}function s(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;e=e.map(function(e){return String(e)});if(r>2)return"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1];if(2===r)return"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]);return"of ".concat(t," ").concat(e[0])}function a(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function l(e,t,r){if(void 0===r||r>e.length)r=e.length;return e.substring(r-t.length,r)===t}function u(e,t,r){if("number"!=typeof r)r=0;if(r+t.length>e.length)return false;return -1!==e.indexOf(t,r)}o("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);o("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;if("string"==typeof t&&a(t,"not ")){n="must not be";t=t.replace(/^not /,"")}else n="must be";var i;if(l(e," argument"))i="The ".concat(e," ").concat(n," ").concat(s(t,"type"));else{var o=u(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(o," ").concat(n," ").concat(s(t,"type"))}i+=". Received type ".concat(typeof r);return i},TypeError);o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");o("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});o("ERR_STREAM_PREMATURE_CLOSE","Premature close");o("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});o("ERR_MULTIPLE_CALLBACK","Callback called multiple times");o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");o("ERR_STREAM_WRITE_AFTER_END","write after end");o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);o("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");r.exports.codes=i}},"util-deprecate":{
11"package.json":function(e,t,r){r.exports={name:"util-deprecate",version:"1.0.2",browser:"browser.js",main:"node.js"}},
11"browser.js":function(e,r,n){n.exports=i;function i(e,t){if(o("noDeprecation"))return e;var r=false;function n(){if(!r){if(o("throwDeprecation"))throw new Error(t);if(o("traceDeprecation"))console.trace(t);else console.warn(t);r=true}return e.apply(this,arguments)}return n}function o(e){try{if(!t.localStorage)return false}catch(e){return false}var r=t.localStorage[e];if(null==r)return false;return"true"===String(r).toLowerCase()}}},string_decoder:{
11"package.json":function(e,t,r){r.exports={name:"string_decoder",version:"1.3.0",main:"lib/string_decoder.js"}},lib:{
11"string_decoder.js":function(e,t){"use strict";var r=e("safe-buffer").Buffer;var n=r.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function i(e){if(!e)return"utf8";var t;while(true)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}function o(e){var t=i(e);if("string"!=typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.StringDecoder=s;function s(e){this.encoding=o(e);var t;switch(this.encoding){case"utf16le":this.text=d;this.end=p;t=4;break;case"utf8":this.fillLast=f;t=4;break;case"base64":this.text=g;this.end=m;t=3;break;default:this.write=O;this.end=v;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=r.allocUnsafe(t)}s.prototype.write=function(e){if(0===e.length)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(void 0===t)return"";r=this.lastNeed;this.lastNeed=0}else r=0;if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};s.prototype.end=h;s.prototype.text=c;s.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function a(e){if(e<=127)return 0;if(e>>5===6)return 2;if(e>>4===14)return 3;if(e>>3===30)return 4;return e>>6===2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(i>=0){if(i>0)e.lastNeed=i-1;return i}if(--n<r||-2===i)return 0;i=a(t[n]);if(i>=0){if(i>0)e.lastNeed=i-2;return i}if(--n<r||-2===i)return 0;i=a(t[n]);if(i>=0){if(i>0)if(2===i)i=0;else e.lastNeed=i-3;return i}return 0}function u(e,t,r){if((192&t[0])!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((192&t[1])!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((192&t[2])!==128){e.lastNeed=2;return"�"}}}}function f(e){var t=this.lastTotal-this.lastNeed;var r=u(this,e,t);if(void 0!==r)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function c(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function d(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;if(0===r)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(1===r)this.lastChar[0]=e[e.length-1];else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function O(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}}}},"safe-buffer":{
11"package.json":function(e,t,r){r.exports={name:"safe-buffer",version:"5.2.1",main:"index.js"}},
11"index.js":function(e,t,r){var n=e("buffer");var i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow)r.exports=n;else{o(n,t);t.Buffer=s}function s(e,t,r){return i(e,t,r)}s.prototype=Object.create(i.prototype);o(i,s);s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)};s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);if(void 0!==t)if("string"==typeof r)n.fill(t,r);else n.fill(t);else n.fill(0);return n};s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)};s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}},"lodash.assignin":{
11"package.json":function(e,t,r){r.exports={name:"lodash.assignin",version:"4.2.0"}},
11"index.js":function(e,t,r){var n=0x1fffffffffffff;var i="[object Arguments]",o="[object Function]",s="[object GeneratorFunction]";var a=/^(?:0|[1-9]\d*)$/;function l(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function u(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var f=Object.prototype;var c=f.hasOwnProperty;var h=f.toString;var d=f.propertyIsEnumerable;var p=Math.max;function g(e,t){var r=P(e)||Q(e)?u(e.length,String):[];var n=r.length,i=!!n;for(var o in e)if((t||c.call(e,o))&&!(i&&("length"==o||w(o,n))))r.push(o);return r}function m(e,t,r){var n=e[t];if(!(c.call(e,t)&&k(n,r))||void 0===r&&!(t in e))e[t]=r}function O(e){if(!C(e))return _(e);var t=S(e),r=[];for(var n in e)if(!("constructor"==n&&(t||!c.call(e,n))))r.push(n);return r}function v(e,t){t=p(void 0===t?e.length-1:t,0);return function(){var r=arguments,n=-1,i=p(r.length-t,0),o=Array(i);while(++n<i)o[n]=r[t+n];n=-1;var s=Array(t+1);while(++n<t)s[n]=r[n];s[t]=o;return l(e,this,s)}}function y(e,t,r,n){r||(r={});var i=-1,o=t.length;while(++i<o){var s=t[i];var a=n?n(r[s],e[s],s,r,e):void 0;m(r,s,void 0===a?e[s]:a)}return r}function b(e){return v(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0;if(s&&x(r[0],r[1],s)){o=i<3?void 0:o;i=1}t=Object(t);while(++n<i){var a=r[n];if(a)e(t,a,n,o)}return t})}function w(e,t){t=null==t?n:t;return!!t&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}function x(e,t,r){if(!C(r))return false;var n=typeof t;if("number"==n?T(r)&&w(t,r.length):"string"==n&&t in r)return k(r[t],e);return false}function S(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||f;return e===r}function _(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}function k(e,t){return e===t||e!==e&&t!==t}function Q(e){return A(e)&&c.call(e,"callee")&&(!d.call(e,"callee")||h.call(e)==i)}var P=Array.isArray;function T(e){return null!=e&&j(e.length)&&!$(e)}function A(e){return E(e)&&T(e)}function $(e){var t=C(e)?h.call(e):"";return t==o||t==s}function j(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function C(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}var M=b(function(e,t){y(t,R(t),e)});function R(e){return T(e)?g(e,true):O(e)}r.exports=M}},"lodash.bind":{
11"package.json":function(e,t,r){r.exports={name:"lodash.bind",version:"4.2.1"}},
11"index.js":function(e,r,n){var i="Expected a function";var o="__lodash_placeholder__";var s=1,a=2,l=4,u=8,f=16,c=32,h=64,d=128,p=256,g=512;var m=1/0,O=0x1fffffffffffff,v=17976931348623157e292,y=0/0;var b=[["ary",d],["bind",s],["bindKey",a],["curry",u],["curryRight",f],["flip",g],["partial",c],["partialRight",h],["rearg",p]];var w="[object Function]",x="[object GeneratorFunction]",S="[object Symbol]";var _=/[\\^$.*+?()[\]{}|]/g;var k=/^\s+|\s+$/g;var Q=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,P=/\{\n\/\* \[wrapped with (.+)\] \*/,T=/,? & /;var A=/^[-+]0x[0-9a-f]+$/i;var $=/^0b[01]+$/i;var j=/^\[object .+?Constructor\]$/;var C=/^0o[0-7]+$/i;var E=/^(?:0|[1-9]\d*)$/;var M=parseInt;var R="object"==typeof t&&t&&t.Object===Object&&t;var D="object"==typeof self&&self&&self.Object===Object&&self;var L=R||D||Function("return this")();function Z(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function X(e,t){var r=-1,n=e?e.length:0;while(++r<n)if(false===t(e[r],r,e))break;return e}function q(e,t){var r=e?e.length:0;return!!r&&z(e,t,0)>-1}function B(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i)if(t(e[o],o,e))return o;return -1}function z(e,t,r){if(t!==t)return B(e,I,r);var n=r-1,i=e.length;while(++n<i)if(e[n]===t)return n;return -1}function I(e){return e!==e}function N(e,t){var r=e.length,n=0;while(r--)if(e[r]===t)n++;return n}function V(e,t){return null==e?void 0:e[t]}function W(e){var t=false;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Y(e,t){var r=-1,n=e.length,i=0,s=[];while(++r<n){var a=e[r];if(a===t||a===o){e[r]=o;s[i++]=r}}return s}var U=Function.prototype,G=Object.prototype;var F=L["__core-js_shared__"];var H=function(){var e=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var K=U.toString;var J=G.hasOwnProperty;var ee=G.toString;var et=RegExp("^"+K.call(J).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var er=Object.create;var en=Math.max,ei=Math.min;var eo=function(){var e=eb(Object,"defineProperty"),t=eb.name;return t&&t.length>2?e:void 0}();function es(e){return ej(e)?er(e):{}}function ea(e){if(!ej(e)||e_(e))return false;var t=e$(e)||W(e)?et:j;return t.test(eP(e))}function el(e,t){t=en(void 0===t?e.length-1:t,0);return function(){var r=arguments,n=-1,i=en(r.length-t,0),o=Array(i);while(++n<i)o[n]=r[t+n];n=-1;var s=Array(t+1);while(++n<t)s[n]=r[n];s[t]=o;return Z(e,this,s)}}function eu(e,t,r,n){var i=-1,o=e.length,s=r.length,a=-1,l=t.length,u=en(o-s,0),f=Array(l+u),c=!n;while(++a<l)f[a]=t[a];while(++i<s)if(c||i<o)f[r[i]]=e[i];while(u--)f[a++]=e[i++];return f}function ef(e,t,r,n){var i=-1,o=e.length,s=-1,a=r.length,l=-1,u=t.length,f=en(o-a,0),c=Array(f+u),h=!n;while(++i<f)c[i]=e[i];var d=i;while(++l<u)c[d+l]=t[l];while(++s<a)if(h||i<o)c[d+r[s]]=e[i++];return c}function ec(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}function eh(e,t,r){var n=t&s,i=ed(e);function o(){var t=this&&this!==L&&this instanceof o?i:e;return t.apply(n?r:this,arguments)}return o}function ed(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=es(e.prototype),n=e.apply(r,t);return ej(n)?n:r}}function ep(e,t,r){var n=ed(e);function i(){var o=arguments.length,s=Array(o),a=o,l=ey(i);while(a--)s[a]=arguments[a];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Y(s,l);o-=u.length;if(o<r)return eO(e,t,eg,i.placeholder,void 0,s,u,void 0,void 0,r-o);var f=this&&this!==L&&this instanceof i?n:e;return Z(f,this,s)}return i}function eg(e,t,r,n,i,o,l,c,h,p){var m=t&d,O=t&s,v=t&a,y=t&(u|f),b=t&g,w=v?void 0:ed(e);function x(){var s=arguments.length,a=Array(s),u=s;while(u--)a[u]=arguments[u];if(y)var f=ey(x),d=N(a,f);if(n)a=eu(a,n,i,y);if(o)a=ef(a,o,l,y);s-=d;if(y&&s<p){var g=Y(a,f);return eO(e,t,eg,x.placeholder,r,a,g,c,h,p-s)}var S=O?r:this,_=v?S[e]:e;s=a.length;if(c)a=ek(a,c);else if(b&&s>1)a.reverse();if(m&&h<s)a.length=h;if(this&&this!==L&&this instanceof x)_=w||ed(_);return _.apply(S,a)}return x}function em(e,t,r,n){var i=t&s,o=ed(e);function a(){var t=-1,s=arguments.length,l=-1,u=n.length,f=Array(u+s),c=this&&this!==L&&this instanceof a?o:e;while(++l<u)f[l]=n[l];while(s--)f[l++]=arguments[++t];return Z(c,i?r:this,f)}return a}function eO(e,t,r,n,i,o,f,d,p,g){var m=t&u,O=m?f:void 0,v=m?void 0:f,y=m?o:void 0,b=m?void 0:o;t|=m?c:h;t&=~(m?h:c);if(!(t&l))t&=~(s|a);var w=r(e,t,i,y,O,b,v,d,p,g);w.placeholder=n;return eQ(w,e,t)}function ev(e,t,r,n,o,l,d,p){var g=t&a;if(!g&&"function"!=typeof e)throw new TypeError(i);var m=n?n.length:0;if(!m){t&=~(c|h);n=o=void 0}d=void 0===d?d:en(eR(d),0);p=void 0===p?p:eR(p);m-=o?o.length:0;if(t&h){var O=n,v=o;n=o=void 0}var y=[e,t,r,n,o,O,v,l,d,p];e=y[0];t=y[1];r=y[2];n=y[3];o=y[4];p=y[9]=null==y[9]?g?0:e.length:en(y[9]-m,0);if(!p&&t&(u|f))t&=~(u|f);
11if(t&&t!=s)b=t==u||t==f?ep(e,t,p):t!=c&&t!=(s|c)||o.length?eg.apply(void 0,y):em(e,t,r,n);else var b=eh(e,t,r);return eQ(b,e,t)}function ey(e){var t=e;return t.placeholder}function eb(e,t){var r=V(e,t);return ea(r)?r:void 0}function ew(e){var t=e.match(P);return t?t[1].split(T):[]}function ex(e,t){var r=t.length,n=r-1;t[n]=(r>1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(Q,"{\n/* [wrapped with "+t+"] */\n")}function eS(e,t){t=null==t?O:t;return!!t&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function e_(e){return!!H&&H in e}function ek(e,t){var r=e.length,n=ei(t.length,r),i=ec(e);while(n--){var o=t[n];e[n]=eS(o,r)?i[o]:void 0}return e}var eQ=eo?function(e,t,r){var n=t+"";return eo(e,"toString",{configurable:true,enumerable:false,value:eL(ex(n,eT(ew(n),r)))})}:eZ;function eP(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eT(e,t){X(b,function(r){var n="_."+r[0];if(t&r[1]&&!q(e,n))e.push(n)});return e.sort()}var eA=el(function(e,t,r){var n=s;if(r.length){var i=Y(r,ey(eA));n|=c}return ev(e,n,t,r,i)});function e$(e){var t=ej(e)?ee.call(e):"";return t==w||t==x}function ej(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eC(e){return!!e&&"object"==typeof e}function eE(e){return"symbol"==typeof e||eC(e)&&ee.call(e)==S}function eM(e){if(!e)return 0===e?e:0;e=eD(e);if(e===m||e===-m){var t=e<0?-1:1;return t*v}return e===e?e:0}function eR(e){var t=eM(e),r=t%1;return t===t?r?t-r:t:0}function eD(e){if("number"==typeof e)return e;if(eE(e))return y;if(ej(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ej(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(k,"");var r=$.test(e);return r||C.test(e)?M(e.slice(2),r?2:8):A.test(e)?y:+e}function eL(e){return function(){return e}}function eZ(e){return e}eA.placeholder={};n.exports=eA}},"lodash.foreach":{
11"package.json":function(e,t,r){r.exports={name:"lodash.foreach",version:"4.5.0"}},
11"index.js":function(e,t,r){var n=0x1fffffffffffff;var i="[object Arguments]",o="[object Function]",s="[object GeneratorFunction]";var a=/^(?:0|[1-9]\d*)$/;function l(e,t){var r=-1,n=e?e.length:0;while(++r<n)if(false===t(e[r],r,e))break;return e}function u(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function f(e,t){return function(r){return e(t(r))}}var c=Object.prototype;var h=c.hasOwnProperty;var d=c.toString;var p=c.propertyIsEnumerable;var g=f(Object.keys,Object);function m(e,t){var r=P(e)||Q(e)?u(e.length,String):[];var n=r.length,i=!!n;for(var o in e)if((t||h.call(e,o))&&!(i&&("length"==o||S(o,n))))r.push(o);return r}var O=w(y);var v=x();function y(e,t){return e&&v(e,t,M)}function b(e){if(!_(e))return g(e);var t=[];for(var r in Object(e))if(h.call(e,r)&&"constructor"!=r)t.push(r);return t}function w(e,t){return function(r,n){if(null==r)return r;if(!T(r))return e(r,n);var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i)if(false===n(s[o],o,s))break;return r}}function x(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var l=s[e?a:++i];if(false===r(o[l],l,o))break}return t}}function S(e,t){t=null==t?n:t;return!!t&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}function _(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||c;return e===r}function k(e,t){var r=P(e)?l:O;return r(e,"function"==typeof t?t:R)}
vendor: 504 bytes, line 11
11function Q(e){return A(e)&&h.call(e,"callee")&&(!p.call(e,"callee")||d.call(e)==i)}var P=Array.isArray;function T(e){return null!=e&&j(e.length)&&!$(e)}function A(e){return E(e)&&T(e)}function $(e){var t=C(e)?d.call(e):"";return t==o||t==s}function j(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function C(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}function M(e){return T(e)?m(e):b(e)}function R(e){return e}r.exports=k}},"lodash.defaults":{
11"package.json":function(e,t,r){r.exports={name:"lodash.defaults",version:"4.2.0"}},
11"index.js":function(e,t,r){var n=0x1fffffffffffff;var i="[object Arguments]",o="[object Function]",s="[object GeneratorFunction]";var a=/^(?:0|[1-9]\d*)$/;function l(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function u(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var f=Object.prototype;var c=f.hasOwnProperty;var h=f.toString;var d=f.propertyIsEnumerable;var p=Math.max;function g(e,t){var r=T(e)||P(e)?u(e.length,String):[];var n=r.length,i=!!n;for(var o in e)if((t||c.call(e,o))&&!(i&&("length"==o||x(o,n))))r.push(o);return r}function m(e,t,r,n){if(void 0===e||Q(e,f[r])&&!c.call(n,r))return t;return e}function O(e,t,r){var n=e[t];if(!(c.call(e,t)&&Q(n,r))||void 0===r&&!(t in e))e[t]=r}function v(e){if(!E(e))return k(e);var t=_(e),r=[];for(var n in e)if(!("constructor"==n&&(t||!c.call(e,n))))r.push(n);return r}function y(e,t){t=p(void 0===t?e.length-1:t,0);return function(){var r=arguments,n=-1,i=p(r.length-t,0),o=Array(i);while(++n<i)o[n]=r[t+n];n=-1;var s=Array(t+1);while(++n<t)s[n]=r[n];s[t]=o;return l(e,this,s)}}function b(e,t,r,n){r||(r={});var i=-1,o=t.length;while(++i<o){var s=t[i];var a=n?n(r[s],e[s],s,r,e):void 0;O(r,s,void 0===a?e[s]:a)}return r}function w(e){return y(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0;if(s&&S(r[0],r[1],s)){o=i<3?void 0:o;i=1}t=Object(t);while(++n<i){var a=r[n];if(a)e(t,a,n,o)}return t})}function x(e,t){t=null==t?n:t;return!!t&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}function S(e,t,r){if(!E(r))return false;var n=typeof t;if("number"==n?A(r)&&x(t,r.length):"string"==n&&t in r)return Q(r[t],e);return false}function _(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||f;return e===r}function k(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}function Q(e,t){return e===t||e!==e&&t!==t}function P(e){return $(e)&&c.call(e,"callee")&&(!d.call(e,"callee")||h.call(e)==i)}var T=Array.isArray;function A(e){return null!=e&&C(e.length)&&!j(e)}function $(e){return M(e)&&A(e)}function j(e){var t=E(e)?h.call(e):"";return t==o||t==s}function C(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function M(e){return!!e&&"object"==typeof e}var R=w(function(e,t,r,n){b(t,L(t),e,n)});var D=y(function(e){e.push(void 0,m);return l(R,void 0,e)});function L(e){return A(e)?g(e,true):v(e)}r.exports=D}},"css-select":{
11"package.json":function(e,t,r){r.exports={name:"css-select",version:"1.2.0"}},
11"index.js":function(e,t,r){"use strict";r.exports=O;var n=e("./lib/pseudos.js"),i=e("domutils"),o=i.findOne,s=i.findAll,a=i.getChildren,l=i.removeSubsets,u=e("boolbase").falseFunc,f=e("./lib/compile.js"),c=f.compileUnsafe,h=f.compileToken;function d(e){return function(t,r,n){if("function"!=typeof t)t=c(t,n,r);r=Array.isArray(r)?l(r):a(r);return e(t,r)}}var p=d(function(e,t){return e!==u&&t&&0!==t.length?s(e,t):[]});var g=d(function(e,t){return e!==u&&t&&0!==t.length?o(e,t):null});function m(e,t,r){return("function"==typeof t?t:f(t,r))(e)}function O(e,t,r){return p(e,t,r)}O.compile=f;O.filters=n.filters;O.pseudos=n.pseudos;O.selectAll=p;O.selectOne=g;O.is=m;O.parse=f;O.iterate=p;O._compileUnsafe=c;O._compileToken=h},lib:{
11"pseudos.js":function(e,t,r){var n=e("domutils"),i=n.isTag,o=n.getText,s=n.getParent,a=n.getChildren,l=n.getSiblings,u=n.hasAttrib,f=n.getName,c=n.getAttributeValue,h=e("nth-check"),d=e("./attributes.js").rules.equals,p=e("boolbase"),g=p.trueFunc,m=p.falseFunc;function O(e){for(var t=0;e&&t<e.length;t++)if(i(e[t]))return e[t]}function v(e,t){var r={name:e,value:t};return function(e){return d(e,r)}}function y(e){return function(t){return!!s(t)&&e(t)}}var b={contains:function(e,t){return function(r){return e(r)&&o(r).indexOf(t)>=0}},icontains:function(e,t){var r=t.toLowerCase();return function(t){return e(t)&&o(t).toLowerCase().indexOf(r)>=0}},"nth-child":function(e,t){var r=h(t);if(r===m)return r;if(r===g)return y(e);return function(t){var n=l(t);for(var o=0,s=0;o<n.length;o++)if(i(n[o]))if(n[o]===t)break;else s++;return r(s)&&e(t)}},"nth-last-child":function(e,t){var r=h(t);if(r===m)return r;if(r===g)return y(e);return function(t){var n=l(t);for(var o=0,s=n.length-1;s>=0;s--)if(i(n[s]))if(n[s]===t)break;else o++;return r(o)&&e(t)}},"nth-of-type":function(e,t){var r=h(t);if(r===m)return r;if(r===g)return y(e);return function(t){var n=l(t);for(var o=0,s=0;s<n.length;s++)if(i(n[s])){if(n[s]===t)break;if(f(n[s])===f(t))o++}return r(o)&&e(t)}},"nth-last-of-type":function(e,t){var r=h(t);if(r===m)return r;if(r===g)return y(e);return function(t){var n=l(t);for(var o=0,s=n.length-1;s>=0;s--)if(i(n[s])){if(n[s]===t)break;if(f(n[s])===f(t))o++}return r(o)&&e(t)}},root:function(e){return function(t){return!s(t)&&e(t)}},scope:function(e,t,r,n){if(!n||0===n.length)return b.root(e);if(1===n.length)return function(t){return n[0]===t&&e(t)};return function(t){return n.indexOf(t)>=0&&e(t)}},checkbox:v("type","checkbox"),file:v("type","file"),password:v("type","password"),radio:v("type","radio"),reset:v("type","reset"),image:v("type","image"),submit:v("type","submit")};var w={empty:function(e){return!a(e).some(function(e){return i(e)||"text"===e.type})},"first-child":function(e){return O(l(e))===e},"last-child":function(e){var t=l(e);for(var r=t.length-1;r>=0;r--){if(t[r]===e)return true;if(i(t[r]))break}return false},"first-of-type":function(e){var t=l(e);for(var r=0;r<t.length;r++)if(i(t[r])){if(t[r]===e)return true;if(f(t[r])===f(e))break}return false},"last-of-type":function(e){var t=l(e);for(var r=t.length-1;r>=0;r--)if(i(t[r])){if(t[r]===e)return true;if(f(t[r])===f(e))break}return false},"only-of-type":function(e){var t=l(e);for(var r=0,n=t.length;r<n;r++)if(i(t[r])){if(t[r]===e)continue;if(f(t[r])===f(e))return false}return true},"only-child":function(e){var t=l(e);for(var r=0;r<t.length;r++)if(i(t[r])&&t[r]!==e)return false;return true},link:function(e){return u(e,"href")},visited:m,selected:function(e){if(u(e,"selected"))return true;if("option"!==f(e))return false;var t=s(e);if(!t||"select"!==f(t)||u(t,"multiple"))return false;var r=a(t),n=false;for(var o=0;o<r.length;o++)if(i(r[o])){if(r[o]===e)n=true;else if(!n)return false;else if(u(r[o],"selected"))return false}return n},disabled:function(e){return u(e,"disabled")},enabled:function(e){return!u(e,"disabled")},checked:function(e){return u(e,"checked")||w.selected(e)},required:function(e){return u(e,"required")},optional:function(e){return!u(e,"required")},parent:function(e){return!w.empty(e)},header:function(e){var t=f(e);return"h1"===t||"h2"===t||"h3"===t||"h4"===t||"h5"===t||"h6"===t},button:function(e){var t=f(e);return"button"===t||"input"===t&&"button"===c(e,"type")},input:function(e){var t=f(e);return"input"===t||"textarea"===t||"select"===t||"button"===t},text:function(e){var t;return"input"===f(e)&&(!(t=c(e,"type"))||"text"===t.toLowerCase())}};function x(e,t,r){if(null===r){if(e.length>1&&"scope"!==t)throw new SyntaxError("pseudo-selector :"+t+" requires an argument")}else if(1===e.length)throw new SyntaxError("pseudo-selector :"+t+" doesn't have any arguments")}var S=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;r.exports={compile:function(e,t,r,n){var i=t.name,o=t.data;if(r&&r.strict&&!S.test(i))throw SyntaxError(":"+i+" isn't part of CSS3");if("function"==typeof b[i]){x(b[i],i,o);return b[i](e,o,r,n)}if("function"==typeof w[i]){var s=w[i];x(s,i,o);if(e===g)return s;return function(t){return s(t,o)&&e(t)}}throw new SyntaxError("unmatched pseudo-class :"+i)},filters:b,pseudos:w}},
11"attributes.js":function(e,t,r){var n=e("domutils"),i=n.hasAttrib,o=n.getAttributeValue,s=e("boolbase").falseFunc;var a=/[-[\]{}()*+?.,\\^$|#\s]/g;var l={__proto__:null,equals:function(e,t){var r=t.name,n=t.value;if(t.ignoreCase){n=n.toLowerCase();return function(t){var i=o(t,r);return null!=i&&i.toLowerCase()===n&&e(t)}}return function(t){return o(t,r)===n&&e(t)}},hyphen:function(e,t){var r=t.name,n=t.value,i=n.length;if(t.ignoreCase){n=n.toLowerCase();return function(t){var s=o(t,r);return null!=s&&(s.length===i||"-"===s.charAt(i))&&s.substr(0,i).toLowerCase()===n&&e(t)}}return function(t){var s=o(t,r);return null!=s&&s.substr(0,i)===n&&(s.length===i||"-"===s.charAt(i))&&e(t)}},element:function(e,t){var r=t.name,n=t.value;if(/\s/.test(n))return s;n=n.replace(a,"\\$&");var i="(?:^|\\s)"+n+"(?:$|\\s)",l=t.ignoreCase?"i":"",u=new RegExp(i,l);return function(t){var n=o(t,r);return null!=n&&u.test(n)&&e(t)}},exists:function(e,t){var r=t.name;return function(t){return i(t,r)&&e(t)}},start:function(e,t){var r=t.name,n=t.value,i=n.length;if(0===i)return s;if(t.ignoreCase){n=n.toLowerCase();return function(t){var s=o(t,r);return null!=s&&s.substr(0,i).toLowerCase()===n&&e(t)}}return function(t){var s=o(t,r);return null!=s&&s.substr(0,i)===n&&e(t)}},end:function(e,t){var r=t.name,n=t.value,i=-n.length;if(0===i)return s;if(t.ignoreCase){n=n.toLowerCase();return function(t){var s=o(t,r);return null!=s&&s.substr(i).toLowerCase()===n&&e(t)}}return function(t){var s=o(t,r);return null!=s&&s.substr(i)===n&&e(t)}},any:function(e,t){var r=t.name,n=t.value;if(""===n)return s;if(t.ignoreCase){var i=new RegExp(n.replace(a,"\\$&"),"i");return function(t){var n=o(t,r);return null!=n&&i.test(n)&&e(t)}}return function(t){var i=o(t,r);return null!=i&&i.indexOf(n)>=0&&e(t)}},not:function(e,t){var r=t.name,n=t.value;if(""===n)return function(t){return!!o(t,r)&&e(t)};if(t.ignoreCase){n=n.toLowerCase();return function(t){var i=o(t,r);return null!=i&&i.toLowerCase()!==n&&e(t)}}return function(t){return o(t,r)!==n&&e(t)}}};r.exports={compile:function(e,t,r){if(r&&r.strict&&(t.ignoreCase||"not"===t.action))throw SyntaxError("Unsupported attribute selector");return l[t.action](e,t)},rules:l}},
11"compile.js":function(e,t,r){r.exports=h;r.exports.compileUnsafe=p;r.exports.compileToken=w;var n=e("css-what"),i=e("domutils"),o=i.isTag,s=e("./general.js"),a=e("./sort.js"),l=e("boolbase"),u=l.trueFunc,f=l.falseFunc,c=e("./procedure.json");function h(e,t,r){var n=p(e,t,r);return d(n)}function d(e){return function(t){return o(t)&&e(t)}}function p(e,t,r){var i=n(e,t);return w(i,t,r)}function g(e){return"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some(function(e){return e.some(g)}))}var m={type:"descendant"},O={type:"pseudo",name:"scope"},v={},y=i.getParent;function b(e,t){var r=!!t&&!!t.length&&t.every(function(e){return e===v||!!y(e)});e.forEach(function(e){if(e.length>0&&x(e[0])&&"descendant"!==e[0].type);else{if(!r||!!g(e))return;e.unshift(m)}e.unshift(O)})}function w(e,t,r){e=e.filter(function(e){return e.length>0});e.forEach(a);var n=Array.isArray(r);r=t&&t.context||r;if(r&&!n)r=[r];b(e,r);return e.map(function(e){return S(e,t,r,n)}).reduce(_,f)}function x(e){return c[e.type]<0}function S(e,t,r,n){var i=n&&"scope"===e[0].name&&"descendant"===e[1].type;return e.reduce(function(e,n,o){if(e===f)return e;return s[n.type](e,n,t,r,i&&1===o)},t&&t.rootFunc||u)}function _(e,t){if(t===f||e===u)return e;if(e===f||t===u)return t;return function(r){return e(r)||t(r)}}var k=e("./pseudos.js"),Q=k.filters,P=i.existsOne,o=i.isTag,T=i.getChildren;function A(e){return e.some(x)}Q.not=function(e,t,r,n){var i={xmlMode:!!(r&&r.xmlMode),strict:!!(r&&r.strict)};if(i.strict){if(t.length>1||t.some(A))throw new SyntaxError("complex selectors in :not aren't allowed in strict mode")}var o=w(t,i,n);if(o===f)return e;if(o===u)return f;return function(t){return!o(t)&&e(t)}};Q.has=function(e,t,r){var n={xmlMode:!!(r&&r.xmlMode),strict:!!(r&&r.strict)};var i=t.some(A)?[v]:null;var s=w(t,n,i);if(s===f)return f;if(s===u)return function(t){return T(t).some(o)&&e(t)};s=d(s);if(i)return function(t){return e(t)&&(i[0]=t,P(s,T(t)))};return function(t){return e(t)&&P(s,T(t))}};Q.matches=function(e,t,r,n){var i={xmlMode:!!(r&&r.xmlMode),strict:!!(r&&r.strict),rootFunc:e};return w(t,i,n)}},
11"general.js":function(e,t,r){var n=e("domutils"),i=n.isTag,o=n.getParent,s=n.getChildren,a=n.getSiblings,l=n.getName;r.exports={__proto__:null,attribute:e("./attributes.js").compile,pseudo:e("./pseudos.js").compile,tag:function(e,t){var r=t.name;return function(t){return l(t)===r&&e(t)}},descendant:function(e,t,r,n,i){return function(t){if(i&&e(t))return true;var r=false;while(!r&&(t=o(t)))r=e(t);return r}},parent:function(e,t,r){if(r&&r.strict)throw SyntaxError("Parent selector isn't part of CSS3");return function(e){return s(e).some(n)};function n(t){return i(t)&&e(t)}},child:function(e){return function(t){var r=o(t);return!!r&&e(r)}},sibling:function(e){return function(t){var r=a(t);for(var n=0;n<r.length;n++)if(i(r[n])){if(r[n]===t)break;if(e(r[n]))return true}return false}},adjacent:function(e){return function(t){var r=a(t),n;for(var o=0;o<r.length;o++)if(i(r[o])){if(r[o]===t)break;n=r[o]}return!!n&&e(n)}},universal:function(e){return e}}},
11"sort.js":function(e,t,r){r.exports=o;var n=e("./procedure.json");var i={__proto__:null,exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function o(e){var t=e.map(s);for(var r=1;r<e.length;r++){var n=t[r];if(!(n<0))for(var i=r-1;i>=0&&n<t[i];i--){var o=e[i+1];e[i+1]=e[i];e[i]=o;t[i+1]=t[i];t[i]=n}}}function s(e){var t=n[e.type];if(t===n.attribute){t=i[e.action];if(t===i.equals&&"id"===e.name)t=9;if(e.ignoreCase)t>>=1}else if(t===n.pseudo)if(e.data)if("has"===e.name||"contains"===e.name)t=0;else if("matches"===e.name||"not"===e.name){t=0;for(var r=0;r<e.data.length;r++)if(1===e.data[r].length){var o=s(e.data[r][0]);if(0===o){t=0;break}if(o>t)t=o}if(e.data.length>1&&t>0)t-=1}else t=1;else t=3;return t}},
11"procedure.json":function(e,t,r){r.exports={universal:50,tag:30,attribute:1,pseudo:0,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1}}}},"nth-check":{
11"package.json":function(e,t,r){r.exports={name:"nth-check",version:"1.0.2",main:"index.js"}},
11"index.js":function(e,t,r){var n=e("./parse.js"),i=e("./compile.js");r.exports=function(e){return i(n(e))};r.exports.parse=n;r.exports.compile=i},
11"parse.js":function(e,t,r){r.exports=i;var n=/^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/;function i(e){e=e.trim().toLowerCase();if("even"===e)return[2,0];if("odd"===e)return[2,1];var t=e.match(n);if(!t)throw new SyntaxError("n-th rule couldn't be parsed ('"+e+"')");var r;if(t[1]){r=parseInt(t[1],10);if(isNaN(r))r="-"===t[1].charAt(0)?-1:1}else r=0;return[r,t[3]?parseInt((t[2]||"")+t[3],10):0]}},
11"compile.js":function(e,t,r){r.exports=s;var n=e("boolbase"),i=n.trueFunc,o=n.falseFunc;function s(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return o;if(-1===t)return function(e){return e<=r};if(0===t)return function(e){return e===r};if(1===t)return r<0?i:function(e){return e>=r};var n=r%t;if(n<0)n+=t;if(t>1)return function(e){return e>=r&&e%t===n};t*=-1;return function(e){return e<=r&&e%t===n}}}},boolbase:{
11"package.json":function(e,t,r){r.exports={name:"boolbase",version:"1.0.0",main:"index.js"}},
11"index.js":function(e,t,r){r.exports={trueFunc:function(){return true},falseFunc:function(){return false}}}},"css-what":{
11"package.json":function(e,t,r){r.exports={name:"css-what",version:"2.1.3",main:"./index.js"}},
11"index.js":function(e,t,r){"use strict";r.exports=g;var n=/^(?:\\.|[\w\-\u00b0-\uFFFF])+/,i=/\\([\da-f]{1,6}\s?|(\s)|.)/ig,o=/^\s*((?:\\.|[\w\u00b0-\uFFFF\-])+)\s*(?:(\S?)=\s*(?:(['"])([^]*?)\3|(#?(?:\\.|[\w\u00b0-\uFFFF\-])*)|)|)\s*(i)?\]/;var s={__proto__:null,undefined:"exists","":"equals","~":"element","^":"start",$:"end","*":"any","!":"not","|":"hyphen"};var a={__proto__:null,">":"child","<":"parent","~":"sibling","+":"adjacent"};var l={__proto__:null,"#":["id","equals"],".":["class","element"]};var u={__proto__:null,has:true,not:true,matches:true};var f={__proto__:null,contains:true,icontains:true};var c={__proto__:null,'"':true,"'":true};function h(e,t,r){var n="0x"+t-65536;return n!==n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}function d(e){return e.replace(i,h)}function p(e){return" "===e||"\n"===e||"	"===e||"\f"===e||"\r"===e}function g(e,t){var r=[];e=m(r,e+"",t);if(""!==e)throw new SyntaxError("Unmatched selector: "+e);return r}function m(e,t,r){var i=[],h=false,g,v,y,b;function w(){var e=t.match(n)[0];t=t.substr(e.length);return d(e)}function x(e){while(p(t.charAt(e)))e++;t=t.substr(e)}function S(e){var r=0;while("\\"===t.charAt(--e))r++;return(1&r)===1}x(0);while(""!==t){v=t.charAt(0);if(p(v)){h=true;x(1)}else if(v in a){i.push({type:a[v]});h=false;x(1)}else if(","===v){if(0===i.length)throw new SyntaxError("empty sub-selector");e.push(i);i=[];h=false;x(1)}else{if(h){if(i.length>0)i.push({type:"descendant"});h=false}if("*"===v){t=t.substr(1);i.push({type:"universal"})}else if(v in l){t=t.substr(1);i.push({type:"attribute",name:l[v][0],action:l[v][1],value:w(),ignoreCase:false})}else if("["===v){t=t.substr(1);g=t.match(o);if(!g)throw new SyntaxError("Malformed attribute selector: "+t);t=t.substr(g[0].length);y=d(g[1]);if(!r||("lowerCaseAttributeNames"in r?r.lowerCaseAttributeNames:!r.xmlMode))y=y.toLowerCase();i.push({type:"attribute",name:y,action:s[g[2]],value:d(g[4]||g[5]||""),ignoreCase:!!g[6]})}else if(":"===v){if(":"===t.charAt(1)){t=t.substr(2);i.push({type:"pseudo-element",name:w().toLowerCase()});continue}t=t.substr(1);y=w().toLowerCase();g=null;if("("===t.charAt(0))if(y in u){b=t.charAt(1);var _=b in c;t=t.substr(_+1);g=[];t=m(g,t,r);if(_)if(t.charAt(0)!==b)throw new SyntaxError("unmatched quotes in :"+y);else t=t.substr(1);if(")"!==t.charAt(0))throw new SyntaxError("missing closing parenthesis in :"+y+" "+t);t=t.substr(1)}else{var k=1,Q=1;for(;Q>0&&k<t.length;k++)if("("!==t.charAt(k)||S(k)){if(")"===t.charAt(k)&&!S(k))Q--}else Q++;if(Q)throw new SyntaxError("parenthesis not matched");g=t.substr(1,k-2);t=t.substr(k);if(y in f){b=g.charAt(0);if(b===g.slice(-1)&&b in c)g=g.slice(1,-1);g=d(g)}}i.push({type:"pseudo",name:y,data:g})}else if(n.test(t)){y=w();if(!r||("lowerCaseTags"in r?r.lowerCaseTags:!r.xmlMode))y=y.toLowerCase();i.push({type:"tag",name:y})}else{if(i.length&&"descendant"===i[i.length-1].type)i.pop();O(e,i);return t}}}O(e,i);return t}function O(e,t){if(e.length>0&&0===t.length)throw new SyntaxError("empty sub-selector");e.push(t)}}},"lodash.merge":{
11"package.json":function(e,t,r){r.exports={name:"lodash.merge",version:"4.6.2"}},
11"index.js":function(e,r,n){var i=200;var o="__lodash_hash_undefined__";var s=800,a=16;var l=0x1fffffffffffff;var u="[object Arguments]",f="[object Array]",c="[object AsyncFunction]",h="[object Boolean]",d="[object Date]",p="[object Error]",g="[object Function]",m="[object GeneratorFunction]",O="[object Map]",v="[object Number]",y="[object Null]",b="[object Object]",w="[object Proxy]",x="[object RegExp]",S="[object Set]",_="[object String]",k="[object Undefined]",Q="[object WeakMap]";var P="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",$="[object Float64Array]",j="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",L="[object Uint32Array]";var Z=/[\\^$.*+?()[\]{}|]/g;var X=/^\[object .+?Constructor\]$/;var q=/^(?:0|[1-9]\d*)$/;var B={};B[A]=B[$]=B[j]=B[C]=B[E]=B[M]=B[R]=B[D]=B[L]=true;B[u]=B[f]=B[P]=B[h]=B[T]=B[d]=B[p]=B[g]=B[O]=B[v]=B[b]=B[x]=B[S]=B[_]=B[Q]=false;var z="object"==typeof t&&t&&t.Object===Object&&t;var I="object"==typeof self&&self&&self.Object===Object&&self;var N=z||I||Function("return this")();var V="object"==typeof r&&r&&!r.nodeType&&r;var W=V&&"object"==typeof n&&n&&!n.nodeType&&n;var Y=W&&W.exports===V;var U=Y&&z.process;var G=function(){try{var e=W&&W.require&&W.require("util").types;if(e)return e;return U&&U.binding&&U.binding("util")}catch(e){}}();var F=G&&G.isTypedArray;function H(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function K(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function J(e){return function(t){return e(t)}}function ee(e,t){return null==e?void 0:e[t]}function et(e,t){return function(r){return e(t(r))}}var er=Array.prototype,en=Function.prototype,ei=Object.prototype;var eo=N["__core-js_shared__"];var es=en.toString;var ea=ei.hasOwnProperty;var el=function(){var e=/[^.]+$/.exec(eo&&eo.keys&&eo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var eu=ei.toString;var ef=es.call(Object);var ec=RegExp("^"+es.call(ea).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var eh=Y?N.Buffer:void 0,ed=N.Symbol,ep=N.Uint8Array,eg=eh?eh.allocUnsafe:void 0,em=et(Object.getPrototypeOf,Object),eO=Object.create,ev=ei.propertyIsEnumerable,ey=er.splice,eb=ed?ed.toStringTag:void 0;var ew=function(){try{var e=tc(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var ex=eh?eh.isBuffer:void 0,eS=Math.max,e_=Date.now;var ek=tc(N,"Map"),eQ=tc(Object,"create");var eP=function(){function e(){}return function(t){if(!tM(t))return{};if(eO)return eO(t);e.prototype=t;var r=new e;e.prototype=void 0;return r}}();function eT(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eA(){this.__data__=eQ?eQ(null):{};this.size=0}function e$(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function ej(e){var t=this.__data__;if(eQ){var r=t[e];return r===o?void 0:r}return ea.call(t,e)?t[e]:void 0}function eC(e){var t=this.__data__;return eQ?void 0!==t[e]:ea.call(t,e)}function eE(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=eQ&&void 0===t?o:t;return this}eT.prototype.clear=eA;eT.prototype["delete"]=e$;eT.prototype.get=ej;eT.prototype.has=eC;eT.prototype.set=eE;function eM(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eR(){this.__data__=[];this.size=0}function eD(e){var t=this.__data__,r=e1(t,e);if(r<0)return false;var n=t.length-1;if(r==n)t.pop();else ey.call(t,r,1);--this.size;return true}function eL(e){var t=this.__data__,r=e1(t,e);return r<0?void 0:t[r][1]}function eZ(e){return e1(this.__data__,e)>-1}function eX(e,t){var r=this.__data__,n=e1(r,e);if(n<0){++this.size;r.push([e,t])}else r[n][1]=t;return this}eM.prototype.clear=eR;eM.prototype["delete"]=eD;eM.prototype.get=eL;eM.prototype.has=eZ;eM.prototype.set=eX;function eq(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eB(){this.size=0;
11this.__data__={hash:new eT,map:new(ek||eM),string:new eT}}function ez(e){var t=tf(this,e)["delete"](e);this.size-=t?1:0;return t}function eI(e){return tf(this,e).get(e)}function eN(e){return tf(this,e).has(e)}function eV(e,t){var r=tf(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}eq.prototype.clear=eB;eq.prototype["delete"]=ez;eq.prototype.get=eI;eq.prototype.has=eN;eq.prototype.set=eV;function eW(e){var t=this.__data__=new eM(e);this.size=t.size}function eY(){this.__data__=new eM;this.size=0}function eU(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function eG(e){return this.__data__.get(e)}function eF(e){return this.__data__.has(e)}function eH(e,t){var r=this.__data__;if(r instanceof eM){var n=r.__data__;if(!ek||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new eq(n)}r.set(e,t);this.size=r.size;return this}eW.prototype.clear=eY;eW.prototype["delete"]=eU;eW.prototype.get=eG;eW.prototype.has=eF;eW.prototype.set=eH;function eK(e,t){var r=tT(e),n=!r&&tP(e),i=!r&&!n&&tj(e),o=!r&&!n&&!i&&tL(e),s=r||n||i||o,a=s?K(e.length,String):[],l=a.length;for(var u in e)if((t||ea.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||tp(u,l))))a.push(u);return a}function eJ(e,t,r){if(void 0!==r&&!tQ(e[t],r)||void 0===r&&!(t in e))e2(e,t,r)}function e0(e,t,r){var n=e[t];if(!(ea.call(e,t)&&tQ(n,r))||void 0===r&&!(t in e))e2(e,t,r)}function e1(e,t){var r=e.length;while(r--)if(tQ(e[r][0],t))return r;return -1}function e2(e,t,r){if("__proto__"==t&&ew)ew(e,t,{configurable:true,enumerable:true,value:r,writable:true});else e[t]=r}var e5=tu();function e3(e){if(null==e)return void 0===e?k:y;return eb&&eb in Object(e)?th(e):tb(e)}function e4(e){return tR(e)&&e3(e)==u}function e8(e){if(!tM(e)||tO(e))return false;var t=tC(e)?ec:X;return t.test(tk(e))}function e6(e){return tR(e)&&tE(e.length)&&!!B[e3(e)]}function e7(e){if(!tM(e))return ty(e);var t=tv(e),r=[];for(var n in e)if(!("constructor"==n&&(t||!ea.call(e,n))))r.push(n);return r}function e9(e,t,r,n,i){if(e===t)return;e5(t,function(o,s){i||(i=new eW);if(tM(o))te(e,t,s,r,e9,n,i);else{var a=n?n(tx(e,s),o,s+"",e,t,i):void 0;if(void 0===a)a=o;eJ(e,s,a)}},tX)}function te(e,t,r,n,i,o,s){var a=tx(e,r),l=tx(t,r),u=s.get(l);if(u)return void eJ(e,r,u);var f=o?o(a,l,r+"",e,t,s):void 0;var c=void 0===f;if(c){var h=tT(l),d=!h&&tj(l),p=!h&&!d&&tL(l);f=l;if(h||d||p)if(tT(a))f=a;else if(t$(a))f=ts(a);else if(d){c=false;f=tn(l,true)}else if(p){c=false;f=to(l,true)}else f=[];else if(tD(l)||tP(l)){f=a;if(tP(a))f=tZ(a);else if(!tM(a)||tC(a))f=td(l)}else c=false}if(c){s.set(l,f);i(f,l,n,o,s);s["delete"](l)}eJ(e,r,f)}function tt(e,t){return tS(tw(e,t,tz),e+"")}var tr=ew?function(e,t){return ew(e,"toString",{configurable:true,enumerable:false,value:tB(t),writable:true})}:tz;function tn(e,t){if(t)return e.slice();var r=e.length,n=eg?eg(r):new e.constructor(r);e.copy(n);return n}function ti(e){var t=new e.constructor(e.byteLength);new ep(t).set(new ep(e));return t}function to(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ts(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}function ta(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o];var l=n?n(r[a],e[a],a,r,e):void 0;if(void 0===l)l=e[a];if(i)e2(r,a,l);else e0(r,a,l)}return r}function tl(e){return tt(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0;if(s&&tg(r[0],r[1],s)){o=i<3?void 0:o;i=1}t=Object(t);while(++n<i){var a=r[n];if(a)e(t,a,n,o)}return t})}function tu(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var l=s[e?a:++i];if(false===r(o[l],l,o))break}return t}}function tf(e,t){var r=e.__data__;return tm(t)?r["string"==typeof t?"string":"hash"]:r.map}function tc(e,t){var r=ee(e,t);return e8(r)?r:void 0}function th(e){var t=ea.call(e,eb),r=e[eb];try{e[eb]=void 0;var n=true}catch(e){}var i=eu.call(e);if(n)if(t)e[eb]=r;else delete e[eb];return i}function td(e){return"function"!=typeof e.constructor||tv(e)?{}:eP(em(e))}function tp(e,t){var r=typeof e;t=null==t?l:t;return!!t&&("number"==r||"symbol"!=r&&q.test(e))&&e>-1&&e%1==0&&e<t}function tg(e,t,r){if(!tM(r))return false;var n=typeof t;if("number"==n?tA(r)&&tp(t,r.length):"string"==n&&t in r)return tQ(r[t],e);return false}function tm(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tO(e){return!!el&&el in e}function tv(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ei;return e===r}function ty(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}function tb(e){return eu.call(e)}function tw(e,t,r){t=eS(void 0===t?e.length-1:t,0);return function(){var n=arguments,i=-1,o=eS(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];a[t]=r(s);return H(e,this,a)}}function tx(e,t){if("constructor"===t&&"function"==typeof e[t])return;if("__proto__"==t)return;return e[t]}var tS=t_(tr);function t_(e){var t=0,r=0;return function(){var n=e_(),i=a-(n-r);r=n;if(i>0){if(++t>=s)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function tk(e){if(null!=e){try{return es.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tQ(e,t){return e===t||e!==e&&t!==t}var tP=e4(function(){return arguments}())?e4:function(e){return tR(e)&&ea.call(e,"callee")&&!ev.call(e,"callee")};var tT=Array.isArray;function tA(e){return null!=e&&tE(e.length)&&!tC(e)}function t$(e){return tR(e)&&tA(e)}var tj=ex||tI;function tC(e){if(!tM(e))return false;var t=e3(e);return t==g||t==m||t==c||t==w}function tE(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function tM(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tR(e){return null!=e&&"object"==typeof e}function tD(e){if(!tR(e)||e3(e)!=b)return false;var t=em(e);
11if(null===t)return true;var r=ea.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&es.call(r)==ef}var tL=F?J(F):e6;function tZ(e){return ta(e,tX(e))}function tX(e){return tA(e)?eK(e,true):e7(e)}var tq=tl(function(e,t,r){e9(e,t,r)});function tB(e){return function(){return e}}function tz(e){return e}function tI(){return false}n.exports=tq}},"lodash.some":{
11"package.json":function(e,t,r){r.exports={name:"lodash.some",version:"4.6.0"}},
11"index.js":function(e,r,n){var i=200;var o="Expected a function";var s="__lodash_hash_undefined__";var a=1,l=2;var u=1/0,f=0x1fffffffffffff;var c="[object Arguments]",h="[object Array]",d="[object Boolean]",p="[object Date]",g="[object Error]",m="[object Function]",O="[object GeneratorFunction]",v="[object Map]",y="[object Number]",b="[object Object]",w="[object Promise]",x="[object RegExp]",S="[object Set]",_="[object String]",k="[object Symbol]",Q="[object WeakMap]";var P="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",$="[object Float64Array]",j="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",L="[object Uint32Array]";var Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,q=/^\./,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var z=/[\\^$.*+?()[\]{}|]/g;var I=/\\(\\)?/g;var N=/^\[object .+?Constructor\]$/;var V=/^(?:0|[1-9]\d*)$/;var W={};W[A]=W[$]=W[j]=W[C]=W[E]=W[M]=W[R]=W[D]=W[L]=true;W[c]=W[h]=W[P]=W[d]=W[T]=W[p]=W[g]=W[m]=W[v]=W[y]=W[b]=W[x]=W[S]=W[_]=W[Q]=false;var Y="object"==typeof t&&t&&t.Object===Object&&t;var U="object"==typeof self&&self&&self.Object===Object&&self;var G=Y||U||Function("return this")();var F="object"==typeof r&&r&&!r.nodeType&&r;var H=F&&"object"==typeof n&&n&&!n.nodeType&&n;var K=H&&H.exports===F;var J=K&&Y.process;var ee=function(){try{return J&&J.binding("util")}catch(e){}}();var et=ee&&ee.isTypedArray;function er(e,t){var r=-1,n=e?e.length:0;while(++r<n)if(t(e[r],r,e))return true;return false}function en(e){return function(t){return null==t?void 0:t[e]}}function ei(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function eo(e){return function(t){return e(t)}}function es(e,t){return null==e?void 0:e[t]}function ea(e){var t=false;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function el(e){var t=-1,r=Array(e.size);e.forEach(function(e,n){r[++t]=[n,e]});return r}function eu(e,t){return function(r){return e(t(r))}}function ef(e){var t=-1,r=Array(e.size);e.forEach(function(e){r[++t]=e});return r}var ec=Array.prototype,eh=Function.prototype,ed=Object.prototype;var ep=G["__core-js_shared__"];var eg=function(){var e=/[^.]+$/.exec(ep&&ep.keys&&ep.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var em=eh.toString;var eO=ed.hasOwnProperty;var ev=ed.toString;var ey=RegExp("^"+em.call(eO).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var eb=G.Symbol,ew=G.Uint8Array,ex=ed.propertyIsEnumerable,eS=ec.splice;var e_=eu(Object.keys,Object);var ek=t$(G,"DataView"),eQ=t$(G,"Map"),eP=t$(G,"Promise"),eT=t$(G,"Set"),eA=t$(G,"WeakMap"),e$=t$(Object,"create");var ej=tI(ek),eC=tI(eQ),eE=tI(eP),eM=tI(eT),eR=tI(eA);var eD=eb?eb.prototype:void 0,eL=eD?eD.valueOf:void 0,eZ=eD?eD.toString:void 0;function eX(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eq(){this.__data__=e$?e$(null):{}}function eB(e){return this.has(e)&&delete this.__data__[e]}function ez(e){var t=this.__data__;if(e$){var r=t[e];return r===s?void 0:r}return eO.call(t,e)?t[e]:void 0}function eI(e){var t=this.__data__;return e$?void 0!==t[e]:eO.call(t,e)}function eN(e,t){var r=this.__data__;r[e]=e$&&void 0===t?s:t;return this}eX.prototype.clear=eq;eX.prototype["delete"]=eB;eX.prototype.get=ez;eX.prototype.has=eI;eX.prototype.set=eN;function eV(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eW(){this.__data__=[]}function eY(e){var t=this.__data__,r=tn(t,e);if(r<0)return false;var n=t.length-1;if(r==n)t.pop();else eS.call(t,r,1);return true}function eU(e){var t=this.__data__,r=tn(t,e);return r<0?void 0:t[r][1]}function eG(e){return tn(this.__data__,e)>-1}function eF(e,t){var r=this.__data__,n=tn(r,e);if(n<0)r.push([e,t]);else r[n][1]=t;return this}eV.prototype.clear=eW;eV.prototype["delete"]=eY;eV.prototype.get=eU;eV.prototype.has=eG;eV.prototype.set=eF;function eH(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}
11function eK(){this.__data__={hash:new eX,map:new(eQ||eV),string:new eX}}function eJ(e){return tT(this,e)["delete"](e)}function e0(e){return tT(this,e).get(e)}function e1(e){return tT(this,e).has(e)}function e2(e,t){tT(this,e).set(e,t);return this}eH.prototype.clear=eK;eH.prototype["delete"]=eJ;eH.prototype.get=e0;eH.prototype.has=e1;eH.prototype.set=e2;function e5(e){var t=-1,r=e?e.length:0;this.__data__=new eH;while(++t<r)this.add(e[t])}function e3(e){this.__data__.set(e,s);return this}function e4(e){return this.__data__.has(e)}e5.prototype.add=e5.prototype.push=e3;e5.prototype.has=e4;function e8(e){this.__data__=new eV(e)}function e6(){this.__data__=new eV}function e7(e){return this.__data__["delete"](e)}function e9(e){return this.__data__.get(e)}function te(e){return this.__data__.has(e)}function tt(e,t){var r=this.__data__;if(r instanceof eV){var n=r.__data__;if(!eQ||n.length<i-1){n.push([e,t]);return this}r=this.__data__=new eH(n)}r.set(e,t);return this}e8.prototype.clear=e6;e8.prototype["delete"]=e7;e8.prototype.get=e9;e8.prototype.has=te;e8.prototype.set=tt;function tr(e,t){var r=tU(e)||tY(e)?ei(e.length,String):[];var n=r.length,i=!!n;for(var o in e)if((t||eO.call(e,o))&&!(i&&("length"==o||tE(o,n))))r.push(o);return r}function tn(e,t){var r=e.length;while(r--)if(tW(e[r][0],t))return r;return -1}var ti=tS(ts);var to=t_();function ts(e,t){return e&&to(e,t,t8)}function ta(e,t){t=tR(t,e)?[t]:tx(t);var r=0,n=t.length;while(null!=e&&r<n)e=e[tz(t[r++])];return r&&r==n?e:void 0}function tl(e){return ev.call(e)}function tu(e,t){return null!=e&&t in Object(e)}function tf(e,t,r,n,i){if(e===t)return true;if(null==e||null==t||!tJ(e)&&!t0(t))return e!==e&&t!==t;return tc(e,t,tf,r,n,i)}function tc(e,t,r,n,i,o){var s=tU(e),a=tU(t),u=h,f=h;if(!s){u=tj(e);u=u==c?b:u}if(!a){f=tj(t);f=f==c?b:f}var d=u==b&&!ea(e),p=f==b&&!ea(t),g=u==f;if(g&&!d){o||(o=new e8);return s||t2(e)?tk(e,t,r,n,i,o):tQ(e,t,u,r,n,i,o)}if(!(i&l)){var m=d&&eO.call(e,"__wrapped__"),O=p&&eO.call(t,"__wrapped__");
11if(m||O){var v=m?e.value():e,y=O?t.value():t;o||(o=new e8);return r(v,y,n,i,o)}}if(!g)return false;o||(o=new e8);return tP(e,t,r,n,i,o)}function th(e,t,r,n){var i=r.length,o=i,s=!n;if(null==e)return!o;e=Object(e);while(i--){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return false}while(++i<o){u=r[i];var f=u[0],c=e[f],h=u[1];if(s&&u[2]){if(void 0===c&&!(f in e))return false}else{var d=new e8;if(n)var p=n(c,h,f,e,t,d);if(!(void 0===p?tf(h,c,n,a|l,d):p))return false}}return true}function td(e){if(!tJ(e)||tL(e))return false;var t=tH(e)||ea(e)?ey:N;return t.test(tI(e))}function tp(e){return t0(e)&&tK(e.length)&&!!W[ev.call(e)]}function tg(e){if("function"==typeof e)return e;if(null==e)return t6;if("object"==typeof e)return tU(e)?tv(e[0],e[1]):tO(e);return t7(e)}function tm(e){if(!tZ(e))return e_(e);var t=[];for(var r in Object(e))if(eO.call(e,r)&&"constructor"!=r)t.push(r);return t}function tO(e){var t=tA(e);if(1==t.length&&t[0][2])return tq(t[0][0],t[0][1]);return function(r){return r===e||th(r,e,t)}}function tv(e,t){if(tR(e)&&tX(t))return tq(tz(e),t);return function(r){var n=t3(r,e);return void 0===n&&n===t?t4(r,e):tf(t,n,void 0,a|l)}}function ty(e){return function(t){return ta(t,e)}}function tb(e,t){var r;ti(e,function(e,n,i){r=t(e,n,i);return!r});return!!r}function tw(e){if("string"==typeof e)return e;if(t1(e))return eZ?eZ.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tx(e){return tU(e)?e:tB(e)}function tS(e,t){return function(r,n){if(null==r)return r;if(!tG(r))return e(r,n);var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i)if(false===n(s[o],o,s))break;return r}}function t_(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var l=s[e?a:++i];if(false===r(o[l],l,o))break}return t}}function tk(e,t,r,n,i,o){var s=i&l,u=e.length,f=t.length;if(u!=f&&!(s&&f>u))return false;var c=o.get(e);if(c&&o.get(t))return c==t;var h=-1,d=true,p=i&a?new e5:void 0;o.set(e,t);o.set(t,e);while(++h<u){var g=e[h],m=t[h];if(n)var O=s?n(m,g,h,t,e,o):n(g,m,h,e,t,o);if(void 0!==O){if(O)continue;d=false;break}if(p){if(!er(t,function(e,t){if(!p.has(t)&&(g===e||r(g,e,n,i,o)))return p.add(t)})){d=false;break}}else if(!(g===m||r(g,m,n,i,o))){d=false;break}}o["delete"](e);o["delete"](t);return d}function tQ(e,t,r,n,i,o,s){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer;t=t.buffer;case P:if(e.byteLength!=t.byteLength||!n(new ew(e),new ew(t)))break;return true;case d:case p:case y:return tW(+e,+t);case g:return e.name==t.name&&e.message==t.message;case x:case _:return e==t+"";case v:var u=el;case S:var f=o&l;u||(u=ef);if(e.size!=t.size&&!f)break;var c=s.get(e);if(c)return c==t;o|=a;s.set(e,t);var h=tk(u(e),u(t),n,i,o,s);s["delete"](e);return h;case k:if(eL)return eL.call(e)==eL.call(t)}return false}function tP(e,t,r,n,i,o){var s=i&l,a=t8(e),u=a.length,f=t8(t),c=f.length;if(u!=c&&!s)return false;var h=u;while(h--){var d=a[h];if(!(s?d in t:eO.call(t,d)))return false}var p=o.get(e);if(p&&o.get(t))return p==t;var g=true;o.set(e,t);o.set(t,e);var m=s;while(++h<u){d=a[h];var O=e[d],v=t[d];if(n)var y=s?n(v,O,d,t,e,o):n(O,v,d,e,t,o);if(!(void 0===y?O===v||r(O,v,n,i,o):y)){g=false;break}m||(m="constructor"==d)}if(g&&!m){var b=e.constructor,w=t.constructor;if(b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w))g=false}o["delete"](e);o["delete"](t);return g}function tT(e,t){var r=e.__data__;return tD(t)?r["string"==typeof t?"string":"hash"]:r.map}function tA(e){var t=t8(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,tX(i)]}return t}function t$(e,t){var r=es(e,t);return td(r)?r:void 0}var tj=tl;if(ek&&tj(new ek(new ArrayBuffer(1)))!=T||eQ&&tj(new eQ)!=v||eP&&tj(eP.resolve())!=w||eT&&tj(new eT)!=S||eA&&tj(new eA)!=Q)tj=function(e){var t=ev.call(e),r=t==b?e.constructor:void 0,n=r?tI(r):void 0;if(n)switch(n){case ej:return T;case eC:return v;case eE:return w;case eM:return S;case eR:return Q}return t};function tC(e,t,r){t=tR(t,e)?[t]:tx(t);var n,i=-1,o=t.length;while(++i<o){var s=tz(t[i]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}if(n)return n;var o=e?e.length:0;return!!o&&tK(o)&&tE(s,o)&&(tU(e)||tY(e))}
11function tE(e,t){t=null==t?f:t;return!!t&&("number"==typeof e||V.test(e))&&e>-1&&e%1==0&&e<t}function tM(e,t,r){if(!tJ(r))return false;var n=typeof t;if("number"==n?tG(r)&&tE(t,r.length):"string"==n&&t in r)return tW(r[t],e);return false}function tR(e,t){if(tU(e))return false;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||t1(e))return true;return X.test(e)||!Z.test(e)||null!=t&&e in Object(t)}function tD(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tL(e){return!!eg&&eg in e}function tZ(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ed;return e===r}function tX(e){return e===e&&!tJ(e)}function tq(e,t){return function(r){if(null==r)return false;return r[e]===t&&(void 0!==t||e in Object(r))}}var tB=tV(function(e){e=t5(e);var t=[];if(q.test(e))t.push("");e.replace(B,function(e,r,n,i){t.push(n?i.replace(I,"$1"):r||e)});return t});function tz(e){if("string"==typeof e||t1(e))return e;var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tI(e){if(null!=e){try{return em.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tN(e,t,r){var n=tU(e)?er:tb;if(r&&tM(e,t,r))t=void 0;return n(e,tg(t,3))}function tV(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);r.cache=o.set(i,s);return s};r.cache=new(tV.Cache||eH);return r}tV.Cache=eH;function tW(e,t){return e===t||e!==e&&t!==t}function tY(e){return tF(e)&&eO.call(e,"callee")&&(!ex.call(e,"callee")||ev.call(e)==c)}var tU=Array.isArray;function tG(e){return null!=e&&tK(e.length)&&!tH(e)}function tF(e){return t0(e)&&tG(e)}function tH(e){var t=tJ(e)?ev.call(e):"";return t==m||t==O}function tK(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function tJ(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function t0(e){return!!e&&"object"==typeof e}function t1(e){return"symbol"==typeof e||t0(e)&&ev.call(e)==k}var t2=et?eo(et):tp;function t5(e){return null==e?"":tw(e)}function t3(e,t,r){var n=null==e?void 0:ta(e,t);return void 0===n?r:n}function t4(e,t){return null!=e&&tC(e,t,tu)}function t8(e){return tG(e)?tr(e):tm(e)}function t6(e){return e}function t7(e){return tR(e)?en(tz(e)):ty(e)}n.exports=tN}},"lodash.reject":{
11"package.json":function(e,t,r){r.exports={name:"lodash.reject",version:"4.6.0"}},
11"index.js":function(e,r,n){var i=200;var o="Expected a function";var s="__lodash_hash_undefined__";var a=1,l=2;var u=1/0,f=0x1fffffffffffff;var c="[object Arguments]",h="[object Array]",d="[object Boolean]",p="[object Date]",g="[object Error]",m="[object Function]",O="[object GeneratorFunction]",v="[object Map]",y="[object Number]",b="[object Object]",w="[object Promise]",x="[object RegExp]",S="[object Set]",_="[object String]",k="[object Symbol]",Q="[object WeakMap]";var P="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",$="[object Float64Array]",j="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",L="[object Uint32Array]";var Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,q=/^\./,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var z=/[\\^$.*+?()[\]{}|]/g;var I=/\\(\\)?/g;var N=/^\[object .+?Constructor\]$/;var V=/^(?:0|[1-9]\d*)$/;var W={};W[A]=W[$]=W[j]=W[C]=W[E]=W[M]=W[R]=W[D]=W[L]=true;W[c]=W[h]=W[P]=W[d]=W[T]=W[p]=W[g]=W[m]=W[v]=W[y]=W[b]=W[x]=W[S]=W[_]=W[Q]=false;var Y="object"==typeof t&&t&&t.Object===Object&&t;var U="object"==typeof self&&self&&self.Object===Object&&self;var G=Y||U||Function("return this")();var F="object"==typeof r&&r&&!r.nodeType&&r;var H=F&&"object"==typeof n&&n&&!n.nodeType&&n;var K=H&&H.exports===F;var J=K&&Y.process;var ee=function(){try{return J&&J.binding("util")}catch(e){}}();var et=ee&&ee.isTypedArray;function er(e,t){var r=-1,n=e?e.length:0,i=0,o=[];while(++r<n){var s=e[r];if(t(s,r,e))o[i++]=s}return o}function en(e,t){var r=-1,n=e?e.length:0;while(++r<n)if(t(e[r],r,e))return true;return false}function ei(e){return function(t){return null==t?void 0:t[e]}}function eo(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function es(e){return function(t){return e(t)}}function ea(e,t){return null==e?void 0:e[t]}function el(e){var t=false;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function eu(e){var t=-1,r=Array(e.size);e.forEach(function(e,n){r[++t]=[n,e]});return r}function ef(e,t){return function(r){return e(t(r))}}function ec(e){var t=-1,r=Array(e.size);e.forEach(function(e){r[++t]=e});return r}var eh=Array.prototype,ed=Function.prototype,ep=Object.prototype;var eg=G["__core-js_shared__"];var em=function(){var e=/[^.]+$/.exec(eg&&eg.keys&&eg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var eO=ed.toString;var ev=ep.hasOwnProperty;var ey=ep.toString;var eb=RegExp("^"+eO.call(ev).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ew=G.Symbol,ex=G.Uint8Array,eS=ep.propertyIsEnumerable,e_=eh.splice;var ek=ef(Object.keys,Object);var eQ=tj(G,"DataView"),eP=tj(G,"Map"),eT=tj(G,"Promise"),eA=tj(G,"Set"),e$=tj(G,"WeakMap"),ej=tj(Object,"create");var eC=tI(eQ),eE=tI(eP),eM=tI(eT),eR=tI(eA),eD=tI(e$);var eL=ew?ew.prototype:void 0,eZ=eL?eL.valueOf:void 0,eX=eL?eL.toString:void 0;function eq(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eB(){this.__data__=ej?ej(null):{}}function ez(e){return this.has(e)&&delete this.__data__[e]}function eI(e){var t=this.__data__;if(ej){var r=t[e];return r===s?void 0:r}return ev.call(t,e)?t[e]:void 0}function eN(e){var t=this.__data__;return ej?void 0!==t[e]:ev.call(t,e)}function eV(e,t){var r=this.__data__;r[e]=ej&&void 0===t?s:t;return this}eq.prototype.clear=eB;eq.prototype["delete"]=ez;eq.prototype.get=eI;eq.prototype.has=eN;eq.prototype.set=eV;function eW(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eY(){this.__data__=[]}function eU(e){var t=this.__data__,r=ti(t,e);if(r<0)return false;var n=t.length-1;if(r==n)t.pop();else e_.call(t,r,1);return true}function eG(e){var t=this.__data__,r=ti(t,e);return r<0?void 0:t[r][1]}function eF(e){return ti(this.__data__,e)>-1}function eH(e,t){var r=this.__data__,n=ti(r,e);if(n<0)r.push([e,t]);else r[n][1]=t;return this}eW.prototype.clear=eY;eW.prototype["delete"]=eU;eW.prototype.get=eG;eW.prototype.has=eF;eW.prototype.set=eH;function eK(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eJ(){this.__data__={hash:new eq,map:new(eP||eW),string:new eq}}function e0(e){return tA(this,e)["delete"](e)}function e1(e){return tA(this,e).get(e)}function e2(e){return tA(this,e).has(e)}function e5(e,t){tA(this,e).set(e,t);return this}eK.prototype.clear=eJ;eK.prototype["delete"]=e0;eK.prototype.get=e1;eK.prototype.has=e2;eK.prototype.set=e5;function e3(e){var t=-1,r=e?e.length:0;this.__data__=new eK;while(++t<r)this.add(e[t])}function e4(e){this.__data__.set(e,s);return this}function e8(e){return this.__data__.has(e)}e3.prototype.add=e3.prototype.push=e4;e3.prototype.has=e8;function e6(e){this.__data__=new eW(e)}function e7(){this.__data__=new eW}function e9(e){return this.__data__["delete"](e)}function te(e){return this.__data__.get(e)}function tt(e){return this.__data__.has(e)}function tr(e,t){var r=this.__data__;if(r instanceof eW){var n=r.__data__;if(!eP||n.length<i-1){n.push([e,t]);return this}r=this.__data__=new eK(n)}r.set(e,t);return this}e6.prototype.clear=e7;e6.prototype["delete"]=e9;e6.prototype.get=te;e6.prototype.has=tt;e6.prototype.set=tr;function tn(e,t){var r=tG(e)||tU(e)?eo(e.length,String):[];var n=r.length,i=!!n;for(var o in e)if((t||ev.call(e,o))&&!(i&&("length"==o||tM(o,n))))r.push(o);return r}function ti(e,t){var r=e.length;while(r--)if(tY(e[r][0],t))return r;return -1}var to=t_(tl);function ts(e,t){var r=[];to(e,function(e,n,i){if(t(e,n,i))r.push(e)});return r}var ta=tk();function tl(e,t){return e&&ta(e,t,t6)}function tu(e,t){t=tR(t,e)?[t]:tS(t);var r=0,n=t.length;while(null!=e&&r<n)e=e[tz(t[r++])];return r&&r==n?e:void 0}function tf(e){return ey.call(e)}function tc(e,t){return null!=e&&t in Object(e)}function th(e,t,r,n,i){if(e===t)return true;if(null==e||null==t||!t0(e)&&!t1(t))return e!==e&&t!==t;return td(e,t,th,r,n,i)}function td(e,t,r,n,i,o){var s=tG(e),a=tG(t),u=h,f=h;if(!s){u=tC(e);u=u==c?b:u}if(!a){f=tC(t);f=f==c?b:f}var d=u==b&&!el(e),p=f==b&&!el(t),g=u==f;if(g&&!d){o||(o=new e6);return s||t5(e)?tQ(e,t,r,n,i,o):tP(e,t,u,r,n,i,o)}if(!(i&l)){var m=d&&ev.call(e,"__wrapped__"),O=p&&ev.call(t,"__wrapped__");
11if(m||O){var v=m?e.value():e,y=O?t.value():t;o||(o=new e6);return r(v,y,n,i,o)}}if(!g)return false;o||(o=new e6);return tT(e,t,r,n,i,o)}function tp(e,t,r,n){var i=r.length,o=i,s=!n;if(null==e)return!o;e=Object(e);while(i--){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return false}while(++i<o){u=r[i];var f=u[0],c=e[f],h=u[1];if(s&&u[2]){if(void 0===c&&!(f in e))return false}else{var d=new e6;if(n)var p=n(c,h,f,e,t,d);if(!(void 0===p?th(h,c,n,a|l,d):p))return false}}return true}function tg(e){if(!t0(e)||tL(e))return false;var t=tK(e)||el(e)?eb:N;return t.test(tI(e))}function tm(e){return t1(e)&&tJ(e.length)&&!!W[ey.call(e)]}function tO(e){if("function"==typeof e)return e;if(null==e)return t7;if("object"==typeof e)return tG(e)?tb(e[0],e[1]):ty(e);return t9(e)}function tv(e){if(!tZ(e))return ek(e);var t=[];for(var r in Object(e))if(ev.call(e,r)&&"constructor"!=r)t.push(r);return t}function ty(e){var t=t$(e);if(1==t.length&&t[0][2])return tq(t[0][0],t[0][1]);return function(r){return r===e||tp(r,e,t)}}function tb(e,t){if(tR(e)&&tX(t))return tq(tz(e),t);return function(r){var n=t4(r,e);return void 0===n&&n===t?t8(r,e):th(t,n,void 0,a|l)}}function tw(e){return function(t){return tu(t,e)}}function tx(e){if("string"==typeof e)return e;if(t2(e))return eX?eX.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tS(e){return tG(e)?e:tB(e)}function t_(e,t){return function(r,n){if(null==r)return r;if(!tF(r))return e(r,n);var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i)if(false===n(s[o],o,s))break;return r}}function tk(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var l=s[e?a:++i];if(false===r(o[l],l,o))break}return t}}function tQ(e,t,r,n,i,o){var s=i&l,u=e.length,f=t.length;if(u!=f&&!(s&&f>u))return false;var c=o.get(e);if(c&&o.get(t))return c==t;var h=-1,d=true,p=i&a?new e3:void 0;o.set(e,t);o.set(t,e);while(++h<u){var g=e[h],m=t[h];if(n)var O=s?n(m,g,h,t,e,o):n(g,m,h,e,t,o);if(void 0!==O){if(O)continue;d=false;break}if(p){if(!en(t,function(e,t){if(!p.has(t)&&(g===e||r(g,e,n,i,o)))return p.add(t)})){d=false;break}}else if(!(g===m||r(g,m,n,i,o))){d=false;break}}o["delete"](e);o["delete"](t);return d}function tP(e,t,r,n,i,o,s){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer;t=t.buffer;case P:if(e.byteLength!=t.byteLength||!n(new ex(e),new ex(t)))break;return true;case d:case p:case y:return tY(+e,+t);case g:return e.name==t.name&&e.message==t.message;case x:case _:return e==t+"";case v:var u=eu;case S:var f=o&l;u||(u=ec);if(e.size!=t.size&&!f)break;var c=s.get(e);if(c)return c==t;o|=a;s.set(e,t);var h=tQ(u(e),u(t),n,i,o,s);s["delete"](e);return h;case k:if(eZ)return eZ.call(e)==eZ.call(t)}return false}function tT(e,t,r,n,i,o){var s=i&l,a=t6(e),u=a.length,f=t6(t),c=f.length;if(u!=c&&!s)return false;var h=u;while(h--){var d=a[h];if(!(s?d in t:ev.call(t,d)))return false}var p=o.get(e);if(p&&o.get(t))return p==t;var g=true;o.set(e,t);o.set(t,e);var m=s;while(++h<u){d=a[h];var O=e[d],v=t[d];if(n)var y=s?n(v,O,d,t,e,o):n(O,v,d,e,t,o);if(!(void 0===y?O===v||r(O,v,n,i,o):y)){g=false;break}m||(m="constructor"==d)}if(g&&!m){var b=e.constructor,w=t.constructor;if(b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w))g=false}o["delete"](e);o["delete"](t);return g}function tA(e,t){var r=e.__data__;return tD(t)?r["string"==typeof t?"string":"hash"]:r.map}function t$(e){var t=t6(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,tX(i)]}return t}function tj(e,t){var r=ea(e,t);return tg(r)?r:void 0}var tC=tf;if(eQ&&tC(new eQ(new ArrayBuffer(1)))!=T||eP&&tC(new eP)!=v||eT&&tC(eT.resolve())!=w||eA&&tC(new eA)!=S||e$&&tC(new e$)!=Q)tC=function(e){var t=ey.call(e),r=t==b?e.constructor:void 0,n=r?tI(r):void 0;if(n)switch(n){case eC:return T;case eE:return v;case eM:return w;case eR:return S;case eD:return Q}return t};function tE(e,t,r){t=tR(t,e)?[t]:tS(t);var n,i=-1,o=t.length;while(++i<o){var s=tz(t[i]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}if(n)return n;var o=e?e.length:0;return!!o&&tJ(o)&&tM(s,o)&&(tG(e)||tU(e))}function tM(e,t){t=null==t?f:t;return!!t&&("number"==typeof e||V.test(e))&&e>-1&&e%1==0&&e<t}function tR(e,t){if(tG(e))return false;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||t2(e))return true;return X.test(e)||!Z.test(e)||null!=t&&e in Object(t)}function tD(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tL(e){return!!em&&em in e}function tZ(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ep;return e===r}function tX(e){return e===e&&!t0(e)}function tq(e,t){return function(r){if(null==r)return false;return r[e]===t&&(void 0!==t||e in Object(r))}}var tB=tV(function(e){e=t3(e);var t=[];if(q.test(e))t.push("");e.replace(B,function(e,r,n,i){t.push(n?i.replace(I,"$1"):r||e)});return t});function tz(e){if("string"==typeof e||t2(e))return e;var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tI(e){if(null!=e){try{return eO.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tN(e,t){var r=tG(e)?er:ts;return r(e,tW(tO(t,3)))}function tV(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);r.cache=o.set(i,s);return s};r.cache=new(tV.Cache||eK);return r}tV.Cache=eK;function tW(e){if("function"!=typeof e)throw new TypeError(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function tY(e,t){return e===t||e!==e&&t!==t}function tU(e){return tH(e)&&ev.call(e,"callee")&&(!eS.call(e,"callee")||ey.call(e)==c)}var tG=Array.isArray;function tF(e){return null!=e&&tJ(e.length)&&!tK(e)}function tH(e){return t1(e)&&tF(e)}
11function tK(e){var t=t0(e)?ey.call(e):"";return t==m||t==O}function tJ(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function t0(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function t1(e){return!!e&&"object"==typeof e}function t2(e){return"symbol"==typeof e||t1(e)&&ey.call(e)==k}var t5=et?es(et):tm;function t3(e){return null==e?"":tx(e)}function t4(e,t,r){var n=null==e?void 0:tu(e,t);return void 0===n?r:n}function t8(e,t){return null!=e&&tE(e,t,tc)}function t6(e){return tF(e)?tn(e):tv(e)}function t7(e){return e}function t9(e){return tR(e)?ei(tz(e)):tw(e)}n.exports=tN}},"lodash.filter":{
11"package.json":function(e,t,r){r.exports={name:"lodash.filter",version:"4.6.0"}},
11"index.js":function(e,r,n){var i=200;var o="Expected a function";var s="__lodash_hash_undefined__";var a=1,l=2;var u=1/0,f=0x1fffffffffffff;var c="[object Arguments]",h="[object Array]",d="[object Boolean]",p="[object Date]",g="[object Error]",m="[object Function]",O="[object GeneratorFunction]",v="[object Map]",y="[object Number]",b="[object Object]",w="[object Promise]",x="[object RegExp]",S="[object Set]",_="[object String]",k="[object Symbol]",Q="[object WeakMap]";var P="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",$="[object Float64Array]",j="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",L="[object Uint32Array]";var Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,q=/^\./,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var z=/[\\^$.*+?()[\]{}|]/g;var I=/\\(\\)?/g;var N=/^\[object .+?Constructor\]$/;var V=/^(?:0|[1-9]\d*)$/;var W={};W[A]=W[$]=W[j]=W[C]=W[E]=W[M]=W[R]=W[D]=W[L]=true;W[c]=W[h]=W[P]=W[d]=W[T]=W[p]=W[g]=W[m]=W[v]=W[y]=W[b]=W[x]=W[S]=W[_]=W[Q]=false;var Y="object"==typeof t&&t&&t.Object===Object&&t;var U="object"==typeof self&&self&&self.Object===Object&&self;var G=Y||U||Function("return this")();var F="object"==typeof r&&r&&!r.nodeType&&r;var H=F&&"object"==typeof n&&n&&!n.nodeType&&n;var K=H&&H.exports===F;var J=K&&Y.process;var ee=function(){try{return J&&J.binding("util")}catch(e){}}();var et=ee&&ee.isTypedArray;function er(e,t){var r=-1,n=e?e.length:0,i=0,o=[];while(++r<n){var s=e[r];if(t(s,r,e))o[i++]=s}return o}function en(e,t){var r=-1,n=e?e.length:0;while(++r<n)if(t(e[r],r,e))return true;return false}function ei(e){return function(t){return null==t?void 0:t[e]}}function eo(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function es(e){return function(t){return e(t)}}function ea(e,t){return null==e?void 0:e[t]}function el(e){var t=false;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function eu(e){var t=-1,r=Array(e.size);e.forEach(function(e,n){r[++t]=[n,e]});return r}function ef(e,t){return function(r){return e(t(r))}}function ec(e){var t=-1,r=Array(e.size);e.forEach(function(e){r[++t]=e});return r}var eh=Array.prototype,ed=Function.prototype,ep=Object.prototype;var eg=G["__core-js_shared__"];var em=function(){var e=/[^.]+$/.exec(eg&&eg.keys&&eg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var eO=ed.toString;var ev=ep.hasOwnProperty;var ey=ep.toString;var eb=RegExp("^"+eO.call(ev).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ew=G.Symbol,ex=G.Uint8Array,eS=ep.propertyIsEnumerable,e_=eh.splice;var ek=ef(Object.keys,Object);var eQ=tj(G,"DataView"),eP=tj(G,"Map"),eT=tj(G,"Promise"),eA=tj(G,"Set"),e$=tj(G,"WeakMap"),ej=tj(Object,"create");var eC=tI(eQ),eE=tI(eP),eM=tI(eT),eR=tI(eA),eD=tI(e$);var eL=ew?ew.prototype:void 0,eZ=eL?eL.valueOf:void 0,eX=eL?eL.toString:void 0;function eq(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eB(){this.__data__=ej?ej(null):{}}function ez(e){return this.has(e)&&delete this.__data__[e]}function eI(e){var t=this.__data__;if(ej){var r=t[e];return r===s?void 0:r}return ev.call(t,e)?t[e]:void 0}function eN(e){var t=this.__data__;return ej?void 0!==t[e]:ev.call(t,e)}function eV(e,t){var r=this.__data__;r[e]=ej&&void 0===t?s:t;return this}eq.prototype.clear=eB;eq.prototype["delete"]=ez;eq.prototype.get=eI;eq.prototype.has=eN;eq.prototype.set=eV;function eW(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eY(){this.__data__=[]}function eU(e){var t=this.__data__,r=ti(t,e);if(r<0)return false;var n=t.length-1;if(r==n)t.pop();else e_.call(t,r,1);return true}function eG(e){var t=this.__data__,r=ti(t,e);return r<0?void 0:t[r][1]}function eF(e){return ti(this.__data__,e)>-1}function eH(e,t){var r=this.__data__,n=ti(r,e);if(n<0)r.push([e,t]);else r[n][1]=t;return this}eW.prototype.clear=eY;eW.prototype["delete"]=eU;eW.prototype.get=eG;eW.prototype.has=eF;eW.prototype.set=eH;function eK(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eJ(){this.__data__={hash:new eq,map:new(eP||eW),string:new eq}}function e0(e){return tA(this,e)["delete"](e)}function e1(e){return tA(this,e).get(e)}function e2(e){return tA(this,e).has(e)}function e5(e,t){tA(this,e).set(e,t);return this}eK.prototype.clear=eJ;eK.prototype["delete"]=e0;eK.prototype.get=e1;eK.prototype.has=e2;eK.prototype.set=e5;function e3(e){var t=-1,r=e?e.length:0;this.__data__=new eK;while(++t<r)this.add(e[t])}function e4(e){this.__data__.set(e,s);return this}function e8(e){return this.__data__.has(e)}e3.prototype.add=e3.prototype.push=e4;e3.prototype.has=e8;function e6(e){this.__data__=new eW(e)}function e7(){this.__data__=new eW}function e9(e){return this.__data__["delete"](e)}function te(e){return this.__data__.get(e)}function tt(e){return this.__data__.has(e)}function tr(e,t){var r=this.__data__;if(r instanceof eW){var n=r.__data__;if(!eP||n.length<i-1){n.push([e,t]);return this}r=this.__data__=new eK(n)}r.set(e,t);return this}e6.prototype.clear=e7;e6.prototype["delete"]=e9;e6.prototype.get=te;e6.prototype.has=tt;e6.prototype.set=tr;function tn(e,t){var r=tU(e)||tY(e)?eo(e.length,String):[];var n=r.length,i=!!n;for(var o in e)if((t||ev.call(e,o))&&!(i&&("length"==o||tM(o,n))))r.push(o);return r}function ti(e,t){var r=e.length;while(r--)if(tW(e[r][0],t))return r;return -1}var to=t_(tl);function ts(e,t){var r=[];to(e,function(e,n,i){if(t(e,n,i))r.push(e)});return r}var ta=tk();function tl(e,t){return e&&ta(e,t,t8)}function tu(e,t){t=tR(t,e)?[t]:tS(t);var r=0,n=t.length;while(null!=e&&r<n)e=e[tz(t[r++])];return r&&r==n?e:void 0}function tf(e){return ey.call(e)}function tc(e,t){return null!=e&&t in Object(e)}function th(e,t,r,n,i){if(e===t)return true;if(null==e||null==t||!tJ(e)&&!t0(t))return e!==e&&t!==t;return td(e,t,th,r,n,i)}function td(e,t,r,n,i,o){var s=tU(e),a=tU(t),u=h,f=h;if(!s){u=tC(e);u=u==c?b:u}if(!a){f=tC(t);f=f==c?b:f}var d=u==b&&!el(e),p=f==b&&!el(t),g=u==f;if(g&&!d){o||(o=new e6);return s||t2(e)?tQ(e,t,r,n,i,o):tP(e,t,u,r,n,i,o)}if(!(i&l)){var m=d&&ev.call(e,"__wrapped__"),O=p&&ev.call(t,"__wrapped__");
11if(m||O){var v=m?e.value():e,y=O?t.value():t;o||(o=new e6);return r(v,y,n,i,o)}}if(!g)return false;o||(o=new e6);return tT(e,t,r,n,i,o)}function tp(e,t,r,n){var i=r.length,o=i,s=!n;if(null==e)return!o;e=Object(e);while(i--){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return false}while(++i<o){u=r[i];var f=u[0],c=e[f],h=u[1];if(s&&u[2]){if(void 0===c&&!(f in e))return false}else{var d=new e6;if(n)var p=n(c,h,f,e,t,d);if(!(void 0===p?th(h,c,n,a|l,d):p))return false}}return true}function tg(e){if(!tJ(e)||tL(e))return false;var t=tH(e)||el(e)?eb:N;return t.test(tI(e))}function tm(e){return t0(e)&&tK(e.length)&&!!W[ey.call(e)]}function tO(e){if("function"==typeof e)return e;if(null==e)return t6;if("object"==typeof e)return tU(e)?tb(e[0],e[1]):ty(e);return t7(e)}function tv(e){if(!tZ(e))return ek(e);var t=[];for(var r in Object(e))if(ev.call(e,r)&&"constructor"!=r)t.push(r);return t}function ty(e){var t=t$(e);if(1==t.length&&t[0][2])return tq(t[0][0],t[0][1]);return function(r){return r===e||tp(r,e,t)}}function tb(e,t){if(tR(e)&&tX(t))return tq(tz(e),t);return function(r){var n=t3(r,e);return void 0===n&&n===t?t4(r,e):th(t,n,void 0,a|l)}}function tw(e){return function(t){return tu(t,e)}}function tx(e){if("string"==typeof e)return e;if(t1(e))return eX?eX.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tS(e){return tU(e)?e:tB(e)}function t_(e,t){return function(r,n){if(null==r)return r;if(!tG(r))return e(r,n);var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i)if(false===n(s[o],o,s))break;return r}}function tk(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var l=s[e?a:++i];if(false===r(o[l],l,o))break}return t}}function tQ(e,t,r,n,i,o){var s=i&l,u=e.length,f=t.length;if(u!=f&&!(s&&f>u))return false;var c=o.get(e);if(c&&o.get(t))return c==t;var h=-1,d=true,p=i&a?new e3:void 0;o.set(e,t);o.set(t,e);while(++h<u){var g=e[h],m=t[h];if(n)var O=s?n(m,g,h,t,e,o):n(g,m,h,e,t,o);if(void 0!==O){if(O)continue;d=false;break}if(p){if(!en(t,function(e,t){if(!p.has(t)&&(g===e||r(g,e,n,i,o)))return p.add(t)})){d=false;break}}else if(!(g===m||r(g,m,n,i,o))){d=false;break}}o["delete"](e);o["delete"](t);return d}function tP(e,t,r,n,i,o,s){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer;t=t.buffer;case P:if(e.byteLength!=t.byteLength||!n(new ex(e),new ex(t)))break;return true;case d:case p:case y:return tW(+e,+t);case g:return e.name==t.name&&e.message==t.message;case x:case _:return e==t+"";case v:var u=eu;case S:var f=o&l;u||(u=ec);if(e.size!=t.size&&!f)break;var c=s.get(e);if(c)return c==t;o|=a;s.set(e,t);var h=tQ(u(e),u(t),n,i,o,s);s["delete"](e);return h;case k:if(eZ)return eZ.call(e)==eZ.call(t)}return false}function tT(e,t,r,n,i,o){var s=i&l,a=t8(e),u=a.length,f=t8(t),c=f.length;if(u!=c&&!s)return false;var h=u;while(h--){var d=a[h];if(!(s?d in t:ev.call(t,d)))return false}var p=o.get(e);if(p&&o.get(t))return p==t;var g=true;o.set(e,t);o.set(t,e);var m=s;while(++h<u){d=a[h];var O=e[d],v=t[d];if(n)var y=s?n(v,O,d,t,e,o):n(O,v,d,e,t,o);if(!(void 0===y?O===v||r(O,v,n,i,o):y)){g=false;break}m||(m="constructor"==d)}if(g&&!m){var b=e.constructor,w=t.constructor;if(b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w))g=false}o["delete"](e);o["delete"](t);return g}function tA(e,t){var r=e.__data__;return tD(t)?r["string"==typeof t?"string":"hash"]:r.map}function t$(e){var t=t8(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,tX(i)]}return t}function tj(e,t){var r=ea(e,t);return tg(r)?r:void 0}var tC=tf;if(eQ&&tC(new eQ(new ArrayBuffer(1)))!=T||eP&&tC(new eP)!=v||eT&&tC(eT.resolve())!=w||eA&&tC(new eA)!=S||e$&&tC(new e$)!=Q)tC=function(e){var t=ey.call(e),r=t==b?e.constructor:void 0,n=r?tI(r):void 0;if(n)switch(n){case eC:return T;case eE:return v;case eM:return w;case eR:return S;case eD:return Q}return t};function tE(e,t,r){t=tR(t,e)?[t]:tS(t);var n,i=-1,o=t.length;while(++i<o){var s=tz(t[i]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}if(n)return n;var o=e?e.length:0;return!!o&&tK(o)&&tM(s,o)&&(tU(e)||tY(e))}function tM(e,t){t=null==t?f:t;return!!t&&("number"==typeof e||V.test(e))&&e>-1&&e%1==0&&e<t}function tR(e,t){if(tU(e))return false;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||t1(e))return true;return X.test(e)||!Z.test(e)||null!=t&&e in Object(t)}function tD(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tL(e){return!!em&&em in e}function tZ(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ep;return e===r}function tX(e){return e===e&&!tJ(e)}function tq(e,t){return function(r){if(null==r)return false;return r[e]===t&&(void 0!==t||e in Object(r))}}var tB=tV(function(e){e=t5(e);var t=[];if(q.test(e))t.push("");e.replace(B,function(e,r,n,i){t.push(n?i.replace(I,"$1"):r||e)});return t});function tz(e){if("string"==typeof e||t1(e))return e;var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tI(e){if(null!=e){try{return eO.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tN(e,t){var r=tU(e)?er:ts;return r(e,tO(t,3))}function tV(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);r.cache=o.set(i,s);return s};r.cache=new(tV.Cache||eK);return r}tV.Cache=eK;function tW(e,t){return e===t||e!==e&&t!==t}function tY(e){return tF(e)&&ev.call(e,"callee")&&(!eS.call(e,"callee")||ey.call(e)==c)}var tU=Array.isArray;function tG(e){return null!=e&&tK(e.length)&&!tH(e)}function tF(e){return t0(e)&&tG(e)}function tH(e){var t=tJ(e)?ey.call(e):"";return t==m||t==O}function tK(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function tJ(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function t0(e){return!!e&&"object"==typeof e}function t1(e){return"symbol"==typeof e||t0(e)&&ey.call(e)==k}var t2=et?es(et):tm;function t5(e){return null==e?"":tx(e)}function t3(e,t,r){var n=null==e?void 0:tu(e,t);return void 0===n?r:n}function t4(e,t){return null!=e&&tE(e,t,tc)}function t8(e){return tG(e)?tn(e):tv(e)}function t6(e){return e}function t7(e){return tR(e)?ei(tz(e)):tw(e)}n.exports=tN}},"lodash.reduce":{
11"package.json":function(e,t,r){r.exports={name:"lodash.reduce",version:"4.6.0"}},
11"index.js":function(e,r,n){var i=200;var o="Expected a function";var s="__lodash_hash_undefined__";var a=1,l=2;var u=1/0,f=0x1fffffffffffff;var c="[object Arguments]",h="[object Array]",d="[object Boolean]",p="[object Date]",g="[object Error]",m="[object Function]",O="[object GeneratorFunction]",v="[object Map]",y="[object Number]",b="[object Object]",w="[object Promise]",x="[object RegExp]",S="[object Set]",_="[object String]",k="[object Symbol]",Q="[object WeakMap]";var P="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",$="[object Float64Array]",j="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",L="[object Uint32Array]";var Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,q=/^\./,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var z=/[\\^$.*+?()[\]{}|]/g;var I=/\\(\\)?/g;var N=/^\[object .+?Constructor\]$/;var V=/^(?:0|[1-9]\d*)$/;var W={};W[A]=W[$]=W[j]=W[C]=W[E]=W[M]=W[R]=W[D]=W[L]=true;W[c]=W[h]=W[P]=W[d]=W[T]=W[p]=W[g]=W[m]=W[v]=W[y]=W[b]=W[x]=W[S]=W[_]=W[Q]=false;var Y="object"==typeof t&&t&&t.Object===Object&&t;var U="object"==typeof self&&self&&self.Object===Object&&self;var G=Y||U||Function("return this")();var F="object"==typeof r&&r&&!r.nodeType&&r;var H=F&&"object"==typeof n&&n&&!n.nodeType&&n;var K=H&&H.exports===F;var J=K&&Y.process;var ee=function(){try{return J&&J.binding("util")}catch(e){}}();var et=ee&&ee.isTypedArray;function er(e,t,r,n){var i=-1,o=e?e.length:0;if(n&&o)r=e[++i];while(++i<o)r=t(r,e[i],i,e);return r}function en(e,t){var r=-1,n=e?e.length:0;while(++r<n)if(t(e[r],r,e))return true;return false}function ei(e){return function(t){return null==t?void 0:t[e]}}function eo(e,t,r,n,i){i(e,function(e,i,o){r=n?(n=false,e):t(r,e,i,o)});return r}function es(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function ea(e){return function(t){return e(t)}}function el(e,t){return null==e?void 0:e[t]}function eu(e){var t=false;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function ef(e){var t=-1,r=Array(e.size);e.forEach(function(e,n){r[++t]=[n,e]});return r}function ec(e,t){return function(r){return e(t(r))}}function eh(e){var t=-1,r=Array(e.size);e.forEach(function(e){r[++t]=e});return r}var ed=Array.prototype,ep=Function.prototype,eg=Object.prototype;var em=G["__core-js_shared__"];var eO=function(){var e=/[^.]+$/.exec(em&&em.keys&&em.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ev=ep.toString;var ey=eg.hasOwnProperty;var eb=eg.toString;var ew=RegExp("^"+ev.call(ey).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ex=G.Symbol,eS=G.Uint8Array,e_=eg.propertyIsEnumerable,ek=ed.splice;var eQ=ec(Object.keys,Object);var eP=tj(G,"DataView"),eT=tj(G,"Map"),eA=tj(G,"Promise"),e$=tj(G,"Set"),ej=tj(G,"WeakMap"),eC=tj(Object,"create");var eE=tI(eP),eM=tI(eT),eR=tI(eA),eD=tI(e$),eL=tI(ej);var eZ=ex?ex.prototype:void 0,eX=eZ?eZ.valueOf:void 0,eq=eZ?eZ.toString:void 0;function eB(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function ez(){this.__data__=eC?eC(null):{}}function eI(e){return this.has(e)&&delete this.__data__[e]}function eN(e){var t=this.__data__;if(eC){var r=t[e];return r===s?void 0:r}return ey.call(t,e)?t[e]:void 0}function eV(e){var t=this.__data__;return eC?void 0!==t[e]:ey.call(t,e)}function eW(e,t){var r=this.__data__;r[e]=eC&&void 0===t?s:t;return this}eB.prototype.clear=ez;eB.prototype["delete"]=eI;eB.prototype.get=eN;eB.prototype.has=eV;eB.prototype.set=eW;function eY(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eU(){this.__data__=[]}function eG(e){var t=this.__data__,r=to(t,e);if(r<0)return false;var n=t.length-1;if(r==n)t.pop();else ek.call(t,r,1);return true}function eF(e){var t=this.__data__,r=to(t,e);return r<0?void 0:t[r][1]}function eH(e){return to(this.__data__,e)>-1}function eK(e,t){var r=this.__data__,n=to(r,e);if(n<0)r.push([e,t]);else r[n][1]=t;return this}eY.prototype.clear=eU;eY.prototype["delete"]=eG;eY.prototype.get=eF;eY.prototype.has=eH;eY.prototype.set=eK;function eJ(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function e0(){this.__data__={hash:new eB,map:new(eT||eY),string:new eB}}function e1(e){return tA(this,e)["delete"](e)}function e2(e){return tA(this,e).get(e)}function e5(e){return tA(this,e).has(e)}function e3(e,t){tA(this,e).set(e,t);return this}eJ.prototype.clear=e0;eJ.prototype["delete"]=e1;eJ.prototype.get=e2;eJ.prototype.has=e5;eJ.prototype.set=e3;function e4(e){var t=-1,r=e?e.length:0;this.__data__=new eJ;while(++t<r)this.add(e[t])}function e8(e){this.__data__.set(e,s);return this}function e6(e){return this.__data__.has(e)}e4.prototype.add=e4.prototype.push=e8;e4.prototype.has=e6;function e7(e){this.__data__=new eY(e)}function e9(){this.__data__=new eY}function te(e){return this.__data__["delete"](e)}function tt(e){return this.__data__.get(e)}function tr(e){return this.__data__.has(e)}function tn(e,t){var r=this.__data__;if(r instanceof eY){var n=r.__data__;if(!eT||n.length<i-1){n.push([e,t]);return this}r=this.__data__=new eJ(n)}r.set(e,t);return this}e7.prototype.clear=e9;e7.prototype["delete"]=te;e7.prototype.get=tt;e7.prototype.has=tr;e7.prototype.set=tn;function ti(e,t){var r=tU(e)||tY(e)?es(e.length,String):[];var n=r.length,i=!!n;for(var o in e)if((t||ey.call(e,o))&&!(i&&("length"==o||tM(o,n))))r.push(o);return r}function to(e,t){var r=e.length;while(r--)if(tW(e[r][0],t))return r;return -1}var ts=t_(tl);var ta=tk();function tl(e,t){return e&&ta(e,t,t8)}function tu(e,t){t=tR(t,e)?[t]:tS(t);var r=0,n=t.length;while(null!=e&&r<n)e=e[tz(t[r++])];return r&&r==n?e:void 0}function tf(e){return eb.call(e)}function tc(e,t){return null!=e&&t in Object(e)}function th(e,t,r,n,i){if(e===t)return true;if(null==e||null==t||!tJ(e)&&!t0(t))return e!==e&&t!==t;return td(e,t,th,r,n,i)}function td(e,t,r,n,i,o){var s=tU(e),a=tU(t),u=h,f=h;if(!s){u=tC(e);u=u==c?b:u}if(!a){f=tC(t);f=f==c?b:f}var d=u==b&&!eu(e),p=f==b&&!eu(t),g=u==f;if(g&&!d){o||(o=new e7);return s||t2(e)?tQ(e,t,r,n,i,o):tP(e,t,u,r,n,i,o)}if(!(i&l)){var m=d&&ey.call(e,"__wrapped__"),O=p&&ey.call(t,"__wrapped__");
11if(m||O){var v=m?e.value():e,y=O?t.value():t;o||(o=new e7);return r(v,y,n,i,o)}}if(!g)return false;o||(o=new e7);return tT(e,t,r,n,i,o)}function tp(e,t,r,n){var i=r.length,o=i,s=!n;if(null==e)return!o;e=Object(e);while(i--){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return false}while(++i<o){u=r[i];var f=u[0],c=e[f],h=u[1];if(s&&u[2]){if(void 0===c&&!(f in e))return false}else{var d=new e7;if(n)var p=n(c,h,f,e,t,d);if(!(void 0===p?th(h,c,n,a|l,d):p))return false}}return true}function tg(e){if(!tJ(e)||tL(e))return false;var t=tH(e)||eu(e)?ew:N;return t.test(tI(e))}function tm(e){return t0(e)&&tK(e.length)&&!!W[eb.call(e)]}function tO(e){if("function"==typeof e)return e;if(null==e)return t6;if("object"==typeof e)return tU(e)?tb(e[0],e[1]):ty(e);return t7(e)}function tv(e){if(!tZ(e))return eQ(e);var t=[];for(var r in Object(e))if(ey.call(e,r)&&"constructor"!=r)t.push(r);return t}function ty(e){var t=t$(e);if(1==t.length&&t[0][2])return tq(t[0][0],t[0][1]);return function(r){return r===e||tp(r,e,t)}}function tb(e,t){if(tR(e)&&tX(t))return tq(tz(e),t);return function(r){var n=t3(r,e);return void 0===n&&n===t?t4(r,e):th(t,n,void 0,a|l)}}function tw(e){return function(t){return tu(t,e)}}function tx(e){if("string"==typeof e)return e;if(t1(e))return eq?eq.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tS(e){return tU(e)?e:tB(e)}function t_(e,t){return function(r,n){if(null==r)return r;if(!tG(r))return e(r,n);var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i)if(false===n(s[o],o,s))break;return r}}function tk(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var l=s[e?a:++i];if(false===r(o[l],l,o))break}return t}}function tQ(e,t,r,n,i,o){var s=i&l,u=e.length,f=t.length;if(u!=f&&!(s&&f>u))return false;var c=o.get(e);if(c&&o.get(t))return c==t;var h=-1,d=true,p=i&a?new e4:void 0;o.set(e,t);o.set(t,e);while(++h<u){var g=e[h],m=t[h];if(n)var O=s?n(m,g,h,t,e,o):n(g,m,h,e,t,o);if(void 0!==O){if(O)continue;d=false;break}if(p){if(!en(t,function(e,t){if(!p.has(t)&&(g===e||r(g,e,n,i,o)))return p.add(t)})){d=false;break}}else if(!(g===m||r(g,m,n,i,o))){d=false;break}}o["delete"](e);o["delete"](t);return d}function tP(e,t,r,n,i,o,s){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer;t=t.buffer;case P:if(e.byteLength!=t.byteLength||!n(new eS(e),new eS(t)))break;return true;case d:case p:case y:return tW(+e,+t);case g:return e.name==t.name&&e.message==t.message;case x:case _:return e==t+"";case v:var u=ef;case S:var f=o&l;u||(u=eh);if(e.size!=t.size&&!f)break;var c=s.get(e);if(c)return c==t;o|=a;s.set(e,t);var h=tQ(u(e),u(t),n,i,o,s);s["delete"](e);return h;case k:if(eX)return eX.call(e)==eX.call(t)}return false}function tT(e,t,r,n,i,o){var s=i&l,a=t8(e),u=a.length,f=t8(t),c=f.length;if(u!=c&&!s)return false;var h=u;while(h--){var d=a[h];if(!(s?d in t:ey.call(t,d)))return false}var p=o.get(e);if(p&&o.get(t))return p==t;var g=true;o.set(e,t);o.set(t,e);var m=s;while(++h<u){d=a[h];var O=e[d],v=t[d];if(n)var y=s?n(v,O,d,t,e,o):n(O,v,d,e,t,o);if(!(void 0===y?O===v||r(O,v,n,i,o):y)){g=false;break}m||(m="constructor"==d)}if(g&&!m){var b=e.constructor,w=t.constructor;if(b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w))g=false}o["delete"](e);o["delete"](t);return g}function tA(e,t){var r=e.__data__;return tD(t)?r["string"==typeof t?"string":"hash"]:r.map}function t$(e){var t=t8(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,tX(i)]}return t}function tj(e,t){var r=el(e,t);return tg(r)?r:void 0}var tC=tf;if(eP&&tC(new eP(new ArrayBuffer(1)))!=T||eT&&tC(new eT)!=v||eA&&tC(eA.resolve())!=w||e$&&tC(new e$)!=S||ej&&tC(new ej)!=Q)tC=function(e){var t=eb.call(e),r=t==b?e.constructor:void 0,n=r?tI(r):void 0;if(n)switch(n){case eE:return T;case eM:return v;case eR:return w;case eD:return S;case eL:return Q}return t};function tE(e,t,r){t=tR(t,e)?[t]:tS(t);var n,i=-1,o=t.length;while(++i<o){var s=tz(t[i]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}if(n)return n;var o=e?e.length:0;return!!o&&tK(o)&&tM(s,o)&&(tU(e)||tY(e))}function tM(e,t){t=null==t?f:t;return!!t&&("number"==typeof e||V.test(e))&&e>-1&&e%1==0&&e<t}function tR(e,t){if(tU(e))return false;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||t1(e))return true;return X.test(e)||!Z.test(e)||null!=t&&e in Object(t)}function tD(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tL(e){return!!eO&&eO in e}function tZ(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||eg;return e===r}function tX(e){return e===e&&!tJ(e)}function tq(e,t){return function(r){if(null==r)return false;return r[e]===t&&(void 0!==t||e in Object(r))}}var tB=tV(function(e){e=t5(e);var t=[];if(q.test(e))t.push("");e.replace(B,function(e,r,n,i){t.push(n?i.replace(I,"$1"):r||e)});return t});function tz(e){if("string"==typeof e||t1(e))return e;var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tI(e){if(null!=e){try{return ev.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tN(e,t,r){var n=tU(e)?er:eo,i=arguments.length<3;return n(e,tO(t,4),r,i,ts)}function tV(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);r.cache=o.set(i,s);return s};r.cache=new(tV.Cache||eJ);return r}tV.Cache=eJ;function tW(e,t){return e===t||e!==e&&t!==t}function tY(e){return tF(e)&&ey.call(e,"callee")&&(!e_.call(e,"callee")||eb.call(e)==c)}var tU=Array.isArray;function tG(e){return null!=e&&tK(e.length)&&!tH(e)}function tF(e){return t0(e)&&tG(e)}function tH(e){var t=tJ(e)?eb.call(e):"";return t==m||t==O}function tK(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function tJ(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function t0(e){return!!e&&"object"==typeof e}function t1(e){return"symbol"==typeof e||t0(e)&&eb.call(e)==k}var t2=et?ea(et):tm;function t5(e){return null==e?"":tx(e)}function t3(e,t,r){var n=null==e?void 0:tu(e,t);return void 0===n?r:n}function t4(e,t){return null!=e&&tE(e,t,tc)}function t8(e){return tG(e)?ti(e):tv(e)}function t6(e){return e}function t7(e){return tR(e)?ei(tz(e)):tw(e)}n.exports=tN}},"lodash.flatten":{
11"package.json":function(e,t,r){r.exports={name:"lodash.flatten",version:"4.4.0"}},
11"index.js":function(e,r,n){var i=0x1fffffffffffff;var o="[object Arguments]",s="[object Function]",a="[object GeneratorFunction]";var l="object"==typeof t&&t&&t.Object===Object&&t;var u="object"==typeof self&&self&&self.Object===Object&&self;var f=l||u||Function("return this")();function c(e,t){var r=-1,n=t.length,i=e.length;while(++r<n)e[i+r]=t[r];return e}var h=Object.prototype;var d=h.hasOwnProperty;var p=h.toString;var g=f.Symbol,m=h.propertyIsEnumerable,O=g?g.isConcatSpreadable:void 0;function v(e,t,r,n,i){var o=-1,s=e.length;r||(r=y);i||(i=[]);while(++o<s){var a=e[o];if(t>0&&r(a))if(t>1)v(a,t-1,r,n,i);else c(i,a);else if(!n)i[i.length]=a}return i}function y(e){return x(e)||w(e)||!!(O&&e&&e[O])}function b(e){var t=e?e.length:0;return t?v(e,1):[]}function w(e){return _(e)&&d.call(e,"callee")&&(!m.call(e,"callee")||p.call(e)==o)}var x=Array.isArray;function S(e){return null!=e&&Q(e.length)&&!k(e)}function _(e){return T(e)&&S(e)}function k(e){var t=P(e)?p.call(e):"";return t==s||t==a}function Q(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function P(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function T(e){return!!e&&"object"==typeof e}n.exports=b}},"lodash.pick":{
11"package.json":function(e,t,r){r.exports={name:"lodash.pick",version:"4.4.0"}},
11"index.js":function(e,r,n){var i=1/0,o=0x1fffffffffffff;var s="[object Arguments]",a="[object Function]",l="[object GeneratorFunction]",u="[object Symbol]";var f="object"==typeof t&&t&&t.Object===Object&&t;var c="object"==typeof self&&self&&self.Object===Object&&self;var h=f||c||Function("return this")();function d(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function p(e,t){var r=-1,n=e?e.length:0,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}function g(e,t){var r=-1,n=t.length,i=e.length;while(++r<n)e[i+r]=t[r];return e}var m=Object.prototype;var O=m.hasOwnProperty;var v=m.toString;var y=h.Symbol,b=m.propertyIsEnumerable,w=y?y.isConcatSpreadable:void 0;var x=Math.max;function S(e,t,r,n,i){var o=-1,s=e.length;r||(r=P);i||(i=[]);while(++o<s){var a=e[o];if(t>0&&r(a))if(t>1)S(a,t-1,r,n,i);else g(i,a);else if(!n)i[i.length]=a}return i}function _(e,t){e=Object(e);return k(e,t,function(t,r){return r in e})}function k(e,t,r){var n=-1,i=t.length,o={};while(++n<i){var s=t[n],a=e[s];if(r(a,s))o[s]=a}return o}function Q(e,t){t=x(void 0===t?e.length-1:t,0);return function(){var r=arguments,n=-1,i=x(r.length-t,0),o=Array(i);while(++n<i)o[n]=r[t+n];n=-1;var s=Array(t+1);while(++n<t)s[n]=r[n];s[t]=o;return d(e,this,s)}}function P(e){return $(e)||A(e)||!!(w&&e&&e[w])}function T(e){if("string"==typeof e||L(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function A(e){return C(e)&&O.call(e,"callee")&&(!b.call(e,"callee")||v.call(e)==s)}var $=Array.isArray;function j(e){return null!=e&&M(e.length)&&!E(e)}function C(e){return D(e)&&j(e)}function E(e){var t=R(e)?v.call(e):"";return t==a||t==l}function M(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function R(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function D(e){return!!e&&"object"==typeof e}function L(e){return"symbol"==typeof e||D(e)&&v.call(e)==u}var Z=Q(function(e,t){return null==e?{}:_(e,p(S(t,1),T))});n.exports=Z}},"lodash.map":{
11"package.json":function(e,t,r){r.exports={name:"lodash.map",version:"4.6.0"}},
11"index.js":function(e,r,n){var i=200;var o="Expected a function";var s="__lodash_hash_undefined__";var a=1,l=2;var u=1/0,f=0x1fffffffffffff;var c="[object Arguments]",h="[object Array]",d="[object Boolean]",p="[object Date]",g="[object Error]",m="[object Function]",O="[object GeneratorFunction]",v="[object Map]",y="[object Number]",b="[object Object]",w="[object Promise]",x="[object RegExp]",S="[object Set]",_="[object String]",k="[object Symbol]",Q="[object WeakMap]";var P="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",$="[object Float64Array]",j="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",L="[object Uint32Array]";var Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,q=/^\./,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var z=/[\\^$.*+?()[\]{}|]/g;var I=/\\(\\)?/g;var N=/^\[object .+?Constructor\]$/;var V=/^(?:0|[1-9]\d*)$/;var W={};W[A]=W[$]=W[j]=W[C]=W[E]=W[M]=W[R]=W[D]=W[L]=true;W[c]=W[h]=W[P]=W[d]=W[T]=W[p]=W[g]=W[m]=W[v]=W[y]=W[b]=W[x]=W[S]=W[_]=W[Q]=false;var Y="object"==typeof t&&t&&t.Object===Object&&t;var U="object"==typeof self&&self&&self.Object===Object&&self;var G=Y||U||Function("return this")();var F="object"==typeof r&&r&&!r.nodeType&&r;var H=F&&"object"==typeof n&&n&&!n.nodeType&&n;var K=H&&H.exports===F;var J=K&&Y.process;var ee=function(){try{return J&&J.binding("util")}catch(e){}}();var et=ee&&ee.isTypedArray;function er(e,t){var r=-1,n=e?e.length:0,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}function en(e,t){var r=-1,n=e?e.length:0;while(++r<n)if(t(e[r],r,e))return true;return false}function ei(e){return function(t){return null==t?void 0:t[e]}}function eo(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function es(e){return function(t){return e(t)}}function ea(e,t){return null==e?void 0:e[t]}function el(e){var t=false;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function eu(e){var t=-1,r=Array(e.size);e.forEach(function(e,n){r[++t]=[n,e]});return r}function ef(e,t){return function(r){return e(t(r))}}function ec(e){var t=-1,r=Array(e.size);e.forEach(function(e){r[++t]=e});return r}var eh=Array.prototype,ed=Function.prototype,ep=Object.prototype;var eg=G["__core-js_shared__"];var em=function(){var e=/[^.]+$/.exec(eg&&eg.keys&&eg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var eO=ed.toString;var ev=ep.hasOwnProperty;var ey=ep.toString;var eb=RegExp("^"+eO.call(ev).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ew=G.Symbol,ex=G.Uint8Array,eS=ep.propertyIsEnumerable,e_=eh.splice;var ek=ef(Object.keys,Object);var eQ=tj(G,"DataView"),eP=tj(G,"Map"),eT=tj(G,"Promise"),eA=tj(G,"Set"),e$=tj(G,"WeakMap"),ej=tj(Object,"create");var eC=tI(eQ),eE=tI(eP),eM=tI(eT),eR=tI(eA),eD=tI(e$);var eL=ew?ew.prototype:void 0,eZ=eL?eL.valueOf:void 0,eX=eL?eL.toString:void 0;function eq(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eB(){this.__data__=ej?ej(null):{}}function ez(e){return this.has(e)&&delete this.__data__[e]}function eI(e){var t=this.__data__;if(ej){var r=t[e];return r===s?void 0:r}return ev.call(t,e)?t[e]:void 0}function eN(e){var t=this.__data__;return ej?void 0!==t[e]:ev.call(t,e)}function eV(e,t){var r=this.__data__;r[e]=ej&&void 0===t?s:t;return this}eq.prototype.clear=eB;eq.prototype["delete"]=ez;eq.prototype.get=eI;eq.prototype.has=eN;eq.prototype.set=eV;function eW(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eY(){this.__data__=[]}function eU(e){var t=this.__data__,r=ti(t,e);if(r<0)return false;var n=t.length-1;if(r==n)t.pop();else e_.call(t,r,1);return true}function eG(e){var t=this.__data__,r=ti(t,e);return r<0?void 0:t[r][1]}function eF(e){return ti(this.__data__,e)>-1}function eH(e,t){var r=this.__data__,n=ti(r,e);if(n<0)r.push([e,t]);else r[n][1]=t;return this}eW.prototype.clear=eY;eW.prototype["delete"]=eU;eW.prototype.get=eG;eW.prototype.has=eF;eW.prototype.set=eH;function eK(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function eJ(){this.__data__={hash:new eq,map:new(eP||eW),string:new eq}}function e0(e){return tA(this,e)["delete"](e)}function e1(e){return tA(this,e).get(e)}function e2(e){return tA(this,e).has(e)}function e5(e,t){tA(this,e).set(e,t);return this}eK.prototype.clear=eJ;eK.prototype["delete"]=e0;eK.prototype.get=e1;eK.prototype.has=e2;eK.prototype.set=e5;function e3(e){var t=-1,r=e?e.length:0;this.__data__=new eK;while(++t<r)this.add(e[t])}function e4(e){this.__data__.set(e,s);return this}function e8(e){return this.__data__.has(e)}e3.prototype.add=e3.prototype.push=e4;e3.prototype.has=e8;function e6(e){this.__data__=new eW(e)}function e7(){this.__data__=new eW}function e9(e){return this.__data__["delete"](e)}function te(e){return this.__data__.get(e)}function tt(e){return this.__data__.has(e)}function tr(e,t){var r=this.__data__;if(r instanceof eW){var n=r.__data__;if(!eP||n.length<i-1){n.push([e,t]);return this}r=this.__data__=new eK(n)}r.set(e,t);return this}e6.prototype.clear=e7;e6.prototype["delete"]=e9;e6.prototype.get=te;e6.prototype.has=tt;e6.prototype.set=tr;function tn(e,t){var r=tU(e)||tY(e)?eo(e.length,String):[];var n=r.length,i=!!n;for(var o in e)if((t||ev.call(e,o))&&!(i&&("length"==o||tM(o,n))))r.push(o);return r}function ti(e,t){var r=e.length;while(r--)if(tW(e[r][0],t))return r;return -1}var to=t_(ta);var ts=tk();function ta(e,t){return e&&ts(e,t,t8)}function tl(e,t){t=tR(t,e)?[t]:tS(t);var r=0,n=t.length;while(null!=e&&r<n)e=e[tz(t[r++])];return r&&r==n?e:void 0}function tu(e){return ey.call(e)}function tf(e,t){return null!=e&&t in Object(e)}function tc(e,t,r,n,i){if(e===t)return true;if(null==e||null==t||!tJ(e)&&!t0(t))return e!==e&&t!==t;return th(e,t,tc,r,n,i)}function th(e,t,r,n,i,o){var s=tU(e),a=tU(t),u=h,f=h;if(!s){u=tC(e);u=u==c?b:u}if(!a){f=tC(t);f=f==c?b:f}var d=u==b&&!el(e),p=f==b&&!el(t),g=u==f;if(g&&!d){o||(o=new e6);return s||t2(e)?tQ(e,t,r,n,i,o):tP(e,t,u,r,n,i,o)}if(!(i&l)){var m=d&&ev.call(e,"__wrapped__"),O=p&&ev.call(t,"__wrapped__");
11if(m||O){var v=m?e.value():e,y=O?t.value():t;o||(o=new e6);return r(v,y,n,i,o)}}if(!g)return false;o||(o=new e6);return tT(e,t,r,n,i,o)}function td(e,t,r,n){var i=r.length,o=i,s=!n;if(null==e)return!o;e=Object(e);while(i--){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return false}while(++i<o){u=r[i];var f=u[0],c=e[f],h=u[1];if(s&&u[2]){if(void 0===c&&!(f in e))return false}else{var d=new e6;if(n)var p=n(c,h,f,e,t,d);if(!(void 0===p?tc(h,c,n,a|l,d):p))return false}}return true}function tp(e){if(!tJ(e)||tL(e))return false;var t=tH(e)||el(e)?eb:N;return t.test(tI(e))}function tg(e){return t0(e)&&tK(e.length)&&!!W[ey.call(e)]}function tm(e){if("function"==typeof e)return e;if(null==e)return t6;if("object"==typeof e)return tU(e)?tb(e[0],e[1]):ty(e);return t7(e)}function tO(e){if(!tZ(e))return ek(e);var t=[];for(var r in Object(e))if(ev.call(e,r)&&"constructor"!=r)t.push(r);return t}function tv(e,t){var r=-1,n=tG(e)?Array(e.length):[];to(e,function(e,i,o){n[++r]=t(e,i,o)});return n}function ty(e){var t=t$(e);if(1==t.length&&t[0][2])return tq(t[0][0],t[0][1]);return function(r){return r===e||td(r,e,t)}}function tb(e,t){if(tR(e)&&tX(t))return tq(tz(e),t);return function(r){var n=t3(r,e);return void 0===n&&n===t?t4(r,e):tc(t,n,void 0,a|l)}}function tw(e){return function(t){return tl(t,e)}}function tx(e){if("string"==typeof e)return e;if(t1(e))return eX?eX.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tS(e){return tU(e)?e:tB(e)}function t_(e,t){return function(r,n){if(null==r)return r;if(!tG(r))return e(r,n);var i=r.length,o=t?i:-1,s=Object(r);while(t?o--:++o<i)if(false===n(s[o],o,s))break;return r}}function tk(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var l=s[e?a:++i];if(false===r(o[l],l,o))break}return t}}function tQ(e,t,r,n,i,o){var s=i&l,u=e.length,f=t.length;if(u!=f&&!(s&&f>u))return false;var c=o.get(e);if(c&&o.get(t))return c==t;var h=-1,d=true,p=i&a?new e3:void 0;o.set(e,t);o.set(t,e);while(++h<u){var g=e[h],m=t[h];if(n)var O=s?n(m,g,h,t,e,o):n(g,m,h,e,t,o);if(void 0!==O){if(O)continue;d=false;break}if(p){if(!en(t,function(e,t){if(!p.has(t)&&(g===e||r(g,e,n,i,o)))return p.add(t)})){d=false;break}}else if(!(g===m||r(g,m,n,i,o))){d=false;break}}o["delete"](e);o["delete"](t);return d}function tP(e,t,r,n,i,o,s){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer;t=t.buffer;case P:if(e.byteLength!=t.byteLength||!n(new ex(e),new ex(t)))break;return true;case d:case p:case y:return tW(+e,+t);case g:return e.name==t.name&&e.message==t.message;case x:case _:return e==t+"";case v:var u=eu;case S:var f=o&l;u||(u=ec);if(e.size!=t.size&&!f)break;var c=s.get(e);if(c)return c==t;o|=a;s.set(e,t);var h=tQ(u(e),u(t),n,i,o,s);s["delete"](e);return h;case k:if(eZ)return eZ.call(e)==eZ.call(t)}return false}function tT(e,t,r,n,i,o){var s=i&l,a=t8(e),u=a.length,f=t8(t),c=f.length;if(u!=c&&!s)return false;var h=u;while(h--){var d=a[h];if(!(s?d in t:ev.call(t,d)))return false}var p=o.get(e);if(p&&o.get(t))return p==t;var g=true;o.set(e,t);o.set(t,e);var m=s;while(++h<u){d=a[h];var O=e[d],v=t[d];if(n)var y=s?n(v,O,d,t,e,o):n(O,v,d,e,t,o);if(!(void 0===y?O===v||r(O,v,n,i,o):y)){g=false;break}m||(m="constructor"==d)}if(g&&!m){var b=e.constructor,w=t.constructor;if(b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w))g=false}o["delete"](e);o["delete"](t);return g}function tA(e,t){var r=e.__data__;return tD(t)?r["string"==typeof t?"string":"hash"]:r.map}function t$(e){var t=t8(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,tX(i)]}return t}function tj(e,t){var r=ea(e,t);return tp(r)?r:void 0}var tC=tu;if(eQ&&tC(new eQ(new ArrayBuffer(1)))!=T||eP&&tC(new eP)!=v||eT&&tC(eT.resolve())!=w||eA&&tC(new eA)!=S||e$&&tC(new e$)!=Q)tC=function(e){var t=ey.call(e),r=t==b?e.constructor:void 0,n=r?tI(r):void 0;if(n)switch(n){case eC:return T;case eE:return v;case eM:return w;case eR:return S;case eD:return Q}return t};function tE(e,t,r){t=tR(t,e)?[t]:tS(t);var n,i=-1,o=t.length;while(++i<o){var s=tz(t[i]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}if(n)return n;var o=e?e.length:0;return!!o&&tK(o)&&tM(s,o)&&(tU(e)||tY(e))}function tM(e,t){t=null==t?f:t;return!!t&&("number"==typeof e||V.test(e))&&e>-1&&e%1==0&&e<t}function tR(e,t){if(tU(e))return false;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||t1(e))return true;return X.test(e)||!Z.test(e)||null!=t&&e in Object(t)}function tD(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tL(e){return!!em&&em in e}function tZ(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ep;return e===r}function tX(e){return e===e&&!tJ(e)}function tq(e,t){return function(r){if(null==r)return false;return r[e]===t&&(void 0!==t||e in Object(r))}}var tB=tV(function(e){e=t5(e);var t=[];if(q.test(e))t.push("");e.replace(B,function(e,r,n,i){t.push(n?i.replace(I,"$1"):r||e)});return t});function tz(e){if("string"==typeof e||t1(e))return e;var t=e+"";return"0"==t&&1/e==-u?"-0":t}function tI(e){if(null!=e){try{return eO.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tN(e,t){var r=tU(e)?er:tv;return r(e,tm(t,3))}function tV(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);r.cache=o.set(i,s);return s};r.cache=new(tV.Cache||eK);return r}tV.Cache=eK;function tW(e,t){return e===t||e!==e&&t!==t}function tY(e){return tF(e)&&ev.call(e,"callee")&&(!eS.call(e,"callee")||ey.call(e)==c)}var tU=Array.isArray;function tG(e){return null!=e&&tK(e.length)&&!tH(e)}function tF(e){return t0(e)&&tG(e)}function tH(e){var t=tJ(e)?ey.call(e):"";return t==m||t==O}function tK(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function tJ(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function t0(e){return!!e&&"object"==typeof e}function t1(e){return"symbol"==typeof e||t0(e)&&ey.call(e)==k}var t2=et?es(et):tg;function t5(e){return null==e?"":tx(e)}function t3(e,t,r){var n=null==e?void 0:tl(e,t);return void 0===n?r:n}function t4(e,t){return null!=e&&tE(e,t,tf)}function t8(e){return tG(e)?tn(e):tO(e)}function t6(e){return e}function t7(e){return tR(e)?ei(tz(e)):tw(e)}n.exports=tN}},colors:{
11"package.json":function(e,t,r){r.exports={name:"colors",version:"1.3.3",main:"lib/index.js"}},lib:{
11"index.js":function(e,t,r){var n=e("./colors");r["exports"]=n;e("./extendStringPrototype")()},
11"colors.js":function(e,t,r,n,i){var o={};r["exports"]=o;o.themes={};var s=e("util");var a=o.styles=e("./styles");var l=Object.defineProperties;var u=new RegExp(/[\r\n]+/g);o.supportsColor=e("./system/supports-colors").supportsColor;if(void 0===o.enabled)o.enabled=false!==o.supportsColor();o.enable=function(){o.enabled=true};o.disable=function(){o.enabled=false};o.stripColors=o.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};o.stylize=function(e,t){if(!o.enabled)return e+"";return a[t].open+e+a[t].close};var f=/[|\\{}()[\]^$+*?.]/g;var c=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(f,"\\$&")};function h(e){var t=function e(){return g.apply(e,arguments)};t._styles=e;t.__proto__=p;return t}var d=function(){var e={};a.grey=a.gray;Object.keys(a).forEach(function(t){a[t].closeRe=new RegExp(c(a[t].close),"g");e[t]={get:function(){return h(this._styles.concat(t))}}});return e}();var p=l(function(){},d);function g(){var e=Array.prototype.slice.call(arguments);var t=e.map(function(e){if(void 0!==e&&e.constructor===String)return e;return s.inspect(e)}).join(" ");if(!o.enabled||!t)return t;var r=-1!=t.indexOf("\n");var n=this._styles;var i=n.length;while(i--){var l=a[n[i]];t=l.open+t.replace(l.closeRe,l.open)+l.close;if(r)t=t.replace(u,function(e){return l.close+e+l.open})}return t}o.setTheme=function(e){if("string"==typeof e)return void console.log("colors.setTheme now only accepts an object, not a string.  If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file.  The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");for(var t in e)(function(t){o[t]=function(r){if("object"==typeof e[t]){var n=r;for(var i in e[t])n=o[e[t][i]](n);return n}return o[e[t]](r)}})(t)};function m(){var e={};Object.keys(d).forEach(function(t){e[t]={get:function(){return h([t])}}});return e}var O=function(e,t){var r=t.split("");r=r.map(e);return r.join("")};o.trap=e("./custom/trap");o.zalgo=e("./custom/zalgo");o.maps={};o.maps.america=e("./maps/america")(o);o.maps.zebra=e("./maps/zebra")(o);o.maps.rainbow=e("./maps/rainbow")(o);o.maps.random=e("./maps/random")(o);for(var v in o.maps)(function(e){o[e]=function(t){return O(o.maps[e],t)}})(v);l(o,m())},
11"styles.js":function(e,t,r){var n={};r["exports"]=n;var i={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(i).forEach(function(e){var t=i[e];var r=n[e]=[];r.open="\x1b["+t[0]+"m";r.close="\x1b["+t[1]+"m"})},system:{
11"supports-colors.js":function(e,t,r){"use strict";var n=e("os");var i=e("./has-flag.js");var o=process.env;var s=void 0;if(i("no-color")||i("no-colors")||i("color=false"))s=false;else if(i("color")||i("colors")||i("color=true")||i("color=always"))s=true;if("FORCE_COLOR"in o)s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10);function a(e){if(0===e)return false;return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function l(e){if(false===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&true!==s)return 0;var t=s?1:0;if("win32"===process.platform){var r=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586)return Number(r[2])>=14931?3:2;return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in o})||"codeship"===o.CI_NAME)return 1;return t}if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM))return 1;if("COLORTERM"in o)return 1;o.TERM;return t}function u(e){var t=l(e);return a(t)}r.exports={supportsColor:u,stdout:u(process.stdout),stderr:u(process.stderr)}},
11"has-flag.js":function(e,t,r){"use strict";r.exports=function(e,t){t=t||process.argv;var r=t.indexOf("--");var n=/^-{1,2}/.test(e)?"":"--";var i=t.indexOf(n+e);return -1!==i&&(-1===r?true:i<r)}}},custom:{
11"trap.js":function(e,t,r){r["exports"]=function(e,t){var r="";e=e||"Run the trap, drop the bass";e=e.split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["\xdf","Ɓ","Ƀ","ɮ","β","฿"],c:["\xa9","Ȼ","Ͼ"],d:["\xd0","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["\xcb","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["\xd1","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["\xd8","\xf5","\xf8","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["\xae","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["\xa7","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["\xa5","Ұ","Ӌ"],z:["Ƶ","ɀ"]};e.forEach(function(e){e=e.toLowerCase();var t=n[e]||[" "];var i=Math.floor(Math.random()*t.length);if(void 0!==n[e])r+=n[e][i];else r+=e});return r}},
11"zalgo.js":function(e,t,r){r["exports"]=function(e,t){e=e||"   he is here   ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]};var n=[].concat(r.up,r.down,r.mid);function i(e){var t=Math.floor(Math.random()*e);return t}function o(e){var t=false;n.filter(function(r){t=r===e});return t}function s(e,t){var n="";var s;var a;t=t||{};t["up"]=void 0!==t["up"]?t["up"]:true;t["mid"]=void 0!==t["mid"]?t["mid"]:true;t["down"]=void 0!==t["down"]?t["down"]:true;t["size"]=void 0!==t["size"]?t["size"]:"maxi";e=e.split("");for(a in e)if(!o(a)){n+=e[a];s={up:0,down:0,mid:0};switch(t.size){case"mini":s.up=i(8);s.mid=i(2);s.down=i(8);break;case"maxi":s.up=i(16)+3;s.mid=i(4)+1;s.down=i(64)+3;break;default:s.up=i(8)+1;s.mid=i(6)/2;s.down=i(8)+1;break}var l=["up","mid","down"];for(var u in l){var f=l[u];for(var c=0;c<=s[f];c++)if(t[f])n+=r[f][i(r[f].length)]}}return n}return s(e,t)}}},maps:{
11"america.js":function(e,t,r){r["exports"]=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},
11"zebra.js":function(e,t,r){r["exports"]=function(e){return function(t,r,n){return r%2===0?t:e.inverse(t)}}},
11"rainbow.js":function(e,t,r){r["exports"]=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){if(" "===r)return r;return e[t[n++%t.length]](r)}}},
11"random.js":function(e,t,r){r["exports"]=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}}},
11"extendStringPrototype.js":function(e,t,r,n,i){var o=e("./colors");r["exports"]=function(){var e=function(e,t){String.prototype.__defineGetter__(e,t)};e("strip",function(){return o.strip(this)});e("stripColors",function(){return o.strip(this)});e("trap",function(){return o.trap(this)});e("zalgo",function(){return o.zalgo(this)});e("zebra",function(){return o.zebra(this)});e("rainbow",function(){return o.rainbow(this)});e("random",function(){return o.random(this)});e("america",function(){return o.america(this)});var t=Object.keys(o.styles);t.forEach(function(t){e(t,function(){return o.stylize(this,t)})});function r(t){var r=["__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","charAt","constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf","charCodeAt","indexOf","lastIndexOf","length","localeCompare","match","repeat","replace","search","slice","split","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim","trimLeft","trimRight"];Object.keys(t).forEach(function(n){if(-1!==r.indexOf(n))console.log("warn: ".red+("String.prototype"+n).magenta+" is probably something you don't want to override.  Ignoring style name");else if("string"==typeof t[n]){o[n]=o[t[n]];e(n,function(){return o[n](this)})}else{var i=function(e){var r=e||this;for(var i=0;i<t[n].length;i++)r=o[t[n][i]](r);return r};e(n,i);o[n]=function(e){return i(e)}}})}o.setTheme=function(e){if("string"==typeof e)return void console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file.  The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");r(e)}}}}},diff:{
11"package.json":function(e,t,r){r.exports={name:"diff",version:"4.0.1",browser:"./dist/diff.js",main:"./lib/index.js",module:"./lib/index.es6.js"}},dist:{
11"diff.js":function(e,t,r){(function(e,n){"object"==typeof t&&void 0!==r?n(t):"function"==typeof define&&define.amd?define(["exports"],n):(e=e||self,n(e.Diff={}))})(this,function(e){"use strict";function t(){}t.prototype={diff:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o=i.callback;if("function"==typeof i){o=i;i={}}this.options=i;var s=this;function a(e){if(!o)return e;setTimeout(function(){o(void 0,e)},0);return true}e=this.castInput(e);t=this.castInput(t);e=this.removeEmpty(this.tokenize(e));t=this.removeEmpty(this.tokenize(t));var l=t.length,u=e.length;var f=1;var c=l+u;var h=[{newPos:-1,components:[]}];var d=this.extractCommon(h[0],t,e,0);if(h[0].newPos+1>=l&&d+1>=u)return a([{value:this.join(t),count:t.length}]);function p(){for(var i=-1*f;i<=f;i+=2){var o=void 0;var c=h[i-1],d=h[i+1],p=(d?d.newPos:0)-i;if(c)h[i-1]=void 0;var g=c&&c.newPos+1<l,m=d&&0<=p&&p<u;if(!g&&!m){h[i]=void 0;continue}if(!g||m&&c.newPos<d.newPos){o=n(d);s.pushComponent(o.components,void 0,true)}else{o=c;o.newPos++;s.pushComponent(o.components,true,void 0)}p=s.extractCommon(o,t,e,i);if(o.newPos+1>=l&&p+1>=u)return a(r(s,o.components,t,e,s.useLongestToken));h[i]=o}f++}if(o)(function e(){setTimeout(function(){if(f>c)return o();if(!p())e()},0)})();else while(f<=c){var g=p();if(g)return g}},pushComponent:function(e,t,r){var n=e[e.length-1];if(n&&n.added===t&&n.removed===r)e[e.length-1]={count:n.count+1,added:t,removed:r};else e.push({count:1,added:t,removed:r})},extractCommon:function(e,t,r,n){var i=t.length,o=r.length,s=e.newPos,a=s-n,l=0;while(s+1<i&&a+1<o&&this.equals(t[s+1],r[a+1])){s++;a++;l++}if(l)e.components.push({count:l});e.newPos=s;return a},equals:function(e,t){if(this.options.comparator)return this.options.comparator(e,t);return e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){var t=[];for(var r=0;r<e.length;r++)if(e[r])t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function r(e,t,r,n,i){var o=0,s=t.length,a=0,l=0;for(;o<s;o++){var u=t[o];if(u.removed){u.value=e.join(n.slice(l,l+u.count));l+=u.count;if(o&&t[o-1].added){var f=t[o-1];t[o-1]=t[o];t[o]=f}}else{if(!u.added&&i){var c=r.slice(a,a+u.count);c=c.map(function(e,t){var r=n[l+t];return r.length>e.length?r:e});u.value=e.join(c)}else u.value=e.join(r.slice(a,a+u.count));a+=u.count;if(!u.added)l+=u.count}}var h=t[s-1];if(s>1&&"string"==typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)){t[s-2].value+=h.value;t.pop()}return t}function n(e){return{newPos:e.newPos,components:e.components.slice(0)}}var i=new t;function o(e,t,r){return i.diff(e,t,r)}function s(e,t){if("function"==typeof e)t.callback=e;else if(e){for(var r in e)if(e.hasOwnProperty(r))t[r]=e[r]}return t}var a=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/;var l=/\S/;var u=new t;u.equals=function(e,t){if(this.options.ignoreCase){e=e.toLowerCase();t=t.toLowerCase()}return e===t||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(t)};u.tokenize=function(e){var t=e.split(/(\s+|[()[\]{}'"]|\b)/);for(var r=0;r<t.length-1;r++)if(!t[r+1]&&t[r+2]&&a.test(t[r])&&a.test(t[r+2])){t[r]+=t[r+2];t.splice(r+1,2);r--}return t};function f(e,t,r){r=s(r,{ignoreWhitespace:true});return u.diff(e,t,r)}function c(e,t,r){return u.diff(e,t,r)}var h=new t;h.tokenize=function(e){var t=[],r=e.split(/(\n|\r\n)/);if(!r[r.length-1])r.pop();for(var n=0;n<r.length;n++){var i=r[n];if(n%2&&!this.options.newlineIsToken)t[t.length-1]+=i;else{if(this.options.ignoreWhitespace)i=i.trim();t.push(i)}}return t};function d(e,t,r){return h.diff(e,t,r)}function p(e,t,r){var n=s(r,{ignoreWhitespace:true});return h.diff(e,t,n)}var g=new t;g.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};function m(e,t,r){return g.diff(e,t,r)}var O=new t;O.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function v(e,t,r){return O.diff(e,t,r)}function y(e){y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};return y(e)}function b(e){return w(e)||x(e)||S()}function w(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function x(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var _=Object.prototype.toString;var k=new t;
11k.useLongestToken=true;k.tokenize=h.tokenize;k.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=void 0===n?function(e,t){return void 0===t?r:t}:n;return"string"==typeof e?e:JSON.stringify(P(e,null,null,i),i,"  ")};k.equals=function(e,r){return t.prototype.equals.call(k,e.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"))};function Q(e,t,r){return k.diff(e,t,r)}function P(e,t,r,n,i){t=t||[];r=r||[];if(n)e=n(i,e);var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return r[o];var s;if("[object Array]"===_.call(e)){t.push(e);s=new Array(e.length);r.push(s);for(o=0;o<e.length;o+=1)s[o]=P(e[o],t,r,n,i);t.pop();r.pop();return s}if(e&&e.toJSON)e=e.toJSON();if("object"===y(e)&&null!==e){t.push(e);s={};r.push(s);var a=[],l;for(l in e)if(e.hasOwnProperty(l))a.push(l);a.sort();for(o=0;o<a.length;o+=1){l=a[o];s[l]=P(e[l],t,r,n,l)}t.pop();r.pop()}else s=e;return s}var T=new t;T.tokenize=function(e){return e.slice()};T.join=T.removeEmpty=function(e){return e};function A(e,t,r){return T.diff(e,t,r)}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function s(){var e={};i.push(e);while(o<r.length){var n=r[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(n))break;var s=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(n);if(s)e.index=s[1];o++}a(e);a(e);e.hunks=[];while(o<r.length){var u=r[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(u))break;if(/^@@/.test(u))e.hunks.push(l());else if(u&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(u));else o++}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(r[o]);if(t){var n="---"===t[1]?"old":"new";var i=t[2].split("	",2);var s=i[0].replace(/\\\\/g,"\\");if(/^".*"$/.test(s))s=s.substr(1,s.length-2);e[n+"FileName"]=s;e[n+"Header"]=(i[1]||"").trim();o++}}function l(){var e=o,i=r[o++],s=i.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);var a={oldStart:+s[1],oldLines:+s[2]||1,newStart:+s[3],newLines:+s[4]||1,lines:[],linedelimiters:[]};var l=0,u=0;for(;o<r.length;o++){if(0===r[o].indexOf("--- ")&&o+2<r.length&&0===r[o+1].indexOf("+++ ")&&0===r[o+2].indexOf("@@"))break;var f=0==r[o].length&&o!=r.length-1?" ":r[o][0];if("+"===f||"-"===f||" "===f||"\\"===f){a.lines.push(r[o]);a.linedelimiters.push(n[o]||"\n");if("+"===f)l++;else if("-"===f)u++;else if(" "===f){l++;u++}}else break}if(!l&&1===a.newLines)a.newLines=0;if(!u&&1===a.oldLines)a.oldLines=0;if(t.strict){if(l!==a.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(u!==a.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return a}while(o<r.length)s();return i}function j(e,t,r){var n=true,i=false,o=false,s=1;return function a(){if(n&&!o){if(i)s++;else n=false;if(e+s<=r)return s;o=true}if(!i){if(!o)n=true;if(t<=e-s)return-s++;i=true;return a()}}}function C(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t)t=$(t);if(Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=t.hunks,s=r.compareLine||function(e,t,r,n){return t===n},a=0,l=r.fuzzFactor||0,u=0,f=0,c,h;function d(e,t){for(var r=0;r<e.lines.length;r++){var i=e.lines[r],o=i.length>0?i[0]:" ",u=i.length>0?i.substr(1):i;if(" "===o||"-"===o){if(!s(t+1,n[t],o,u)){a++;if(a>l)return false}t++}}return true}for(var p=0;p<o.length;p++){var g=o[p],m=n.length-g.oldLines,O=0,v=f+g.oldStart-1;var y=j(v,u,m);for(;void 0!==O;O=y())if(d(g,v+O)){g.offset=f+=O;break}if(void 0===O)return false;u=g.offset+g.oldStart+g.oldLines}var b=0;for(var w=0;w<o.length;w++){var x=o[w],S=x.oldStart+x.offset+b-1;b+=x.newLines-x.oldLines;if(S<0)S=0;for(var _=0;_<x.lines.length;_++){var k=x.lines[_],Q=k.length>0?k[0]:" ",P=k.length>0?k.substr(1):k,T=x.linedelimiters[_];if(" "===Q)S++;else if("-"===Q){n.splice(S,1);i.splice(S,1)}else if("+"===Q){n.splice(S,0,P);i.splice(S,0,T);S++}else if("\\"===Q){var A=x.lines[_-1]?x.lines[_-1][0]:null;if("+"===A)c=true;else if("-"===A)h=true}}}if(c)while(!n[n.length-1]){n.pop();i.pop()}else if(h){n.push("");i.push("\n")}for(var C=0;C<n.length-1;C++)n[C]=n[C]+i[C];return n.join("")}function E(e,t){if("string"==typeof e)e=$(e);var r=0;function n(){var i=e[r++];if(!i)return t.complete();t.loadFile(i,function(e,r){if(e)return t.complete(e);var o=C(r,i,t);t.patched(i,o,function(e){if(e)return t.complete(e);n()})})}n()}
11function M(e,t,r,n,i,o,s){if(!s)s={};if(void 0===s.context)s.context=4;var a=d(r,n,s);a.push({value:"",lines:[]});function l(e){return e.map(function(e){return" "+e})}var u=[];var f=0,c=0,h=[],p=1,g=1;var m=function(e){var t=a[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");t.lines=i;if(t.added||t.removed){var o;if(!f){var d=a[e-1];f=p;c=g;if(d){h=s.context>0?l(d.lines.slice(-s.context)):[];f-=h.length;c-=h.length}}(o=h).push.apply(o,b(i.map(function(e){return(t.added?"+":"-")+e})));if(t.added)g+=i.length;else p+=i.length}else{if(f)if(i.length<=2*s.context&&e<a.length-2){var m;(m=h).push.apply(m,b(l(i)))}else{var O;var v=Math.min(i.length,s.context);(O=h).push.apply(O,b(l(i.slice(0,v))));var y={oldStart:f,oldLines:p-f+v,newStart:c,newLines:g-c+v,lines:h};if(e>=a.length-2&&i.length<=s.context){var w=/\n$/.test(r);var x=/\n$/.test(n);var S=0==i.length&&h.length>y.oldLines;if(!w&&S)h.splice(y.oldLines,0,"\\ No newline at end of file");if(!w&&!S||!x)h.push("\\ No newline at end of file")}u.push(y);f=0;c=0;h=[]}p+=i.length;g+=i.length}};for(var O=0;O<a.length;O++)m(O);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:u}}function R(e,t,r,n,i,o,s){var a=M(e,t,r,n,i,o,s);var l=[];if(e==t)l.push("Index: "+e);l.push("===================================================================");l.push("--- "+a.oldFileName+(void 0===a.oldHeader?"":"	"+a.oldHeader));l.push("+++ "+a.newFileName+(void 0===a.newHeader?"":"	"+a.newHeader));for(var u=0;u<a.hunks.length;u++){var f=a.hunks[u];l.push("@@ -"+f.oldStart+","+f.oldLines+" +"+f.newStart+","+f.newLines+" @@");l.push.apply(l,f.lines)}return l.join("\n")+"\n"}function D(e,t,r,n,i,o){return R(e,e,t,r,n,i,o)}function L(e,t){if(e.length!==t.length)return false;return Z(e,t)}function Z(e,t){if(t.length>e.length)return false;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return false;return true}function X(e){var t=er(e.lines),r=t.oldLines,n=t.newLines;if(void 0!==r)e.oldLines=r;else delete e.oldLines;if(void 0!==n)e.newLines=n;else delete e.newLines}function q(e,t,r){e=B(e,r);t=B(t,r);var n={};if(e.index||t.index)n.index=e.index||t.index;if(e.newFileName||t.newFileName)if(z(e))if(z(t)){n.oldFileName=I(n,e.oldFileName,t.oldFileName);n.newFileName=I(n,e.newFileName,t.newFileName);n.oldHeader=I(n,e.oldHeader,t.oldHeader);n.newHeader=I(n,e.newHeader,t.newHeader)}else{n.oldFileName=e.oldFileName;n.newFileName=e.newFileName;n.oldHeader=e.oldHeader;n.newHeader=e.newHeader}else{n.oldFileName=t.oldFileName||e.oldFileName;n.newFileName=t.newFileName||e.newFileName;n.oldHeader=t.oldHeader||e.oldHeader;n.newHeader=t.newHeader||e.newHeader}n.hunks=[];var i=0,o=0,s=0,a=0;while(i<e.hunks.length||o<t.hunks.length){var l=e.hunks[i]||{oldStart:1/0},u=t.hunks[o]||{oldStart:1/0};if(N(l,u)){n.hunks.push(V(l,s));i++;a+=l.newLines-l.oldLines}else if(N(u,l)){n.hunks.push(V(u,a));o++;s+=u.newLines-u.oldLines}else{var f={oldStart:Math.min(l.oldStart,u.oldStart),oldLines:0,newStart:Math.min(l.newStart+s,u.oldStart+a),newLines:0,lines:[]};W(f,l.oldStart,l.lines,u.oldStart,u.lines);o++;i++;n.hunks.push(f)}}return n}function B(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return $(e)[0];
11if(!t)throw new Error("Must provide a base reference or pass in a patch");return M(void 0,void 0,t,e)}return e}function z(e){return e.newFileName&&e.newFileName!==e.oldFileName}function I(e,t,r){if(t===r)return t;e.conflict=true;return{mine:t,theirs:r}}function N(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function V(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function W(e,t,r,n,i){var o={offset:t,lines:r,index:0},s={offset:n,lines:i,index:0};F(e,o,s);F(e,s,o);while(o.index<o.lines.length&&s.index<s.lines.length){var a=o.lines[o.index],l=s.lines[s.index];if(("-"===a[0]||"+"===a[0])&&("-"===l[0]||"+"===l[0]))Y(e,o,s);else if("+"===a[0]&&" "===l[0]){var u;(u=e.lines).push.apply(u,b(K(o)))}else if("+"===l[0]&&" "===a[0]){var f;(f=e.lines).push.apply(f,b(K(s)))}else if("-"===a[0]&&" "===l[0])U(e,o,s);else if("-"===l[0]&&" "===a[0])U(e,s,o,true);else if(a===l){e.lines.push(a);o.index++;s.index++}else G(e,K(o),K(s))}H(e,o);H(e,s);X(e)}function Y(e,t,r){var n=K(t),i=K(r);if(ee(n)&&ee(i)){if(Z(n,i)&&et(r,n,n.length-i.length)){var o;(o=e.lines).push.apply(o,b(n));return}else if(Z(i,n)&&et(t,i,i.length-n.length)){var s;(s=e.lines).push.apply(s,b(i));return}}else if(L(n,i)){var a;(a=e.lines).push.apply(a,b(n));return}G(e,n,i)}function U(e,t,r,n){var i=K(t),o=J(r,i);if(o.merged){var s;(s=e.lines).push.apply(s,b(o.merged))}else G(e,n?o:i,n?i:o)}function G(e,t,r){e.conflict=true;e.lines.push({conflict:true,mine:t,theirs:r})}function F(e,t,r){while(t.offset<r.offset&&t.index<t.lines.length){var n=t.lines[t.index++];e.lines.push(n);t.offset++}}function H(e,t){while(t.index<t.lines.length){var r=t.lines[t.index++];e.lines.push(r)}}function K(e){var t=[],r=e.lines[e.index][0];while(e.index<e.lines.length){var n=e.lines[e.index];if("-"===r&&"+"===n[0])r="+";if(r===n[0]){t.push(n);e.index++}else break}return t}function J(e,t){var r=[],n=[],i=0,o=false,s=false;while(i<t.length&&e.index<e.lines.length){var a=e.lines[e.index],l=t[i];if("+"===l[0])break;o=o||" "!==a[0];n.push(l);i++;if("+"===a[0]){s=true;while("+"===a[0]){r.push(a);a=e.lines[++e.index]}}if(l.substr(1)===a.substr(1)){r.push(a);e.index++}else s=true}if("+"===(t[i]||"")[0]&&o)s=true;if(s)return r;while(i<t.length)n.push(t[i++]);return{merged:n,changes:r}}function ee(e){return e.reduce(function(e,t){return e&&"-"===t[0]},true)}function et(e,t,r){for(var n=0;n<r;n++){var i=t[t.length-r+n].substr(1);if(e.lines[e.index+n]!==" "+i)return false}e.index+=r;return true}function er(e){var t=0;var r=0;e.forEach(function(e){if("string"!=typeof e){var n=er(e.mine);var i=er(e.theirs);if(void 0!==t)if(n.oldLines===i.oldLines)t+=n.oldLines;else t=void 0;if(void 0!==r)if(n.newLines===i.newLines)r+=n.newLines;else r=void 0}else{if(void 0!==r&&("+"===e[0]||" "===e[0]))r++;if(void 0!==t&&("-"===e[0]||" "===e[0]))t++}});return{oldLines:t,newLines:r}}function en(e){var t=[],r,n;for(var i=0;i<e.length;i++){r=e[i];n=r.added?1:r.removed?-1:0;t.push([n,r.value])}return t}function ei(e){var t=[];for(var r=0;r<e.length;r++){var n=e[r];if(n.added)t.push("<ins>");else if(n.removed)t.push("<del>");t.push(eo(n.value));if(n.added)t.push("</ins>");else if(n.removed)t.push("</del>")}return t.join("")}function eo(e){var t=e;t=t.replace(/&/g,"&amp;");t=t.replace(/</g,"&lt;");t=t.replace(/>/g,"&gt;");t=t.replace(/"/g,"&quot;");return t}e.Diff=t;e.diffChars=o;e.diffWords=f;e.diffWordsWithSpace=c;e.diffLines=d;e.diffTrimmedLines=p;e.diffSentences=m;e.diffCss=v;e.diffJson=Q;e.diffArrays=A;e.structuredPatch=M;e.createTwoFilesPatch=R;e.createPatch=D;e.applyPatch=C;e.applyPatches=E;e.parsePatch=$;e.merge=q;e.convertChangesToDMP=en;e.convertChangesToXML=ei;e.canonicalize=P;Object.defineProperty(e,"__esModule",{value:true})})}}}}},{extensions:[".js",".json",".html",".ts",".less"]});return{export:function(){return{meteorInstall:n,meteorBabelHelpers:i}},require:o,eagerModulePaths:["/node_modules/meteor/modules/client.js","/node_modules/meteor/modules/legacy.js"],mainModulePath:"/node_modules/meteor/modules/client.js"}});
12
13Package["core-runtime"].queue("react-fast-refresh",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var r;var t=e({node_modules:{meteor:{"react-fast-refresh":{
13"client.js":function(e,r,t){var n=__meteor_runtime_config__&&__meteor_runtime_config__.reactFastRefreshEnabled;var o=!!t.hot;var i;function s(r){if(!o)return;i=i||e("./client-runtime.js");i(r)}if(o&&n){var f=false;t.hot.onRequire({before:function(e){if(f)return;f=true;s(e);f=false}});window.___INIT_METEOR_FAST_REFRESH=function(){}}else window.___INIT_METEOR_FAST_REFRESH=s},
13"client-runtime.js":function(e,r,t){var n=e("react-refresh/runtime");var o=null;function i(){if(!o)o=setTimeout(function(){o=null;n.performReactRefresh()},0)}function s(e,r){n.register(r,e+" %exports%");if(null==r||"object"!=typeof r)return;for(var t in r){var o=Object.getOwnPropertyDescriptor(r,t);if(!o||!o.get){var i=r[t];var s=e+" %exports% "+t;n.register(i,s)}}}function f(e){if(n.isLikelyComponentType(e))return true;if(null==e||"object"!=typeof e)return false;if(e instanceof Element)return false;var r=false;var t=true;for(var o in e){r=true;var i=Object.getOwnPropertyDescriptor(e,o);if(i&&i.get)return false;try{if(!n.isLikelyComponentType(e[o]))t=false}catch(e){if("SecurityError"===e.name)return false;throw e}}return r&&t}n.injectIntoGlobalHook(window);window.$RefreshReg$=function(){};window.$RefreshSig$=function(){return function(e){return e}};var u=new WeakMap;t.hot.onRequire({after:function(e){var r=u.get(e);var t=r&&r.pop();if(!t)return;window.$RefreshReg$=t.prevRefreshReg;window.$RefreshSig$=t.prevRefreshSig;if(f(e.exports)){s(e.id,e.exports);e.hot.accept();i()}}});t.exports=function(e){if(e.loaded)return;var r=u.get(e);if(void 0===r){r=[];u.set(e,r)}var t=window.$RefreshReg$;var o=window.$RefreshSig$;window.RefreshRuntime=n;window.$RefreshReg$=function(r,t){var n=e.id+" "+t;RefreshRuntime.register(r,n)};window.$RefreshSig$=RefreshRuntime.createSignatureFunctionForTransform;r.push({prevRefreshReg:t,prevRefreshSig:o})}},node_modules:{"react-refresh":{
13"runtime.js":function(e,r,t){"use strict";t.exports=e("./cjs/react-refresh-runtime.production.min.js")},cjs:{
13"react-refresh-runtime.production.min.js":function(){"use strict";throw Error("React Refresh runtime should not be included in the production bundle.")},
13"react-refresh-runtime.development.js":function(e,r,t){}}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{ReactFastRefresh:r}},require:t,eagerModulePaths:["/node_modules/meteor/react-fast-refresh/client.js"]}});
14
15Package["core-runtime"].queue("ecmascript",function(){return{}});
16
17Package["core-runtime"].queue("ecmascript-runtime",function(){return{}});
18
19Package["core-runtime"].queue("babel-runtime",function(){return{}});
20
21Package["core-runtime"].queue("modern-browsers",function(){return{}});
22
23Package["core-runtime"].queue("promise",function(){var e=Package.meteor.Meteor;var n=Package.meteor.global;Package.meteor.meteorEnv;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var t;var o=r({node_modules:{meteor:{promise:{
23"modern.js":function(){t=n.Promise},
23"legacy.js":function(e){t="function"==typeof n.Promise?n.Promise:n.Promise=e("promise/lib/es6-extensions")},
23"client.js":function(e){e("./extensions.js")},
23"extensions.js":function(){var n=t.prototype;var r=Object.prototype.hasOwnProperty;n.done=function(n,r){var t=this;if(arguments.length>0)t=this.then.apply(this,arguments);t.then(null,function(n){e._setImmediate(function(){throw n})})};if(!r.call(n,"finally"))n["finally"]=function(e){var n=false,r;return this.then(function(n){r=n;return e()},function(t){n=true;r=t;return e()}).then(function(){if(n)throw r;return r})}},node_modules:{promise:{lib:{
23"es6-extensions.js":function(e,n,r){"use strict";var t=e("./core.js");r.exports=t;var o=c(true);var i=c(false);var u=c(null);var s=c(void 0);var f=c(0);var a=c("");function c(e){var n=new t(t._0);n._V=1;n._W=e;return n}t.resolve=function(e){if(e instanceof t)return e;if(null===e)return u;if(void 0===e)return s;if(true===e)return o;if(false===e)return i;if(0===e)return f;if(""===e)return a;if("object"==typeof e||"function"==typeof e)try{var n=e.then;if("function"==typeof n)return new t(n.bind(e))}catch(e){return new t(function(n,r){r(e)})}return c(e)};var l=function(e){if("function"==typeof Array.from){l=Array.from;return Array.from(e)}l=function(e){return Array.prototype.slice.call(e)};return Array.prototype.slice.call(e)};t.all=function(e){var n=l(e);return new t(function(e,r){if(0===n.length)return e([]);var o=n.length;function i(u,s){if(s&&("object"==typeof s||"function"==typeof s))if(s instanceof t&&s.then===t.prototype.then){while(3===s._V)s=s._W;if(1===s._V)return i(u,s._W);if(2===s._V)r(s._W);s.then(function(e){i(u,e)},r);return}else{var f=s.then;if("function"==typeof f){var a=new t(f.bind(s));a.then(function(e){i(u,e)},r);return}}n[u]=s;if(0===--o)e(n)}for(var u=0;u<n.length;u++)i(u,n[u])})};t.reject=function(e){return new t(function(n,r){r(e)})};t.race=function(e){return new t(function(n,r){l(e).forEach(function(e){t.resolve(e).then(n,r)})})};t.prototype["catch"]=function(e){return this.then(null,e)}},
23"core.js":function(e,n,r){"use strict";var t=e("asap/raw");function o(){}var i=null;var u={};function s(e){try{return e.then}catch(e){i=e;return u}}function f(e,n){try{return e(n)}catch(e){i=e;return u}}function a(e,n,r){try{e(n,r)}catch(e){i=e;return u}}r.exports=c;function c(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise constructor's argument is not a function");this._U=0;this._V=0;this._W=null;this._X=null;if(e===o)return;w(e,this)}c._Y=null;c._Z=null;c._0=o;c.prototype.then=function(e,n){if(this.constructor!==c)return l(this,e,n);var r=new c(o);p(this,new d(e,n,r));return r};function l(e,n,r){return new e.constructor(function(t,i){var u=new c(o);u.then(t,i);p(e,new d(n,r,u))})}function p(e,n){while(3===e._V)e=e._W;if(c._Y)c._Y(e);if(0===e._V){if(0===e._U){e._U=1;e._X=n;return}if(1===e._U){e._U=2;e._X=[e._X,n];return}e._X.push(n);return}m(e,n)}function m(e,n){t(function(){var r=1===e._V?n.onFulfilled:n.onRejected;if(null===r){if(1===e._V)h(n.promise,e._W);else v(n.promise,e._W);return}var t=f(r,e._W);if(t===u)v(n.promise,i);else h(n.promise,t)})}function h(e,n){if(n===e)return v(e,new TypeError("A promise cannot be resolved with itself."));if(n&&("object"==typeof n||"function"==typeof n)){var r=s(n);if(r===u)return v(e,i);if(r===e.then&&n instanceof c){e._V=3;e._W=n;_(e);return}if("function"==typeof r)return void w(r.bind(n),e)}e._V=1;e._W=n;_(e)}function v(e,n){e._V=2;e._W=n;if(c._Z)c._Z(e,n);_(e)}function _(e){if(1===e._U){p(e,e._X);e._X=null}if(2===e._U){for(var n=0;n<e._X.length;n++)p(e,e._X[n]);e._X=null}}function d(e,n,r){this.onFulfilled="function"==typeof e?e:null;this.onRejected="function"==typeof n?n:null;this.promise=r}function w(e,n){var r=false;var t=a(e,function(e){if(r)return;r=true;h(n,e)},function(e){if(r)return;r=true;v(n,e)});if(!r&&t===u){r=true;v(n,i)}}}}},asap:{
23"package.json":function(e,n,r){r.exports={name:"asap",version:"2.0.6",browser:{"./asap":"./browser-asap.js","./asap.js":"./browser-asap.js","./raw":"./browser-raw.js","./raw.js":"./browser-raw.js","./test/domain.js":"./test/browser-domain.js"},main:"./asap.js"}},"raw.js":"/node_modules/meteor/promise/node_modules/asap/browser-raw.js",
23"browser-raw.js":function(e,r,t){"use strict";t.exports=o;function o(e){if(!i.length)u();i[i.length]=e}var i=[];var u;var s=0;var f=1024;function a(){while(s<i.length){var e=s;s+=1;i[e].call();if(s>f){for(var n=0,r=i.length-s;n<r;n++)i[n]=i[n+s];i.length-=s;s=0}}i.length=0;s=0}var c=void 0!==n?n:self;var l=c.MutationObserver||c.WebKitMutationObserver;u="function"==typeof l?p(a):m(a);o.requestFlush=u;function p(e){var n=1;var r=new l(e);var t=document.createTextNode("");r.observe(t,{characterData:true});return function(){n=-n;t.data=n}}function m(e){return function(){var n=setTimeout(t,0);var r=setInterval(t,50);function t(){clearTimeout(n);clearInterval(r);e()}}}o.makeRequestCallFromTimer=m}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{Promise:t}},require:o,eagerModulePaths:["/node_modules/meteor/promise/modern.js","/node_modules/meteor/promise/legacy.js","/node_modules/meteor/promise/client.js"],mainModulePath:"/node_modules/meteor/promise/client.js"}});
24
25Package["core-runtime"].queue("fetch",function(){Package.meteor.Meteor;var e=Package.meteor.global;Package.meteor.meteorEnv;var t=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var r=Package.promise.Promise;var o;var n=t({node_modules:{meteor:{fetch:{
25"legacy.js":function(t,r){t("whatwg-fetch");var o=e.fetch.bind(e);function n(e,t){var r=Package["accounts-express"];if(r&&r.handleFetch)return r.handleFetch(e,t,o);return o(e,t)}r.fetch=n;r.Headers=e.Headers;r.Request=e.Request;r.Response=e.Response},node_modules:{"whatwg-fetch":{
25"package.json":function(e,t,r){r.exports={name:"whatwg-fetch",version:"3.6.17",main:"./dist/fetch.umd.js",module:"./fetch.js"}},dist:{
25"fetch.umd.js":function(t,o,n){(function(e,t){"object"==typeof o&&void 0!==n?t(o):"function"==typeof define&&define.amd?define(["exports"],t):t(e.WHATWGFetch={})})(this,function(t){"use strict";var o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==e&&e||{};var n={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function i(e){return e&&DataView.prototype.isPrototypeOf(e)}if(n.arrayBuffer){var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];var a=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1}}function f(e){if("string"!=typeof e)e=String(e);if(/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){if("string"!=typeof e)e=String(e);return e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};if(n.iterable)t[Symbol.iterator]=function(){return t};return t}function c(e){this.map={};if(e instanceof c)e.forEach(function(e,t){this.append(t,e)},this);else if(Array.isArray(e))e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this);else if(e)Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}c.prototype.append=function(e,t){e=f(e);t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t};c.prototype["delete"]=function(e){delete this.map[f(e)]};c.prototype.get=function(e){e=f(e);return this.has(e)?this.map[e]:null};c.prototype.has=function(e){return this.map.hasOwnProperty(f(e))};c.prototype.set=function(e,t){this.map[f(e)]=u(t)};c.prototype.forEach=function(e,t){for(var r in this.map)if(this.map.hasOwnProperty(r))e.call(t,this.map[r],r,this)};c.prototype.keys=function(){var e=[];this.forEach(function(t,r){e.push(r)});return h(e)};c.prototype.values=function(){var e=[];this.forEach(function(t){e.push(t)});return h(e)};c.prototype.entries=function(){var e=[];this.forEach(function(t,r){e.push([r,t])});return h(e)};if(n.iterable)c.prototype[Symbol.iterator]=c.prototype.entries;function d(e){if(e._noBody)return;if(e.bodyUsed)return r.reject(new TypeError("Already read"));e.bodyUsed=true}function l(e){return new r(function(t,r){e.onload=function(){t(e.result)};e.onerror=function(){r(e.error)}})}function y(e){var t=new FileReader;var r=l(t);t.readAsArrayBuffer(e);return r}function p(e){var t=new FileReader;var r=l(t);var o=/charset=([A-Za-z0-9_-]+)/.exec(e.type);var n=o?o[1]:"utf-8";t.readAsText(e,n);return r}function b(e){var t=new Uint8Array(e);var r=new Array(t.length);for(var o=0;o<t.length;o++)r[o]=String.fromCharCode(t[o]);return r.join("")}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}function w(){this.bodyUsed=false;this._initBody=function(e){this.bodyUsed=this.bodyUsed;this._bodyInit=e;if(e)if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n.arrayBuffer&&n.blob&&i(e)){this._bodyArrayBuffer=m(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e)))this._bodyArrayBuffer=m(e);else this._bodyText=e=Object.prototype.toString.call(e);else{this._noBody=true;this._bodyText=""}if(!this.headers.get("content-type")){if("string"==typeof e)this.headers.set("content-type","text/plain;charset=UTF-8");else if(this._bodyBlob&&this._bodyBlob.type)this.headers.set("content-type",this._bodyBlob.type);else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")}};if(n.blob)this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return r.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return r.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return r.resolve(new Blob([this._bodyText]));throw new Error("could not read FormData body as blob")};this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);if(e)return e;if(ArrayBuffer.isView(this._bodyArrayBuffer))return r.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength));return r.resolve(this._bodyArrayBuffer)}if(n.blob)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")};this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return p(this._bodyBlob);if(this._bodyArrayBuffer)return r.resolve(b(this._bodyArrayBuffer));if(!this._bodyFormData)return r.resolve(this._bodyText);throw new Error("could not read FormData body as text")};if(n.formData)this.formData=function(){return this.text().then(_)};this.json=function(){return this.text().then(JSON.parse)};return this}var v=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function g(e){var t=e.toUpperCase();return v.indexOf(t)>-1?t:e}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object c
25onstructor cannot be called as a function.');t=t||{};var r=t.body;if(e instanceof E){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url;this.credentials=e.credentials;if(!t.headers)this.headers=new c(e.headers);this.method=e.method;this.mode=e.mode;this.signal=e.signal;if(!r&&null!=e._bodyInit){r=e._bodyInit;e.bodyUsed=true}}else this.url=String(e);this.credentials=t.credentials||this.credentials||"same-origin";if(t.headers||!this.headers)this.headers=new c(t.headers);this.method=g(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.signal=t.signal||this.signal||function(){if("AbortController"in o){var e=new AbortController;return e.signal}}();this.referrer=null;if(("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r);if("GET"===this.method||"HEAD"===this.method){if("no-store"===t.cache||"no-cache"===t.cache){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function _(e){var t=new FormData;e.trim().split("&").forEach(function(e){if(e){var r=e.split("=");var o=r.shift().replace(/\+/g," ");var n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(n))}});return t}function A(e){var t=new c;var r=e.replace(/\r?\n[\t ]+/g," ");r.split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":");var o=r.shift().trim();if(o){var n=r.join(":").trim();try{t.append(o,n)}catch(e){console.warn("Response "+e.message)}}});return t}w.call(E.prototype);function T(e,t){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(!t)t={};this.type="default";this.status=void 0===t.status?200:t.status;if(this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300;this.statusText=void 0===t.statusText?"":""+t.statusText;this.headers=new c(t.headers);this.url=t.url||"";this._initBody(e)}w.call(T.prototype);T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})};T.error=function(){var e=new T(null,{status:200,statusText:""});e.status=0;e.type="error";return e};var B=[301,302,303,307,308];T.redirect=function(e,t){if(-1===B.indexOf(t))throw new RangeError("Invalid status code");return new T(null,{status:t,headers:{location:e}})};t.DOMException=o.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e;this.name=t;var r=Error(e);this.stack=r.stack};t.DOMException.prototype=Object.create(Error.prototype);t.DOMException.prototype.constructor=t.DOMException}function x(e,i){return new r(function(r,s){var a=new E(e,i);if(a.signal&&a.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var h=new XMLHttpRequest;function d(){h.abort()}h.onload=function(){var e={status:h.status,statusText:h.statusText,headers:A(h.getAllResponseHeaders()||"")};e.url="responseURL"in h?h.responseURL:e.headers.get("X-Request-URL");var t="response"in h?h.response:h.responseText;setTimeout(function(){r(new T(t,e))},0)};h.onerror=function(){setTimeout(function(){s(new TypeError("Network request failed"))},0)};h.ontimeout=function(){setTimeout(function(){s(new TypeError("Network request failed"))},0)};h.onabort=function(){setTimeout(function(){s(new t.DOMException("Aborted","AbortError"))},0)};function l(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}h.open(a.method,l(a.url),true);if("include"===a.credentials)h.withCredentials=true;else if("omit"===a.credentials)h.withCredentials=false;if("responseType"in h){if(n.blob)h.responseType="blob";else if(n.arrayBuffer)h.responseType="arraybuffer"}if(i&&"object"==typeof i.headers&&!(i.headers instanceof c||o.Headers&&i.headers instanceof o.Headers)){var y=[];
25Object.getOwnPropertyNames(i.headers).forEach(function(e){y.push(f(e));h.setRequestHeader(e,u(i.headers[e]))});a.headers.forEach(function(e,t){if(-1===y.indexOf(t))h.setRequestHeader(t,e)})}else a.headers.forEach(function(e,t){h.setRequestHeader(t,e)});if(a.signal){a.signal.addEventListener("abort",d);h.onreadystatechange=function(){if(4===h.readyState)a.signal.removeEventListener("abort",d)}}h.send(void 0===a._bodyInit?null:a._bodyInit)})}x.polyfill=true;if(!o.fetch){o.fetch=x;o.Headers=c;o.Request=E;o.Response=T}t.Headers=c;t.Request=E;t.Response=T;t.fetch=x;Object.defineProperty(t,"__esModule",{value:true})})}}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{fetch:o}},require:n,eagerModulePaths:["/node_modules/meteor/fetch/legacy.js"],mainModulePath:"/node_modules/meteor/fetch/legacy.js"}});
26
27Package["core-runtime"].queue("dynamic-import",function(){var e=Package.meteor.Meteor;var n=Package.meteor.global;Package.meteor.meteorEnv;var t=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var r=Package.promise.Promise;var o=Package.fetch.fetch;var i=t({node_modules:{meteor:{"dynamic-import":{
27"client.js":function(t,r,i){var c=i.constructor;var a=t("./cache.js");var u=t("meteor/modules").meteorInstall;var s=t("./dynamic-versions.js");n.indexedDB;var f=e.settings&&e.settings.public&&e.settings.public.packages&&e.settings.public.packages["dynamic-import"]||{};c.prototype.dynamicImport=function(e){var n=this;return n.prefetch(e).then(function(){return j(n,e)})};u.fetch=function(e){var n=Object.create(null);var t=Object.create(null);var r;function o(t,r){y(n,t,d(t,r,e[t].options))}function i(e){y(r=r||Object.create(null),e,1)}Object.keys(e).forEach(function(e){var n=s.get(e);if(n)t[e]=n;else i(e)});return a.checkMany(t).then(function(e){Object.keys(e).forEach(function(n){var t=e[n];if(t)o(n,t);else i(n)});return r&&h(r).then(function(e){var n=Object.create(null);var t=l(e);Object.keys(t).forEach(function(e){var r=t[e];o(e,r);var i=s.get(e);if(i)n[e]={version:i,source:r}});a.setMany(n)})}).then(function(){return n})};function l(e){var n=[""];var t=Object.create(null);function r(e){if(e&&"object"==typeof e)Object.keys(e).forEach(function(t){n.push(t);r(e[t]);n.pop()});else if("string"==typeof e)t[n.join("/")]=e}r(e);return t}function d(e,n,t){return function(){return(t&&t.eval||eval)("("+n+")\n//# sourceURL="+e).apply(this,arguments)}}var v=null;r.setSecretKey=function(e){v=e};var m=t("./common.js").fetchURL;function p(){try{return window.self!==window.top}catch(e){return true}}function h(n){var t=m;var r=f.useLocationOrigin;var i=f.disableLocationOriginIframe;t=r&&location&&!(i&&p())?location.origin.concat(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX||"",t):e.absoluteUrl(t);if(v)t+="key="+v;return o(t,{method:"POST",body:JSON.stringify(n)}).then(function(e){if(!e.ok)throw e;return e.json()})}function y(e,n,t){var r=n.split("/");var o=r.length-1;r.forEach(function(n,r){if(n)e=e[n]=e[n]||(r<o?Object.create(null):t)})}function j(e,n){var t;e.link(n,{"*":function(e){t=e}});Object.defineProperty(t,"__esModule",{value:true,enumerable:false});return t}},
27"cache.js":function(n,t,o){var i;var c=e.isClient&&!e.isCordova&&e.isProduction;function a(){if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}function u(e){i=i||new r(function(e,n){var t=a();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(s).forEach(function(e){n.createObjectStore(e,s[e])})};r.onerror=f(n,"indexedDB.open");r.onsuccess=function(n){e(n.target.result)}});return i.then(e,function(n){return e(null)})}var s={sourcesByVersion:{keyPath:"version"}};function f(e,n){return function(t){e(new Error("IndexedDB failure in "+n+" "+JSON.stringify(t.target)));return true}}var l=0;t.checkMany=function(e){var n=Object.keys(e);var t=Object.create(null);n.forEach(function(e){t[e]=null});if(!c)return r.resolve(t);return u(function(o){if(!o)return t;var i=o.transaction(["sourcesByVersion"],"readonly");var c=i.objectStore("sourcesByVersion");++l;function a(){--l;return t}return r.all(n.map(function(n){return new r(function(r,o){var i=e[n];if(i){var a=c.get(i);a.onerror=f(o,"sourcesByVersion.get");a.onsuccess=function(e){var o=e.target.result;if(o)t[n]=o.source;r()}}else r()})})).then(a,a)})};var d=Object.create(null);t.setMany=function(e){if(c){Object.assign(d,e);if(!v.timer)v.timer=setTimeout(v,100)}};function v(){if(l>0)return v.timer=setTimeout(v,100);v.timer=null;var e=d;d=Object.create(null);return u(function(n){if(!n)return;var t=n.transaction(["sourcesByVersion"],"readwrite");var o=t.objectStore("sourcesByVersion");return r.all(Object.keys(e).map(function(n){var t=e[n];return new r(function(e,n){var r=o.put({version:t.version,source:t.source});r.onerror=f(n,"sourcesByVersion.put");r.onsuccess=e})}))})}},
27"common.js":function(e,n){n.fetchURL="/__meteor__/dynamic-import/fetch"},
27"dynamic-versions.js":function(e,t,o){var i={};var c="/node_modules/meteor/";t.get=function(e){var n=i;var t=null;e.split("/").some(function(e){if(e)n=n[e]||n[e.replace(":","_")];if(!n)return true;if("string"==typeof n){t=n;return true}});return t};function a(e){var n=[""];var t=[];function r(e){if(e&&"object"==typeof e)Object.keys(e).forEach(function(t){n.push(t);r(e[t]);n.pop()});else if("string"==typeof e)t.push(n.join("/"))}r(e);return t}function u(e){if(!Package.appcache)return;function n(e,t){r.all(e.splice(0,t).map(function(e){return new r(function(n,t){o.prefetch(e).then(n).catch(function(r){if(0===e.indexOf(c))o.prefetch(c+e.replace(c,"").replace("_",":")).then(n).catch(t);else t(r)})})})).then(function(){if(e.length>0)setTimeout(function(){n(e,t)},0)})}n(a(i),50)}if(n.addEventListener)n.addEventListener("load",u,false);else if(n.attachEvent)n.attachEvent("onload",u)}}}}},{extensions:[".js",".json"]});return{require:i,eagerModulePaths:["/node_modules/meteor/dynamic-import/client.js"],mainModulePath:"/node_modules/meteor/dynamic-import/client.js"}});
28
29Package["core-runtime"].queue("es5-shim",function(){Package.meteor.Meteor;var t=Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var r,n,i,o;var a=e({node_modules:{meteor:{"es5-shim":{
29"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")},
29"console.js":function(){var t=Object.prototype.hasOwnProperty;function e(t){var e=console[t];if(e&&"object"==typeof e)console[t]=function(){return Function.prototype.apply.call(e,console,arguments)}}if("object"==typeof console&&"object"==typeof console.log){for(var r in console)if(t.call(console,r))e(r)}},
29"export_globals.js":function(){if(t.Date!==r)t.Date=r;if(t.parseInt!==n)t.parseInt=n;if(t.parseFloat!==i)t.parseFloat=i;var e=String.prototype;if(e.replace!==o)e.replace=o},
29"import_globals.js":function(){r=t.Date;n=t.parseInt;i=t.parseFloat;o=String.prototype.replace},node_modules:{"es5-shim":{
29"es5-shim.js":function(t,e,o){(function(t,r){"use strict";if("function"==typeof define&&define.amd)define(r);else if("object"==typeof e)o.exports=r();else t.returnExports=r()})(this,function(){var t=Array;var e=t.prototype;var o=Object;var a=o.prototype;var f=Function;var c=f.prototype;var u=String;var l=u.prototype;var s=Number;var v=s.prototype;var p=e.slice;var h=e.splice;var d=e.push;var y=e.unshift;var b=e.concat;var g=e.join;var w=c.call;var j=c.apply;var m=Math.max;var O=Math.min;var T=a.toString;var x="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;var E;var S=Function.prototype.toString,_=/^\s*class /,P=function(t){try{var e=S.call(t);var r=e.replace(/\/\/.*\n/g,"");var n=r.replace(/\/\*[.\s\S]*\*\//g,"");var i=n.replace(/\n/mg," ").replace(/ {2}/g," ");return _.test(i)}catch(t){return false}},M=function(t){try{if(P(t))return false;S.call(t);return true}catch(t){return false}},I="[object Function]",D="[object GeneratorFunction]",E=function(t){if(!t)return false;if("function"!=typeof t&&"object"!=typeof t)return false;if(x)return M(t);if(P(t))return false;var e=T.call(t);return e===I||e===D};var F;var k=RegExp.prototype.exec,N=function(t){try{k.call(t);return true}catch(t){return false}},U="[object RegExp]";F=function(t){if("object"!=typeof t)return false;return x?N(t):T.call(t)===U};var $;var C=String.prototype.valueOf,A=function(t){try{C.call(t);return true}catch(t){return false}},R="[object String]";$=function(t){if("string"==typeof t)return true;if("object"!=typeof t)return false;return x?A(t):T.call(t)===R};var z=o.defineProperty&&function(){try{var t={};o.defineProperty(t,"x",{enumerable:false,value:t});for(var e in t)return false;return t.x===t}catch(t){return false}}();var J=function(t){var e;e=z?function(t,e,r,n){if(!n&&e in t)return;o.defineProperty(t,e,{configurable:true,enumerable:false,writable:true,value:r})}:function(t,e,r,n){if(!n&&e in t)return;t[e]=r};return function(r,n,i){for(var o in n)if(t.call(n,o))e(r,o,n[o],i)}}(a.hasOwnProperty);var G=function(t){var e=typeof t;return null===t||"object"!==e&&"function"!==e};var Z=s.isNaN||function(t){return t!==t};var Y={ToInteger:function(t){var e=+t;if(Z(e))e=0;else if(0!==e&&e!==1/0&&e!==-1/0)e=(e>0||-1)*Math.floor(Math.abs(e));return e},ToPrimitive:function(t){var e,r,n;if(G(t))return t;r=t.valueOf;if(E(r)){e=r.call(t);if(G(e))return e}n=t.toString;if(E(n)){e=n.call(t);if(G(e))return e}throw new TypeError},ToObject:function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return o(t)},ToUint32:function(t){return t>>>0}};var W=function(){};J(c,{bind:function(t){var e=this;if(!E(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);var r=p.call(arguments,1);var n;var i=function(){if(!(this instanceof n))return j.call(e,t,b.call(r,p.call(arguments)));var i=j.call(e,this,b.call(r,p.call(arguments)));if(o(i)===i)return i;return this};var a=m(0,e.length-r.length);var c=[];for(var u=0;u<a;u++)d.call(c,"$"+u);n=f("binder","return function ("+g.call(c,",")+"){ return binder.apply(this, arguments); }")(i);if(e.prototype){W.prototype=e.prototype;n.prototype=new W;W.prototype=null}return n}});var B=w.bind(a.hasOwnProperty);var H=w.bind(a.toString);var X=w.bind(p);var q=j.bind(p);if("object"==typeof document&&document&&document.documentElement)try{X(document.documentElement.childNodes)}catch(t){var L=X;var K=q;X=function(t){var e=[];var r=t.length;while(r-- >0)e[r]=t[r];return K(e,L(arguments,1))};q=function(t,e){return K(X(t),e)}}var Q=w.bind(l.slice);var V=w.bind(l.split);var tt=w.bind(l.indexOf);var te=w.bind(d);var tr=w.bind(a.propertyIsEnumerable);var tn=w.bind(e.sort);var ti=t.isArray||function(t){return"[object Array]"===H(t)};var to=1!==[].unshift(0);J(e,{unshift:function(){y.apply(this,arguments);return this.length}},to);J(t,{isArray:ti});var ta=o("a");var tf="a"!==ta[0]||!(0 in ta);var tc=function(t){var e=true;var r=true;var n=false;if(t)try{t.call("foo",function(t,r,n){if("object"!=typeof n)e=false});t.call([1],function(){"use strict";r="string"==typeof this},"x")}catch(t){n=true}return!!t&&!n&&e&&r};
29J(e,{forEach:function(t){var e=Y.ToObject(this);var r=tf&&$(this)?V(this,""):e;var n=-1;var i=Y.ToUint32(r.length);var o;if(arguments.length>1)o=arguments[1];if(!E(t))throw new TypeError("Array.prototype.forEach callback must be a function");while(++n<i)if(n in r)if(void 0===o)t(r[n],n,e);else t.call(o,r[n],n,e)}},!tc(e.forEach));J(e,{map:function(e){var r=Y.ToObject(this);var n=tf&&$(this)?V(this,""):r;var i=Y.ToUint32(n.length);var o=t(i);var a;if(arguments.length>1)a=arguments[1];if(!E(e))throw new TypeError("Array.prototype.map callback must be a function");for(var f=0;f<i;f++)if(f in n)if(void 0===a)o[f]=e(n[f],f,r);else o[f]=e.call(a,n[f],f,r);return o}},!tc(e.map));J(e,{filter:function(t){var e=Y.ToObject(this);var r=tf&&$(this)?V(this,""):e;var n=Y.ToUint32(r.length);var i=[];var o;var a;if(arguments.length>1)a=arguments[1];if(!E(t))throw new TypeError("Array.prototype.filter callback must be a function");for(var f=0;f<n;f++)if(f in r){o=r[f];if(void 0===a?t(o,f,e):t.call(a,o,f,e))te(i,o)}return i}},!tc(e.filter));J(e,{every:function(t){var e=Y.ToObject(this);var r=tf&&$(this)?V(this,""):e;var n=Y.ToUint32(r.length);var i;if(arguments.length>1)i=arguments[1];if(!E(t))throw new TypeError("Array.prototype.every callback must be a function");for(var o=0;o<n;o++)if(o in r&&!(void 0===i?t(r[o],o,e):t.call(i,r[o],o,e)))return false;return true}},!tc(e.every));J(e,{some:function(t){var e=Y.ToObject(this);var r=tf&&$(this)?V(this,""):e;var n=Y.ToUint32(r.length);var i;if(arguments.length>1)i=arguments[1];if(!E(t))throw new TypeError("Array.prototype.some callback must be a function");for(var o=0;o<n;o++)if(o in r&&(void 0===i?t(r[o],o,e):t.call(i,r[o],o,e)))return true;return false}},!tc(e.some));var tu=false;if(e.reduce)tu="object"==typeof e.reduce.call("es5",function(t,e,r,n){return n});J(e,{reduce:function(t){var e=Y.ToObject(this);var r=tf&&$(this)?V(this,""):e;var n=Y.ToUint32(r.length);if(!E(t))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===n&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var i=0;var o;if(arguments.length>=2)o=arguments[1];else do{if(i in r){o=r[i++];break}if(++i>=n)throw new TypeError("reduce of empty array with no initial value")}while(true);for(;i<n;i++)if(i in r)o=t(o,r[i],i,e);return o}},!tu);var tl=false;if(e.reduceRight)tl="object"==typeof e.reduceRight.call("es5",function(t,e,r,n){return n});J(e,{reduceRight:function(t){var e=Y.ToObject(this);var r=tf&&$(this)?V(this,""):e;var n=Y.ToUint32(r.length);if(!E(t))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===n&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i;var o=n-1;if(arguments.length>=2)i=arguments[1];else do{if(o in r){i=r[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}while(true);if(o<0)return i;do if(o in r)i=t(i,r[o],o,e);while(o--);return i}},!tl);var ts=e.indexOf&&-1!==[0,1].indexOf(1,2);J(e,{indexOf:function(t){var e=tf&&$(this)?V(this,""):Y.ToObject(this);var r=Y.ToUint32(e.length);if(0===r)return -1;var n=0;if(arguments.length>1)n=Y.ToInteger(arguments[1]);n=n>=0?n:m(0,r+n);for(;n<r;n++)if(n in e&&e[n]===t)return n;return -1}},ts);var tv=e.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);J(e,{lastIndexOf:function(t){var e=tf&&$(this)?V(this,""):Y.ToObject(this);var r=Y.ToUint32(e.length);if(0===r)return -1;var n=r-1;if(arguments.length>1)n=O(n,Y.ToInteger(arguments[1]));n=n>=0?n:r-Math.abs(n);for(;n>=0;n--)if(n in e&&t===e[n])return n;return -1}},tv);var tp=function(){var t=[1,2];var e=t.splice();return 2===t.length&&ti(e)&&0===e.length}();J(e,{splice:function(t,e){if(0===arguments.length)return[];return h.apply(this,arguments)}},!tp);var th=function(){var t={};e.splice.call(t,0,0,1);return 1===t.length}();J(e,{splice:function(t,e){if(0===arguments.length)return[];var r=arguments;this.length=m(Y.ToInteger(this.length),0);if(arguments.length>0&&"number"!=typeof e){r=X(arguments);if(r.length<2)te(r,this.length-t);else r[1]=Y.ToInteger(e)}return h.apply(this,r)}},!th);var td=function(){var e=new t(1e5);e[8]="x";e.splice(1,1);return 7===e.indexOf("x")}();var ty=function(){var t=256;var e=[];e[t]="a";e.splice(t+1,0,"b");return"a"===e[t]}();J(e,{splice:function(t,e){var r=Y.ToObject(this);var n=[];var i=Y.ToUint32(r.length);var o=Y.ToInteger(t);var a=o<0?m(i+o,0):O(o,i);var f=O(m(Y.ToInteger(e),0),i-a);var c=0;var l;while(c<f){l=u(a+c);if(B(r,l))n[c]=r[l];c+=1}var s=X(arguments,2);var v=s.length;var p;if(v<f){c=a;var h=i-f;while(c<h){l=u(c+f);p=u(c+v);if(B(r,l))r[p]=r[l];else delete r[p];c+=1}c=i;var d=i-f+v;while(c>d){delete r[c-1];c-=1}}else if(v>f){c=i-f;while(c>a){l=u(c+f-1);p=u(c+v-1);if(B(r,l))r[p]=r[l];else delete r[p];c-=1}}c=a;for(var y=0;y<s.length;++y){r[c]=s[y];c+=1}r.length=i-f+v;return n}},!td||!ty);var tb=e.join;var tg;try{tg="1,2,3"!==Array.prototype.join.call("123",",")}catch(t){tg=true}if(tg)J(e,{join:function(t){var e=void 0===t?",":t;return tb.call($(this)?V(this,""):this,e)}},tg);var tw=false;if(tw)J(e,{join:function(t){var e=void 0===t?",":t;return tb.call(this,e)}},tw);var tj=function(t){var e=Y.ToObject(this);var r=Y.ToUint32(e.length);var n=0;while(n<arguments.length){e[r+n]=arguments[n];n+=1}e.length=r+n;return r+n};var tm=function(){var t={};var e=Array.prototype.push.call(t,void 0);return 1!==e||1!==t.length||void 0!==t[0]||!B(t,0)}();J(e,{push:function(t){if(ti(this))return d.apply(this,arguments);return tj.apply(this,arguments)}},tm);var tO=function(){var t=[];var e=t.push(void 0);return 1!==e||1!==t.length||void 0!==t[0]||!B(t,0)}();J(e,{push:tj},tO);J(e,{slice:function(t,e){var r=$(this)?V(this,""):this;return q(r,arguments)}},tf);var tT=function(){try{[1,2].sort(null)}catch(t){try{[1,2].sort({})}catch(t){return false}}return true}();var tx=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var tE=function(){try{[1,2].sort(void 0);return true}catch(t){}return false}();J(e,{sort:function(t){if(void 0===t)return tn(this);if(!E(t))throw new TypeError("Array.prototype.sort callback must be a function");return tn(this,t)}},tT||!tE||!tx);var tS=!tr({toString:null},"toString");var t_=tr(function(){},"prototype");var tP=!B("x","0");var tM=function(t){var e=t.constructor;return e&&e.prototype===t};var tI={$window:true,$console:true,$parent:true,$self:true,$frame:true,$frames:true,$frameElement:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$external:true,$width:true,$height:true,$to
29p:true,$localStorage:true};var tD=function(){if("undefined"==typeof window)return false;for(var t in window)try{if(!tI["$"+t]&&B(window,t)&&null!==window[t]&&"object"==typeof window[t])tM(window[t])}catch(t){return true}return false}();var tF=function(t){if("undefined"==typeof window||!tD)return tM(t);try{return tM(t)}catch(t){return false}};var tk=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var tN=tk.length;var tU=function(t){return"[object Arguments]"===H(t)};var t$=function(t){return null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&!ti(t)&&E(t.callee)};var tC=tU(arguments)?tU:t$;J(o,{keys:function(t){var e=E(t);var r=tC(t);var n=null!==t&&"object"==typeof t;var i=n&&$(t);if(!n&&!e&&!r)throw new TypeError("Object.keys called on a non-object");var o=[];var a=t_&&e;if(i&&tP||r)for(var f=0;f<t.length;++f)te(o,u(f));if(!r){for(var c in t)if(!(a&&"prototype"===c)&&B(t,c))te(o,u(c))}if(tS){var l=tF(t);for(var s=0;s<tN;s++){var v=tk[s];if(!(l&&"constructor"===v)&&B(t,v))te(o,v)}}return o}});var tA=o.keys&&function(){return 2===o.keys(arguments).length}(1,2);var tR=o.keys&&function(){var t=o.keys(arguments);return 1!==arguments.length||1!==t.length||1!==t[0]}(1);var tz=o.keys;J(o,{keys:function(t){if(tC(t))return tz(X(t));return tz(t)}},!tA||tR);var tJ=0!==new r(-0xc782b5b342b24).getUTCMonth();var tG=new r(-0x55d318d56a724);var tZ=new r(14496624e5);var tY="Mon, 01 Jan -45875 11:59:59 GMT"!==tG.toUTCString();var tW;var tB;var tH=tG.getTimezoneOffset();if(tH<-720){tW="Tue Jan 02 -45875"!==tG.toDateString();tB=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(tZ))}else{tW="Mon Jan 01 -45875"!==tG.toDateString();tB=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(tZ))}var tX=w.bind(r.prototype.getFullYear);var tq=w.bind(r.prototype.getMonth);var tL=w.bind(r.prototype.getDate);var tK=w.bind(r.prototype.getUTCFullYear);var tQ=w.bind(r.prototype.getUTCMonth);var tV=w.bind(r.prototype.getUTCDate);var t0=w.bind(r.prototype.getUTCDay);var t1=w.bind(r.prototype.getUTCHours);var t2=w.bind(r.prototype.getUTCMinutes);var t3=w.bind(r.prototype.getUTCSeconds);var t5=w.bind(r.prototype.getUTCMilliseconds);var t9=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var t6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var t4=function(t,e){return tL(new r(e,t,0))};J(r.prototype,{getFullYear:function(){if(!this||!(this instanceof r))throw new TypeError("this is not a Date object.");var t=tX(this);if(t<0&&tq(this)>11)return t+1;return t},getMonth:function(){if(!this||!(this instanceof r))throw new TypeError("this is not a Date object.");var t=tX(this);var e=tq(this);if(t<0&&e>11)return 0;return e},getDate:function(){if(!this||!(this instanceof r))throw new TypeError("this is not a Date object.");var t=tX(this);var e=tq(this);var n=tL(this);if(t<0&&e>11){if(12===e)return n;var i=t4(0,t+1);return i-n+1}return n},getUTCFullYear:function(){if(!this||!(this instanceof r))throw new TypeError("this is not a Date object.");var t=tK(this);if(t<0&&tQ(this)>11)return t+1;return t},getUTCMonth:function(){if(!this||!(this instanceof r))throw new TypeError("this is not a Date object.");var t=tK(this);var e=tQ(this);if(t<0&&e>11)return 0;return e},getUTCDate:function(){if(!this||!(this instanceof r))throw new TypeError("this is not a Date object.");var t=tK(this);var e=tQ(this);var n=tV(this);if(t<0&&e>11){if(12===e)return n;var i=t4(0,t+1);return i-n+1}return n}},tJ);J(r.prototype,{toUTCString:function(){if(!this||!(this instanceof r))throw new TypeError("this is not a Date object.");var t=t0(this);var e=tV(this);var n=tQ(this);var i=tK(this);var o=t1(this);var a=t2(this);var f=t3(this);return t9[t]+", "+(e<10?"0"+e:e)+" "+t6[n]+" "+i+" "+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)+":"+(f<10?"0"+f:f)+" GMT"}},tJ||tY);J(r.prototype,{toDateString:function(){if(!this||!(this instanceof r))throw new TypeError("this is not a Date object.");var t=this.getDay();var e=this.getDate();var n=this.getMonth();var i=this.getFullYear();return t9[t]+" "+t6[n]+" "+(e<10?"0"+e:e)+" "+i}},tJ||tW);if(tJ||tB){r.prototype.toString=function(){if(!this||!(this instanceof r))throw new TypeError("this is not a Date object.");var t=this.getDay();var e=this.getDate();var n=this.getMonth();var i=this.getFullYear();var o=this.getHours();var a=this.getMinutes();var f=this.getSeconds();var c=this.getTimezoneOffset();var u=Math.floor(Math.abs(c)/60);var l=Math.floor(Math.abs(c)%60);return t9[t]+" "+t6[n]+" "+(e<10?"0"+e:e)+" "+i+" "+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)+":"+(f<10?"0"+f:f)+" GMT"+(c>0?"-":"+")+(u<10?"0"+u:u)+(l<10?"0"+l:l)};if(z)o.defineProperty(r.prototype,"toString",{configurable:true,enumerable:false,writable:true})}var t7=-621987552e5;var t8="-000001";var et=r.prototype.toISOString&&-1===new r(t7).toISOString().indexOf(t8);var ee=r.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new r(-1).toISOString();var er=w.bind(r.prototype.getTime);J(r.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(er(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var t=tK(this);var e=tQ(this);t+=Math.floor(e/12);e=(e%12+12)%12;var r=[e+1,tV(this),t1(this),t2(this),t3(this)];t=(t<0?"-":t>9999?"+":"")+Q("00000"+Math.abs(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<r.length;++n)r[n]=Q("00"+r[n],-2);return t+"-"+X(r,0,2).join("-")+"T"+X(r,2).join(":")+"."+Q("000"+t5(this),-3)+"Z"}},et||ee);var en=function(){try{return r.prototype.toJSON&&null===new r(NaN).toJSON()&&-1!==new r(t7).toJSON().indexOf(t8)&&r.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!en)r.prototype.toJSON=function(t){var e=o(this);var r=Y.ToPrimitive(e);
29if("number"==typeof r&&!isFinite(r))return null;var n=e.toISOString;if(!E(n))throw new TypeError("toISOString property is not callable");return n.call(e)};var ei=1e15===r.parse("+033658-09-27T01:46:40.000Z");var eo=!isNaN(r.parse("2012-04-04T24:00:00.500Z"))||!isNaN(r.parse("2012-11-31T23:59:59.000Z"))||!isNaN(r.parse("2012-12-31T23:59:60.000Z"));var ea=isNaN(r.parse("2000-01-01T00:00:00.000Z"));if(ea||eo||!ei){var ef=Math.pow(2,31)-1;var ec=Z(new r(1970,0,1,0,0,0,ef+1).getTime());r=function(t){var e=function(r,n,i,o,a,f,c){var l=arguments.length;var s;if(this instanceof t){var v=f;var p=c;if(ec&&l>=7&&c>ef){var h=Math.floor(c/ef)*ef;var d=Math.floor(h/1e3);v+=d;p-=1e3*d}s=1===l&&u(r)===r?new t(e.parse(r)):l>=7?new t(r,n,i,o,a,v,p):l>=6?new t(r,n,i,o,a,v):l>=5?new t(r,n,i,o,a):l>=4?new t(r,n,i,o):l>=3?new t(r,n,i):l>=2?new t(r,n):l>=1?new t(r instanceof t?+r:r):new t}else s=t.apply(this,arguments);if(!G(s))J(s,{constructor:e},true);return s};var r=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$");var n=[0,31,59,90,120,151,181,212,243,273,304,334,365];var i=function(t,e){var r=e>1?1:0;return n[e]+Math.floor((t-1969+r)/4)-Math.floor((t-1901+r)/100)+Math.floor((t-1601+r)/400)+365*(t-1970)};var o=function(e){var r=0;var n=e;if(ec&&n>ef){var i=Math.floor(n/ef)*ef;var o=Math.floor(i/1e3);r+=o;n-=1e3*o}return s(new t(1970,0,1,0,0,r,n))};for(var a in t)if(B(t,a))e[a]=t[a];J(e,{now:t.now,UTC:t.UTC},true);e.prototype=t.prototype;J(e.prototype,{constructor:e},true);var f=function(e){var n=r.exec(e);if(n){var a=s(n[1]),f=s(n[2]||1)-1,c=s(n[3]||1)-1,u=s(n[4]||0),l=s(n[5]||0),v=s(n[6]||0),p=Math.floor(1e3*s(n[7]||0)),h=Boolean(n[4]&&!n[8]),d="-"===n[9]?1:-1,y=s(n[10]||0),b=s(n[11]||0),g;var w=l>0||v>0||p>0;if(u<(w?24:25)&&l<60&&v<60&&p<1e3&&f>-1&&f<12&&y<24&&b<60&&c>-1&&c<i(a,f+1)-i(a,f)){g=((i(a,f)+c)*24+u+y*d)*60;g=((g+l+b*d)*60+v)*1e3+p;if(h)g=o(g);if(-864e13<=g&&g<=864e13)return g}return NaN}return t.parse.apply(this,arguments)};J(e,{parse:f});return e}(r)}if(!r.now)r.now=function(){return new r().getTime()};var eu=v.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0));var el={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(t,e){var r=-1;var n=e;while(++r<el.size){n+=t*el.data[r];el.data[r]=n%el.base;n=Math.floor(n/el.base)}},divide:function(t){var e=el.size;var r=0;while(--e>=0){r+=el.data[e];el.data[e]=Math.floor(r/t);r=r%t*el.base}},numToString:function(){var t=el.size;var e="";while(--t>=0)if(""!==e||0===t||0!==el.data[t]){var r=u(el.data[t]);if(""===e)e=r;else e+=Q("0000000",0,7-r.length)+r}return e},pow:function t(e,r,n){return 0===r?n:r%2===1?t(e,r-1,n*e):t(e*e,r/2,n)},log:function(t){var e=0;var r=t;while(r>=4096){e+=12;r/=4096}while(r>=2){e+=1;r/=2}return e}};var es=function(t){var e,r,n,i,o,a,f,c;e=s(t);e=Z(e)?0:Math.floor(e);if(e<0||e>20)throw new RangeError("Number.toFixed called with invalid number of decimals");r=s(this);if(Z(r))return"NaN";if(r<=-1e21||r>=1e21)return u(r);n="";if(r<0){n="-";r=-r}i="0";if(r>1e-21){o=el.log(r*el.pow(2,69,1))-69;a=o<0?r*el.pow(2,-o,1):r/el.pow(2,o,1);a*=0x10000000000000;o=52-o;if(o>0){el.multiply(0,a);f=e;while(f>=7){el.multiply(1e7,0);f-=7}el.multiply(el.pow(10,f,1),0);f=o-1;while(f>=23){el.divide(8388608);f-=23}el.divide(1<<f);el.multiply(1,1);el.divide(2);i=el.numToString()}else{el.multiply(0,a);el.multiply(1<<-o,0);i=el.numToString()+Q("0.00000000000000000000",2,2+e)}}if(e>0){c=i.length;i=c<=e?n+Q("0.0000000000000000000",0,e-c+2)+i:n+Q(i,0,c-e)+"."+Q(i,c-e)}else i=n+i;return i};J(v,{toFixed:es},eu);var ev=function(){try{return"1"===1..toPrecision(void 0)}catch(t){return true}}();var ep=v.toPrecision;J(v,{toPrecision:function(t){return void 0===t?ep.call(this):ep.call(this,t)}},ev);if(2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1)(function(){var t=void 0===/()??/.exec("")[1];var e=Math.pow(2,32)-1;l.split=function(r,n){var i=String(this);if(void 0===r&&0===n)return[];if(!F(r))return V(this,r,n);var o=[];var a=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),f=0,c,u,l,s;var v=new RegExp(r.source,a+"g");if(!t)c=new RegExp("^"+v.source+"$(?!\\s)",a);var p=void 0===n?e:Y.ToUint32(n);u=v.exec(i);while(u){l=u.index+u[0].length;if(l>f){te(o,Q(i,f,u.index));if(!t&&u.length>1)u[0].replace(c,function(){for(var t=1;t<arguments.length-2;t++)if(void 0===arguments[t])u[t]=void 0});if(u.length>1&&u.index<i.length)d.apply(o,X(u,1));s=u[0].length;f=l;if(o.length>=p)break}if(v.lastIndex===u.index)v.lastIndex++;u=v.exec(i)}if(f===i.length){if(s||!v.test(""))te(o,"")}else te(o,Q(i,f));return o.length>p?X(o,0,p):o}})();else if("0".split(void 0,0).length)l.split=function(t,e){if(void 0===t&&0===e)return[];return V(this,t,e)};var eh=l.replace;var ed=function(){var t=[];"x".replace(/x(.)?/g,function(e,r){te(t,r)});return 1===t.length&&void 0===t[0]}();if(!ed)l.replace=function(t,e){var r=E(e);var n=F(t)&&/\)[*?]/.test(t.source);if(!r||!n)return eh.call(this,t,e);var i=function(r){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var o=t.exec(r)||[];t.lastIndex=i;te(o,arguments[n-2],arguments[n-1]);return e.apply(this,o)};return eh.call(this,t,i)};var ey=l.substr;var eb="".substr&&"b"!=="0b".substr(-1);J(l,{substr:function(t,e){var r=t;
29if(t<0)r=m(this.length+t,0);return ey.call(this,r,e)}},eb);var eg="	\n\v\f\r \xa0 ᠎              \u2028\u2029\uFEFF";var ew="​";var ej="["+eg+"]";var em=new RegExp("^"+ej+ej+"*");var eO=new RegExp(ej+ej+"*$");var eT=l.trim&&(eg.trim()||!ew.trim());J(l,{trim:function(){if(void 0===this||this===null)throw new TypeError("can't convert "+this+" to object");return u(this).replace(em,"").replace(eO,"")}},eT);var ex=w.bind(String.prototype.trim);var eE=l.lastIndexOf&&-1!=="abcあい".lastIndexOf("あい",2);J(l,{lastIndexOf:function(t){if(void 0===this||this===null)throw new TypeError("can't convert "+this+" to object");var e=u(this);var r=u(t);var n=arguments.length>1?s(arguments[1]):NaN;var i=Z(n)?1/0:Y.ToInteger(n);var o=O(m(i,0),e.length);var a=r.length;var f=o+a;while(f>0){f=m(0,f-a);var c=tt(Q(e,f,o+a),r);if(-1!==c)return f+c}return -1}},eE);var eS=l.lastIndexOf;J(l,{lastIndexOf:function(t){return eS.apply(this,arguments)}},1!==l.lastIndexOf.length);if(8!==n(eg+"08")||22!==n(eg+"0x16"))n=function(t){var e=/^[-+]?0[xX]/;return function(r,n){var i=ex(String(r));var o=s(n)||(e.test(i)?16:10);return t(i,o)}}(n);if(1/i("-0")!==-1/0)i=function(t){return function(e){var r=ex(String(e));var n=t(r);return 0===n&&"-"===Q(r,0,1)?-0:n}}(i);if("RangeError: test"!==String(new RangeError("test"))){var e_=function(){if(void 0===this||this===null)throw new TypeError("can't convert "+this+" to object");var t=this.name;if(void 0===t)t="Error";else if("string"!=typeof t)t=u(t);var e=this.message;if(void 0===e)e="";else if("string"!=typeof e)e=u(e);if(!t)return e;if(!e)return t;return t+": "+e};Error.prototype.toString=e_}if(z){var eP=function(t,e){if(tr(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);if(r.configurable){r.enumerable=false;Object.defineProperty(t,e,r)}}};eP(Error.prototype,"message");if(""!==Error.prototype.message)Error.prototype.message="";eP(Error.prototype,"name")}if("/a/gim"!==String(/a/mig)){var eM=function(){var t="/"+this.source+"/";if(this.global)t+="g";if(this.ignoreCase)t+="i";if(this.multiline)t+="m";return t};RegExp.prototype.toString=eM}})},
29"es5-sham.js":function(t,e,r){(function(t,n){"use strict";if("function"==typeof define&&define.amd)define(n);else if("object"==typeof e)r.exports=n();else t.returnExports=n()})(this,function(){var t=Function.call;var e=Object.prototype;var r=t.bind(e.hasOwnProperty);var n=t.bind(e.propertyIsEnumerable);var i=t.bind(e.toString);var o;var a;var f;var c;var u=r(e,"__defineGetter__");if(u){o=t.bind(e.__defineGetter__);a=t.bind(e.__defineSetter__);f=t.bind(e.__lookupGetter__);c=t.bind(e.__lookupSetter__)}var l=function(t){return null==t||"object"!=typeof t&&"function"!=typeof t};if(!Object.getPrototypeOf)Object.getPrototypeOf=function(t){var r=t.__proto__;if(r||null===r)return r;if("[object Function]"===i(t.constructor))return t.constructor.prototype;if(t instanceof Object)return e;return null};var s=function(t){try{t.sentinel=0;return 0===Object.getOwnPropertyDescriptor(t,"sentinel").value}catch(t){return false}};if(Object.defineProperty){var v=s({});var p="undefined"==typeof document||s(document.createElement("div"));if(!p||!v)var h=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||h){var d="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(t,i){if(l(t))throw new TypeError(d+t);if(h)try{return h.call(Object,t,i)}catch(t){}var o;if(!r(t,i))return o;o={enumerable:n(t,i),configurable:true};if(u){var a=t.__proto__;var s=t!==e;if(s)t.__proto__=e;var v=f(t,i);var p=c(t,i);if(s)t.__proto__=a;if(v||p){if(v)o.get=v;if(p)o.set=p;return o}}o.value=t[i];o.writable=true;return o}}if(!Object.getOwnPropertyNames)Object.getOwnPropertyNames=function(t){return Object.keys(t)};if(!Object.create){var y;var b=false;var g=function(){if(!document.domain)return false;try{return new ActiveXObject("htmlfile"),true}catch(t){return false}};var w=function(){var t;var e;e=new ActiveXObject("htmlfile");var r="script";e.write("<"+r+"></"+r+">");e.close();t=e.parentWindow.Object.prototype;e=null;return t};var j=function(){var t=document.createElement("iframe");var e=document.body||document.documentElement;var r;t.style.display="none";e.appendChild(t);t.src="javascript:";r=t.contentWindow.Object.prototype;e.removeChild(t);t=null;return r};y=b||"undefined"==typeof document?function(){return{__proto__:null}}:function(){var t=g()?w():j();delete t.constructor;delete t.hasOwnProperty;delete t.propertyIsEnumerable;delete t.isPrototypeOf;delete t.toLocaleString;delete t.toString;delete t.valueOf;var e=function(){};e.prototype=t;y=function(){return new e};return new e};Object.create=function(t,e){var r;var n=function(){};if(null===t)r=y();else{if(null!==t&&l(t))throw new TypeError("Object prototype may only be an Object or null");n.prototype=t;r=new n;r.__proto__=t}if(void 0!==e)Object.defineProperties(r,e);return r}}var m=function(t){try{Object.defineProperty(t,"sentinel",{});return"sentinel"in t}catch(t){return false}};if(Object.defineProperty){var O=m({});var T="undefined"==typeof document||m(document.createElement("div"));if(!O||!T)var x=Object.defineProperty,E=Object.defineProperties}if(!Object.defineProperty||x){var S="Property description must be an object: ";var _="Object.defineProperty called on non-object: ";var P="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(t,r,n){if(l(t))throw new TypeError(_+t);if(l(n))throw new TypeError(S+n);if(x)try{return x.call(Object,t,r,n)}catch(t){}if("value"in n)if(u&&(f(t,r)||c(t,r))){var i=t.__proto__;t.__proto__=e;delete t[r];t[r]=n.value;t.__proto__=i}else t[r]=n.value;else{var s="get"in n;var v="set"in n;if(!u&&(s||v))throw new TypeError(P);if(s)o(t,r,n.get);if(v)a(t,r,n.set)}return t}}if(!Object.defineProperties||E)Object.defineProperties=function(t,e){if(E)try{return E.call(Object,t,e)}catch(t){}Object.keys(e).forEach(function(r){if("__proto__"!==r)Object.defineProperty(t,r,e[r])});return t};if(!Object.seal)Object.seal=function(t){if(Object(t)!==t)throw new TypeError("Object.seal can only be called on Objects.");return t};if(!Object.freeze)Object.freeze=function(t){if(Object(t)!==t)throw new TypeError("Object.freeze can only be called on Objects.");return t};try{Object.freeze(function(){})}catch(t){Object.freeze=function(t){return function(e){if("function"==typeof e)return e;return t(e)}}(Object.freeze)}if(!Object.preventExtensions)Object.preventExtensions=function(t){if(Object(t)!==t)throw new TypeError("Object.preventExtensions can only be called on Objects.");return t};if(!Object.isSealed)Object.isSealed=function(t){if(Object(t)!==t)throw new TypeError("Object.isSealed can only be called on Objects.");return false};if(!Object.isFrozen)Object.isFrozen=function(t){if(Object(t)!==t)throw new TypeError("Object.isFrozen can only be called on Objects.");return false};if(!Object.isExtensible)Object.isExtensible=function(t){if(Object(t)!==t)throw new TypeError("Object.isExtensible can only be called on Objects.");var e="";while(r(t,e))e+="?";t[e]=true;var n=r(t,e);delete t[e];return n}})}}}}}}},{extensions:[".js",".json"]});return{require:a,eagerModulePaths:["/node_modules/meteor/es5-shim/client.js"],mainModulePath:"/node_modules/meteor/es5-shim/client.js"}});
30
31Package["core-runtime"].queue("ecmascript-runtime-client",function(){Package.meteor.Meteor;var r=Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var t,n,a;var i=e({node_modules:{meteor:{"ecmascript-runtime-client":{
31"modern.js":function(r){try{r("core-js/modules/es.object.get-own-property-descriptors")}catch(r){throw new Error("The core-js npm package could not be found in your node_modules \ndirectory. Please run the following command to install it:\n\n  meteor npm install --save core-js\n")}r("core-js/modules/es.object.is");r("core-js/modules/es.function.name");r("core-js/modules/es.number.is-finite");r("core-js/modules/es.number.is-nan");r("core-js/modules/es.array.flat");r("core-js/modules/es.array.flat-map");r("core-js/modules/es.object.from-entries");r("core-js/modules/es.string.pad-start");r("core-js/modules/es.string.pad-end");r("core-js/modules/es.string.trim-start");r("core-js/modules/es.string.trim-end");r("core-js/modules/es.symbol.async-iterator")},
31"legacy.js":function(e,i,s){try{t=i.Symbol=r.Symbol||e("core-js/es/symbol");n=i.Map=r.Map||e("core-js/es/map");a=i.Set=r.Set||e("core-js/es/set")}catch(r){throw new Error("The core-js npm package could not be found in your node_modules \ndirectory. Please run the following command to install it:\n\n  meteor npm install --save core-js\n")}e("core-js/es/array");e("core-js/es/function");e("core-js/es/math");e("core-js/es/object");e("core-js/es/regexp");e("core-js/es/string");e("core-js/es/weak-map");e("core-js/es/weak-set");if("undefined"==typeof Reflect)r.Reflect=void 0;e("core-js/modules/es.number.epsilon");e("core-js/modules/es.number.is-finite");e("core-js/modules/es.number.is-integer");e("core-js/modules/es.number.is-nan");e("core-js/modules/es.number.is-safe-integer");e("core-js/modules/es.number.max-safe-integer");e("core-js/modules/es.number.min-safe-integer");e("core-js/modules/es.number.parse-float");e("core-js/modules/es.number.parse-int");e("core-js/modules/es.typed-array.uint8-array");e("core-js/modules/es.typed-array.uint32-array");e("./modern.js")},node_modules:{"core-js":{es:{symbol:{
31"index.js":function(r,e,t){r("../../modules/es.array.concat");r("../../modules/es.object.to-string");r("../../modules/es.symbol");r("../../modules/es.symbol.async-iterator");r("../../modules/es.symbol.description");r("../../modules/es.symbol.has-instance");r("../../modules/es.symbol.is-concat-spreadable");r("../../modules/es.symbol.iterator");r("../../modules/es.symbol.match");r("../../modules/es.symbol.match-all");r("../../modules/es.symbol.replace");r("../../modules/es.symbol.search");r("../../modules/es.symbol.species");r("../../modules/es.symbol.split");r("../../modules/es.symbol.to-primitive");r("../../modules/es.symbol.to-string-tag");r("../../modules/es.symbol.unscopables");r("../../modules/es.json.to-string-tag");r("../../modules/es.math.to-string-tag");r("../../modules/es.reflect.to-string-tag");var n=r("../../internals/path");t.exports=n.Symbol}},map:{
31"index.js":function(r,e,t){r("../../modules/es.map");r("../../modules/es.object.to-string");r("../../modules/es.string.iterator");r("../../modules/web.dom-collections.iterator");var n=r("../../internals/path");t.exports=n.Map}},set:{
31"index.js":function(r,e,t){r("../../modules/es.set");r("../../modules/es.object.to-string");r("../../modules/es.string.iterator");r("../../modules/web.dom-collections.iterator");var n=r("../../internals/path");t.exports=n.Set}},array:{
31"index.js":function(r,e,t){r("../../modules/es.string.iterator");r("../../modules/es.array.from");r("../../modules/es.array.is-array");r("../../modules/es.array.of");r("../../modules/es.array.concat");r("../../modules/es.array.copy-within");r("../../modules/es.array.every");r("../../modules/es.array.fill");r("../../modules/es.array.filter");r("../../modules/es.array.find");r("../../modules/es.array.find-index");r("../../modules/es.array.flat");r("../../modules/es.array.flat-map");r("../../modules/es.array.for-each");r("../../modules/es.array.includes");r("../../modules/es.array.index-of");r("../../modules/es.array.iterator");r("../../modules/es.array.join");r("../../modules/es.array.last-index-of");r("../../modules/es.array.map");r("../../modules/es.array.reduce");r("../../modules/es.array.reduce-right");r("../../modules/es.array.reverse");r("../../modules/es.array.slice");r("../../modules/es.array.some");r("../../modules/es.array.sort");r("../../modules/es.array.species");r("../../modules/es.array.splice");r("../../modules/es.array.unscopables.flat");r("../../modules/es.array.unscopables.flat-map");var n=r("../../internals/path");t.exports=n.Array}},function:{
31"index.js":function(r,e,t){r("../../modules/es.function.bind");r("../../modules/es.function.name");r("../../modules/es.function.has-instance");var n=r("../../internals/path");t.exports=n.Function}},math:{
31"index.js":function(r,e,t){r("../../modules/es.math.acosh");r("../../modules/es.math.asinh");r("../../modules/es.math.atanh");r("../../modules/es.math.cbrt");r("../../modules/es.math.clz32");r("../../modules/es.math.cosh");r("../../modules/es.math.expm1");r("../../modules/es.math.fround");r("../../modules/es.math.hypot");r("../../modules/es.math.imul");r("../../modules/es.math.log10");r("../../modules/es.math.log1p");r("../../modules/es.math.log2");r("../../modules/es.math.sign");r("../../modules/es.math.sinh");r("../../modules/es.math.tanh");r("../../modules/es.math.to-string-tag");r("../../modules/es.math.trunc");var n=r("../../internals/path");t.exports=n.Math}},object:{
31"index.js":function(r,e,t){r("../../modules/es.symbol");r("../../modules/es.object.assign");r("../../modules/es.object.create");r("../../modules/es.object.define-property");r("../../modules/es.object.define-properties");r("../../modules/es.object.entries");r("../../modules/es.object.freeze");r("../../modules/es.object.from-entries");r("../../modules/es.object.get-own-property-descriptor");r("../../modules/es.object.get-own-property-descriptors");r("../../modules/es.object.get-own-property-names");r("../../modules/es.object.get-prototype-of");r("../../modules/es.object.is");r("../../modules/es.object.is-extensible");r("../../modules/es.object.is-frozen");r("../../modules/es.object.is-sealed");r("../../modules/es.object.keys");r("../../modules/es.object.prevent-extensions");r("../../modules/es.object.seal");r("../../modules/es.object.set-prototype-of");r("../../modules/es.object.values");r("../../modules/es.object.to-string");r("../../modules/es.object.define-getter");r("../../modules/es.object.define-setter");r("../../modules/es.object.lookup-getter");r("../../modules/es.object.lookup-setter");r("../../modules/es.json.to-string-tag");r("../../modules/es.math.to-string-tag");r("../../modules/es.reflect.to-string-tag");var n=r("../../internals/path");t.exports=n.Object}},regexp:{
31"index.js":function(r){r("../../modules/es.regexp.constructor");r("../../modules/es.regexp.to-string");r("../../modules/es.regexp.dot-all");r("../../modules/es.regexp.exec");r("../../modules/es.regexp.flags");r("../../modules/es.regexp.sticky");r("../../modules/es.regexp.test");r("../../modules/es.string.match");r("../../modules/es.string.replace");r("../../modules/es.string.search");r("../../modules/es.string.split")}},string:{
31"index.js":function(r,e,t){r("../../modules/es.regexp.exec");r("../../modules/es.string.from-code-point");r("../../modules/es.string.raw");r("../../modules/es.string.code-point-at");r("../../modules/es.string.ends-with");r("../../modules/es.string.includes");r("../../modules/es.string.match");r("../../modules/es.string.match-all");r("../../modules/es.string.pad-end");r("../../modules/es.string.pad-start");r("../../modules/es.string.repeat");r("../../modules/es.string.replace");r("../../modules/es.string.replace-all");r("../../modules/es.string.search");r("../../modules/es.string.split");r("../../modules/es.string.starts-with");r("../../modules/es.string.substr");r("../../modules/es.string.trim");r("../../modules/es.string.trim-start");r("../../modules/es.string.trim-end");r("../../modules/es.string.iterator");r("../../modules/es.string.anchor");r("../../modules/es.string.big");r("../../modules/es.string.blink");r("../../modules/es.string.bold");r("../../modules/es.string.fixed");r("../../modules/es.string.fontcolor");r("../../modules/es.string.fontsize");r("../../modules/es.string.italics");r("../../modules/es.string.link");r("../../modules/es.string.small");r("../../modules/es.string.strike");r("../../modules/es.string.sub");r("../../modules/es.string.sup");var n=r("../../internals/path");t.exports=n.String}},"weak-map":{
31"index.js":function(r,e,t){r("../../modules/es.object.to-string");r("../../modules/es.weak-map");r("../../modules/web.dom-collections.iterator");var n=r("../../internals/path");t.exports=n.WeakMap}},"weak-set":{
31"index.js":function(r,e,t){r("../../modules/es.object.to-string");r("../../modules/es.weak-set");r("../../modules/web.dom-collections.iterator");var n=r("../../internals/path");t.exports=n.WeakSet}}},modules:{
vendor: 1,074 bytes, line 31
31"es.array.concat.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/fails");var n=r("../internals/is-array");var a=r("../internals/is-object");var i=r("../internals/to-object");var s=r("../internals/to-length");var o=r("../internals/create-property");var l=r("../internals/array-species-create");var c=r("../internals/array-method-has-species-support");var u=r("../internals/well-known-symbol");var f=r("../internals/engine-v8-version");var v=u("isConcatSpreadable");var p=0x1fffffffffffff;var d="Maximum allowed index exceeded";var g=f>=51||!t(function(){var r=[];r[v]=false;return r.concat()[0]!==r});var h=c("concat");var y=function(r){if(!a(r))return false;var e=r[v];return void 0!==e?!!e:n(r)};var b=!g||!h;e({target:"Array",proto:true,forced:b},{concat:function(r){var e=i(this);var t=l(e,0);var n=0;var a,c,u,f,v;for(a=-1,u=arguments.length;a<u;a++){v=-1===a?e:arguments[a];if(y(v)){f=s(v.length);if(n+f>p)throw TypeError(d);for(c=0;c<f;c++,n++)if(c in v)o(t,n,v[c])}else{if(n>=p)throw TypeError(d);o(t,n++,v)}}t.length=n;return t}})},
31"es.object.to-string.js":function(r){var e=r("../internals/to-string-tag-support");var t=r("../internals/redefine");var n=r("../internals/object-to-string");if(!e)t(Object.prototype,"toString",n,{unsafe:true})},
31"es.symbol.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/global");var n=r("../internals/get-built-in");var a=r("../internals/is-pure");var i=r("../internals/descriptors");var s=r("../internals/native-symbol");var o=r("../internals/use-symbol-as-uid");var l=r("../internals/fails");var c=r("../internals/has");var u=r("../internals/is-array");var f=r("../internals/is-object");var v=r("../internals/an-object");var p=r("../internals/to-object");var d=r("../internals/to-indexed-object");var g=r("../internals/to-primitive");var h=r("../internals/create-property-descriptor");var y=r("../internals/object-create");var b=r("../internals/object-keys");var m=r("../internals/object-get-own-property-names");var j=r("../internals/object-get-own-property-names-external");var x=r("../internals/object-get-own-property-symbols");var w=r("../internals/object-get-own-property-descriptor");var S=r("../internals/object-define-property");var k=r("../internals/object-property-is-enumerable");var E=r("../internals/create-non-enumerable-property");var O=r("../internals/redefine");var A=r("../internals/shared");var M=r("../internals/shared-key");var I=r("../internals/hidden-keys");var R=r("../internals/uid");var T=r("../internals/well-known-symbol");var P=r("../internals/well-known-symbol-wrapped");var _=r("../internals/define-well-known-symbol");var N=r("../internals/set-to-string-tag");var F=r("../internals/internal-state");var z=r("../internals/array-iteration").forEach;var L=M("hidden");var C="Symbol";var D="prototype";var U=T("toPrimitive");var q=F.set;var W=F.getterFor(C);var G=Object[D];var V=t.Symbol;var B=n("JSON","stringify");var $=w.f;var Y=S.f;var K=j.f;var H=k.f;var X=A("symbols");var J=A("op-symbols");var Q=A("string-to-symbol-registry");var Z=A("symbol-to-string-registry");var rr=A("wks");var re=t.QObject;var rt=!re||!re[D]||!re[D].findChild;var rn=i&&l(function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?function(r,e,t){var n=$(G,e);if(n)delete G[e];Y(r,e,t);if(n&&r!==G)Y(G,e,n)}:Y;var ra=function(r,e){var t=X[r]=y(V[D]);q(t,{type:C,tag:r,description:e});if(!i)t.description=e;return t};var ri=o?function(r){return"symbol"==typeof r}:function(r){return Object(r)instanceof V};var rs=function(r,e,t){if(r===G)rs(J,e,t);v(r);var n=g(e,true);v(t);if(c(X,n)){if(t.enumerable){if(c(r,L)&&r[L][n])r[L][n]=false;t=y(t,{enumerable:h(0,false)})}else{if(!c(r,L))Y(r,L,h(1,{}));r[L][n]=true}return rn(r,n,t)}return Y(r,n,t)};var ro=function(r,e){v(r);var t=d(e);var n=b(t).concat(rv(t));z(n,function(e){if(!i||rc.call(t,e))rs(r,e,t[e])});return r};var rl=function(r,e){return void 0===e?y(r):ro(y(r),e)};var rc=function(r){var e=g(r,true);var t=H.call(this,e);if(this===G&&c(X,e)&&!c(J,e))return false;return t||!c(this,e)||!c(X,e)||c(this,L)&&this[L][e]?t:true};var ru=function(r,e){var t=d(r);var n=g(e,true);if(t===G&&c(X,n)&&!c(J,n))return;var a=$(t,n);if(a&&c(X,n)&&!(c(t,L)&&t[L][n]))a.enumerable=true;return a};var rf=function(r){var e=K(d(r));var t=[];z(e,function(r){if(!c(X,r)&&!c(I,r))t.push(r)});return t};var rv=function(r){var e=r===G;var t=K(e?J:d(r));var n=[];z(t,function(r){if(c(X,r)&&(!e||c(G,r)))n.push(X[r])});return n};if(!s){V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var r=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0;var e=R(r);var t=function(r){if(this===G)t.call(J,r);if(c(this,L)&&c(this[L],e))this[L][e]=false;rn(this,e,h(1,r))};if(i&&rt)rn(G,e,{configurable:true,set:t});return ra(e,r)};O(V[D],"toString",function(){return W(this).tag});O(V,"withoutSetter",function(r){return ra(R(r),r)});k.f=rc;S.f=rs;w.f=ru;m.f=j.f=rf;x.f=rv;P.f=function(r){return ra(T(r),r)};if(i){Y(V[D],"description",{configurable:true,get:function(){return W(this).description}});if(!a)O(G,"propertyIsEnumerable",rc,{unsafe:true})}}e({global:true,wrap:true,forced:!s,sham:!s},{Symbol:V});z(b(rr),function(r){_(r)});e({target:C,stat:true,forced:!s},{for:function(r){var e=String(r);if(c(Q,e))return Q[e];var t=V(e);Q[e]=t;Z[t]=e;return t},keyFor:function(r){if(!ri(r))throw TypeError(r+" is not a symbol");if(c(Z,r))return Z[r]},useSetter:function(){rt=true},useSimple:function(){rt=false}});e({target:"Object",stat:true,forced:!s,sham:!i}
31,{create:rl,defineProperty:rs,defineProperties:ro,getOwnPropertyDescriptor:ru});e({target:"Object",stat:true,forced:!s},{getOwnPropertyNames:rf,getOwnPropertySymbols:rv});e({target:"Object",stat:true,forced:l(function(){x.f(1)})},{getOwnPropertySymbols:function(r){return x.f(p(r))}});if(B){var rp=!s||l(function(){var r=V();return"[null]"!=B([r])||"{}"!=B({a:r})||"{}"!=B(Object(r))});e({target:"JSON",stat:true,forced:rp},{stringify:function(r,e,t){var n=[r];var a=1;var i;while(arguments.length>a)n.push(arguments[a++]);i=e;if(!f(e)&&void 0===r||ri(r))return;if(!u(e))e=function(r,e){if("function"==typeof i)e=i.call(this,r,e);if(!ri(e))return e};n[1]=e;return B.apply(null,n)}})}if(!V[D][U])E(V[D],U,V[D].valueOf);N(V,C);I[L]=true},
31"es.symbol.async-iterator.js":function(r){var e=r("../internals/define-well-known-symbol");e("asyncIterator")},
31"es.symbol.description.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/global");var a=r("../internals/has");var i=r("../internals/is-object");var s=r("../internals/object-define-property").f;var o=r("../internals/copy-constructor-properties");var l=n.Symbol;if(t&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var c={};var u=function(){var r=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]);var e=this instanceof u?new l(r):void 0===r?l():l(r);if(""===r)c[e]=true;return e};o(u,l);var f=u.prototype=l.prototype;f.constructor=u;var v=f.toString;var p="Symbol(test)"==String(l("test"));var d=/^Symbol\((.*)\)[^)]+$/;s(f,"description",{configurable:true,get:function(){var r=i(this)?this.valueOf():this;var e=v.call(r);if(a(c,r))return"";var t=p?e.slice(7,-1):e.replace(d,"$1");return""===t?void 0:t}});e({global:true,forced:true},{Symbol:u})}},
31"es.symbol.has-instance.js":function(r){var e=r("../internals/define-well-known-symbol");e("hasInstance")},
31"es.symbol.is-concat-spreadable.js":function(r){var e=r("../internals/define-well-known-symbol");e("isConcatSpreadable")},
31"es.symbol.iterator.js":function(r){var e=r("../internals/define-well-known-symbol");e("iterator")},
31"es.symbol.match.js":function(r){var e=r("../internals/define-well-known-symbol");e("match")},
31"es.symbol.match-all.js":function(r){var e=r("../internals/define-well-known-symbol");e("matchAll")},
31"es.symbol.replace.js":function(r){var e=r("../internals/define-well-known-symbol");e("replace")},
31"es.symbol.search.js":function(r){var e=r("../internals/define-well-known-symbol");e("search")},
31"es.symbol.species.js":function(r){var e=r("../internals/define-well-known-symbol");e("species")},
31"es.symbol.split.js":function(r){var e=r("../internals/define-well-known-symbol");e("split")},
31"es.symbol.to-primitive.js":function(r){var e=r("../internals/define-well-known-symbol");e("toPrimitive")},
31"es.symbol.to-string-tag.js":function(r){var e=r("../internals/define-well-known-symbol");e("toStringTag")},
31"es.symbol.unscopables.js":function(r){var e=r("../internals/define-well-known-symbol");e("unscopables")},
31"es.json.to-string-tag.js":function(r){var e=r("../internals/global");var t=r("../internals/set-to-string-tag");t(e.JSON,"JSON",true)},
31"es.math.to-string-tag.js":function(r){var e=r("../internals/set-to-string-tag");e(Math,"Math",true)},
31"es.reflect.to-string-tag.js":function(r){var e=r("../internals/export");var t=r("../internals/global");var n=r("../internals/set-to-string-tag");e({global:true},{Reflect:{}});n(t.Reflect,"Reflect",true)},
31"es.map.js":function(r,e,t){"use strict";var n=r("../internals/collection");var a=r("../internals/collection-strong");t.exports=n("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},a)},
31"es.string.iterator.js":function(r){"use strict";var e=r("../internals/string-multibyte").charAt;var t=r("../internals/internal-state");var n=r("../internals/define-iterator");var a="String Iterator";var i=t.set;var s=t.getterFor(a);n(String,"String",function(r){i(this,{type:a,string:String(r),index:0})},function(){var r=s(this);var t=r.string;var n=r.index;var a;if(n>=t.length)return{value:void 0,done:true};a=e(t,n);r.index+=a.length;return{value:a,done:false}})},
31"web.dom-collections.iterator.js":function(r){var e=r("../internals/global");var t=r("../internals/dom-iterables");var n=r("../modules/es.array.iterator");var a=r("../internals/create-non-enumerable-property");var i=r("../internals/well-known-symbol");var s=i("iterator");var o=i("toStringTag");var l=n.values;for(var c in t){var u=e[c];var f=u&&u.prototype;if(f){if(f[s]!==l)try{a(f,s,l)}catch(r){f[s]=l}if(!f[o])a(f,o,c);if(t[c]){for(var v in n)if(f[v]!==n[v])try{a(f,v,n[v])}catch(r){f[v]=n[v]}}}}},
31"es.array.iterator.js":function(r,e,t){"use strict";var n=r("../internals/to-indexed-object");var a=r("../internals/add-to-unscopables");var i=r("../internals/iterators");var s=r("../internals/internal-state");var o=r("../internals/define-iterator");var l="Array Iterator";var c=s.set;var u=s.getterFor(l);t.exports=o(Array,"Array",function(r,e){c(this,{type:l,target:n(r),index:0,kind:e})},function(){var r=u(this);var e=r.target;var t=r.kind;var n=r.index++;if(!e||n>=e.length){r.target=void 0;return{value:void 0,done:true}}if("keys"==t)return{value:n,done:false};if("values"==t)return{value:e[n],done:false};return{value:[n,e[n]],done:false}},"values");i.Arguments=i.Array;a("keys");a("values");a("entries")},
31"es.set.js":function(r,e,t){"use strict";var n=r("../internals/collection");var a=r("../internals/collection-strong");t.exports=n("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},a)},
31"es.array.from.js":function(r){var e=r("../internals/export");var t=r("../internals/array-from");var n=r("../internals/check-correctness-of-iteration");var a=!n(function(r){Array.from(r)});e({target:"Array",stat:true,forced:a},{from:t})},
31"es.array.is-array.js":function(r){var e=r("../internals/export");var t=r("../internals/is-array");e({target:"Array",stat:true},{isArray:t})},
31"es.array.of.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/fails");var n=r("../internals/create-property");var a=t(function(){function r(){}return!(Array.of.call(r)instanceof r)});e({target:"Array",stat:true,forced:a},{of:function(){var r=0;var e=arguments.length;var t=new("function"==typeof this?this:Array)(e);while(e>r)n(t,r,arguments[r++]);t.length=e;return t}})},
31"es.array.copy-within.js":function(r){var e=r("../internals/export");var t=r("../internals/array-copy-within");var n=r("../internals/add-to-unscopables");e({target:"Array",proto:true},{copyWithin:t});n("copyWithin")},
31"es.array.every.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-iteration").every;var n=r("../internals/array-method-is-strict");var a=n("every");e({target:"Array",proto:true,forced:!a},{every:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})},
31"es.array.fill.js":function(r){var e=r("../internals/export");var t=r("../internals/array-fill");var n=r("../internals/add-to-unscopables");e({target:"Array",proto:true},{fill:t});n("fill")},
31"es.array.filter.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-iteration").filter;var n=r("../internals/array-method-has-species-support");var a=n("filter");e({target:"Array",proto:true,forced:!a},{filter:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})},
31"es.array.find.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-iteration").find;var n=r("../internals/add-to-unscopables");var a="find";var i=true;if(a in[])Array(1)[a](function(){i=false});e({target:"Array",proto:true,forced:i},{find:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}});n(a)},
31"es.array.find-index.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-iteration").findIndex;var n=r("../internals/add-to-unscopables");var a="findIndex";var i=true;if(a in[])Array(1)[a](function(){i=false});e({target:"Array",proto:true,forced:i},{findIndex:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}});n(a)},
31"es.array.flat.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/flatten-into-array");var n=r("../internals/to-object");var a=r("../internals/to-length");var i=r("../internals/to-integer");var s=r("../internals/array-species-create");e({target:"Array",proto:true},{flat:function(){var r=arguments.length?arguments[0]:void 0;var e=n(this);var o=a(e.length);var l=s(e,0);l.length=t(l,e,e,o,0,void 0===r?1:i(r));return l}})},
31"es.array.flat-map.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/flatten-into-array");var n=r("../internals/to-object");var a=r("../internals/to-length");var i=r("../internals/a-function");var s=r("../internals/array-species-create");e({target:"Array",proto:true},{flatMap:function(r){var e=n(this);var o=a(e.length);var l;i(r);l=s(e,0);l.length=t(l,e,e,o,0,1,r,arguments.length>1?arguments[1]:void 0);return l}})},
31"es.array.for-each.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-for-each");e({target:"Array",proto:true,forced:[].forEach!=t},{forEach:t})},
31"es.array.includes.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-includes").includes;var n=r("../internals/add-to-unscopables");e({target:"Array",proto:true},{includes:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}});n("includes")},
vendor: 395 bytes, line 31
31"es.array.index-of.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-includes").indexOf;var n=r("../internals/array-method-is-strict");var a=[].indexOf;var i=!!a&&1/[1].indexOf(1,-0)<0;var s=n("indexOf");e({target:"Array",proto:true,forced:i||!s},{indexOf:function(r){return i?a.apply(this,arguments)||0:t(this,r,arguments.length>1?arguments[1]:void 0)}})},
31"es.array.join.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/indexed-object");var n=r("../internals/to-indexed-object");var a=r("../internals/array-method-is-strict");var i=[].join;var s=t!=Object;var o=a("join",",");e({target:"Array",proto:true,forced:s||!o},{join:function(r){return i.call(n(this),void 0===r?",":r)}})},
31"es.array.last-index-of.js":function(r){var e=r("../internals/export");var t=r("../internals/array-last-index-of");e({target:"Array",proto:true,forced:t!==[].lastIndexOf},{lastIndexOf:t})},
31"es.array.map.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-iteration").map;var n=r("../internals/array-method-has-species-support");var a=n("map");e({target:"Array",proto:true,forced:!a},{map:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})},
31"es.array.reduce.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-reduce").left;var n=r("../internals/array-method-is-strict");var a=r("../internals/engine-v8-version");var i=r("../internals/engine-is-node");var s=n("reduce");var o=!i&&a>79&&a<83;e({target:"Array",proto:true,forced:!s||o},{reduce:function(r){return t(this,r,arguments.length,arguments.length>1?arguments[1]:void 0)}})},
31"es.array.reduce-right.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-reduce").right;var n=r("../internals/array-method-is-strict");var a=r("../internals/engine-v8-version");var i=r("../internals/engine-is-node");var s=n("reduceRight");var o=!i&&a>79&&a<83;e({target:"Array",proto:true,forced:!s||o},{reduceRight:function(r){return t(this,r,arguments.length,arguments.length>1?arguments[1]:void 0)}})},
31"es.array.reverse.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/is-array");var n=[].reverse;var a=[1,2];e({target:"Array",proto:true,forced:String(a)===String(a.reverse())},{reverse:function(){if(t(this))this.length=this.length;return n.call(this)}})},
31"es.array.slice.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/is-object");var n=r("../internals/is-array");var a=r("../internals/to-absolute-index");var i=r("../internals/to-length");var s=r("../internals/to-indexed-object");var o=r("../internals/create-property");var l=r("../internals/well-known-symbol");var c=r("../internals/array-method-has-species-support");var u=c("slice");var f=l("species");var v=[].slice;var p=Math.max;e({target:"Array",proto:true,forced:!u},{slice:function(r,e){var l=s(this);var c=i(l.length);var u=a(r,c);var d=a(void 0===e?c:e,c);var g,h,y;if(n(l)){g=l.constructor;if("function"==typeof g&&(g===Array||n(g.prototype)))g=void 0;else if(t(g)){g=g[f];if(null===g)g=void 0}if(g===Array||void 0===g)return v.call(l,u,d)}h=new(void 0===g?Array:g)(p(d-u,0));for(y=0;u<d;u++,y++)if(u in l)o(h,y,l[u]);h.length=y;return h}})},
31"es.array.some.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/array-iteration").some;var n=r("../internals/array-method-is-strict");var a=n("some");e({target:"Array",proto:true,forced:!a},{some:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})},
31"es.array.sort.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/a-function");var n=r("../internals/to-object");var a=r("../internals/to-length");var i=r("../internals/fails");var s=r("../internals/array-sort");var o=r("../internals/array-method-is-strict");var l=r("../internals/engine-ff-version");var c=r("../internals/engine-is-ie-or-edge");var u=r("../internals/engine-v8-version");var f=r("../internals/engine-webkit-version");var v=[];var p=v.sort;var d=i(function(){v.sort(void 0)});var g=i(function(){v.sort(null)});var h=o("sort");var y=!i(function(){if(u)return u<70;if(l&&l>3)return;if(c)return true;if(f)return f<603;var r="";var e,t,n,a;for(e=65;e<76;e++){t=String.fromCharCode(e);switch(e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(a=0;a<47;a++)v.push({k:t+a,v:n})}v.sort(function(r,e){return e.v-r.v});for(a=0;a<v.length;a++){t=v[a].k.charAt(0);if(r.charAt(r.length-1)!==t)r+=t}return"DGBEFHACIJK"!==r});var b=d||!g||!h||!y;var m=function(r){return function(e,t){if(void 0===t)return -1;if(void 0===e)return 1;if(void 0!==r)return+r(e,t)||0;return String(e)>String(t)?1:-1}};e({target:"Array",proto:true,forced:b},{sort:function(r){if(void 0!==r)t(r);var e=n(this);if(y)return void 0===r?p.call(e):p.call(e,r);var i=[];var o=a(e.length);var l,c;for(c=0;c<o;c++)if(c in e)i.push(e[c]);i=s(i,m(r));l=i.length;c=0;while(c<l)e[c]=i[c++];while(c<o)delete e[c++];return e}})},
31"es.array.species.js":function(r){var e=r("../internals/set-species");e("Array")},
31"es.array.splice.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/to-absolute-index");var n=r("../internals/to-integer");var a=r("../internals/to-length");var i=r("../internals/to-object");var s=r("../internals/array-species-create");var o=r("../internals/create-property");var l=r("../internals/array-method-has-species-support");var c=l("splice");var u=Math.max;var f=Math.min;var v=0x1fffffffffffff;var p="Maximum allowed length exceeded";e({target:"Array",proto:true,forced:!c},{splice:function(r,e){var l=i(this);var c=a(l.length);var d=t(r,c);var g=arguments.length;var h,y,b,m,j,x;if(0===g)h=y=0;else if(1===g){h=0;y=c-d}else{h=g-2;y=f(u(n(e),0),c-d)}if(c+h-y>v)throw TypeError(p);b=s(l,y);for(m=0;m<y;m++){j=d+m;if(j in l)o(b,m,l[j])}b.length=y;if(h<y){for(m=d;m<c-y;m++){j=m+y;x=m+h;if(j in l)l[x]=l[j];else delete l[x]}for(m=c;m>c-y+h;m--)delete l[m-1]}else if(h>y)for(m=c-y;m>d;m--){j=m+y-1;x=m+h-1;if(j in l)l[x]=l[j];else delete l[x]}for(m=0;m<h;m++)l[m+d]=arguments[m+2];l.length=c-y+h;return b}})},
31"es.array.unscopables.flat.js":function(r,e,t){var n=r("../internals/add-to-unscopables");n("flat")},
31"es.array.unscopables.flat-map.js":function(r,e,t){var n=r("../internals/add-to-unscopables");n("flatMap")},
31"es.function.bind.js":function(r){var e=r("../internals/export");var t=r("../internals/function-bind");e({target:"Function",proto:true},{bind:t})},
31"es.function.name.js":function(r){var e=r("../internals/descriptors");var t=r("../internals/object-define-property").f;var n=Function.prototype;var a=n.toString;var i=/^\s*function ([^ (]*)/;var s="name";if(e&&!(s in n))t(n,s,{configurable:true,get:function(){try{return a.call(this).match(i)[1]}catch(r){return""}}})},
31"es.function.has-instance.js":function(r){"use strict";var e=r("../internals/is-object");var t=r("../internals/object-define-property");var n=r("../internals/object-get-prototype-of");var a=r("../internals/well-known-symbol");var i=a("hasInstance");var s=Function.prototype;if(!(i in s))t.f(s,i,{value:function(r){if("function"!=typeof this||!e(r))return false;if(!e(this.prototype))return r instanceof this;while(r=n(r))if(this.prototype===r)return true;return false}})},
31"es.math.acosh.js":function(r){var e=r("../internals/export");var t=r("../internals/math-log1p");var n=Math.acosh;var a=Math.log;var i=Math.sqrt;var s=Math.LN2;var o=!n||710!=Math.floor(n(Number.MAX_VALUE))||n(1/0)!=1/0;e({target:"Math",stat:true,forced:o},{acosh:function(r){return(r*=1)<1?NaN:r>94906265.62425156?a(r)+s:t(r-1+i(r-1)*i(r+1))}})},
31"es.math.asinh.js":function(r){var e=r("../internals/export");var t=Math.asinh;var n=Math.log;var a=Math.sqrt;function i(r){return isFinite(r*=1)&&0!=r?r<0?-i(-r):n(r+a(r*r+1)):r}e({target:"Math",stat:true,forced:!(t&&1/t(0)>0)},{asinh:i})},
31"es.math.atanh.js":function(r){var e=r("../internals/export");var t=Math.atanh;var n=Math.log;e({target:"Math",stat:true,forced:!(t&&1/t(-0)<0)},{atanh:function(r){return 0==(r*=1)?r:n((1+r)/(1-r))/2}})},
31"es.math.cbrt.js":function(r){var e=r("../internals/export");var t=r("../internals/math-sign");var n=Math.abs;var a=Math.pow;e({target:"Math",stat:true},{cbrt:function(r){return t(r*=1)*a(n(r),1/3)}})},
31"es.math.clz32.js":function(r){var e=r("../internals/export");var t=Math.floor;var n=Math.log;var a=Math.LOG2E;e({target:"Math",stat:true},{clz32:function(r){return(r>>>=0)?31-t(n(r+.5)*a):32}})},
31"es.math.cosh.js":function(r){var e=r("../internals/export");var t=r("../internals/math-expm1");var n=Math.cosh;var a=Math.abs;var i=Math.E;e({target:"Math",stat:true,forced:!n||n(710)===1/0},{cosh:function(r){var e=t(a(r)-1)+1;return i/2*(e+1/(e*i*i))}})},
31"es.math.expm1.js":function(r){var e=r("../internals/export");var t=r("../internals/math-expm1");e({target:"Math",stat:true,forced:t!=Math.expm1},{expm1:t})},
31"es.math.fround.js":function(r){var e=r("../internals/export");var t=r("../internals/math-fround");e({target:"Math",stat:true},{fround:t})},
31"es.math.hypot.js":function(r){var e=r("../internals/export");var t=Math.hypot;var n=Math.abs;var a=Math.sqrt;var i=!!t&&t(1/0,NaN)!==1/0;e({target:"Math",stat:true,forced:i},{hypot:function(r,e){var t=0;var i=0;var s=arguments.length;var o=0;var l,c;while(i<s){l=n(arguments[i++]);if(o<l){c=o/l;t=t*c*c+1;o=l}else if(l>0){c=l/o;t+=c*c}else t+=l}return o===1/0?1/0:o*a(t)}})},
31"es.math.imul.js":function(r){var e=r("../internals/export");var t=r("../internals/fails");var n=Math.imul;var a=t(function(){return -5!=n(0xffffffff,5)||2!=n.length});e({target:"Math",stat:true,forced:a},{imul:function(r,e){var t=65535;var n=+r;var a=+e;var i=t&n;var s=t&a;return 0|i*s+((t&n>>>16)*s+i*(t&a>>>16)<<16>>>0)}})},
31"es.math.log10.js":function(r){var e=r("../internals/export");var t=Math.log;var n=Math.LOG10E;e({target:"Math",stat:true},{log10:function(r){return t(r)*n}})},
31"es.math.log1p.js":function(r){var e=r("../internals/export");var t=r("../internals/math-log1p");e({target:"Math",stat:true},{log1p:t})},
31"es.math.log2.js":function(r){var e=r("../internals/export");var t=Math.log;var n=Math.LN2;e({target:"Math",stat:true},{log2:function(r){return t(r)/n}})},
31"es.math.sign.js":function(r){var e=r("../internals/export");var t=r("../internals/math-sign");e({target:"Math",stat:true},{sign:t})},
31"es.math.sinh.js":function(r){var e=r("../internals/export");var t=r("../internals/fails");var n=r("../internals/math-expm1");var a=Math.abs;var i=Math.exp;var s=Math.E;var o=t(function(){return -2e-17!=Math.sinh(-2e-17)});e({target:"Math",stat:true,forced:o},{sinh:function(r){return a(r*=1)<1?(n(r)-n(-r))/2:(i(r-1)-i(-r-1))*(s/2)}})},
31"es.math.tanh.js":function(r){var e=r("../internals/export");var t=r("../internals/math-expm1");var n=Math.exp;e({target:"Math",stat:true},{tanh:function(r){var e=t(r*=1);var a=t(-r);return e==1/0?1:a==1/0?-1:(e-a)/(n(r)+n(-r))}})},
31"es.math.trunc.js":function(r){var e=r("../internals/export");var t=Math.ceil;var n=Math.floor;e({target:"Math",stat:true},{trunc:function(r){return(r>0?n:t)(r)}})},
31"es.object.assign.js":function(r){var e=r("../internals/export");var t=r("../internals/object-assign");e({target:"Object",stat:true,forced:Object.assign!==t},{assign:t})},
31"es.object.create.js":function(r){var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/object-create");e({target:"Object",stat:true,sham:!t},{create:n})},
31"es.object.define-property.js":function(r){var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/object-define-property");e({target:"Object",stat:true,forced:!t,sham:!t},{defineProperty:n.f})},
31"es.object.define-properties.js":function(r){var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/object-define-properties");e({target:"Object",stat:true,forced:!t,sham:!t},{defineProperties:n})},
31"es.object.entries.js":function(r){var e=r("../internals/export");var t=r("../internals/object-to-array").entries;e({target:"Object",stat:true},{entries:function(r){return t(r)}})},
31"es.object.freeze.js":function(r){var e=r("../internals/export");var t=r("../internals/freezing");var n=r("../internals/fails");var a=r("../internals/is-object");var i=r("../internals/internal-metadata").onFreeze;var s=Object.freeze;var o=n(function(){s(1)});e({target:"Object",stat:true,forced:o,sham:!t},{freeze:function(r){return s&&a(r)?s(i(r)):r}})},
31"es.object.from-entries.js":function(r){var e=r("../internals/export");var t=r("../internals/iterate");var n=r("../internals/create-property");e({target:"Object",stat:true},{fromEntries:function(r){var e={};t(r,function(r,t){n(e,r,t)},{AS_ENTRIES:true});return e}})},
31"es.object.get-own-property-descriptor.js":function(r){var e=r("../internals/export");var t=r("../internals/fails");var n=r("../internals/to-indexed-object");var a=r("../internals/object-get-own-property-descriptor").f;var i=r("../internals/descriptors");var s=t(function(){a(1)});var o=!i||s;e({target:"Object",stat:true,forced:o,sham:!i},{getOwnPropertyDescriptor:function(r,e){return a(n(r),e)}})},
31"es.object.get-own-property-descriptors.js":function(r){var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/own-keys");var a=r("../internals/to-indexed-object");var i=r("../internals/object-get-own-property-descriptor");var s=r("../internals/create-property");e({target:"Object",stat:true,sham:!t},{getOwnPropertyDescriptors:function(r){var e=a(r);var t=i.f;var o=n(e);var l={};var c=0;var u,f;while(o.length>c){f=t(e,u=o[c++]);if(void 0!==f)s(l,u,f)}return l}})},
31"es.object.get-own-property-names.js":function(r){var e=r("../internals/export");var t=r("../internals/fails");var n=r("../internals/object-get-own-property-names-external").f;var a=t(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:true,forced:a},{getOwnPropertyNames:n})},
31"es.object.get-prototype-of.js":function(r){var e=r("../internals/export");var t=r("../internals/fails");var n=r("../internals/to-object");var a=r("../internals/object-get-prototype-of");var i=r("../internals/correct-prototype-getter");var s=t(function(){a(1)});e({target:"Object",stat:true,forced:s,sham:!i},{getPrototypeOf:function(r){return a(n(r))}})},
31"es.object.is.js":function(r){var e=r("../internals/export");var t=r("../internals/same-value");e({target:"Object",stat:true},{is:t})},
31"es.object.is-extensible.js":function(r){var e=r("../internals/export");var t=r("../internals/fails");var n=r("../internals/is-object");var a=Object.isExtensible;var i=t(function(){a(1)});e({target:"Object",stat:true,forced:i},{isExtensible:function(r){return n(r)?a?a(r):true:false}})},
31"es.object.is-frozen.js":function(r){var e=r("../internals/export");var t=r("../internals/fails");var n=r("../internals/is-object");var a=Object.isFrozen;var i=t(function(){a(1)});e({target:"Object",stat:true,forced:i},{isFrozen:function(r){return n(r)?a?a(r):false:true}})},
31"es.object.is-sealed.js":function(r){var e=r("../internals/export");var t=r("../internals/fails");var n=r("../internals/is-object");var a=Object.isSealed;var i=t(function(){a(1)});e({target:"Object",stat:true,forced:i},{isSealed:function(r){return n(r)?a?a(r):false:true}})},
31"es.object.keys.js":function(r){var e=r("../internals/export");var t=r("../internals/to-object");var n=r("../internals/object-keys");var a=r("../internals/fails");var i=a(function(){n(1)});e({target:"Object",stat:true,forced:i},{keys:function(r){return n(t(r))}})},
31"es.object.prevent-extensions.js":function(r){var e=r("../internals/export");var t=r("../internals/is-object");var n=r("../internals/internal-metadata").onFreeze;var a=r("../internals/freezing");var i=r("../internals/fails");var s=Object.preventExtensions;var o=i(function(){s(1)});e({target:"Object",stat:true,forced:o,sham:!a},{preventExtensions:function(r){return s&&t(r)?s(n(r)):r}})},
31"es.object.seal.js":function(r){var e=r("../internals/export");var t=r("../internals/is-object");var n=r("../internals/internal-metadata").onFreeze;var a=r("../internals/freezing");var i=r("../internals/fails");var s=Object.seal;var o=i(function(){s(1)});e({target:"Object",stat:true,forced:o,sham:!a},{seal:function(r){return s&&t(r)?s(n(r)):r}})},
31"es.object.set-prototype-of.js":function(r){var e=r("../internals/export");var t=r("../internals/object-set-prototype-of");e({target:"Object",stat:true},{setPrototypeOf:t})},
31"es.object.values.js":function(r){var e=r("../internals/export");var t=r("../internals/object-to-array").values;e({target:"Object",stat:true},{values:function(r){return t(r)}})},
31"es.object.define-getter.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/object-prototype-accessors-forced");var a=r("../internals/to-object");var i=r("../internals/a-function");var s=r("../internals/object-define-property");if(t)e({target:"Object",proto:true,forced:n},{__defineGetter__:function(r,e){s.f(a(this),r,{get:i(e),enumerable:true,configurable:true})}})},
31"es.object.define-setter.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/object-prototype-accessors-forced");var a=r("../internals/to-object");var i=r("../internals/a-function");var s=r("../internals/object-define-property");if(t)e({target:"Object",proto:true,forced:n},{__defineSetter__:function(r,e){s.f(a(this),r,{set:i(e),enumerable:true,configurable:true})}})},
31"es.object.lookup-getter.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/object-prototype-accessors-forced");var a=r("../internals/to-object");var i=r("../internals/to-primitive");var s=r("../internals/object-get-prototype-of");var o=r("../internals/object-get-own-property-descriptor").f;if(t)e({target:"Object",proto:true,forced:n},{__lookupGetter__:function(r){var e=a(this);var t=i(r,true);var n;do if(n=o(e,t))return n.get;while(e=s(e))}})},
31"es.object.lookup-setter.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/object-prototype-accessors-forced");var a=r("../internals/to-object");var i=r("../internals/to-primitive");var s=r("../internals/object-get-prototype-of");var o=r("../internals/object-get-own-property-descriptor").f;if(t)e({target:"Object",proto:true,forced:n},{__lookupSetter__:function(r){var e=a(this);var t=i(r,true);var n;do if(n=o(e,t))return n.set;while(e=s(e))}})},
31"es.regexp.constructor.js":function(r){var e=r("../internals/descriptors");var t=r("../internals/global");var n=r("../internals/is-forced");var a=r("../internals/inherit-if-required");var i=r("../internals/create-non-enumerable-property");var s=r("../internals/object-define-property").f;var o=r("../internals/object-get-own-property-names").f;var l=r("../internals/is-regexp");var c=r("../internals/regexp-flags");var u=r("../internals/regexp-sticky-helpers");var f=r("../internals/redefine");var v=r("../internals/fails");var p=r("../internals/has");var d=r("../internals/internal-state").enforce;var g=r("../internals/set-species");var h=r("../internals/well-known-symbol");var y=r("../internals/regexp-unsupported-dot-all");var b=r("../internals/regexp-unsupported-ncg");var m=h("match");var j=t.RegExp;var x=j.prototype;var w=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;var S=/a/g;var k=/a/g;var E=new j(S)!==S;var O=u.UNSUPPORTED_Y;var A=e&&(!E||O||y||b||v(function(){k[m]=false;return j(S)!=S||j(k)==k||"/a/i"!=j(S,"i")}));var M=function(r){var e=r.length;var t=0;var n="";var a=false;var i;for(;t<=e;t++){i=r.charAt(t);if("\\"===i){n+=i+r.charAt(++t);continue}if(a||"."!==i){if("["===i)a=true;else if("]"===i)a=false;n+=i}else n+="[\\s\\S]"}return n};var I=function(r){var e=r.length;var t=0;var n="";var a=[];var i={};var s=false;var o=false;var l=0;var c="";var u;for(;t<=e;t++){u=r.charAt(t);if("\\"===u)u+=r.charAt(++t);else if("]"===u)s=false;else if(!s)switch(true){case"["===u:s=true;break;case"("===u:if(w.test(r.slice(t+1))){t+=2;o=true}n+=u;l++;continue;case">"===u&&o:if(""===c||p(i,c))throw new SyntaxError("Invalid capture group name");i[c]=true;a.push([c,l]);o=false;c="";continue}if(o)c+=u;else n+=u}return[n,a]};if(n("RegExp",A)){var R=function(r,e){var t=this instanceof R;var n=l(r);var s=void 0===e;var o=[];var u=r;var f,v,p,g,h,m;if(!t&&n&&s&&r.constructor===R)return r;if(n||r instanceof R){r=r.source;if(s)e="flags"in u?u.flags:c.call(u)}r=void 0===r?"":String(r);e=void 0===e?"":String(e);u=r;if(y&&"dotAll"in S){v=!!e&&e.indexOf("s")>-1;if(v)e=e.replace(/s/g,"")}f=e;if(O&&"sticky"in S){p=!!e&&e.indexOf("y")>-1;if(p)e=e.replace(/y/g,"")}if(b){g=I(r);r=g[0];o=g[1]}h=a(j(r,e),t?this:x,R);if(v||p||o.length){m=d(h);if(v){m.dotAll=true;m.raw=R(M(r),f)}if(p)m.sticky=true;if(o.length)m.groups=o}if(r!==u)try{i(h,"source",""===u?"(?:)":u)}catch(r){}return h};var T=function(r){r in R||s(R,r,{configurable:true,get:function(){return j[r]},set:function(e){j[r]=e}})};for(var P=o(j),_=0;P.length>_;)T(P[_++]);x.constructor=R;R.prototype=x;f(t,"RegExp",R)}g("RegExp")},
31"es.regexp.to-string.js":function(r){"use strict";var e=r("../internals/redefine");var t=r("../internals/an-object");var n=r("../internals/fails");var a=r("../internals/regexp-flags");var i="toString";var s=RegExp.prototype;var o=s[i];var l=n(function(){return"/a/b"!=o.call({source:"a",flags:"b"})});var c=o.name!=i;if(l||c)e(RegExp.prototype,i,function(){var r=t(this);var e=String(r.source);var n=r.flags;var i=String(void 0===n&&r instanceof RegExp&&!("flags"in s)?a.call(r):n);return"/"+e+"/"+i},{unsafe:true})},
31"es.regexp.dot-all.js":function(r){var e=r("../internals/descriptors");var t=r("../internals/regexp-unsupported-dot-all");var n=r("../internals/object-define-property").f;var a=r("../internals/internal-state").get;var i=RegExp.prototype;if(e&&t)n(i,"dotAll",{configurable:true,get:function(){if(this===i)return;if(this instanceof RegExp)return!!a(this).dotAll;throw TypeError("Incompatible receiver, RegExp required")}})},
31"es.regexp.exec.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/regexp-exec");e({target:"RegExp",proto:true,forced:/./.exec!==t},{exec:t})},
31"es.regexp.flags.js":function(r){var e=r("../internals/descriptors");var t=r("../internals/object-define-property");var n=r("../internals/regexp-flags");var a=r("../internals/fails");var i=e&&a(function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:true,sticky:true})});if(i)t.f(RegExp.prototype,"flags",{configurable:true,get:n})},
31"es.regexp.sticky.js":function(r){var e=r("../internals/descriptors");var t=r("../internals/regexp-sticky-helpers").UNSUPPORTED_Y;var n=r("../internals/object-define-property").f;var a=r("../internals/internal-state").get;var i=RegExp.prototype;if(e&&t)n(i,"sticky",{configurable:true,get:function(){if(this===i)return;if(this instanceof RegExp)return!!a(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}})},
31"es.regexp.test.js":function(r){"use strict";r("../modules/es.regexp.exec");var e=r("../internals/export");var t=r("../internals/is-object");var n=function(){var r=false;var e=/[ac]/;e.exec=function(){r=true;return/./.exec.apply(this,arguments)};return true===e.test("abc")&&r}();var a=/./.test;e({target:"RegExp",proto:true,forced:!n},{test:function(r){if("function"!=typeof this.exec)return a.call(this,r);var e=this.exec(r);if(null!==e&&!t(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}})},
31"es.string.match.js":function(r){"use strict";var e=r("../internals/fix-regexp-well-known-symbol-logic");var t=r("../internals/an-object");var n=r("../internals/to-length");var a=r("../internals/require-object-coercible");var i=r("../internals/advance-string-index");var s=r("../internals/regexp-exec-abstract");e("match",function(r,e,o){return[function(e){var t=a(this);var n=void 0==e?void 0:e[r];return void 0!==n?n.call(e,t):new RegExp(e)[r](String(t))},function(r){var a=o(e,this,r);if(a.done)return a.value;var l=t(this);var c=String(r);if(!l.global)return s(l,c);var u=l.unicode;l.lastIndex=0;var f=[];var v=0;var p;while(null!==(p=s(l,c))){var d=String(p[0]);f[v]=d;if(""===d)l.lastIndex=i(c,n(l.lastIndex),u);v++}return 0===v?null:f}]})},
31"es.string.replace.js":function(r){"use strict";var e=r("../internals/fix-regexp-well-known-symbol-logic");var t=r("../internals/fails");var n=r("../internals/an-object");var a=r("../internals/to-length");var i=r("../internals/to-integer");var s=r("../internals/require-object-coercible");var o=r("../internals/advance-string-index");var l=r("../internals/get-substitution");var c=r("../internals/regexp-exec-abstract");var u=r("../internals/well-known-symbol");var f=u("replace");var v=Math.max;var p=Math.min;var d=function(r){return void 0===r?r:String(r)};var g=function(){return"$0"==="a".replace(/./,"$0")}();var h=function(){if(/./[f])return""===/./[f]("a","$0");return false}();var y=!t(function(){var r=/./;r.exec=function(){var r=[];r.groups={a:"7"};return r};return"7"!=="".replace(r,"$<a>")});e("replace",function(r,e,t){var u=h?"$":"$0";return[function(r,t){var n=s(this);var a=void 0==r?void 0:r[f];return void 0!==a?a.call(r,n,t):e.call(String(n),r,t)},function(r,s){if("string"==typeof s&&-1===s.indexOf(u)&&-1===s.indexOf("$<")){var f=t(e,this,r,s);if(f.done)return f.value}var g=n(this);var h=String(r);var y="function"==typeof s;if(!y)s=String(s);var b=g.global;if(b){var m=g.unicode;g.lastIndex=0}var j=[];while(true){var x=c(g,h);if(null===x)break;j.push(x);if(!b)break;var w=String(x[0]);if(""===w)g.lastIndex=o(h,a(g.lastIndex),m)}var S="";var k=0;for(var E=0;E<j.length;E++){x=j[E];var O=String(x[0]);var A=v(p(i(x.index),h.length),0);var M=[];for(var I=1;I<x.length;I++)M.push(d(x[I]));var R=x.groups;if(y){var T=[O].concat(M,A,h);if(void 0!==R)T.push(R);var P=String(s.apply(void 0,T))}else P=l(O,h,A,M,R,s);if(A>=k){S+=h.slice(k,A)+P;k=A+O.length}}return S+h.slice(k)}]},!y||!g||h)},
31"es.string.search.js":function(r){"use strict";var e=r("../internals/fix-regexp-well-known-symbol-logic");var t=r("../internals/an-object");var n=r("../internals/require-object-coercible");var a=r("../internals/same-value");var i=r("../internals/regexp-exec-abstract");e("search",function(r,e,s){return[function(e){var t=n(this);var a=void 0==e?void 0:e[r];return void 0!==a?a.call(e,t):new RegExp(e)[r](String(t))},function(r){var n=s(e,this,r);if(n.done)return n.value;var o=t(this);var l=String(r);var c=o.lastIndex;if(!a(c,0))o.lastIndex=0;var u=i(o,l);if(!a(o.lastIndex,c))o.lastIndex=c;return null===u?-1:u.index}]})},
31"es.string.split.js":function(r){"use strict";var e=r("../internals/fix-regexp-well-known-symbol-logic");var t=r("../internals/is-regexp");var n=r("../internals/an-object");var a=r("../internals/require-object-coercible");var i=r("../internals/species-constructor");var s=r("../internals/advance-string-index");var o=r("../internals/to-length");var l=r("../internals/regexp-exec-abstract");var c=r("../internals/regexp-exec");var u=r("../internals/regexp-sticky-helpers");var f=r("../internals/fails");var v=u.UNSUPPORTED_Y;var p=[].push;var d=Math.min;var g=0xffffffff;var h=!f(function(){var r=/(?:)/;var e=r.exec;r.exec=function(){return e.apply(this,arguments)};var t="ab".split(r);return 2!==t.length||"a"!==t[0]||"b"!==t[1]});e("split",function(r,e,u){var f;f="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(r,n){var i=String(a(this));var s=void 0===n?g:n>>>0;if(0===s)return[];if(void 0===r)return[i];if(!t(r))return e.call(i,r,s);var o=[];var l=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":"");var u=0;var f=new RegExp(r.source,l+"g");var v,d,h;while(v=c.call(f,i)){d=f.lastIndex;if(d>u){o.push(i.slice(u,v.index));if(v.length>1&&v.index<i.length)p.apply(o,v.slice(1));h=v[0].length;u=d;if(o.length>=s)break}if(f.lastIndex===v.index)f.lastIndex++}if(u===i.length){if(h||!f.test(""))o.push("")}else o.push(i.slice(u));return o.length>s?o.slice(0,s):o}:"0".split(void 0,0).length?function(r,t){return void 0===r&&0===t?[]:e.call(this,r,t)}:e;return[function(e,t){var n=a(this);var i=void 0==e?void 0:e[r];return void 0!==i?i.call(e,n,t):f.call(String(n),e,t)},function(r,t){var a=u(f,this,r,t,f!==e);if(a.done)return a.value;var c=n(this);var p=String(r);var h=i(c,RegExp);var y=c.unicode;var b=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"g":"y");var m=new h(v?"^(?:"+c.source+")":c,b);var j=void 0===t?g:t>>>0;if(0===j)return[];if(0===p.length)return null===l(m,p)?[p]:[];var x=0;var w=0;var S=[];while(w<p.length){m.lastIndex=v?0:w;var k=l(m,v?p.slice(w):p);var E;if(null===k||(E=d(o(m.lastIndex+(v?w:0)),p.length))===x)w=s(p,w,y);
31else{S.push(p.slice(x,w));if(S.length===j)return S;for(var O=1;O<=k.length-1;O++){S.push(k[O]);if(S.length===j)return S}w=x=E}}S.push(p.slice(x));return S}]},!h,v)},
31"es.string.from-code-point.js":function(r){var e=r("../internals/export");var t=r("../internals/to-absolute-index");var n=String.fromCharCode;var a=String.fromCodePoint;var i=!!a&&1!=a.length;e({target:"String",stat:true,forced:i},{fromCodePoint:function(r){var e=[];var a=arguments.length;var i=0;var s;while(a>i){s=+arguments[i++];if(t(s,1114111)!==s)throw RangeError(s+" is not a valid code point");e.push(s<65536?n(s):n(((s-=65536)>>10)+55296,s%1024+56320))}return e.join("")}})},
31"es.string.raw.js":function(r){var e=r("../internals/export");var t=r("../internals/to-indexed-object");var n=r("../internals/to-length");e({target:"String",stat:true},{raw:function(r){var e=t(r.raw);var a=n(e.length);var i=arguments.length;var s=[];var o=0;while(a>o){s.push(String(e[o++]));if(o<i)s.push(String(arguments[o]))}return s.join("")}})},
31"es.string.code-point-at.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/string-multibyte").codeAt;e({target:"String",proto:true},{codePointAt:function(r){return t(this,r)}})},
31"es.string.ends-with.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/object-get-own-property-descriptor").f;var n=r("../internals/to-length");var a=r("../internals/not-a-regexp");var i=r("../internals/require-object-coercible");var s=r("../internals/correct-is-regexp-logic");var o=r("../internals/is-pure");var l="".endsWith;var c=Math.min;var u=s("endsWith");var f=!o&&!u&&!!function(){var r=t(String.prototype,"endsWith");return r&&!r.writable}();e({target:"String",proto:true,forced:!f&&!u},{endsWith:function(r){var e=String(i(this));a(r);var t=arguments.length>1?arguments[1]:void 0;var s=n(e.length);var o=void 0===t?s:c(n(t),s);var u=String(r);return l?l.call(e,u,o):e.slice(o-u.length,o)===u}})},
31"es.string.includes.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/not-a-regexp");var n=r("../internals/require-object-coercible");var a=r("../internals/correct-is-regexp-logic");e({target:"String",proto:true,forced:!a("includes")},{includes:function(r){return!!~String(n(this)).indexOf(t(r),arguments.length>1?arguments[1]:void 0)}})},
31"es.string.match-all.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-iterator-constructor");var n=r("../internals/require-object-coercible");var a=r("../internals/to-length");var i=r("../internals/a-function");var s=r("../internals/an-object");var o=r("../internals/classof-raw");var l=r("../internals/is-regexp");var c=r("../internals/regexp-flags");var u=r("../internals/create-non-enumerable-property");var f=r("../internals/fails");var v=r("../internals/well-known-symbol");var p=r("../internals/species-constructor");var d=r("../internals/advance-string-index");var g=r("../internals/internal-state");var h=r("../internals/is-pure");var y=v("matchAll");var b="RegExp String";var m=b+" Iterator";var j=g.set;var x=g.getterFor(m);var w=RegExp.prototype;var S=w.exec;var k="".matchAll;var E=!!k&&!f(function(){"a".matchAll(/./)});var O=function(r,e){var t=r.exec;var n;if("function"==typeof t){n=t.call(r,e);if("object"!=typeof n)throw TypeError("Incorrect exec result");return n}return S.call(r,e)};var A=t(function(r,e,t,n){j(this,{type:m,regexp:r,string:e,global:t,unicode:n,done:false})},b,function(){var r=x(this);if(r.done)return{value:void 0,done:true};var e=r.regexp;var t=r.string;var n=O(e,t);if(null===n)return{value:void 0,done:r.done=true};if(r.global){if(""==String(n[0]))e.lastIndex=d(t,a(e.lastIndex),r.unicode);return{value:n,done:false}}r.done=true;return{value:n,done:false}});var M=function(r){var e=s(this);var t=String(r);var n,i,o,l,u,f;n=p(e,RegExp);i=e.flags;if(void 0===i&&e instanceof RegExp&&!("flags"in w))i=c.call(e);o=void 0===i?"":String(i);l=new n(n===RegExp?e.source:e,o);u=!!~o.indexOf("g");f=!!~o.indexOf("u");l.lastIndex=a(e.lastIndex);return new A(l,t,u,f)};e({target:"String",proto:true,forced:E},{matchAll:function(r){var e=n(this);var t,a,s,u;if(null!=r){if(l(r)){t=String(n("flags"in w?r.flags:c.call(r)));if(!~t.indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes")}if(E)return k.apply(e,arguments);s=r[y];if(void 0===s&&h&&"RegExp"==o(r))s=M;if(null!=s)return i(s).call(r,e)}else if(E)return k.apply(e,arguments);a=String(e);u=new RegExp(r,"g");return h?M.call(u,a):u[y](a)}});h||y in w||u(w,y,M)},
31"es.string.pad-end.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/string-pad").end;var n=r("../internals/string-pad-webkit-bug");e({target:"String",proto:true,forced:n},{padEnd:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})},
31"es.string.pad-start.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/string-pad").start;var n=r("../internals/string-pad-webkit-bug");e({target:"String",proto:true,forced:n},{padStart:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})},
31"es.string.repeat.js":function(r){var e=r("../internals/export");var t=r("../internals/string-repeat");e({target:"String",proto:true},{repeat:t})},
31"es.string.replace-all.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/require-object-coercible");var n=r("../internals/is-regexp");var a=r("../internals/regexp-flags");var i=r("../internals/get-substitution");var s=r("../internals/well-known-symbol");var o=r("../internals/is-pure");var l=s("replace");var c=RegExp.prototype;var u=Math.max;var f=function(r,e,t){if(t>r.length)return -1;if(""===e)return t;return r.indexOf(e,t)};e({target:"String",proto:true},{replaceAll:function(r,e){var s=t(this);var v,p,d,g,h,y,b,m,j;var x=0;var w=0;var S="";if(null!=r){v=n(r);if(v){p=String(t("flags"in c?r.flags:a.call(r)));if(!~p.indexOf("g"))throw TypeError("`.replaceAll` does not allow non-global regexes")}d=r[l];if(void 0!==d)return d.call(r,s,e);if(o&&v)return String(s).replace(r,e)}g=String(s);h=String(r);y="function"==typeof e;if(!y)e=String(e);b=h.length;m=u(1,b);x=f(g,h,0);while(-1!==x){j=y?String(e(h,x,g)):i(h,g,x,[],void 0,e);S+=g.slice(w,x)+j;w=x+b;x=f(g,h,x+m)}if(w<g.length)S+=g.slice(w);return S}})},
31"es.string.starts-with.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/object-get-own-property-descriptor").f;var n=r("../internals/to-length");var a=r("../internals/not-a-regexp");var i=r("../internals/require-object-coercible");var s=r("../internals/correct-is-regexp-logic");var o=r("../internals/is-pure");var l="".startsWith;var c=Math.min;var u=s("startsWith");var f=!o&&!u&&!!function(){var r=t(String.prototype,"startsWith");return r&&!r.writable}();e({target:"String",proto:true,forced:!f&&!u},{startsWith:function(r){var e=String(i(this));a(r);var t=n(c(arguments.length>1?arguments[1]:void 0,e.length));var s=String(r);return l?l.call(e,s,t):e.slice(t,t+s.length)===s}})},
31"es.string.substr.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/require-object-coercible");var n=r("../internals/to-integer");var a="".slice;var i=Math.max;var s=Math.min;e({target:"String",proto:true},{substr:function(r,e){var o=String(t(this));var l=o.length;var c=n(r);var u,f;if(c===1/0)c=0;if(c<0)c=i(l+c,0);u=void 0===e?l:n(e);if(u<=0||u===1/0)return"";f=s(c+u,l);return c>=f?"":a.call(o,c,f)}})},
31"es.string.trim.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/string-trim").trim;var n=r("../internals/string-trim-forced");e({target:"String",proto:true,forced:n("trim")},{trim:function(){return t(this)}})},
31"es.string.trim-start.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/string-trim").start;var n=r("../internals/string-trim-forced");var a=n("trimStart");var i=a?function(){return t(this)}:"".trimStart;e({target:"String",proto:true,forced:a},{trimStart:i,trimLeft:i})},
31"es.string.trim-end.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/string-trim").end;var n=r("../internals/string-trim-forced");var a=n("trimEnd");var i=a?function(){return t(this)}:"".trimEnd;e({target:"String",proto:true,forced:a},{trimEnd:i,trimRight:i})},
31"es.string.anchor.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("anchor")},{anchor:function(r){return t(this,"a","name",r)}})},
31"es.string.big.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("big")},{big:function(){return t(this,"big","","")}})},
31"es.string.blink.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("blink")},{blink:function(){return t(this,"blink","","")}})},
31"es.string.bold.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("bold")},{bold:function(){return t(this,"b","","")}})},
31"es.string.fixed.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("fixed")},{fixed:function(){return t(this,"tt","","")}})},
31"es.string.fontcolor.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("fontcolor")},{fontcolor:function(r){return t(this,"font","color",r)}})},
31"es.string.fontsize.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("fontsize")},{fontsize:function(r){return t(this,"font","size",r)}})},
31"es.string.italics.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("italics")},{italics:function(){return t(this,"i","","")}})},
31"es.string.link.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("link")},{link:function(r){return t(this,"a","href",r)}})},
31"es.string.small.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("small")},{small:function(){return t(this,"small","","")}})},
31"es.string.strike.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("strike")},{strike:function(){return t(this,"strike","","")}})},
31"es.string.sub.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("sub")},{sub:function(){return t(this,"sub","","")}})},
31"es.string.sup.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/create-html");var n=r("../internals/string-html-forced");e({target:"String",proto:true,forced:n("sup")},{sup:function(){return t(this,"sup","","")}})},
31"es.weak-map.js":function(r,e,t){"use strict";var n=r("../internals/global");var a=r("../internals/redefine-all");var i=r("../internals/internal-metadata");var s=r("../internals/collection");var o=r("../internals/collection-weak");var l=r("../internals/is-object");var c=r("../internals/internal-state").enforce;var u=r("../internals/native-weak-map");var f=!n.ActiveXObject&&"ActiveXObject"in n;var v=Object.isExtensible;var p;var d=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}};var g=t.exports=s("WeakMap",d,o);if(u&&f){p=o.getConstructor(d,"WeakMap",true);i.REQUIRED=true;var h=g.prototype;var y=h["delete"];var b=h.has;var m=h.get;var j=h.set;a(h,{delete:function(r){if(l(r)&&!v(r)){var e=c(this);if(!e.frozen)e.frozen=new p;return y.call(this,r)||e.frozen["delete"](r)}return y.call(this,r)},has:function(r){if(l(r)&&!v(r)){var e=c(this);if(!e.frozen)e.frozen=new p;return b.call(this,r)||e.frozen.has(r)}return b.call(this,r)},get:function(r){if(l(r)&&!v(r)){var e=c(this);if(!e.frozen)e.frozen=new p;return b.call(this,r)?m.call(this,r):e.frozen.get(r)}return m.call(this,r)},set:function(r,e){if(l(r)&&!v(r)){var t=c(this);if(!t.frozen)t.frozen=new p;b.call(this,r)?j.call(this,r,e):t.frozen.set(r,e)}else j.call(this,r,e);return this}})}},
31"es.weak-set.js":function(r){"use strict";var e=r("../internals/collection");var t=r("../internals/collection-weak");e("WeakSet",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},t)},
31"es.number.epsilon.js":function(r){var e=r("../internals/export");e({target:"Number",stat:true},{EPSILON:Math.pow(2,-52)})},
31"es.number.is-finite.js":function(r){var e=r("../internals/export");var t=r("../internals/number-is-finite");e({target:"Number",stat:true},{isFinite:t})},
31"es.number.is-integer.js":function(r){var e=r("../internals/export");var t=r("../internals/is-integer");e({target:"Number",stat:true},{isInteger:t})},
31"es.number.is-nan.js":function(r){var e=r("../internals/export");e({target:"Number",stat:true},{isNaN:function(r){return r!=r}})},
31"es.number.is-safe-integer.js":function(r){var e=r("../internals/export");var t=r("../internals/is-integer");var n=Math.abs;e({target:"Number",stat:true},{isSafeInteger:function(r){return t(r)&&n(r)<=0x1fffffffffffff}})},
31"es.number.max-safe-integer.js":function(r){var e=r("../internals/export");e({target:"Number",stat:true},{MAX_SAFE_INTEGER:0x1fffffffffffff})},
31"es.number.min-safe-integer.js":function(r){var e=r("../internals/export");e({target:"Number",stat:true},{MIN_SAFE_INTEGER:-0x1fffffffffffff})},
31"es.number.parse-float.js":function(r){var e=r("../internals/export");var t=r("../internals/number-parse-float");e({target:"Number",stat:true,forced:Number.parseFloat!=t},{parseFloat:t})},
31"es.number.parse-int.js":function(r){var e=r("../internals/export");var t=r("../internals/number-parse-int");e({target:"Number",stat:true,forced:Number.parseInt!=t},{parseInt:t})},
31"es.typed-array.uint8-array.js":function(r){var e=r("../internals/typed-array-constructor");e("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}})},
31"es.typed-array.uint32-array.js":function(r){var e=r("../internals/typed-array-constructor");e("Uint32",function(r){return function(e,t,n){return r(this,e,t,n)}})}},internals:{
31"export.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/object-get-own-property-descriptor").f;var i=r("../internals/create-non-enumerable-property");var s=r("../internals/redefine");var o=r("../internals/set-global");var l=r("../internals/copy-constructor-properties");var c=r("../internals/is-forced");t.exports=function(r,e){var t=r.target;var u=r.global;var f=r.stat;var v,p,d,g,h,y;p=u?n:f?n[t]||o(t,{}):(n[t]||{}).prototype;if(p)for(d in e){h=e[d];if(r.noTargetGet){y=a(p,d);g=y&&y.value}else g=p[d];v=c(u?d:t+(f?".":"#")+d,r.forced);if(!v&&void 0!==g){if(typeof h===typeof g)continue;l(h,g)}if(r.sham||g&&g.sham)i(h,"sham",true);s(p,d,h,r)}}},
31"global.js":function(e,t,n){var a=function(r){return r&&r.Math==Math&&r};n.exports=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof r&&r)||function(){return this}()||Function("return this")()},
31"object-get-own-property-descriptor.js":function(r,e){var t=r("../internals/descriptors");var n=r("../internals/object-property-is-enumerable");var a=r("../internals/create-property-descriptor");var i=r("../internals/to-indexed-object");var s=r("../internals/to-primitive");var o=r("../internals/has");var l=r("../internals/ie8-dom-define");var c=Object.getOwnPropertyDescriptor;e.f=t?c:function(r,e){r=i(r);e=s(e,true);if(l)try{return c(r,e)}catch(r){}if(o(r,e))return a(!n.f.call(r,e),r[e])}},
31"descriptors.js":function(r,e,t){var n=r("../internals/fails");t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},
31"fails.js":function(r,e,t){t.exports=function(r){try{return!!r()}catch(r){return true}}},
31"object-property-is-enumerable.js":function(r,e){"use strict";var t={}.propertyIsEnumerable;var n=Object.getOwnPropertyDescriptor;var a=n&&!t.call({1:2},1);e.f=a?function(r){var e=n(this,r);return!!e&&e.enumerable}:t},
31"create-property-descriptor.js":function(r,e,t){t.exports=function(r,e){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:e}}},
31"to-indexed-object.js":function(r,e,t){var n=r("../internals/indexed-object");var a=r("../internals/require-object-coercible");t.exports=function(r){return n(a(r))}},
31"indexed-object.js":function(r,e,t){var n=r("../internals/fails");var a=r("../internals/classof-raw");var i="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(r){return"String"==a(r)?i.call(r,""):Object(r)}:Object},
31"classof-raw.js":function(r,e,t){var n={}.toString;t.exports=function(r){return n.call(r).slice(8,-1)}},
31"require-object-coercible.js":function(r,e,t){t.exports=function(r){if(void 0==r)throw TypeError("Can't call method on "+r);return r}},
31"to-primitive.js":function(r,e,t){var n=r("../internals/is-object");t.exports=function(r,e){if(!n(r))return r;var t,a;if(e&&"function"==typeof(t=r.toString)&&!n(a=t.call(r)))return a;if("function"==typeof(t=r.valueOf)&&!n(a=t.call(r)))return a;if(!e&&"function"==typeof(t=r.toString)&&!n(a=t.call(r)))return a;throw TypeError("Can't convert object to primitive value")}},
31"is-object.js":function(r,e,t){t.exports=function(r){return"object"==typeof r?null!==r:"function"==typeof r}},
31"has.js":function(r,e,t){var n=r("../internals/to-object");var a={}.hasOwnProperty;t.exports=Object.hasOwn||function(r,e){return a.call(n(r),e)}},
31"to-object.js":function(r,e,t){var n=r("../internals/require-object-coercible");t.exports=function(r){return Object(n(r))}},
31"ie8-dom-define.js":function(r,e,t){var n=r("../internals/descriptors");var a=r("../internals/fails");var i=r("../internals/document-create-element");t.exports=!n&&!a(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},
31"document-create-element.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/is-object");var i=n.document;var s=a(i)&&a(i.createElement);t.exports=function(r){return s?i.createElement(r):{}}},
31"create-non-enumerable-property.js":function(r,e,t){var n=r("../internals/descriptors");var a=r("../internals/object-define-property");var i=r("../internals/create-property-descriptor");t.exports=n?function(r,e,t){return a.f(r,e,i(1,t))}:function(r,e,t){r[e]=t;return r}},
31"object-define-property.js":function(r,e){var t=r("../internals/descriptors");var n=r("../internals/ie8-dom-define");var a=r("../internals/an-object");var i=r("../internals/to-primitive");var s=Object.defineProperty;e.f=t?s:function(r,e,t){a(r);e=i(e,true);a(t);if(n)try{return s(r,e,t)}catch(r){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");if("value"in t)r[e]=t.value;return r}},
31"an-object.js":function(r,e,t){var n=r("../internals/is-object");t.exports=function(r){if(!n(r))throw TypeError(String(r)+" is not an object");return r}},
31"redefine.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/create-non-enumerable-property");var i=r("../internals/has");var s=r("../internals/set-global");var o=r("../internals/inspect-source");var l=r("../internals/internal-state");var c=l.get;var u=l.enforce;var f=String(String).split("String");(t.exports=function(r,e,t,o){var l=o?!!o.unsafe:false;var c=o?!!o.enumerable:false;var v=o?!!o.noTargetGet:false;var p;if("function"==typeof t){if("string"==typeof e&&!i(t,"name"))a(t,"name",e);p=u(t);if(!p.source)p.source=f.join("string"==typeof e?e:"")}if(r===n){if(c)r[e]=t;else s(e,t);return}if(l){if(!v&&r[e])c=true}else delete r[e];if(c)r[e]=t;else a(r,e,t)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||o(this)})},
31"set-global.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/create-non-enumerable-property");t.exports=function(r,e){try{a(n,r,e)}catch(t){n[r]=e}return e}},
31"inspect-source.js":function(r,e,t){var n=r("../internals/shared-store");var a=Function.toString;if("function"!=typeof n.inspectSource)n.inspectSource=function(r){return a.call(r)};t.exports=n.inspectSource},
31"shared-store.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/set-global");var i="__core-js_shared__";var s=n[i]||a(i,{});t.exports=s},
31"internal-state.js":function(r,e,t){var n=r("../internals/native-weak-map");var a=r("../internals/global");var i=r("../internals/is-object");var s=r("../internals/create-non-enumerable-property");var o=r("../internals/has");var l=r("../internals/shared-store");var c=r("../internals/shared-key");var u=r("../internals/hidden-keys");var f="Object already initialized";var v=a.WeakMap;var p,d,g;var h=function(r){return g(r)?d(r):p(r,{})};var y=function(r){return function(e){var t;if(!i(e)||(t=d(e)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return t}};if(n||l.state){var b=l.state||(l.state=new v);var m=b.get;var j=b.has;var x=b.set;p=function(r,e){if(j.call(b,r))throw new TypeError(f);e.facade=r;x.call(b,r,e);return e};d=function(r){return m.call(b,r)||{}};g=function(r){return j.call(b,r)}}else{var w=c("state");u[w]=true;p=function(r,e){if(o(r,w))throw new TypeError(f);e.facade=r;s(r,w,e);return e};d=function(r){return o(r,w)?r[w]:{}};g=function(r){return o(r,w)}}t.exports={set:p,get:d,has:g,enforce:h,getterFor:y}},
31"native-weak-map.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/inspect-source");var i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(a(i))},
31"shared-key.js":function(r,e,t){var n=r("../internals/shared");var a=r("../internals/uid");var i=n("keys");t.exports=function(r){return i[r]||(i[r]=a(r))}},
31"shared.js":function(r,e,t){var n=r("../internals/is-pure");var a=r("../internals/shared-store");(t.exports=function(r,e){return a[r]||(a[r]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.2",mode:n?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},
31"is-pure.js":function(r,e,t){t.exports=false},
31"uid.js":function(r,e,t){var n=0;var a=Math.random();t.exports=function(r){return"Symbol("+String(void 0===r?"":r)+")_"+(++n+a).toString(36)}},
31"hidden-keys.js":function(r,e,t){t.exports={}},
31"copy-constructor-properties.js":function(r,e,t){var n=r("../internals/has");var a=r("../internals/own-keys");var i=r("../internals/object-get-own-property-descriptor");var s=r("../internals/object-define-property");t.exports=function(r,e){var t=a(e);var o=s.f;var l=i.f;for(var c=0;c<t.length;c++){var u=t[c];if(!n(r,u))o(r,u,l(e,u))}}},
31"own-keys.js":function(r,e,t){var n=r("../internals/get-built-in");var a=r("../internals/object-get-own-property-names");var i=r("../internals/object-get-own-property-symbols");var s=r("../internals/an-object");t.exports=n("Reflect","ownKeys")||function(r){var e=a.f(s(r));var t=i.f;return t?e.concat(t(r)):e}},
31"get-built-in.js":function(r,e,t){var n=r("../internals/path");var a=r("../internals/global");var i=function(r){return"function"==typeof r?r:void 0};t.exports=function(r,e){return arguments.length<2?i(n[r])||i(a[r]):n[r]&&n[r][e]||a[r]&&a[r][e]}},
31"path.js":function(r,e,t){var n=r("../internals/global");t.exports=n},
31"object-get-own-property-names.js":function(r,e){var t=r("../internals/object-keys-internal");var n=r("../internals/enum-bug-keys");var a=n.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(r){return t(r,a)}},
31"object-keys-internal.js":function(r,e,t){var n=r("../internals/has");var a=r("../internals/to-indexed-object");var i=r("../internals/array-includes").indexOf;var s=r("../internals/hidden-keys");t.exports=function(r,e){var t=a(r);var o=0;var l=[];var c;for(c in t)!n(s,c)&&n(t,c)&&l.push(c);while(e.length>o)if(n(t,c=e[o++]))~i(l,c)||l.push(c);return l}},
31"array-includes.js":function(r,e,t){var n=r("../internals/to-indexed-object");var a=r("../internals/to-length");var i=r("../internals/to-absolute-index");var s=function(r){return function(e,t,s){var o=n(e);var l=a(o.length);var c=i(s,l);var u;if(r&&t!=t)while(l>c){u=o[c++];if(u!=u)return true}else for(;l>c;c++)if((r||c in o)&&o[c]===t)return r||c||0;return!r&&-1}};t.exports={includes:s(true),indexOf:s(false)}},
31"to-length.js":function(r,e,t){var n=r("../internals/to-integer");var a=Math.min;t.exports=function(r){return r>0?a(n(r),0x1fffffffffffff):0}},
31"to-integer.js":function(r,e,t){var n=Math.ceil;var a=Math.floor;t.exports=function(r){return isNaN(r*=1)?0:(r>0?a:n)(r)}},
31"to-absolute-index.js":function(r,e,t){var n=r("../internals/to-integer");var a=Math.max;var i=Math.min;t.exports=function(r,e){var t=n(r);return t<0?a(t+e,0):i(t,e)}},
31"enum-bug-keys.js":function(r,e,t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},
31"object-get-own-property-symbols.js":function(r,e){e.f=Object.getOwnPropertySymbols},
31"is-forced.js":function(r,e,t){var n=r("../internals/fails");var a=/#|\.prototype\./;var i=function(r,e){var t=o[s(r)];return t==c?true:t==l?false:"function"==typeof e?n(e):!!e};var s=i.normalize=function(r){return String(r).replace(a,".").toLowerCase()};var o=i.data={};var l=i.NATIVE="N";var c=i.POLYFILL="P";t.exports=i},
31"is-array.js":function(r,e,t){var n=r("../internals/classof-raw");t.exports=Array.isArray||function(r){return"Array"==n(r)}},
31"create-property.js":function(r,e,t){"use strict";var n=r("../internals/to-primitive");var a=r("../internals/object-define-property");var i=r("../internals/create-property-descriptor");t.exports=function(r,e,t){var s=n(e);if(s in r)a.f(r,s,i(0,t));else r[s]=t}},
31"array-species-create.js":function(r,e,t){var n=r("../internals/is-object");var a=r("../internals/is-array");var i=r("../internals/well-known-symbol");var s=i("species");t.exports=function(r,e){var t;if(a(r)){t=r.constructor;if("function"==typeof t&&(t===Array||a(t.prototype)))t=void 0;else if(n(t)){t=t[s];if(null===t)t=void 0}}return new(void 0===t?Array:t)(0===e?0:e)}},
31"well-known-symbol.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/shared");var i=r("../internals/has");var s=r("../internals/uid");var o=r("../internals/native-symbol");var l=r("../internals/use-symbol-as-uid");var c=a("wks");var u=n.Symbol;var f=l?u:u&&u.withoutSetter||s;t.exports=function(r){if(!i(c,r)||!(o||"string"==typeof c[r]))if(o&&i(u,r))c[r]=u[r];else c[r]=f("Symbol."+r);return c[r]}},
31"native-symbol.js":function(r,e,n){var a=r("../internals/engine-v8-version");var i=r("../internals/fails");n.exports=!!Object.getOwnPropertySymbols&&!i(function(){var r=t();return!String(r)||!(Object(r)instanceof t)||!t.sham&&a&&a<41})},
31"engine-v8-version.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/engine-user-agent");var i=n.process;var s=i&&i.versions;var o=s&&s.v8;var l,c;if(o){l=o.split(".");c=l[0]<4?1:l[0]+l[1]}else if(a){l=a.match(/Edge\/(\d+)/);if(!l||l[1]>=74){l=a.match(/Chrome\/(\d+)/);if(l)c=l[1]}}t.exports=c&&+c},
31"engine-user-agent.js":function(r,e,t){var n=r("../internals/get-built-in");t.exports=n("navigator","userAgent")||""},
31"use-symbol-as-uid.js":function(r,e,n){var a=r("../internals/native-symbol");n.exports=a&&!t.sham&&"symbol"==typeof t.iterator},
31"array-method-has-species-support.js":function(r,e,t){var n=r("../internals/fails");var a=r("../internals/well-known-symbol");var i=r("../internals/engine-v8-version");var s=a("species");t.exports=function(r){return i>=51||!n(function(){var e=[];var t=e.constructor={};t[s]=function(){return{foo:1}};return 1!==e[r](Boolean).foo})}},
31"to-string-tag-support.js":function(r,e,t){var n=r("../internals/well-known-symbol");var a=n("toStringTag");var i={};i[a]="z";t.exports="[object z]"===String(i)},
31"object-to-string.js":function(r,e,t){"use strict";var n=r("../internals/to-string-tag-support");var a=r("../internals/classof");t.exports=n?({}).toString:function(){return"[object "+a(this)+"]"}},
31"classof.js":function(r,e,t){var n=r("../internals/to-string-tag-support");var a=r("../internals/classof-raw");var i=r("../internals/well-known-symbol");var s=i("toStringTag");var o="Arguments"==a(function(){return arguments}());var l=function(r,e){try{return r[e]}catch(r){}};t.exports=n?a:function(r){var e,t,n;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(t=l(e=Object(r),s))?t:o?a(e):"Object"==(n=a(e))&&"function"==typeof e.callee?"Arguments":n}},
vendor: 1,031 bytes, line 31
31"object-create.js":function(r,e,t){var n=r("../internals/an-object");var a=r("../internals/object-define-properties");var i=r("../internals/enum-bug-keys");var s=r("../internals/hidden-keys");var o=r("../internals/html");var l=r("../internals/document-create-element");var c=r("../internals/shared-key");var u=">";var f="<";var v="prototype";var p="script";var d=c("IE_PROTO");var g=function(){};var h=function(r){return f+p+u+r+f+"/"+p+u};var y=function(r){r.write(h(""));r.close();var e=r.parentWindow.Object;r=null;return e};var b=function(){var r=l("iframe");var e="java"+p+":";var t;r.style.display="none";o.appendChild(r);r.src=String(e);t=r.contentWindow.document;t.open();t.write(h("document.F=Object"));t.close();return t.F};var m;var j=function(){try{m=document.domain&&new ActiveXObject("htmlfile")}catch(r){}j=m?y(m):b();var r=i.length;while(r--)delete j[v][i[r]];return j()};s[d]=true;t.exports=Object.create||function(r,e){var t;if(null!==r){g[v]=n(r);t=new g;g[v]=null;t[d]=r}else t=j();return void 0===e?t:a(t,e)}},
31"object-define-properties.js":function(r,e,t){var n=r("../internals/descriptors");var a=r("../internals/object-define-property");var i=r("../internals/an-object");var s=r("../internals/object-keys");t.exports=n?Object.defineProperties:function(r,e){i(r);var t=s(e);var n=t.length;var o=0;var l;while(n>o)a.f(r,l=t[o++],e[l]);return r}},
31"object-keys.js":function(r,e,t){var n=r("../internals/object-keys-internal");var a=r("../internals/enum-bug-keys");t.exports=Object.keys||function(r){return n(r,a)}},
31"html.js":function(r,e,t){var n=r("../internals/get-built-in");t.exports=n("document","documentElement")},
31"object-get-own-property-names-external.js":function(r,e,t){var n=r("../internals/to-indexed-object");var a=r("../internals/object-get-own-property-names").f;var i={}.toString;var s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var o=function(r){try{return a(r)}catch(r){return s.slice()}};t.exports.f=function(r){return s&&"[object Window]"==i.call(r)?o(r):a(n(r))}},
31"well-known-symbol-wrapped.js":function(r,e){var t=r("../internals/well-known-symbol");e.f=t},
31"define-well-known-symbol.js":function(r,e,t){var n=r("../internals/path");var a=r("../internals/has");var i=r("../internals/well-known-symbol-wrapped");var s=r("../internals/object-define-property").f;t.exports=function(r){var e=n.Symbol||(n.Symbol={});if(!a(e,r))s(e,r,{value:i.f(r)})}},
31"set-to-string-tag.js":function(r,e,t){var n=r("../internals/object-define-property").f;var a=r("../internals/has");var i=r("../internals/well-known-symbol");var s=i("toStringTag");t.exports=function(r,e,t){if(r&&!a(r=t?r:r.prototype,s))n(r,s,{configurable:true,value:e})}},
31"array-iteration.js":function(r,e,t){var n=r("../internals/function-bind-context");var a=r("../internals/indexed-object");var i=r("../internals/to-object");var s=r("../internals/to-length");var o=r("../internals/array-species-create");var l=[].push;var c=function(r){var e=1==r;var t=2==r;var c=3==r;var u=4==r;var f=6==r;var v=7==r;var p=5==r||f;return function(d,g,h,y){var b=i(d);var m=a(b);var j=n(g,h,3);var x=s(m.length);var w=0;var S=y||o;var k=e?S(d,x):t||v?S(d,0):void 0;var E,O;for(;x>w;w++)if(p||w in m){E=m[w];O=j(E,w,b);if(r)if(e)k[w]=O;else if(O)switch(r){case 3:return true;case 5:return E;case 6:return w;case 2:l.call(k,E)}else switch(r){case 4:return false;case 7:l.call(k,E)}}return f?-1:c||u?u:k}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},
31"function-bind-context.js":function(r,e,t){var n=r("../internals/a-function");t.exports=function(r,e,t){n(r);if(void 0===e)return r;switch(t){case 0:return function(){return r.call(e)};case 1:return function(t){return r.call(e,t)};case 2:return function(t,n){return r.call(e,t,n)};case 3:return function(t,n,a){return r.call(e,t,n,a)}}return function(){return r.apply(e,arguments)}}},
31"a-function.js":function(r,e,t){t.exports=function(r){if("function"!=typeof r)throw TypeError(String(r)+" is not a function");return r}},
31"collection.js":function(r,e,t){"use strict";var n=r("../internals/export");var a=r("../internals/global");var i=r("../internals/is-forced");var s=r("../internals/redefine");var o=r("../internals/internal-metadata");var l=r("../internals/iterate");var c=r("../internals/an-instance");var u=r("../internals/is-object");var f=r("../internals/fails");var v=r("../internals/check-correctness-of-iteration");var p=r("../internals/set-to-string-tag");var d=r("../internals/inherit-if-required");t.exports=function(r,e,t){var g=-1!==r.indexOf("Map");var h=-1!==r.indexOf("Weak");var y=g?"set":"add";var b=a[r];var m=b&&b.prototype;var j=b;var x={};var w=function(r){var e=m[r];s(m,r,"add"==r?function(r){e.call(this,0===r?0:r);return this}:"delete"==r?function(r){return h&&!u(r)?false:e.call(this,0===r?0:r)}:"get"==r?function(r){return h&&!u(r)?void 0:e.call(this,0===r?0:r)}:"has"==r?function(r){return h&&!u(r)?false:e.call(this,0===r?0:r)}:function(r,t){e.call(this,0===r?0:r,t);return this})};var S=i(r,"function"!=typeof b||!(h||m.forEach&&!f(function(){new b().entries().next()})));if(S){j=t.getConstructor(e,r,g,y);o.REQUIRED=true}else if(i(r,true)){var k=new j;var E=k[y](h?{}:-0,1)!=k;var O=f(function(){k.has(1)});var A=v(function(r){new b(r)});var M=!h&&f(function(){var r=new b;var e=5;while(e--)r[y](e,e);return!r.has(-0)});if(!A){j=e(function(e,t){c(e,j,r);var n=d(new b,e,j);if(void 0!=t)l(t,n[y],{that:n,AS_ENTRIES:g});return n});j.prototype=m;m.constructor=j}if(O||M){w("delete");w("has");g&&w("get")}if(M||E)w(y);if(h&&m.clear)delete m.clear}x[r]=j;n({global:true,forced:j!=b},x);p(j,r);if(!h)t.setStrong(j,r,g);return j}},
31"internal-metadata.js":function(r,e,t){var n=r("../internals/hidden-keys");var a=r("../internals/is-object");var i=r("../internals/has");var s=r("../internals/object-define-property").f;var o=r("../internals/uid");var l=r("../internals/freezing");var c=o("meta");var u=0;var f=Object.isExtensible||function(){return true};var v=function(r){s(r,c,{value:{objectID:"O"+u++,weakData:{}}})};var p=function(r,e){if(!a(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!i(r,c)){if(!f(r))return"F";if(!e)return"E";v(r)}return r[c].objectID};var d=function(r,e){if(!i(r,c)){if(!f(r))return true;if(!e)return false;v(r)}return r[c].weakData};var g=function(r){if(l&&h.REQUIRED&&f(r)&&!i(r,c))v(r);return r};var h=t.exports={REQUIRED:false,fastKey:p,getWeakData:d,onFreeze:g};n[c]=true},
31"freezing.js":function(r,e,t){var n=r("../internals/fails");t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},
31"iterate.js":function(r,e,t){var n=r("../internals/an-object");var a=r("../internals/is-array-iterator-method");var i=r("../internals/to-length");var s=r("../internals/function-bind-context");var o=r("../internals/get-iterator-method");var l=r("../internals/iterator-close");var c=function(r,e){this.stopped=r;this.result=e};t.exports=function(r,e,t){var u=t&&t.that;var f=!!(t&&t.AS_ENTRIES);var v=!!(t&&t.IS_ITERATOR);var p=!!(t&&t.INTERRUPTED);var d=s(e,u,1+f+p);var g,h,y,b,m,j,x;var w=function(r){if(g)l(g);return new c(true,r)};var S=function(r){if(f){n(r);return p?d(r[0],r[1],w):d(r[0],r[1])}return p?d(r,w):d(r)};if(v)g=r;else{h=o(r);if("function"!=typeof h)throw TypeError("Target is not iterable");if(a(h)){for(y=0,b=i(r.length);b>y;y++){m=S(r[y]);if(m&&m instanceof c)return m}return new c(false)}g=h.call(r)}j=g.next;while(!(x=j.call(g)).done){try{m=S(x.value)}catch(r){l(g);throw r}if("object"==typeof m&&m&&m instanceof c)return m}return new c(false)}},
31"is-array-iterator-method.js":function(r,e,t){var n=r("../internals/well-known-symbol");var a=r("../internals/iterators");var i=n("iterator");var s=Array.prototype;t.exports=function(r){return void 0!==r&&(a.Array===r||s[i]===r)}},
31"iterators.js":function(r,e,t){t.exports={}},
31"get-iterator-method.js":function(r,e,t){var n=r("../internals/classof");var a=r("../internals/iterators");var i=r("../internals/well-known-symbol");var s=i("iterator");t.exports=function(r){if(void 0!=r)return r[s]||r["@@iterator"]||a[n(r)]}},
31"iterator-close.js":function(r,e,t){var n=r("../internals/an-object");t.exports=function(r){var e=r["return"];if(void 0!==e)return n(e.call(r)).value}},
31"an-instance.js":function(r,e,t){t.exports=function(r,e,t){if(!(r instanceof e))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return r}},
vendor: 441 bytes, line 31
31"check-correctness-of-iteration.js":function(r,e,t){var n=r("../internals/well-known-symbol");var a=n("iterator");var i=false;try{var s=0;var o={next:function(){return{done:!!s++}},return:function(){i=true}};o[a]=function(){return this};Array.from(o,function(){throw 2})}catch(r){}t.exports=function(r,e){if(!e&&!i)return false;var t=false;try{var n={};n[a]=function(){return{next:function(){return{done:t=true}}}};r(n)}catch(r){}return t}},
31"inherit-if-required.js":function(r,e,t){var n=r("../internals/is-object");var a=r("../internals/object-set-prototype-of");t.exports=function(r,e,t){var i,s;if(a&&"function"==typeof(i=e.constructor)&&i!==t&&n(s=i.prototype)&&s!==t.prototype)a(r,s);return r}},
31"object-set-prototype-of.js":function(r,e,t){var n=r("../internals/an-object");var a=r("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=false;var e={};var t;try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;t.call(e,[]);r=e instanceof Array}catch(r){}return function(e,i){n(e);a(i);if(r)t.call(e,i);else e.__proto__=i;return e}}():void 0)},
31"a-possible-prototype.js":function(r,e,t){var n=r("../internals/is-object");t.exports=function(r){if(!n(r)&&null!==r)throw TypeError("Can't set "+String(r)+" as a prototype");return r}},
31"collection-strong.js":function(r,e,t){"use strict";var n=r("../internals/object-define-property").f;var a=r("../internals/object-create");var i=r("../internals/redefine-all");var s=r("../internals/function-bind-context");var o=r("../internals/an-instance");var l=r("../internals/iterate");var c=r("../internals/define-iterator");var u=r("../internals/set-species");var f=r("../internals/descriptors");var v=r("../internals/internal-metadata").fastKey;var p=r("../internals/internal-state");var d=p.set;var g=p.getterFor;t.exports={getConstructor:function(r,e,t,c){var u=r(function(r,n){o(r,u,e);d(r,{type:e,index:a(null),first:void 0,last:void 0,size:0});if(!f)r.size=0;if(void 0!=n)l(n,r[c],{that:r,AS_ENTRIES:t})});var p=g(e);var h=function(r,e,t){var n=p(r);var a=y(r,e);var i,s;if(a)a.value=t;else{n.last=a={index:s=v(e,true),key:e,value:t,previous:i=n.last,next:void 0,removed:false};if(!n.first)n.first=a;if(i)i.next=a;if(f)n.size++;else r.size++;if("F"!==s)n.index[s]=a}return r};var y=function(r,e){var t=p(r);var n=v(e);var a;if("F"!==n)return t.index[n];for(a=t.first;a;a=a.next)if(a.key==e)return a};i(u.prototype,{clear:function(){var r=this;var e=p(r);var t=e.index;var n=e.first;while(n){n.removed=true;if(n.previous)n.previous=n.previous.next=void 0;delete t[n.index];n=n.next}e.first=e.last=void 0;if(f)e.size=0;else r.size=0},delete:function(r){var e=this;var t=p(e);var n=y(e,r);if(n){var a=n.next;var i=n.previous;delete t.index[n.index];n.removed=true;if(i)i.next=a;if(a)a.previous=i;if(t.first==n)t.first=a;if(t.last==n)t.last=i;if(f)t.size--;else e.size--}return!!n},forEach:function(r){var e=p(this);var t=s(r,arguments.length>1?arguments[1]:void 0,3);var n;while(n=n?n.next:e.first){t(n.value,n.key,this);while(n&&n.removed)n=n.previous}},has:function(r){return!!y(this,r)}});i(u.prototype,t?{get:function(r){var e=y(this,r);return e&&e.value},set:function(r,e){return h(this,0===r?0:r,e)}}:{add:function(r){return h(this,r=0===r?0:r,r)}});if(f)n(u.prototype,"size",{get:function(){return p(this).size}});return u},setStrong:function(r,e,t){var n=e+" Iterator";var a=g(e);var i=g(n);c(r,e,function(r,e){d(this,{type:n,target:r,state:a(r),kind:e,last:void 0})},function(){var r=i(this);var e=r.kind;var t=r.last;while(t&&t.removed)t=t.previous;if(!r.target||!(r.last=t=t?t.next:r.state.first)){r.target=void 0;return{value:void 0,done:true}}if("keys"==e)return{value:t.key,done:false};if("values"==e)return{value:t.value,done:false};return{value:[t.key,t.value],done:false}},t?"entries":"values",!t,true);u(e)}}},
31"redefine-all.js":function(r,e,t){var n=r("../internals/redefine");t.exports=function(r,e,t){for(var a in e)n(r,a,e[a],t);return r}},
31"define-iterator.js":function(r,e,t){"use strict";var n=r("../internals/export");var a=r("../internals/create-iterator-constructor");var i=r("../internals/object-get-prototype-of");var s=r("../internals/object-set-prototype-of");var o=r("../internals/set-to-string-tag");var l=r("../internals/create-non-enumerable-property");var c=r("../internals/redefine");var u=r("../internals/well-known-symbol");var f=r("../internals/is-pure");var v=r("../internals/iterators");var p=r("../internals/iterators-core");var d=p.IteratorPrototype;var g=p.BUGGY_SAFARI_ITERATORS;var h=u("iterator");var y="keys";var b="values";var m="entries";var j=function(){return this};t.exports=function(r,e,t,u,p,x,w){a(t,e,u);var S=function(r){if(r===p&&M)return M;if(!g&&r in O)return O[r];switch(r){case y:return function(){return new t(this,r)};case b:return function(){return new t(this,r)};case m:return function(){return new t(this,r)}}return function(){return new t(this)}};var k=e+" Iterator";var E=false;var O=r.prototype;var A=O[h]||O["@@iterator"]||p&&O[p];var M=!g&&A||S(p);var I="Array"==e?O.entries||A:A;var R,T,P;if(I){R=i(I.call(new r));if(d!==Object.prototype&&R.next){if(!f&&i(R)!==d){if(s)s(R,d);else if("function"!=typeof R[h])l(R,h,j)}o(R,k,true,true);if(f)v[k]=j}}if(p==b&&A&&A.name!==b){E=true;M=function(){return A.call(this)}}if((!f||w)&&O[h]!==M)l(O,h,M);v[e]=M;if(p){T={values:S(b),keys:x?M:S(y),entries:S(m)};if(w){for(P in T)if(g||E||!(P in O))c(O,P,T[P])}else n({target:e,proto:true,forced:g||E},T)}return T}},
31"create-iterator-constructor.js":function(r,e,t){"use strict";var n=r("../internals/iterators-core").IteratorPrototype;var a=r("../internals/object-create");var i=r("../internals/create-property-descriptor");var s=r("../internals/set-to-string-tag");var o=r("../internals/iterators");var l=function(){return this};t.exports=function(r,e,t){var c=e+" Iterator";r.prototype=a(n,{next:i(1,t)});s(r,c,false,true);o[c]=l;return r}},
31"iterators-core.js":function(r,e,t){"use strict";var n=r("../internals/fails");var a=r("../internals/object-get-prototype-of");var i=r("../internals/create-non-enumerable-property");var s=r("../internals/has");var o=r("../internals/well-known-symbol");var l=r("../internals/is-pure");var c=o("iterator");var u=false;var f=function(){return this};var v,p,d;if([].keys){d=[].keys();if("next"in d){p=a(a(d));if(p!==Object.prototype)v=p}else u=true}var g=void 0==v||n(function(){var r={};return v[c].call(r)!==r});if(g)v={};if((!l||g)&&!s(v,c))i(v,c,f);t.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:u}},
31"object-get-prototype-of.js":function(r,e,t){var n=r("../internals/has");var a=r("../internals/to-object");var i=r("../internals/shared-key");var s=r("../internals/correct-prototype-getter");var o=i("IE_PROTO");var l=Object.prototype;t.exports=s?Object.getPrototypeOf:function(r){r=a(r);if(n(r,o))return r[o];if("function"==typeof r.constructor&&r instanceof r.constructor)return r.constructor.prototype;return r instanceof Object?l:null}},
31"correct-prototype-getter.js":function(r,e,t){var n=r("../internals/fails");t.exports=!n(function(){function r(){}r.prototype.constructor=null;return Object.getPrototypeOf(new r)!==r.prototype})},
31"set-species.js":function(r,e,t){"use strict";var n=r("../internals/get-built-in");var a=r("../internals/object-define-property");var i=r("../internals/well-known-symbol");var s=r("../internals/descriptors");var o=i("species");t.exports=function(r){var e=n(r);var t=a.f;if(s&&e&&!e[o])t(e,o,{configurable:true,get:function(){return this}})}},
vendor: 444 bytes, line 31
31"string-multibyte.js":function(r,e,t){var n=r("../internals/to-integer");var a=r("../internals/require-object-coercible");var i=function(r){return function(e,t){var i=String(a(e));var s=n(t);var o=i.length;var l,c;if(s<0||s>=o)return r?"":void 0;l=i.charCodeAt(s);return l<55296||l>56319||s+1===o||(c=i.charCodeAt(s+1))<56320||c>57343?r?i.charAt(s):l:r?i.slice(s,s+2):(l-55296<<10)+(c-56320)+65536}};t.exports={codeAt:i(false),charAt:i(true)}},
31"dom-iterables.js":function(r,e,t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},
31"add-to-unscopables.js":function(r,e,t){var n=r("../internals/well-known-symbol");var a=r("../internals/object-create");var i=r("../internals/object-define-property");var s=n("unscopables");var o=Array.prototype;if(void 0==o[s])i.f(o,s,{configurable:true,value:a(null)});t.exports=function(r){o[s][r]=true}},
31"array-from.js":function(r,e,t){"use strict";var n=r("../internals/function-bind-context");var a=r("../internals/to-object");var i=r("../internals/call-with-safe-iteration-closing");var s=r("../internals/is-array-iterator-method");var o=r("../internals/to-length");var l=r("../internals/create-property");var c=r("../internals/get-iterator-method");t.exports=function(r){var e=a(r);var t="function"==typeof this?this:Array;var u=arguments.length;var f=u>1?arguments[1]:void 0;var v=void 0!==f;var p=c(e);var d=0;var g,h,y,b,m,j;if(v)f=n(f,u>2?arguments[2]:void 0,2);if(void 0==p||t==Array&&s(p)){g=o(e.length);h=new t(g);for(;g>d;d++){j=v?f(e[d],d):e[d];l(h,d,j)}}else{b=p.call(e);m=b.next;h=new t;for(;!(y=m.call(b)).done;d++){j=v?i(b,f,[y.value,d],true):y.value;l(h,d,j)}}h.length=d;return h}},
31"call-with-safe-iteration-closing.js":function(r,e,t){var n=r("../internals/an-object");var a=r("../internals/iterator-close");t.exports=function(r,e,t,i){try{return i?e(n(t)[0],t[1]):e(t)}catch(e){a(r);throw e}}},
31"array-copy-within.js":function(r,e,t){"use strict";var n=r("../internals/to-object");var a=r("../internals/to-absolute-index");var i=r("../internals/to-length");var s=Math.min;t.exports=[].copyWithin||function(r,e){var t=n(this);var o=i(t.length);var l=a(r,o);var c=a(e,o);var u=arguments.length>2?arguments[2]:void 0;var f=s((void 0===u?o:a(u,o))-c,o-l);var v=1;if(c<l&&l<c+f){v=-1;c+=f-1;l+=f-1}while(f-- >0){if(c in t)t[l]=t[c];else delete t[l];l+=v;c+=v}return t}},
31"array-method-is-strict.js":function(r,e,t){"use strict";var n=r("../internals/fails");t.exports=function(r,e){var t=[][r];return!!t&&n(function(){t.call(null,e||function(){throw 1},1)})}},
31"array-fill.js":function(r,e,t){"use strict";var n=r("../internals/to-object");var a=r("../internals/to-absolute-index");var i=r("../internals/to-length");t.exports=function(r){var e=n(this);var t=i(e.length);var s=arguments.length;var o=a(s>1?arguments[1]:void 0,t);var l=s>2?arguments[2]:void 0;var c=void 0===l?t:a(l,t);while(c>o)e[o++]=r;return e}},
31"flatten-into-array.js":function(r,e,t){"use strict";var n=r("../internals/is-array");var a=r("../internals/to-length");var i=r("../internals/function-bind-context");var s=function(r,e,t,o,l,c,u,f){var v=l;var p=0;var d=u?i(u,f,3):false;var g;while(p<o){if(p in t){g=d?d(t[p],p,e):t[p];if(c>0&&n(g))v=s(r,e,g,a(g.length),v,c-1)-1;else{if(v>=0x1fffffffffffff)throw TypeError("Exceed the acceptable array length");r[v]=g}v++}p++}return v};t.exports=s},
31"array-for-each.js":function(r,e,t){"use strict";var n=r("../internals/array-iteration").forEach;var a=r("../internals/array-method-is-strict");var i=a("forEach");t.exports=i?[].forEach:function(r){return n(this,r,arguments.length>1?arguments[1]:void 0)}},
vendor: 543 bytes, line 31
31"array-last-index-of.js":function(r,e,t){"use strict";var n=r("../internals/to-indexed-object");var a=r("../internals/to-integer");var i=r("../internals/to-length");var s=r("../internals/array-method-is-strict");var o=Math.min;var l=[].lastIndexOf;var c=!!l&&1/[1].lastIndexOf(1,-0)<0;var u=s("lastIndexOf");var f=c||!u;t.exports=f?function(r){if(c)return l.apply(this,arguments)||0;var e=n(this);var t=i(e.length);var s=t-1;if(arguments.length>1)s=o(s,a(arguments[1]));if(s<0)s=t+s;for(;s>=0;s--)if(s in e&&e[s]===r)return s||0;return -1}:l},
31"array-reduce.js":function(r,e,t){var n=r("../internals/a-function");var a=r("../internals/to-object");var i=r("../internals/indexed-object");var s=r("../internals/to-length");var o=function(r){return function(e,t,o,l){n(t);var c=a(e);var u=i(c);var f=s(c.length);var v=r?f-1:0;var p=r?-1:1;if(o<2)while(true){if(v in u){l=u[v];v+=p;break}v+=p;if(r?v<0:f<=v)throw TypeError("Reduce of empty array with no initial value")}for(;r?v>=0:f>v;v+=p)if(v in u)l=t(l,u[v],v,c);return l}};t.exports={left:o(false),right:o(true)}},
31"engine-is-node.js":function(r,e,t){var n=r("../internals/classof-raw");var a=r("../internals/global");t.exports="process"==n(a.process)},
31"array-sort.js":function(r,e,t){var n=Math.floor;var a=function(r,e){var t=r.length;var o=n(t/2);return t<8?i(r,e):s(a(r.slice(0,o),e),a(r.slice(o),e),e)};var i=function(r,e){var t=r.length;var n=1;var a,i;while(n<t){i=n;a=r[n];while(i&&e(r[i-1],a)>0)r[i]=r[--i];if(i!==n++)r[i]=a}return r};var s=function(r,e,t){var n=r.length;var a=e.length;var i=0;var s=0;var o=[];while(i<n||s<a)if(i<n&&s<a)o.push(t(r[i],e[s])<=0?r[i++]:e[s++]);else o.push(i<n?r[i++]:e[s++]);return o};t.exports=a},
31"engine-ff-version.js":function(r,e,t){var n=r("../internals/engine-user-agent");var a=n.match(/firefox\/(\d+)/i);t.exports=!!a&&+a[1]},
31"engine-is-ie-or-edge.js":function(r,e,t){var n=r("../internals/engine-user-agent");t.exports=/MSIE|Trident/.test(n)},
31"engine-webkit-version.js":function(r,e,t){var n=r("../internals/engine-user-agent");var a=n.match(/AppleWebKit\/(\d+)\./);t.exports=!!a&&+a[1]},
vendor: 525 bytes, line 31
31"function-bind.js":function(r,e,t){"use strict";var n=r("../internals/a-function");var a=r("../internals/is-object");var i=[].slice;var s={};var o=function(r,e,t){if(!(e in s)){for(var n=[],a=0;a<e;a++)n[a]="a["+a+"]";s[e]=Function("C,a","return new C("+n.join(",")+")")}return s[e](r,t)};t.exports=Function.bind||function(r){var e=n(this);var t=i.call(arguments,1);var s=function(){var n=t.concat(i.call(arguments));return this instanceof s?o(e,n.length,n):e.apply(r,n)};if(a(e.prototype))s.prototype=e.prototype;return s}},
31"math-log1p.js":function(r,e,t){var n=Math.log;t.exports=Math.log1p||function(r){return(r*=1)>-1e-8&&r<1e-8?r-r*r/2:n(1+r)}},
31"math-sign.js":function(r,e,t){t.exports=Math.sign||function(r){return 0==(r*=1)||r!=r?r:r<0?-1:1}},
31"math-expm1.js":function(r,e,t){var n=Math.expm1;var a=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(r){return 0==(r*=1)?r:r>-1e-6&&r<1e-6?r+r*r/2:a(r)-1}:n},
vendor: 355 bytes, line 31
31"math-fround.js":function(r,e,t){var n=r("../internals/math-sign");var a=Math.abs;var i=Math.pow;var s=i(2,-52);var o=i(2,-23);var l=i(2,127)*(2-o);var c=i(2,-126);var u=function(r){return r+1/s-1/s};t.exports=Math.fround||function(r){var e=a(r);var t=n(r);var i,f;if(e<c)return t*u(e/c/o)*c*o;i=(1+o/s)*e;f=i-(i-e);if(f>l||f!=f)return 1/0*t;return t*f}},
31"object-assign.js":function(r,e,n){"use strict";var a=r("../internals/descriptors");var i=r("../internals/fails");var s=r("../internals/object-keys");var o=r("../internals/object-get-own-property-symbols");var l=r("../internals/object-property-is-enumerable");var c=r("../internals/to-object");var u=r("../internals/indexed-object");var f=Object.assign;var v=Object.defineProperty;n.exports=!f||i(function(){if(a&&1!==f({b:1},f(v({},"a",{enumerable:true,get:function(){v(this,"b",{value:3,enumerable:false})}}),{b:2})).b)return true;var r={};var e={};var n=t();var i="abcdefghijklmnopqrst";r[n]=7;i.split("").forEach(function(r){e[r]=r});return 7!=f({},r)[n]||s(f({},e)).join("")!=i})?function(r,e){var t=c(r);var n=arguments.length;var i=1;var f=o.f;var v=l.f;while(n>i){var p=u(arguments[i++]);var d=f?s(p).concat(f(p)):s(p);var g=d.length;var h=0;var y;while(g>h){y=d[h++];if(!a||v.call(p,y))t[y]=p[y]}}return t}:f},
31"object-to-array.js":function(r,e,t){var n=r("../internals/descriptors");var a=r("../internals/object-keys");var i=r("../internals/to-indexed-object");var s=r("../internals/object-property-is-enumerable").f;var o=function(r){return function(e){var t=i(e);var o=a(t);var l=o.length;var c=0;var u=[];var f;while(l>c){f=o[c++];if(!n||s.call(t,f))u.push(r?[f,t[f]]:t[f])}return u}};t.exports={entries:o(true),values:o(false)}},
31"same-value.js":function(r,e,t){t.exports=Object.is||function(r,e){return r===e?0!==r||1/r===1/e:r!=r&&e!=e}},
31"object-prototype-accessors-forced.js":function(r,e,t){"use strict";var n=r("../internals/is-pure");var a=r("../internals/global");var i=r("../internals/fails");var s=r("../internals/engine-webkit-version");t.exports=n||!i(function(){if(s&&s<535)return;var r=Math.random();__defineSetter__.call(null,r,function(){});delete a[r]})},
31"is-regexp.js":function(r,e,t){var n=r("../internals/is-object");var a=r("../internals/classof-raw");var i=r("../internals/well-known-symbol");var s=i("match");t.exports=function(r){var e;return n(r)&&(void 0!==(e=r[s])?!!e:"RegExp"==a(r))}},
31"regexp-flags.js":function(r,e,t){"use strict";var n=r("../internals/an-object");t.exports=function(){var r=n(this);var e="";if(r.global)e+="g";if(r.ignoreCase)e+="i";if(r.multiline)e+="m";if(r.dotAll)e+="s";if(r.unicode)e+="u";if(r.sticky)e+="y";return e}},
31"regexp-sticky-helpers.js":function(r,e){var t=r("../internals/fails");var n=function(r,e){return RegExp(r,e)};e.UNSUPPORTED_Y=t(function(){var r=n("a","y");r.lastIndex=2;return null!=r.exec("abcd")});e.BROKEN_CARET=t(function(){var r=n("^r","gy");r.lastIndex=2;return null!=r.exec("str")})},
31"regexp-unsupported-dot-all.js":function(r,e,t){var n=r("./fails");t.exports=n(function(){var r=RegExp(".","string".charAt(0));return!(r.dotAll&&r.exec("\n")&&"s"===r.flags)})},
31"regexp-unsupported-ncg.js":function(r,e,t){var n=r("./fails");t.exports=n(function(){var r=RegExp("(?<a>b)","string".charAt(5));return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})},
31"regexp-exec.js":function(r,e,t){"use strict";var n=r("../internals/regexp-flags");var a=r("../internals/regexp-sticky-helpers");var i=r("../internals/shared");var s=r("../internals/object-create");var o=r("../internals/internal-state").get;var l=r("../internals/regexp-unsupported-dot-all");var c=r("../internals/regexp-unsupported-ncg");var u=RegExp.prototype.exec;var f=i("native-string-replace",String.prototype.replace);var v=u;var p=function(){var r=/a/;var e=/b*/g;u.call(r,"a");u.call(e,"a");return 0!==r.lastIndex||0!==e.lastIndex}();var d=a.UNSUPPORTED_Y||a.BROKEN_CARET;var g=void 0!==/()??/.exec("")[1];var h=p||g||d||l||c;if(h)v=function(r){var e=this;var t=o(e);var a=t.raw;var i,l,c,h,y,b,m;if(a){a.lastIndex=e.lastIndex;i=v.call(a,r);e.lastIndex=a.lastIndex;return i}var j=t.groups;var x=d&&e.sticky;var w=n.call(e);var S=e.source;var k=0;var E=r;if(x){w=w.replace("y","");if(-1===w.indexOf("g"))w+="g";E=String(r).slice(e.lastIndex);if(e.lastIndex>0&&(!e.multiline||e.multiline&&"\n"!==r[e.lastIndex-1])){S="(?: "+S+")";E=" "+E;k++}l=new RegExp("^(?:"+S+")",w)}if(g)l=new RegExp("^"+S+"$(?!\\s)",w);if(p)c=e.lastIndex;h=u.call(x?l:e,E);if(x)if(h){h.input=h.input.slice(k);h[0]=h[0].slice(k);h.index=e.lastIndex;e.lastIndex+=h[0].length}else e.lastIndex=0;else if(p&&h)e.lastIndex=e.global?h.index+h[0].length:c;if(g&&h&&h.length>1)f.call(h[0],l,function(){for(y=1;y<arguments.length-2;y++)if(void 0===arguments[y])h[y]=void 0});if(h&&j){h.groups=b=s(null);for(y=0;y<j.length;y++){m=j[y];b[m[0]]=h[m[1]]}}return h};t.exports=v},
31"fix-regexp-well-known-symbol-logic.js":function(r,e,t){"use strict";r("../modules/es.regexp.exec");var n=r("../internals/redefine");var a=r("../internals/regexp-exec");var i=r("../internals/fails");var s=r("../internals/well-known-symbol");var o=r("../internals/create-non-enumerable-property");var l=s("species");var c=RegExp.prototype;t.exports=function(r,e,t,u){var f=s(r);var v=!i(function(){var e={};e[f]=function(){return 7};return 7!=""[r](e)});var p=v&&!i(function(){var e=false;var t=/a/;if("split"===r){t={};t.constructor={};t.constructor[l]=function(){return t};t.flags="";t[f]=/./[f]}t.exec=function(){e=true;return null};t[f]("");return!e});if(!v||!p||t){var d=/./[f];var g=e(f,""[r],function(r,e,t,n,i){var s=e.exec;if(s===a||s===c.exec){if(v&&!i)return{done:true,value:d.call(e,t,n)};return{done:true,value:r.call(t,e,n)}}return{done:false}});n(String.prototype,r,g[0]);n(c,f,g[1])}if(u)o(c[f],"sham",true)}},
31"advance-string-index.js":function(r,e,t){"use strict";var n=r("../internals/string-multibyte").charAt;t.exports=function(r,e,t){return e+(t?n(r,e).length:1)}},
31"regexp-exec-abstract.js":function(r,e,t){var n=r("./classof-raw");var a=r("./regexp-exec");t.exports=function(r,e){var t=r.exec;if("function"==typeof t){var i=t.call(r,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(r))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(r,e)}},
31"get-substitution.js":function(r,e,t){var n=r("../internals/to-object");var a=Math.floor;var i="".replace;var s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g;var o=/\$([$&'`]|\d{1,2})/g;t.exports=function(r,e,t,l,c,u){var f=t+r.length;var v=l.length;var p=o;if(void 0!==c){c=n(c);p=s}return i.call(u,p,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return r;case"`":return e.slice(0,t);case"'":return e.slice(f);case"<":s=c[i.slice(1,-1)];break;default:var o=+i;if(0===o)return n;if(o>v){var u=a(o/10);if(0===u)return n;if(u<=v)return void 0===l[u-1]?i.charAt(1):l[u-1]+i.charAt(1);return n}s=l[o-1]}return void 0===s?"":s})}},
31"species-constructor.js":function(r,e,t){var n=r("../internals/an-object");var a=r("../internals/a-function");var i=r("../internals/well-known-symbol");var s=i("species");t.exports=function(r,e){var t=n(r).constructor;var i;return void 0===t||void 0==(i=n(t)[s])?e:a(i)}},
31"not-a-regexp.js":function(r,e,t){var n=r("../internals/is-regexp");t.exports=function(r){if(n(r))throw TypeError("The method doesn't accept regular expressions");return r}},
31"correct-is-regexp-logic.js":function(r,e,t){var n=r("../internals/well-known-symbol");var a=n("match");t.exports=function(r){var e=/./;try{"/./"[r](e)}catch(t){try{e[a]=false;return"/./"[r](e)}catch(r){}}return false}},
31"string-pad.js":function(r,e,t){var n=r("../internals/to-length");var a=r("../internals/string-repeat");var i=r("../internals/require-object-coercible");var s=Math.ceil;var o=function(r){return function(e,t,o){var l=String(i(e));var c=l.length;var u=void 0===o?" ":String(o);var f=n(t);var v,p;if(f<=c||""==u)return l;v=f-c;p=a.call(u,s(v/u.length));if(p.length>v)p=p.slice(0,v);return r?l+p:p+l}};t.exports={start:o(false),end:o(true)}},
31"string-repeat.js":function(r,e,t){"use strict";var n=r("../internals/to-integer");var a=r("../internals/require-object-coercible");t.exports=function(r){var e=String(a(this));var t="";var i=n(r);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))if(1&i)t+=e;return t}},
31"string-pad-webkit-bug.js":function(r,e,t){var n=r("../internals/engine-user-agent");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},
31"string-trim.js":function(r,e,t){var n=r("../internals/require-object-coercible");var a=r("../internals/whitespaces");var i="["+a+"]";var s=RegExp("^"+i+i+"*");var o=RegExp(i+i+"*$");var l=function(r){return function(e){var t=String(n(e));if(1&r)t=t.replace(s,"");if(2&r)t=t.replace(o,"");return t}};t.exports={start:l(1),end:l(2),trim:l(3)}},
31"whitespaces.js":function(r,e,t){t.exports="	\n\v\f\r \xa0               \u2028\u2029\uFEFF"},
31"string-trim-forced.js":function(r,e,t){var n=r("../internals/fails");var a=r("../internals/whitespaces");var i="​\x85᠎";t.exports=function(r){return n(function(){return!!a[r]()||i[r]()!=i||a[r].name!==r})}},
31"create-html.js":function(r,e,t){var n=r("../internals/require-object-coercible");var a=/"/g;t.exports=function(r,e,t,i){var s=String(n(r));var o="<"+e;if(""!==t)o+=" "+t+'="'+String(i).replace(a,"&quot;")+'"';return o+">"+s+"</"+e+">"}},
31"string-html-forced.js":function(r,e,t){var n=r("../internals/fails");t.exports=function(r){return n(function(){var e=""[r]('"');return e!==e.toLowerCase()||e.split('"').length>3})}},
31"collection-weak.js":function(r,e,t){"use strict";var n=r("../internals/redefine-all");var a=r("../internals/internal-metadata").getWeakData;var i=r("../internals/an-object");var s=r("../internals/is-object");var o=r("../internals/an-instance");var l=r("../internals/iterate");var c=r("../internals/array-iteration");var u=r("../internals/has");var f=r("../internals/internal-state");var v=f.set;var p=f.getterFor;var d=c.find;var g=c.findIndex;var h=0;var y=function(r){return r.frozen||(r.frozen=new b)};var b=function(){this.entries=[]};var m=function(r,e){return d(r.entries,function(r){return r[0]===e})};b.prototype={get:function(r){var e=m(this,r);if(e)return e[1]},has:function(r){return!!m(this,r)},set:function(r,e){var t=m(this,r);if(t)t[1]=e;else this.entries.push([r,e])},delete:function(r){var e=g(this.entries,function(e){return e[0]===r});if(~e)this.entries.splice(e,1);return!!~e}};t.exports={getConstructor:function(r,e,t,c){var f=r(function(r,n){o(r,f,e);v(r,{type:e,id:h++,frozen:void 0});if(void 0!=n)l(n,r[c],{that:r,AS_ENTRIES:t})});var d=p(e);var g=function(r,e,t){var n=d(r);var s=a(i(e),true);if(true===s)y(n).set(e,t);else s[n.id]=t;return r};n(f.prototype,{delete:function(r){var e=d(this);if(!s(r))return false;var t=a(r);if(true===t)return y(e)["delete"](r);return t&&u(t,e.id)&&delete t[e.id]},has:function(r){var e=d(this);if(!s(r))return false;var t=a(r);if(true===t)return y(e).has(r);return t&&u(t,e.id)}});n(f.prototype,t?{get:function(r){var e=d(this);if(s(r)){var t=a(r);if(true===t)return y(e).get(r);return t?t[e.id]:void 0}},set:function(r,e){return g(this,r,e)}}:{add:function(r){return g(this,r,true)}});return f}}},
31"number-is-finite.js":function(r,e,t){var n=r("../internals/global");var a=n.isFinite;t.exports=Number.isFinite||function(r){return"number"==typeof r&&a(r)}},
31"is-integer.js":function(r,e,t){var n=r("../internals/is-object");var a=Math.floor;t.exports=function(r){return!n(r)&&isFinite(r)&&a(r)===r}},
31"number-parse-float.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/string-trim").trim;var i=r("../internals/whitespaces");var s=n.parseFloat;var o=1/s(i+"-0")!==-1/0;t.exports=o?function(r){var e=a(String(r));var t=s(e);return 0===t&&"-"==e.charAt(0)?-0:t}:s},
31"number-parse-int.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/string-trim").trim;var i=r("../internals/whitespaces");var s=n.parseInt;var o=/^[+-]?0[Xx]/;var l=8!==s(i+"08")||22!==s(i+"0x16");t.exports=l?function(r,e){var t=a(String(r));return s(t,e>>>0||(o.test(t)?16:10))}:s},
31"typed-array-constructor.js":function(r,e,t){"use strict";var n=r("../internals/export");var a=r("../internals/global");var i=r("../internals/descriptors");var s=r("../internals/typed-array-constructors-require-wrappers");var o=r("../internals/array-buffer-view-core");var l=r("../internals/array-buffer");var c=r("../internals/an-instance");var u=r("../internals/create-property-descriptor");var f=r("../internals/create-non-enumerable-property");var v=r("../internals/to-length");var p=r("../internals/to-index");var d=r("../internals/to-offset");var g=r("../internals/to-primitive");var h=r("../internals/has");var y=r("../internals/classof");var b=r("../internals/is-object");var m=r("../internals/object-create");var j=r("../internals/object-set-prototype-of");var x=r("../internals/object-get-own-property-names").f;var w=r("../internals/typed-array-from");var S=r("../internals/array-iteration").forEach;var k=r("../internals/set-species");var E=r("../internals/object-define-property");var O=r("../internals/object-get-own-property-descriptor");var A=r("../internals/internal-state");var M=r("../internals/inherit-if-required");var I=A.get;var R=A.set;var T=E.f;var P=O.f;var _=Math.round;var N=a.RangeError;var F=l.ArrayBuffer;var z=l.DataView;var L=o.NATIVE_ARRAY_BUFFER_VIEWS;var C=o.TYPED_ARRAY_TAG;var D=o.TypedArray;var U=o.TypedArrayPrototype;var q=o.aTypedArrayConstructor;var W=o.isTypedArray;var G="BYTES_PER_ELEMENT";var V="Wrong length";var B=function(r,e){var t=0;var n=e.length;var a=new(q(r))(n);while(n>t)a[t]=e[t++];return a};var $=function(r,e){T(r,e,{get:function(){return I(this)[e]}})};var Y=function(r){var e;return r instanceof F||"ArrayBuffer"==(e=y(r))||"SharedArrayBuffer"==e};var K=function(r,e){return W(r)&&"symbol"!=typeof e&&e in r&&String(+e)==String(e)};var H=function(r,e){return K(r,e=g(e,true))?u(2,r[e]):P(r,e)};var X=function(r,e,t){if(K(r,e=g(e,true))&&b(t)&&h(t,"value")&&!h(t,"get")&&!h(t,"set")&&!t.configurable&&(!h(t,"writable")||t.writable)&&(!h(t,"enumerable")||t.enumerable)){r[e]=t.value;return r}return T(r,e,t)};if(i){if(!L){O.f=H;E.f=X;$(U,"buffer");$(U,"byteOffset");$(U,"byteLength");$(U,"length")}n({target:"Object",stat:true,forced:!L},{getOwnPropertyDescriptor:H,defineProperty:X});t.exports=function(r,e,t){var i=r.match(/\d+$/)[0]/8;var o=r+(t?"Clamped":"")+"Array";var l="get"+r;var u="set"+r;var g=a[o];var h=g;var y=h&&h.prototype;var E={};var O=function(r,e){var t=I(r);return t.view[l](e*i+t.byteOffset,true)};var A=function(r,e,n){var a=I(r);if(t)n=(n=_(n))<0?0:n>255?255:255&n;a.view[u](e*i+a.byteOffset,n,true)};var P=function(r,e){T(r,e,{get:function(){return O(this,e)},set:function(r){return A(this,e,r)},enumerable:true})};if(L){if(s){h=e(function(r,e,t,n){c(r,h,o);return M(function(){if(!b(e))return new g(p(e));if(Y(e))return void 0!==n?new g(e,d(t,i),n):void 0!==t?new g(e,d(t,i)):new g(e);if(W(e))return B(h,e);return w.call(h,e)}(),r,h)});if(j)j(h,D);S(x(g),function(r){if(!(r in h))f(h,r,g[r])});h.prototype=y}}else{h=e(function(r,e,t,n){c(r,h,o);var a=0;var s=0;var l,u,f;if(b(e))if(Y(e)){l=e;s=d(t,i);var g=e.byteLength;if(void 0===n){if(g%i)throw N(V);u=g-s;if(u<0)throw N(V)}else{u=v(n)*i;if(u+s>g)throw N(V)}f=u/i}else if(W(e))return B(h,e);else return w.call(h,e);else{f=p(e);u=f*i;l=new F(u)}R(r,{buffer:l,byteOffset:s,byteLength:u,length:f,view:new z(l)});while(a<f)P(r,a++)});if(j)j(h,D);y=h.prototype=m(U)}if(y.constructor!==h)f(y,"constructor",h);if(C)f(y,C,o);E[o]=h;n({global:true,forced:h!=g,sham:!L},E);if(!(G in h))f(h,G,i);if(!(G in y))f(y,G,i);k(o)}}else t.exports=function(){}},
31"typed-array-constructors-require-wrappers.js":function(r,e,t){var n=r("../internals/global");var a=r("../internals/fails");var i=r("../internals/check-correctness-of-iteration");var s=r("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS;var o=n.ArrayBuffer;var l=n.Int8Array;t.exports=!s||!a(function(){l(1)})||!a(function(){new l(-1)})||!i(function(r){new l;new l(null);new l(1.5);new l(r)},true)||a(function(){return 1!==new l(new o(2),1,void 0).length})},
31"array-buffer-view-core.js":function(r,e,t){"use strict";var n=r("../internals/array-buffer-native");var a=r("../internals/descriptors");var i=r("../internals/global");var s=r("../internals/is-object");var o=r("../internals/has");var l=r("../internals/classof");var c=r("../internals/create-non-enumerable-property");var u=r("../internals/redefine");var f=r("../internals/object-define-property").f;var v=r("../internals/object-get-prototype-of");var p=r("../internals/object-set-prototype-of");var d=r("../internals/well-known-symbol");var g=r("../internals/uid");var h=i.Int8Array;var y=h&&h.prototype;var b=i.Uint8ClampedArray;var m=b&&b.prototype;var j=h&&v(h);var x=y&&v(y);var w=Object.prototype;var S=w.isPrototypeOf;var k=d("toStringTag");var E=g("TYPED_ARRAY_TAG");var O=n&&!!p&&"Opera"!==l(i.opera);var A=false;var M;var I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};var R={BigInt64Array:8,BigUint64Array:8};var T=function(r){if(!s(r))return false;var e=l(r);return"DataView"===e||o(I,e)||o(R,e)};var P=function(r){if(!s(r))return false;var e=l(r);return o(I,e)||o(R,e)};var _=function(r){if(P(r))return r;throw TypeError("Target is not a typed array")};var N=function(r){if(p){if(S.call(j,r))return r}else for(var e in I)if(o(I,M)){var t=i[e];if(t&&(r===t||S.call(t,r)))return r}throw TypeError("Target is not a typed array constructor")};var F=function(r,e,t){if(!a)return;if(t)for(var n in I){var s=i[n];if(s&&o(s.prototype,r))try{delete s.prototype[r]}catch(r){}}if(!x[r]||t)u(x,r,t?e:O&&y[r]||e)};var z=function(r,e,t){var n,s;if(!a)return;if(p){if(t)for(n in I){s=i[n];if(s&&o(s,r))try{delete s[r]}catch(r){}}if(!!j[r]&&!t)return;try{return u(j,r,t?e:O&&j[r]||e)}catch(r){}}for(n in I){s=i[n];if(s&&(!s[r]||t))u(s,r,e)}};for(M in I)if(!i[M])O=false;if(!O||"function"!=typeof j||j===Function.prototype){j=function(){throw TypeError("Incorrect invocation")};if(O){for(M in I)if(i[M])p(i[M],j)}}if(!O||!x||x===w){x=j.prototype;if(O){for(M in I)if(i[M])p(i[M].prototype,x)}}if(O&&v(m)!==x)p(m,x);if(a&&!o(x,k)){A=true;f(x,k,{get:function(){return s(this)?this[E]:void 0}});for(M in I)if(i[M])c(i[M],E,M)}t.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:A&&E,aTypedArray:_,aTypedArrayConstructor:N,exportTypedArrayMethod:F,exportTypedArrayStaticMethod:z,isView:T,isTypedArray:P,TypedArray:j,TypedArrayPrototype:x}},
31"array-buffer-native.js":function(r,e,t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},
31"array-buffer.js":function(r,e,t){"use strict";var n=r("../internals/global");var a=r("../internals/descriptors");var i=r("../internals/array-buffer-native");var s=r("../internals/create-non-enumerable-property");var o=r("../internals/redefine-all");var l=r("../internals/fails");var c=r("../internals/an-instance");var u=r("../internals/to-integer");var f=r("../internals/to-length");var v=r("../internals/to-index");var p=r("../internals/ieee754");var d=r("../internals/object-get-prototype-of");var g=r("../internals/object-set-prototype-of");var h=r("../internals/object-get-own-property-names").f;var y=r("../internals/object-define-property").f;var b=r("../internals/array-fill");var m=r("../internals/set-to-string-tag");var j=r("../internals/internal-state");var x=j.get;var w=j.set;var S="ArrayBuffer";var k="DataView";var E="prototype";var O="Wrong length";var A="Wrong index";var M=n[S];var I=M;var R=n[k];var T=R&&R[E];var P=Object.prototype;var _=n.RangeError;var N=p.pack;var F=p.unpack;var z=function(r){return[255&r]};var L=function(r){return[255&r,r>>8&255]};var C=function(r){return[255&r,r>>8&255,r>>16&255,r>>24&255]};var D=function(r){return r[3]<<24|r[2]<<16|r[1]<<8|r[0]};var U=function(r){return N(r,23,4)};var q=function(r){return N(r,52,8)};var W=function(r,e){y(r[E],e,{get:function(){return x(this)[e]}})};var G=function(r,e,t,n){var a=v(t);var i=x(r);if(a+e>i.byteLength)throw _(A);var s=x(i.buffer).bytes;var o=a+i.byteOffset;var l=s.slice(o,o+e);return n?l:l.reverse()};var V=function(r,e,t,n,a,i){var s=v(t);var o=x(r);if(s+e>o.byteLength)throw _(A);var l=x(o.buffer).bytes;var c=s+o.byteOffset;var u=n(+a);for(var f=0;f<e;f++)l[c+f]=u[i?f:e-f-1]};if(i){if(!l(function(){M(1)})||!l(function(){new M(-1)})||l(function(){new M;new M(1.5);new M(NaN);return M.name!=S})){I=function(r){c(this,I);return new M(v(r))};var B=I[E]=M[E];for(var $=h(M),Y=0,K;$.length>Y;)if(!((K=$[Y++])in I))s(I,K,M[K]);B.constructor=I}if(g&&d(T)!==P)g(T,P);var H=new R(new I(2));var X=T.setInt8;H.setInt8(0,0x80000000);H.setInt8(1,0x80000001);if(H.getInt8(0)||!H.getInt8(1))o(T,{setInt8:function(r,e){X.call(this,r,e<<24>>24)},setUint8:function(r,e){X.call(this,r,e<<24>>24)}},{unsafe:true})}else{I=function(r){c(this,I,S);var e=v(r);w(this,{bytes:b.call(new Array(e),0),byteLength:e});if(!a)this.byteLength=e};R=function(r,e,t){c(this,R,k);c(r,I,k);var n=x(r).byteLength;var i=u(e);if(i<0||i>n)throw _("Wrong offset");t=void 0===t?n-i:f(t);if(i+t>n)throw _(O);w(this,{buffer:r,byteLength:t,byteOffset:i});if(!a){this.buffer=r;this.byteLength=t;this.byteOffset=i}};if(a){W(I,"byteLength");W(R,"buffer");W(R,"byteLength");W(R,"byteOffset")}o(R[E],{getInt8:function(r){return G(this,1,r)[0]<<24>>24},getUint8:function(r){return G(this,1,r)[0]},getInt16:function(r){var e=G(this,2,r,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(r){var e=G(this,2,r,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(r){return D(G(this,4,r,arguments.length>1?arguments[1]:void 0))},getUint32:function(r){return D(G(this,4,r,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(r){return F(G(this,4,r,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(r){return F(G(this,8,r,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(r,e){V(this,1,r,z,e)},setUint8:function(r,e){V(this,1,r,z,e)},setInt16:function(r,e){V(this,2,r,L,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(r,e){V(this,2,r,L,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(r,e){V(this,4,r,C,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(r,e){V(this,4,r,C,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(r,e){V(this,4,r,U,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(r,e){V(this,8,r,q,e,arguments.length>2?arguments[2]:void 0)}})}m(I,S);m(R,k);t.exports={ArrayBuffer:I,DataView:R}},
31"to-index.js":function(r,e,t){var n=r("../internals/to-integer");var a=r("../internals/to-length");t.exports=function(r){if(void 0===r)return 0;var e=n(r);var t=a(e);if(e!==t)throw RangeError("Wrong length or index");return t}},
31"ieee754.js":function(r,e,t){var n=Math.abs;var a=Math.pow;var i=Math.floor;var s=Math.log;var o=Math.LN2;var l=function(r,e,t){var l=new Array(t);var c=8*t-e-1;var u=(1<<c)-1;var f=u>>1;var v=23===e?a(2,-24)-a(2,-77):0;var p=r<0||0===r&&1/r<0?1:0;var d=0;var g,h,y;r=n(r);if(r!=r||r===1/0){h=r!=r?1:0;g=u}else{g=i(s(r)/o);if(r*(y=a(2,-g))<1){g--;y*=2}if(g+f>=1)r+=v/y;else r+=v*a(2,1-f);if(r*y>=2){g++;y/=2}if(g+f>=u){h=0;g=u}else if(g+f>=1){h=(r*y-1)*a(2,e);g+=f}else{h=r*a(2,f-1)*a(2,e);g=0}}for(;e>=8;l[d++]=255&h,h/=256,e-=8);g=g<<e|h;c+=e;for(;c>0;l[d++]=255&g,g/=256,c-=8);l[--d]|=128*p;return l};var c=function(r,e){var t=r.length;var n=8*t-e-1;var i=(1<<n)-1;var s=i>>1;var o=n-7;var l=t-1;var c=r[l--];var u=127&c;var f;c>>=7;for(;o>0;u=256*u+r[l],l--,o-=8);f=u&(1<<-o)-1;u>>=-o;o+=e;for(;o>0;f=256*f+r[l],l--,o-=8);if(0===u)u=1-s;else{if(u===i)return f?NaN:c?-1/0:1/0;f+=a(2,e);u-=s}return(c?-1:1)*f*a(2,u-e)};t.exports={pack:l,unpack:c}},
31"to-offset.js":function(r,e,t){var n=r("../internals/to-positive-integer");t.exports=function(r,e){var t=n(r);if(t%e)throw RangeError("Wrong offset");return t}},
31"to-positive-integer.js":function(r,e,t){var n=r("../internals/to-integer");t.exports=function(r){var e=n(r);if(e<0)throw RangeError("The argument can't be less than 0");return e}},
31"typed-array-from.js":function(r,e,t){var n=r("../internals/to-object");var a=r("../internals/to-length");var i=r("../internals/get-iterator-method");var s=r("../internals/is-array-iterator-method");var o=r("../internals/function-bind-context");var l=r("../internals/array-buffer-view-core").aTypedArrayConstructor;t.exports=function(r){var e=n(r);var t=arguments.length;var c=t>1?arguments[1]:void 0;var u=void 0!==c;var f=i(e);var v,p,d,g,h,y;if(void 0!=f&&!s(f)){h=f.call(e);y=h.next;e=[];while(!(g=y.call(h)).done)e.push(g.value)}if(u&&t>2)c=o(c,arguments[2],2);p=a(e.length);d=new(l(this))(p);for(v=0;p>v;v++)d[v]=u?c(e[v],v):e[v];return d}}}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{Symbol:t,Map:n,Set:a}},require:i,eagerModulePaths:["/node_modules/meteor/ecmascript-runtime-client/legacy.js"],mainModulePath:"/node_modules/meteor/ecmascript-runtime-client/legacy.js"}});
32
33Package["core-runtime"].queue("base64",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var r;var a=e({node_modules:{meteor:{base64:{
33"base64.js":function(e,r,a){a.export({Base64:function(){return f}});var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var t=Object.create(null);var l=function(e){return n.charAt(e)};var o=function(e){return"="===e?-1:t[e]};for(var u=0;u<n.length;u++)t[l(u)]=u;var s=function(e){if("string"==typeof e){var r=e;e=i(r.length);for(var a=0;a<r.length;a++){var n=r.charCodeAt(a);if(n>255)throw new Error("Not ascii. Base64.encode can only take ascii strings.");e[a]=n}}var t=[];var o=null;var u=null;var s=null;var c=null;for(var f=0;f<e.length;f++)switch(f%3){case 0:o=e[f]>>2&63;u=(3&e[f])<<4;break;case 1:u|=e[f]>>4&15;s=(15&e[f])<<2;break;case 2:s|=e[f]>>6&3;c=63&e[f];t.push(l(o));t.push(l(u));t.push(l(s));t.push(l(c));o=null;u=null;s=null;c=null;break}if(null!=o){t.push(l(o));t.push(l(u));if(null==s)t.push("=");else t.push(l(s));if(null==c)t.push("=")}return t.join("")};var i=function(e){if("undefined"==typeof Uint8Array||"undefined"==typeof ArrayBuffer){var r=[];for(var a=0;a<e;a++)r.push(0);r.$Uint8ArrayPolyfill=true;return r}return new Uint8Array(new ArrayBuffer(e))};var c=function(e){var r=Math.floor(3*e.length/4);if("="==e.charAt(e.length-1)){r--;if("="==e.charAt(e.length-2))r--}var a=i(r);var n=null;var t=null;var l=null;var u=0;for(var s=0;s<e.length;s++){var c=e.charAt(s);var f=o(c);switch(s%4){case 0:if(f<0)throw new Error("invalid base64 string");n=f<<2;break;case 1:if(f<0)throw new Error("invalid base64 string");n|=f>>4;a[u++]=n;t=(15&f)<<4;break;case 2:if(f>=0){t|=f>>2;a[u++]=t;l=(3&f)<<6}break;case 3:if(f>=0)a[u++]=l|f;break}}return a};var f={encode:s,decode:c,newBinary:i}}}}}},{extensions:[".js",".json"]});return{export:function(){return{Base64:r}},require:a,eagerModulePaths:["/node_modules/meteor/base64/base64.js"],mainModulePath:"/node_modules/meteor/base64/base64.js"}});
34
35Package["core-runtime"].queue("ejson",function(){var r=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var n=Package.base64.Base64;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var t=Package["ecmascript-runtime-client"].Symbol;var u=Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var a;var i=e({node_modules:{meteor:{ejson:{
35"ejson.js":function(e,a,i){i.export({EJSON:function(){return O}});var o,f,c,l,s,v,m,y,h;i.link("./utils",{isFunction:function(r){o=r},isObject:function(r){f=r},keysOf:function(r){c=r},lengthOfWithLimit:function(r){l=r},hasOwn:function(r){s=r},convertMapToObject:function(r){v=r},isArguments:function(r){m=r},isInfOrNaN:function(r){y=r},handleError:function(r){h=r}},0);var d;i.link("./stringify",{default:function(r){d=r}},1);function g(r,n){if(null!=n&&void 0!==t&&n[t.hasInstance])return!!n[t.hasInstance](r);return r instanceof n}function p(r){return r&&void 0!==t&&r.constructor===t?"symbol":typeof r}var O={};var N=new u;O.addType=function(r,n){if(N.has(r))throw new Error("Type ".concat(r," already present"));N.set(r,n)};var S=[{matchJSONValue:function(r){return s(r,"$date")&&1===l(r,1)},matchObject:function(r){return g(r,Date)},toJSONValue:function(r){return{$date:r.getTime()}},fromJSONValue:function(r){return new Date(r.$date)}},{matchJSONValue:function(r){return s(r,"$regexp")&&s(r,"$flags")&&2===l(r,2)},matchObject:function(r){return g(r,RegExp)},toJSONValue:function(r){return{$regexp:r.source,$flags:r.flags}},fromJSONValue:function(r){return new RegExp(r.$regexp,r.$flags.slice(0,50).replace(/[^gimuy]/g,"").replace(/(.)(?=.*\1)/g,""))}},{matchJSONValue:function(r){return s(r,"$InfNaN")&&1===l(r,1)},matchObject:y,toJSONValue:function(r){var n;n=Number.isNaN(r)?0:r===1/0?1:-1;return{$InfNaN:n}},fromJSONValue:function(r){return r.$InfNaN/0}},{matchJSONValue:function(r){return s(r,"$binary")&&1===l(r,1)},matchObject:function(r){return"undefined"!=typeof Uint8Array&&g(r,Uint8Array)||r&&s(r,"$Uint8ArrayPolyfill")},toJSONValue:function(r){return{$binary:n.encode(r)}},fromJSONValue:function(r){return n.decode(r.$binary)}},{matchJSONValue:function(r){return s(r,"$escape")&&1===l(r,1)},matchObject:function(r){var n=false;if(r){var e=l(r,2);if(1===e||2===e)n=S.some(function(n){return n.matchJSONValue(r)})}return n},toJSONValue:function(r){var n={};c(r).forEach(function(e){n[e]=O.toJSONValue(r[e])});return{$escape:n}},fromJSONValue:function(r){var n={};c(r.$escape).forEach(function(e){n[e]=O.fromJSONValue(r.$escape[e])});return n}},{matchJSONValue:function(r){return s(r,"$type")&&s(r,"$value")&&2===l(r,2)},matchObject:function(r){return O._isCustomType(r)},toJSONValue:function(n){var e=r._noYieldsAllowed(function(){return n.toJSONValue()});return{$type:n.typeName(),$value:e}},fromJSONValue:function(n){var e=n.$type;if(!N.has(e))throw new Error("Custom EJSON type ".concat(e," is not defined"));var t=N.get(e);return r._noYieldsAllowed(function(){return t(n.$value)})}}];O._isCustomType=function(r){return r&&o(r.toJSONValue)&&o(r.typeName)&&N.has(r.typeName())};O._getTypes=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:false;return r?N:v(N)};O._getConverters=function(){return S};var b=function(r){for(var n=0;n<S.length;n++){var e=S[n];if(e.matchObject(r))return e.toJSONValue(r)}};var J=function(r){if(null===r)return null;var n=b(r);if(void 0!==n)return n;if(!f(r))return r;c(r).forEach(function(n){var e=r[n];if(!f(e)&&void 0!==e&&!y(e))return;var t=b(e);if(t){r[n]=t;return}J(e)});return r};O._adjustTypesToJSONValue=J;var j=function(r){if(null==r||"boolean"==typeof r||"string"==typeof r||"number"==typeof r&&!y(r))return r;if(Array.isArray(r)){var n=null;for(var e=0;e<r.length;e++){var t=r[e];var u=j(t);if(u!==t){null!=n||(n=r.slice(0,e));n.push(u)}else if(null!==n)n.push(t)}return null!=n?n:r}var a=b(r);if(void 0!==a)return a;var i=c(r);var o=null;for(var f=0;f<i.length;f++){var l=i[f];var s=r[l];var v=j(s);if(v!==s){if(null===o){o={};for(var m=0;m<f;m++)o[i[m]]=r[i[m]]}o[l]=v}else if(null!==o)o[l]=s}return null!=o?o:r};O.toJSONValue=function(r){return j(r)};var V=function(r){if(f(r)&&null!==r){var n=c(r);if(n.length<=2&&n.every(function(r){return"string"==typeof r&&"$"===r.substr(0,1)}))for(var e=0;e<S.length;e++){var t=S[e];if(t.matchJSONValue(r))return t.fromJSONValue(r)}}return r};var A=function(r){if(null===r)return null;var n=V(r);if(n!==r)return n;if(!f(r))return r;c(r).forEach(function(n){var e=r[n];if(f(e)){var t=V(e);if(e!==t){r[n]=t;return}A(e)}});return r};O._adjustTypesFromJSONValue=A;var w=function(r){if(null===r||(void 0===r?"undefined":p(r))!=="object")return r;if(Array.isArray(r)){var n=null;for(var e=0;e<r.length;e++){var t=r[e];var u=w(t);if(u!==t){null!=n||(n=r.slice(0,e));n.push(u)}else if(null!==n)n.push(t)}return null!=n?n:r}var a=V(r);if(a!==r)return a;var i=c(r);var o=null;for(var f=0;f<i.length;f++){var l=i[f];var s=r[l];var v=w(s);if(v!==s){if(null===o){o={};for(var m=0;m<f;m++)o[i[m]]=r[i[m]]}o[l]=v}else if(null!==o)o[l]=s}return null!=o?o:r};O.fromJSONValue=function(r){return w(r)};O.stringify=h(function(r,n){var e;var t=O.toJSONValue(r);e=n&&(n.canonical||n.indent)?d(t,n):JSON.stringify(t);return e});O.parse=function(r){if("string"!=typeof r)throw new Error("EJSON.parse argument should be a string");return O.fromJSONValue(JSON.parse(r))};O.isBinary=function(r){return!!("undefined"!=typeof Uint8Array&&g(r,Uint8Array)||r&&r.$Uint8ArrayPolyfill)}
35;O.equals=function(r,n,e){var t;e&&e.keyOrderSensitive;if(r===n)return true;if((void 0===r?"undefined":p(r))!==(void 0===n?"undefined":p(n)))return false;if((void 0===r?"undefined":p(r))!=="object")return Number.isNaN(r)&&Number.isNaN(n);if(null===r||null===n)return false;if(g(r,Date)&&g(n,Date))return r.valueOf()===n.valueOf();if(O.isBinary(r)&&O.isBinary(n)){if(r.length!==n.length)return false;for(t=0;t<r.length;t++)if(r[t]!==n[t])return false;return true}if(o(r.equals))return r.equals(n,e);if(o(n.equals))return n.equals(r,e);var u=Array.isArray(r);var a=Array.isArray(n);if(u!==a)return false;if(u&&a){if(r.length!==n.length)return false;for(t=0;t<r.length;t++)if(!O.equals(r[t],n[t],e))return false;return true}switch(O._isCustomType(r)+O._isCustomType(n)){case 1:return false;case 2:return O.equals(O.toJSONValue(r),O.toJSONValue(n));default:}};O.clone=function(r){var n;if(!f(r))return r;if(null===r)return null;if(g(r,Date))return new Date(r.getTime());if(g(r,RegExp))return r;if(O.isBinary(r)){n=O.newBinary(r.length);for(var e=0;e<r.length;e++)n[e]=r[e];return n}if(Array.isArray(r))return r.map(O.clone);if(m(r))return Array.from(r).map(O.clone);if(o(r.clone))return r.clone();if(O._isCustomType(r))return O.fromJSONValue(O.clone(O.toJSONValue(r)),true);n={};c(r).forEach(function(e){n[e]=O.clone(r[e])});return n};O.newBinary=n.newBinary},
35"stringify.js":function(r,n,e){function u(r){return r&&void 0!==t&&r.constructor===t?"symbol":typeof r}function a(r){return JSON.stringify(r)}var i=function(r,n,e,t,o){var f=n[r];switch(void 0===f?"undefined":u(f)){case"string":return a(f);case"number":return isFinite(f)?String(f):"null";case"boolean":return String(f);case"object":if(!f)return"null";var c=t+e;var l=[];var s;if(Array.isArray(f)||({}).hasOwnProperty.call(f,"callee")){var v=f.length;for(var m=0;m<v;m+=1)l[m]=i(m,f,e,c,o)||"null";s=0===l.length?"[]":c?"[\n".concat(c).concat(l.join(",\n".concat(c)),"\n").concat(t,"]"):"[".concat(l.join(","),"]");return s}var y=Object.keys(f);if(o)y=y.sort();y.forEach(function(r){s=i(r,f,e,c,o);if(s)l.push(a(r)+(c?": ":":")+s)});s=0===l.length?"{}":c?"{\n".concat(c).concat(l.join(",\n".concat(c)),"\n").concat(t,"}"):"{".concat(l.join(","),"}");return s;default:}};var o=function(r,n){var e=Object.assign({indent:"",canonical:false},n);if(true===e.indent)e.indent="  ";else if("number"==typeof e.indent){var t="";for(var u=0;u<e.indent;u++)t+=" ";e.indent=t}return i("",{"":r},e.indent,"",e.canonical)};e.exportDefault(o)},
35"utils.js":function(r,n,e){e.export({isFunction:function(){return s},isObject:function(){return v},keysOf:function(){return m},lengthOf:function(){return y},lengthOfWithLimit:function(){return h},hasOwn:function(){return d},convertMapToObject:function(){return g},isArguments:function(){return p},isInfOrNaN:function(){return O},checkError:function(){return N},handleError:function(){return S}});function u(r,n){if(null==n||n>r.length)n=r.length;for(var e=0,t=new Array(n);e<n;e++)t[e]=r[e];return t}function a(r){if(Array.isArray(r))return r}function i(r,n){var e=null==r?null:void 0!==t&&r[t.iterator]||r["@@iterator"];if(null==e)return;var u=[];var a=true;var i=false;var o,f;try{for(e=e.call(r);!(a=(o=e.next()).done);a=true){u.push(o.value);if(n&&u.length===n)break}}catch(r){i=true;f=r}finally{try{if(!a&&null!=e["return"])e["return"]()}finally{if(i)throw f}}return u}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(r,n){return a(r)||i(r,n)||l(r,n)||o()}function c(r){return r&&void 0!==t&&r.constructor===t?"symbol":typeof r}function l(r,n){if(!r)return;if("string"==typeof r)return u(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);if("Object"===e&&r.constructor)e=r.constructor.name;if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(r,n)}var s=function(r){return"function"==typeof r};var v=function(r){return(void 0===r?"undefined":c(r))==="object"};var m=function(r){return Object.keys(r)};var y=function(r){var n=0;for(var e in r)if(d(r,e))n++;return n};var h=function(r,n){var e=0;for(var t in r)if(d(r,t)&&++e>n)break;return e};var d=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)};var g=function(r){return Array.from(r).reduce(function(r,n){var e=f(n,2),t=e[0],u=e[1];r[t]=u;return r},{})};var p=function(r){return null!=r&&d(r,"callee")};var O=function(r){return Number.isNaN(r)||r===1/0||r===-1/0};var N={maxStack:function(r){return new RegExp("Maximum call stack size exceeded","g").test(r)}};var S=function(r){return function(){try{return r.apply(this,arguments)}catch(r){var n=N.maxStack(r.message);if(n)throw new Error("Converting circular structure to JSON");throw r}}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{EJSON:a}},require:i,eagerModulePaths:["/node_modules/meteor/ejson/ejson.js"],mainModulePath:"/node_modules/meteor/ejson/ejson.js"}});
36
37Package["core-runtime"].queue("diff-sequence",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var r=Package.ejson.EJSON;var i=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var n;var a=i({node_modules:{meteor:{"diff-sequence":{
37"diff.js":function(i,n,a){a.export({DiffSequence:function(){return f}});var f={};var o=Object.prototype.hasOwnProperty;function d(e){for(var r in Object(e))if(o.call(e,r))return false;return true}f.diffQueryChanges=function(e,r,i,n,a){if(e)f.diffQueryOrderedChanges(r,i,n,a);else f.diffQueryUnorderedChanges(r,i,n,a)};f.diffQueryUnorderedChanges=function(e,i,n,a){a=a||{};var o=a.projectionFn||r.clone;if(n.movedBefore)throw new Error("_diffQueryUnordered called with a movedBefore observer!");i.forEach(function(i,a){var t=e.get(a);if(t){if(n.changed&&!r.equals(t,i)){var c=o(i);var u=o(t);var l=f.makeChangedFields(c,u);if(!d(l))n.changed(a,l)}}else if(n.added){var s=o(i);delete s._id;n.added(i._id,s)}});if(n.removed)e.forEach(function(e,r){if(!i.has(r))n.removed(r)})};f.diffQueryOrderedChanges=function(i,n,a,t){t=t||{};var c=t.projectionFn||r.clone;var u={};n.forEach(function(r){if(u[r._id])e._debug("Duplicate _id in new_results");u[r._id]=true});var l={};i.forEach(function(r,i){if(r._id in l)e._debug("Duplicate _id in old_results");l[r._id]=i});var s=[];var h=0;var v=n.length;var g=new Array(v);var m=new Array(v);var _=function(e){return l[n[e]._id]};for(var y=0;y<v;y++)if(void 0!==l[n[y]._id]){var O=h;while(O>0){if(_(g[O-1])<_(y))break;O--}m[y]=0===O?-1:g[O-1];g[O]=y;if(O+1>h)h=O+1}var p=0===h?-1:g[h-1];while(p>=0){s.push(p);p=m[p]}s.reverse();s.push(n.length);i.forEach(function(e){if(!u[e._id])a.removed&&a.removed(e._id)});var b=0;s.forEach(function(e){var r=n[e]?n[e]._id:null;var t,u,s,h,v;for(var g=b;g<e;g++){u=n[g];if(o.call(l,u._id)){t=i[l[u._id]];h=c(u);v=c(t);s=f.makeChangedFields(h,v);if(!d(s))a.changed&&a.changed(u._id,s);a.movedBefore&&a.movedBefore(u._id,r)}else{s=c(u);delete s._id;a.addedBefore&&a.addedBefore(u._id,s,r);a.added&&a.added(u._id,s)}}if(r){u=n[e];t=i[l[u._id]];h=c(u);v=c(t);s=f.makeChangedFields(h,v);if(!d(s))a.changed&&a.changed(u._id,s)}b=e+1})};f.diffObjects=function(e,r,i){Object.keys(e).forEach(function(n){var a=e[n];if(o.call(r,n))i.both&&i.both(n,a,r[n]);else i.leftOnly&&i.leftOnly(n,a)});if(i.rightOnly)Object.keys(r).forEach(function(n){var a=r[n];if(!o.call(e,n))i.rightOnly(n,a)})};f.diffMaps=function(e,r,i){e.forEach(function(e,n){if(r.has(n))i.both&&i.both(n,e,r.get(n));else i.leftOnly&&i.leftOnly(n,e)});if(i.rightOnly)r.forEach(function(r,n){if(!e.has(n))i.rightOnly(n,r)})};f.makeChangedFields=function(e,i){var n={};f.diffObjects(i,e,{leftOnly:function(e,r){n[e]=void 0},rightOnly:function(e,r){n[e]=r},both:function(e,i,a){if(!r.equals(i,a))n[e]=a}});return n};f.applyChanges=function(e,r){Object.keys(r).forEach(function(i){var n=r[i];if(void 0===n)delete e[i];else e[i]=n})}}}}}},{extensions:[".js",".json"]});return{export:function(){return{DiffSequence:n}},require:a,eagerModulePaths:["/node_modules/meteor/diff-sequence/diff.js"],mainModulePath:"/node_modules/meteor/diff-sequence/diff.js"}});
38
39Package["core-runtime"].queue("geojson-utils",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var a;var n=t({node_modules:{meteor:{"geojson-utils":{
39"main.js":function(t,a){a.GeoJSON=t("./geojson-utils.js")},
39"geojson-utils.js":function(t,a,n){(function(){var t={};if(void 0!==n&&n.exports)n.exports=t;t.lineStringsIntersect=function(t,a){var n=[];for(var r=0;r<=t.coordinates.length-2;++r)for(var o=0;o<=a.coordinates.length-2;++o){var e={x:t.coordinates[r][1],y:t.coordinates[r][0]},i={x:t.coordinates[r+1][1],y:t.coordinates[r+1][0]},s={x:a.coordinates[o][1],y:a.coordinates[o][0]},u={x:a.coordinates[o+1][1],y:a.coordinates[o+1][0]},c=(u.x-s.x)*(e.y-s.y)-(u.y-s.y)*(e.x-s.x),h=(i.x-e.x)*(e.y-s.y)-(i.y-e.y)*(e.x-s.x),l=(u.y-s.y)*(i.x-e.x)-(u.x-s.x)*(i.y-e.y);if(0!=l){var d=c/l,f=h/l;if(0<=d&&d<=1&&0<=f&&f<=1)n.push({type:"Point",coordinates:[e.x+d*(i.x-e.x),e.y+d*(i.y-e.y)]})}}if(0==n.length)n=false;return n};function a(t){var a=[],n=[];for(var r=0;r<t[0].length;r++){a.push(t[0][r][1]);n.push(t[0][r][0])}a=a.sort(function(t,a){return t-a});n=n.sort(function(t,a){return t-a});return[[a[0],n[0]],[a[a.length-1],n[n.length-1]]]}t.pointInBoundingBox=function(t,a){return!(t.coordinates[1]<a[0][0]||t.coordinates[1]>a[1][0]||t.coordinates[0]<a[0][1]||t.coordinates[0]>a[1][1])};function r(t,a,n){var r=[[0,0]];for(var o=0;o<n.length;o++){for(var e=0;e<n[o].length;e++)r.push(n[o][e]);r.push([0,0])}var i=false;for(var o=0,e=r.length-1;o<r.length;e=o++)if(r[o][0]>a!=r[e][0]>a&&t<(r[e][1]-r[o][1])*(a-r[o][0])/(r[e][0]-r[o][0])+r[o][1])i=!i;return i}t.pointInPolygon=function(n,o){var e="Polygon"==o.type?[o.coordinates]:o.coordinates;var i=false;for(var s=0;s<e.length;s++)if(t.pointInBoundingBox(n,a(e[s])))i=true;if(!i)return false;var u=false;for(var s=0;s<e.length;s++)if(r(n.coordinates[1],n.coordinates[0],e[s]))u=true;return u};t.numberToRadius=function(t){return t*Math.PI/180};t.numberToDegree=function(t){return 180*t/Math.PI};t.drawCircle=function(a,n,r){var o=[n.coordinates[1],n.coordinates[0]],e=a/1e3/6371,i=[t.numberToRadius(o[0]),t.numberToRadius(o[1])],r=r||15,s=[[o[0],o[1]]];for(var u=0;u<r;u++){var c=2*Math.PI*u/r;var h=Math.asin(Math.sin(i[0])*Math.cos(e)+Math.cos(i[0])*Math.sin(e)*Math.cos(c));var l=i[1]+Math.atan2(Math.sin(c)*Math.sin(e)*Math.cos(i[0]),Math.cos(e)-Math.sin(i[0])*Math.sin(h));s[u]=[];s[u][1]=t.numberToDegree(h);s[u][0]=t.numberToDegree(l)}return{type:"Polygon",coordinates:[s]}};t.rectangleCentroid=function(t){var a=t.coordinates[0];var n=a[0][0],r=a[0][1],o=a[2][0],e=a[2][1];var i=o-n;var s=e-r;return{type:"Point",coordinates:[n+i/2,r+s/2]}};t.pointDistance=function(a,n){var r=a.coordinates[0],o=a.coordinates[1],e=n.coordinates[0],i=n.coordinates[1],s=t.numberToRadius(i-o),u=t.numberToRadius(e-r),c=Math.pow(Math.sin(s/2),2)+Math.cos(t.numberToRadius(o))*Math.cos(t.numberToRadius(i))*Math.pow(Math.sin(u/2),2),h=2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c));return 6371*h*1e3},t.geometryWithinRadius=function(a,n,r){if("Point"==a.type)return t.pointDistance(a,n)<=r;if("LineString"==a.type||"Polygon"==a.type){var o={};var e;e="Polygon"==a.type?a.coordinates[0]:a.coordinates;for(var i in e){o.coordinates=e[i];if(t.pointDistance(o,n)>r)return false}}return true};t.area=function(t){var a=0;var n=t.coordinates[0];var r=n.length-1;var o,e;for(var i=0;i<n.length;r=i++){var o={x:n[i][1],y:n[i][0]};var e={x:n[r][1],y:n[r][0]};a+=o.x*e.y;a-=o.y*e.x}a/=2;return a},t.centroid=function(a){var n,r=0,o=0;var e=a.coordinates[0];var i=e.length-1;var s,u;for(var c=0;c<e.length;i=c++){var s={x:e[c][1],y:e[c][0]};var u={x:e[i][1],y:e[i][0]};n=s.x*u.y-u.x*s.y;r+=(s.x+u.x)*n;o+=(s.y+u.y)*n}n=6*t.area(a);return{type:"Point",coordinates:[o/n,r/n]}},t.simplify=function(t,a){a=a||20;t=t.map(function(t){return{lng:t.coordinates[0],lat:t.coordinates[1]}});var n,r,o,e,i,s,u;var c,h,l;var d,f,v,g,M,y,m,x,p;var P=Math.PI/180*.5;var b=new Array;var T=new Array;var j=new Array;if(t.length<3)return t;n=t.length;l=360*a/(2*Math.PI*6378137);l*=l;o=0;T[0]=0;j[0]=n-1;r=1;while(r>0){e=T[r-1];i=j[r-1];r--;if(i-e>1){d=t[i].lng()-t[e].lng();f=t[i].lat()-t[e].lat();if(Math.abs(d)>180)d=360-Math.abs(d);d*=Math.cos(P*(t[i].lat()+t[e].lat()));v=d*d+f*f;for(s=e+1,u=e,h=-1;s<i;s++){g=t[s].lng()-t[e].lng();M=t[s].lat()-t[e].lat();if(Math.abs(g)>180)g=360-Math.abs(g);g*=Math.cos(P*(t[s].lat()+t[e].lat()));y=g*g+M*M;m=t[s].lng()-t[i].lng();x=t[s].lat()-t[i].lat();if(Math.abs(m)>180)m=360-Math.abs(m);m*=Math.cos(P*(t[s].lat()+t[i].lat()));p=m*m+x*x;c=y>=v+p?p:p>=v+y?y:(g*f-M*d)*(g*f-M*d)/v;if(c>h){u=s;h=c}}if(h<l){b[o]=e;o++}else{r++;T[r-1]=u;j[r-1]=i;r++;T[r-1]=e;j[r-1]=u}}else{b[o]=e;o++}}b[o]=n-1;o++;var I=new Array;for(var s=0;s<o;s++)I.push(t[b[s]]);return I.map(function(t){return{type:"Point",coordinates:[t.lng,t.lat]}})};t.destinationPoint=function(a,n,r){r/=6371;n=t.numberToRadius(n);var o=t.numberToRadius(a.coordinates[0]);var e=t.numberToRadius(a.coordinates[1]);var i=Math.asin(Math.sin(o)*Math.cos(r)+Math.cos(o)*Math.sin(r)*Math.cos(n));var s=e+Math.atan2(Math.sin(n)*Math.sin(r)*Math.cos(o),Math.cos(r)-Math.sin(o)*Math.sin(i));s=(s+3*Math.PI)%(2*Math.PI)-Math.PI;return{type:"Point",coordinates:[t.numberToDegree(i),t.numberToDegree(s)]}}})()}}}}},{extensions:[".js",".json"]});return{export:function(){return{GeoJSON:a}},require:n,eagerModulePaths:["/node_modules/meteor/geojson-utils/main.js"],mainModulePath:"/node_modules/meteor/geojson-utils/main.js"}});
40
41Package["core-runtime"].queue("id-map",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.ejson.EJSON;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var t=Package.promise.Promise;var n=Package["ecmascript-runtime-client"].Symbol;var a=Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var i;var u=r({node_modules:{meteor:{"id-map":{
41"id-map.js":function(r,i,u){u.export({IdMap:function(){return b}});function o(e,r){if(null==r||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function l(e){if(Array.isArray(e))return e}function c(e,r,n,a,i,u,o){try{var l=e[u](o);var c=l.value}catch(e){n(e);return}if(l.done)r(c);else t.resolve(c).then(a,i)}function s(e){return function(){var r=this,n=arguments;return new t(function(t,a){var i=e.apply(r,n);function u(e){c(i,t,a,u,o,"next",e)}function o(e){c(i,t,a,u,o,"throw",e)}u(void 0)})}}function f(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function h(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function p(e,r,t){if(r)h(e.prototype,r);if(t)h(e,t);return e}function v(e,r){var t=null==e?null:void 0!==n&&e[n.iterator]||e["@@iterator"];if(null==t)return;var a=[];var i=true;var u=false;var o,l;try{for(t=t.call(e);!(i=(o=t.next()).done);i=true){a.push(o.value);if(r&&a.length===r)break}}catch(e){u=true;l=e}finally{try{if(!i&&null!=t["return"])t["return"]()}finally{if(u)throw l}}return a}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,r){return l(e)||v(e,r)||d(e,r)||y()}function d(e,r){if(!e)return;if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor)t=e.constructor.name;if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,r)}function g(e,r){var t,a,i,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o["throw"]=l(1),o["return"]=l(2),"function"==typeof n&&(o[n.iterator]=function(){return this}),o;function l(e){return function(r){return c([e,r])}}function c(n){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,n[0]&&(u=0)),u)try{if(t=1,a&&(i=2&n[0]?a["return"]:n[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,n[1])).done)return i;if(a=0,i)n=[2&n[0],i.value];switch(n[0]){case 0:case 1:i=n;break;case 4:u.label++;return{value:n[1],done:false};case 5:u.label++;a=n[1];n=[0];continue;case 7:n=u.ops.pop();u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){u.label=n[1];break}if(6===n[0]&&u.label<i[1]){u.label=i[1];i=n;break}if(i&&u.label<i[2]){u.label=i[2];u.ops.push(n);break}if(i[2])u.ops.pop();u.trys.pop();continue}n=r.call(e,u)}catch(e){n=[6,e];a=0}finally{t=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:true}}}var b=function(){"use strict";function r(e,t){f(this,r);this._map=new a;this._idStringify=e||JSON.stringify;this._idParse=t||JSON.parse}p(r,[{key:"get",value:function(e){var r=this._idStringify(e);return this._map.get(r)}},{key:"set",value:function(e,r){var t=this._idStringify(e);this._map.set(t,r)}},{key:"remove",value:function(e){var r=this._idStringify(e);this._map.delete(r)}},{key:"has",value:function(e){var r=this._idStringify(e);return this._map.has(r)}},{key:"empty",value:function(){return 0===this._map.size}},{key:"clear",value:function(){this._map.clear()}},{key:"forEach",value:function(e){var r=true,t=false,a=void 0;try{for(var i=this._map[n.iterator](),u;!(r=(u=i.next()).done);r=true){var o=m(u.value,2),l=o[0],c=o[1];var s=e.call(null,c,this._idParse(l));if(false===s)return}}catch(e){t=true;a=e}finally{try{if(!r&&null!=i.return)i.return()}finally{if(t)throw a}}}},{key:"forEachAsync",value:function(e){return s(function(){var r,t,a,i,u,o,l,c,s,f;return g(this,function(h){switch(h.label){case 0:r=true,t=false,a=void 0;h.label=1;case 1:h.trys.push([1,6,7,8]);i=this._map[n.iterator]();h.label=2;case 2:if(!!(r=(u=i.next()).done))return[3,5];o=m(u.value,2),l=o[0],c=o[1];return[4,e.call(null,c,this._idParse(l))];case 3:s=h.sent();if(false===s)return[2];h.label=4;case 4:r=true;return[3,2];case 5:return[3,8];case 6:f=h.sent();t=true;a=f;return[3,8];case 7:try{if(!r&&null!=i.return)i.return()}finally{if(t)throw a}
41return[7];case 8:return[2]}})}).call(this)}},{key:"size",value:function(){return this._map.size}},{key:"setDefault",value:function(e,r){var t=this._idStringify(e);if(this._map.has(t))return this._map.get(t);this._map.set(t,r);return r}},{key:"clone",value:function(){var t=new r(this._idStringify,this._idParse);this._map.forEach(function(r,n){t._map.set(n,e.clone(r))});return t}}]);return r}()}}}}},{extensions:[".js",".json"]});return{export:function(){return{IdMap:i}},require:u,eagerModulePaths:["/node_modules/meteor/id-map/id-map.js"],mainModulePath:"/node_modules/meteor/id-map/id-map.js"}});
42
43Package["core-runtime"].queue("random",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var n=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var t;var r=e({node_modules:{meteor:{random:{
43"main_client.js":function(e,n,t){t.export({Random:function(){return a}});var r;t.link("./BrowserRandomGenerator",{default:function(e){r=e}},0);var o;t.link("./createAleaGenerator",{default:function(e){o=e}},1);var u;t.link("./createRandom",{default:function(e){u=e}},2);var i;i="undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues?new r:o();var a=u(i)},
43"AbstractRandomGenerator.js":function(e,n,t){t.export({default:function(){return c}});t.link("meteor/meteor",{Meteor:function(e){}},0);function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function u(e,n,t){if(n)o(e.prototype,n);if(t)o(e,t);return e}var i="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz";var a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_";var c=function(){"use strict";function e(){r(this,e)}u(e,[{key:"fraction",value:function(){throw new Error("Unknown random generator type")}},{key:"hexString",value:function(e){return this._randomString(e,"0123456789abcdef")}},{key:"_randomString",value:function(e,n){var t="";for(var r=0;r<e;r++)t+=this.choice(n);return t}},{key:"id",value:function(e){if(void 0===e)e=17;return this._randomString(e,i)}},{key:"secret",value:function(e){if(void 0===e)e=43;return this._randomString(e,a)}},{key:"choice",value:function(e){var n=Math.floor(this.fraction()*e.length);if("string"==typeof e)return e.substr(n,1);return e[n]}}]);return e}()},
43"AleaRandomGenerator.js":function(e,t,r){r.export({default:function(){return h}});var o;r.link("./AbstractRandomGenerator",{default:function(e){o=e}},0);function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,n,t){n=l(n);return s(e,v()?Reflect.construct(n,t||[],l(e).constructor):n.apply(e,t))}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function c(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function f(e,n,t){if(n)c(e.prototype,n);if(t)c(e,t);return e}function l(e){l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return l(e)}function d(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:true,configurable:true}});if(n)m(e,n)}function s(e,n){if(n&&("object"===p(n)||"function"==typeof n))return n;return u(e)}function m(e,n){m=Object.setPrototypeOf||function(e,n){e.__proto__=n;return e};return m(e,n)}function p(e){return e&&void 0!==n&&e.constructor===n?"symbol":typeof e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function y(e){function n(){var e=0xefc8249d;var n=function(n){n=n.toString();for(var t=0;t<n.length;t++){e+=n.charCodeAt(t);var r=.02519603282416938*e;e=r>>>0;r-=e;r*=e;e=r>>>0;r-=e;e+=0x100000000*r}return(e>>>0)*23283064365386963e-26};n.version="Mash 0.9";return n}var t=0;var r=0;var o=0;var u=1;if(0===e.length)e=[+new Date];var i=n();t=i(" ");r=i(" ");o=i(" ");for(var a=0;a<e.length;a++){t-=i(e[a]);if(t<0)t+=1;r-=i(e[a]);if(r<0)r+=1;o-=i(e[a]);if(o<0)o+=1}i=null;var c=function(){var e=2091639*t+23283064365386963e-26*u;t=r;r=o;return o=e-(u=0|e)};c.uint32=function(){return 0x100000000*c()};c.fract53=function(){return c()+(2097152*c()|0)*11102230246251565e-32};c.version="Alea 0.9";c.args=e;return c}var h=function(e){"use strict";d(n,e);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.seeds,r=void 0===t?[]:t;a(this,n);var o;o=i(this,n);if(!r)throw new Error("No seeds were provided for Alea PRNG");o.alea=y(r);return o}f(n,[{key:"fraction",value:function(){return this.alea()}}]);return n}(o)},
43"BrowserRandomGenerator.js":function(e,t,r){r.export({default:function(){return y}});var o;r.link("./AbstractRandomGenerator",{default:function(e){o=e}},0);function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,n,t){n=l(n);return s(e,v()?Reflect.construct(n,t||[],l(e).constructor):n.apply(e,t))}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function c(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function f(e,n,t){if(n)c(e.prototype,n);if(t)c(e,t);return e}function l(e){l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return l(e)}function d(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:true,configurable:true}});if(n)m(e,n)}function s(e,n){if(n&&("object"===p(n)||"function"==typeof n))return n;return u(e)}function m(e,n){m=Object.setPrototypeOf||function(e,n){e.__proto__=n;return e};return m(e,n)}function p(e){return e&&void 0!==n&&e.constructor===n?"symbol":typeof e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var y=function(e){"use strict";d(n,e);function n(){a(this,n);return i(this,n,arguments)}f(n,[{key:"fraction",value:function(){var e=new Uint32Array(1);window.crypto.getRandomValues(e);return 23283064365386963e-26*e[0]}}]);return n}(o)},
43"createAleaGenerator.js":function(e,n,t){t.export({default:function(){return a}});var r;t.link("./AleaRandomGenerator",{default:function(e){r=e}},0);var o="undefined"!=typeof window&&window.innerHeight||"undefined"!=typeof document&&document.documentElement&&document.documentElement.clientHeight||"undefined"!=typeof document&&document.body&&document.body.clientHeight||1;var u="undefined"!=typeof window&&window.innerWidth||"undefined"!=typeof document&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeof document&&document.body&&document.body.clientWidth||1;var i="undefined"!=typeof navigator&&navigator.userAgent||"";function a(){return new r({seeds:[new Date,o,u,i,Math.random()]})}},
43"createRandom.js":function(e,n,t){t.export({default:function(){return u}});var r;t.link("./AleaRandomGenerator",{default:function(e){r=e}},0);var o;t.link("./createAleaGenerator",{default:function(e){o=e}},1);function u(e){e.createWithSeeds=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];if(0===n.length)throw new Error("No seeds were provided");return new r({seeds:n})};e.insecure=o();return e}}}}}},{extensions:[".js",".json"]});return{export:function(){return{Random:t}},require:r,eagerModulePaths:["/node_modules/meteor/random/main_client.js"],mainModulePath:"/node_modules/meteor/random/main_client.js"}});
44
45Package["core-runtime"].queue("mongo-id",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;Package.ejson.EJSON;Package.random.Random;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var t=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var n;var r=e({node_modules:{meteor:{"mongo-id":{
45"id.js":function(e,n,r){r.export({MongoID:function(){return l}});var o;r.link("meteor/ejson",{EJSON:function(e){o=e}},0);var i;r.link("meteor/random",{Random:function(e){i=e}},1);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function c(e,t,n){if(t)u(e.prototype,t);if(n)u(e,n);return e}function s(e,n){if(null!=n&&void 0!==t&&n[t.hasInstance])return!!n[t.hasInstance](e);return e instanceof n}function f(e){return e&&void 0!==t&&e.constructor===t?"symbol":typeof e}var l={};l._looksLikeObjectID=function(e){return 24===e.length&&/^[0-9a-f]*$/.test(e)};l.ObjectID=function(){"use strict";function e(t){a(this,e);if(t){t=t.toLowerCase();if(!l._looksLikeObjectID(t))throw new Error("Invalid hexadecimal string for creating an ObjectID");this._str=t}else this._str=i.hexString(24)}c(e,[{key:"equals",value:function(e){return s(e,l.ObjectID)&&this.valueOf()===e.valueOf()}},{key:"toString",value:function(){return'ObjectID("'.concat(this._str,'")')}},{key:"clone",value:function(){return new l.ObjectID(this._str)}},{key:"typeName",value:function(){return"oid"}},{key:"getTimestamp",value:function(){return Number.parseInt(this._str.substr(0,8),16)}},{key:"valueOf",value:function(){return this._str}},{key:"toJSONValue",value:function(){return this.valueOf()}},{key:"toHexString",value:function(){return this.valueOf()}}]);return e}();o.addType("oid",function(e){return new l.ObjectID(e)});l.idStringify=function(e){if(s(e,l.ObjectID))return e.valueOf();if("string"==typeof e){var t=e.charAt(0);if(""===e)return e;if("-"===t||"~"===t||l._looksLikeObjectID(e)||"{"===t)return"-".concat(e);return e}if(void 0===e)return"-";if((void 0===e?"undefined":f(e))!=="object"||null===e)return"~".concat(JSON.stringify(e));throw new Error("Meteor does not currently support objects other than ObjectID as ids")};l.idParse=function(e){var t=e.charAt(0);if(""===e)return e;if("-"===e)return;if("-"===t)return e.substr(1);if("~"===t)return JSON.parse(e.substr(1));if(l._looksLikeObjectID(e))return new l.ObjectID(e);else return e}}}}}},{extensions:[".js",".json"]});return{export:function(){return{MongoID:n}},require:r,eagerModulePaths:["/node_modules/meteor/mongo-id/id.js"],mainModulePath:"/node_modules/meteor/mongo-id/id.js"}});
46
47Package["core-runtime"].queue("ordered-dict",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var t=Package.promise.Promise;var r=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var n;var i=e({node_modules:{meteor:{"ordered-dict":{
47"ordered_dict.js":function(e,n,i){i.export({OrderedDict:function(){return h}});function u(e,r,n,i,u,o,a){try{var s=e[o](a);var l=s.value}catch(e){n(e);return}if(s.done)r(l);else t.resolve(l).then(i,u)}function o(e){return function(){var r=this,n=arguments;return new t(function(t,i){var o=e.apply(r,n);function a(e){u(o,t,i,a,s,"next",e)}function s(e){u(o,t,i,a,s,"throw",e)}a(void 0)})}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function l(e,t,r){if(t)s(e.prototype,t);if(r)s(e,r);return e}function c(e,t){var n,i,u,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),"function"==typeof r&&(a[r.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,r[0]&&(o=0)),o)try{if(n=1,i&&(u=2&r[0]?i["return"]:r[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,r[1])).done)return u;if(i=0,u)r=[2&r[0],u.value];switch(r[0]){case 0:case 1:u=r;break;case 4:o.label++;return{value:r[1],done:false};case 5:o.label++;i=r[1];r=[0];continue;case 7:r=o.ops.pop();o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!u||r[1]>u[0]&&r[1]<u[3])){o.label=r[1];break}if(6===r[0]&&o.label<u[1]){o.label=u[1];u=r;break}if(u&&o.label<u[2]){o.label=u[2];o.ops.push(r);break}if(u[2])o.ops.pop();o.trys.pop();continue}r=t.call(e,o)}catch(e){r=[6,e];i=0}finally{n=u=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:true}}}function f(e,t,r,n){return{key:e,value:t,next:r,prev:n}}var h=function(){"use strict";function e(){var t=this;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];a(this,e);this._dict=Object.create(null);this._first=null;this._last=null;this._size=0;if("function"==typeof n[0])this._stringify=n.shift();else this._stringify=function(e){return e};n.forEach(function(e){return t.putBefore(e[0],e[1],null)})}l(e,[{key:"_k",value:function(e){return" "+this._stringify(e)}},{key:"empty",value:function(){return!this._first}},{key:"size",value:function(){return this._size}},{key:"_linkEltIn",value:function(e){if(e.next){e.prev=e.next.prev;e.next.prev=e;if(e.prev)e.prev.next=e}else{e.prev=this._last;if(this._last)this._last.next=e;this._last=e}if(null===this._first||this._first===e.next)this._first=e}},{key:"_linkEltOut",value:function(e){if(e.next)e.next.prev=e.prev;if(e.prev)e.prev.next=e.next;if(e===this._last)this._last=e.prev;if(e===this._first)this._first=e.next}},{key:"putBefore",value:function(e,t,r){if(this._dict[this._k(e)])throw new Error("Item "+e+" already present in OrderedDict");var n=r?f(e,t,this._dict[this._k(r)]):f(e,t,null);if(void 0===n.next)throw new Error("could not find item to put this one before");this._linkEltIn(n);this._dict[this._k(e)]=n;this._size++}},{key:"append",value:function(e,t){this.putBefore(e,t,null)}},{key:"remove",value:function(e){var t=this._dict[this._k(e)];if(void 0===t)throw new Error("Item "+e+" not present in OrderedDict");this._linkEltOut(t);this._size--;delete this._dict[this._k(e)];return t.value}},{key:"get",value:function(e){if(this.has(e))return this._dict[this._k(e)].value}},{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this._dict,this._k(e))}},{key:"forEach",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var n=0;var i=this._first;while(null!==i){var u=t.call(r,i.value,i.key,n);if(u===e.BREAK)return;i=i.next;n++}}},{key:"forEachAsync",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o(function(){var n,i,u;return c(this,function(o){switch(o.label){case 0:n=0;i=this._first;o.label=1;case 1:if(!(null!==i))return[3,3];return[4,t.call(r,i.value,i.key,n)];case 2:u=o.sent();if(u===e.BREAK)return[2];i=i.next;n++;return[3,1];case 3:return[2]}})}).call(this)}},{key:"first",value:function(){if(this.empty())return;return this._first.key}},{key:"firstValue",value:function(){if(this.empty())return;return this._first.value}},{key:"last",value:function(){if(this.empty())return;return this._last.key}},{key:"lastValue",value:function(){if(this.empty())return;return this._last.value}},{key:"prev",value:function(e){if(this.has(e)){var t=this._dict[this._k(e)];if(t.prev)return t.prev.key}return null}},{key:"next",value:function(e){if(this.has(e)){var t=this._dict[this._k(e)];if(t.next)return t.next.key}return null}},{key:"moveBefore",value:function(e,t){var r=this._dict[this._k(e)];var n=t?this._dict[this._k(t)]:null;if(void 0===r)throw new Error("Item to move is not present");if(void 0===n)throw new Error("Could not find element to move this one before");if(n===r.next)return;this._linkEltOut(r);r.next=n;this._linkEltIn(r)}},{key:"indexOf",value:function(t){var r=this;var n=null;this.forEach(function(i,u,o){if(r._k(u)===r._k(t)){n=o;return e.BREAK}});return n}},{key:"_checkRep",value:function(){var e=this;Object.keys(this._dict).forEach(function(t){var r=e._dict[t];if(r.next===r)throw new Error("Next is a loop");if(r.prev===r)throw new Error("Prev is a loop")})}}]);return e}();h.BREAK={break:true}}}}}},{extensions:[".js",".json"]});return{export:function(){return{OrderedDict:n}},require:i,eagerModulePaths:["/node_modules/meteor/ordered-dict/ordered_dict.js"],mainModulePath:"/node_modules/meteor/ordered-dict/ordered_dict.js"}});
48
49Package["core-runtime"].queue("tracker",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var n=Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var r,i;
49var o=t({node_modules:{meteor:{tracker:{
49"tracker.js":function(){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function a(e,t,n){if(t)o(e.prototype,t);if(n)o(e,n);return e}r={};i=r;r.active=false;r.currentComputation=null;function u(){return void 0!==e?e._debug:"undefined"!=typeof console&&console.error?function(){console.error.apply(console,arguments)}:function(){}}function s(t){if(void 0!==e){if(e._suppressed_log_expected())e._suppress_log(t-1)}}function l(e,t){if(m)throw t;var n=["Exception from Tracker "+e+" function:"];if(t.stack&&t.message&&t.name){var r=t.stack.indexOf(t.message);if(r<0||r>t.name.length+2){var i=t.name+": "+t.message;n.push(i)}}n.push(t.stack);s(n.length);for(var o=0;o<n.length;o++)u()(n[o])}function c(t){if(void 0===e||e.isClient)return t;return function(){var n=arguments;e._noYieldsAllowed(function(){t.apply(null,n)})}}var f=1;var h=[];var v=false;var p=false;var d=false;var m=false;var y=[];function _(){if(!v){if(void 0!==e)e._setImmediate(r._runFlush);else setTimeout(r._runFlush,0);v=true}}var k=false;r.Computation=function(){"use strict";function e(n,r,i){t(this,e);if(!k)throw new Error("Tracker.Computation constructor is private; use Tracker.autorun");k=false;this.stopped=false;this.invalidated=false;this.firstRun=true;this._id=f++;this._onInvalidateCallbacks=[];this._onStopCallbacks=[];this._parent=r;this._func=n;this._onError=i;this._recomputing=false;this.firstRunPromise=void 0;var o=true;try{this._compute();o=false}finally{this.firstRun=false;if(o)this.stop()}}a(e,[{key:"then",value:function(e,t){return this.firstRunPromise.then(e,t)}},{key:"catch",value:function(e){return this.firstRunPromise.catch(e)}},{key:"onInvalidate",value:function(e){var t=this;if("function"!=typeof e)throw new Error("onInvalidate requires a function");if(this.invalidated)r.nonreactive(function(){c(e)(t)});else this._onInvalidateCallbacks.push(e)}},{key:"onStop",value:function(e){var t=this;if("function"!=typeof e)throw new Error("onStop requires a function");if(this.stopped)r.nonreactive(function(){c(e)(t)});else this._onStopCallbacks.push(e)}},{key:"invalidate",value:function(){var e=this;if(!this.invalidated){if(!this._recomputing&&!this.stopped){_();h.push(this)}this.invalidated=true;for(var t=0,n;n=this._onInvalidateCallbacks[t];t++)r.nonreactive(function(){c(n)(e)});this._onInvalidateCallbacks=[]}}},{key:"stop",value:function(){var e=this;if(!this.stopped){this.stopped=true;this.invalidate();for(var t=0,n;n=this._onStopCallbacks[t];t++)r.nonreactive(function(){c(n)(e)});this._onStopCallbacks=[]}}},{key:"_compute",value:function(){var e=this;this.invalidated=false;var t=d;d=true;try{var i=r.withComputation(this,function(){return c(e._func)(e)});if(this.firstRun)this.firstRunPromise=n.resolve(i)}finally{d=t}}},{key:"_needsRecompute",value:function(){return this.invalidated&&!this.stopped}},{key:"_recompute",value:function(){this._recomputing=true;try{if(this._needsRecompute())try{this._compute()}catch(e){if(this._onError)this._onError(e);else l("recompute",e)}}finally{this._recomputing=false}}},{key:"flush",value:function(){if(this._recomputing)return;this._recompute()}},{key:"run",value:function(){this.invalidate();this.flush()}}]);return e}();r.Dependency=function(){"use strict";function e(){t(this,e);this._dependentsById=Object.create(null)}a(e,[{key:"depend",value:function(e){var t=this;if(!e){if(!r.active)return false;e=r.currentComputation}var n=e._id;if(!(n in this._dependentsById)){this._dependentsById[n]=e;e.onInvalidate(function(){delete t._dependentsById[n]});return true}return false}},{key:"changed",value:function(){for(var e in this._dependentsById)this._dependentsById[e].invalidate()}},{key:"hasDependents",value:function(){for(var e in this._dependentsById)return true;return false}}]);return e}();r.flush=function(e){r._runFlush({finishSynchronously:true,throwFirstError:e&&e._throwFirstError})};r.inFlush=function(){return p};r._runFlush=function(e){if(r.inFlush())throw new Error("Can't call Tracker.flush while flushing");if(d)throw new Error("Can't flush inside Tracker.autorun");e=e||{};p=true;v=true;m=!!e.throwFirstError;var t=0;var n=false;try{while(h.length||y.length){while(h.length){var i=h.shift();i._recompute();if(i._needsRecompute())h.unshift(i);if(!e.finishSynchronously&&++t>1e3){n=true;return}}if(y.length){var o=y.shift();try{o()}catch(e){l("afterFlush",e)}}}n=true}finally{if(!n){p=false;r._runFlush({finishSynchronously:e.finishSynchronously,throwFirstError:false})}v=false;p=false;if(h.length||y.length){if(e.finishSynchronously)throw new Error("still have more to do?");setTimeout(_,10)}}};r.autorun=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof e)throw new Error("Tracker.autorun requires a function argument");k=true;var n=new r.Computation(e,r.currentComputation,t.onError);if(r.active)r.onInvalidate(function(){n.stop()});return n};r.nonreactive=function(e){return r.withComputation(null,e)};r.withComputation=function(e,t){var n=r.currentComputation;r.currentComputation=e;r.active=!!e;try{return t()}finally{r.currentComputation=n;r.active=!!n}};r.onInvalidate=function(e){if(!r.active)throw new Error("Tracker.onInvalidate requires a currentComputation");r.currentComputation.onInvalidate(e)};r.afterFlush=function(e){y.push(e);_()}}}}}},{extensions:[".js",".json"]});return{export:function(){return{Tracker:r,Deps:i}},require:o,eagerModulePaths:["/node_modules/meteor/tracker/tracker.js"]}});
50
51Package["core-runtime"].queue("minimongo",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var r=Package["diff-sequence"].DiffSequence;var t=Package.ejson.EJSON;var n=Package["geojson-utils"].GeoJSON;var i=Package["id-map"].IdMap;var o=Package["mongo-id"].MongoID;var a=Package["ordered-dict"].OrderedDict;var u=Package.random.Random;var s=Package.tracker.Tracker;Package.tracker.Deps;var c=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var l=Package.promise.Promise;var f=Package["ecmascript-runtime-client"].Symbol;var d=Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var h,v,p,y;var m=c({node_modules:{meteor:{minimongo:{
51"minimongo_client.js":function(e,r,t){t.link("./minimongo_common.js")},
51"common.js":function(e,r,i){i.export({hasOwn:function(){return C},MiniMongoQueryError:function(){return M},ELEMENT_OPERATORS:function(){return P},compileDocumentSelector:function(){return T},equalityElementMatcher:function(){return L},expandArraysInBranches:function(){return G},isIndexable:function(){return Y},isNumericKey:function(){return V},isOperatorObject:function(){return X},makeLookupFunction:function(){return ee},nothingMatcher:function(){return er},pathsToTree:function(){return en},populateDocumentWithQueryFields:function(){return eu},projectionDetails:function(){return es},regexpElementMatcher:function(){return ec}});var o;i.link("./local_collection.js",{default:function(e){o=e}},0);function a(e,r){if(null==r||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function u(e){if(Array.isArray(e))return a(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,r,t){r=m(r);return k(e,S()?Reflect.construct(r,t||[],m(e).constructor):r.apply(e,t))}function l(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function p(e,r,t){p=S()?Reflect.construct:function(e,r,t){var n=[null];n.push.apply(n,r);var i=Function.bind.apply(e,n);var o=new i;if(t)j(o,t.prototype);return o};return p.apply(null,arguments)}function y(e,r,t){if(r in e)Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true});else e[r]=t;return e}function m(e){m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return m(e)}function _(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)j(e,r)}function b(e,r){if(null!=r&&void 0!==f&&r[f.hasInstance])return!!r[f.hasInstance](e);return e instanceof r}function g(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function w(e){if(void 0!==f&&null!=e[f.iterator]||null!=e["@@iterator"])return Array.from(e)}function O(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e,r){if(r&&("object"===E(r)||"function"==typeof r))return r;return s(e)}function j(e,r){j=Object.setPrototypeOf||function(e,r){e.__proto__=r;return e};return j(e,r)}function A(e){return u(e)||w(e)||$(e)||O()}function E(e){return e&&void 0!==f&&e.constructor===f?"symbol":typeof e}function $(e,r){if(!e)return;if("string"==typeof e)return a(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor)t=e.constructor.name;if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,r)}function I(e){var r="function"==typeof d?new d:void 0;I=function(e){if(null===e||!g(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return p(e,arguments,m(this).constructor)}t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}});return j(t,e)};return I(e)}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}var C=Object.prototype.hasOwnProperty;var M=function(e){"use strict";_(r,e);function r(){l(this,r);return c(this,r,arguments)}return r}(I(Error));var P={$lt:Z(function(e){return e<0}),$gt:Z(function(e){return e>0}),$lte:Z(function(e){return e<=0}),$gte:Z(function(e){return e>=0}),$mod:{compileElementSelector:function(e){if(!(Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]))throw new M("argument to $mod must be an array of two numbers");var r=e[0];var t=e[1];return function(e){return"number"==typeof e&&e%r===t}}},$in:{compileElementSelector:function(e,r,t){if(!Array.isArray(e))throw new M("$in needs an array");var n=t&&t._collator;var i=e.map(function(e){if(b(e,RegExp))return ec(e);if(X(e))throw new M("cannot nest $ under $in");return L(e,n)});return function(e){if(void 0===e)e=null;return i.some(function(r){return r(e)})}}},$size:{dontExpandLeafArrays:true,compileElementSelector:function(e){if("string"==typeof e)e=0;else if("number"!=typeof e)throw new M("$size needs a number");return function(r){return Array.isArray(r)&&r.length===e}}},$type:{dontIncludeLeafArrays:true,compileElementSelector:function(e){if("string"==typeof e){var r={double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol
51:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:-1,maxKey:127};if(!C.call(r,e))throw new M("unknown string alias for $type: ".concat(e));e=r[e]}else if("number"==typeof e){if(0===e||e<-1||e>19&&127!==e)throw new M("Invalid numerical $type code: ".concat(e))}else throw new M("argument to $type is not a number or a string");return function(r){return void 0!==r&&o._f._type(r)===e}}},$bitsAllSet:{compileElementSelector:function(e){var r=z(e,"$bitsAllSet");return function(e){var t=H(e,r.length);return t&&r.every(function(e,r){return(t[r]&e)===e})}}},$bitsAnySet:{compileElementSelector:function(e){var r=z(e,"$bitsAnySet");return function(e){var t=H(e,r.length);return t&&r.some(function(e,r){return(~t[r]&e)!==e})}}},$bitsAllClear:{compileElementSelector:function(e){var r=z(e,"$bitsAllClear");return function(e){var t=H(e,r.length);return t&&r.every(function(e,r){return!(t[r]&e)})}}},$bitsAnyClear:{compileElementSelector:function(e){var r=z(e,"$bitsAnyClear");return function(e){var t=H(e,r.length);return t&&r.some(function(e,r){return(t[r]&e)!==e})}}},$regex:{compileElementSelector:function(e,r){if(!("string"==typeof e||b(e,RegExp)))throw new M("$regex has to be a string or RegExp");var t;if(void 0!==r.$options){if(/[^gim]/.test(r.$options))throw new M("Only the i, m, and g regexp options are supported");var n=b(e,RegExp)?e.source:e;t=new RegExp(n,r.$options)}else t=b(e,RegExp)?e:new RegExp(e);return ec(t)}},$elemMatch:{dontExpandLeafArrays:true,compileElementSelector:function(e,r,t){if(!o._isPlainObject(e))throw new M("$elemMatch need an object");var n=!X(Object.keys(e).filter(function(e){return!C.call(x,e)}).reduce(function(r,t){return Object.assign(r,y({},t,e[t]))},{}),true);var i;i=n?T(e,t,{inElemMatch:true}):U(e,t);return function(e){if(!Array.isArray(e))return false;for(var r=0;r<e.length;++r){var t=e[r];var o=void 0;if(n){if(!Y(t))return false;o=t}else o=[{value:t,dontIterate:true}];if(i(o).result)return r}return false}}}};var x={$and:function(e,r,t){return F(D(e,r,t))},$or:function(e,r,t){var n=D(e,r,t);if(1===n.length)return n[0];return function(e){var r=n.some(function(r){return r(e).result});return{result:r}}},$nor:function(e,r,t){var n=D(e,r,t);return function(e){var r=n.every(function(r){return!r(e).result});return{result:r}}},$where:function(e,r){r._recordPathUsed("");r._hasWhere=true;if(!b(e,Function))e=Function("obj","return ".concat(e));return function(r){return{result:e.call(r,r)}}},$comment:function(){return function(){return{result:true}}}};var R={$eq:function(e,r,t){return N(L(e,t&&t._collator))},$not:function(e,r,t){return W(U(e,t))},$ne:function(e,r,t){return W(N(L(e,t&&t._collator)))},$nin:function(e,r,t){return W(N(P.$in.compileElementSelector(e,r,t)))},$exists:function(e){var r=N(function(e){return void 0!==e});return e?r:W(r)},$options:function(e,r){if(!C.call(r,"$regex"))throw new M("$options needs a $regex");return K},$maxDistance:function(e,r){if(!r.$near)throw new M("$maxDistance needs a $near");return K},$all:function(e,r,t){if(!Array.isArray(e))throw new M("$all requires array");if(0===e.length)return er;var n=e.map(function(e){if(X(e))throw new M("no $ expressions in $all");return U(e,t)});return B(n)},$near:function(e,r,t,i){if(!i)throw new M("$near can't be inside another $ operator");t._hasGeoQuery=true;var a,u,s;if(o._isPlainObject(e)&&C.call(e,"$geometry")){a=e.$maxDistance;u=e.$geometry;s=function(e){if(!e)return null;if(!e.type)return n.pointDistance(u,{type:"Point",coordinates:ei(e)});if("Point"===e.type)return n.pointDistance(u,e);return n.geometryWithinRadius(e,u,a)?0:a+1}}else{a=r.$maxDistance;if(!Y(e))throw new M("$near argument must be coordinate pair or GeoJSON");u=ei(e);s=function(e){if(!Y(e))return null;return Q(u,e)}}return function(e){var r={result:false};G(e).every(function(e){var n;if(!t._isUpdate){if("object"!==E(e.value))return true;n=s(e.value);if(null===n||n>a)return true;if(void 0!==r.distance&&r.distance<=n)return true}r.result=true;r.distance=n;if(e.arrayIndices)r.arrayIndices=e.arrayIndices;else delete r.arrayIndices;return!t._isUpdate});return r}}};function q(e){if(0===e.length)return K;if(1===e.length)return e[0];return function(r){var t={};t.result=e.every(function(e){var n=e(r);if(n.result&&void 0!==n.distance&&void 0===t.distance)t.distance=n.distance;if(n.result&&n.arrayIndices)t.arrayIndices=n.arrayIndices;return n.result});if(!t.result){delete t.distance;delete t.arrayIndices}return t}}var F=q;var B=q;function D(e,r,t){if(!Array.isArray(e)||0===e.length)throw new M("$and/$or/$nor must be nonempty array");return e.map(function(e){if(!o._isPlainObject(e))throw new M("$or/$and/$nor entries need to be full objects");return T(e,r,{inElemMatch:t})})}function T(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=Object.keys(e).map(function(n){var i=e[n];if("$"===n.substr(0,1)){if(!C.call(x,n))throw new M("Unrecognized logical operator: ".concat(n));r._isSimple=false;return x[n](i,r,t.inElemMatch)}if(!t.inElemMatch)r._recordPathUsed(n);if("function"==typeof i)return;var o=ee(n);var a=U(i,r,t.isRoot);return function(e){return a(o(e))}}
51).filter(Boolean);return F(n)}function U(e,r,t){if(b(e,RegExp)){r._isSimple=false;return N(ec(e))}if(X(e))return et(e,r,t);return N(L(e,r&&r._collator))}function N(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){var n=r.dontExpandLeafArrays?t:G(t,r.dontIncludeLeafArrays);var i={};i.result=n.some(function(r){var t=e(r.value);if("number"==typeof t){if(!r.arrayIndices)r.arrayIndices=[t];t=true}if(t&&r.arrayIndices)i.arrayIndices=r.arrayIndices;return t});return i}}function Q(e,r){var t=ei(e);var n=ei(r);return Math.hypot(t[0]-n[0],t[1]-n[1])}function L(e,r){if(X(e))throw new M("Can't create equalityValueSelector for operator object");if(null==e)return function(e){return null==e};return function(t){return o._f._equal(e,t,r)}}function K(e){return{result:true}}function G(e,r){var t=[];e.forEach(function(e){var n=Array.isArray(e.value);if(!(r&&n&&!e.dontIterate))t.push({arrayIndices:e.arrayIndices,value:e.value});if(n&&!e.dontIterate)e.value.forEach(function(r,n){t.push({arrayIndices:(e.arrayIndices||[]).concat(n),value:r})})});return t}function z(e,r){if(Number.isInteger(e)&&e>=0)return new Uint8Array(new Int32Array([e]).buffer);if(t.isBinary(e))return new Uint8Array(e.buffer);if(Array.isArray(e)&&e.every(function(e){return Number.isInteger(e)&&e>=0})){var n;var i=new ArrayBuffer(((n=Math).max.apply(n,A(e))>>3)+1);var o=new Uint8Array(i);e.forEach(function(e){o[e>>3]|=1<<(7&e)});return o}throw new M("operand to ".concat(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 H(e,r){if(Number.isSafeInteger(e)){var n=new ArrayBuffer(Math.max(r,2*Uint32Array.BYTES_PER_ELEMENT));var i=new Uint32Array(n,0,2);i[0]=e%0x100000000|0;i[1]=e/0x100000000|0;if(e<0){i=new Uint8Array(n,2);i.forEach(function(e,r){i[r]=255})}return new Uint8Array(n)}if(t.isBinary(e))return new Uint8Array(e.buffer);return false}function J(e,r,t){Object.keys(e).forEach(function(e){if(e.length>r.length&&0===e.indexOf("".concat(r,"."))||r.length>e.length&&0===r.indexOf("".concat(e,".")))throw new M("cannot infer query fields to set, both paths '".concat(e,"' and '").concat(r,"' are matched"));if(e===r)throw new M("cannot infer query fields to set, path '".concat(r,"' is matched twice"))});e[r]=t}function W(e){return function(r){return{result:!e(r).result}}}function Y(e){return Array.isArray(e)||o._isPlainObject(e)}function V(e){return/^[0-9]+$/.test(e)}function X(e,r){if(!o._isPlainObject(e))return false;var t=void 0;Object.keys(e).forEach(function(n){var i="$"===n.substr(0,1)||"diff"===n;if(void 0===t)t=i;else if(t!==i){if(!r)throw new M("Inconsistent operator: ".concat(JSON.stringify(e)));t=false}});return!!t}function Z(e){return{compileElementSelector:function(r,t,n){if(Array.isArray(r))return function(){return false};if(void 0===r)r=null;var i=o._f._type(r);var a=n&&n._collator;return function(t){if(void 0===t)t=null;if(o._f._type(t)!==i)return false;return e(o._f._cmp(t,r,a))}}}}function ee(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var t=e.split(".");var n=t.length?t[0]:"";var i=t.length>1&&ee(t.slice(1).join("."),r);function a(e,r,t){return e&&e.length?r?[{arrayIndices:e,dontIterate:r,value:t}]:[{arrayIndices:e,value:t}]:r?[{dontIterate:r,value:t}]:[{value:t}]}return function(e,u){if(Array.isArray(e)){if(!(V(n)&&n<e.length))return[];u=u?u.concat(+n,"x"):[+n,"x"]}var s=e[n];if(!i)return a(u,Array.isArray(e)&&Array.isArray(s),s);if(!Y(s)){if(Array.isArray(e))return[];return a(u,false,void 0)}var c=[];var l=function(e){var r;(r=c).push.apply(r,A(e))};l(i(s,u));if(Array.isArray(s)&&!(V(t[1])&&r.forSort))s.forEach(function(e,r){if(o._isPlainObject(e))l(i(e,u?u.concat(r):[r]))});return c}}h={makeLookupFunction:ee};v=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e&&r.field)e+=" for field '".concat(r.field,"'");var t=new Error(e);t.name="MinimongoError";return t};function er(e){return{result:false}}function et(e,r,t){var n=Object.keys(e).map(function(n){var i=e[n];var o=["$lt","$lte","$gt","$gte"].includes(n)&&"number"==typeof i;var a=["$ne","$eq"].includes(n)&&i!==Object(i);var u=["$in","$nin"].includes(n)&&Array.isArray(i)&&!i.some(function(e){return e===Object(e)});if(!(o||u||a))r._isSimple=false;if(C.call(R,n))return R[n](i,e,r,t);if(C.call(P,n)){var s=P[n];return N(s.compileElementSelector(i,e,r),s)}throw new M("Unrecognized operator: ".concat(n))});return B(n)}function en(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.forEach(function(e){var i=e.split(".");var o=n;var a=i.slice(0,-1).every(function(r,n){if(C.call(o,r)){if(o[r]!==Object(o[r])){o[r]=t(o[r],i.slice(0,n+1).join("."),e);if(o[r]!==Object(o[r]))return false}}else o[r]={};o=o[r];return true});if(a){var u=i[i.length-1];if(C.call(o,u))o[u]=t(o[u],e,e);else o[u]=r(e)}});return n}function ei(e){return Array.isArray(e)?e.slice():[e.x,e.y]}function eo(e,r,t){if(t&&Object.getPrototypeOf(t)===Object.prototype)ea(e,r,t);else if(!b(t,RegExp))J(e,r,t)}function ea(e,r,t){var n=Object.keys(t);var i=n.filter(function(e){return"$"!==e[0]});if(i.length>0||!n.length){if(n.length!==i.length)throw new M("unknown operator: ".concat(i[0]));ef(t,r);J(e,r,t)}else Object.keys(t).forEach(function(n){var i=t[n];if("$eq"===n)eo(e,r,i);else if("$all"===n)i.forEach(function(t){return eo(e,r,t)})})}function eu(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.getPrototypeOf(e)===Object.prototype)Object.keys(e).forEach(function(t){var n=e[t];if("$and"===t)n.forEach(function(e){return eu(e,r)});else if("$or"===t){if(1===n.length)eu(n[0],r)}else if("$"!==t[0])eo(r,t,n)});else if(o._selectorIsId(e))J(r,"_id",e);return r}function es(e){var r=Object.keys(e).sort();if(!(1===r.length&&"_id"===r[0])&&!(r.includes("_id")&&e._id))r=r.filter(function(e){return"_id"!==e});var t=null;r.forEach(function(r){var n=!!e[r];if(null===t)t=n;if(t!==n)throw v("You cannot currently mix including and excluding fields.")});var n=en(r,function(e){return t},function(e,r,t){var n=t;var i=r;throw v("both ".concat(n," and ").concat(i," found in fields option, ")+"using both of them may trigger unexpected behavior. Did you mean to use only one of them?")});return{including:t,tree:n}}function ec(e){return function(r){if(b(r,RegExp))return r.toString()===e.toString();if("string"!=typeof r)return false;e.lastIndex=0;return e.test(r)}}function el(e,r){if(e.includes("."))throw new Error("The dotted field '".concat(e,"' in '").concat(r,".").concat(e," is not val
51id for storage."));if("$"===e[0])throw new Error("The dollar ($) prefixed field  '".concat(r,".").concat(e," is not valid for storage."))}function ef(e,r){if(e&&Object.getPrototypeOf(e)===Object.prototype)Object.keys(e).forEach(function(t){el(t,r);ef(e[t],r+"."+t)})}},
51"constants.js":function(e,r,t){t.export({getAsyncMethodName:function(){return n},ASYNC_COLLECTION_METHODS:function(){return i},ASYNC_CURSOR_METHODS:function(){return o},CLIENT_ONLY_METHODS:function(){return a}});function n(e){return"".concat(e.replace("_",""),"Async")}var i=["_createCappedCollection","dropCollection","dropIndex","createIndex","findOne","insert","remove","update","upsert"];var o=["count","fetch","forEach","map"];var a=["findOne","insert","remove","update","upsert"]},
51"cursor.js":function(r,n,i){i.export({default:function(){return O}});var o;i.link("./local_collection.js",{default:function(e){o=e}},0);var a;i.link("./common.js",{hasOwn:function(e){a=e}},1);var u,c;i.link("./constants",{ASYNC_CURSOR_METHODS:function(e){u=e},getAsyncMethodName:function(e){c=e}},2);function d(e){var r,t,n,i=2;for(void 0!==f&&(t=f.asyncIterator,n=f.iterator);i--;){if(t&&null!=(r=e[t]))return r.call(e);if(n&&null!=(r=e[n]))return new h(r.call(e));t="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function h(e){function r(e){if(Object(e)!==e)return l.reject(new TypeError(e+" is not an object."));var r=e.done;return l.resolve(e.value).then(function(e){return{value:e,done:r}})}return h=function(e){this.s=e,this.n=e.next},h.prototype={s:null,n:null,next:function(){return r(this.n.apply(this.s,arguments))},return:function(e){var t=this.s.return;return void 0===t?l.resolve({value:e,done:!0}):r(t.apply(this.s,arguments))},throw:function(e){var t=this.s.return;return void 0===t?l.reject(e):r(t.apply(this.s,arguments))}},new h(e)}function v(e,r,t,n,i,o,a){try{var u=e[o](a);var s=u.value}catch(e){t(e);return}if(u.done)r(s);else l.resolve(s).then(n,i)}function p(e){return function(){var r=this,t=arguments;return new l(function(n,i){var o=e.apply(r,t);function a(e){v(o,n,i,a,u,"next",e)}function u(e){v(o,n,i,a,u,"throw",e)}a(void 0)})}}function m(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function b(e,r,t){if(r)_(e.prototype,r);if(t)_(e,t);return e}function g(e,r){if(null!=r&&void 0!==f&&r[f.hasInstance])return!!r[f.hasInstance](e);return e instanceof r}function w(e,r){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),"function"==typeof f&&(a[f.iterator]=function(){return this}),a;function u(e){return function(r){return s([e,r])}}function s(u){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(o=0)),o)try{if(t=1,n&&(i=2&u[0]?n["return"]:u[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;if(n=0,i)u=[2&u[0],i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:o.label++;return{value:u[1],done:false};case 5:o.label++;n=u[1];u=[0];continue;case 7:u=o.ops.pop();o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1];i=u;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(u);break}if(i[2])o.ops.pop();o.trys.pop();continue}u=r.call(e,o)}catch(e){u=[6,e];n=0}finally{t=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:true}}}var O=function(){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};m(this,r);this.collection=e;this.sorter=null;var i=o._createCollator(n.collation);this.matcher=new y.Matcher(t,void 0,i);if(o._selectorIsIdPerhapsAsObject(t)&&!n.collation)this._selectorId=a.call(t,"_id")?t._id:t;else{this._selectorId=void 0;if(this.matcher.hasGeoQuery()||n.sort)this.sorter=new y.Sorter(n.sort||[],i)}this.skip=n.skip||0;this.limit=n.limit;this.fields=n.projection||n.fields;this._projectionFn=o._compileProjection(this.fields||{});this._transform=o.wrapTransform(n.transform);if(void 0!==s)this.reactive=void 0===n.reactive?true:n.reactive}b(r,[{key:"count",value:function(){if(this.reactive)this._depend({added:true,removed:true},true);return this._getRawObjects({ordered:true}).length}},{key:"fetch",value:function(){var e=[];this.forEach(function(r){e.push(r)});return e}},{key:f.iterator,value:function(){var e=this;if(this.reactive)this._depend({addedBefore:true,removed:true,changed:true,movedBefore:true});var r=0;var t=this._getRawObjects({ordered:true});return{next:function(){if(r<t.length){var n=e._projectionFn(t[r++]);if(e._transform)n=e._transform(n);return{value:n}}return{done:true}}}}},{key:f.asyncIterator,value:function(){var e=this[f.iterator]();return{next:function(){return p(function(){return w(this,function(r){return[2,l.resolve(e.next())]})})()}}}}
51,{key:"forEach",value:function(e,r){var t=0;var n=true,i=false,o=void 0;try{for(var a=this[f.iterator](),u;!(n=(u=a.next()).done);n=true){var s=u.value;e.call(r,s,t++,this)}}catch(e){i=true;o=e}finally{try{if(!n&&null!=a.return)a.return()}finally{if(i)throw o}}}},{key:"forEachAsync",value:function(e,r){return p(function(){var t,n,i,o,a,u,s,c,l;return w(this,function(f){switch(f.label){case 0:t=0;n=false,i=false;f.label=1;case 1:f.trys.push([1,7,8,13]);a=d(this);f.label=2;case 2:return[4,a.next()];case 3:if(!(n=!(u=f.sent()).done))return[3,6];s=u.value;c=s;return[4,e.call(r,c,t++,this)];case 4:f.sent();f.label=5;case 5:n=false;return[3,2];case 6:return[3,13];case 7:l=f.sent();i=true;o=l;return[3,13];case 8:f.trys.push([8,,11,12]);if(!(n&&null!=a.return))return[3,10];return[4,a.return()];case 9:f.sent();f.label=10;case 10:return[3,12];case 11:if(i)throw o;return[7];case 12:return[7];case 13:return[2]}})}).call(this)}},{key:"getTransform",value:function(){return this._transform}},{key:"map",value:function(e,r){var t=this;var n=[];this.forEach(function(i,o){n.push(e.call(r,i,o,t))});return n}},{key:"mapAsync",value:function(e,r){return p(function(){var t,n;return w(this,function(i){switch(i.label){case 0:t=this;n=[];return[4,this.forEachAsync(function(i,o){return p(function(){var t;return w(this,function(a){switch(a.label){case 0:t=n.push;return[4,e.call(r,i,o,this)];case 1:t.apply(n,[a.sent()]);return[2]}})}).call(t)})];case 1:i.sent();return[2,n]}})}).call(this)}},{key:"observe",value:function(e){return o._observeFromObserveChanges(this,e)}},{key:"observeAsync",value:function(e){var r=this;return new l(function(t){return t(r.observe(e))})}},{key:"observeChanges",value:function(e){var r=this;var n=o._observeChangesCallbacksAreOrdered(e);if(!e._allow_unordered&&!n&&(this.skip||this.limit))throw new Error("Mu
51st use an ordered observe with skip or limit (i.e. 'addedBefore' for observeChanges or 'addedAt' for observe, instead of 'added').");if(this.fields&&(0===this.fields._id||false===this.fields._id))throw Error("You may not observe a cursor with {fields: {_id: 0}}");var i=this.matcher.hasGeoQuery()&&n&&new o._IdMap;var a={cursor:this,dirty:false,distances:i,matcher:this.matcher,ordered:n,projectionFn:this._projectionFn,resultsSnapshot:null,sorter:n&&this.sorter};var u;if(this.reactive){u=this.collection.next_qid++;this.collection.queries[u]=a}a.results=this._getRawObjects({ordered:n,distances:a.distances});if(this.collection.paused)a.resultsSnapshot=n?[]:new o._IdMap;var c=function(e){if(!e)return function(){};var t=r;return function(){var r=this;if(t.collection.paused)return;var n=arguments;t.collection._observeQueue.queueTask(function(){e.apply(r,n)})}};a.added=c(e.added);a.changed=c(e.changed);a.removed=c(e.removed);if(n){a.addedBefore=c(e.addedBefore);a.movedBefore=c(e.movedBefore)}if(!e._suppress_initial&&!this.collection.paused){var d,h;var v=function(e){var i=t.clone(e);delete i._id;if(n)a.addedBefore(e._id,r._projectionFn(i),null);a.added(e._id,r._projectionFn(i))};if(a.results.length){var p=true,y=false,m=void 0;try{for(var _=a.results[f.iterator](),b;!(p=(b=_.next()).done);p=true){var w=b.value;v(w)}}catch(e){y=true;m=e}finally{try{if(!p&&null!=_.return)_.return()}finally{if(y)throw m}}}if(null==(h=a.results)?void 0:null==(d=h.size)?void 0:d.call(h))a.results.forEach(v)}var O=Object.assign(new o.ObserveHandle,{collection:this.collection,stop:function(){if(r.reactive)delete r.collection.queries[u]},isReady:false,isReadyPromise:null});if(this.reactive&&s.active)s.onInvalidate(function(){O.stop()});var k=this.collection._observeQueue.drain();if(g(k,l)){O.isReadyPromise=k;k.then(function(){return O.isReady=true})}else{O.isReady=true;O.isReadyPromise=l.resolve()}return O}},{key:"observeChangesAsync",value:function(e){var r=this;return new l(function(t){var n=r.observeChanges(e);n.isReadyPromise.then(function(){return t(n)})})}},{key:"_depend",value:function(e,r){if(s.active){var t=new s.Dependency;var n=t.changed.bind(t);t.depend();var i={_allow_unordered:r,_suppress_initial:true};["added","addedBefore","changed","movedBefore","removed"].forEach(function(r){if(e[r])i[r]=n});this.observeChanges(i)}}},{key:"_getCollectionName",value:function(){return this.collection.name}},{key:"_getRawObjects",value:function(){var r=this;var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n=false!==t.applySkipLimit;var i=t.ordered?[]:new o._IdMap;if(void 0!==this._selectorId){if(n&&this.skip)return i;var a=this.collection._docs.get(this._selectorId);if(a)if(t.ordered)i.push(a);else i.set(this._selectorId,a);return i}var u;if(this.matcher.hasGeoQuery()&&t.ordered)if(t.distances){u=t.distances;u.clear()}else u=new o._IdMap;e._runFresh(function(){r.collection._docs.forEach(function(e,o){var a=r.matcher.documentMatches(e);if(a.result)if(t.ordered){i.push(e);if(u&&void 0!==a.distance)u.set(o,a.distance)}else i.set(o,e);if(!n)return true;return!r.limit||r.skip||r.sorter||i.length!==r.limit})});if(!t.ordered)return i;if(this.sorter)i.sort(this.sorter.getComparator({distances:u}));if(!n||!this.limit&&!this.skip)return i;return i.slice(this.skip,this.limit?this.limit+this.skip:i.length)}},{key:"_publishCursor",value:function(e){if(!Package.mongo)throw new Error("Can't publish from Minimongo without the `mongo` package.");if(!this.collection.name)throw new Error("Can't publish a cursor from a collection without a name.");return Package.mongo.Mongo.Collection._publishCursor(this,e,this.collection.name)}}]);return r}();u.forEach(function(e){var r=c(e);if(O.prototype[r])return;O.prototype[r]=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];try{return l.resolve(this[e].apply(this,t))}catch(e){return l.reject(e)}}})},
51"local_collection.js":function(n,c,d){d.export({default:function(){return z}});var h;d.link("./cursor.js",{default:function(e){h=e}},0);var p;d.link("./observe_handle.js",{default:function(e){p=e}},1);var m,_,b,g,w,O;d.link("./common.js",{hasOwn:function(e){m=e},isIndexable:function(e){_=e},isNumericKey:function(e){b=e},isOperatorObject:function(e){g=e},populateDocumentWithQueryFields:function(e){w=e},projectionDetails:function(e){O=e}},2);d.link("./constants",{getAsyncMethodName:function(e){}},3);function k(e,r){if(null==r||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function j(e){if(Array.isArray(e))return k(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,r,t,n,i,o,a){try{var u=e[o](a);var s=u.value}catch(e){t(e);return}if(u.done)r(s);else l.resolve(s).then(n,i)}function $(e){return function(){var r=this,t=arguments;return new l(function(n,i){var o=e.apply(r,t);function a(e){E(o,n,i,a,u,"next",e)}function u(e){E(o,n,i,a,u,"throw",e)}a(void 0)})}}function I(e,r,t){r=x(r);return T(e,K()?Reflect.construct(r,t||[],x(e).constructor):r.apply(e,t))}function S(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function C(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function M(e,r,t){if(r)C(e.prototype,r);if(t)C(e,t);return e}function P(e,r,t){if(r in e)Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true});else e[r]=t;return e}function x(e){x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return x(e)}function R(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)U(e,r)}function q(e,r){if(null!=r&&void 0!==f&&r[f.hasInstance])return!!r[f.hasInstance](e);return e instanceof r}function F(e){if(void 0!==f&&null!=e[f.iterator]||null!=e["@@iterator"])return Array.from(e)}function B(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};var n=Object.keys(t);if("function"==typeof Object.getOwnPropertySymbols)n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}));n.forEach(function(r){P(e,r,t[r])})}return e}function T(e,r){if(r&&("object"===Q(r)||"function"==typeof r))return r;return A(e)}function U(e,r){U=Object.setPrototypeOf||function(e,r){e.__proto__=r;return e};return U(e,r)}function N(e){return j(e)||F(e)||L(e)||B()}function Q(e){return e&&void 0!==f&&e.constructor===f?"symbol":typeof e}function L(e,r){if(!e)return;if("string"==typeof e)return k(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor)t=e.constructor.name;if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return k(e,r)}function K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(K=function(){return!!e})()}function G(e,r){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),"function"==typeof f&&(a[f.iterator]=function(){return this}),a;function u(e){return function(r){return s([e,r])}}function s(u){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(o=0)),o)try{if(t=1,n&&(i=2&u[0]?n["return"]:u[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;if(n=0,i)u=[2&u[0],i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:o.label++;return{value:u[1],done:false};case 5:o.label++;n=u[1];u=[0];continue;case 7:u=o.ops.pop();o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1];i=u;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(u);break}if(i[2])o.ops.pop();o.trys.pop();continue}u=r.call(e,o)}catch(e){u=[6,e];n=0}finally{t=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:true}}}var z=function(){"use strict";function r(t){S(this,r);this.name=t;this._docs=new r._IdMap;this._observeQueue=e.isClient?new e._SynchronousQueue:new e._AsynchronousQueue;this.next_qid=1;this.queries=Object.create(null);this._savedOriginals=null;this.paused=false}
51M(r,[{key:"countDocuments",value:function(e,r){return this.find(null!=e?e:{},r).countAsync()}},{key:"estimatedDocumentCount",value:function(e){return this.find({},e).countAsync()}},{key:"find",value:function(e,t){if(0===arguments.length)e={};return new r.Cursor(this,e,t)}},{key:"findOne",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===arguments.length)e={};r.limit=1;return this.find(e,r).fetch()[0]}},{key:"findOneAsync",value:function(e){return $(function(e){var r;var t=arguments;return G(this,function(n){switch(n.label){case 0:r=t.length>1&&void 0!==t[1]?t[1]:{};if(0===t.length)e={};r.limit=1;return[4,this.find(e,r).fetchAsync()];case 1:return[2,n.sent()[0]]}})}).apply(this,arguments)}},{key:"prepareInsert",value:function(e){Y(e);if(!m.call(e,"_id"))e._id=r._useOID?new o.ObjectID:u.id();var t=e._id;if(this._docs.has(t))throw v("Duplicate _id '".concat(t,"'"));this._saveOriginal(t,void 0);this._docs.set(t,e);return t}},{key:"insert",value:function(n,i){var o=this;n=t.clone(n);var a=this.prepareInsert(n);var u=[];var s=true,c=false,l=void 0;try{for(var d=Object.keys(this.queries)[f.iterator](),h;!(s=(h=d.next()).done);s=true){var v=h.value;var p=this.queries[v];if(!p.dirty){var y=p.matcher.documentMatches(n);if(y.result){if(p.distances&&void 0!==y.distance)p.distances.set(a,y.distance);if(p.cursor.skip||p.cursor.limit)u.push(v);else r._insertInResultsSync(p,n)}}}}catch(e){c=true;l=e}finally{try{if(!s&&null!=d.return)d.return()}finally{if(c)throw l}}u.forEach(function(e){if(o.queries[e])o._recomputeResults(o.queries[e])});this._observeQueue.drain();if(i)e.defer(function(){i(null,a)});return a}},{key:"insertAsync",value:function(n,i){return $(function(){var o,a,u,s,c,l,f,d,h;return G(this,function(v){switch(v.label){case 0:o=this;n=t.clone(n);a=this.prepareInsert(n);u=[];s=[];for(c in this.queries)s.push(c);l=0;v.label=1;case 1:if(!(l<s.length))return[3,5];f=s[l];d=this.queries[f];if(d.dirty)return[3,4];h=d.matcher.documentMatches(n);if(!h.result)return[3,4];if(d.distances&&void 0!==h.distance)d.distances.set(a,h.distance);if(!(d.cursor.skip||d.cursor.limit))return[3,2];u.push(f);return[3,4];case 2:return[4,r._insertInResultsAsync(d,n)];case 3:v.sent();v.label=4;case 4:l++;return[3,1];case 5:u.forEach(function(e){if(o.queries[e])o._recomputeResults(o.queries[e])});return[4,this._observeQueue.drain()];case 6:v.sent();if(i)e.defer(function(){i(null,a)});return[2,a]}})}).call(this)}},{key:"pauseObservers",value:function(){var e=this;if(this.paused)return;this.paused=true;Object.keys(this.queries).forEach(function(r){var n=e.queries[r];n.resultsSnapshot=t.clone(n.results)})}},{key:"clearResultQueries",value:function(r){var t=this;var n=this._docs.size();this._docs.clear();Object.keys(this.queries).forEach(function(e){var r=t.queries[e];if(r.ordered)r.results=[];else r.results.clear()});if(r)e.defer(function(){r(null,n)});return n}},{key:"prepareRemove",value:function(e){var r,t=function(e){var t=o[e];var i=r._docs.get(t);Object.keys(r.queries).forEach(function(e){var r=n.queries[e];if(r.dirty)return;if(r.matcher.documentMatches(i).result)if(r.cursor.skip||r.cursor.limit)a.push(e);else u.push({qid:e,doc:i})});r._saveOriginal(t,i);r._docs.remove(t)};var n=this;var i=new y.Matcher(e);var o=[];this._eachPossiblyMatchingDocSync(e,function(e,r){if(i.documentMatches(e).result)o.push(r)});var a=[];var u=[];for(var s=0;s<o.length;s++)r=this,t(s);return{queriesToRecompute:a,queryRemove:u,remove:o}}},{key:"remove",value:function(n,i){var o=this;if(this.paused&&!this._savedOriginals&&t.equals(n,{}))return this.clearResultQueries(i);var a=this.prepareRemove(n),u=a.queriesToRecompute,s=a.queryRemove,c=a.remove;s.forEach(function(e){var t=o.queries[e.qid];if(t){t.distances&&t.distances.remove(e.doc._id);r._removeFromResultsSync(t,e.doc)}});u.forEach(function(e){var r=o.queries[e];if(r)o._recomputeResults(r)});this._observeQueue.drain();var l=c.length;if(i)e.defer(function(){i(null,l)});return l}},{key:"removeAsync",value:function(n,i){return $(function(){var o,a,u,s,c,l,d,h,v,p,y,m,_,b;return G(this,function(g){switch(g.label){case 0:o=this;if(this.paused&&!this._savedOriginals&&t.equals(n,{}))return[2,this.clearResultQueries(i)];a=this.prepareRemove(n),u=a.queriesToRecompute,s=a.queryRemove,c=a.remove;l=true,d=false,h=void 0;g.label=1;case 1:g.trys.push([1,6,7,8]);v=s[f.iterator]();g.label=2;case 2:if(!!(l=(p=v.next()).done))return[3,5];y=p.value;m=this.queries[y.qid];if(!m)return[3,4];m.distances&&m.distances.remove(y.doc._id);return[4,r._removeFromResultsAsync(m,y.doc)];case 3:g.sent();g.label=4;case 4:l=true;return[3,2];case 5:return[3,8];case 6:_=g.sent();d=true;h=_;return[3,8];case 7:try{if(!l&&null!=v.return)v.return()}finally{if(d)throw h}
51return[7];case 8:u.forEach(function(e){var r=o.queries[e];if(r)o._recomputeResults(r)});return[4,this._observeQueue.drain()];case 9:g.sent();b=c.length;if(i)e.defer(function(){i(null,b)});return[2,b]}})}).call(this)}},{key:"_resumeObservers",value:function(){var e=this;if(!this.paused)return;this.paused=false;Object.keys(this.queries).forEach(function(t){var n=e.queries[t];if(n.dirty){n.dirty=false;e._recomputeResults(n,n.resultsSnapshot)}else r._diffQueryChanges(n.ordered,n.resultsSnapshot,n.results,n,{projectionFn:n.projectionFn});n.resultsSnapshot=null})}},{key:"resumeObserversServer",value:function(){return $(function(){return G(this,function(e){switch(e.label){case 0:this._resumeObservers();return[4,this._observeQueue.drain()];case 1:e.sent();return[2]}})}).call(this)}},{key:"resumeObserversClient",value:function(){this._resumeObservers();this._observeQueue.drain()}},{key:"retrieveOriginals",value:function(){if(!this._savedOriginals)throw new Error("Called retrieveOriginals without saveOriginals");var e=this._savedOriginals;this._savedOriginals=null;return e}},{key:"saveOriginals",value:function(){if(this._savedOriginals)throw new Error("Called saveOriginals twice without retrieveOriginals");this._savedOriginals=new r._IdMap}},{key:"prepareUpdate",value:function(e){var n=this;var i={};var o=new r._IdMap;var a=r._idsMatchedBySelector(e);Object.keys(this.queries).forEach(function(e){var u=n.queries[e];if((u.cursor.skip||u.cursor.limit)&&!n.paused){if(q(u.results,r._IdMap)){i[e]=u.results.clone();return}if(!q(u.results,Array))throw new Error("Assertion failed: query.results not an array");var s=function(e){if(o.has(e._id))return o.get(e._id);var r=a&&!a.some(function(r){return t.equals(r,e._id)})?e:t.clone(e);o.set(e._id,r);return r};i[e]=u.results.map(s)}});return i}},{key:"finishUpdate",value:function(r){var t=r.options,n=r.updateCount,i=r.callback,o=r.insertedId;var a;if(t._returnObject){a={numberAffected:n};if(void 0!==o)a.insertedId=o}else a=n;if(i)e.defer(function(){i(null,a)});return a}},{key:"updateAsync",value:function(e,t,n,i){return $(function(){var o,a,u,s,c,l,f;return G(this,function(d){switch(d.label){case 0:o=this;if(!i&&q(n,Function)){i=n;n=null}if(!n)n={};a=new y.Matcher(e,true);u=this.prepareUpdate(e);s={};c=0;return[4,this._eachPossiblyMatchingDocAsync(e,function(e,r){return $(function(){var i;return G(this,function(o){switch(o.label){case 0:i=a.documentMatches(e);if(!i.result)return[3,2];this._saveOriginal(r,e);return[4,this._modifyAndNotifyAsync(e,t,i.arrayIndices)];case 1:s=o.sent();++c;if(!n.multi)return[2,false];o.label=2;case 2:return[2,true]}})}).call(o)})];case 1:d.sent();Object.keys(s).forEach(function(e){var r=o.queries[e];if(r)o._recomputeResults(r,u[e])});return[4,this._observeQueue.drain()];case 2:d.sent();if(!(0===c&&n.upsert))return[3,4];f=r._createUpsertDocument(e,t);if(!f._id&&n.insertedId)f._id=n.insertedId;return[4,this.insertAsync(f)];case 3:l=d.sent();c=1;d.label=4;case 4:return[2,this.finishUpdate({options:n,insertedId:l,updateCount:c,callback:i})]}})}).call(this)}},{key:"update",value:function(e,t,n,i){var o=this;if(!i&&q(n,Function)){i=n;n=null}if(!n)n={};var a=new y.Matcher(e,true);var u=this.prepareUpdate(e);var s={};var c=0;this._eachPossiblyMatchingDocSync(e,function(e,r){var i=a.documentMatches(e);if(i.result){o._saveOriginal(r,e);s=o._modifyAndNotifySync(e,t,i.arrayIndices);++c;if(!n.multi)return false}return true});Object.keys(s).forEach(function(e){var r=o.queries[e];if(r)o._recomputeResults(r,u[e])});this._observeQueue.drain();var l;if(0===c&&n.upsert){var f=r._createUpsertDocument(e,t);if(!f._id&&n.insertedId)f._id=n.insertedId;l=this.insert(f);c=1}return this.finishUpdate({options:n,insertedId:l,updateCount:c,callback:i,selector:e,mod:t})}},{key:"upsert",value:function(e,r,t,n){if(!n&&"function"==typeof t){n=t;t={}}return this.update(e,r,Object.assign({},t,{upsert:true,_returnObject:true}),n)}},{key:"upsertAsync",value:function(e,r,t,n){if(!n&&"function"==typeof t){n=t;t={}}return this.updateAsync(e,r,Object.assign({},t,{upsert:true,_returnObject:true}),n)}},{key:"_eachPossiblyMatchingDocAsync",value:function(e,t){return $(function(){var n,i,o,a,u,s,c,l,d,h;return G(this,function(v){switch(v.label){case 0:n=r._idsMatchedBySelector(e);
51if(!n)return[3,10];i=true,o=false,a=void 0;v.label=1;case 1:v.trys.push([1,7,8,9]);u=n[f.iterator]();v.label=2;case 2:if(!!(i=(s=u.next()).done))return[3,6];c=s.value;l=this._docs.get(c);d=l;if(!d)return[3,4];return[4,t(l,c)];case 3:d=!v.sent();v.label=4;case 4:if(d)return[3,6];v.label=5;case 5:i=true;return[3,2];case 6:return[3,9];case 7:h=v.sent();o=true;a=h;return[3,9];case 8:try{if(!i&&null!=u.return)u.return()}finally{if(o)throw a}return[7];case 9:return[3,12];case 10:return[4,this._docs.forEachAsync(t)];case 11:v.sent();v.label=12;case 12:return[2]}})}).call(this)}},{key:"_eachPossiblyMatchingDocSync",value:function(e,t){var n=r._idsMatchedBySelector(e);if(n){var i=true,o=false,a=void 0;try{for(var u=n[f.iterator](),s;!(i=(s=u.next()).done);i=true){var c=s.value;var l=this._docs.get(c);if(l&&false===t(l,c))break}}catch(e){o=true;a=e}finally{try{if(!i&&null!=u.return)u.return()}finally{if(o)throw a}}}else this._docs.forEach(t)}},{key:"_getMatchedDocAndModify",value:function(e,r,t){var n=this;var i={};Object.keys(this.queries).forEach(function(r){var t=n.queries[r];if(t.dirty)return;if(t.ordered)i[r]=t.matcher.documentMatches(e).result;else i[r]=t.results.has(e._id)});return i}},{key:"_modifyAndNotifySync",value:function(e,n,i){var o=this._getMatchedDocAndModify(e,n,i);var a=t.clone(e);r._modify(e,n,{arrayIndices:i});var u={};var s=true,c=false,l=void 0;try{for(var d=Object.keys(this.queries)[f.iterator](),h;!(s=(h=d.next()).done);s=true){var v=h.value;var p=this.queries[v];if(!p.dirty){var y=p.matcher.documentMatches(e);var m=y.result;var _=o[v];if(m&&p.distances&&void 0!==y.distance)p.distances.set(e._id,y.distance);if(p.cursor.skip||p.cursor.limit){if(_||m)u[v]=true}else if(_&&!m)r._removeFromResultsSync(p,e);else if(!_&&m)r._insertInResultsSync(p,e);else if(_&&m)r._updateInResultsSync(p,e,a)}}}catch(e){c=true;l=e}finally{try{if(!s&&null!=d.return)d.return()}finally{if(c)throw l}}return u}},{key:"_modifyAndNotifyAsync",value:function(e,n,i){return $(function(){var o,a,u,s,c,l,f,d,h,v,p;return G(this,function(y){switch(y.label){case 0:o=this._getMatchedDocAndModify(e,n,i);a=t.clone(e);r._modify(e,n,{arrayIndices:i});u={};s=[];for(c in this.queries)s.push(c);l=0;y.label=1;case 1:if(!(l<s.length))return[3,9];f=s[l];d=this.queries[f];if(d.dirty)return[3,8];h=d.matcher.documentMatches(e);v=h.result;p=o[f];if(v&&d.distances&&void 0!==h.distance)d.distances.set(e._id,h.distance);if(!(d.cursor.skip||d.cursor.limit))return[3,2];if(p||v)u[f]=true;return[3,8];case 2:if(!(p&&!v))return[3,4];return[4,r._removeFromResultsAsync(d,e)];case 3:y.sent();return[3,8];case 4:if(!(!p&&v))return[3,6];return[4,r._insertInResultsAsync(d,e)];case 5:y.sent();return[3,8];case 6:if(!(p&&v))return[3,8];return[4,r._updateInResultsAsync(d,e,a)];case 7:y.sent();y.label=8;case 8:l++;return[3,1];case 9:return[2,u]}})}).call(this)}},{key:"_recomputeResults",value:function(e,t){if(this.paused){e.dirty=true;return}if(!this.paused&&!t)t=e.results;if(e.distances)e.distances.clear();e.results=e.cursor._getRawObjects({distances:e.distances,ordered:e.ordered});if(!this.paused)r._diffQueryChanges(e.ordered,t,e.results,e,{projectionFn:e.projectionFn})}},{key:"_saveOriginal",value:function(e,r){if(!this._savedOriginals)return;if(this._savedOriginals.has(e))return;this._savedOriginals.set(e,t.clone(r))}}]);return r}();z.Cursor=h;z.ObserveHandle=p;z._CachingChangeObserver=function e(){"use strict";var n=this;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S(this,e);var u=i.callbacks&&z._observeChangesCallbacksAreOrdered(i.callbacks);if(m.call(i,"ordered")){this.ordered=i.ordered;if(i.callbacks&&i.ordered!==u)throw Error("ordered option doesn't match callbacks")}else if(i.callbacks)this.ordered=u;else throw Error("must provide ordered or callbacks");var s=i.callbacks||{};if(this.ordered){this.docs=new a(o.idStringify);this.applyChange={addedBefore:function(e,r,i){var o=D({},r);o._id=e;if(s.addedBefore)s.addedBefore.call(n,e,t.clone(r),i);if(s.added)s.added.call(n,e,t.clone(r));n.docs.putBefore(e,o,i||null)},movedBefore:function(e,r){if(s.movedBefore)s.movedBefore.call(n,e,r);n.docs.moveBefore(e,r||null)}}}else{this.docs=new z._IdMap;this.applyChange={added:function(e,r){var i=D({},r);
51if(s.added)s.added.call(n,e,t.clone(r));i._id=e;n.docs.set(e,i)}}}this.applyChange.changed=function(e,i){var o=n.docs.get(e);if(!o)throw new Error("Unknown id for changed: ".concat(e));if(s.changed)s.changed.call(n,e,t.clone(i));r.applyChanges(o,i)};this.applyChange.removed=function(e){if(s.removed)s.removed.call(n,e);n.docs.remove(e)}};z._IdMap=function(e){"use strict";R(r,e);function r(){S(this,r);return I(this,r,[o.idStringify,o.idParse])}return r}(i);z.wrapTransform=function(e){if(!e)return null;if(e.__wrappedTransform__)return e;var r=function(r){if(!m.call(r,"_id"))throw new Error("can only transform documents with _id");var n=r._id;var i=s.nonreactive(function(){return e(r)});if(!z._isPlainObject(i))throw new Error("transform must return object");if(m.call(i,"_id")){if(!t.equals(i._id,n))throw new Error("transformed document can't have different _id")}else i._id=n;return i};r.__wrappedTransform__=true;return r};z._binarySearch=function(e,r,t){var n=0;var i=r.length;while(i>0){var o=Math.floor(i/2);if(e(t,r[n+o])>=0){n+=o+1;i-=o+1}else i=o}return n};z._checkSupportedProjection=function(e){if(e!==Object(e)||Array.isArray(e))throw v("fields option must be an object");Object.keys(e).forEach(function(r){if(r.split(".").includes("$"))throw v("Minimongo doesn't support $ operator in projections yet.");var t=e[r];if((void 0===t?"undefined":Q(t))==="object"&&["$elemMatch","$meta","$slice"].some(function(e){return m.call(t,e)}))throw v("Minimongo doesn't support operators in projections yet.");if(![1,0,true,false].includes(t))throw v("Projection values should be one of 1, 0, true, or false")})};z._compileProjection=function(e){z._checkSupportedProjection(e);var r=void 0===e._id?true:e._id;var n=O(e);var i=function(e,r){if(Array.isArray(e))return e.map(function(e){return i(e,r)});var o=n.including?{}:t.clone(e);Object.keys(r).forEach(function(a){if(null==e||!m.call(e,a))return;var u=r[a];if(u===Object(u)){if(e[a]===Object(e[a]))o[a]=i(e[a],u)}else if(n.including)o[a]=t.clone(e[a]);else delete o[a]});return null!=e?o:e};return function(e){var t=i(e,n.tree);if(r&&m.call(e,"_id"))t._id=e._id;if(!r&&m.call(t,"_id"))delete t._id;return t}};z._createUpsertDocument=function(e,r){var t=w(e);var n=z._isModificationMod(r);var i={};if(t._id){i._id=t._id;delete t._id}z._modify(i,{$set:t});z._modify(i,r,{isInsert:true});if(n)return i;var o=Object.assign({},r);if(i._id)o._id=i._id;return o};z._diffObjects=function(e,t,n){return r.diffObjects(e,t,n)};z._diffQueryChanges=function(e,t,n,i,o){return r.diffQueryChanges(e,t,n,i,o)};z._diffQueryOrderedChanges=function(e,t,n,i){return r.diffQueryOrderedChanges(e,t,n,i)};z._diffQueryUnorderedChanges=function(e,t,n,i){return r.diffQueryUnorderedChanges(e,t,n,i)};z._findInOrderedResults=function(e,r){if(!e.ordered)throw new Error("Can't call _findInOrderedResults on unordered query");for(var t=0;t<e.results.length;t++)if(e.results[t]===r)return t;throw Error("object missing from query")};z._idsMatchedBySelector=function(e){if(z._selectorIsId(e))return[e];if(!e)return null;if(m.call(e,"_id")){if(z._selectorIsId(e._id))return[e._id];if(e._id&&Array.isArray(e._id.$in)&&e._id.$in.length&&e._id.$in.every(z._selectorIsId))return e._id.$in;return null}if(Array.isArray(e.$and))for(var r=0;r<e.$and.length;++r){var t=z._idsMatchedBySelector(e.$and[r]);if(t)return t}return null};z._insertInResultsSync=function(e,r){var n=t.clone(r);delete n._id;if(e.ordered){if(e.sorter){var i=z._insertInSortedList(e.sorter.getComparator({distances:e.distances}),e.results,r);var o=e.results[i+1];o=o?o._id:null;e.addedBefore(r._id,e.projectionFn(n),o)}else{e.addedBefore(r._id,e.projectionFn(n),null);e.results.push(r)}e.added(r._id,e.projectionFn(n))}else{e.added(r._id,e.projectionFn(n));e.results.set(r._id,r)}};z._insertInResultsAsync=function(e,r){return $(function(){var n,i,o;return G(this,function(a){switch(a.label){case 0:n=t.clone(r);delete n._id;if(!e.ordered)return[3,6];if(!!e.sorter)return[3,2];return[4,e.addedBefore(r._id,e.projectionFn(n),null)];case 1:a.sent();e.results.push(r);return[3,4];case 2:i=z._insertInSortedList(e.sorter.getComparator({distances:e.distances}),e.results,r);o=e.results[i+1];o=o?o._id:null;return[4,e.addedBefore(r._id,e.projectionFn(n),o)];case 3:a.sent();a.label=4;case 4:return[4,e.added(r._id,e.projectionFn(n))];case 5:a.sent();return[3,8];case 6:return[4,e.added(r._id,e.projectionFn(n))];case 7:a.sent();e.results.set(r._id,r);a.label=8;case 8:return[2]}})})()};z._insertInSortedList=function(e,r,t){if(0===r.length){r.push(t);return 0}var n=z._binarySearch(e,r,t);r.splice(n,0,t);return n};z._isModificationMod=function(e){var r=false;var t=false;Object.keys(e).forEach(function(e){if("$"===e.substr(0,1))r=true;else t=true});if(r&&t)throw new Error("Update parameter cannot have both modifier and n
51on-modifier fields.");return r};z._isPlainObject=function(e){return e&&3===z._f._type(e)};z._modify=function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!z._isPlainObject(r))throw v("Modifier must be an object");r=t.clone(r);var i=g(r);var o=i?t.clone(e):r;if(i){Object.keys(r).forEach(function(e){var t=n.isInsert&&"$setOnInsert"===e;var i=H[t?"$set":e];var a=r[e];if(!i)throw v("Invalid modifier specified ".concat(e));Object.keys(a).forEach(function(r){var t=a[r];if(""===r)throw v("An empty update path is not valid.");var u=r.split(".");if(!u.every(Boolean))throw v("The update path '".concat(r,"' contains an empty field name, ")+"which is not allowed.");var s=X(o,u,{arrayIndices:n.arrayIndices,forbidArray:"$rename"===e,noCreate:J[e]});i(s,u.pop(),t,r,o)})});if(e._id&&!t.equals(e._id,o._id))throw v('After applying the update to the document {_id: "'.concat(e._id,'", ...},')+" the (immutable) field '_id' was found to have been altered to "+'_id: "'.concat(o._id,'"'))}else{if(e._id&&r._id&&!t.equals(e._id,r._id))throw v('The _id field cannot be changed from {_id: "'.concat(e._id,'"} to ')+'{_id: "'.concat(r._id,'"}'));Y(r)}Object.keys(e).forEach(function(r){if("_id"!==r)delete e[r]});Object.keys(o).forEach(function(r){e[r]=o[r]})};z._observeFromObserveChanges=function(n,i){var o=n.getTransform()||function(e){return e};var a=!!i._suppress_initial;var u;if(z._observeCallbacksAreOrdered(i)){var s=!i._no_indices;u={addedBefore:function(e,r,t){var n=a||!(i.addedAt||i.added);if(n)return;var u=o(Object.assign(r,{_id:e}));if(i.addedAt)i.addedAt(u,s?t?this.docs.indexOf(t):this.docs.size():-1,t);else i.added(u)}
51,changed:function(e,n){if(!(i.changedAt||i.changed))return;var a=t.clone(this.docs.get(e));if(!a)throw new Error("Unknown id for changed: ".concat(e));var u=o(t.clone(a));r.applyChanges(a,n);if(i.changedAt)i.changedAt(o(a),u,s?this.docs.indexOf(e):-1);else i.changed(o(a),u)},movedBefore:function(e,r){if(!i.movedTo)return;var n=s?this.docs.indexOf(e):-1;var a=s?r?this.docs.indexOf(r):this.docs.size():-1;if(a>n)--a;i.movedTo(o(t.clone(this.docs.get(e))),n,a,r||null)},removed:function(e){if(!(i.removedAt||i.removed))return;var r=o(this.docs.get(e));if(i.removedAt)i.removedAt(r,s?this.docs.indexOf(e):-1);else i.removed(r)}}}else u={added:function(e,r){if(!a&&i.added)i.added(o(Object.assign(r,{_id:e})))},changed:function(e,n){if(i.changed){var a=this.docs.get(e);var u=t.clone(a);r.applyChanges(u,n);i.changed(o(u),o(t.clone(a)))}},removed:function(e){if(i.removed)i.removed(o(this.docs.get(e)))}};var c=new z._CachingChangeObserver({callbacks:u});c.applyChange._fromObserve=true;var l=n.observeChanges(c.applyChange,{nonMutatingCallbacks:true});var f=function(e){var r;if(e.isReady)a=false;else null==(r=e.isReadyPromise)||r.then(function(){return a=false})};if(e._isPromise(l))l.then(f);else f(l);return l};z._observeCallbacksAreOrdered=function(e){if(e.added&&e.addedAt)throw new Error("Please specify only one of added() and addedAt()");if(e.changed&&e.changedAt)throw new Error("Please specify only one of changed() and changedAt()");if(e.removed&&e.removedAt)throw new Error("Please specify only one of removed() and removedAt()");return!!(e.addedAt||e.changedAt||e.movedTo||e.removedAt)};z._observeChangesCallbacksAreOrdered=function(e){if(e.added&&e.addedBefore)throw new Error("Please specify only one of added() and addedBefore()");return!!(e.addedBefore||e.movedBefore)};z._removeFromResultsSync=function(e,r){if(e.ordered){var t=z._findInOrderedResults(e,r);e.removed(r._id);e.results.splice(t,1)}else{var n=r._id;e.removed(n);e.results.remove(n)}};z._removeFromResultsAsync=function(e,r){return $(function(){var t,n;return G(this,function(i){switch(i.label){case 0:if(!e.ordered)return[3,2];t=z._findInOrderedResults(e,r);return[4,e.removed(r._id)];case 1:i.sent();e.results.splice(t,1);return[3,4];case 2:n=r._id;return[4,e.removed(n)];case 3:i.sent();e.results.remove(n);i.label=4;case 4:return[2]}})})()};z._selectorIsId=function(e){return"number"==typeof e||"string"==typeof e||q(e,o.ObjectID)};z._selectorIsIdPerhapsAsObject=function(e){return z._selectorIsId(e)||z._selectorIsId(e&&e._id)&&1===Object.keys(e).length};z._updateInResultsSync=function(e,n,i){if(!t.equals(n._id,i._id))throw new Error("Can't change a doc's _id while updating");var o=e.projectionFn;var a=r.makeChangedFields(o(n),o(i));if(!e.ordered){if(Object.keys(a).length){e.changed(n._id,a);e.results.set(n._id,n)}return}var u=z._findInOrderedResults(e,n);if(Object.keys(a).length)e.changed(n._id,a);if(!e.sorter)return;e.results.splice(u,1);var s=z._insertInSortedList(e.sorter.getComparator({distances:e.distances}),e.results,n);if(u!==s){var c=e.results[s+1];c=c?c._id:null;e.movedBefore&&e.movedBefore(n._id,c)}};z._updateInResultsAsync=function(e,n,i){return $(function(){var o,a,u,s,c,l;return G(this,function(f){switch(f.label){case 0:if(!t.equals(n._id,i._id))throw new Error("Can't change a doc's _id while updating");o=e.projectionFn;a=r.makeChangedFields(o(n),o(i));if(!!e.ordered)return[3,3];if(!Object.keys(a).length)return[3,2];return[4,e.changed(n._id,a)];case 1:f.sent();e.results.set(n._id,n);f.label=2;case 2:return[2];case 3:u=z._findInOrderedResults(e,n);if(!Object.keys(a).length)return[3,5];return[4,e.changed(n._id,a)];case 4:f.sent();f.label=5;case 5:if(!e.sorter)return[2];e.results.splice(u,1);s=z._insertInSortedList(e.sorter.getComparator({distances:e.distances}),e.results,n);if(!(u!==s))return[3,8];c=e.results[s+1];c=c?c._id:null;l=e.movedBefore;if(!l)return[3,7];return[4,e.movedBefore(n._id,c)];case 6:l=f.sent();f.label=7;case 7:f.label=8;case 8:return[2]}})})()};var H={$currentDate:function(e,r,t){if((void 0===t?"undefined":Q(t))==="object"&&m.call(t,"$type")){if("date"!==t.$type)throw v("Minimongo does currently only support the date type in $currentDate modifiers",{field:r})}else if(true!==t)throw v("Invalid $currentDate modifier",{field:r});e[r]=new Date},$inc:function(e,r,t){if("number"!=typeof t)throw v("Modifier $inc allowed for numbers only",{field:r});if(r in e){if("number"!=typeof e[r])throw v("Cannot apply $inc modifier to non-number",{field:r});e[r]+=t}else e[r]=t},$min:function(e,r,t){if("number"!=typeof t)throw v("Modifier $min allowed for numbers only",{field:r});if(r in e){if("number"!=typeof e[r])throw v("Cannot apply $min modifier to non-number",{field:r});if(e[r]>t)e[r]=t}else e[r]=t},$max:function(e,r,t){if("number"!=typeof t)throw v("Modifier $max allowed for numbers only",{field:r});if(r in e){if("number"!=typeof e[r])throw v("Cannot apply $max modifier to non-number",{field:r});if(e[r]<t)e[r]=t}else e[r]=t},$mul:function(e,r,t){if("number"!=typeof t)throw v("Modifier $mul allowed for numbers only",{field:r});if(r in e){if("number"!=typeof e[r])throw v("Cannot apply $mul modifier to non-number",{field:r});e[r]*=t}else e[r]=0},$rename:function(e,r,t,n,i){if(n===t)throw v("$rename source must differ from target",{field:r});
51if(null===e)throw v("$rename source field invalid",{field:r});if("string"!=typeof t)throw v("$rename target must be a string",{field:r});if(t.includes("\0"))throw v("The 'to' field for $rename cannot contain an embedded null byte",{field:r});if(void 0===e)return;var o=e[r];delete e[r];var a=t.split(".");var u=X(i,a,{forbidArray:true});if(null===u)throw v("$rename target field invalid",{field:r});u[a.pop()]=o},$set:function(e,r,t){if(e!==Object(e)){var n=v("Cannot set property on non-object field",{field:r});n.setPropertyError=true;throw n}if(null===e){var i=v("Cannot set property on null",{field:r});i.setPropertyError=true;throw i}Y(t);e[r]=t},$setOnInsert:function(e,r,t){},$unset:function(e,r,t){if(void 0!==e)if(q(e,Array)){if(r in e)e[r]=null}else delete e[r]},$push:function(e,r,t){if(void 0===e[r])e[r]=[];if(!q(e[r],Array))throw v("Cannot apply $push modifier to non-array",{field:r});if(!(t&&t.$each)){Y(t);e[r].push(t);return}var n=t.$each;if(!q(n,Array))throw v("$each must be an array",{field:r});Y(n);var i=void 0;if("$position"in t){if("number"!=typeof t.$position)throw v("$position must be a numeric value",{field:r});if(t.$position<0)throw v("$position in $push must be zero or positive",{field:r});i=t.$position}var o=void 0;if("$slice"in t){if("number"!=typeof t.$slice)throw v("$slice must be a numeric value",{field:r});o=t.$slice}var a=void 0;if(t.$sort){if(void 0===o)throw v("$sort requires $slice to be present",{field:r});a=new y.Sorter(t.$sort).getComparator();n.forEach(function(e){if(3!==z._f._type(e))throw v("$push like modifiers using $sort require all elements to be objects",{field:r})})}if(void 0===i)n.forEach(function(t){e[r].push(t)});else{var u;var s=[i,0];n.forEach(function(e){s.push(e)});(u=e[r]).splice.apply(u,N(s))}if(a)e[r].sort(a);if(void 0!==o)if(0===o)e[r]=[];else if(o<0)e[r]=e[r].slice(o);else e[r]=e[r].slice(0,o)},$pushAll:function(e,r,t){if(!((void 0===t?"undefined":Q(t))==="object"&&q(t,Array)))throw v("Modifier $pushAll/pullAll allowed for arrays only");Y(t);var n=e[r];if(void 0===n)e[r]=t;else if(q(n,Array)){var i;(i=n).push.apply(i,N(t))}else throw v("Cannot apply $pushAll modifier to non-array",{field:r})},$addToSet:function(e,r,t){var n=false;if((void 0===t?"undefined":Q(t))==="object"){var i=Object.keys(t);if("$each"===i[0])n=true}var o=n?t.$each:[t];Y(o);var a=e[r];if(void 0===a)e[r]=o;else if(q(a,Array))o.forEach(function(e){if(a.some(function(r){return z._f._equal(e,r)}))return;a.push(e)});else throw v("Cannot apply $addToSet modifier to non-array",{field:r})},$pop:function(e,r,t){if(void 0===e)return;var n=e[r];if(void 0===n)return;if(!q(n,Array))throw v("Cannot apply $pop modifier to non-array",{field:r});if("number"==typeof t&&t<0)n.splice(0,1);else n.pop()},$pull:function(e,r,t){if(void 0===e)return;var n=e[r];if(void 0===n)return;if(!q(n,Array))throw v("Cannot apply $pull/pullAll modifier to non-array",{field:r});var i;if(null==t||(void 0===t?"undefined":Q(t))!=="object"||q(t,Array))i=n.filter(function(e){return!z._f._equal(e,t)});else{var o=new y.Matcher(t);i=n.filter(function(e){return!o.documentMatches(e).result})}e[r]=i},$pullAll:function(e,r,t){if(!((void 0===t?"undefined":Q(t))==="object"&&q(t,Array)))throw v("Modifier $pushAll/pullAll allowed for arrays only",{field:r});if(void 0===e)return;var n=e[r];if(void 0===n)return;if(!q(n,Array))throw v("Cannot apply $pull/pullAll modifier to non-array",{field:r});e[r]=n.filter(function(e){return!t.some(function(r){return z._f._equal(e,r)})})},$bit:function(e,r,t){throw v("$bit is not supported",{field:r})},$v:function(){}};var J={$pop:true,$pull:true,$pullAll:true,$rename:true,$unset:true};var W={$:"start with '$'",".":"start or end with '.'","..":"contain consecutive dots","\0":"contain null bytes"};function Y(e){if(e&&(void 0===e?"undefined":Q(e))==="object")JSON.stringify(e,function(e,r){V(e);return r})}function V(e){var r;if("string"==typeof e&&(r=e.match(/^\$|^\.|\.\.|\.$|^\.$|\0/)))throw v("Key ".concat(e," must not ").concat(W[r[0]]))}function X(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=false;for(var i=0;i<r.length;i++){var o=i===r.length-1;var a=r[i];if(!_(e)){if(t.noCreate)return;var u=v("cannot use the part '".concat(a,"' to traverse ").concat(e));u.setPropertyError=true;throw u}if(q(e,Array)){if(t.forbidArray)return null;if("$"===a){if(n)throw v("Too many positional (i.e. '$') elements");if(!t.arrayIndices||!t.arrayIndices.length)throw v("The positional operator did not find the match needed from the query");
51a=t.arrayIndices[0];n=true}else if(b(a))a=parseInt(a);else{if(t.noCreate)return;throw v("can't append to array using string field name [".concat(a,"]"))}if(o)r[i]=a;if(t.noCreate&&a>=e.length)return;while(e.length<a)e.push(null);if(!o){if(e.length===a)e.push({});else if("object"!==Q(e[a]))throw v("can't modify field '".concat(r[i+1],"' of list value ")+JSON.stringify(e[a]))}}else{V(a);if(!(a in e)){if(t.noCreate)return;if(!o)e[a]={}}}if(o)return e;e=e[a]}}},
51"matcher.js":function(r,n,i){i.export({default:function(){return _}});var a;i.link("./local_collection.js",{default:function(e){a=e}},0);var u,s,c;i.link("./common.js",{compileDocumentSelector:function(e){u=e},hasOwn:function(e){s=e},nothingMatcher:function(e){c=e}},1);function l(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function d(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function h(e,r,t){if(r)d(e.prototype,r);if(t)d(e,t);return e}function v(e,r){if(null!=r&&void 0!==f&&r[f.hasInstance])return!!r[f.hasInstance](e);return e instanceof r}function p(e){return e&&void 0!==f&&e.constructor===f?"symbol":typeof e}var y;var m=(null==(y=Package["mongo-decimal"])?void 0:y.Decimal)||function e(){"use strict";l(this,e)};var _=function(){"use strict";function e(r,t,n){l(this,e);this._paths={};this._hasGeoQuery=false;this._hasWhere=false;this._isSimple=true;this._matchingDocument=void 0;this._selector=null;this._collator=a._createCollator(n);this._docMatcher=this._compileSelector(r);this._isUpdate=t}h(e,[{key:"documentMatches",value:function(e){if(e!==Object(e))throw Error("documentMatches needs a document");return this._docMatcher(e)}},{key:"hasGeoQuery",value:function(){return this._hasGeoQuery}},{key:"hasWhere",value:function(){return this._hasWhere}},{key:"isSimple",value:function(){return this._isSimple}},{key:"_compileSelector",value:function(e){if(v(e,Function)){this._isSimple=false;this._selector=e;this._recordPathUsed("");return function(r){return{result:!!e.call(r)}}}if(a._selectorIsId(e)){this._selector={_id:e};this._recordPathUsed("_id");if(this._collator)return u(this._selector,this,{isRoot:true});return function(r){return{result:t.equals(r._id,e)}}}if(!e||s.call(e,"_id")&&!e._id){this._isSimple=false;return c}if(Array.isArray(e)||t.isBinary(e)||"boolean"==typeof e)throw new Error("Invalid selector: ".concat(e));this._selector=t.clone(e);return u(e,this,{isRoot:true})}},{key:"_getPaths",value:function(){return Object.keys(this._paths)}},{key:"_recordPathUsed",value:function(e){this._paths[e]=true}}]);return e}();a._f={_type:function(e){if("number"==typeof e)return 1;if("string"==typeof e)return 2;if("boolean"==typeof e)return 8;if(Array.isArray(e))return 4;if(null===e)return 10;if(v(e,RegExp))return 11;if("function"==typeof e)return 13;if(v(e,Date))return 9;if(t.isBinary(e))return 5;if(v(e,o.ObjectID))return 7;if(v(e,m))return 1;return 3},_equal:function(e,r,n){if(n&&"string"==typeof e&&"string"==typeof r)return 0===n.compare(e,r);return t.equals(e,r,{keyOrderSensitive:true})},_typeorder:function(e){return[-1,1,2,3,4,5,-1,6,7,8,0,9,-1,100,2,100,1,8,1][e]},_cmp:function(e,r,t){if(void 0===e)return void 0===r?0:-1;if(void 0===r)return 1;var n=a._f._type(e);var i=a._f._type(r);var o=a._f._typeorder(n);var u=a._f._typeorder(i);if(o!==u)return o<u?-1:1;if(n!==i)throw Error("Missing type coercion logic in _cmp");if(7===n){n=i=2;e=e.toHexString();r=r.toHexString()}if(9===n){n=i=1;e=isNaN(e)?0:e.getTime();r=isNaN(r)?0:r.getTime()}if(1===n)if(v(e,m))return e.minus(r).toNumber();else return e-r;if(2===i){if(t)return t.compare(e,r);return e<r?-1:e===r?0:1}if(3===n){var s=function(e){var r=[];Object.keys(e).forEach(function(t){r.push(t,e[t])});return r};return a._f._cmp(s(e),s(r),t)}if(4===n)for(var c=0;;c++){if(c===e.length)return c===r.length?0:-1;if(c===r.length)return 1;var l=a._f._cmp(e[c],r[c],t);if(0!==l)return l}if(5===n){if(e.length!==r.length)return e.length-r.length;for(var f=0;f<e.length;f++){if(e[f]<r[f])return -1;if(e[f]>r[f])return 1}return 0}if(8===n){if(e)return r?0:1;return r?-1:0}if(10===n)return 0;if(11===n)throw Error("Sorting not supported on regular expression");if(13===n)throw Error("Sorting not supported on Javascript code");throw Error("Unknown type to sort")}};var b={1:"base",2:"accent"};a._createCollator=function(r){if(!r)return null;if(v(r,Intl.Collator))return r;if(e.isDevelopment){if((void 0===r?"undefined":p(r))!=="object")throw Error("collation must be an object");
51if("string"!=typeof r.locale||!r.locale)throw Error("collation.locale must be a non-empty string");if(null!=r.strength&&("number"!=typeof r.strength||r.strength<1||r.strength>5))throw Error("collation.strength must be an integer between 1 and 5");if(null!=r.strength&&r.strength>3)e._debug("collation.strength values 4 and 5 have no Intl.Collator equivalent and are only supported server-side via the MongoDB driver")}var t={};if(null!=r.strength)if(1===r.strength&&r.caseLevel)t.sensitivity="case";else t.sensitivity=b[r.strength]||"variant";if(null!=r.numericOrdering)t.numeric=r.numericOrdering;if(null!=r.caseFirst&&"off"!==r.caseFirst)t.caseFirst=r.caseFirst;return new Intl.Collator(r.locale,t)}},
51"minimongo_common.js":function(e,r,t){var n;t.link("./local_collection.js",{default:function(e){n=e}},0);var i;t.link("./matcher.js",{default:function(e){i=e}},1);var o;t.link("./sorter.js",{default:function(e){o=e}},2);p=n;y={LocalCollection:n,Matcher:i,Sorter:o}},
51"observe_handle.js":function(e,r,t){t.export({default:function(){return i}});function n(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var i=function e(){"use strict";n(this,e)}},
51"sorter.js":function(e,r,t){t.export({default:function(){return d}});var n,i,o;t.link("./common.js",{ELEMENT_OPERATORS:function(e){},equalityElementMatcher:function(e){},expandArraysInBranches:function(e){n=e},hasOwn:function(e){i=e},isOperatorObject:function(e){},makeLookupFunction:function(e){o=e},regexpElementMatcher:function(e){}},0);function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function u(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function s(e,r,t){if(r)u(e.prototype,r);if(t)u(e,t);return e}function c(e,r){if(null!=r&&void 0!==f&&r[f.hasInstance])return!!r[f.hasInstance](e);return e instanceof r}function l(e){return e&&void 0!==f&&e.constructor===f?"symbol":typeof e}var d=function(){"use strict";function e(r,t){var n=this;a(this,e);this._sortSpecParts=[];this._sortFunction=null;this._collator=p._createCollator(t);var i=function(e,r){if(!e)throw Error("sort keys must be non-empty");if("$"===e.charAt(0))throw Error("unsupported sort key: ".concat(e));n._sortSpecParts.push({ascending:r,lookup:o(e,{forSort:true}),path:e})};if(c(r,Array))r.forEach(function(e){"string"==typeof e?i(e,true):i(e[0],"desc"!==e[1])});else if((void 0===r?"undefined":l(r))==="object")Object.keys(r).forEach(function(e){i(e,r[e]>=0)});else if("function"==typeof r)this._sortFunction=r;else throw Error("Bad sort specification: ".concat(JSON.stringify(r)));if(this._sortFunction)return;if(this.affectedByModifier){var u={};this._sortSpecParts.forEach(function(e){u[e.path]=1});this._selectorForAffectedByModifier=new y.Matcher(u)}this._keyComparator=h(this._sortSpecParts.map(function(e,r){return n._keyFieldComparator(r)}))}s(e,[{key:"getComparator",value:function(e){if(this._sortSpecParts.length||!e||!e.distances)return this._getBaseComparator();var r=e.distances;return function(e,t){if(!r.has(e._id))throw Error("Missing distance for ".concat(e._id));if(!r.has(t._id))throw Error("Missing distance for ".concat(t._id));return r.get(e._id)-r.get(t._id)}}},{key:"_compareKeys",value:function(e,r){if(e.length!==this._sortSpecParts.length||r.length!==this._sortSpecParts.length)throw Error("Key has wrong length");return this._keyComparator(e,r)}},{key:"_generateKeysFromDoc",value:function(e,r){if(0===this._sortSpecParts.length)throw new Error("can't generate keys without a spec");var t=function(e){return"".concat(e.join(","),",")};var o=null;var a=this._sortSpecParts.map(function(r){var a=n(r.lookup(e),true);if(!a.length)a=[{value:void 0}];var u=Object.create(null);var s=false;a.forEach(function(e){if(!e.arrayIndices){if(a.length>1)throw Error("multiple branches but no array used?");u[""]=e.value;return}s=true;var r=t(e.arrayIndices);if(i.call(u,r))throw Error("duplicate path: ".concat(r));u[r]=e.value;if(o&&!i.call(o,r))throw Error("cannot index parallel arrays")});if(o){if(!i.call(u,"")&&Object.keys(o).length!==Object.keys(u).length)throw Error("cannot index parallel arrays!")}else if(s){o={};Object.keys(u).forEach(function(e){o[e]=true})}return u});if(!o){var u=a.map(function(e){if(!i.call(e,""))throw Error("no value in sole key case?");return e[""]});r(u);return}Object.keys(o).forEach(function(e){var t=a.map(function(r){if(i.call(r,""))return r[""];if(!i.call(r,e))throw Error("missing path?");return r[e]});r(t)})}},{key:"_getBaseComparator",value:function(){var e=this;if(this._sortFunction)return this._sortFunction;if(!this._sortSpecParts.length)return function(e,r){return 0};return function(r,t){var n=e._getMinKeyFromDoc(r);var i=e._getMinKeyFromDoc(t);return e._compareKeys(n,i)}}},{key:"_getMinKeyFromDoc",value:function(e){var r=this;var t=null;this._generateKeysFromDoc(e,function(e){if(null===t){t=e;return}if(r._compareKeys(e,t)<0)t=e});return t}},{key:"_getPaths",value:function(){return this._sortSpecParts.map(function(e){return e.path})}},{key:"_keyFieldComparator",value:function(e){var r=!this._sortSpecParts[e].ascending;var t=this._collator;return function(n,i){var o=p._f._cmp(n[e],i[e],t);return r?-o:o}}}]);return e}();function h(e){return function(r,t){for(var n=0;n<e.length;++n){var i=e[n](r,t);if(0!==i)return i}return 0}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{LocalCollection:p,Minimongo:y,MinimongoTest:h,MinimongoError:v}},require:m,eagerModulePaths:["/node_modules/meteor/minimongo/minimongo_client.js"],mainModulePath:"/node_modules/meteor/minimongo/minimongo_client.js"}});
52
53Package["core-runtime"].queue("check",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package.ejson.EJSON;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var n=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var a,i;
53var o=r({node_modules:{meteor:{check:{
53"match.js":function(r,a,i){i.export({check:function(){return w},Match:function(){return k}});var o;i.link("./isPlainObject",{isPlainObject:function(e){o=e}},0);function c(e,t){if(null==t||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e){if(Array.isArray(e))return c(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function l(e,t,r){if(t)f(e.prototype,t);if(r)f(e,r);return e}function h(e,t){if(null!=t&&void 0!==n&&t[n.hasInstance])return!!t[n.hasInstance](e);return e instanceof t}function p(e){if(void 0!==n&&null!=e[n.iterator]||null!=e["@@iterator"])return Array.from(e)}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e){return u(e)||p(e)||m(e)||v()}function d(e){return e&&void 0!==n&&e.constructor===n?"symbol":typeof e}function m(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor)r=e.constructor.name;if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}var y=new e.EnvironmentVariable;var b=Object.prototype.hasOwnProperty;var O=function(e){var t=new k.Error(e.message);if(e.path){t.message+=" in field ".concat(e.path);t.path=e.path}return t};function j(e){w(e,String);return e.length>0}function w(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{throwAllErrors:false};var n=y.getOrNullIfOutsideFiber();if(n)n.checking(e);var a=I(e,t,r.throwAllErrors);if(a)if(r.throwAllErrors)throw Array.isArray(a)?a.map(function(e){return O(e)}):[O(a)];else throw O(a)}var k={Optional:function(e){return new E(e)},Maybe:function(e){return new A(e)},OneOf:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new P(t)},Any:["__any__"],Where:function(e){return new _(e)},NonEmptyString:["__NonEmptyString__"],ObjectIncluding:function(e){return new M(e)},ObjectWithValues:function(e){return new S(e)},Integer:["__integer__"],Error:e.makeErrorType("Match.Error",function(t){this.message="Match error: ".concat(t);this.path="";this.sanitizedError=new e.Error(400,"Match failed")}),test:function(e,t){return!I(e,t)},_failIfArgumentsAreNotAllChecked:function(e,t,r,n){var a=new B(r,n);var i=y.withValue(a,function(){return e.apply(t,r)});a.throwUnlessAllArgumentsHaveBeenChecked();return i}};var E=function e(t){"use strict";s(this,e);this.pattern=t};var A=function e(t){"use strict";s(this,e);this.pattern=t};var P=function e(t){"use strict";s(this,e);
53if(!t||0===t.length)throw new Error("Must provide at least one choice to Match.OneOf");this.choices=t};var _=function e(t){"use strict";s(this,e);this.condition=t};var M=function e(t){"use strict";s(this,e);this.pattern=t};var S=function e(t){"use strict";s(this,e);this.pattern=t};var x=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return"null";if(r.onlyShowType)return void 0===e?"undefined":d(e);if((void 0===e?"undefined":d(e))!=="object")return t.stringify(e);try{JSON.stringify(e)}catch(t){if("TypeError"===t.name)return void 0===e?"undefined":d(e)}return t.stringify(e)};var N=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void 0,"undefined"]];var I=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:false,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if(t===k.Any)return false;for(var c=0;c<N.length;++c)if(t===N[c][0]){if((void 0===e?"undefined":d(e))===N[c][1])return false;return{message:"Expected ".concat(N[c][1],", got ").concat(x(e,{onlyShowType:true})),path:""}}if(null===t){if(null===e)return false;return{message:"Expected null, got ".concat(x(e)),path:""}}if("string"==typeof t||"number"==typeof t||"boolean"==typeof t){if(e===t)return false;return{message:"Expected ".concat(t,", got ").concat(x(e)),path:""}}if(t===k.Integer){if("number"==typeof e&&(0|e)===e)return false;return{message:"Expected Integer, got ".concat(x(e)),path:""}}if(t===Object)t=k.ObjectIncluding({});if(t===k.NonEmptyString)t=new _(j);if(h(t,Array)){if(1!==t.length)return{message:"Bad pattern: arrays must have one type element ".concat(x(t)),path:""};if(!Array.isArray(e)&&!$(e))return{message:"Expected array, got ".concat(x(e)),path:""};for(var u=0,s=e.length;u<s;u++){var f="".concat(i,"[").concat(u,"]");var l=I(e[u],t[0],r,a,f);if(l){l.path=V(r?f:u,l.path);if(!r)return l;if("object"!==d(e[u])||l.message)a.push(l)}}if(!r)return false;return 0===a.length?false:a}if(h(t,_)){var p;try{p=t.condition(e)}catch(e){if(!h(e,k.Error))throw e;return{message:e.message,path:e.path}}if(p)return false;return{message:"Failed Match.Where validation",path:""}}if(h(t,A))t=k.OneOf(void 0,null,t.pattern);else if(h(t,E))t=k.OneOf(void 0,t.pattern);if(h(t,P)){for(var v=0;v<t.choices.length;++v){var g=I(e,t.choices[v]);if(!g)return false}return{message:"Failed Match.OneOf, Match.Maybe or Match.Optional validation",path:""}}if(h(t,Function)){if(h(e,t))return false;return{message:"Expected ".concat(t.name||"particular constructor"),path:""}}var m=false;var y;if(h(t,M)){m=true;t=t.pattern}if(h(t,S)){m=true;y=[t.pattern];t={}}if((void 0===t?"undefined":d(t))!=="object")return{message:"Bad pattern: unknown pattern type",path:""};if((void 0===e?"undefined":d(e))!=="object")return{message:"Expected object, got ".concat(void 0===e?"undefined":d(e)),path:""};if(null===e)return{message:"Expected object, got null",path:""};if(!o(e))return{message:"Expected plain object",path:""};var O=Object.create(null);var w=Object.create(null);Object.keys(t).forEach(function(e){var r=t[e];if(h(r,E)||h(r,A))w[e]=r.pattern;else O[e]=r});for(var B in Object(e)){var T=e[B];var C=i?"".concat(i,".").concat(B):B;if(b.call(O,B)){var F=I(T,O[B],r,a,C);if(F){F.path=V(r?C:B,F.path);if(!r)return F;if((void 0===T?"undefined":d(T))!=="object"||F.message)a.push(F)}delete O[B]}else if(b.call(w,B)){var U=I(T,w[B],r,a,C);if(U){U.path=V(r?C:B,U.path);if(!r)return U;if((void 0===T?"undefined":d(T))!=="object"||U.message)a.push(U)}}else{if(!m){var z={message:"Unknown key",path:B};if(!r)return z;a.push(z)}if(y){var H=I(T,y[0],r,a,C);if(H){H.path=V(r?C:B,H.path);if(!r)return H;if((void 0===T?"undefined":d(T))!=="object"||H.message)a.push(H)}}}}var J=Object.keys(O);if(J.length){var W=function(e){return{message:"Missing key '".concat(e,"'"),path:r?i:""}};if(!r)return W(J[0]);var q=true,D=false,G=void 0;try{for(var K=J[n.iterator](),L;!(q=(L=K.next()).done);q=true){var Q=L.value;a.push(W(Q))}}catch(e){D=true;G=e}finally{try{if(!q&&null!=K.return)K.return()}finally{if(D)throw G}}}if(!r)return false;return 0===a.length?false:a};var B=function(){"use strict";function e(t,r){s(this,e);this.args=g(t);this.args.reverse();this.description=r}l(e,[{key:"checking",value:function(e){if(this._checkingOneValue(e))return;if(Array.isArray(e)||$(e))Array.prototype.forEach.call(e,this._checkingOneValue.bind(this))}},{key:"_checkingOneValue",value:function(e){for(var t=0;t<this.args.length;++t)if(e===this.args[t]||Number.isNaN(e)&&Number.isNaN(this.args[t])){this.args.splice(t,1);return true}return false}},{key:"throwUnlessAllArgumentsHaveBeenChecked",value:function(){if(this.args.length>
530)throw new Error("Did not check() all arguments during ".concat(this.description))}}]);return e}();var T=["do","if","in","for","let","new","try","var","case","else","enum","eval","false","null","this","true","void","with","break","catch","class","const","super","throw","while","yield","delete","export","import","public","return","static","switch","typeof","default","extends","finally","package","private","continue","debugger","function","arguments","interface","protected","implements","instanceof"];var V=function(e,t){if("number"==typeof e||e.match(/^[0-9]+$/))e="[".concat(e,"]");else if(!e.match(/^[a-z_$][0-9a-z_$.[\]]*$/i)||T.indexOf(e)>=0)e=JSON.stringify([e]);if(t&&"["!==t[0])return"".concat(e,".").concat(t);return e+t};var C=function(e){return(void 0===e?"undefined":d(e))==="object"&&null!==e};var F=function(e){return C(e)&&"[object Arguments]"===Object.prototype.toString.call(e)};var $=F(function(){return arguments}())?F:function(e){return C(e)&&"function"==typeof e.callee}},
53"isPlainObject.js":function(e,t,r){r.export({isPlainObject:function(){return s}});var n={};var a=n.toString;var i=Object.prototype.hasOwnProperty;var o=i.toString;var c=o.call(Object);var u=Object.getPrototypeOf;var s=function(e){var t;var r;if(!e||"[object Object]"!==a.call(e))return false;t=u(e);if(!t)return true;r=i.call(t,"constructor")&&t.constructor;return"function"==typeof r&&o.call(r)===c}}}}}},{extensions:[".js",".json"]});return{export:function(){return{check:a,Match:i}},require:o,eagerModulePaths:["/node_modules/meteor/check/match.js"],mainModulePath:"/node_modules/meteor/check/match.js"}});
54
55Package["core-runtime"].queue("retry",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package.random.Random;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var i;var n=r({node_modules:{meteor:{retry:{
55"retry.js":function(r,i,n){n.export({Retry:function(){return m}});function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function u(e,t,r){if(t)a(e.prototype,t);if(r)a(e,r);return e}var m=function(){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseTimeout,i=void 0===t?1e3:t,n=e.exponent,a=void 0===n?2.2:n,u=e.maxTimeout,m=void 0===u?3e5:u,s=e.minTimeout,c=void 0===s?10:s,l=e.minCount,f=void 0===l?2:l,h=e.fuzz,y=void 0===h?.5:h;o(this,r);this.baseTimeout=i;this.exponent=a;this.maxTimeout=m;this.minTimeout=c;this.minCount=f;this.fuzz=y;this.retryTimer=null}u(r,[{key:"clear",value:function(){if(this.retryTimer)clearTimeout(this.retryTimer);this.retryTimer=null}},{key:"_timeout",value:function(e){if(e<this.minCount)return this.minTimeout;var r=Math.min(this.maxTimeout,this.baseTimeout*Math.pow(this.exponent,e))*(t.fraction()*this.fuzz+(1-this.fuzz/2));return r}},{key:"retryLater",value:function(t,r){var i=this._timeout(t);if(this.retryTimer)clearTimeout(this.retryTimer);this.retryTimer=e.setTimeout(r,i);return i}}]);return r}()}}}}},{extensions:[".js",".json"]});return{export:function(){return{Retry:i}},require:n,eagerModulePaths:["/node_modules/meteor/retry/retry.js"],mainModulePath:"/node_modules/meteor/retry/retry.js"}});
56
57Package["core-runtime"].queue("callback-hook",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var t=Package.promise.Promise;var n=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;var a=Package["ecmascript-runtime-client"].Set;var o;var i=r({node_modules:{meteor:{"callback-hook":{
57"hook.js":function(r,o,i){i.export({Hook:function(){return v}});function c(e,r,n,a,o,i,c){try{var u=e[i](c);var l=u.value}catch(e){n(e);return}if(u.done)r(l);else t.resolve(l).then(a,o)}function u(e){return function(){var r=this,n=arguments;return new t(function(t,a){var o=e.apply(r,n);function i(e){c(o,t,a,i,u,"next",e)}function u(e){c(o,t,a,i,u,"throw",e)}i(void 0)})}}function l(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function s(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function f(e,r,t){if(r)s(e.prototype,r);if(t)s(e,t);return e}function h(e,r){var t,a,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=u(0),c["throw"]=u(1),c["return"]=u(2),"function"==typeof n&&(c[n.iterator]=function(){return this}),c;function u(e){return function(r){return l([e,r])}}function l(n){if(t)throw new TypeError("Generator is already executing.");while(c&&(c=0,n[0]&&(i=0)),i)try{if(t=1,a&&(o=2&n[0]?a["return"]:n[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,n[1])).done)return o;if(a=0,o)n=[2&n[0],o.value];switch(n[0]){case 0:case 1:o=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;a=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){i=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){i.label=n[1];break}if(6===n[0]&&i.label<o[1]){i.label=o[1];o=n;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(n);break}if(o[2])i.ops.pop();i.trys.pop();continue}n=r.call(e,i)}catch(e){n=[6,e];a=0}finally{t=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:true}}}var v=function(){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,r);this.callbacks=new a;var t=e.bindEnvironment,n=void 0===t?true:t,o=e.wrapAsync,i=void 0===o?true:o;this.bindEnvironment=!!n;this.wrapAsync=!!i;if(e.exceptionHandler)this.exceptionHandler=e.exceptionHandler;else if(e.debugPrintExceptions){if("string"!=typeof e.debugPrintExceptions)throw new Error("Hook option debugPrintExceptions should be a string");this.exceptionHandler=e.debugPrintExceptions}}f(r,[{key:"clear",value:function(){this.callbacks.clear()}},{key:"size",value:function(){return this.callbacks.size}},{key:"asArray",value:function(){return Array.from(this.callbacks)}},{key:"fromArray",value:function(e){if(!Array.isArray(e))throw new Error("Method fromArray expects an array");this.callbacks=new a(e)}},{key:"register",value:function(r){var t=this;var n=this.exceptionHandler||function(e){throw e};r=this.bindEnvironment?e.bindEnvironment(r,n):p(r,n);if(this.wrapAsync)r=e.wrapFn(r);this.callbacks.add(r);return{callback:r,stop:function(){t.callbacks.delete(r)}}}},{key:"forEach",value:function(e){var r=Array.from(this.callbacks);var t=true,a=false,o=void 0;try{for(var i=r[n.iterator](),c;!(t=(c=i.next()).done);t=true){var u=c.value;if(this.callbacks.has(u)){if(!e(u))break}}}catch(e){a=true;o=e}finally{try{if(!t&&null!=i.return)i.return()}finally{if(a)throw o}}}},{key:"forEachAsync",value:function(e){return u(function(){var r,t,a,o,i,c,u;return h(this,function(l){switch(l.label){case 0:r=true,t=false,a=void 0;l.label=1;case 1:l.trys.push([1,6,7,8]);o=this.callbacks[n.iterator]();l.label=2;case 2:if(!!(r=(i=o.next()).done))return[3,5];c=i.value;return[4,e(c)];case 3:if(!l.sent())return[3,5];l.label=4;case 4:r=true;return[3,2];case 5:return[3,8];case 6:u=l.sent();t=true;a=u;return[3,8];case 7:try{if(!r&&null!=o.return)o.return()}finally{if(t)throw a}return[7];case 8:return[2]}})}).call(this)}},{key:"each",value:function(e){return this.forEach(e)}},{key:n.iterator,value:function(){return this.callbacks[n.iterator]()}}]);return r}();function p(e,r,t){var n=b(r);return function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var i;try{i=e.apply(t,a)}catch(e){n(e)}return i}}function b(r){if("function"==typeof r)return r;var t="string"==typeof r?r:"callback of async function";return function(r){e._debug("Exception in ".concat(t),r)}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{Hook:o}},require:i,eagerModulePaths:["/node_modules/meteor/callback-hook/hook.js"],mainModulePath:"/node_modules/meteor/callback-hook/hook.js"}});
58
59Package["core-runtime"].queue("ddp-common",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;Package.check.check;Package.check.Match;var t=Package.random.Random;var n=Package.ejson.EJSON;Package.tracker.Tracker;Package.tracker.Deps;Package.retry.Retry;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var a=Package.promise.Promise;var i=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var o;var u=r({node_modules:{meteor:{"ddp-common":{
59"namespace.js":function(){o={}},
59"heartbeat.js":function(){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function r(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}o.Heartbeat=function(){"use strict";function n(e){t(this,n);this.heartbeatInterval=e.heartbeatInterval;this.heartbeatTimeout=e.heartbeatTimeout;this._sendPing=e.sendPing;this._onTimeout=e.onTimeout;this._seenPacket=false;this._heartbeatIntervalHandle=null;this._heartbeatTimeoutHandle=null}r(n,[{key:"stop",value:function(){this._clearHeartbeatIntervalTimer();this._clearHeartbeatTimeoutTimer()}},{key:"start",value:function(){this.stop();this._startHeartbeatIntervalTimer()}},{key:"_startHeartbeatIntervalTimer",value:function(){var t=this;this._heartbeatIntervalHandle=e.setInterval(function(){return t._heartbeatIntervalFired()},this.heartbeatInterval)}},{key:"_startHeartbeatTimeoutTimer",value:function(){var t=this;this._heartbeatTimeoutHandle=e.setTimeout(function(){return t._heartbeatTimeoutFired()},this.heartbeatTimeout)}},{key:"_clearHeartbeatIntervalTimer",value:function(){if(this._heartbeatIntervalHandle){e.clearInterval(this._heartbeatIntervalHandle);this._heartbeatIntervalHandle=null}}},{key:"_clearHeartbeatTimeoutTimer",value:function(){if(this._heartbeatTimeoutHandle){e.clearTimeout(this._heartbeatTimeoutHandle);this._heartbeatTimeoutHandle=null}}},{key:"_heartbeatIntervalFired",value:function(){if(!this._seenPacket&&!this._heartbeatTimeoutHandle){this._sendPing();this._startHeartbeatTimeoutTimer()}this._seenPacket=false}},{key:"_heartbeatTimeoutFired",value:function(){this._heartbeatTimeoutHandle=null;this._onTimeout()}},{key:"messageReceived",value:function(){this._seenPacket=true;if(this._heartbeatTimeoutHandle)this._clearHeartbeatTimeoutTimer()}}]);return n}()},
59"utils.js":function(t,r,a){"use strict";a.export({hasOwn:function(){return l},slice:function(){return s},keys:function(){return c},isEmpty:function(){return f},last:function(){return d}});function u(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}var l=Object.prototype.hasOwnProperty;var s=Array.prototype.slice;function c(e){return Object.keys(Object(e))}function f(e){if(null==e)return true;if(Array.isArray(e)||"string"==typeof e)return 0===e.length;for(var t in e)if(l.call(e,t))return false;return true}function d(e,t,n){if(null==e)return;if(null==t||n)return e[e.length-1];return s.call(e,Math.max(e.length-t,0))}o.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"];o.parseDDP=function(t){try{var r=JSON.parse(t)}catch(n){e._debug("Discarding message with invalid JSON",t);return null}if(null===r||(void 0===r?"undefined":u(r))!=="object"){e._debug("Discarding non-object DDP message",t);return null}if(l.call(r,"cleared")){if(!l.call(r,"fields"))r.fields={};r.cleared.forEach(function(e){r.fields[e]=void 0});delete r.cleared}["fields","params","result"].forEach(function(e){if(l.call(r,e))r[e]=n._adjustTypesFromJSONValue(r[e])});return r};o.stringifyDDP=function(e){if(e.id&&"string"!=typeof e.id)throw new Error("Message id is not a string");if(void 0===e.fields&&void 0===e.params&&void 0===e.result)return JSON.stringify(e);var t={};var r=null;var a=null;for(var i in e)if(l.call(e,i))switch(i){case"fields":for(var o in e.fields)if(l.call(e.fields,o)){var u=e.fields[o];if(void 0===u)(null!=r?r:r=[]).push(o);else(null!=a?a:a={})[o]=n.toJSONValue(u)}break;case"params":t.params=n.toJSONValue(e.params);break;case"result":t.result=n.toJSONValue(e.result);break;default:t[i]=e[i]}if(null!==a)t.fields=a;if(null!==r)t.cleared=r;return JSON.stringify(t)}},
59"method_invocation.js":function(){function e(e,t,n,r,i,o,u){try{var l=e[o](u);var s=l.value}catch(e){n(e);return}if(l.done)t(s);else a.resolve(s).then(r,i)}function t(t){return function(){var n=this,r=arguments;return new a(function(a,i){var o=t.apply(n,r);function u(t){e(o,a,i,u,l,"next",t)}function l(t){e(o,a,i,u,l,"throw",t)}u(void 0)})}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function u(e,t,n){if(t)r(e.prototype,t);if(n)r(e,n);return e}function l(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=l(0),u["throw"]=l(1),u["return"]=l(2),"function"==typeof i&&(u[i.iterator]=function(){return this}),u;function l(e){return function(t){return s([e,t])}}function s(i){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,i[0]&&(o=0)),o)try{if(n=1,r&&(a=2&i[0]?r["return"]:i[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;
59if(r=0,a)i=[2&i[0],a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;r=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1];a=i;break}if(a&&o.label<a[2]){o.label=a[2];o.ops.push(i);break}if(a[2])o.ops.pop();o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e];r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}o.MethodInvocation=function(){"use strict";function e(t){n(this,e);this.name=t.name;this.isSimulation=t.isSimulation;this._unblock=t.unblock||function(){};this._calledUnblock=false;this._isFromCallAsync=t.isFromCallAsync;this.userId=t.userId;this._setUserId=t.setUserId||function(){};this.connection=t.connection;this.randomSeed=t.randomSeed;this.randomStream=null;this.fence=t.fence}u(e,[{key:"unblock",value:function(){this._calledUnblock=true;this._unblock()}},{key:"setUserId",value:function(e){return t(function(){return l(this,function(t){switch(t.label){case 0:if(this._calledUnblock)throw new Error("Can't call setUserId in a method after calling unblock");this.userId=e;return[4,this._setUserId(e)];case 1:t.sent();return[2]}})}).call(this)}}]);return e}()},
59"random_stream.js":function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function r(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}o.RandomStream=function(){"use strict";function n(t){e(this,n);this.seed=[].concat(t.seed||a());this.sequences=Object.create(null)}r(n,[{key:"_sequence",value:function(e){var n=this;var r=n.sequences[e]||null;if(null===r){var a=n.seed.concat(e);for(var i=0;i<a.length;i++)if("function"==typeof a[i])a[i]=a[i]();n.sequences[e]=r=t.createWithSeeds.apply(null,a)}return r}}]);return n}();function a(){return t.hexString(20)}o.RandomStream.get=function(e,n){if(!n)n="default";if(!e)return t.insecure;var r=e.randomStream;if(!r)e.randomStream=r=new o.RandomStream({seed:e.randomSeed});return r._sequence(n)};o.makeRpcSeed=function(e,t){var n=o.RandomStream.get(e,"/rpc/"+t);return n.hexString(20)}}}}}},{extensions:[".js",".json"]});return{export:function(){return{DDPCommon:o}},require:u,eagerModulePaths:["/node_modules/meteor/ddp-common/namespace.js","/node_modules/meteor/ddp-common/heartbeat.js","/node_modules/meteor/ddp-common/utils.js","/node_modules/meteor/ddp-common/method_invocation.js","/node_modules/meteor/ddp-common/random_stream.js"]}});
60
61Package["core-runtime"].queue("reload",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var t=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var o;var a=r({node_modules:{meteor:{reload:{
61"reload.js":function(r,o,a){a.export({Reload:function(){return f}});function n(e,r){if(null==r||r>e.length)r=e.length;for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function i(e){if(Array.isArray(e))return e}function l(e,r){var o=null==e?null:void 0!==t&&e[t.iterator]||e["@@iterator"];if(null==o)return;var a=[];var n=true;var i=false;var l,u;try{for(o=o.call(e);!(n=(l=o.next()).done);n=true){a.push(l.value);if(r&&a.length===r)break}}catch(e){i=true;u=e}finally{try{if(!n&&null!=o["return"])o["return"]()}finally{if(i)throw u}}return a}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,r){return i(e)||l(e,r)||d(e,r)||u()}function s(e){return e&&void 0!==t&&e.constructor===t?"symbol":typeof e}function d(e,r){if(!e)return;if("string"==typeof e)return n(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor)t=e.constructor.name;if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,r)}var f={};var m=e.settings&&e.settings.public&&e.settings.public.packages&&e.settings.public.packages.reload||{};function g(e,r){if(!m.debug)return;console.log("[reload] ".concat(e),JSON.stringify(r))}var v="Meteor_Reload";var p={};var y;var _=null;try{_=window.sessionStorage;if(_){_.setItem("__dummy__","1");_.removeItem("__dummy__")}else _=null}catch(e){_=null}f._getData=function(){return _&&_.getItem(v)};if(_){y=f._getData();_.removeItem(v)}if(!y)y="{}";var b={};try{b=JSON.parse(y);if((void 0===b?"undefined":s(b))!=="object"){e._debug("Got bad data on reload. Ignoring.");b={}}}catch(r){e._debug("Got invalid JSON on reload. Ignoring.")}if(b.reload&&"object"===s(b.data))p=b.data;var h=[];f._onMigrate=function(e,r){g("_onMigrate",{name:e});if(!r){r=e;e=void 0;g("_onMigrate no callback")}h.push({name:e,callback:r})};f._migrationData=function(e){g("_migrationData",{name:e});return p[e]};var w=function(e,r){g("pollProviders",{options:r});e=e||function(){};r=r||{};var t=r.immediateMigration;g("pollProviders is ".concat(t?"":"NOT ","immediateMigration"),{options:r});var o={};var a=true;h.forEach(function(t){var n=t||{},i=n.callback,l=n.name;var u=c(i(e,r)||[],2),s=u[0],d=u[1];g("pollProviders provider ".concat(l||"unknown"," is ").concat(s?"ready":"NOT ready"),{options:r});if(!s)a=false;if(void 0!==d&&l)o[l]=d});if(a){g("pollProviders allReady",{options:r,migrationData:o});return o}if(t){g("pollProviders immediateMigration",{options:r,migrationData:o});return o}return null};f._migrate=function(r,t){g("_migrate",{options:t});var o=w(r,t);if(null===o)return false;var a;try{a=JSON.stringify({data:o,reload:true})}catch(r){e._debug("Couldn't serialize data for migration",o);throw r}if(_)try{_.setItem(v,a)}catch(r){e._debug("Couldn't save data for migration to sessionStorage",r)}else e._debug("Browser does not support sessionStorage. Not saving migration state.");return true};f._withFreshProvidersForTest=function(e){var r=h.slice(0);h=[];try{e()}finally{h=r}};var P=false;f._reload=function(r){g("_reload",{options:r});r=r||{};if(P)return void g("reloading in progress already",{options:r});P=true;function t(){g("tryReload");setTimeout(a,1)}function o(){g("forceBrowserReload");if(window.location.hash||window.location.href.endsWith("#"))return void window.location.reload();window.location.replace(window.location.href)}function a(){g("reload");if(!f._migrate(t,r))return;if(e.isCordova)return void WebAppLocalServer.switchToPendingVersion(function(){o()});o()}t()}}}}}},{extensions:[".js",".json"]});return{export:function(){return{Reload:o}},require:a,eagerModulePaths:["/node_modules/meteor/reload/reload.js"],mainModulePath:"/node_modules/meteor/reload/reload.js"}});
62
63Package["core-runtime"].queue("socket-stream-client",function(){Package.meteor.Meteor;var t=Package.meteor.global;Package.meteor.meteorEnv;Package.retry.Retry;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var n=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;e({node_modules:{meteor:{"socket-stream-client":{
63"browser.js":function(t,e,r){r.export({ClientStream:function(){return _}});var i,o;r.link("./urls.js",{toSockjsUrl:function(t){i=t},toWebsocketUrl:function(t){o=t}},0);var s;r.link("./common.js",{StreamClientCommon:function(t){s=t}},1);var a;r.link("./sockjs-1.6.1-min-.js",{default:function(t){a=t}},2);function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,n){e=p(e);return b(t,g()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function h(t,e,n){if(e)f(t.prototype,e);if(n)f(t,n);return t}function d(t,e,n){if(e in t)Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true});else t[e]=n;return t}function p(t){p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)};return p(t)}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)y(t,e)}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}));r.forEach(function(e){d(t,e,n[e])})}return t}function b(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;return c(t)}function y(t,e){y=Object.setPrototypeOf||function(t,e){t.__proto__=e;return t};return y(t,e)}function w(t){return t&&void 0!==n&&t.constructor===n?"symbol":typeof t}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(g=function(){return!!t})()}var _=function(t){"use strict";m(e,t);function e(t,n){l(this,e);var r;r=u(this,e,[n]);r._initCommon(r.options);r.HEARTBEAT_TIMEOUT=1e5;r.rawUrl=t;r.socket=null;r.lastError=null;r.heartbeatTimer=null;window.addEventListener("online",r._online.bind(r),false);r._launchConnection();return r}h(e,[{key:"send",value:function(t){if(this.currentStatus.connected)this.socket.send(t)}},{key:"_changeUrl",value:function(t){this.rawUrl=t}},{key:"_connected",value:function(){if(this.connectionTimer){clearTimeout(this.connectionTimer);this.connectionTimer=null}if(this.currentStatus.connected)return;this.currentStatus.status="connected";this.currentStatus.connected=true;this.currentStatus.retryCount=0;this.statusChanged();this.forEachCallback("reset",function(t){t()})}},{key:"_cleanup",value:function(t){this._clearConnectionAndHeartbeatTimers();if(this.socket){this.socket.onmessage=this.socket.onclose=this.socket.onerror=this.socket.onheartbeat=function(){};this.socket.close();this.socket=null;this.forEachCallback("disconnect",function(e){e(t)})}}},{key:"_clearConnectionAndHeartbeatTimers",value:function(){if(this.connectionTimer){clearTimeout(this.connectionTimer);this.connectionTimer=null}if(this.heartbeatTimer){clearTimeout(this.heartbeatTimer);this.heartbeatTimer=null}}},{key:"_heartbeat_timeout",value:function(){console.log("Connection timeout. No sockjs heartbeat received.");this._lostConnection(new this.ConnectionError("Heartbeat timed out"))}},{key:"_heartbeat_received",value:function(){if("sockjs"!==this._transport)return;if(this._forcedToDisconnect)return;if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer);this.heartbeatTimer=setTimeout(this._heartbeat_timeout.bind(this),this.HEARTBEAT_TIMEOUT)}},{key:"_sockjsProtocolsWhitelist",value:function(){var t=["xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"];var e=navigator&&/iPhone|iPad|iPod/.test(navigator.userAgent)&&/OS 4_|OS 5_/.test(navigator.userAgent);if(!e)t=["websocket"].concat(t);return t}},{key:"_launchConnection",value:function(){var t=this;this._cleanup();var e=__meteor_runtime_config__.DDP_TRANSPORT||"sockjs";this._transport=e;if("sockjs"===e){var n=v({transports:this._sockjsProtocolsWhitelist()},this.options._sockjsOptions);this.socket=new a(i(this.rawUrl),void 0,n)}else this.socket=new WebSocket(o(this.rawUrl));this.socket.onopen=function(e){t.lastError=null;t._connected()};this.socket.onmessage=function(e){t.lastError=null;t._heartbeat_received();if(t.currentStatus.connected)t.forEachCallback("message",function(t){t(e.data)})};this.socket.onclose=function(){t._lostConnection()};this.socket.onerror=function(e){var n=t.lastError;t.lastError=e;if(n)return;console.error("stream error",e,new Date().toDateString())};this.socket.onheartbeat=function(){t.lastError=null;t._heartbeat_received()};if(this.connectionTimer)clearTimeout(this.connectionTimer);this.connectionTimer=setTimeout(function(){t._lostConnection(new t.ConnectionError("DDP connection timed out"))},this.CONNECT_TIMEOUT)}}]);return e}(s)},
63"common.js":function(t,e,n){n.export({StreamClientCommon:function(){return l}});var r;n.link("meteor/retry",{Retry:function(t){r=t}},0);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function s(t,e,n){if(e)o(t.prototype,e);if(n)o(t,n);return t}function a(t,e,n){if(e in t)Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true});else t[e]=n;return t}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}));r.forEach(function(e){a(t,e,n[e])})}return t}var u=new Error("forced reconnect");var l=function(){"use strict";function t(e){i(this,t);this.options=c({retry:true},e||null);this.ConnectionError=e&&e.ConnectionError||Error}s(t,[{key:"on",value:function(t,e){if("message"!==t&&"reset"!==t&&"disconnect"!==t)throw new Error("unknown event type: "+t);if(!this.eventCallbacks[t])this.eventCallbacks[t]=[];this.eventCallbacks[t].push(e)}},{key:"forEachCallback",value:function(t,e){if(!this.eventCallbacks[t]||!this.eventCallbacks[t].length)return;this.eventCallbacks[t].forEach(e)}},{key:"_initCommon",value:function(t){var e=this;t=t||Object.create(null);this.CONNECT_TIMEOUT=t.connectTimeoutMs||1e4;this.eventCallbacks=Object.create(null);this._forcedToDisconnect=false;this.currentStatus={status:"connecting",connected:false,retryCount:0};if(Package.tracker)this.statusListeners=new Package.tracker.Tracker.Dependency;this.statusChanged=function(){if(e.statusListeners)e.statusListeners.changed()};this._retry=new r;this.connectionTimer=null}},{key:"reconnect",value:function(t){t=t||Object.create(null);if(this._forcedToDisconnect)return;if(t.url)this._changeUrl(t.url);if(t._sockjsOptions)this.options._sockjsOptions=t._sockjsOptions;if(this.currentStatus.connected){if(t._force||t.url)this._lostConnection(u);return}if("connecting"===this.currentStatus.status)this._lostConnection();this._retry.clear();this.currentStatus.retryCount-=1;this._retryNow()}},{key:"disconnect",value:function(t){t=t||Object.create(null);if(this._forcedToDisconnect)return;if(t._permanent)this._forcedToDisconnect=true;this._cleanup();this._retry.clear();this.currentStatus={status:t._permanent?"failed":"offline",connected:false,retryCount:0};if(t._permanent&&t._error)this.currentStatus.reason=t._error;this.statusChanged()}},{key:"_lostConnection",value:function(t){this._cleanup(t);this._retryLater(t)}},{key:"_online",value:function(){if("offline"!=this.currentStatus.status)this.reconnect()}},{key:"_retryLater",value:function(t){var e=0;if(this.options.retry||t===u){e=this._retry.retryLater(this.currentStatus.retryCount,this._retryNow.bind(this));this.currentStatus.status="waiting";this.currentStatus.retryTime=new Date().getTime()+e}else{this.currentStatus.status="failed";delete this.currentStatus.retryTime}this.currentStatus.connected=false;this.statusChanged()}},{key:"_retryNow",value:function(){if(this._forcedToDisconnect)return;this.currentStatus.retryCount+=1;this.currentStatus.status="connecting";this.currentStatus.connected=false;delete this.currentStatus.retryTime;this.statusChanged();this._launchConnection()}},{key:"status",value:function(){if(this.statusListeners)this.statusListeners.depend();return this.currentStatus}}]);return t}()},
63"sockjs-1.6.1-min-.js":function(e,r,i){function o(t,e){if(null!=e&&void 0!==n&&e[n.hasInstance])return!!e[n.hasInstance](t);return t instanceof e}function s(t){return t&&void 0!==n&&t.constructor===n?"symbol":typeof t}!function(e){if("object"==(void 0===r?"undefined":s(r))&&void 0!==i)i.exports=e();else if("function"==typeof define&&define.amd)define([],e);else("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).SockJS=e()}(function(){return(function t(n,r,i){function o(a,c){if(!r[a]){if(!n[a]){var u="function"==typeof e&&e;if(!c&&u)return u(a,!0);if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var f=r[a]={exports:{}};n[a][0].call(f.exports,function(t){return o(n[a][1][t]||t)},f,f.exports,t,n,r,i)}return r[a].exports}for(var s="function"==typeof e&&e,a=0;a<i.length;a++)o(i[a]);return o})({1:[function(e,n,r){(function(t){(function(){"use strict";var r=e("./transport-list");n.exports=e("./main")(r),"_sockjs_onload"in t&&setTimeout(t._sockjs_onload,1)}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./main":14,"./transport-list":16}],2:[function(t,e,n){"use strict";var r=t("inherits"),i=t("./event");function o(){i.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}r(o,i),e.exports=o},{"./event":4,inherits:54}],3:[function(t,e,n){"use strict";var r=t("inherits"),i=t("./eventtarget");function o(){i.call(this)}r(o,i),o.prototype.removeAllListeners=function(t){t?delete this._listeners[t]:this._listeners={}},o.prototype.once=function(t,e){var n=this,r=!1;this.on(t,function i(){n.removeListener(t,i),r||(r=!0,e.apply(this,arguments))})},o.prototype.emit=function(){var t=arguments[0],e=this._listeners[t];if(e){for(var n=arguments.length,r=new Array(n-1),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0;o<e.length;o++)e[o].apply(this,r)}},o.prototype.on=o.prototype.addListener=i.prototype.addEventListener,o.prototype.removeListener=i.prototype.removeEventListener,e.exports.EventEmitter=o},{"./eventtarget":5,inherits:54}],4:[function(t,e,n){"use strict";function r(t){this.type=t}r.prototype.initEvent=function(t,e,n){return this.type=t,this.bubbles=e,this.cancelable=n,this.timeStamp=+new Date,this},r.prototype.stopPropagation=function(){},r.prototype.preventDefault=function(){},r.CAPTURING_PHASE=1,r.AT_TARGET=2,r.BUBBLING_PHASE=3,e.exports=r},{}],5:[function(t,e,n){"use strict";function r(){this._listeners={}}r.prototype.addEventListener=function(t,e){t in this._listeners||(this._listeners[t]=[]);var n=this._listeners[t];-1===n.indexOf(e)&&(n=n.concat([e])),this._listeners[t]=n},r.prototype.removeEventListener=function(t,e){var n=this._listeners[t];if(n){var r=n.indexOf(e);-1===r||(1<n.length?this._listeners[t]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[t])}},r.prototype.dispatchEvent=function(){var t=arguments[0],e=t.type,n=1===arguments.length?[t]:Array.apply(null,arguments);if(this["on"+e]&&this["on"+e].apply(this,n),e in this._listeners)for(var r=this._listeners[e],i=0;i<r.length;i++)r[i].apply(this,n)},e.exports=r},{}],6:[function(t,e,n){"use strict";var r=t("inherits"),i=t("./event");function o(t){i.call(this),this.initEvent("message",!1,!1),this.data=t}r(o,i),e.exports=o},{"./event":4,inherits:54}],7:[function(t,e,n){"use strict";var r=t("./utils/iframe");function i(t){(this._transport=t).on("message",this._transportMessage.bind(this)),t.on("close",this._transportClose.bind(this))}i.prototype._transportClose=function(t,e){r.postMessage("c",JSON.stringify([t,e]))},i.prototype._transportMessage=function(t){r.postMessage("t",t)},i.prototype._send=function(t){this._transport.send(t)},i.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},e.exports=i},{"./utils/iframe":47}],8:[function(t,e,n){"use strict";var r=t("./utils/url"),i=t("./utils/event"),o=t("./facade"),s=t("./info-iframe-receiver"),a=t("./utils/iframe"),c=t("./location"),u=function(){};e.exports=function(t,e){var n,l={};e.forEach(function(t){t.facadeTransport&&(l[t.facadeTransport.transportName]=t.facadeTransport)}
vendor: 5,788 bytes, line 63
63),l[s.transportName]=s,t.bootstrap_iframe=function(){var e;a.currentWindowId=c.hash.slice(1);i.attachEvent("message",function(i){if(i.source===parent&&(void 0===n&&(n=i.origin),i.origin===n)){var s;try{s=JSON.parse(i.data)}catch(t){return void u("bad json",i.data)}if(s.windowId===a.currentWindowId)switch(s.type){case"s":var f;try{f=JSON.parse(s.data)}catch(t){u("bad json",s.data);break}var h=f[0],d=f[1],p=f[2],m=f[3];if(u(h,d,p,m),h!==t.version)throw new Error('Incompatible SockJS! Main site uses: "'+h+'", the iframe: "'+t.version+'".');if(!r.isOriginEqual(p,c.href)||!r.isOriginEqual(m,c.href))throw new Error("Can't connect to different domain from within an iframe. ("+c.href+", "+p+", "+m+")");e=new o(new l[d](p,m));break;case"m":e._send(s.data);break;case"c":e&&e._close(),e=null}}}),a.postMessage("s")}}},{"./facade":7,"./info-iframe-receiver":10,"./location":13,"./utils/event":46,"./utils/iframe":47,"./utils/url":52,debug:void 0}],9:[function(t,e,n){"use strict";var r=t("events").EventEmitter,i=t("inherits"),o=t("./utils/object"),s=function(){};function a(t,e){r.call(this);var n=this,i=+new Date;this.xo=new e("GET",t),this.xo.once("finish",function(t,e){var r,a;if(200===t){if(a=new Date-i,e)try{r=JSON.parse(e)}catch(t){s("bad json",e)}o.isObject(r)||(r={})}n.emit("finish",r,a),n.removeAllListeners()})}i(a,r),a.prototype.close=function(){this.removeAllListeners(),this.xo.close()},e.exports=a},{"./utils/object":49,debug:void 0,events:3,inherits:54}],10:[function(t,e,n){"use strict";var r=t("inherits"),i=t("events").EventEmitter,o=t("./transport/sender/xhr-local"),s=t("./info-ajax");function a(t){var e=this;i.call(this),this.ir=new s(t,o),this.ir.once("finish",function(t,n){e.ir=null,e.emit("message",JSON.stringify([t,n]))})}r(a,i),a.transportName="iframe-info-receiver",a.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},e.exports=a},{"./info-ajax":9,"./transport/sender/xhr-local":37,events:3,inherits:54}],11:[function(e,n,r){(function(t){(function(){"use strict";var r=e("events").EventEmitter,i=e("inherits"),o=e("./utils/event"),s=e("./transport/iframe"),a=e("./info-iframe-receiver"),c=function(){};function u(e,n){var i=this;r.call(this);function u(){var t=i.ifr=new s(a.transportName,n,e);t.once("message",function(t){if(t){var e;try{e=JSON.parse(t)}catch(e){return c("bad json",t),i.emit("finish"),void i.close()}var n=e[0],r=e[1];i.emit("finish",n,r)}i.close()}),t.once("close",function(){i.emit("finish"),i.close()})}t.document.body?u():o.attachEvent("load",u)}i(u,r),u.enabled=function(){return s.enabled()},u.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},n.exports=u}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./info-iframe-receiver":10,"./transport/iframe":22,"./utils/event":46,debug:void 0,events:3,inherits:54}],12:[function(t,e,n){"use strict";var r=t("events").EventEmitter,i=t("inherits"),o=t("./utils/url"),s=t("./transport/sender/xdr"),a=t("./transport/sender/xhr-cors"),c=t("./transport/sender/xhr-local"),u=t("./transport/sender/xhr-fake"),l=t("./info-iframe"),f=t("./info-ajax"),h=function(){};function d(t,e){h(t);var n=this;r.call(this),setTimeout(function(){n.doXhr(t,e)},0)}i(d,r),d._getReceiver=function(t,e,n){return n.sameOrigin?new f(e,c):a.enabled?new f(e,a):s.enabled&&n.sameScheme?new f(e,s):l.enabled()?new l(t,e):new f(e,u)},d.prototype.doXhr=function(t,e){var n=this,r=o.addPath(t,"/info");h("doXhr",r),this.xo=d._getReceiver(t,r,e),this.timeoutRef=setTimeout(function(){h("timeout"),n._cleanup(!1),n.emit("finish")},d.timeout),this.xo.once("finish",function(t,e){h("finish",t,e),n._cleanup(!0),n.emit("finish",t,e)})},d.prototype._cleanup=function(t){h("_cleanup"),clearTimeout(this.timeoutRef),this.timeoutRef=null,!t&&this.xo&&this.xo.close(),this.xo=null},d.prototype.close=function(){h("close"),this.removeAllListeners(),this._cleanup(!1)},d.timeout=8e3,e.exports=d},{"./info-ajax":9,"./info-iframe":11,"./transport/sender/xdr":34,"./transport/sender/xhr-cors":35,"./transport/sender/xhr-fake":36,"./transport/sender/xhr-local":37,"./utils/url":52,debug:void 0,events:3,inherits:54}],13:[function(e,n,r){(function(t){(function(){"use strict";n.exports=t.location||{origin:"http://localhost:80",protocol:"http:",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],14:[function(e,n,r){(function(t){(function(){"use strict";e("./shims");var r,i=e("url-parse"),s=e("inherits"),a=e("./utils/random"),c=e("./utils/escape"),u=e("./utils/url"),l=e("./utils/event"),f=e("./utils/transport"),h=e("./utils/object"),d=e("./utils/browser"),p=e("./utils/log"),m=e("./event/event"),v=e("./event/eventtarget"),b=e("./location"),y=e("./event/close"),w=e("./event/trans-message"),g=e("./info-receiver"),_=function(){};function x(t,e,n){if(!o(this,x))return new x(t,e,n);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");v.call(this),this.readyState=x.CONNECTING,this.extensions="",this.protocol="",(n=n||{}).protocols_whitelist&&p.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports,this._transportOptions=n.transportOptions||{},this._timeout=n.timeout||0;var r=n.sessionId||8;if("function"==typeof r)this._generateSessionId=r;else{if("number"!=typeof r)throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){return a.string(r)}}this._server=n.server||a.numberString(1e3);var s=new i(t);if(!s.host||!s.protocol)throw new SyntaxError("The URL '"+t+"' is 
63invalid");if(s.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==s.protocol&&"https:"!==s.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+s.protocol+"' is not allowed.");var c="https:"===s.protocol;if("https:"===b.protocol&&!c&&!u.isLoopbackAddr(s.hostname))throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");e?Array.isArray(e)||(e=[e]):e=[];var l=e.sort();l.forEach(function(t,e){if(!t)throw new SyntaxError("The protocols entry '"+t+"' is invalid.");if(e<l.length-1&&t===l[e+1])throw new SyntaxError("The protocols entry '"+t+"' is duplicated.")});var f=u.getOrigin(b.href);this._origin=f?f.toLowerCase():null,s.set("pathname",s.pathname.replace(/\/+$/,"")),this.url=s.href,_("using url",this.url),this._urlInfo={nullOrigin:!d.hasDomain(),sameOrigin:u.isOriginEqual(this.url,b.href),sameScheme:u.isSchemeEqual(this.url,b.href)},this._ir=new g(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function E(t){return 1e3===t||3e3<=t&&t<=4999}s(x,v),x.prototype.close=function(t,e){if(t&&!E(t))throw new Error("InvalidAccessError: Invalid code");if(e&&123<e.length)throw new SyntaxError("reason argument has an invalid length");if(this.readyState!==x.CLOSING&&this.readyState!==x.CLOSED)this._close(t||1e3,e||"Normal closure",!0)},x.prototype.send=function(t){if("string"!=typeof t&&(t=""+t),this.readyState===x.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===x.OPEN&&this._transport.send(c.quote(t))},x.version=e("./version"),x.CONNECTING=0,x.OPEN=1,x.CLOSING=2,x.CLOSED=3,x.prototype._receiveInfo=function(t,e){if(_("_receiveInfo",e),this._ir=null,t){this._rto=this.countRTO(e),this._transUrl=t.base_url?t.base_url:this.url,t=h.extend(t,this._urlInfo),_("info",t);var n=r.filterToEnabled(this._transportsWhitelist,t);this._transports=n.main,_(this._transports.length+" enabled transports"),this._connect()}else this._close(1002,"Cannot connect to server")},x.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(_("attempt",e.transportName),e.needBody&&(!t.document.body||void 0!==t.document.readyState&&"complete"!==t.document.readyState&&"interactive"!==t.document.readyState))return _("waiting for body"),this._transports.unshift(e),void l.attachEvent("load",this._connect.bind(this));var n=Math.max(this._timeout,this._rto*e.roundTrips||5e3);this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),n),_("using timeout",n);var r=u.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),i=this._transportOptions[e.transportName];_("transport url",r);var o=new e(r,this._transUrl,i);return o.on("message",this._transportMessage.bind(this)),o.once("close",this._transportClose.bind(this)),o.transportName=e.transportName,void(this._transport=o)}this._close(2e3,"All transports failed",!1)},x.prototype._transportTimeout=function(){_("_transportTimeout"),this.readyState===x.CONNECTING&&(this._transport&&this._transport.close(),this._transportClose(2007,"Transport timed out"))},x.prototype._transportMessage=function(t){_("_transportMessage",t);var e,n=this,r=t.slice(0,1),i=t.slice(1);switch(r){case"o":return void this._open();case"h":return this.dispatchEvent(new m("heartbeat")),void _("heartbeat",this.transport)}if(i)try{e=JSON.parse(i)}catch(t){_("bad json",i)}if(void 0!==e)switch(r){case"a":Array.isArray(e)&&e.forEach(function(t){_("message",n.transport,t),n.dispatchEvent(new w(t))});break;case"m":_("message",this.transport,e),this.dispatchEvent(new w(e));break;case"c":Array.isArray(e)&&2===e.length&&this._close(e[0],e[1],!0)}else _("empty payload",i)},x.prototype._transportClose=function(t,e){_("_transportClose",this.transport,t,e),this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),E(t)||2e3===t||this.readyState!==x.CONNECTING?this._close(t,e):this._connect()},x.prototype._open=function(){_("_open",this._transport&&this._transport.transportName,this.readyState),this.readyState===x.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=x.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new m("open")),_("connected",this.transport)):this._close(1006,"Server lost session")},x.prototype._close=function(t,e,n){_("_close",this.transport,t,e,n,this.readyState);var r=!1;if(this._ir&&(r=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===x.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=x.CLOSING,setTimeout((function(){this.readyState=x.CLOSED,r&&this.dispatchEvent(new m("error"));var i=new y("close");i.wasClean=n||!1,i.code=t||1e3,i.reason=e,this.dispatchEvent(i),this.onmessage=this.onclose
vendor: 34,666 bytes, line 63
63=this.onerror=null,_("disconnected")}).bind(this),0)},x.prototype.countRTO=function(t){return 100<t?4*t:300+t},n.exports=function(t){return r=f(t),e("./iframe-bootstrap")(x,t),x}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./event/close":2,"./event/event":4,"./event/eventtarget":5,"./event/trans-message":6,"./iframe-bootstrap":8,"./info-receiver":12,"./location":13,"./shims":15,"./utils/browser":44,"./utils/escape":45,"./utils/event":46,"./utils/log":48,"./utils/object":49,"./utils/random":50,"./utils/transport":51,"./utils/url":52,"./version":53,debug:void 0,inherits:54,"url-parse":57}],15:[function(t,e,n){"use strict";function r(t){return"[object Function]"===u.toString.call(t)}function i(t){return"[object String]"===d.call(t)}var a,c=Array.prototype,u=Object.prototype,l=Function.prototype,f=String.prototype,h=c.slice,d=u.toString,p=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}();a=p?function(t,e,n,r){!r&&e in t||Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(t,e,n,r){!r&&e in t||(t[e]=n)};function m(t,e,n){for(var r in e)u.hasOwnProperty.call(e,r)&&a(t,r,e[r],n)}function v(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)}function b(){}m(l,{bind:function(t){var e=this;if(!r(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var n=h.call(arguments,1),i=Math.max(0,e.length-n.length),s=[],a=0;a<i;a++)s.push("$"+a);var c=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(o(this,c)){var r=e.apply(this,n.concat(h.call(arguments)));return Object(r)===r?r:this}return e.apply(t,n.concat(h.call(arguments)))});return e.prototype&&(b.prototype=e.prototype,c.prototype=new b,b.prototype=null),c}}),m(Array,{isArray:function(t){return"[object Array]"===d.call(t)}});var y,w,g,_=Object("a"),x="a"!==_[0]||!(0 in _);m(c,{forEach:function(t,e){var n=v(this),o=x&&i(this)?this.split(""):n,s=e,a=-1,c=o.length>>>0;if(!r(t))throw new TypeError;for(;++a<c;)a in o&&t.call(s,o[a],a,n)}},(y=c.forEach,g=w=!0,y&&(y.call("foo",function(t,e,n){"object"!=(void 0===n?"undefined":s(n))&&(w=!1)}),y.call([1],function(){g="string"==typeof this},"x")),!(y&&w&&g)));var E=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);m(c,{indexOf:function(t,e){var n=x&&i(this)?this.split(""):v(this),r=n.length>>>0;if(!r)return -1;var o=0;for(1<arguments.length&&(o=function(t){var e=+t;return e!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(0<e||-1)*Math.floor(Math.abs(e))),e}(e)),o=0<=o?o:Math.max(0,r+o);o<r;o++)if(o in n&&n[o]===t)return o;return -1}},E);var k,T=f.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||1<".".split(/()()/).length?(k=void 0===/()??/.exec("")[1],f.split=function(t,e){var n=this;if(void 0===t&&0===e)return[];if("[object RegExp]"!==d.call(t))return T.call(this,t,e);var r,i,o,s,a=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),l=0;for(t=new RegExp(t.source,u+"g"),n+="",k||(r=new RegExp("^"+t.source+"$(?!\\s)",u)),e=void 0===e?0xffffffff:function(t){return t>>>0}(e);(i=t.exec(n))&&!(l<(o=i.index+i[0].length)&&(a.push(n.slice(l,i.index)),!k&&1<i.length&&i[0].replace(r,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(i[t]=void 0)}),1<i.length&&i.index<n.length&&c.push.apply(a,i.slice(1)),s=i[0].length,l=o,a.length>=e));)t.lastIndex===i.index&&t.lastIndex++;return l===n.length?!s&&t.test("")||a.push(""):a.push(n.slice(l)),a.length>e?a.slice(0,e):a}):"0".split(void 0,0).length&&(f.split=function(t,e){return void 0===t&&0===e?[]:T.call(this,t,e)});var S=f.substr,O="".substr&&"b"!=="0b".substr(-1);m(f,{substr:function(t,e){return S.call(this,t<0&&(t=this.length+t)<0?0:t,e)}},O)},{}],16:[function(t,e,n){"use strict";e.exports=[t("./transport/websocket"),t("./transport/xhr-streaming"),t("./transport/xdr-streaming"),t("./transport/eventsource"),t("./transport/lib/iframe-wrap")(t("./transport/eventsource")),t("./transport/htmlfile"),t("./transport/lib/iframe-wrap")(t("./transport/htmlfile")),t("./transport/xhr-polling"),t("./transport/xdr-polling"),t("./transport/lib/iframe-wrap")(t("./transport/xhr-polling")),t("./transport/jsonp-polling")]},{"./transport/eventsource":20,"./transport/htmlfile":21,"./transport/jsonp-polling":23,"./transport/lib/iframe-wrap":26,"./transport/websocket":38,"./transport/xdr-polling":39,"./transport/xdr-streaming":40,"./transport/xhr-polling":41,"./transport/xhr-streaming":42}],17:[function(e,n,r){(function(t){(function(){"use strict";var r=e("events").EventEmitter,i=e("inherits"),o=e("../../utils/event"),s=e("../../utils/url"),a=t.XMLHttpRequest,c=function(){};function u(t,e,n,i){c(t,e);var o=this;r.call(this),setTimeout(function(){o._start(t,e,n,i)},0)}i(u,r),u.prototype._start=function(t,e,n,r){var i=this;try{this.xhr=new a}catch(t){}if(!this.xhr)return c("no xhr"),this.emit("finish",0,"no xhr support"),void this._cleanup();e=s.addQuery(e,"t="+ +new Date),this.unloadRef=o.unloadAdd(function(){c("unload cleanup"),i._cleanup(!0)});try{this.xhr.open(t,e,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){c("xhr timeout"),i.emit("finish",0,""),i._cleanup(!1)})}catch(t){return c("exception",t),this.emit("finish",0,""),void this._cleanup(!1)}if(r&&r.noCredentials||!u.supportsCORS||(c("withCredentials"),this.xhr.withCredentials=!0),r&&r.headers)for(var l in r.headers)this.xhr.setRequestHeader(l,r.headers[l]);this.xhr.onreadystatechange=function(){if(i.xhr){var t,e,n=i.xhr;switch(c("readyState",n.readyState),n.readyState){case 3:try{e=n.status,t=n.responseText}catch(t){}c("status",e),1223===e&&(e=204),200===e&&t&&0<t.length&&(c("chunk"),i.emit("chunk",e,t));break;case 4:e=n.status,c("status",e),1223===e&&(e=204),12005!==e&&12029!==e||(e=0),c("finish",e,n.responseText),i.emit("finish",e,n.responseText),i._cleanup(!1)}}};try{i.xhr.send(n)}catch(t){i.emit("finish",0,""),i._cleanup(!1)}},u.prototype._cleanup=function(t){if(c("cleanup"),this.xhr){if(this.removeAllListeners(),o.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),t)try{this.xhr.abort()}catch(t){}this.unloadRef=this.xhr=null}},u.prototype.close=function(){c("close"),this._cleanup(!0)},u.enabled=!!a;var l=["Active"].concat("Object").join("X");!u.enabled&&l in t&&(c("overriding xmlhttprequest"),u.enabled=(new(a=function(){try{return new t[l]("Microsoft.XMLHTTP")}catch(t){return null}}),true));var f=!1;try{f="withCredentials"in new a}catch(t){}u.supportsCORS=f,n.exports=u}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/event":46,"../../utils/url":52,debug:void 0,events:3,inherits:54}],18:[function(e,n,r){(function(t){(function(){n.exports=t.EventSource}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],19:[function(e,n,r){(function(t){(function(){"use strict";var e=t.WebSocket||t.MozWebSocket;n.exports=e?function(t){return new e(t)}:void 0}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(t,e,n){"use strict";var r=t("inherits"),i=t("./lib/ajax-based"),o=t("./receiver/eventsource"),s=t("./sender/xhr-cors"),a=t("eventsource");function c(t){if(!c.enabled())throw new Error("Transport created when disabled");i.call(this,t,"/eventsource",o,s)}r(c,i),c.enabled=function(){return!!a},c.transportName="eventsource",c.roundTrips=2,e.exports=c},{"./lib/ajax-based":24,"./receiver/eventsource":29,"./sender/xhr-cors":35,eventsource:18,inherits:54}],21:[function(t,e,n){"use strict";var r=t("inherits"),i=t("./receiver/htmlfile"),o=t("./sender/xhr-local"),s=t("./lib/ajax-based");function a(t){if(!i.enabled)throw new Error("Transport created when disabled");s.call(this,t,"/htmlfile",i,o)}r(a,s),a.enabled=function(t){return i.enabled&&t.sameOrigin},a.transportName="htmlfile",a.roundTrips=2,e.exports=a},{"./lib/ajax-based":24,"./receiver/htmlfile":30,"./sender/xhr-local":37,inherits:54}],22:[function(t,e,n){"use strict";var r=t("inherits"),i=t("events").EventEmitter,o=t("../version"),s=t("../utils/url"),a=t("../utils/iframe"),c=t("../utils/event"),u=t("../utils/random"),l=function(){};function f(t,e,n){if(!f.enabled())throw new Error("Transport created when disabled");i.call(this);var r=this;this.origin=s.getOrigin(n),this.baseUrl=n,this.transUrl=e,this.transport=t,this.windowId=u.string(8);var o=s.addPath(n,"/iframe.html")+"#"+this.windowId;l(t,e,o),this.iframeObj=a.createIframe(o,function(t){l("err callback"),r.emit("close",1006,"Unable to load an iframe ("+t+")"),r.close()}),this.onmessageCallback=this._message.bind(this),c.attachEvent("message",this.onmessageCallback)}r(f,i),f.prototype.close=function(){if(l("close"),this.removeAllListeners(),this.iframeObj){c.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(t){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},f.prototype._message=function(t){if(l("message",t.data),s.isOriginEqual(t.origin,this.origin)){var e;try{e=JSON.parse(t.data)}catch(e){return void l("bad json",t.data)}if(e.windowId===this.windowId)switch(e.type){case"s":this.iframeObj.loaded(),this.postMessage("s",JSON.stringify([o,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",e.data);break;case"c":var n;try{n=JSON.parse(e.data)}catch(t){return void l("bad json",e.data)}this.emit("close",n[0],n[1]),this.close()}else l("mismatched window id",e.windowId,this.windowId)}else l("not same origin",t.origin,this.origin)},f.prototype.postMessage=function(t,e){l("postMessage",t,e),this.iframeObj.post(JSON.stringify({windowId:this.windowId,type:t,data:e||""}),this.origin)},f.prototype.send=function(t){l("send",t),this.postMessage("m",t)},f.enabled=function(){return a.iframeEnabled},f.transportName="iframe",f.roundTrips=2,e.exports=f},{"../utils/event":46,"../utils/iframe":47,"../utils/random":50,"../utils/url":52,"../version":53,debug:void 0,events:3,inherits:54}],23:[function(e,n,r){(function(t){(function(){"use strict";var r=e("inherits"),i=e("./lib/sender-receiver"),o=e("./receiver/jsonp"),s=e("./sender/jsonp");function a(t){if(!a.enabled())throw new Error("Transport created when disabled");i.call(this,t,"/jsonp",s,o)}r(a,i),a.enabled=function(){return!!t.document},a.transportName="jsonp-polling",a.roundTrips=1,a.needBody=!0,n.exports=a}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/sender-receiver":28,"./receiver/jsonp":31,"./sender/jsonp":33,inherits:54}],24:[function(t,e,n){"use strict";var r=t("inherits"),i=t("../../utils/url"),o=t("./sender-receiver"),s=function(){};function a(t,e,n,r){o.call(this,t,e,function(t){return function(e,n,r){s("create ajax sender",e,n);var o={};"string"==typeof n&&(o.headers={"Content-type":"text/plain"});var a=i.addPath(e,"/xhr_send"),c=new t("POST",a,n,o);return c.once("finish",function(t){if(s("finish",t),c=null,200!==t&&204!==t)return r(new Error("http status "+t));r()}),function(){s("abort"),c.close(),c=null;var t=new Error("Aborted");t.code=1e3,r(t)}}}(r),n,r)}r(a,o),e.exports=a},{"../../utils/url":52,"./sender-receiver":28,debug:void 0,inherits:54}],25:[function(t,e,n){"use strict";var r=t("inherits"),i=t("events").EventEmitter,o=function(){};function s(t,e){o(t),i.call(this),this.sendBuffer=[],this.sender=e,this.url=t}r(s,i),s.prototype.send=function(t){o("send",t),this.sendBuffer.push(t),this.sendStop||this.sendSchedule()},s.prototype.sendScheduleWait=function(){o("sendScheduleWait");var t,e=this;this.sendStop=function(){o("sendStop"),e.sendStop=null,clearTimeout(t)},t=setTimeout(function(){o("timeout"),e.sendStop=null,e.sendSchedule()},25)},s.prototype.sendSchedule=function(){o("sendSchedule",this.sendBuffer.length);var t=this;if(0<this.sendBuffer.length){var e="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,e,function(e){t.sendStop=null,e?(o("error",e),t.emit("close",e.code||1006,"Sending error: "+e),t.close()):t.sendScheduleWait()}),this.sendBuffer=[]}},s.prototype._cleanup=function(){o("_cleanup"),this.removeAllListeners()},s.prototype.close=function(){o("close"),this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},e.exports=s},{debug:void 0,events:3,inherits:54}],26:[function(e,n,r){(function(t){(function(){"use strict";var r=e("inherits"),i=e("../iframe"),o=e("../../utils/object");n.exports=function(e){function n(t,n){i.call(this,e.transportName,t,n)}return r(n,i),n.enabled=function(n,r){if(!t.document)return!1;var s=o.extend({},r);return s.sameOrigin=!0,e.enabled(s)&&i.enabled()},n.transportName="iframe-"+e.transportName,n.needBody=!0,n.roundTrips=i.roundTrips+e.roundTrips-1,n.facadeTransport=e,n}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/object":49,"../iframe":22,inherits:54}],27:[function(t,e,n){"use strict";var r=t("inherits"),i=t("events").EventEmitter,o=function(){};function s(t,e,n){o(e),i.call(this),this.Receiver=t,this.receiveUrl=e,this.AjaxObject=n,this._scheduleReceiver()}r(s,i),s.prototype._scheduleReceiver=function(){o("_scheduleReceiver");var t=this,e=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);e.on("message",function(e){o("message",e),t.emit("message",e)}),e.once("close",function(n,r){o("close",n,r,t.pollIsClosing),t.poll=e=null,t.pollIsClosing||("network"===r?t._scheduleReceiver():(t.emit("close",n||1006,r),t.removeAllListeners()))})},s.prototype.abort=function(){o("abort"),this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},e.exports=s},{debug:void 0,events:3,inherits:54}],28:[function(t,e,n){"use strict";var r=t("inherits"),i=t("../../utils/url"),o=t("./buffered-sender"),s=t("./polling"),a=function(){};function c(t,e,n,r,c){var u=i.addPath(t,e);a(u);var l=this;o.call(this,t,n),this.poll=new s(r,u,c),this.poll.on("message",function(t){a("poll message",t),l.emit("message",t)}),this.poll.once("close",function(t,e){a("poll close",t,e),l.poll=null,l.emit("close",t,e),l.close()})}r(c,o),c.prototype.close=function(){o.prototype.close.call(this),a("close"),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null)},e.exports=c},{"../../utils/url":52,"./buffered-sender":25,"./polling":27,debug:void 0,inherits:54}],29:[function(t,e,n){"use strict";var r=t("inherits"),i=t("events").EventEmitter,o=t("eventsource"),s=function(){};function a(t){s(t),i.call(this);var e=this,n=this.es=new o(t);n.onmessage=function(t){s("message",t.data),e.emit("message",decodeURI(t.data))},n.onerror=function(t){s("error",n.readyState,t);var r=2!==n.readyState?"network":"permanent";e._cleanup(),e._close(r)}}r(a,i),a.prototype.abort=function(){s("abort"),this._cleanup(),this._close("user")},a.prototype._cleanup=function(){s("cleanup");var t=this.es;t&&(t.onmessage=t.onerror=null,t.close(),this.es=null)},a.prototype._close=function(t){s("close",t);var e=this;setTimeout(function(){e.emit("close",null,t),e.removeAllListeners()},200)},e.exports=a},{debug:void 0,events:3,eventsource:18,inherits:54}],30:[function(e,n,r){(function(t){(function(){"use strict";var r=e("inherits"),i=e("../../utils/iframe"),o=e("../../utils/url"),s=e("events").EventEmitter,a=e("../../utils/random"),c=function(){};function u(e){c(e),s.call(this);var n=this;i.polluteGlobalNamespace(),this.id="a"+a.string(6),e=o.addQuery(e,"c="+decodeURIComponent(i.WPrefix+"."+this.id)),c("using htmlfile",u.htmlfileEnabled);var r=u.htmlfileEnabled?i.createHtmlfile:i.createIframe;t[i.WPrefix][this.id]={start:function(){c("start"),n.iframeObj.loaded()},message:function(t){c("message",t),n.emit("message",t)},stop:function(){c("stop"),n._cleanup(),n._close("network")}},this.iframeObj=r(e,function(){c("callback"),n._cleanup(),n._close("permanent")})}r(u,s),u.prototype.abort=function(){c("abort"),this._cleanup(),this._close("user")},u.prototype._cleanup=function(){c("_cleanup"),this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete t[i.WPrefix][this.id]},u.prototype._close=function(t){c("_close",t),this.emit("close",null,t),this.removeAllListeners()},u.htmlfileEnabled=!1;var l=["Active"].concat("Object").join("X");if(l in t)try{u.htmlfileEnabled=(new t[l]("htmlfile"),true)}catch(t){}u.enabled=u.htmlfileEnabled||i.iframeEnabled,n.exports=u}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:void 0,events:3,inherits:54}],31:[function(e,n,r){(function(t){(function(){"use strict";var r=e("../../utils/iframe"),i=e("../../utils/random"),o=e("../../utils/browser"),s=e("../../utils/url"),a=e("inherits"),c=e("events").EventEmitter,u=function(){};function l(e){u(e);var n=this;c.call(this),r.polluteGlobalNamespace(),this.id="a"+i.string(6);var o=s.addQuery(e,"c="+encodeURIComponent(r.WPrefix+"."+this.id));t[r.WPrefix][this.id]=this._callback.bind(this),this._createScript(o),this.timeoutId=setTimeout(function(){u("timeout"),n._abort(new Error("JSONP script loaded abnormally (timeout)"))},l.timeout)}a(l,c),l.prototype.abort=function(){if(u("abort"),t[r.WPrefix][this.id]){var e=new Error("JSONP user aborted read");e.code=1e3,this._abort(e)}},l.timeout=35e3,l.scriptErrorTimeout=1e3,l.prototype._callback=function(t){u("_callback",t),this._cleanup(),this.aborting||(t&&(u("message",t),this.emit("message",t)),this.emit("close",null,"network"),this.removeAllListeners())},l.prototype._abort=function(t){u("_abort",t),this._cleanup(),this.aborting=!0,this.emit("close",t.code,t.message),this.removeAllListeners()},l.prototype._cleanup=function(){if(u("_cleanup"),clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){var e=this.script;e.parentNode.removeChild(e),e.onreadystatechange=e.onerror=e.onload=e.onclick=null,this.script=null}delete t[r.WPrefix][this.id]},l.prototype._scriptError=function(){u("_scriptError");var t=this;this.errorTimer||(this.errorTimer=setTimeout(function(){t.loadedOkay||t._abort(new Error("JSONP script loaded abnormally (onerror)"))},l.scriptErrorTimeout))},l.prototype._createScript=function(e){u("_createScript",e);var n,r=this,s=this.script=t.document.createElement("script");if(s.id="a"+i.string(8),s.src=e,s.type="text/javascript",s.charset="UTF-8",s.onerror=this._scriptError.bind(this),s.onload=function(){u("onload"),r._abort(new Error("JSONP script loaded abnormally (onload)"))},s.onreadystatechange=function(){if(u("onreadystatechange",s.readyState),/loaded|closed/.test(s.readyState)){if(s&&s.htmlFor&&s.onclick){r.loadedOkay=!0;try{s.onclick()}catch(t){}}s&&r._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},void 0===s.async&&t.document.attachEvent)if(o.isOpera())(n=this.script2=t.document.createElement("script")).text="try{var a = document.getElementById('"+s.id+"'); if(a)a.onerror();}catch(x){};",s.async=n.async=!1;else{try{s.htmlFor=s.id,s.event="onclick"}catch(t){}s.async=!0}void 0!==s.async&&(s.async=!0);var a=t.document.getElementsByTagName("head")[0];a.insertBefore(s,a.firstChild),n&&a.insertBefore(n,a.firstChild)},n.exports=l}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/browser":44,"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:void 0,events:3,inherits:54}],32:[function(t,e,n){"use strict";var r=t("inherits"),i=t("events").EventEmitter,o=function(){};function s(t,e){o(t),i.call(this);var n=this;this.bufferPosition=0,this.xo=new e("POST",t,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(t,e){o("finish",t,e),n._chunkHandler(t,e),n.xo=null;var r=200===t?"network":"permanent";o("close",r),n.emit("close",null,r),n._cleanup()})}r(s,i),s.prototype._chunkHandler=function(t,e){if(o("_chunkHandler",t),200===t&&e)for(var n=-1;;this.bufferPosition+=n+1){var r=e.slice(this.bufferPosition);if(-1===(n=r.indexOf("\n")))break;var i=r.slice(0,n);i&&(o("message",i),this.emit("message",i))}},s.prototype._cleanup=function(){o("_cleanup"),this.removeAllListeners()},s.prototype.abort=function(){o("abort"),this.xo&&(this.xo.close(),o("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()},e.exports=s},{debug:void 0,events:3,inherits:54}],33:[function(e,n,r){(function(t){(function(){"use strict";var r,i,o=e("../../utils/random"),s=e("../../utils/url"),a=function(){};n.exports=function(e,n,c){a(e,n),r||(a("createForm"),(r=t.document.createElement("form")).style.display="none",r.style.position="absolute",r.method="POST",r.enctype="application/x-www-form-urlencoded",r.acceptCharset="UTF-8",(i=t.document.createElement("textarea")).name="d",r.appendChild(i),t.document.body.appendChild(r));var u="a"+o.string(8);r.target=u,r.action=s.addQuery(s.addPath(e,"/jsonp_send"),"i="+u);var l=function(e){a("createIframe",e);try{return t.document.createElement('<iframe name="'+e+'">')}catch(r){var n=t.document.createElement("iframe");return n.name=e,n}}(u);l.id=u,l.style.display="none",r.appendChild(l);try{i.value=n}catch(t){}r.submit();function f(t){a("completed",u,t),l.onerror&&(l.onreadystatechange=l.onerror=l.onload=null,setTimeout(function(){a("cleaning up",u),l.parentNode.removeChild(l),l=null},500),i.value="",c(t))}return l.onerror=function(){a("onerror",u),f()},l.onload=function(){a("onload",u),f()},l.onreadystatechange=function(t){a("onreadystatechange",u,l.readyState,t),"complete"===l.readyState&&f()},function(){a("aborted",u),f(new Error("Aborted"))}}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/random":50,"../../utils/url":52,debug:void 0}],34:[function(e,n,r){(function(t){(function(){"use strict";var r=e("events").EventEmitter,i=e("inherits"),o=e("../../utils/event"),s=e("../../utils/browser"),a=e("../../utils/url"),c=function(){};function u(t,e,n){c(t,e);var i=this;r.call(this),setTimeout(function(){i._start(t,e,n)},0)}i(u,r),u.prototype._start=function(e,n,r){c("_start");var i=this,s=new t.XDomainRequest;n=a.addQuery(n,"t="+ +new Date),s.onerror=function(){c("onerror"),i._error()},s.ontimeout=function(){c("ontimeout"),i._error()},s.onprogress=function(){c("progress",s.responseText),i.emit("chunk",200,s.responseText)},s.onload=function(){c("load"),i.emit("finish",200,s.responseText),i._cleanup(!1)},this.xdr=s,this.unloadRef=o.unloadAdd(function(){i._cleanup(!0)});try{this.xdr.open(e,n),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(r)}catch(t){this._error()}},u.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},u.prototype._cleanup=function(t){if(c("cleanup",t),this.xdr){if(this.removeAllListeners(),o.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,t)try{this.xdr.abort()}catch(t){}this.unloadRef=this.xdr=null}},u.prototype.close=function(){c("close"),this._cleanup(!0)},u.enabled=!(!t.XDomainRequest||!s.hasDomain()),n.exports=u}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/browser":44,"../../utils/event":46,"../../utils/url":52,debug:void 0,events:3,inherits:54}],35:[function(t,e,n){"use strict";var r=t("inherits"),i=t("../driver/xhr");function o(t,e,n,r){i.call(this,t,e,n,r)}r(o,i),o.enabled=i.enabled&&i.supportsCORS,e.exports=o},{"../driver/xhr":17,inherits:54}],36:[function(t,e,n){"use strict";var r=t("events").EventEmitter;function i(){var t=this;r.call(this),this.to=setTimeout(function(){t.emit("finish",200,"{}")},i.timeout)}t("inherits")(i,r),i.prototype.close=function(){clearTimeout(this.to)},i.timeout=2e3,e.exports=i},{events:3,inherits:54}],37:[function(t,e,n){"use strict";var r=t("inherits"),i=t("../driver/xhr");function o(t,e,n){i.call(this,t,e,n,{noCredentials:!0})}r(o,i),o.enabled=i.enabled,e.exports=o},{"../driver/xhr":17,inherits:54}],38:[function(t,e,n){"use strict";var r=t("../utils/event"),i=t("../utils/url"),o=t("inherits"),s=t("events").EventEmitter,a=t("./driver/websocket"),c=function(){};function u(t,e,n){if(!u.enabled())throw new Error("Transport created when disabled");s.call(this),c("constructor",t);var o=this,l=i.addPath(t,"/websocket");l="https"===l.slice(0,5)?"wss"+l.slice(5):"ws"+l.slice(4),this.url=l,this.ws=new a(this.url,[],n),this.ws.onmessage=function(t){c("message event",t.data),o.emit("message",t.data)},this.unloadRef=r.unloadAdd(function(){c("unload"),o.ws.close()}),this.ws.onclose=function(t){c("close event",t.code,t.reason),o.emit("close",t.code,t.reason),o._cleanup()},this.ws.onerror=function(t){c("error event",t),o.emit("close",1006,"WebSocket connection broken"),o._cleanup()}}o(u,s),u.prototype.send=function(t){var e="["+t+"]";c("send",e),this.ws.send(e)},u.prototype.close=function(){c("close");var t=this.ws;this._cleanup(),t&&t.close()},u.prototype._cleanup=function(){c("_cleanup");var t=this.ws;t&&(t.onmessage=t.onclose=t.onerror=null),r.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},u.enabled=function(){return c("enabled"),!!a},u.transportName="websocket",u.roundTrips=2,e.exports=u},{"../utils/event":46,"../utils/url":52,"./driver/websocket":19,debug:void 0,events:3,inherits:54}],39:[function(t,e,n){"use strict";var r=t("inherits"),i=t("./lib/ajax-based"),o=t("./xdr-streaming"),s=t("./receiver/xhr"),a=t("./sender/xdr");function c(t){if(!a.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr",s,a)}r(c,i),c.enabled=o.enabled,c.transportName="xdr-polling",c.roundTrips=2,e.exports=c},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,"./xdr-streaming":40,inherits:54}],40:[function(t,e,n){"use strict";var r=t("inherits"),i=t("./lib/ajax-based"),o=t("./receiver/xhr"),s=t("./sender/xdr");function a(t){if(!s.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr_streaming",o,s)}r(a,i),a.enabled=function(t){return!t.cookie_needed&&!t.nullOrigin&&s.enabled&&t.sameScheme},a.transportName="xdr-streaming",a.roundTrips=2,e.exports=a},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,inherits:54}],41:[function(t,e,n){"use strict";var r=t("inherits"),i=t("./lib/ajax-based"),o=t("./receiver/xhr"),s=t("./sender/xhr-cors"),a=t("./sender/xhr-local");function c(t){if(!a.enabled&&!s.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr",o,s)}r(c,i),c.enabled=function(t){return!t.nullOrigin&&(!(!a.enabled||!t.sameOrigin)||s.enabled)},c.transportName="xhr-polling",c.roundTrips=2,e.exports=c},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:54}],42:[function(e,n,r){(function(t){(function(){"use strict";var r=e("inherits"),i=e("./lib/ajax-based"),o=e("./receiver/xhr"),s=e("./sender/xhr-cors"),a=e("./sender/xhr-local"),c=e("../utils/browser");function u(t){if(!a.enabled&&!s.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr_streaming",o,s)}r(u,i),u.enabled=function(t){return!t.nullOrigin&&!c.isOpera()&&s.enabled},u.transportName="xhr-streaming",u.roundTrips=2,u.needBody=!!t.document,n.exports=u}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils/browser":44,"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:54}],43:[function(e,n,r){(function(t){(function(){"use strict";t.crypto&&t.crypto.getRandomValues?n.exports.randomBytes=function(e){var n=new Uint8Array(e);return t.crypto.getRandomValues(n),n}:n.exports.randomBytes=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=Math.floor(256*Math.random());return e}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],44:[function(e,n,r){(function(t){(function(){"use strict";n.exports={isOpera:function(){return t.navigator&&/opera/i.test(t.navigator.userAgent)},isKonqueror:function(){return t.navigator&&/konqueror/i.test(t.navigator.userAgent)},hasDomain:function(){if(!t.document)return!0;try{return!!t.document.domain}catch(t){return!1}}}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],45:[function(t,e,n){"use strict";var r,i=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g;e.exports={quote:function(t){var e=JSON.stringify(t);return i.lastIndex=0,i.test(e)?(r=r||function(t){var e,n={},r=[];for(e=0;e<65536;e++)r.push(String.fromCharCode(e));return t.lastIndex=0,r.join("").replace(t,function(t){return n[t]="\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4),""}),t.lastIndex=0,n}(i),e.replace(i,function(t){return r[t]})):e}}},{}],46:[function(e,n,r){(function(t){(function(){"use strict";var r=e("./random"),i={},o=!1,s=t.chrome&&t.chrome.app&&t.chrome.app.runtime;n.exports={attachEvent:function(e,n){void 0!==t.addEventListener?t.addEventListener(e,n,!1):t.document&&t.attachEvent&&(t.document.attachEvent("on"+e,n),t.attachEvent("on"+e,n))},detachEvent:function(e,n){void 0!==t.addEventListener?t.removeEventListener(e,n,!1):t.document&&t.detachEvent&&(t.document.detachEvent("on"+e,n),t.detachEvent("on"+e,n))},unloadAdd:function(t){if(s)return null;var e=r.string(8);return i[e]=t,o&&setTimeout(this.triggerUnloadCallbacks,0),e},unloadDel:function(t){t in i&&delete i[t]},triggerUnloadCallbacks:function(){for(var t in i)i[t](),delete i[t]}};s||n.exports.attachEvent("unload",function(){o||(o=!0,n.exports.triggerUnloadCallbacks())})}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./random":50}],47:[function(e,n,r){(function(t){(function(){"use strict";var r=e("./event"),i=e("./browser"),o=function(){};n.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){n.exports.WPrefix in t||(t[n.exports.WPrefix]={})},postMessage:function(e,r){t.parent!==t?t.parent.postMessage(JSON.stringify({windowId:n.exports.currentWindowId,type:e,data:r||""}),"*"):o("Cannot postMessage, no parent window.",e,r)},createIframe:function(e,n){function i(){o("unattach"),clearTimeout(c);try{l.onload=null}catch(t){}l.onerror=null}function s(){o("cleanup"),l&&(i(),setTimeout(function(){l&&l.parentNode.removeChild(l),l=null},0),r.unloadDel(u))}function a(t){o("onerror",t),l&&(s(),n(t))}var c,u,l=t.document.createElement("iframe");return l.src=e,l.style.display="none",l.style.position="absolute",l.onerror=function(){a("onerror")},l.onload=function(){o("onload"),clearTimeout(c),c=setTimeout(function(){a("onload timeout")},2e3)},t.document.body.appendChild(l),c=setTimeout(function(){a("timeout")},15e3),u=r.unloadAdd(s),{post:function(t,e){o("post",t,e),setTimeout(function(){try{l&&l.contentWindow&&l.contentWindow.postMessage(t,e)}catch(t){}},0)},cleanup:s,loaded:i}},createHtmlfile:function(e,i){function s(){clearTimeout(u),f.onerror=null}function a(){d&&(s(),r.unloadDel(l),f.parentNode.removeChild(f),f=d=null,CollectGarbage())}function c(t){o("onerror",t),d&&(a(),i(t))}var u,l,f,h=["Active"].concat("Object").join("X"),d=new t[h]("htmlfile");d.open(),d.write('<html><script>document.domain="'+t.document.domain+'";<\/script></html>'),d.close(),d.parentWindow[n.exports.WPrefix]=t[n.exports.WPrefix];var p=d.createElement("div");return d.body.appendChild(p),f=d.createElement("iframe"),p.appendChild(f),f.src=e,f.onerror=function(){c("onerror")},u=setTimeout(function(){c("timeout")},15e3),l=r.unloadAdd(a),{post:function(t,e){try{setTimeout(function(){f&&f.contentWindow&&f.contentWindow.postMessage(t,e)},0)}catch(t){}},cleanup:a,loaded:s}}},n.exports.iframeEnabled=!1,t.document&&(n.exports.iframeEnabled=("function"==typeof t.postMessage||"object"==s(t.postMessage))&&!i.isKonqueror())}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./browser":44,"./event":46,debug:void 0}],48:[function(e,n,r){(function(t){(function(){"use strict";var e={};["log","debug","warn"].forEach(function(n){var r;try{r=t.console&&t.console[n]&&t.console[n].apply}catch(t){}e[n]=r?function(){return t.console[n].apply(t.console,arguments)}:"log"===n?function(){}:e.log}),n.exports=e}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],49:[function(t,e,n){"use strict";e.exports={isObject:function(t){var e=void 0===t?"undefined":s(t);return"function"==e||"object"==e&&!!t},extend:function(t){if(!this.isObject(t))return t;for(var e,n,r=1,i=arguments.length;r<i;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}},{}],50:[function(t,e,n){"use strict";var r=t("crypto"),i="abcdefghijklmnopqrstuvwxyz012345";e.exports={string:function(t){for(var e=i.length,n=r.randomBytes(t),o=[],s=0;s<t;s++)o.push(i.substr(n[s]%e,1));return o.join("")},number:function(t){return Math.floor(Math.random()*t)},numberString:function(t){var e=(""+(t-1)).length;return(new Array(e+1).join("0")+this.number(t)).slice(-e)}}},{crypto:43}],51:[function(t,e,n){"use strict";var r=function(){};e.exports=function(t){return{filterToEnabled:function(e,n){var i={main:[],facade:[]};return e?"string"==typeof e&&(e=[e]):e=[],t.forEach(function(t){t&&("websocket"!==t.transportName||!1!==n.websocket?e.length&&-1===e.indexOf(t.transportName)?r("not in 
63whitelist",t.transportName):t.enabled(n)?(r("enabled",t.transportName),i.main.push(t),t.facadeTransport&&i.facade.push(t.facadeTransport)):r("disabled",t.transportName):r("disabled from server","websocket"))}),i}}}},{debug:void 0}],52:[function(t,e,n){"use strict";var r=t("url-parse"),i=function(){};e.exports={getOrigin:function(t){if(!t)return null;var e=new r(t);if("file:"===e.protocol)return null;var n=e.port;return n=n||("https:"===e.protocol?"443":"80"),e.protocol+"//"+e.hostname+":"+n},isOriginEqual:function(t,e){var n=this.getOrigin(t)===this.getOrigin(e);return i("same",t,e,n),n},isSchemeEqual:function(t,e){return t.split(":")[0]===e.split(":")[0]},addPath:function(t,e){var n=t.split("?");return n[0]+e+(n[1]?"?"+n[1]:"")},addQuery:function(t,e){return t+(-1===t.indexOf("?")?"?"+e:"&"+e)},isLoopbackAddr:function(t){return/^127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^\[::1\]$/.test(t)}}},{debug:void 0,"url-parse":57}],53:[function(t,e,n){e.exports="1.6.1"},{}],54:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){var n=function(){};t.super_=e;n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},{}],55:[function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}n.stringify=function(t,e){e=e||"";var n,i,o=[];for(i in"string"!=typeof e&&(e="?"),t)if(r.call(t,i)){if((n=t[i])||null!=n&&!isNaN(n)||(n=""),i=encodeURIComponent(i),n=encodeURIComponent(n),null===i||null===n)continue;o.push(i+"="+n)}return o.length?e+o.join("&"):""},n.parse=function(t){for(var e,n=/([^=?&]+)=?([^&]*)/g,r={};e=n.exec(t);){var o=i(e[1]),s=i(e[2]);null===o||null===s||o in r||(r[o]=s)}return r}},{}],56:[function(t,e,n){"use strict";e.exports=function(t,e){if(e=e.split(":")[0],!(t*=1))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},{}],57:[function(e,n,r){(function(t){(function(){"use strict";var r=e("requires-port"),i=e("querystringify"),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,c=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,f=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,h=/^[a-zA-Z]:/;function d(t){return(t||"").toString().replace(a,"")}var p=[["#","hash"],["?","query"],function(t,e){return b(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],m={hash:1,query:1};function v(e){var n,r=("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}).location||{},i={},o=s(e=e||r);if("blob:"===e.protocol)i=new w(unescape(e.pathname),{});else if("string"==o)for(n in i=new w(e,{}),m)delete i[n];else if("object"==o){for(n in e)n in m||(i[n]=e[n]);void 0===i.slashes&&(i.slashes=u.test(e.href))}return i}function b(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function y(t,e){t=(t=d(t)).replace(c,""),e=e||{};var n,r=f.exec(t),i=r[1]?r[1].toLowerCase():"",o=!!r[2],s=!!r[3],a=0;return o?a=s?(n=r[2]+r[3]+r[4],r[2].length+r[3].length):(n=r[2]+r[4],r[2].length):s?(n=r[3]+r[4],a=r[3].length):n=r[4],"file:"===i?2<=a&&(n=n.slice(2)):b(i)?n=r[4]:i?o&&(n=n.slice(2)):2<=a&&b(e.protocol)&&(n=r[4]),{protocol:i,slashes:o||b(i),slashesCount:a,rest:n}}function w(t,e,n){if(t=(t=d(t)).replace(c,""),!o(this,w))return new w(t,e,n);var a,u,l,f,m,g,_=p.slice(),x=void 0===e?"undefined":s(e),E=this,k=0;for("object"!=x&&"string"!=x&&(n=e,e=null),n&&"function"!=typeof n&&(n=i.parse),a=!(u=y(t||"",e=v(e))).protocol&&!u.slashes,E.slashes=u.slashes||a&&e.slashes,E.protocol=u.protocol||e.protocol||"",t=u.rest,("file:"===u.protocol&&(2!==u.slashesCount||h.test(t))||!u.slashes&&(u.protocol||u.slashesCount<2||!b(E.protocol)))&&(_[3]=[/(.*)/,"pathname"]);k<_.length;k++)"function"!=typeof(f=_[k])?(l=f[0],g=f[1],l!=l?E[g]=t:"string"==typeof l?~(m="@"===l?t.lastIndexOf(l):t.indexOf(l))&&(t="number"==typeof f[2]?(E[g]=t.slice(0,m),t.slice(m+f[2])):(E[g]=t.slice(m),t.slice(0,m))):(m=l.exec(t))&&(E[g]=m[1],t=t.slice(0,m.index)),E[g]=E[g]||a&&f[3]&&e[g]||"",f[4]&&(E[g]=E[g].toLowerCase())):t=f(t,E);n&&(E.query=n(E.query)),a&&e.slashes&&"/"!==E.pathname.charAt(0)&&(""!==E.pathname||""!==e.pathname)&&(E.pathname=function(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),s++):s&&(0===r&&(o=!0),n.splice(r,1),s--);return o&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}(E.pathname,e.pathname)),"/"!==E.pathname.charAt(0)&&b(E.protocol)&&(E.pathname="/"+E.pathname),r(E.port,E.protocol)||(E.host=E.hostname,E.port=""),E.username=E.password="",E.auth&&(~(m=E.auth.indexOf(":"))?(E.username=E.auth.slice(0,m),E.username=encodeURIComponent(decodeURIComponent(E.username)),E.password=E.auth.slice(m+1),E.password=encodeURIComponent(decodeURIComponent(E.password))):E.username=encodeURIComponent(decodeURIComponent(E.auth)),E.auth=E.password?E.username+":"+E.password:E.username),E.origin="file:"!==E.protocol&&b(E.protocol)&&E.host?E.protocol+"//"+E.host:"null",E.href=E.toString()}w.prototype={set:function(t,e,n){var o=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(n||i.parse)(e)),o[t]=e;break;case"port":o[t]=e,r(e,o.protocol)?e&&(o.host=o.hostname+":"+e):(o.host=o.hostname,o[t]="");break;case"hostname":o[t]=e,o.port&&(e+=":"+o.port),o.host=e;break;case"host":o[t]=e,l.test(e)?(e=e.split(":"),o.port=e.pop(),o.hostname=e.join(":")):(o.hostname=e,o.port="");break;case"protocol":o.protocol=e.toLowerCase(),o.slashes=!n;break;case"pathname":case"hash":if(e){var s="pathname"===t?"/":"#";o[t]=e.charAt(0)!==s?s+e:e}else o[t]=e;break;case"username":case"password":o[t]=encodeURIComponent(e);break;case"auth":var a=e.indexOf(":");~a?(o.username=e.slice(0,a),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=e.slice(a+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(e))}for(var c=0;c<p.length;c++){var u=p[c];u[4]&&(o[u[1]]=o[u[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&b(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(t){t&&"function"==typeof t||(t=i.stringify);var e,n=this,r=n.host,o=n.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var a=o+(n.protocol&&n.slashes||b(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&b(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||l.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,(e="object"==s(n.query)?t(n.query):n.query)&&(a+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(a+=n.hash),a}},w.extractProtocol=y,w.location=v,w.trimLeft=d,w.qs=i,n.exports=w}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{querystringify:55,"requires-port":56}]},{},[1])(1)})},
63"urls.js":function(t,e,n){n.export({toSockjsUrl:function(){return o},toWebsocketUrl:function(){return s}});var r;n.link("meteor/meteor",{Meteor:function(t){r=t}},0);function i(t,e,n){if(!e)e="http";if("sockjs"!==n&&t.startsWith("/"))t=r.absoluteUrl(t.substr(1));var i=t.match(/^ddp(i?)\+sockjs:\/\//);var o=t.match(/^http(s?):\/\//);var s;if(i){var a=t.substr(i[0].length);s="i"===i[1]?e:e+"s";var c=a.indexOf("/");var u=-1===c?a:a.substr(0,c);var l=-1===c?"":a.substr(c);u=u.replace(/\*/g,function(){return Math.floor(10*Math.random())});return s+"://"+u+l}if(o){s=o[1]?e+"s":e;var f=t.substr(o[0].length);t=s+"://"+f}if(-1===t.indexOf("://")&&!t.startsWith("/"))t=e+"://"+t;t=r._relativeToSiteRootUrl(t);if(t.endsWith("/"))return t+n;return t+"/"+n}function o(t){return i(t,"http","sockjs")}function s(t){return i(t,"ws","websocket")}}}}}},{extensions:[".js",".json"]});return{}});
64
65Package["core-runtime"].queue("ddp-client",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;Package.check.check;Package.check.Match;Package.random.Random;Package.ejson.EJSON;Package.tracker.Tracker;Package.tracker.Deps;var t=Package.retry.Retry;var n=Package["id-map"].IdMap;var r=Package["callback-hook"].Hook;Package["ddp-common"].DDPCommon;Package.reload.Reload;Package["diff-sequence"].DiffSequence;Package["mongo-id"].MongoID;var o=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var i=Package.promise.Promise;var a=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var s;var u=o({node_modules:{meteor:{"ddp-client":{client:{
65"client.js":function(e,t,n){n.link("../common/namespace.js",{DDP:"DDP"},0);n.link("../common/livedata_connection");n.link("./client_convenience")},
65"client_convenience.js":function(e,n,r){r.export({_calculateDDPUrl:function(){return c}});var o;r.link("meteor/meteor",{Meteor:function(e){o=e}},0);var i;r.link("../common/namespace.js",{DDP:function(e){i=e}},1);var a;r.link("./queue_stub_helpers",{loadAsyncStubHelpers:function(e){a=e}},2);var s=function(e){if(!e)return"";var t=e.startsWith("/")?e:"/".concat(e);return t.endsWith("/")?t:"".concat(t,"/")};var u=function(e,t){var n=function(){if(!e)return"";try{return new URL(e).pathname||"/"}catch(e){return""}}();var r=s(t.ROOT_URL_PATH_PREFIX);if(n&&"/"!==n)return n.startsWith("/")?n:"/".concat(n);if(r)return r;if(n)return n.startsWith("/")?n:"/".concat(n);return"/"};var c=function(e){var t=e.absoluteUrl,n=e.runtimeConfig,r=void 0===n?Object.create(null):n,o=e.browserHost,i=e.browserProtocol;if(r.DDP_DEFAULT_CONNECTION_URL)return r.DDP_DEFAULT_CONNECTION_URL;var a=i||t&&t.split("//")[0];var s=u(t,r);return"".concat(a,"//").concat(o).concat(s)};var l=function(){var e="undefined"!=typeof __meteor_runtime_config__?__meteor_runtime_config__:Object.create(null);return c({absoluteUrl:o.absoluteUrl(),runtimeConfig:e,browserHost:window.location.host,browserProtocol:window.location.protocol})};o.refresh=function(){};var f=l()||"/";var d=new t;function h(e){o._debug(e);if(Package.reload){var t=Package.reload.Reload._migrationData("livedata")||Object.create(null);var n=t.DDPVersionNegotiationFailures||0;++n;Package.reload.Reload._onMigrate("livedata",function(){return[true,{DDPVersionNegotiationFailures:n}]});d.retryLater(n,function(){Package.reload.Reload._reload({immediateMigration:true})})}}a();o.connection=i.connect(f,{onDDPVersionNegotiationFailure:h});["subscribe","methods","isAsyncCall","call","callAsync","apply","applyAsync","status","reconnect","disconnect"].forEach(function(e){o[e]=o.connection[e].bind(o.connection)})},
65"queue_stub_helpers.js":function(t,n,r){r.export({loadAsyncStubHelpers:function(){return h}});var o;r.link("../common/namespace.js",{DDP:function(e){o=e}},0);var a;r.link("../common/livedata_connection",{Connection:function(e){a=e}},1);function s(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){s(e,t,n[t])})}return e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function l(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else c(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}var f=0;var d=i.resolve();var h=function(){var t=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f+=1;var r;var o;var a=new i(function(e,t){r=e;o=t});d=d.finally(function(){var e;t(r,o);return null==(e=a.stubPromise)?void 0:e.catch(function(){})});a.catch(function(){}).finally(function(){f-=1;if(0===f)e.connection._maybeMigrate()});a.stubPromise=n.stubPromise;a.serverPromise=n.serverPromise;return a};var n=a.prototype._readyToMigrate;a.prototype._readyToMigrate=function(){if(f>0)return false;return n.apply(this,arguments)};var r=null;var s=a.prototype.applyAsync;a.prototype.applyAsync=function(){var n=this;var a=arguments;var u=a[0];if(r){o._CurrentMethodInvocation._set(r);r=null}var c=o._CurrentMethodInvocation.get();var l=null==c?void 0:c.isSimulation;var f=null==c?void 0:c._isFromCallAsync;if(e.connection._getIsSimulation({isFromCallAsync:f,alreadyInSimulation:l}))return s.apply(this,a);var d;var h;var v=new i(function(e){return d=e});var _=new i(function(e){return h=e});return t(function(t,r){var o=false;e._setImmediate(function(){var e=s.apply(n,a);d(e.stubPromise);h(e.serverPromise);e.stubPromise.catch(function(){}).finally(function(){o=true});e.then(function(e){t(e)}).catch(function(e){r(e)});_.catch(function(){})});e._setImmediate(function(){if(!o)console.warn("Method stub (".concat(u,") took too long and could cause unexpected problems. Learn more at https://v3-migration-docs.meteor.com/breaking-changes/call-x-callAsync.html#considerations-for-effective-use-of-meteor-callasync"))})},{stubPromise:v,serverPromise:_})};var c=a.prototype.apply;a.prototype.apply=function(e,n,r,o){var i=this;if(this._stream._neverQueued)return c.apply(this,arguments);if(!o&&"function"==typeof r){o=r;r=void 0}var a=c.call(this,e,n,l(u({},r),{_returnMethodInvoker:true}),o),s=a.methodInvoker,f=a.result;if(s)t(function(e){i._addOutstandingMethod(s,r);e()});return f};var h=false;var v=a.prototype.subscribe;a.prototype.subscribe=function(){if(this._stream._neverQueued)return v.apply(this,arguments);h=true;try{return v.apply(this,arguments)}finally{h=false}};var _=a.prototype._send;a.prototype._send=function(e,n){var r=this;if(this._stream._neverQueued)return _.apply(this,arguments);if(!h&&!n)return _.call(this,e);h=false;t(function(t){try{_.call(r,e)}finally{t()}})};var p=a.prototype._sendOutstandingMethodBlocksMessages;a.prototype._sendOutstandingMethodBlocksMessages=function(){var e=this,n=arguments;if(this._stream._neverQueued)return p.apply(this,arguments);t(function(t){try{p.apply(e,n)}finally{t()}})}}}},common:{
65"connection_stream_handlers.js":function(e,t,n){n.export({ConnectionStreamHandlers:function(){return y}});var r;n.link("meteor/ddp-common",{DDPCommon:function(e){r=e}},0);var o;n.link("meteor/meteor",{Meteor:function(e){o=e}},1);function s(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){if(Array.isArray(e))return e}function c(e,t,n,r,o,a,s){try{var u=e[a](s);var c=u.value}catch(e){n(e);return}if(u.done)t(c);else i.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new i(function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)})}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function h(e,t,n){if(t)d(e.prototype,t);if(n)d(e,n);return e}function v(e,t){var n=null==e?null:void 0!==a&&e[a.iterator]||e["@@iterator"];if(null==n)return;var r=[];var o=true;var i=false;var s,u;try{for(n=n.call(e);!(o=(s=n.next()).done);o=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=true;u=e}finally{try{if(!o&&null!=n["return"])n["return"]()}finally{if(i)throw u}}return r}function _(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){return u(e)||v(e,t)||b(e,t)||_()}function b(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}function m(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=u(0),s["throw"]=u(1),s["return"]=u(2),"function"==typeof a&&(s[a.iterator]=function(){return this}),s;function u(e){return function(t){return c([e,t])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[2&a[0],o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var y=function(){"use strict";function e(t){f(this,e);this._connection=t}h(e,[{key:"onMessage",value:function(e){return l(function(){var t;return m(this,function(n){switch(n.label){case 0:try{t=r.parseDDP(e)}catch(e){o._debug("Exception while parsing DDP",e);return[2]}if(this._connection._heartbeat)this._connection._heartbeat.messageReceived();if(null===t||!t.msg){if(!t||!t.testMessageOnConnect){if(t&&1===Object.keys(t).length&&t.server_id)return[2];o._debug("discarding invalid livedata message",t)}return[2]}if(!this._connection._ignoredMsgsForSessionOutOfDateCheck.includes(t.msg))this._connection._receivedCount++;if("connected"===t.msg)this._connection._version=this._connection._versionSuggestion;return[4,this._routeMessage(t)];case 1:n.sent();return[2]}})}).call(this)}},{key:"_routeMessage",value:function(e){return l(function(){var t;return m(this,function(n){switch(n.label){case 0:t=e.msg;switch(t){case"connected":return[3,1];case"failed":return[3,3];case"ping":return[3,5];case"pong":return[3,6];case"added":return[3,7];case"changed":return[3,7];case"removed":return[3,7];case"ready":return[3,7];case"updated":return[3,7];case"nosub":return[3,9];case"result":return[3,11];case"error":return[3,13]}return[3,14];case 1:return[4,this._connection._livedata_connected(e)];case 2:n.sent();this._connection.options.onConnected();return[3,15];case 3:return[4,this._handleFailedMessage(e)];case 4:n.sent();return[3,15];case 5:if(this._connection.options.respondToPings)this._connection._send({msg:"pong",id:e.id});return[3,15];case 6:return[3,15];case 7:return[4,this._connection._livedata_data(e)];case 8:n.sent();return[3,15];case 9:return[4,this._connection._livedata_nosub(e)];case 10:n.sent();return[3,15];case 11:return[4,this._connection._livedata_result(e)];case 12:n.sent();return[3,15];case 13:this._connection._livedata_error(e);return[3,15];case 14:o._debug("discarding unknown livedata message type",e);n.label=15;case 15:return[2]}})}).call(this)}},{key:"_handleFailedMessage",value:function(e){if(this._connection._supportedDDPVersions.indexOf(e.version)>=0){this._connection._versionSuggestion=e.version;this._connection._stream.reconnect({_force:true})}else{var t="DDP version negotiation failed; server requested version "+e.version;this._connection._stream.disconnect({_permanent:true,_error:t});this._connection.options.onDDPVersionNegotiationFailure(t)}}},{key:"onReset",value:function(){var e=this._buildConnectMessage();this._connection._send(e);this._handleOutstandingMethodsOnReset();this._connection._callOnReconnectAndSendAppropriateOutstandingMethods();this._resendSubscriptions();this._connection._flushMessagesQueuedUntilReconnect()}}
65,{key:"_buildConnectMessage",value:function(){var e={msg:"connect"};if(this._connection._lastSessionId){e.session=this._connection._lastSessionId;e.receivedCount=this._connection._receivedCount}e.version=this._connection._versionSuggestion||this._connection._supportedDDPVersions[0];this._connection._versionSuggestion=e.version;e.support=this._connection._supportedDDPVersions;return e}},{key:"_handleOutstandingMethodsOnReset",value:function(){var e=this._connection._outstandingMethodBlocks;if(0===e.length)return;var t=e[0].methods;e[0].methods=t.filter(function(e){if(e.sentMessage&&e.noRetry)e.receiveResult(new o.Error("invocation-failed","Method invocation might have failed due to dropped connection. Failing because `noRetry` option was passed to Meteor.apply."));return!(e.sentMessage&&e.noRetry)});if(e.length>0&&0===e[0].methods.length)e.shift();Object.values(this._connection._methodInvokers).forEach(function(e){e.sentMessage=false})}},{key:"_resendSubscriptions",value:function(){var e=this;Object.entries(this._connection._subscriptions).forEach(function(t){var n=p(t,2),r=n[0],o=n[1];e._connection._sendQueued({msg:"sub",id:r,name:o.name,params:o.params})})}}]);return e}()},
65"document_processors.js":function(e,t,n){n.export({DocumentProcessors:function(){return k}});var r;n.link("meteor/mongo-id",{MongoID:function(e){r=e}},0);var o;n.link("meteor/diff-sequence",{DiffSequence:function(e){o=e}},1);var s;n.link("meteor/ddp-common/utils",{hasOwn:function(e){s=e}},2);var u;n.link("meteor/ddp-common/utils",{isEmpty:function(e){u=e}},3);function c(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){if(Array.isArray(e))return c(e)}function f(e,t,n,r,o,a,s){try{var u=e[a](s);var c=u.value}catch(e){n(e);return}if(u.done)t(c);else i.resolve(c).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new i(function(r,o){var i=e.apply(t,n);function a(e){f(i,r,o,a,s,"next",e)}function s(e){f(i,r,o,a,s,"throw",e)}a(void 0)})}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function _(e,t,n){if(t)v(e.prototype,t);if(n)v(e,n);return e}function p(e){if(void 0!==a&&null!=e[a.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e){return l(e)||p(e)||y(e)||b()}function y(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}function g(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=u(0),s["throw"]=u(1),s["return"]=u(2),"function"==typeof a&&(s[a.iterator]=function(){return this}),s;function u(e){return function(t){return c([e,t])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[2&a[0],o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var k=function(){"use strict";function e(t){h(this,e);this._connection=t}_(e,[{key:"_process_added",value:function(e,t){return d(function(){var n,o,i,a,s;return g(this,function(u){switch(u.label){case 0:n=this._connection;o=r.idParse(e.id);i=n._getServerDoc(e.collection,o);if(!i)return[3,4];a=void 0!==i.document;i.document=e.fields||Object.create(null);i.document._id=o;if(!n._resetStores)return[3,2];return[4,n._stores[e.collection].getDoc(e.id)];case 1:s=u.sent();if(void 0!==s)e.fields=s;n._pushUpdate(t,e.collection,e);return[3,3];case 2:if(a)throw new Error("Server sent add for existing id: "+e.id);u.label=3;case 3:return[3,5];case 4:n._pushUpdate(t,e.collection,e);u.label=5;case 5:return[2]}})}).call(this)}},{key:"_process_changed",value:function(e,t){var n=this._connection;var i=n._getServerDoc(e.collection,r.idParse(e.id));if(i){if(void 0===i.document)throw new Error("Server sent changed for nonexisting id: "+e.id);o.applyChanges(i.document,e.fields)}else n._pushUpdate(t,e.collection,e)}},{key:"_process_removed",value:function(e,t){var n=this._connection;var o=n._getServerDoc(e.collection,r.idParse(e.id));if(o){if(void 0===o.document)throw new Error("Server sent removed for nonexisting id:"+e.id);o.document=void 0}else n._pushUpdate(t,e.collection,{msg:"removed",collection:e.collection,id:e.id})}},{key:"_process_ready",value:function(e,t){var n=this._connection;
65e.subs.forEach(function(e){n._runWhenAllServerDocsAreFlushed(function(){var t=n._subscriptions[e];if(!t)return;if(t.ready)return;t.ready=true;t.readyCallback&&t.readyCallback();t.readyDeps.changed()})})}},{key:"_process_updated",value:function(e,t){var n=this._connection;e.methods.forEach(function(e){var o;var i=n._documentsWrittenByStub[e]||{};Object.values(i).forEach(function(o){var i=n._getServerDoc(o.collection,o.id);if(!i)throw new Error("Lost serverDoc for "+JSON.stringify(o));if(!i.writtenByStubs[e])throw new Error("Doc "+JSON.stringify(o)+" not written by method "+e);delete i.writtenByStubs[e];if(u(i.writtenByStubs)){n._pushUpdate(t,o.collection,{msg:"replace",id:r.idStringify(o.id),replace:i.document});i.flushCallbacks.forEach(function(e){e()});n._serverDocuments[o.collection].remove(o.id)}});delete n._documentsWrittenByStub[e];var a=n._methodInvokers[e];if(!a)throw new Error("No callback invoker for method "+e);n._runWhenAllServerDocsAreFlushed(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(o=a).dataVisible.apply(o,m(t))})})}},{key:"_pushUpdate",value:function(e,t,n){if(!s.call(e,t))e[t]=[];e[t].push(n)}},{key:"_getServerDoc",value:function(e,t){var n=this._connection;if(!s.call(n._serverDocuments,e))return null;var r=n._serverDocuments[e];return r.get(t)||null}}]);return e}()},
65"livedata_connection.js":function(e,t,n){n.export({Connection:function(){return q}});var r;n.link("meteor/meteor",{Meteor:function(e){r=e}},0);var o;n.link("meteor/ddp-common",{DDPCommon:function(e){o=e}},1);var s;n.link("meteor/tracker",{Tracker:function(e){s=e}},2);var u;n.link("meteor/ejson",{EJSON:function(e){u=e}},3);var c;n.link("meteor/random",{Random:function(e){c=e}},4);n.link("meteor/mongo-id",{MongoID:function(e){}},5);var l;n.link("./namespace.js",{DDP:function(e){l=e}},6);var f;n.link("./method_invoker",{MethodInvoker:function(e){f=e}},7);var d,h,v,_,p;n.link("meteor/ddp-common/utils",{hasOwn:function(e){d=e},slice:function(e){h=e},keys:function(e){v=e},isEmpty:function(e){_=e},last:function(e){p=e}},8);var b;n.link("./connection_stream_handlers",{ConnectionStreamHandlers:function(e){b=e}},9);var m;n.link("./mongo_id_map",{MongoIDMap:function(e){m=e}},10);var y;n.link("./message_processors",{MessageProcessors:function(e){y=e}},11);var g;n.link("./document_processors",{DocumentProcessors:function(e){g=e}},12);function k(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){if(Array.isArray(e))return e}function O(e){if(Array.isArray(e))return k(e)}function S(e,t,n,r,o,a,s){try{var u=e[a](s);var c=u.value}catch(e){n(e);return}if(u.done)t(c);else i.resolve(c).then(r,o)}function P(e){return function(){var t=this,n=arguments;return new i(function(r,o){var i=e.apply(t,n);function a(e){S(i,r,o,a,s,"next",e)}function s(e){S(i,r,o,a,s,"throw",e)}a(void 0)})}}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function I(e,t,n){if(t)D(e.prototype,t);if(n)D(e,n);return e}function j(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function C(e){if(void 0!==a&&null!=e[a.iterator]||null!=e["@@iterator"])return Array.from(e)}function A(e,t){var n=null==e?null:void 0!==a&&e[a.iterator]||e["@@iterator"];if(null==n)return;var r=[];var o=true;var i=false;var s,u;try{for(n=n.call(e);!(o=(s=n.next()).done);o=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=true;u=e}finally{try{if(!o&&null!=n["return"])n["return"]()}finally{if(i)throw u}}return r}function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){j(e,t,n[t])})}return e}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function F(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else B(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}function x(e,t){if(null==e)return{};var n=W(e,t);var r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){r=i[o];if(!(t.indexOf(r)>=0)){if(Object.prototype.propertyIsEnumerable.call(e,r))n[r]=e[r]}}}return n}function W(e,t){if(null==e)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(!(t.indexOf(o)>=0))n[o]=e[o]}return n}function T(e,t){return w(e)||A(e,t)||Q(e,t)||E()}function V(e){return O(e)||C(e)||Q(e)||R()}function H(e){return e&&void 0!==a&&e.constructor===a?"symbol":typeof e}function Q(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}function N(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=u(0),s["throw"]=u(1),s["return"]=u(2),"function"==typeof a&&(s[a.iterator]=function(){return this}),s;function u(e){return function(t){return c([e,t])}}function c(a){if(n)throw new TypeError("Generator is already executing.");
65while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[2&a[0],o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var q=function(){"use strict";function t(n,i){var a=this;M(this,t);var u=this;this.options=i=U({onConnected:function(){},onDDPVersionNegotiationFailure:function(e){r._debug(e)},heartbeatInterval:17500,heartbeatTimeout:15e3,npmFayeOptions:Object.create(null),reloadWithOutstanding:false,supportedDDPVersions:o.SUPPORTED_DDP_VERSIONS,retry:true,respondToPings:true,bufferedWritesInterval:5,bufferedWritesMaxAge:500},i);u.onReconnect=null;if((void 0===n?"undefined":H(n))==="object")u._stream=n;else{var c=e("meteor/socket-stream-client").ClientStream;u._stream=new c(n,{retry:i.retry,ConnectionError:l.ConnectionError,headers:i.headers,_sockjsOptions:i._sockjsOptions,_dontPrintErrors:i._dontPrintErrors,connectTimeoutMs:i.connectTimeoutMs,npmFayeOptions:i.npmFayeOptions})}u._lastSessionId=null;u._receivedCount=0;u._versionSuggestion=null;u._version=null;u._stores=Object.create(null);u._methodHandlers=Object.create(null);u._nextMethodId=1;u._supportedDDPVersions=i.supportedDDPVersions;u._heartbeatInterval=i.heartbeatInterval;u._heartbeatTimeout=i.heartbeatTimeout;u._ignoredMsgsForSessionOutOfDateCheck=["ping","pong"];u._methodInvokers=Object.create(null);u._outstandingMethodBlocks=[];u._documentsWrittenByStub={};u._serverDocuments={};u._afterUpdateCallbacks=[];u._messagesBufferedUntilQuiescence=[];u._methodsBlockingQuiescence={};u._subsBeingRevived={};u._resetStores=false;u._updatesForUnknownStores={};u._retryMigrate=null;u._bufferedWrites={};u._bufferedWritesFlushAt=null;u._bufferedWritesFlushHandle=null;u._bufferedWritesInterval=i.bufferedWritesInterval;u._bufferedWritesMaxAge=i.bufferedWritesMaxAge;u._subscriptions={};u._userId=null;u._userIdDeps=new s.Dependency;if(r.isClient&&Package.reload&&!i.reloadWithOutstanding)Package.reload.Reload._onMigrate(function(e){if(u._readyToMigrate())return[true];u._retryMigrate=e;return[false]});u._messagesQueuedUntilReconnect=[];this._streamHandlers=new b(this);var f=function(){if(a._heartbeat){a._heartbeat.stop();a._heartbeat=null}};if(r.isServer){this._stream.on("message",r.bindEnvironment(function(e){return a._streamHandlers.onMessage(e)},"handling DDP message"));this._stream.on("reset",r.bindEnvironment(function(){return a._streamHandlers.onReset()},"handling DDP reset"));this._stream.on("disconnect",r.bindEnvironment(f,"handling DDP disconnect"))}else{this._stream.on("message",function(e){return a._streamHandlers.onMessage(e)});this._stream.on("reset",function(){return a._streamHandlers.onReset()});this._stream.on("disconnect",f)}this._messageProcessors=new y(this);this._livedata_connected=function(e){return a._messageProcessors._livedata_connected(e)};this._livedata_data=function(e){return a._messageProcessors._livedata_data(e)};this._livedata_nosub=function(e){return a._messageProcessors._livedata_nosub(e)};this._livedata_result=function(e){return a._messageProcessors._livedata_result(e)};this._livedata_error=function(e){return a._messageProcessors._livedata_error(e)};this._documentProcessors=new g(this);this._process_added=function(e,t){return a._documentProcessors._process_added(e,t)};this._process_changed=function(e,t){return a._documentProcessors._process_changed(e,t)};this._process_removed=function(e,t){return a._documentProcessors._process_removed(e,t)};this._process_ready=function(e,t){return a._documentProcessors._process_ready(e,t)};this._process_updated=function(e,t){return a._documentProcessors._process_updated(e,t)};this._pushUpdate=function(e,t,n){return a._documentProcessors._pushUpdate(e,t,n)};this._getServerDoc=function(e,t){return a._documentProcessors._getServerDoc(e,t)}}
65I(t,[{key:"createStoreMethods",value:function(e,t){var n=this;if(e in n._stores)return false;var r=Object.create(null);var o=["update","beginUpdate","endUpdate","saveOriginals","retrieveOriginals","getDoc","_getCollection"];o.forEach(function(e){r[e]=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(t[e]){var i;return(i=t)[e].apply(i,V(r))}}});n._stores[e]=r;return r}},{key:"registerStoreClient",value:function(e,t){var n=this;var r=n.createStoreMethods(e,t);var o=n._updatesForUnknownStores[e];if(Array.isArray(o)){r.beginUpdate(o.length,false);o.forEach(function(e){r.update(e)});r.endUpdate();delete n._updatesForUnknownStores[e]}return true}},{key:"registerStoreServer",value:function(e,t){return P(function(){var n,r,o,i,s,u,c,l,f,d;return N(this,function(h){switch(h.label){case 0:n=this;r=n.createStoreMethods(e,t);o=n._updatesForUnknownStores[e];if(!Array.isArray(o))return[3,11];return[4,r.beginUpdate(o.length,false)];case 1:h.sent();i=true,s=false,u=void 0;h.label=2;case 2:h.trys.push([2,7,8,9]);c=o[a.iterator]();h.label=3;case 3:if(!!(i=(l=c.next()).done))return[3,6];f=l.value;return[4,r.update(f)];case 4:h.sent();h.label=5;case 5:i=true;return[3,3];case 6:return[3,9];case 7:d=h.sent();s=true;u=d;return[3,9];case 8:try{if(!i&&null!=c.return)c.return()}finally{if(s)throw u}return[7];case 9:return[4,r.endUpdate()];case 10:h.sent();delete n._updatesForUnknownStores[e];h.label=11;case 11:return[2,true]}})}).call(this)}},{key:"subscribe",value:function(e){var t=this;var n=h.call(arguments,1);var r=Object.create(null);if(n.length){var o=n[n.length-1];if("function"==typeof o)r.onReady=n.pop();else if(o&&[o.onReady,o.onError,o.onStop].some(function(e){return"function"==typeof e}))r=n.pop()}var i=Object.values(t._subscriptions).find(function(t){return t.inactive&&t.name===e&&u.equals(t.params,n)});var a;if(i){a=i.id;i.inactive=false;if(r.onReady)if(i.ready)r.onReady();else i.readyCallback=r.onReady;if(r.onError)i.errorCallback=r.onError;if(r.onStop)i.stopCallback=r.onStop}else{a=c.id();t._subscriptions[a]={id:a,name:e,params:u.clone(n),inactive:false,ready:false,readyDeps:new s.Dependency,readyCallback:r.onReady,errorCallback:r.onError,stopCallback:r.onStop,connection:t,remove:function(){delete this.connection._subscriptions[this.id];this.ready&&this.readyDeps.changed()},stop:function(){this.connection._sendQueued({msg:"unsub",id:a});this.remove();if(this.stopCallback)this.stopCallback()}};t._send({msg:"sub",id:a,name:e,params:n})}var l={stop:function(){if(!d.call(t._subscriptions,a))return;t._subscriptions[a].stop()},ready:function(){if(!d.call(t._subscriptions,a))return false;var e=t._subscriptions[a];e.readyDeps.depend();return e.ready},subscriptionId:a};if(s.active)s.onInvalidate(function(e){if(d.call(t._subscriptions,a))t._subscriptions[a].inactive=true;s.afterFlush(function(){if(d.call(t._subscriptions,a)&&t._subscriptions[a].inactive)l.stop()})});return l}},{key:"isAsyncCall",value:function(){return l._CurrentMethodInvocation._isCallAsyncMethodRunning()}},{key:"methods",value:function(e){var t=this;Object.entries(e).forEach(function(e){var n=T(e,2),r=n[0],o=n[1];if("function"!=typeof o)throw new Error("Method '"+r+"' must be a function");if(t._methodHandlers[r])throw new Error("A method named '"+r+"' is already defined");t._methodHandlers[r]=o})}},{key:"_getIsSimulation",value:function(e){var t=e.isFromCallAsync,n=e.alreadyInSimulation;if(!t)return n;return n&&l._CurrentMethodInvocation._isCallAsyncMethodRunning()}},{key:"call",value:function(e){var t=h.call(arguments,1);var n;if(t.length&&"function"==typeof t[t.length-1])n=t.pop();return this.apply(e,t,n)}},{key:"callAsync",value:function(e){var t=h.call(arguments,1);if(t.length&&"function"==typeof t[t.length-1])throw new Error("Meteor.callAsync() does not accept a callback. You should 'await' the result, or use .then().");return this.applyAsync(e,t,{returnServerResultPromise:true})}},{key:"apply",value:function(e,t,n,o){var i=this._stubCall(e,u.clone(t)),a=i.stubInvocation,s=i.invocation,c=x(i,["stubInvocation","invocation"]);if(c.hasStub){if(!this._getIsSimulation({alreadyInSimulation:c.alreadyInSimulation,isFromCallAsync:c.isFromCallAsync}))this._saveOriginals();try{c.stubReturnValue=l._CurrentMethodInvocation.withValue(s,a);if(r._isPromise(c.stubReturnValue))r._debug("Method ".concat(e,": Calling a method that has an async method stub with call/apply can lead to unexpected behaviors. Use callAsync/applyAsync instead."))}catch(e){c.exception=e}}return this._apply(e,c,t,n,o)}},{key:"applyAsync",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;var a=this._applyAsyncStubInvocation(e,t,n);var s=this._applyAsync({name:e,args:t,options:n,callback:o,stubPromise:a});if(r.isClient){s.stubPromise=a.then(function(e){if(e.exception)throw e.exception;return e.stubReturnValue});s.serverPromise=new i(function(e,t){return s.then(e).catch(t)})}return s}},{key:"_applyAsyncStubInvocation",value:function(e,t,n){return P(function(){var r,o,i,a,s,c,f;return N(this,function(d){switch(d.label){case 0:r=this._stubCall(e,u.clone(t),n),o=r.stubInvocation,i=r.invocation,a=x(r,["stubInvocation","invocation"]);if(!a.hasStub)return[3,8];if(!this._getIsSimulation({alreadyInSimulation:a.alreadyInSimulation,isFromCallAsync:a.isFromCallAsync}))this._saveOriginals();d.label=1;case 1:d.trys.push([1,7,,8]);s=l._CurrentMethodInvocation._setNewContextAndGetCurrent(i);d.label=2;case 2:d.trys.push([2,4,5,6]);return[4,o()];case 3:a.stubReturnValue=d.sent();return[3,6];case 4:c=d.sent();a.exception=c;return[3,6];case 5:l._CurrentMethodInvocation._set(s);return[7];case 6:return[3,8];case 7:f=d.sent();a.exception=f;return[3,8];case 8:return[2,a]}})}).call(this)}},{key:"_applyAsync",value:function(e){return P(function(e){var t,n,r,o,i,a;return N(this,function(s){switch(s.label){case 0:t=e.name,n=e.args,r=e.options,o=e.callback,i=e.stubPromise;return[4,i];case 1:a=s.sent();return[2,this._apply(t,a,n,r,o)]}})}).apply(this,arguments)}},{key:"_apply",value:function(e,t,n,o,a){var s=this;if(!a&&"function"==typeof o){a=o;o=Object.create(null)}o=o||Object.create(null);if(a)a=r.bindEnvironment(a,"delivering result of invoking '"+e+"'");var c=t.hasStub,l=t.exception,d=t.stubReturnValue,h=t.alreadyInSimulation,v=t.randomSeed;n=u.clone(n);if(this._getIsSimulation({alreadyInSimulation:h,isFromCallAsync:t.isFromCallAsync})){var _;if(a)a(l,d);else{if(l)throw l;_=d}return o._returnMethodInvoker?{result:_}:_}var p=""+s._nextMethodId++;if(c)s._retrieveAndStoreOriginals(p);var b={msg:"method",id:p,method:e,params:n};if(l){if(o.throwStubExceptions)throw l;else if(!l._expectedByTest)r._debug("Exception while simulating the effect of invoking '"+e+"'",l)}var m;if(!a)if(r.isClient&&!o.returnServerResultPromise&&(!o.isFromCallAsync||o.returnStubValue))a=function(t){t&&r._debug("Error invoking Method '"+e+"'",t)};else m=new i(function(e,t){a=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=Array.from(r);var a=i.shift();if(a)return void t(a);e.apply(void 0,V(i))}});if(null!==v.value)b.randomSeed=v.value;var y=new f({methodId:p,callback:a,connection:s,onResultReceived:o.onResultReceived,wait:!!o.wait,message:b,noRetry:!!o.noRetry});var g;g=m?o.returnStubValue?m.then(function(){return d}):m:o.returnStubValue?d:void 0;if(o._returnMethodInvoker)return{methodInvoker:y,result:g};s._addOutstandingMethod(y,o);return g}},{key:"_stubCall",value:function(e,t,n){var i=this;var a=l._CurrentMethodInvocation.get();var s=i._methodHandlers[e];var c=null==a?void 0:a.isSimulation;var f=null==a?void 0:a._isFromCallAsync;var d={value:null};var h={alreadyInSimulation:c,randomSeed:d,isFromCallAsync:f};if(!s)return F(U({},h),{hasStub:false});var v=function(){if(null===d.value)d.value=o.makeRpcSeed(a,e);return d.value};var _=function(e){i.setUserId(e)};var p=new o.MethodInvocation({name:e,isSimulation:true,userId:i.userId(),isFromCallAsync:null==n?void 0:n.isFromCallAsync,setUserId:_,randomSeed:function(){return v()}});var b=function(){if(r.isServer)return r._noYieldsAllowed(function(){return s.apply(
65p,u.clone(t))});return s.apply(p,u.clone(t))};return F(U({},h),{hasStub:true,stubInvocation:b,invocation:p})}},{key:"_saveOriginals",value:function(){if(!this._waitingForQuiescence())this._flushBufferedWrites();Object.values(this._stores).forEach(function(e){e.saveOriginals()})}},{key:"_retrieveAndStoreOriginals",value:function(e){var t=this;if(t._documentsWrittenByStub[e])throw new Error("Duplicate methodId in _retrieveAndStoreOriginals");var n=[];Object.entries(t._stores).forEach(function(r){var o=T(r,2),i=o[0],a=o[1];var s=a.retrieveOriginals();if(!s)return;s.forEach(function(r,o){n.push({collection:i,id:o});if(!d.call(t._serverDocuments,i))t._serverDocuments[i]=new m;var a=t._serverDocuments[i].setDefault(o,Object.create(null));if(a.writtenByStubs)a.writtenByStubs[e]=true;else{a.document=r;a.flushCallbacks=[];a.writtenByStubs=Object.create(null);a.writtenByStubs[e]=true}})});if(!_(n))t._documentsWrittenByStub[e]=n}},{key:"_unsubscribeAll",value:function(){Object.values(this._subscriptions).forEach(function(e){if("meteor_autoupdate_clientVersions"!==e.name)e.stop()})}},{key:"_send",value:function(e){this._stream.send(o.stringifyDDP(e))}},{key:"_sendQueued",value:function(e){if("connected"===this._stream.status().status)this._send(e,true);else this._messagesQueuedUntilReconnect.push(e)}},{key:"_flushMessagesQueuedUntilReconnect",value:function(){var e=this;var t=this._messagesQueuedUntilReconnect;this._messagesQueuedUntilReconnect=[];t.forEach(function(t){return e._send(t,true)})}},{key:"_lostConnection",value:function(e){this._stream._lostConnection(e)}},{key:"status",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;return(r=this._stream).status.apply(r,V(t))}},{key:"reconnect",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;return(r=this._stream).reconnect.apply(r,V(t))}},{key:"disconnect",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;this._send({msg:"disconnect"});return(r=this._stream).disconnect.apply(r,V(t))}},{key:"close",value:function(){l._removeConnection(this);return this.disconnect({_permanent:true})}},{key:"userId",value:function(){if(this._userIdDeps)this._userIdDeps.depend();return this._userId}},{key:"setUserId",value:function(e){if(this._userId===e)return;this._userId=e;if(this._userIdDeps)this._userIdDeps.changed()}},{key:"_waitingForQuiescence",value:function(){return!_(this._subsBeingRevived)||!_(this._methodsBlockingQuiescence)}},{key:"_anyMethodsAreOutstanding",value:function(){var e=this._methodInvokers;return Object.values(e).some(function(e){return!!e.sentMessage})}},{key:"_prepareBuffersToFlush",value:function(){var e=this;if(e._bufferedWritesFlushHandle){clearTimeout(e._bufferedWritesFlushHandle);e._bufferedWritesFlushHandle=null}e._bufferedWritesFlushAt=null;var t=e._bufferedWrites;e._bufferedWrites=Object.create(null);return t}},{key:"_performWritesServer",value:function(e){return P(function(){var t,n,r,o,s,u,c,l,f,d,h,v,p,b,m,y,g,k,w,O,S,P,M,D,I,j,C,A,E,R,U,B,F,x,W,H;return N(this,function(Q){switch(Q.label){case 0:t=this;if(!(t._resetStores||!_(e)))return[3,36];n=true,r=false,o=void 0;Q.label=1;case 1:Q.trys.push([1,6,7,8]);s=Object.entries(t._stores)[a.iterator]();Q.label=2;case 2:if(!!(n=(u=s.next()).done))return[3,5];c=T(u.value,2),l=c[0],f=c[1];return[4,f.beginUpdate((null==(d=e[l])?void 0:d.length)||0,t._resetStores)];case 3:Q.sent();Q.label=4;case 4:n=true;return[3,2];case 5:return[3,8];case 6:h=Q.sent();r=true;o=h;return[3,8];case 7:try{if(!n&&null!=s.return)s.return()}finally{if(r)throw o}return[7];case 8:t._resetStores=false;v=true,p=false,b=void 0;Q.label=9;case 9:Q.trys.push([9,26,27,28]);m=Object.entries(e)[a.iterator]();Q.label=10;case 10:if(!!(v=(y=m.next()).done))return[3,25];g=T(y.value,2),k=g[0],w=g[1];O=t._stores[k];if(!O)return[3,23];S=100;P=0;Q.label=11;case 11:if(!(P<w.length))return[3,22];M=w.slice(P,Math.min(P+S,w.length));D=true,I=false,j=void 0;Q.label=12;case 12:Q.trys.push([12,17,18,19]);C=M[a.iterator]();Q.label=13;
65case 13:if(!!(D=(A=C.next()).done))return[3,16];E=A.value;return[4,O.update(E)];case 14:Q.sent();Q.label=15;case 15:D=true;return[3,13];case 16:return[3,19];case 17:h=Q.sent();I=true;j=h;return[3,19];case 18:try{if(!D&&null!=C.return)C.return()}finally{if(I)throw j}return[7];case 19:return[4,new i(function(e){return process.nextTick(e)})];case 20:Q.sent();Q.label=21;case 21:P+=S;return[3,11];case 22:return[3,24];case 23:t._updatesForUnknownStores[k]=t._updatesForUnknownStores[k]||[];(R=t._updatesForUnknownStores[k]).push.apply(R,V(w));Q.label=24;case 24:v=true;return[3,10];case 25:return[3,28];case 26:h=Q.sent();p=true;b=h;return[3,28];case 27:try{if(!v&&null!=m.return)m.return()}finally{if(p)throw b}return[7];case 28:U=true,B=false,F=void 0;Q.label=29;case 29:Q.trys.push([29,34,35,36]);x=Object.values(t._stores)[a.iterator]();Q.label=30;case 30:if(!!(U=(W=x.next()).done))return[3,33];H=W.value;return[4,H.endUpdate()];case 31:Q.sent();Q.label=32;case 32:U=true;return[3,30];case 33:return[3,36];case 34:h=Q.sent();B=true;F=h;return[3,36];case 35:try{if(!U&&null!=x.return)x.return()}finally{if(B)throw F}return[7];case 36:t._runAfterUpdateCallbacks();return[2]}})}).call(this)}},{key:"_performWritesClient",value:function(e){var t=this;if(t._resetStores||!_(e)){Object.entries(t._stores).forEach(function(n){var r=T(n,2),o=r[0],i=r[1];var a;i.beginUpdate((null==(a=e[o])?void 0:a.length)||0,t._resetStores)});t._resetStores=false;Object.entries(e).forEach(function(e){var n=T(e,2),r=n[0],o=n[1];var i=t._stores[r];if(i)o.forEach(function(e){return i.update(e)});else{var a;t._updatesForUnknownStores[r]=t._updatesForUnknownStores[r]||[];(a=t._updatesForUnknownStores[r]).push.apply(a,V(o))}});Object.values(t._stores).forEach(function(e){return e.endUpdate()})}t._runAfterUpdateCallbacks()}},{key:"_flushBufferedWrites",value:function(){return P(function(){var e,t;return N(this,function(n){e=this;t=e._prepareBuffersToFlush();return[2,r.isClient?e._performWritesClient(t):e._performWritesServer(t)]})}).call(this)}},{key:"_runAfterUpdateCallbacks",value:function(){var e=this;var t=e._afterUpdateCallbacks;e._afterUpdateCallbacks=[];t.forEach(function(e){e()})}},{key:"_runWhenAllServerDocsAreFlushed",value:function(e){var t=this;var n=function(){t._afterUpdateCallbacks.push(e)};var r=0;var o=function(){--r;if(0===r)n()};Object.values(t._serverDocuments).forEach(function(e){e.forEach(function(e){var n=v(e.writtenByStubs).some(function(e){var n=t._methodInvokers[e];return n&&n.sentMessage});if(n){++r;e.flushCallbacks.push(o)}})});if(0===r)n()}},{key:"_addOutstandingMethod",value:function(e,t){if(null==t?void 0:t.wait)this._outstandingMethodBlocks.push({wait:true,methods:[e]});else{if(_(this._outstandingMethodBlocks)||p(this._outstandingMethodBlocks).wait)this._outstandingMethodBlocks.push({wait:false,methods:[]});p(this._outstandingMethodBlocks).methods.push(e)}if(1===this._outstandingMethodBlocks.length)e.sendMessage()}},{key:"_outstandingMethodFinished",value:function(){var e=this;if(e._anyMethodsAreOutstanding())return;if(!_(e._outstandingMethodBlocks)){var t=e._outstandingMethodBlocks.shift();if(!_(t.methods))throw new Error("No methods outstanding but nonempty block: "+JSON.stringify(t));if(!_(e._outstandingMethodBlocks))e._sendOutstandingMethods()}e._maybeMigrate()}},{key:"_sendOutstandingMethods",value:function(){var e=this;if(_(e._outstandingMethodBlocks))return;e._outstandingMethodBlocks[0].methods.forEach(function(e){e.sendMessage()})}},{key:"_sendOutstandingMethodBlocksMessages",value:function(e){var t;var n=this;if(_(e))return;if(_(n._outstandingMethodBlocks)){n._outstandingMethodBlocks=e;n._sendOutstandingMethods();return}if(!p(n._outstandingMethodBlocks).wait&&!e[0].wait){e[0].methods.forEach(function(e){p(n._outstandingMethodBlocks).methods.push(e);if(1===n._outstandingMethodBlocks.length)e.sendMessage()});e.shift()}(t=n._outstandingMethodBlocks).push.apply(t,V(e))}},{key:"_callOnReconnectAndSendAppropriateOutstandingMethods",value:function(){var e=this;var t=e._outstandingMethodBlocks;e._outstandingMethodBlocks=[];var n=[];var r=function(e){try{var t=e();if(t&&"function"==typeof t.then)n.push(t)}catch(e){n.push(i.reject(e))}};if(e.onReconnect)r(function(){return e.onReconnect()});l._reconnectHook.forEach(function(t){r(function(){return t(e)});return true});var o=function(){return e._sendOutstandingMethodBlocksMessages(t)};if(n.length>0)i.allSettled(n).then(o);else o()}},{key:"_readyToMigrate",value:function(){return _(this._methodInvokers)}},{key:"_maybeMigrate",value:function(){var e=this;if(e._retryMigrate&&e._readyToMigrate()){e._retryMigrate();e._retryMigrate=null}}}]);return t}()},
65"message_processors.js":function(e,t,n){n.export({MessageProcessors:function(){return M}});var r;n.link("meteor/ddp-common",{DDPCommon:function(e){r=e}},0);var o;n.link("meteor/meteor",{Meteor:function(e){o=e}},1);var s;n.link("./namespace.js",{DDP:function(e){s=e}},2);n.link("meteor/ejson",{EJSON:function(e){}},3);var u,c;n.link("meteor/ddp-common/utils",{isEmpty:function(e){u=e},hasOwn:function(e){c=e}},4);function l(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){if(Array.isArray(e))return e}function d(e){if(Array.isArray(e))return l(e)}function h(e,t,n,r,o,a,s){try{var u=e[a](s);var c=u.value}catch(e){n(e);return}if(u.done)t(c);else i.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new i(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,s,"next",e)}function s(e){h(i,r,o,a,s,"throw",e)}a(void 0)})}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function b(e,t,n){if(t)p(e.prototype,t);if(n)p(e,n);return e}function m(e){if(void 0!==a&&null!=e[a.iterator]||null!=e["@@iterator"])return Array.from(e)}function y(e,t){var n=null==e?null:void 0!==a&&e[a.iterator]||e["@@iterator"];if(null==n)return;var r=[];var o=true;var i=false;var s,u;try{for(n=n.call(e);!(o=(s=n.next()).done);o=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=true;u=e}finally{try{if(!o&&null!=n["return"])n["return"]()}finally{if(i)throw u}}return r}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){return f(e)||y(e,t)||S(e,t)||g()}function O(e){return d(e)||m(e)||S(e)||k()}function S(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}function P(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=u(0),s["throw"]=u(1),s["return"]=u(2),"function"==typeof a&&(s[a.iterator]=function(){return this}),s;function u(e){return function(t){return c([e,t])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[2&a[0],o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var M=function(){"use strict";function e(t){_(this,e);this._connection=t}b(e,[{key:"_livedata_connected",value:function(e){return v(function(){var t,n,o,i,u,c,l,f,d,h;return P(this,function(v){switch(v.label){case 0:t=this._connection;if("pre1"!==t._version&&0!==t._heartbeatInterval){t._heartbeat=new r.Heartbeat({heartbeatInterval:t._heartbeatInterval,heartbeatTimeout:t._heartbeatTimeout,onTimeout:function(){t._lostConnection(new s.ConnectionError("DDP heartbeat timed out"))},sendPing:function(){t._send({msg:"ping"})}});t._heartbeat.start()}if(t._lastSessionId)t._resetStores=true;if("string"==typeof e.session){n=t._lastSessionId===e.session;t._lastSessionId=e.session}if(n){t._resetStores=false;return[2]}t._receivedCount=1;t._updatesForUnknownStores=Object.create(null);if(t._resetStores){t._documentsWrittenByStub=Object.create(null);t._serverDocuments=Object.create(null)}t._afterUpdateCallbacks=[];t._subsBeingRevived=Object.create(null);
65Object.entries(t._subscriptions).forEach(function(e){var n=w(e,2),r=n[0],o=n[1];if(o.ready)t._subsBeingRevived[r]=true});t._methodsBlockingQuiescence=Object.create(null);if(t._resetStores){o=t._methodInvokers;Object.keys(o).forEach(function(e){var n=o[e];if(n.gotResult()){var r;t._afterUpdateCallbacks.push(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return(r=n).dataVisible.apply(r,O(t))})}else if(n.sentMessage)t._methodsBlockingQuiescence[n.methodId]=true})}t._messagesBufferedUntilQuiescence=[];if(!!t._waitingForQuiescence())return[3,11];if(!t._resetStores)return[3,10];i=true,u=false,c=void 0;v.label=1;case 1:v.trys.push([1,7,8,9]);l=Object.values(t._stores)[a.iterator]();v.label=2;case 2:if(!!(i=(f=l.next()).done))return[3,6];d=f.value;return[4,d.beginUpdate(0,true)];case 3:v.sent();return[4,d.endUpdate()];case 4:v.sent();v.label=5;case 5:i=true;return[3,2];case 6:return[3,9];case 7:h=v.sent();u=true;c=h;return[3,9];case 8:try{if(!i&&null!=l.return)l.return()}finally{if(u)throw c}return[7];case 9:t._resetStores=false;v.label=10;case 10:t._runAfterUpdateCallbacks();v.label=11;case 11:return[2]}})}).call(this)}},{key:"_livedata_data",value:function(e){return v(function(){var t,n,r,i,s,u,c,l,f,d;return P(this,function(h){switch(h.label){case 0:t=this._connection;if(!t._waitingForQuiescence())return[3,9];t._messagesBufferedUntilQuiescence.push(e);if("nosub"===e.msg)delete t._subsBeingRevived[e.id];if(e.subs)e.subs.forEach(function(e){delete t._subsBeingRevived[e]});if(e.methods)e.methods.forEach(function(e){delete t._methodsBlockingQuiescence[e]});if(t._waitingForQuiescence())return[2];n=t._messagesBufferedUntilQuiescence;r=true,i=false,s=void 0;h.label=1;case 1:h.trys.push([1,6,7,8]);u=Object.values(n)[a.iterator]();h.label=2;case 2:if(!!(r=(c=u.next()).done))return[3,5];l=c.value;return[4,this._processOneDataMessage(l,t._bufferedWrites)];case 3:h.sent();h.label=4;case 4:r=true;return[3,2];case 5:return[3,8];case 6:f=h.sent();i=true;s=f;return[3,8];case 7:try{if(!r&&null!=u.return)u.return()}finally{if(i)throw s}return[7];case 8:t._messagesBufferedUntilQuiescence=[];return[3,11];case 9:return[4,this._processOneDataMessage(e,t._bufferedWrites)];case 10:h.sent();h.label=11;case 11:d="added"===e.msg||"changed"===e.msg||"removed"===e.msg;if(!(0===t._bufferedWritesInterval||!d))return[3,13];return[4,t._flushBufferedWrites()];case 12:h.sent();return[2];case 13:if(null!==t._bufferedWritesFlushAt)return[3,14];t._bufferedWritesFlushAt=new Date().valueOf()+t._bufferedWritesMaxAge;return[3,16];case 14:if(!(t._bufferedWritesFlushAt<new Date().valueOf()))return[3,16];return[4,t._flushBufferedWrites()];case 15:h.sent();return[2];case 16:if(t._bufferedWritesFlushHandle)clearTimeout(t._bufferedWritesFlushHandle);t._bufferedWritesFlushHandle=setTimeout(function(){t._liveDataWritesPromise=t._flushBufferedWrites();if(o._isPromise(t._liveDataWritesPromise))t._liveDataWritesPromise.finally(function(){return t._liveDataWritesPromise=void 0})},t._bufferedWritesInterval);return[2]}})}).call(this)}},{key:"_processOneDataMessage",value:function(e,t){return v(function(){var n;return P(this,function(r){switch(r.label){case 0:n=e.msg;switch(n){case"added":return[3,1];case"changed":return[3,3];case"removed":return[3,4];case"ready":return[3,5];case"updated":return[3,6];case"nosub":return[3,7]}return[3,8];case 1:return[4,this._connection._process_added(e,t)];case 2:r.sent();return[3,9];case 3:this._connection._process_changed(e,t);return[3,9];case 4:this._connection._process_removed(e,t);return[3,9];case 5:this._connection._process_ready(e,t);return[3,9];case 6:this._connection._process_updated(e,t);return[3,9];case 7:return[3,9];case 8:o._debug("discarding unknown livedata data message type",e);r.label=9;case 9:return[2]}})}).call(this)}},{key:"_livedata_result",value:function(e){return v(function(){var t,n,r,i;return P(this,function(a){switch(a.label){case 0:t=this._connection;if(!!u(t._bufferedWrites))return[3,2];return[4,t._flushBufferedWrites()];case 1:a.sent();a.label=2;case 2:if(u(t._outstandingMethodBlocks)){o._debug("Received method result but no methods outstanding");return[2]}n=t._outstandingMethodBlocks[0].methods;i=n.find(function(t,n){var o=t.methodId===e.id;if(o)r=n;return o}
65);if(!i){o._debug("Can't match method response to original method call",e);return[2]}n.splice(r,1);if(c.call(e,"error"))i.receiveResult(new o.Error(e.error.error,e.error.reason,e.error.details));else i.receiveResult(void 0,e.result);return[2]}})}).call(this)}},{key:"_livedata_nosub",value:function(e){return v(function(){var t,n,r,i;return P(this,function(a){switch(a.label){case 0:t=this._connection;return[4,this._livedata_data(e)];case 1:a.sent();if(!c.call(t._subscriptions,e.id))return[2];n=t._subscriptions[e.id].errorCallback;r=t._subscriptions[e.id].stopCallback;t._subscriptions[e.id].remove();i=function(e){return e&&e.error&&new o.Error(e.error.error,e.error.reason,e.error.details)};if(n&&e.error)n(i(e));if(r)r(i(e));return[2]}})}).call(this)}},{key:"_livedata_error",value:function(e){o._debug("Received error from server: ",e.reason);if(e.offendingMessage)o._debug("For: ",e.offendingMessage)}}]);return e}()},
65"method_invoker.js":function(e,t,n){n.export({MethodInvoker:function(){return a}});function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function i(e,t,n){if(t)o(e.prototype,t);if(n)o(e,n);return e}var a=function(){"use strict";function e(t){r(this,e);this.methodId=t.methodId;this.sentMessage=false;this._callback=t.callback;this._connection=t.connection;this._message=t.message;this._onResultReceived=t.onResultReceived||function(){};this._wait=t.wait;this.noRetry=t.noRetry;this._methodResult=null;this._dataVisible=false;this._connection._methodInvokers[this.methodId]=this}i(e,[{key:"sendMessage",value:function(){if(this.gotResult())throw new Error("sendingMethod is called on method with result");this._dataVisible=false;this.sentMessage=true;if(this._wait)this._connection._methodsBlockingQuiescence[this.methodId]=true;this._connection._send(this._message)}},{key:"_maybeInvokeCallback",value:function(){if(this._methodResult&&this._dataVisible){this._callback(this._methodResult[0],this._methodResult[1]);delete this._connection._methodInvokers[this.methodId];this._connection._outstandingMethodFinished()}}},{key:"receiveResult",value:function(e,t){if(this.gotResult())throw new Error("Methods should only receive results once");this._methodResult=[e,t];this._onResultReceived(e,t);this._maybeInvokeCallback()}},{key:"dataVisible",value:function(){this._dataVisible=true;this._maybeInvokeCallback()}},{key:"gotResult",value:function(){return!!this._methodResult}}]);return e}()},
65"mongo_id_map.js":function(e,t,r){r.export({MongoIDMap:function(){return _}});var o;r.link("meteor/mongo-id",{MongoID:function(e){o=e}},0);function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){t=c(t);return f(e,v()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return c(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)d(e,t)}function f(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return i(e)}function d(e,t){d=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return d(e,t)}function h(e){return e&&void 0!==a&&e.constructor===a?"symbol":typeof e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var _=function(e){"use strict";l(t,e);function t(){u(this,t);return s(this,t,[o.idStringify,o.idParse])}return t}(n)},
65"namespace.js":function(e,t,n){n.export({DDP:function(){return u}});var o;n.link("meteor/ddp-common",{DDPCommon:function(e){o=e}},0);var i;n.link("meteor/meteor",{Meteor:function(e){i=e}},1);var a;n.link("./livedata_connection.js",{Connection:function(e){a=e}},2);var s=[];var u={};u._CurrentMethodInvocation=new i.EnvironmentVariable;u._CurrentPublicationInvocation=new i.EnvironmentVariable;u._CurrentInvocation=u._CurrentMethodInvocation;u._CurrentCallAsyncInvocation=new i.EnvironmentVariable;function c(e){this.message=e}u.ConnectionError=i.makeErrorType("DDP.ConnectionError",c);u.ForcedReconnectError=i.makeErrorType("DDP.ForcedReconnectError",function(){});u.randomStream=function(e){var t=u._CurrentMethodInvocation.get();return o.RandomStream.get(t,e)};u.connect=function(e,t){var n=new a(e,t);s.push(n);return n};u._removeConnection=function(e){var t=s.indexOf(e);if(-1!==t)s.splice(t,1)};u._reconnectHook=new r({bindEnvironment:false});u.onReconnect=function(e){return u._reconnectHook.register(e)};u._allSubscriptionsReady=function(){return s.every(function(e){return Object.values(e._subscriptions).every(function(e){return e.ready})})}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{DDP:s}},require:u,eagerModulePaths:["/node_modules/meteor/ddp-client/client/client.js"],mainModulePath:"/node_modules/meteor/ddp-client/client/client.js"}});
66
67Package["core-runtime"].queue("ddp",function(){var e=Package["ddp-client"].DDP;return{export:function(){return{DDP:e}}}});
68
69Package["core-runtime"].queue("ddp-server",function(){return{}});
70
71Package["core-runtime"].queue("allow-deny",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var r=Package.minimongo.LocalCollection;Package.minimongo.Minimongo;var t=Package.check.check;var n=Package.check.Match;var a=Package.ejson.EJSON;var o=Package["ddp-client"].DDP;var c=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var i=Package.promise.Promise;var s=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var l;var u=c({node_modules:{meteor:{"allow-deny":{
71"allow-deny.js":function(){function c(e,r,t,n,a,o,c){try{var s=e[o](c);var l=s.value}catch(e){t(e);return}if(s.done)r(l);else i.resolve(l).then(n,a)}function u(e){return function(){var r=this,t=arguments;return new i(function(n,a){var o=e.apply(r,t);function i(e){c(o,n,a,i,s,"next",e)}function s(e){c(o,n,a,i,s,"throw",e)}i(void 0)})}}function f(e,r,t){if(r in e)Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true});else e[r]=t;return e}function d(e,r){if(null!=r&&void 0!==s&&r[s.hasInstance])return!!r[s.hasInstance](e);return e instanceof r}function h(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};var n=Object.keys(t);if("function"==typeof Object.getOwnPropertySymbols)n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}));n.forEach(function(r){f(e,r,t[r])})}return e}function v(e,r){var t,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=i(0),c["throw"]=i(1),c["return"]=i(2),"function"==typeof s&&(c[s.iterator]=function(){return this}),c;function i(e){return function(r){return l([e,r])}}function l(i){if(t)throw new TypeError("Generator is already executing.");while(c&&(c=0,i[0]&&(o=0)),o)try{if(t=1,n&&(a=2&i[0]?n["return"]:i[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;
71if(n=0,a)i=[2&i[0],a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;n=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1];a=i;break}if(a&&o.label<a[2]){o.label=a[2];o.ops.push(i);break}if(a[2])o.ops.pop();o.trys.pop();continue}i=r.call(e,o)}catch(e){i=[6,e];n=0}finally{t=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var y=Object.prototype.hasOwnProperty;l={CollectionPrototype:{}};var p=l.CollectionPrototype;p.allow=function(e){g(this,"allow",e)};p.deny=function(e){g(this,"deny",e)};p._defineMutationMethods=function(r){var a=this;r=r||{};a._restricted=false;a._insecure=void 0;a._validators={insert:{allow:[],deny:[]},update:{allow:[],deny:[]},remove:{allow:[],deny:[]},insertAsync:{allow:[],deny:[]},updateAsync:{allow:[],deny:[]},removeAsync:{allow:[],deny:[]},upsertAsync:{allow:[],deny:[]},fetch:[],fetchAllFields:false};if(!a._name)return;a._prefix="/"+a._name+"/";if(a._connection&&(a._connection===e.server||e.isClient)){var o={};["insertAsync","updateAsync","removeAsync","insert","update","remove"].forEach(function(c){var i=a._prefix+c;if(r.useExisting){var s=e.isClient?"_methodHandlers":"method_handlers";if(a._connection[s]&&"function"==typeof a._connection[s][i])return}var l=function(e){return e.includes("insert")};o[i]=function(){t(arguments,[n.Any]);var r=Array.from(arguments);try{var o=null;if(l(c)&&!y.call(r[0],"_id"))o=a._makeNewID();if(this.isSimulation){if(null!==o)r[0]._id=o;return a._collection[c].apply(a._collection,r)}if(!l(c))P(r[0],c);var i=c.replace("Async","");var s="_validated"+c.charAt(0).toUpperCase()+i.slice(1);var u=s+"Async";if(a._restricted){if(0===a._validators[i].allow.length)throw new e.Error(403,"Access denied. No allow validators set on restricted collection for method '"+c+"'.");r.unshift(this.userId);l(c)&&r.push(o);return a[u].apply(a,r)}if(a._isInsecure()){if(null!==o)r[0]._id=o;var f={insert:"insertAsync",update:"updateAsync",remove:"removeAsync"};return a._collection[f[c]||c].apply(a._collection,r)}throw new e.Error(403,"Access denied")}catch(r){if("MongoError"===r.name||"BulkWriteError"===r.name||"MongoBulkWriteError"===r.name||"MinimongoError"===r.name)throw new e.Error(409,r.toString());throw r}}});a._connection.methods(o)}};p._updateFetch=function(e){var r=this;if(!r._validators.fetchAllFields)if(e){var t=Object.create(null);var n=function(e){return e&&e.forEach(function(e){return t[e]=1})};n(r._validators.fetch);n(e);r._validators.fetch=Object.keys(t)}else{r._validators.fetchAllFields=true;r._validators.fetch=null}};p._isInsecure=function(){var e=this;if(void 0===e._insecure)return!!Package.insecure;return e._insecure};function m(e,r){return u(function(){var t,n,a,o,c,i,l;return v(this,function(u){switch(u.label){case 0:t=true,n=false,a=void 0;u.label=1;case 1:u.trys.push([1,6,7,8]);o=e[s.iterator]();u.label=2;case 2:if(!!(t=(c=o.next()).done))return[3,5];i=c.value;return[4,r(i)];case 3:if(u.sent())return[2,true];u.label=4;case 4:t=true;return[3,2];case 5:return[3,8];case 6:l=u.sent();n=true;a=l;return[3,8];case 7:try{if(!t&&null!=o.return)o.return()}finally{if(n)throw a}return[7];case 8:return[2,false]}})})()}function w(e,r){return u(function(){var t,n,a,o,c,i,l;return v(this,function(u){switch(u.label){case 0:t=true,n=false,a=void 0;u.label=1;case 1:u.trys.push([1,6,7,8]);o=e[s.iterator]();u.label=2;case 2:if(!!(t=(c=o.next()).done))return[3,5];i=c.value;return[4,r(i)];case 3:if(!u.sent())return[2,false];u.label=4;case 4:t=true;return[3,2];case 5:return[3,8];case 6:l=u.sent();n=true;a=l;return[3,8];case 7:try{if(!t&&null!=o.return)o.return()}finally{if(n)throw a}return[7];case 8:return[2,true]}})})()}p._validatedInsertAsync=function(r,t,n){return u(function(){var a;return v(this,function(o){switch(o.label){case 0:a=this;return[4,m(a._validators.insert.deny,function(a){return u(function(){var o,c;return v(this,function(i){switch(i.label){case 0:o=a(r,A(a,t,n));if(!e._isPromise(o))return[3,2];return[4,o];case 1:c=i.sent();return[3,3];case 2:c=o;i.label=3;case 3:return[2,c]}})})()})];case 1:if(o.sent())throw new e.Error(403,"Access denied");return[4,w(a._validators.insert.allow,function(a){return u(function(){var o,c;return v(this,function(i){switch(i.label){case 0:o=a(r,A(a,t,n));if(!e._isPromise(o))return[3,2];return[4,o];case 1:c=i.sent();return[3,3];case 2:c=o;i.label=3;case 3:return[2,!c]}})})()})];case 2:if(o.sent())throw new e.Error(403,"Access denied");if(null!==n)t._id=n;return[2,a._collection.insertAsync.call(a._collection,t)]}})}).call(this)};p._validatedUpdateAsync=function(n,a,o,c){return u(function(){var i,s,l,f,d,h,p;return v(this,function(A){switch(A.label){case 0:i=this;t(o,Object);c=Object.assign(Object.create(null),c);if(!r._selectorIsIdPerhapsAsObject(a))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.");s="Access denied. In a restricted collection you can only update documents, not replace them. Use a Mongo update operator, such as '$set'.";l=Object.keys(o);f={};if(0===l.length)throw new e.Error(403,s);l.forEach(function(r){var t=o[r];if("$"!==r.charAt(0))throw new e.Error(403,s);if(y.call(_,r))Object.keys(t).forEach(function(e){if(-1!==e.indexOf("."))e=e.substring(0,e.indexOf("."));f[e]=true});else throw new e.Error(403,"Access denied. Operator "+r+" not allowed in a restricted collection.")});d=Object.keys(f);h={transform:null};
71if(!i._validators.fetchAllFields){h.fields={};i._validators.fetch.forEach(function(e){h.fields[e]=1})}return[4,i._collection.findOneAsync(a,h)];case 1:p=A.sent();if(!p)return[2,0];return[4,m(i._validators.update.deny,function(r){return u(function(){var t,a,c;return v(this,function(i){switch(i.label){case 0:t=b(r,p);a=r(n,t,d,o);if(!e._isPromise(a))return[3,2];return[4,a];case 1:c=i.sent();return[3,3];case 2:c=a;i.label=3;case 3:return[2,c]}})})()})];case 2:if(A.sent())throw new e.Error(403,"Access denied");return[4,w(i._validators.update.allow,function(r){return u(function(){var t,a,c;return v(this,function(i){switch(i.label){case 0:t=b(r,p);a=r(n,t,d,o);if(!e._isPromise(a))return[3,2];return[4,a];case 1:c=i.sent();return[3,3];case 2:c=a;i.label=3;case 3:return[2,!c]}})})()})];case 3:if(A.sent())throw new e.Error(403,"Access denied");c._forbidReplace=true;return[2,i._collection.updateAsync.call(i._collection,a,o,c)]}})}).call(this)};var _={$inc:1,$set:1,$unset:1,$addToSet:1,$pop:1,$pullAll:1,$pull:1,$pushAll:1,$push:1,$bit:1};p._validatedRemoveAsync=function(r,t){return u(function(){var n,a,o;return v(this,function(c){switch(c.label){case 0:n=this;a={transform:null};if(!n._validators.fetchAllFields){a.fields={};n._validators.fetch.forEach(function(e){a.fields[e]=1})}return[4,n._collection.findOneAsync(t,a)];case 1:o=c.sent();if(!o)return[2,0];return[4,m(n._validators.remove.deny,function(t){return u(function(){var n,a;return v(this,function(c){switch(c.label){case 0:n=t(r,b(t,o));if(!e._isPromise(n))return[3,2];return[4,n];case 1:a=c.sent();return[3,3];case 2:a=n;c.label=3;case 3:return[2,a]}})})()})];case 2:if(c.sent())throw new e.Error(403,"Access denied");return[4,w(n._validators.remove.allow,function(t){return u(function(){var n,a;return v(this,function(c){switch(c.label){case 0:n=t(r,b(t,o));if(!e._isPromise(n))return[3,2];return[4,n];case 1:a=c.sent();return[3,3];case 2:a=n;c.label=3;case 3:return[2,!a]}})})()})];case 3:if(c.sent())throw new e.Error(403,"Access denied");return[2,n._collection.removeAsync.call(n._collection,t)]}})}).call(this)};p._callMutatorMethodAsync=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n="updateAsync"===e||"removeAsync"===e;if(n&&!k())P(r[0],e);var a=this._prefix+e;return this._connection.applyAsync(a,r,h({returnStubValue:"stub"===this.resolverType||null==this.resolverType,returnServerResultPromise:!this._connection._stream._isStub&&"stub"!==this.resolverType},t))};p._callMutatorMethod=function(r,t,n){if(e.isClient&&!n&&!k())n=function(t){if(t)e._debug(r+" failed",t)};var a="update"===r||"remove"===r;if(a&&!k())P(t[0],r);var o=this._prefix+r;return this._connection.apply(o,t,{returnStubValue:true},n)};function b(e,r){if(e.transform)return e.transform(r);return r}function A(e,r,t){var n=r;if(e.transform){n=a.clone(r);if(null!==t)n._id=t;n=e.transform(n)}return n}function g(t,n,a){var o=/^(?:insertAsync|updateAsync|removeAsync|insert|update|remove|fetch|transform)$/;Object.keys(a).forEach(function(r){if(!o.test(r))throw new Error(n+": Invalid key: "+r);var t=r.includes("Async");if(t){var a=r.replace("Async","");e.deprecate(n+': The "'.concat(r,'" key is deprecated. Use "').concat(a,'" instead.'))}});t._restricted=true;["insertAsync","updateAsync","removeAsync","insert","update","remove"].forEach(function(e){if(y.call(a,e)){if(!d(a[e],Function))throw new Error(n+": Value for `"+e+"` must be a function");if(void 0===a.transform)a[e].transform=t._transform;else a[e].transform=r.wrapTransform(a.transform);var o=e.includes("Async");var c=o?e.replace("Async",""):e;t._validators[c][n].push(a[e])}});if(a.updateAsync||a.removeAsync||a.fetch){if(a.fetch&&!d(a.fetch,Array))throw new Error(n+": Value for `fetch` must be an array");t._updateFetch(a.fetch)}}function P(t,n){if(!r._selectorIsIdPerhapsAsObject(t))throw new e.Error(403,"Not permitted. Untrusted code may only "+n+" documents by ID.")}function k(){var e=o._CurrentMethodInvocation||o._CurrentInvocation;var r=e.get();return r&&r.isSimulation}}}}}},{extensions:[".js",".json"]});return{export:function(){return{AllowDeny:l}},require:u,eagerModulePaths:["/node_modules/meteor/allow-deny/allow-deny.js"]}});
72
73Package["core-runtime"].queue("babel-compiler",function(){return{}});
74
75Package["core-runtime"].queue("typescript",function(){return{}});
76
77Package["core-runtime"].queue("logging",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.ejson.EJSON;var t=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var n,o;var i=r({node_modules:{meteor:{logging:{
77"logging.js":function(r,o,i){i.export({Log:function(){return h}});var a;i.link("meteor/meteor",{Meteor:function(e){a=e}},0);function l(e,t){if(null==t||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){if(Array.isArray(e))return l(e)}function u(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function s(e,r){if(null!=r&&void 0!==t&&r[t.hasInstance])return!!r[t.hasInstance](e);return e instanceof r}function f(e){if(void 0!==t&&null!=e[t.iterator]||null!=e["@@iterator"])return Array.from(e)}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};var n=Object.keys(r);if("function"==typeof Object.getOwnPropertySymbols)n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}));n.forEach(function(t){u(e,t,r[t])})}return e}function m(e){return c(e)||f(e)||d(e)||g()}function v(e){return e&&void 0!==t&&e.constructor===t?"symbol":typeof e}function d(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor)r=e.constructor.name;if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}var y=Object.prototype.hasOwnProperty;function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=h).info.apply(n,m(t))}var b=0;var w=[];var j=0;h._intercept=function(e){b+=e};h._suppress=function(e){j+=e};h._intercepted=function(){var e=w;w=[];b=0;return e};h.outputFormat="json";h.showTime=true;var P={debug:"green",warn:"magenta",error:"red"};var k="blue";var S=("undefined"==typeof process?"undefined":v(process))==="object"&&"win32"===process.platform;var O=function(e){if(S&&"string"==typeof e&&!e.endsWith("Bright"))return"".concat(e,"Bright");return e};var E=["time","timeInexact","level","file","line","program","originApp","satellite","stderr"];var D=m(E).concat(["app","message"]);var _=function(e){var t=h.format(e);var r=e.level;if("undefined"!=typeof console&&console[r])console[r](t);else if("function"==typeof console.log.apply)console.log.apply(console,[t]);else if("function"==typeof Function.prototype.bind){var n=Function.prototype.bind.call(console.log,console);n.apply(console,[t])}};h._getCallerDetails=function(){var e=function(){var e=new Error;var t=e.stack;return t};var r=e();if(!r)return{};var n;var o=r.split("\n").slice(1);var i=true,a=false,l=void 0;try{for(var c=o[t.iterator](),u;!(i=(u=c.next()).done);i=true){n=u.value;if(n.match(/^\s*(at eval \(eval)|(eval:)/))return{file:"eval"};if(!n.match(/packages\/(?:local-test[:_])?logging(?:\/|\.js)/))break}}catch(e){a=true;l=e}finally{try{if(!i&&null!=c.return)c.return()}finally{if(a)throw l}}var s={};var f=/(?:[@(]| at )([^(]+?):([0-9:]+)(?:\)|$)/.exec(n);if(!f)return s;s.line=f[2].split(":")[0];s.file=f[1].split("/").slice(-1)[0].split("?")[0];return s};["debug","info","warn","error"].forEach(function(t){h[t]=function(r){if(j)return void j--;var n=false;if(b){b--;n=true}var o=r!==Object(r)||s(r,RegExp)||s(r,Date)?{message:new String(r).toString()}:r;
77E.forEach(function(e){if(o[e])throw new Error("Can't set '".concat(e,"' in log message"))});if(y.call(o,"message")&&"string"!=typeof o.message)throw new Error("The 'message' field in log objects must be a string");if(!o.omitCallerDetails)o=p({},h._getCallerDetails(),o);o.time=new Date;o.level=t;if("debug"===t&&a.isProduction)return;if(n)w.push(e.stringify(o));else if(a.isServer)if("colored-text"===h.outputFormat)console.log(h.format(o,{color:true}));else if("json"===h.outputFormat)console.log(e.stringify(o));else throw new Error("Unknown logging output format: ".concat(h.outputFormat));else _(o)}});h.parse=function(t){var r=null;if(t&&t.startsWith("{"))try{r=e.parse(t)}catch(e){}if(r&&r.time&&s(r.time,Date))return r;return null};h.format=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=p({},t);var o=t.time,i=t.timeInexact,a=t.level,l=void 0===a?"info":a,c=t.file,u=t.line,f=t.app,g=void 0===f?"":f,m=t.originApp,v=t.message,d=void 0===v?"":v,y=t.program,b=void 0===y?"":y,w=t.satellite,j=void 0===w?"":w,S=t.stderr,E=void 0===S?"":S;if(!s(o,Date))throw new Error("'time' must be a Date object");D.forEach(function(e){delete t[e]});if(Object.keys(t).length>0){if(d)d+=" ";d+=e.stringify(t)}var _=function(e){return e.toString().padStart(2,"0")};var x=function(e){return e.toString().padStart(3,"0")};var A=o.getFullYear().toString()+_(o.getMonth()+1)+_(o.getDate());var I=_(o.getHours())+":"+_(o.getMinutes())+":"+_(o.getSeconds())+"."+x(o.getMilliseconds());var M="(".concat(-(new Date().getTimezoneOffset()/60),")");var F="";if(g)F+=g;if(m&&m!==g)F+=" via ".concat(m);if(F)F="[".concat(F,"] ");var C=[];if(b)C.push(b);if(c)C.push(c);if(u)C.push(u);var T=C.length?"(".concat(C.join(":"),") "):"";if(j)T+="[".concat(j,"]");var B=E?"(STDERR) ":"";var R=h.showTime?"".concat(A,"-").concat(I).concat(M).concat(i?"? ":" "):" ";var U=[l.charAt(0).toUpperCase(),R,F,T,B].join("");return n.prettify(U,r.color&&O(r.metaColor||k))+n.prettify(d,r.color&&O(P[l]))};h.objFromText=function(e,t){return p({message:e,level:"info",time:new Date,timeInexact:true},t)}},
77"logging_browser.js":function(){n={};n.prettify=function(e,t){return e}}}}}},{extensions:[".js",".json",".ts"]});return{export:function(){return{Log:o}},require:i,eagerModulePaths:["/node_modules/meteor/logging/logging.js","/node_modules/meteor/logging/logging_browser.js"],mainModulePath:"/node_modules/meteor/logging/logging.js"}});
78
79Package["core-runtime"].queue("mongo",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package["allow-deny"].AllowDeny;var n=Package.random.Random;var r=Package.ejson.EJSON;var o=Package.minimongo.LocalCollection;Package.minimongo.Minimongo;var i=Package["ddp-client"].DDP;Package.tracker.Tracker;Package.tracker.Deps;Package["diff-sequence"].DiffSequence;var c=Package["mongo-id"].MongoID;var a=Package.check.check;var l=Package.check.Match;Package.logging.Log;var u=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var s=Package.promise.Promise;var f=Package["ecmascript-runtime-client"].Symbol;var d=Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var h,p;var y=u({node_modules:{meteor:{mongo:{
79"local_collection_driver.js":function(e,t,n){n.export({LocalCollectionDriver:function(){return a}});function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function c(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}var a=new(function(){"use strict";function e(){r(this,e);this.noConnCollections=Object.create(null)}c(e,[{key:"open",value:function(e,t){if(!e)return new o;if(!t)return l(e,this.noConnCollections);if(!t._mongo_livedata_collections)t._mongo_livedata_collections=Object.create(null);return l(e,t._mongo_livedata_collections)}}]);return e}());function l(e,t){return e in t?t[e]:t[e]=new o(e)}},collection:{
79"collection_extensions.js":function(){function e(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function r(e){if(void 0!==f&&null!=e[f.iterator]||null!=e["@@iterator"])return Array.from(e)}function o(e,t){var n=null==e?null:void 0!==f&&e[f.iterator]||e["@@iterator"];if(null==n)return;var r=[];var o=true;var i=false;var c,a;try{for(n=n.call(e);!(o=(c=n.next()).done);o=true){r.push(c.value);if(t&&r.length===t)break}}catch(e){i=true;a=e}finally{try{if(!o&&null!=n["return"])n["return"]()}finally{if(i)throw a}}return r}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,n){return t(e)||o(e,n)||u(e,n)||i()}function l(e){return n(e)||r(e)||u(e)||c()}function u(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor)r=t.constructor.name;if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}if(Package["lai:collection-extensions"])console.warn("lai:collection-extensions is not deprecated. Use Mongo.Collection.addExtension instead.");h={_extensions:[],_prototypeMethods:new d,_staticMethods:new d,addExtension:function(e){if("function"!=typeof e)throw new Error("Extension must be a function");this._extensions.push(e)},addPrototypeMethod:function(e,t){if("string"!=typeof e||!e)throw new Error("Prototype method name must be a non-empty string");if("function"!=typeof t)throw new Error("Prototype method must be a function");this._prototypeMethods.set(e,t)},addStaticMethod:function(e,t){if("string"!=typeof e||!e)throw new Error("Static method name must be a non-empty string");if("function"!=typeof t)throw new Error("Static method must be a function");this._staticMethods.set(e,t)},removeExtension:function(e){var t=this._extensions.indexOf(e);if(t>-1)this._extensions.splice(t,1)},removePrototypeMethod:function(e){this._prototypeMethods.delete(e)},removeStaticMethod:function(e){this._staticMethods.delete(e)},clearExtensions:function(){this._extensions.length=0;this._prototypeMethods.clear();this._staticMethods.clear()},getExtensions:function(){return l(this._extensions)},getPrototypeMethods:function(){return new d(this._prototypeMethods)},getStaticMethods:function(){return new d(this._staticMethods)},_applyExtensions:function(e,t,n){var r=true,o=false,i=void 0;try{for(var c=this._extensions[f.iterator](),l;!(r=(l=c.next()).done);r=true){var u=l.value;try{u.call(e,t,n)}catch(e){throw new Error("Extension failed for collection '".concat(t,"': ").concat(e.message))}}}catch(e){o=true;i=e}finally{try{if(!r&&null!=c.return)c.return()}finally{if(o)throw i}}var s=true,d=false,h=void 0;try{for(var p=this._prototypeMethods[f.iterator](),y;!(s=(y=p.next()).done);s=true){var v=a(y.value,2),b=v[0],m=v[1];e[b]=m.bind(e)}}catch(e){d=true;h=e}finally{try{if(!s&&null!=p.return)p.return()}finally{if(d)throw h}}},_applyStaticMethods:function(e){var t=true,n=false,r=void 0;try{for(var o=this._staticMethods[f.iterator](),i;!(t=(i=o.next()).done);t=true){var c=a(i.value,2),l=c[0],u=c[1];e[l]=u}}catch(e){n=true;r=e}finally{try{if(!t&&null!=o.return)o.return()}finally{if(n)throw r}}}}},
79"collection.js":function(r,i,u){var y;u.link("../mongo_utils",{normalizeProjection:function(e){y=e}},0);var v;u.link("./methods_async",{AsyncMethods:function(e){v=e}},1);var b;u.link("./methods_sync",{SyncMethods:function(e){b=e}},2);var m;u.link("./methods_index",{IndexMethods:function(e){m=e}},3);var g,w,_,O,j,A,x;u.link("./collection_utils",{ID_GENERATORS:function(e){g=e},normalizeOptions:function(e){w=e},setupAutopublish:function(e){_=e},setupConnection:function(e){O=e},setupDriver:function(e){j=e},setupMutationMethods:function(e){A=e},validateCollectionName:function(e){x=e}},4);var I;u.link("./methods_replication",{ReplicationMethods:function(e){I=e}},5);function P(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){if(Array.isArray(e))return e}function k(e,t,n,r,o,i,c){try{var a=e[i](c);var l=a.value}catch(e){n(e);return}if(a.done)t(l);else s.resolve(l).then(r,o)}function E(e){return function(){var t=this,n=arguments;return new s(function(r,o){var i=e.apply(t,n);function c(e){k(i,r,o,c,a,"next",e)}function a(e){k(i,r,o,c,a,"throw",e)}c(void 0)})}}function M(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function S(e,t){var n=null==e?null:void 0!==f&&e[f.iterator]||e["@@iterator"];if(null==n)return;var r=[];var o=true;var i=false;var c,a;try{for(n=n.call(e);!(o=(c=n.next()).done);o=true){r.push(c.value);if(t&&r.length===t)break}}catch(e){i=true;a=e}finally{try{if(!o&&null!=n["return"])n["return"]()}finally{if(i)throw a}}return r}function D(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){M(e,t,n[t])})}return e}function T(e,t){return C(e)||S(e,t)||N(e,t)||D()}function N(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}function $(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),"function"==typeof f&&(c[f.iterator]=function(){return this}),c;function a(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[2&a[0],o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}p={};p.Collection=function(e,t){var n;e=x(e);t=w(t);this._makeNewID=null==(n=g[t.idGeneration])?void 0:n.call(g,e);this._transform=o.wrapTransform(t.transform);this.resolverType=t.resolverType;this._connection=O(e,t);var r=j(e,this._connection,t);this._driver=r;this._collection=r.open(e,this._connection);this._name=e;this._settingUpReplicationPromise=this._maybeSetUpReplication(e,t);A(this,e,t);_(this,e,t);p._collections.set(e,this);h._applyExtensions(this,e,t)};h._applyStaticMethods(p.Collection);Object.assign(p.Collection.prototype,{_getFindSelector:function(e){if(0==e.length)return{};return e[0]},_getFindOptions:function(e){var t=T(e||[],2),n=t[1];var r=y(n);var o=this;if(e.length<2)return{transform:o._transform};a(r,l.Optional(l.ObjectIncluding({projection:l.Optional(l.OneOf(Object,void 0)),sort:l.Optional(l.OneOf(Object,Array,Function,void 0)),limit:l.Optional(l.OneOf(Number,void 0)),skip:l.Optional(l.OneOf(Number,void 0))})));return R({transform:o._transform},r)}});Object.assign(p.Collection,{_publishCursor:function(e,t,n){return E(function(){var r;return $(this,function(o){switch(o.label){case 0:return[4,e.observeChanges({added:function(e,r){t.added(n,e,r)},changed:function(e,r){t.changed(n,e,r)},removed:function(e){t.removed(n,e)}},{nonMutatingCallbacks:true})];case 1:r=o.sent();t.onStop(function(){return E(function(){return $(this,function(e){switch(e.label){case 0:return[4,r.stop()];case 1:return[2,e.sent()]}})})()});return[2,r]}})})()},_rewriteSelector:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fallbackId;if(o._selectorIsId(e))e={_id:e};if(Array.isArray(e))throw new Error("Mongo selector can't be an array.");if(!e||"_id"in e&&!e._id)return{_id:t||n.id()};return e},addExtension:function(e){return h.addExtension(e)},addPrototypeMethod:function(e,t){return h.addPrototypeMethod(e,t)},addStaticMethod:function(e,t){return h.addStaticMethod(e,t)},removeExtension:function(e){return h.removeExtension(e)},removePrototypeMethod:function(e){return h.removePrototypeMethod(e)},removeStaticMethod:function(e){return h.removeStaticMethod(e)},clearExtensions:function(){return h.clearExtensions()},getExtensions:function(){return h.getExtensions()},getPrototypeMethods:function(){return h.getPrototypeMethods()},getStaticMethods:function(){return h.getStaticMethods()}});Object.assign(p.Collection.prototype,I,b,v,m);Object.assign(p.Collection.prototype,{_isRemoteCollection:function(){return this._connection&&this._connection!==e.server},dropCollectionAsync:function(){return E(function(){var e;return $(this,function(t){switch(t.label){case 0:e=this;if(!e._collection.dropCollectionAsync)throw new Error("Can only call dropCollectionAsync on server collections");return[4,e._collection.dropCollectionAsync()];case 1:t.sent();return[2]}})}).call(this)},createCappedCollectionAsync:function(e,t){return E(function(){var n;return $(this,function(r){switch(r.label){case 0:n=this;return[4,n._collection.createCappedCollectionAsync];case 1:if(!r.sent())throw new Error("Can only call createCappedCollectionAsync on server collections");return[4,n._collection.createCappedCollectionAsync(e,t)];case 2:r.sent();return[2]}})}).call(this)},rawCollection:function(){var e=this;if(!e._collection.rawCollection)throw new Error("Can only call rawCollection on server collections");return e._collection.rawCollection()},rawDatabase:function(){var e=this;if(!(e._driver.mongo&&e._driver.mongo.db))throw new Error("Can only call rawDatabase on server collections");return e._driver.mongo.db}});Object.assign(p,{getCollection:function(e){return this._collections.get(e)},_collections:new d,CollectionExtensions:h});p.ObjectID=c.ObjectID;p.Cursor=o.Cursor;p.Collection.Cursor=p.Cursor;p.Collection.ObjectID=p.ObjectID;e.Collection=p.Collection;Object.assign(p.Collection.prototype,t.CollectionPrototype)},
79"collection_utils.js":function(t,r,o){o.export({ID_GENERATORS:function(){return v},setupConnection:function(){return b},setupDriver:function(){return m},setupAutopublish:function(){return g},setupMutationMethods:function(){return w},validateCollectionName:function(){return _},normalizeOptions:function(){return O}});function c(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){if(Array.isArray(e))return e}function l(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function u(e,t){var n=null==e?null:void 0!==f&&e[f.iterator]||e["@@iterator"];if(null==n)return;var r=[];var o=true;var i=false;var c,a;try{for(n=n.call(e);!(o=(c=n.next()).done);o=true){r.push(c.value);if(t&&r.length===t)break}}catch(e){i=true;a=e}finally{try{if(!o&&null!=n["return"])n["return"]()}finally{if(i)throw a}}return r}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){l(e,t,n[t])})}return e}function h(e,t){return a(e)||u(e,t)||y(e,t)||s()}function y(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}var v={MONGO:function(e){return function(){var t=e?i.randomStream("/collection/"+e):n.insecure;return new p.ObjectID(t.hexString(24))}},STRING:function(e){return function(){var t=e?i.randomStream("/collection/"+e):n.insecure;return t.id()}}};function b(t,n){if(!t||null===n.connection)return null;if(n.connection)return n.connection;return e.isClient?e.connection:e.server}function m(n,r,o){if(o._driver)return o._driver;if(n&&r===e.server&&"undefined"!=typeof MongoInternals&&MongoInternals.defaultRemoteCollectionDriver)return MongoInternals.defaultRemoteCollectionDriver();var i=t("../local_collection_driver.js").LocalCollectionDriver;return i}function g(e,t,n){if(Package.autopublish&&!n._preventAutopublish&&e._connection&&e._connection.publish)e._connection.publish(null,function(){return e.find()},{is_auto:true})}function w(e,t,n){if(false===n.defineMutationMethods)return;try{e._defineMutationMethods({useExisting:true===n._suppressSameNameError})}catch(e){if(e.message==="A method named '/".concat(t,"/insertAsync' is already defined"))throw new Error('There is already a collection named "'.concat(t,'"'));throw e}}function _(t){if(!t&&null!==t){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.)");t=null}if(null!==t&&"string"!=typeof t)throw new Error("First argument to new Mongo.Collection must be a string or null");return t}function O(e){if(e&&e.methods)e={connection:e};if(e&&e.manager&&!e.connection)e.connection=e.manager;var t=Object.fromEntries(Object.entries(e||{}).filter(function(e){var t=h(e,2),n=(t[0],t[1]);return void 0!==n}));return d({connection:void 0,idGeneration:"STRING",transform:null,_driver:void 0,_preventAutopublish:false},t)}},
79"methods_async.js":function(t,n,r){r.export({AsyncMethods:function(){return O}});function o(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){if(Array.isArray(e))return o(e)}function a(e,t,n,r,o,i,c){try{var a=e[i](c);var l=a.value}catch(e){n(e);return}if(a.done)t(l);else s.resolve(l).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new s(function(r,o){var i=e.apply(t,n);function c(e){a(i,r,o,c,l,"next",e)}function l(e){a(i,r,o,c,l,"throw",e)}c(void 0)})}}function u(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function d(e,t){if(null!=t&&void 0!==f&&t[f.hasInstance])return!!t[f.hasInstance](e);return e instanceof t}function h(e){if(void 0!==f&&null!=e[f.iterator]||null!=e["@@iterator"])return Array.from(e)}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){u(e,t,n[t])})}return e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function m(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else b(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}function g(e){return c(e)||h(e)||w(e)||y()}function w(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}function _(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),"function"==typeof f&&(c[f.iterator]=function(){return this}),c;function a(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[2&a[0],o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var O={findOneAsync:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._collection.findOneAsync(this._getFindSelector(t),this._getFindOptions(t))},_insertAsync:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("insert requires an argument");t=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t));if("_id"in t){if(!t._id||!("string"==typeof t._id||d(t._id,p.ObjectID)))throw new Error("Meteor requires document _id fields to be non-empty strings or ObjectIDs")}else{var r=true;if(this._isRemoteCollection()){var o=i._CurrentMethodInvocation.get();if(!o)r=false}if(r)t._id=this._makeNewID()}var c=function(n){if(e._isPromise(n))return n;if(t._id)return t._id;t._id=n;return n};if(this._isRemoteCollection()){var a=this._callMutatorMethodAsync("insertAsync",[t],n);a.then(c);a.stubPromise=a.stubPromise.then(c);a.serverPromise=a.serverPromise.then(c);return a}return this._collection.insertAsync(t).then(c)},insertAsync:function(e,t){return this._insertAsync(e,t)},updateAsync:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=v({},r[0]||null);var c;if(i&&i.upsert){if(i.insertedId){if(!("string"==typeof i.insertedId||d(i.insertedId,p.ObjectID)))throw new Error("insertedId must be string or ObjectID");c=i.insertedId}else if(!e||!e._id){c=this._makeNewID();i.generatedId=true;i.insertedId=c}}e=p.Collection._rewriteSelector(e,{fallbackId:c});if(this._isRemoteCollection()){var a=[e,t,i];return this._callMutatorMethodAsync("updateAsync",a,i)}return this._collection.updateAsync(e,t,i)},removeAsync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=p.Collection._rewriteSelector(e);
79if(this._isRemoteCollection())return this._callMutatorMethodAsync("removeAsync",[e],t);return this._collection.removeAsync(e)},upsertAsync:function(e,t,n){return l(function(){return _(this,function(r){return[2,this.updateAsync(e,t,m(v({},n),{_returnObject:true,upsert:true}))]})}).call(this)},countDocuments:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;return(r=this._collection).countDocuments.apply(r,g(t))},estimatedDocumentCount:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;return(r=this._collection).estimatedDocumentCount.apply(r,g(t))}}},
79"methods_index.js":function(t,n,r){r.export({IndexMethods:function(){return l}});var o;r.link("meteor/logging",{Log:function(e){o=e}},0);function i(e,t,n,r,o,i,c){try{var a=e[i](c);var l=a.value}catch(e){n(e);return}if(a.done)t(l);else s.resolve(l).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new s(function(r,o){var c=e.apply(t,n);function a(e){i(c,r,o,a,l,"next",e)}function l(e){i(c,r,o,a,l,"throw",e)}a(void 0)})}}function a(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),"function"==typeof f&&(c[f.iterator]=function(){return this}),c;function a(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[2&a[0],o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var l={ensureIndexAsync:function(e,t){return c(function(){var n;return a(this,function(r){switch(r.label){case 0:n=this;if(!n._collection.ensureIndexAsync||!n._collection.createIndexAsync)throw new Error("Can only call createIndexAsync on server collections");if(!n._collection.createIndexAsync)return[3,2];return[4,n._collection.createIndexAsync(e,t)];case 1:r.sent();return[3,4];case 2:o.debug("ensureIndexAsync has been deprecated, please use the new 'createIndexAsync' instead".concat((null==t?void 0:t.name)?", index name: ".concat(t.name):", index: ".concat(JSON.stringify(e))));return[4,n._collection.ensureIndexAsync(e,t)];case 3:r.sent();r.label=4;case 4:return[2]}})}).call(this)},createIndexAsync:function(t,n){return c(function(){var r,i,c,l,u;return a(this,function(a){switch(a.label){case 0:r=this;if(!r._collection.createIndexAsync)throw new Error("Can only call createIndexAsync on server collections");a.label=1;case 1:a.trys.push([1,3,,8]);return[4,r._collection.createIndexAsync(t,n)];case 2:a.sent();return[3,8];case 3:i=a.sent();if(!(i.message.includes("An equivalent index already exists with the same name but different options.")&&(null==(u=e.settings)?void 0:null==(l=u.packages)?void 0:null==(c=l.mongo)?void 0:c.reCreateIndexOnOptionMismatch)))return[3,6];o.info("Re-creating index ".concat(t," for ").concat(r._name," due to options mismatch."));return[4,r._collection.dropIndexAsync(t)];case 4:a.sent();return[4,r._collection.createIndexAsync(t,n)];case 5:a.sent();return[3,7];case 6:console.error(i);throw new e.Error('An error occurred when creating an index for collection "'.concat(r._name,": ").concat(i.message));case 7:return[3,8];case 8:return[2]}})}).call(this)},createIndex:function(e,t){return this.createIndexAsync(e,t)},dropIndexAsync:function(e){return c(function(){var t;return a(this,function(n){switch(n.label){case 0:t=this;if(!t._collection.dropIndexAsync)throw new Error("Can only call dropIndexAsync on server collections");return[4,t._collection.dropIndexAsync(e)];case 1:n.sent();return[2]}})}).call(this)}}},
79"methods_replication.js":function(t,n,o){o.export({ReplicationMethods:function(){return h}});function i(e,t,n,r,o,i,c){try{var a=e[i](c);var l=a.value}catch(e){n(e);return}if(a.done)t(l);else s.resolve(l).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new s(function(r,o){var c=e.apply(t,n);function a(e){i(c,r,o,a,l,"next",e)}function l(e){i(c,r,o,a,l,"throw",e)}a(void 0)})}}function l(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){l(e,t,n[t])})}return e}function d(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),"function"==typeof f&&(c[f.iterator]=function(){return this}),c;function a(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[2&a[0],o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var h={_maybeSetUpReplication:function(t){return a(function(){var n,o,i,l,s,f,h,p;return d(this,function(y){o=this;if(!(o._connection&&o._connection.registerStoreClient&&o._connection.registerStoreServer))return[2];i={saveOriginals:function(){o._collection.saveOriginals()},retrieveOriginals:function(){return o._collection.retrieveOriginals()},_getCollection:function(){return o}};l=u({beginUpdate:function(e,t){return a(function(){return d(this,function(n){switch(n.label){case 0:if(e>1||t)o._collection.pauseObservers();if(!t)return[3,2];return[4,o._collection.remove({})];case 1:n.sent();n.label=2;case 2:return[2]}})})()},update:function(t){var n=c.idParse(t.id);var i=o._collection._docs.get(n);if(e.isClient){if("added"===t.msg&&i)t.msg="changed";else if("removed"===t.msg&&!i)return;else if("changed"===t.msg&&!i){t.msg="added";var a=t.fields;for(var l in a){var s=a[l];if(void 0===s)delete t.fields[l]}}}if("replace"===t.msg){var f=t.replace;if(f)if(i)o._collection.update(n,f);else o._collection.insert(f);else if(i)o._collection.remove(n);return}if("added"===t.msg){if(i)throw new Error("Expected not to find a document already present for an add");o._collection.insert(u({_id:n},t.fields))}else if("removed"===t.msg){if(!i)throw new Error("Expected to find a document already present for removed");o._collection.remove(n)}else if("changed"===t.msg){if(!i)throw new Error("Expected to find a document to change");var d=Object.keys(t.fields);if(d.length>0){var h={};d.forEach(function(e){var n=t.fields[e];if(r.equals(i[e],n))return;if(void 0===n){if(!h.$unset)h.$unset={};h.$unset[e]=1}else{if(!h.$set)h.$set={};h.$set[e]=n}});if(Object.keys(h).length>0)o._collection.update(n,h)}}else throw new Error("I don't know how to deal with this message")},endUpdate:function(){o._collection.resumeObserversClient()},getDoc:function(e){return o.findOne(e)}},i);s=u({beginUpdate:function(e,t){return a(function(){return d(this,function(n){switch(n.label){case 0:if(e>1||t)o._collection.pauseObservers();if(!t)return[3,2];return[4,o._collection.removeAsync({})];case 1:n.sent();n.label=2;case 2:return[2]}})})()},update:function(e){return a(function(){var t,n,i,a,l;return d(this,function(s){switch(s.label){case 0:t=c.idParse(e.id);n=o._collection._docs.get(t);if("replace"!==e.msg)return[3,8];i=e.replace;if(!!i)return[3,3];if(!n)return[3,2];return[4,o._collection.removeAsync(t)];case 1:s.sent();s.label=2;case 2:return[3,7];case 3:if(!!n)return[3,5];return[4,o._collection.insertAsync(i)];case 4:s.sent();return[3,7];case 5:return[4,o._collection.updateAsync(t,i)];case 6:s.sent();s.label=7;case 7:return[2];case 8:if("added"!==e.msg)return[3,10];if(n)throw new Error("Expected not to find a document already present for an add");return[4,o._collection.insertAsync(u({_id:t},e.fields))];case 9:s.sent();
79return[3,16];case 10:if("removed"!==e.msg)return[3,12];if(!n)throw new Error("Expected to find a document already present for removed");return[4,o._collection.removeAsync(t)];case 11:s.sent();return[3,16];case 12:if("changed"!==e.msg)return[3,15];if(!n)throw new Error("Expected to find a document to change");a=Object.keys(e.fields);if(!(a.length>0))return[3,14];l={};a.forEach(function(t){var o=e.fields[t];if(r.equals(n[t],o))return;if(void 0===o){if(!l.$unset)l.$unset={};l.$unset[t]=1}else{if(!l.$set)l.$set={};l.$set[t]=o}});if(!(Object.keys(l).length>0))return[3,14];return[4,o._collection.updateAsync(t,l)];case 13:s.sent();s.label=14;case 14:return[3,16];case 15:throw new Error("I don't know how to deal with this message");case 16:return[2]}})})()},endUpdate:function(){return a(function(){return d(this,function(e){switch(e.label){case 0:return[4,o._collection.resumeObserversServer()];case 1:e.sent();return[2]}})})()},getDoc:function(e){return a(function(){return d(this,function(t){return[2,o.findOneAsync(e)]})})()}},i);f=e.isClient?o._connection.registerStoreClient(t,l):o._connection.registerStoreServer(t,s);h='There is already a collection named "'.concat(t,'"');p=function(){console.warn?console.warn(h):console.log(h)};if(!f)return[2,p()];return[2,null==f?void 0:null==(n=f.then)?void 0:n.call(f,function(e){if(!e)p()})]})}).call(this)}}},
79"methods_sync.js":function(t,n,r){r.export({SyncMethods:function(){return s}});function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function c(e,t){if(null!=t&&void 0!==f&&t[f.hasInstance])return!!t[f.hasInstance](e);return e instanceof t}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function u(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else l(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}var s={find:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._collection.find(this._getFindSelector(t),this._getFindOptions(t))},findOne:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._collection.findOne(this._getFindSelector(t),this._getFindOptions(t))},_insert:function(t,n){if(!t)throw new Error("insert requires an argument");t=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t));if("_id"in t){if(!t._id||!("string"==typeof t._id||c(t._id,p.ObjectID)))throw new Error("Meteor requires document _id fields to be non-empty strings or ObjectIDs")}else{var r=true;if(this._isRemoteCollection()){var o=i._CurrentMethodInvocation.get();if(!o)r=false}if(r)t._id=this._makeNewID()}var a=function(n){if(e._isPromise(n))return n;if(t._id)return t._id;t._id=n;return n};var l=d(n,a);if(this._isRemoteCollection()){var u=this._callMutatorMethod("insert",[t],l);return a(u)}try{var s;if(l)this._collection.insert(t,l);else s=this._collection.insert(t);return a(s)}catch(e){if(n){n(e);return null}throw e}},insert:function(e,t){return this._insert(e,t)},update:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=h(r);var l=a({},r[0]||null);var u;if(l&&l.upsert){if(l.insertedId){if(!("string"==typeof l.insertedId||c(l.insertedId,p.ObjectID)))throw new Error("insertedId must be string or ObjectID");u=l.insertedId}else if(!e||!e._id){u=this._makeNewID();l.generatedId=true;l.insertedId=u}}e=p.Collection._rewriteSelector(e,{fallbackId:u});var s=d(i);if(this._isRemoteCollection()){var f=[e,t,l];return this._callMutatorMethod("update",f,i)}try{return this._collection.update(e,t,l,s)}catch(e){if(i){i(e);return null}throw e}},remove:function(e,t){e=p.Collection._rewriteSelector(e);if(this._isRemoteCollection())return this._callMutatorMethod("remove",[e],t);return this._collection.remove(e)},upsert:function(e,t,n,r){if(!r&&"function"==typeof n){r=n;n={}}return this.update(e,t,u(a({},n),{_returnObject:true,upsert:true}))}};function d(e,t){return e&&function(n,r){if(n)e(n);else"function"==typeof t?e(n,t(r)):e(n,r)}}function h(e){if(e.length&&(void 0===e[e.length-1]||c(e[e.length-1],Function)))return e.pop()}}},
79"mongo_utils.js":function(e,t,n){n.export({normalizeProjection:function(){return a}});function r(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var o=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));o.forEach(function(t){r(e,t,n[t])})}return e}function i(e,t){if(null==e)return{};var n=c(e,t);var r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){r=i[o];if(!(t.indexOf(r)>=0)){if(Object.prototype.propertyIsEnumerable.call(e,r))n[r]=e[r]}}}return n}function c(e,t){if(null==e)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(!(t.indexOf(o)>=0))n[o]=e[o]}return n}var a=function(e){var t=e||{},n=t.fields,r=t.projection,c=i(t,["fields","projection"]);return o({},c,r||n?{projection:n||r}:{})}}}}}},{extensions:[".js",".json",".ts"]});return{export:function(){return{Mongo:p,CollectionExtensions:h}},require:y,eagerModulePaths:["/node_modules/meteor/mongo/local_collection_driver.js","/node_modules/meteor/mongo/collection/collection_extensions.js","/node_modules/meteor/mongo/collection/collection.js"]}});
80
81Package["core-runtime"].queue("blaze-html-templates",function(){return{}});
82
83Package["core-runtime"].queue("reactive-var",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.tracker.Tracker;Package.tracker.Deps;var t;(function(){t=function(r,n){if(!(this instanceof t))return new t(r,n);this.curValue=r;this.equalsFunc=n;this.dep=new e.Dependency};t._isEqual=function(e,t){var r=e,n=t;if(r!==n)return false;return!r||"number"==typeof r||"boolean"==typeof r||"string"==typeof r};t.prototype.get=function(){if(e.active)this.dep.depend();return this.curValue};t.prototype.set=function(e){var r=this.curValue;if((this.equalsFunc||t._isEqual)(r,e))return;this.curValue=e;this.dep.changed()};t.prototype.toString=function(){return"ReactiveVar{"+this.get()+"}"};t.prototype._numListeners=function(){var e=0;for(var t in this.dep._dependentsById)e++;return e}}).call(this);return{export:function(){return{ReactiveVar:t}}}});
84
85Package["core-runtime"].queue("minifier-css",function(){var e;return{export:function(){return{CssTools:e}}}});
86
87Package["core-runtime"].queue("standard-minifier-css",function(){return{}});
88
89Package["core-runtime"].queue("standard-minifier-js",function(){return{}});
90
91Package["core-runtime"].queue("shell-server",function(){return{}});
92
93Package["core-runtime"].queue("jquery",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var r,o;var t=e({node_modules:{meteor:{jquery:{
93"client.js":function(e){r=o=window.jQuery||e("jquery")}}}}},{extensions:[".js",".json"]});return{export:function(){return{$:r,jQuery:o}},require:t,eagerModulePaths:["/node_modules/meteor/jquery/client.js"]}});
94
95Package["core-runtime"].queue("observe-sequence",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.tracker.Tracker;Package.tracker.Deps;var r=Package["mongo-id"].MongoID;Package["diff-sequence"].DiffSequence;var n=Package.random.Random;var t=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var i=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var a,o,u,f;var c=t({node_modules:{meteor:{"observe-sequence":{
95"observe_sequence.js":function(){function t(e,r){if(null==r||r>e.length)r=e.length;for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function c(e){if(Array.isArray(e))return e}function s(e,r){if(null!=r&&void 0!==i&&r[i.hasInstance])return!!r[i.hasInstance](e);return e instanceof r}function l(e,r){var n=null==e?null:void 0!==i&&e[i.iterator]||e["@@iterator"];if(null==n)return;var t=[];var a=true;var o=false;var u,f;try{for(n=n.call(e);!(a=(u=n.next()).done);a=true){t.push(u.value);if(r&&t.length===r)break}}catch(e){o=true;f=e}finally{try{if(!a&&null!=n["return"])n["return"]()}finally{if(o)throw f}}return t}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,r){return c(e)||l(e,r)||g(e,r)||d()}function m(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}function g(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}var y=function(e){var r=void 0===e?"undefined":m(e);return null!=e&&("object"==r||"function"==r)};var p=function(e,r){var n=Array.isArray(r)?r:[r];var t=n.length;for(var i=0;i<t;i++){var a=n[i];var o=null!=e&&Object.hasOwnProperty.call(e,a);if(!o)return false;e=e[a]}return!!t};var h=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(a._suppressWarnings)a._suppressWarnings--;else{if("undefined"!=typeof console&&console.warn)console.warn.apply(console,r);a._loggedWarnings++}};function b(e){return s(e,Array)||Array.isArray(e)}function _(e){var r=void 0!==i&&i.iterator;return r&&s(e,Object)&&"function"==typeof e[r]}var A=r.idStringify;var k=r.idParse;a={_suppressWarnings:0,_loggedWarnings:0,observe:function(r,n){var t=null;var i=null;var a=[];var c=e.autorun(function(){var c=r();e.nonreactive(function(){var e;if(i){a=t.fetch().map(function(e){return{_id:e._id,item:e}});i.stop();i=null}if(c)if(b(c))e=u(a,c,n);else if(E(c)){var r=f(a,c,n);e=r[0];i=r[1]}else if(_(c)){var s=Array.from(c);e=u(a,s,n)}else throw S(c);else e=o(a,n);I(a,e,n);t=c;a=e})});return{stop:function(){c.stop();if(i)i.stop()}}},fetch:function(e){if(!e)return[];if(b(e))return e;if(E(e))return e.fetch();if(_(e))return Array.from(e);throw S(e)}};function P(e,r){if(!r)r=100;if(e.length<r)return e;return e.substr(0,r-1)+"…"}function j(e,r){var n="",t="";for(var i=0;i<e.length;i++){var a=e[i];n+=t+w(a,r);if(n.length>r)break;t=", "}return n}function w(e,r){if(!r)r=150;var n=void 0===e?"undefined":m(e);switch(n){case"undefined":return n;case"number":return e.toString();case"string":return JSON.stringify(e);case"object":if(null===e)return"null";if(Array.isArray(e))return"Array ["+j(e,r)+"]";if(i.iterator in e)return e.constructor.name+" ["+j(Array.from(e),r)+"]";else return e.constructor.name+" "+P(JSON.stringify(e),r);default:return n+": "+e.toString()}}function O(e){try{return" Got "+w(e)}catch(e){return""}}var S=function(e){return new Error("{{#each}} currently only accepts arrays, cursors, iterables or falsey values."+O(e))};var q=function(e){return"function"==typeof e};var E=function(e){return e&&y(e)&&q(e.observe)&&q(e.fetch)};var I=function(e,r,n){var t=Package["diff-sequence"].DiffSequence.diffQueryOrderedChanges;var i=[];var a=[];var o={};var u={};var f={};var c=e.length;r.forEach(function(e,r){a.push({_id:e._id});u[A(e._id)]=r});e.forEach(function(e,r){i.push({_id:e._id});o[A(e._id)]=r;f[A(e._id)]=r});t(i,a,{addedBefore:function(e,t,i){var a=i?f[A(i)]:c;if(i)Object.entries(f).forEach(function(e){var r=v(e,2),n=r[0],t=r[1];if(t>=a)f[n]++});c++;f[A(e)]=a;n.addedAt(e,r[u[A(e)]].item,a,i)},movedBefore:function(e,t){if(e===t)return;var i=f[A(e)];var a=t?f[A(t)]:c;if(a>i)a--;Object.entries(f).forEach(function(e){var r=v(e,2),n=r[0],t=r[1];if(i<t&&t<a)f[n]--;else if(a<=t&&t<i)f[n]++});f[A(e)]=a;n.movedTo(e,r[u[A(e)]].item,i,a,t)},removed:function(r){var t=f[A(r)];Object.entries(f).forEach(function(e){var r=v(e,2),n=r[0],i=r[1];if(i>=t)f[n]--});delete f[A(r)];c--;n.removedAt(r,e[o[A(r)]].item,t)}});Object.entries(u).forEach(function(t){var i=v(t,2),a=i[0],u=i[1];var f=k(a);if(p(o,a)){var c=r[u].item;var s=e[o[a]].item;if((void 0===c?"undefined":m(c))==="object"||c!==s)n.changedAt(f,c,s,u)}})};o=function(e,r){return[]};u=function(e,r,t){var i={};var a=r.map(function(e,t){var a;if("string"==typeof e)a="-"+e;else if("number"==typeof e||"boolean"==typeof e||null==e)a=e;else if((void 0===e?"undefined":m(e))==="object")a=e&&"_id"in e?e._id:t;else throw new Error("{{#each}} doesn't support arrays with elements of type "+(void 0===e?"undefined":m(e)));var o=A(a);if(i[o]){if(e&&(void 0===e?"undefined":m(e))==="object"&&"_id"in e)h("duplicate id "+a+" in",r);a=n.id()}else i[o]=true;return{_id:a,item:e}});return a};f=function(e,r,n){var t=true;var i=[];var a=r.observe({addedAt:function(e,r,a){if(t){if(null!==a)throw new Error("Expected initial data from observe in order");i.push({_id:e._id,item:e})}else n.addedAt(e._id,e,r,a)},changedAt:function(e,r,t){n.changedAt(e._id,e,r,t)},removedAt:function(e,r){n.removedAt(e._id,e,r)},movedTo:function(e,r,t,i){n.movedTo(e._id,e,r,t,i)}});t=false;return[i,a]}}}}}},{extensions:[".js",".json"]});return{export:function(){return{ObserveSequence:a}},require:c,eagerModulePaths:["/node_modules/meteor/observe-sequence/observe_sequence.js"]}});
96
97Package["core-runtime"].queue("htmljs",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var e=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;var n=Package["ecmascript-runtime-client"].Set;var r;var i=t({node_modules:{meteor:{htmljs:{
97"preamble.js":function(t,e,n){n.export({HTML:function(){return V}});var r,i,o,a,u,s,f,c,l,h,m,v,p,d,y,g,T,b,w,j,A,E;n.link("./html",{HTMLTags:function(t){r=t},Tag:function(t){i=t},Attrs:function(t){o=t},getTag:function(t){a=t},ensureTag:function(t){u=t},isTagEnsured:function(t){s=t},getSymbolName:function(t){f=t},knownHTMLElementNames:function(t){c=t},knownSVGElementNames:function(t){l=t},knownElementNames:function(t){h=t},voidElementNames:function(t){m=t},isKnownElement:function(t){v=t},isKnownSVGElement:function(t){p=t},isVoidElement:function(t){d=t},CharRef:function(t){y=t},Comment:function(t){g=t},Raw:function(t){T=t},isArray:function(t){b=t},isConstructedObject:function(t){w=t},isNully:function(t){j=t},isValidAttributeName:function(t){A=t},flattenAttributes:function(t){E=t}},0);var x,C,M,k,R,N,O;n.link("./visitors",{Visitor:function(t){x=t},TransformingVisitor:function(t){C=t},ToHTMLVisitor:function(t){M=t},ToTextVisitor:function(t){k=t},toHTML:function(t){R=t},TEXTMODE:function(t){N=t},toText:function(t){O=t}},1);var V=Object.assign(r,{Tag:i,Attrs:o,getTag:a,ensureTag:u,isTagEnsured:s,getSymbolName:f,knownHTMLElementNames:c,knownSVGElementNames:l,knownElementNames:h,voidElementNames:m,isKnownElement:v,isKnownSVGElement:p,isVoidElement:d,CharRef:y,Comment:g,Raw:T,isArray:b,isConstructedObject:w,isNully:j,isValidAttributeName:A,flattenAttributes:E,toHTML:R,TEXTMODE:N,toText:O,Visitor:x,TransformingVisitor:C,ToHTMLVisitor:M,ToTextVisitor:k})},
97"html.js":function(t,r,i){i.export({Tag:function(){return u},Attrs:function(){return f},HTMLTags:function(){return c},getTag:function(){return l},ensureTag:function(){return h},isTagEnsured:function(){return m},getSymbolName:function(){return v},knownHTMLElementNames:function(){return p},knownSVGElementNames:function(){return d},knownElementNames:function(){return y},voidElementNames:function(){return g},isKnownElement:function(){return j},isKnownSVGElement:function(){return A},isVoidElement:function(){return E},CharRef:function(){return x},Comment:function(){return C},Raw:function(){return M},isArray:function(){return k},isConstructedObject:function(){return R},isNully:function(){return N},isValidAttributeName:function(){return O},flattenAttributes:function(){return V}});function o(t,n){if(null!=n&&void 0!==e&&n[e.hasInstance])return!!n[e.hasInstance](t);return t instanceof n}function a(t){return t&&void 0!==e&&t.constructor===e?"symbol":typeof t}var u=function(){};u.prototype.tagName="";u.prototype.attrs=null;u.prototype.children=Object.freeze?Object.freeze([]):[];u.prototype.htmljsType=u.htmljsType=["Tag"];var s=function(t){var e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=o(this,u)?this:new e;var s=0;var c=n.length&&n[0];if(c&&(void 0===c?"undefined":a(c))==="object")if(R(c)){if(o(c,f)){var l=c.value;if(1===l.length)i.attrs=l[0];else if(l.length>1)i.attrs=l;s++}}else{i.attrs=c;s++}if(s<n.length)i.children=n.slice(s);return i};e.prototype=new u;e.prototype.constructor=e;e.prototype.tagName=t;return e};function f(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=o(this,f)?this:new f;r.value=e;return r}var c={};function l(t){var e=v(t);if(e===t)throw new Error("Use the lowercase or camelCase form of '"+t+"' here");if(!c[e])c[e]=s(t);return c[e]}function h(t){l(t)}function m(t){return j(t)}function v(t){return t.toUpperCase().replace(/-/g,"_")}var p="a abbr acronym address applet area article aside audio b base basefont bdi bdo big blockquote body br button canvas caption center cite code col colgroup command data datagrid datalist dd del details dfn dir div dl dt em embed eventsource fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins isindex kbd keygen label legend li link main map mark menu meta meter nav noframes noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strike strong style sub summary sup table tbody td textarea tfoot th thead time title tr track tt u ul var video wbr".split(" ");var d="altGlyph altGlyphDef altGlyphItem animate animateColor animateMotion animateTransform circle clipPath color-profile cursor defs desc ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font font-face font-face-format font-face-name font-face-src font-face-uri foreignObject g glyph glyphRef hkern image line linearGradient marker mask metadata missing-glyph path pattern polygon polyline radialGradient rect set stop style svg switch symbol text textPath title tref tspan use view vkern".split(" ");var y=p.concat(d);var g="area base br col command embed hr img input keygen link meta param source track wbr".split(" ");var T=new n(g);var b=new n(y);var w=new n(d);function j(t){return b.has(t)}function A(t){return w.has(t)}function E(t){return T.has(t)}y.forEach(h);function x(t){if(!o(this,x))return new x(t);if(!(t&&t.html&&t.str))throw new Error("HTML.CharRef must be constructed with ({html:..., str:...})");this.html=t.html;this.str=t.str}x.prototype.htmljsType=x.htmljsType=["CharRef"];function C(t){if(!o(this,C))return new C(t);if("string"!=typeof t)throw new Error("HTML.Comment must be constructed with a string");this.value=t;this.sanitizedValue=t.replace(/^-|--+|-$/g,"")}C.prototype.htmljsType=C.htmljsType=["Comment"];function M(t){if(!o(this,M))return new M(t);if("string"!=typeof t)throw new Error("HTML.Raw must be constructed with a string");this.value=t}M.prototype.htmljsType=M.htmljsType=["Raw"];function k(t){return o(t,Array)||Array.isArray(t)}function R(t){if(!t||(void 0===t?"undefined":a(t))!=="object")return false;var e=false;if(null===Object.getPrototypeOf(t))e=true;else{var n=t;while(null!==Object.getPrototypeOf(n))n=Object.getPrototypeOf(n);e=Object.getPrototypeOf(t)===n}return!e&&"function"==typeof t.constructor&&o(t,t.constructor)}function N(t){if(null==t)return true;if(k(t)){for(var e=0;e<t.length;e++)if(!N(t[e]))return false;return true}return false}function O(t){return/^[:_A-Za-z][:_A-Za-z0-9.\-]*/.test(t)}function V(t){if(!t)return t;var e=k(t);if(e&&0===t.length)return null;var n={};for(var r=0,i=e?t.length:1;r<i;r++){var o=e?t[r]:t;if((void 0===o?"undefined":a(o))!=="object"||R(o))throw new Error("Expected plain JS object as attrs, found: "+o);for(var u in o){if(!O(u))throw new Error("Illegal HTML attribute name: "+u);var s=o[u];if(!N(s))n[u]=s}}return n}},
97"visitors.js":function(t,n,r){r.export({Visitor:function(){return R},TransformingVisitor:function(){return N},ToTextVisitor:function(){return O},ToHTMLVisitor:function(){return V},toHTML:function(){return L},TEXTMODE:function(){return P},toText:function(){return H}});var i,o,a,u,s,f,c,l,h;r.link("./html",{Tag:function(t){i=t},CharRef:function(t){o=t},Comment:function(t){a=t},Raw:function(t){u=t},isArray:function(t){s=t},getTag:function(t){f=t},isConstructedObject:function(t){c=t},flattenAttributes:function(t){l=t},isVoidElement:function(t){h=t}},0);function m(t,e){if(null==e||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t){if(Array.isArray(t))return t}function p(t){if(Array.isArray(t))return m(t)}function d(t){if(void 0!==e&&null!=t[e.iterator]||null!=t["@@iterator"])return Array.from(t)}function y(t,n){var r=null==t?null:void 0!==e&&t[e.iterator]||t["@@iterator"];if(null==r)return;var i=[];var o=true;var a=false;var u,s;try{for(r=r.call(t);!(o=(u=r.next()).done);o=true){i.push(u.value);if(n&&i.length===n)break}}catch(t){a=true;s=t}finally{try{if(!o&&null!=r["return"])r["return"]()}finally{if(a)throw s}}return i}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(t,e){return v(t)||y(t,e)||E(t,e)||g()}function w(t){return v(t)||d(t)||E(t)||g()}function j(t){return p(t)||d(t)||E(t)||T()}function A(t){return t&&void 0!==e&&t.constructor===e?"symbol":typeof t}function E(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor)n=t.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}var x=function(t){return!!t&&"function"==typeof t.then};var C=function(t){return t};var M=Object.prototype.hasOwnProperty;var k=function(t,e){for(var n in e)if(M.call(e,n))t[n]=e[n];return t};var R=function(t){k(this,t)};R.def=function(t){k(this.prototype,t)};R.extend=function(t){var e=this;var n=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];R.apply(this,e)};n.prototype=new e;n.extend=e.extend;n.def=e.def;if(t)k(n.prototype,t);return n};R.def({visit:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=b(e,1),f=r[0];if(null==f)return this.visitNull.apply(this,e);if((void 0===f?"undefined":A(f))==="object"){if(f.htmljsType)switch(f.htmljsType){case i.htmljsType:return this.visitTag.apply(this,e);case o.htmljsType:return this.visitCharRef.apply(this,e);case a.htmljsType:return this.visitComment.apply(this,e);case u.htmljsType:return this.visitRaw.apply(this,e);default:throw new Error("Unknown htmljs type: "+f.htmljsType)}if(s(f))return this.visitArray.apply(this,e);return this.visitObject.apply(this,e)}if("string"==typeof f||"boolean"==typeof f||"number"==typeof f)return this.visitPrimitive.apply(this,e);if("function"==typeof f)return this.visitFunction.apply(this,e);throw new Error("Unexpected object in htmljs: "+f)},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)}});var N=R.extend();N.def({visitNull:C,visitPrimitive:C,visitArray:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=t;for(var o=0;o<t.length;o++){var a=t[o];var u=this.visit.apply(this,[a].concat(j(n)));if(u!==a){if(i===t)i=t.slice();i[o]=u}}return i},visitComment:C,visitCharRef:C,visitRaw:C,visitObject:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(null!=t.textMode)return t;if("content"in t)t.content=this.visit.apply(this,[t.content].concat(j(n)));if("elseContent"in t)t.elseContent=this.visit.apply(this,[t.elseContent].concat(j(n)));return t},visitFunction:C,visitTag:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=t.children;var o=this.visitChildren.apply(this,[i].concat(j(n)));var a=t.attrs;var u=this.visitAttributes.apply(this,[a].concat(j(n)));if(u===a&&o===i)return t;var s=f(t.tagName).apply(null,o);s.attrs=u;return s}
97,visitChildren:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return this.visitArray.apply(this,[t].concat(j(n)))},visitAttributes:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=w(e),i=r[0],o=r.slice(1);if(x(i))return i;if(s(i)){var a=i;for(var u=0;u<i.length;u++){var f=i[u];var l=this.visitAttributes.apply(this,[f].concat(j(o)));if(l!==f){if(a===i)a=i.slice();a[u]=l}}return a}if(i&&c(i))throw new Error("The basic TransformingVisitor does not support foreign objects in attributes.  Define a custom visitAttributes for this case.");var h=i;var m=h;if(h){var v=[null,null];v.push.apply(v,e);for(var p in h){var d=h[p];v[0]=p;v[1]=d;var y=this.visitAttribute.apply(this,v);if(y!==d){if(m===h)m=k({},h);m[p]=y}}}return m},visitAttribute:function(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return this.visit.apply(this,[e].concat(j(i)))}});var O=R.extend();O.def({visitNull:function(t){return""},visitPrimitive:function(t){var e=String(t);if(this.textMode===P.RCDATA)return e.replace(/&/g,"&amp;").replace(/</g,"&lt;");if(this.textMode===P.ATTRIBUTE)return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;");return e},visitArray:function(t){var e=[];for(var n=0;n<t.length;n++)e.push(this.visit(t[n]));return e.join("")},visitComment:function(t){throw new Error("Can't have a comment here")},visitCharRef:function(t){if(this.textMode===P.RCDATA||this.textMode===P.ATTRIBUTE)return t.html;return 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 L(t)}});var V=R.extend();V.def({visitNull:function(t){return""},visitPrimitive:function(t){var e=String(t);return e.replace(/&/g,"&amp;").replace(/</g,"&lt;")},visitArray:function(t){var e=[];for(var n=0;n<t.length;n++)e.push(this.visit(t[n]));return e.join("")},visitComment:function(t){return"\x3c!--"+t.sanitizedValue+"--\x3e"},visitCharRef:function(t){return t.html},visitRaw:function(t){return t.value},visitTag:function(t){var e=[];var n=t.tagName;var r=t.children;var i=t.attrs;if(i){i=l(i);for(var o in i)if("value"===o&&"textarea"===n)r=[i[o],r];else{var a=this.toText(i[o],P.ATTRIBUTE);e.push(" "+o+'="'+a+'"')}}var u="<"+n+e.join("")+">";var s=[];var f;if("textarea"===n){for(var c=0;c<r.length;c++)s.push(this.toText(r[c],P.RCDATA));f=s.join("");if("\n"===f.slice(0,1))f="\n"+f}else{for(var c=0;c<r.length;c++)s.push(this.visit(r[c]));f=s.join("")}var m=u+f;if(r.length||!h(n))m+="</"+n+">";return m},visitObject:function(t){throw new Error("Unexpected object in htmljs in toHTML: "+t)},toText:function(t,e){return H(t,e)}});function L(t){return(new V).visit(t)}var P={STRING:1,RCDATA:2,ATTRIBUTE:3};function H(t,e){if(!e)throw new Error("textMode required for HTML.toText");if(!(e===P.STRING||e===P.RCDATA||e===P.ATTRIBUTE))throw new Error("Unknown textMode: "+e);var n=new O({textMode:e});return n.visit(t)}}}}}},{extensions:[".js",".json"]});return{export:function(){return{HTML:r}},require:i,eagerModulePaths:["/node_modules/meteor/htmljs/preamble.js"],mainModulePath:"/node_modules/meteor/htmljs/preamble.js"}});
98
99Package["core-runtime"].queue("blaze",function(){var e=Package.meteor.Meteor;var t=Package.meteor.global;Package.meteor.meteorEnv;var n=Package.tracker.Tracker;Package.tracker.Deps;Package.check.check;var r=Package.check.Match;var a=Package["observe-sequence"].ObserveSequence;var i=Package["reactive-var"].ReactiveVar;Package["ordered-dict"].OrderedDict;var o=Package.htmljs.HTML;var u=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var l=Package.promise.Promise;var s=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var c,f,p,d,h;var v=u({node_modules:{meteor:{blaze:{
99"preamble.js":function(){function e(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function r(e){if(void 0!==s&&null!=e[s.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){return t(e)||r(e)||l(e)||a()}function u(e){return n(e)||r(e)||l(e)||i()}function l(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor)r=t.constructor.name;if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}c={};c._escape=function(){var e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;","&":"&amp;"};var t=function(t){return e[t]};return function(e){return e.replace(/[&<>"'`]/g,t)}}();c._warn=function(e){e="Warning: "+e;if("undefined"!=typeof console&&console.warn)console.warn(e)};var f=Function.prototype.bind;if(f)c._bind=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=o(t),a=r[0],i=r[1],l=r.slice(2);if(2===t.length)return f.call(a,i);return f.apply(a,[i].concat(u(l)))};else c._bind=function(e,t){e.bind(t)}},
99"dombackend.js":function(){var e={};c._DOMBackend=e;var t="undefined"!=typeof jQuery?jQuery:"undefined"!=typeof Package?Package.jquery&&Package.jquery.jQuery:null;if(!t)throw new Error("jQuery not found");e._$jq=t;e.getContext=function(){if(e._context)return e._context;if(e._$jq.support.createHTMLDocument){e._context=document.implementation.createHTMLDocument("");var t=e._context.createElement("base");t.href=document.location.href;e._context.head.appendChild(t)}else e._context=document;return e._context};e.parseHTML=function(n){return t.parseHTML(n,e.getContext())||[]};e.Events={delegateEvents:function(e,n,r,a){t(e).on(n,r,a)},undelegateEvents:function(e,n,r){t(e).off(n,"**",r)},bindEventCapturer:function(n,r,a,i){var o=t(n);var u=function(e){e=t.event.fix(e);e.currentTarget=e.target;var r=t(e.currentTarget);if(r.is(o.find(a)))i.call(n,e)};i._meteorui_wrapper=u;r=e.Events.parseEventType(r);n.addEventListener(r,u,true)},unbindEventCapturer:function(t,n,r){n=e.Events.parseEventType(n);t.removeEventListener(n,r._meteorui_wrapper,true)},parseEventType:function(e){var t=e.indexOf(".");if(t>=0)return e.slice(0,t);return e}};var n=function(){};var 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(a,i){var o=new r(i);var u=e.Teardown._CB_PROP;if(!a[u]){a[u]=new r;t(a).on(e.Teardown._JQUERY_EVENT_NAME,n)}o.linkBefore(a[u]);return o},tearDownElement:function(e){var n=[];var r=e.getElementsByTagName("*");for(var a=0;a<r.length;a++)n.push(r[a]);n.push(e);t.cleanData(n)}};t.event.special[e.Teardown._JQUERY_EVENT_NAME]={setup:function(){},teardown:function(){var t=this;var n=t[e.Teardown._CB_PROP];if(n){var r=n.next;while(r!==n){r.go();r=r.next}n.go();t[e.Teardown._CB_PROP]=null}}};e.findBySelector=function(e,n){return t(e,n)}},
99"domrange.js":function(){function e(e,t){if(null!=t&&void 0!==s&&t[s.hasInstance])return!!t[s.hasInstance](e);return e instanceof t}var t=Object.freeze?Object.freeze([]):[];c._DOMRange=function(r){if(!e(this,n))return new n(r);var a=r||t;if(!(a&&"number"==typeof a.length))throw new Error("Expected array");for(var i=0;i<a.length;i++)this._memberIn(a[i]);this.members=a;this.emptyRangePlaceholder=null;this.attached=false;this.parentElement=null;this.parentRange=null;this.attachedCallbacks=t};var n=c._DOMRange;n._USE_COMMENT_PLACEHOLDERS=function(){var e=false;var t=document.createTextNode("");try{t.someProp=true}catch(t){e=true}return e}();n._insert=function(t,r,a,i){var o=t;if(e(o,n))o.attach(r,a,i);else if(i)n._moveNodeWithHooks(o,r,a);else n._insertNodeWithHooks(o,r,a)};n._remove=function(t){var r=t;if(e(r,n))r.detach();else n._removeNodeWithHooks(r)};n._removeNodeWithHooks=function(e){if(!e.parentNode)return;if(1===e.nodeType&&e.parentNode._uihooks&&e.parentNode._uihooks.removeElement)e.parentNode._uihooks.removeElement(e);else e.parentNode.removeChild(e)};n._insertNodeWithHooks=function(e,t,n){n=n||null;if(1===e.nodeType&&t._uihooks&&t._uihooks.insertElement)t._uihooks.insertElement(e,n);else t.insertBefore(e,n)};n._moveNodeWithHooks=function(e,t,n){if(e.parentNode!==t)return;n=n||null;if(1===e.nodeType&&t._uihooks&&t._uihooks.moveElement)t._uihooks.moveElement(e,n);else t.insertBefore(e,n)};n.forElement=function(e){if(1!==e.nodeType)throw new Error("Expected element, found: "+e);var t=null;while(e&&!t){t=e.$blaze_range||null;if(!t)e=e.parentNode}return t};n.prototype.attach=function(e,t,r,a){if(r||a){if(!(this.parentElement===e&&this.attached))throw new Error("Can only move or replace an attached DOMRange, and only under the same parent element")}var i=this.members;if(i.length){this.emptyRangePlaceholder=null;for(var o=0;o<i.length;o++)n._insert(i[o],e,t,r)}else{var u=n._USE_COMMENT_PLACEHOLDERS?document.createComment(""):document.createTextNode("");this.emptyRangePlaceholder=u;e.insertBefore(u,t||null)}this.attached=true;this.parentElement=e;if(!(r||a))for(var l=0;l<this.attachedCallbacks.length;l++){var s=this.attachedCallbacks[l];s.attached&&s.attached(this,e)}};n.prototype.setMembers=function(e){var t=e;if(!(t&&"number"==typeof t.length))throw new Error("Expected array");var n=this.members;for(var r=0;r<n.length;r++)this._memberOut(n[r]);for(var a=0;a<t.length;a++)this._memberIn(t[a]);if(this.attached){if(t.length||n.length){var i=this.lastNode().nextSibling;var o=this.parentElement;this.detach(true);this.members=t;this.attach(o,i,false,true)}}else this.members=t};n.prototype.firstNode=function(){if(!this.attached)throw new Error("Mu
99st be attached");if(!this.members.length)return this.emptyRangePlaceholder;var t=this.members[0];return e(t,n)?t.firstNode():t};n.prototype.lastNode=function(){if(!this.attached)throw new Error("Must be attached");if(!this.members.length)return this.emptyRangePlaceholder;var t=this.members[this.members.length-1];return e(t,n)?t.lastNode():t};n.prototype.detach=function(e){if(!this.attached)throw new Error("Must be attached");var t=this.parentElement;var r=this.members;if(r.length)for(var a=0;a<r.length;a++)n._remove(r[a]);else{var i=this.emptyRangePlaceholder;this.parentElement.removeChild(i);this.emptyRangePlaceholder=null}if(!e){this.attached=false;this.parentElement=null;for(var o=0;o<this.attachedCallbacks.length;o++){var u=this.attachedCallbacks[o];u.detached&&u.detached(this,t)}}};n.prototype.addMember=function(t,r,a){var i=this.members;if(!(r>=0&&r<=i.length))throw new Error("Bad index in range.addMember: "+r);if(!a)this._memberIn(t);if(this.attached)if(0===i.length)this.setMembers([t]);else{var o;if(r===i.length)o=this.lastNode().nextSibling;else{var u=i[r];o=e(u,n)?u.firstNode():u}i.splice(r,0,t);n._insert(t,this.parentElement,o,a)}else i.splice(r,0,t)};n.prototype.removeMember=function(e,r){var a=this.members;if(!(e>=0&&e<a.length))throw new Error("Bad index in range.removeMember: "+e);if(r)a.splice(e,1);else{var i=a[e];this._memberOut(i);if(1===a.length)this.setMembers(t);else{a.splice(e,1);if(this.attached)n._remove(i)}}};n.prototype.moveMember=function(e,t){var n=this.members[e];this.removeMember(e,true);this.addMember(n,t,true)};n.prototype.getMember=function(e){var t=this.members;if(!(e>=0&&e<t.length))throw new Error("Bad index in range.getMember: "+e);return this.members[e]};n.prototype._memberIn=function(t){if(e(t,n))t.parentRange=this;else if(1===t.nodeType)t.$blaze_range=this};n._destroy=function(t,r){if(e(t,n)){if(t.view)c._destroyView(t.view,r)}else if(!r&&1===t.nodeType){if(t.$blaze_range){c._destroyNode(t);t.$blaze_range=null}}};n.prototype._memberOut=n._destroy;n.prototype.destroyMembers=function(e){var t=this.members;for(var n=0;n<t.length;n++)this._memberOut(t[n],e)};n.prototype.destroy=function(e){n._destroy(this,e)};n.prototype.containsElement=function(e,t,n){var r;var a=(null==(r=this.view)?void 0:r.name)?this.view.name.split(".")[1]:"unknown template";if(!this.attached)throw new Error("".concat(n," event triggered with ").concat(t," on ").concat(a," but associated view is not be found.\n    Make sure the event doesn't destroy the view."));if(!c._elementContains(this.parentElement,e))return false;while(e.parentNode!==this.parentElement)e=e.parentNode;var i=e.$blaze_range;while(i&&i!==this)i=i.parentRange;return i===this};n.prototype.containsRange=function(e){if(!this.attached)throw new Error("Mu
99st be attached");if(!e.attached)return false;if(e.parentElement!==this.parentElement)return this.containsElement(e.parentElement);if(e===this)return false;while(e&&e!==this)e=e.parentRange;return e===this};n.prototype.onAttached=function(e){this.onAttachedDetached({attached:e})};n.prototype.onAttachedDetached=function(e){if(this.attachedCallbacks===t)this.attachedCallbacks=[];this.attachedCallbacks.push(e)};n.prototype.$=function(e){var t=this;var n=this.parentElement;if(!n)throw new Error("Can't select in removed DomRange");if(11===n.nodeType)throw new Error("Can't use $ on an offscreen range");var r=c._DOMBackend.findBySelector(e,n);var a=function(e){if("number"==typeof e)e=this;return t.containsElement(e)};if(r.filter)r=r.filter(a);else{var i=[];for(var o=0;o<r.length;o++){var u=r[o];if(a(u))i.push(u)}r=i}return r};c._elementContains=function(e,t){if(1!==e.nodeType)return false;if(e===t)return false;if(e.compareDocumentPosition)return 16&e.compareDocumentPosition(t);t=t.parentNode;if(!(t&&1===t.nodeType))return false;if(e===t)return true;return e.contains(t)}},
99"events.js":function(e,t,n){var r;n.link("lodash.has",{default:function(e){r=e}},0);function a(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){if(Array.isArray(e))return e}function o(e,t){var n=null==e?null:void 0!==s&&e[s.iterator]||e["@@iterator"];if(null==n)return;var r=[];var a=true;var i=false;var o,u;try{for(n=n.call(e);!(a=(o=n.next()).done);a=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;u=e}finally{try{if(!a&&null!=n["return"])n["return"]()}finally{if(i)throw u}}return r}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){return i(e)||o(e,t)||f(e,t)||u()}function f(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}var p=c._EventSupport={};var d=c._DOMBackend;var h=p.eventsToDelegate={blur:1,change:1,click:1,focus:1,focusin:1,focusout:1,reset:1,submit:1};var v=p.EVENT_MODE={TBD:0,BUBBLING:1,CAPTURING:2};var m=1;var w=function(e,t,n,a,i){this.elem=e;this.type=t;this.selector=n;this.handler=a;this.recipient=i;this.id=m++;this.mode=v.TBD;this.delegatedHandler=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=l(n,1),i=a[0];if(!e.selector&&i.currentTarget!==i.target)return;return e.handler.apply(e.recipient,n)}}(this);var o=e.addEventListener&&!r(h,d.Events.parseEventType(t));if(o)this.capturingHandler=function(e){return function(t){if(e.mode===v.TBD)if(t.bubbles){e.mode=v.BUBBLING;d.Events.unbindEventCapturer(e.elem,e.type,e.capturingHandler);return}else{e.mode=v.CAPTURING;d.Events.undelegateEvents(e.elem,e.type,e.delegatedHandler)}e.delegatedHandler(t)}}(this);else this.mode=v.BUBBLING};p.HandlerRec=w;w.prototype.bind=function(){if(this.mode!==v.BUBBLING)d.Events.bindEventCapturer(this.elem,this.type,this.selector||"*",this.capturingHandler);if(this.mode!==v.CAPTURING)d.Events.delegateEvents(this.elem,this.type,this.selector||"*",this.delegatedHandler)};w.prototype.unbind=function(){if(this.mode!==v.BUBBLING)d.Events.unbindEventCapturer(this.elem,this.type,this.capturingHandler);if(this.mode!==v.CAPTURING)d.Events.undelegateEvents(this.elem,this.type,this.delegatedHandler)};p.listen=function(e,t,n,r,a,i){var o=[];t.replace(/[^ /]+/g,function(e){o.push(e)});var u=[];for(var l=0,s=o.length;l<s;l++){var c=o[l];var f=e.$blaze_events;if(!f)f=e.$blaze_events={};var p=f[c];if(!p){p=f[c]={};p.handlers=[]}var d=p.handlers;var h=new w(e,c,n,r,a);u.push(h);h.bind();d.push(h);if(i)for(var v=i(a);v;v=i(v))for(var m=0,_=d.length;m<_;m++){var y=d[m];if(y.recipient===v){y.unbind();y.bind();d.splice(m,1);d.push(y);m--;_--}}}return{stop:function(){var t=e.$blaze_events;if(!t)return;for(var n=0;n<u.length;n++){var r=u[n];var a=t[r.type];if(a){var i=a.handlers;for(var o=i.length-1;o>=0;o--)if(i[o]===r){r.unbind();i.splice(o,1)}}}u.length=0}}}},
99"attrs.js":function(t,n,r){var a;r.link("lodash.has",{default:function(e){a=e}},0);var i;r.link("meteor/ordered-dict",{OrderedDict:function(e){i=e}},1);function o(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){if(Array.isArray(e))return e}function l(e,t){var n=null==e?null:void 0!==s&&e[s.iterator]||e["@@iterator"];if(null==n)return;var r=[];var a=true;var i=false;var o,u;try{for(n=n.call(e);!(a=(o=n.next()).done);a=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;u=e}finally{try{if(!a&&null!=n["return"])n["return"]()}finally{if(i)throw u}}return r}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){return u(e)||l(e,t)||v(e,t)||d()}function v(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}var m=false;c._allowJavascriptUrls=function(){m=true};c._javascriptUrlsAllowed=function(){return m};f=function(e,t){this.name=e;this.value=t};c._AttributeHandler=f;f.prototype.update=function(e,t,n){if(null===n){if(null!==t)e.removeAttribute(this.name)}else e.setAttribute(this.name,n)};f.extend=function(e){var t=this;var n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];f.apply(this,t)};n.prototype=new t;n.extend=t.extend;if(e)Object.assign(n.prototype,e);return n};c._DiffingAttributeHandler=f.extend({update:function(e,t,n){if(!this.getCurrentValue||!this.setValue||!this.parseValue||!this.joinValues)throw new Error("Missing methods in subclass of 'DiffingAttributeHandler'");var r=t?this.parseValue(t):new i;var a=n?this.parseValue(n):new i;var o=this.getCurrentValue(e);var u=o?this.parseValue(o):new i;u.forEach(function(e,t,n){if(a.has(t))return;if(r.has(t))return;a.append(t,e)});var l=[];a.forEach(function(e,t,n){l.push(e)});this.setValue(e,this.joinValues(l))}});var w=c._DiffingAttributeHandler.extend({getCurrentValue:function(e){return e.className},setValue:function(e,t){e.className=t},parseValue:function(e){var t=new i;e.split(" ").forEach(function(e){if(e){if(!t.has(e))t.append(e,e)}});return t},joinValues:function(e){return e.join(" ")}});var _=w.extend({getCurrentValue:function(e){return e.className.baseVal},setValue:function(e,t){e.setAttribute("class",t)}});var y=c._DiffingAttributeHandler.extend({getCurrentValue:function(e){return e.getAttribute("style")},setValue:function(e,t){if(""===t)e.removeAttribute("style");else e.setAttribute("style",t)},parseValue:function(e){var t=new i;var n=/(\*?[-#\/\*\\\w]+(?:\[[0-9a-z_-]+\])?)\s*:\s*(?:\'(?:\\\'|.)*?\'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+[;\s]*/g;var r=n.exec(e);while(r){if(t.has(r[1]))t.remove(r[1]);t.append(r[1],r[0].trim());r=n.exec(e)}return t},joinValues:function(e){return e.join(" ")}});var b=f.extend({update:function(e,t,n){var r=this.name;if(null==n){if(null!=t)e[r]=false}else e[r]=true}});var g=f.extend({update:function(e,t,n){var r=this.name;if(n!==e[r])e[r]=n}});var E=f.extend({update:function(e,t,n){var r="http://www.w3.org/1999/xlink";if(null===n){if(null!==t)e.removeAttributeNS(r,this.name)}else e.setAttributeNS(r,this.name,this.value)}});var V=function(e){return"ownerSVGElement"in e};var T=function(e,t){var n={FORM:["action"],BODY:["background"],BLOCKQUOTE:["cite"],Q:["cite"],DEL:["cite"],INS:["cite"],OBJECT:["classid","codebase","data","usemap"],APPLET:["codebase"],A:["href"],AREA:["href"],LINK:["href"],IMG:["longdesc","src","usemap"],FRAME:["longdesc","src"],IFRAME:["longdesc","src"],HEAD:["profile"],SCRIPT:["src"],INPUT:["src","usemap","formaction"],BUTTON:["formaction"],BASE:["href"],MENUITEM:["icon"],HTML:["manifest"],VIDEO:["poster"]};if("itemid"===t)return true;var r=n[e]||[];return r.includes(t)};var j;if(e.isClient)j=document.createElement("A");var x=function(t){if(e.isClient){j.href=t;return(j.protocol||"").toLowerCase()}throw new Error("getUrlProtocol not implemented on the server")};var k=f.prototype.update;var A=f.extend({update:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=h(t,3),a=r[0],i=r[1],o=r[2];var u=this;if(c._javascriptUrlsAllowed())k.apply(u,t);else{var l="javascript:"===x(o);var s="vbscript:"===x(o);if(l||s){c._warn("URLs that use the 'javascript:' or 'vbscript:' protocol are not allowed in URL attribute values. Call Blaze._allowJavascriptUrls() to enable them.");k.apply(u,[a,i,null])}else k.apply(u,t)}}});c._makeAttributeHandler=function(e,t,n){if("class"===t)if(V(e))return new _(t,n);else return new w(t,n);if("style"===t)return new y(t,n);if("OPTION"===e.tagName&&"selected"===t||"INPUT"===e.tagName&&"checked"===t||"VIDEO"===e.tagName&&"muted"===t)return new b(t,n);if(("TEXTAREA"===e.tagName||"INPUT"===e.tagName)&&"value"===t)return new g(t,n);if("xlink:"===t.substring(0,6))return new E(t.substring(6),n);else if(T(e.tagName,t))return new A(t,n);else return new f(t,n)};p=function(e){this.elem=e;this.handlers={}};p.prototype.update=function(e){var t=this.elem;var n=this.handlers;
99Object.getOwnPropertyNames(n).forEach(function(r){if(!a(e,r)){var i=n[r];var o=i.value;i.value=null;i.update(t,o,null);delete n[r]}});Object.getOwnPropertyNames(e).forEach(function(r){var i=null;var o=null;var u=e[r];if(a(n,r)){i=n[r];o=i.value}else if(null!==u){i=c._makeAttributeHandler(t,r,u);n[r]=i}if(o!==u){i.value=u;i.update(t,o,u);if(null===u)delete n[r]}})}},
99"materializer.js":function(){function e(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function r(e,t){if(null!=t&&void 0!==s&&t[s.hasInstance])return!!t[s.hasInstance](e);return e instanceof t}function a(e,t){var n=null==e?null:void 0!==s&&e[s.iterator]||e["@@iterator"];if(null==n)return;var r=[];var a=true;var i=false;var o,u;try{for(n=n.call(e);!(a=(o=n.next()).done);a=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;u=e}finally{try{if(!a&&null!=n["return"])n["return"]()}finally{if(i)throw u}}return r}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,n){return t(e)||a(e,n)||d(e,n)||i()}function f(e){return e&&void 0!==s&&e.constructor===s?"symbol":typeof e}function d(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor)r=t.constructor.name;if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}c._materializeDOM=function(e,t,n,r){var a=r||[];h(e,t,n,a);if(!r)while(a.length){var i=a.pop();i()}return t};var h=function(e,t,n,a){if(null==e)return;switch(void 0===e?"undefined":f(e)){case"string":case"boolean":case"number":t.push(document.createTextNode(String(e)));return;case"object":if(e.htmljsType)switch(e.htmljsType){case o.Tag.htmljsType:t.push(_(e,n,a));return;case o.CharRef.htmljsType:t.push(document.createTextNode(e.str));return;case o.Comment.htmljsType:t.push(document.createComment(e.sanitizedValue));return;case o.Raw.htmljsType:var i=c._DOMBackend.parseHTML(e.value);for(var u=0;u<i.length;u++)t.push(i[u]);return}else if(o.isArray(e)){for(var l=e.length-1;l>=0;l--)a.push(c._bind(c._materializeDOM,null,e[l],t,n,a));return}else{if(v(e))e=c._Await(e);else if(r(e,c.Template))e=e.constructView();if(r(e,c.View))return void c._materializeView(e,n,a,t)}}throw new Error("Unexpected object in htmljs: "+e)};var v=function(e){return!!e&&"function"==typeof e.then};function m(e,t){if(v(e))e.then(t,c._reportException);else t(e)}function w(e){if(!e||e!==Object(e))return{};if(Array.isArray(e)){var t=e.map(w);return t.some(v)?l.all(t):t}if(v(e))return e.then(w,c._reportExceptionAndThrow);var n=[];var r=true,a=false,i=void 0;try{var o=function(){var t=u(p.value,2),r=t[0],a=t[1];if(v(a))n.push(a.then(function(t){e[r]=t},c._reportExceptionAndThrow));else if(Array.isArray(a))a.forEach(function(e,t){if(v(e))n.push(e.then(function(e){a[t]=e},c._reportExceptionAndThrow))})};for(var f=Object.entries(e)[s.iterator](),p;!(r=(p=f.next()).done);r=true)o()}catch(e){a=true;i=e}finally{try{if(!r&&null!=f.return)f.return()}finally{if(a)throw i}}return n.length?l.all(n).then(function(){return e},c._reportExceptionAndThrow):e}var _=function(e,t,a){var i=e.tagName;var u;u=(o.isKnownSVGElement(i)||y(e))&&document.createElementNS?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i);var l=e.attrs;var s=e.children;if("textarea"===i&&e.children.length&&!(l&&"value"in l)){if("function"==typeof l||o.isArray(l))throw new Error("Can't have reactive children of TEXTAREA node; use the 'value' attribute instead.");l=Object.assign({},l||null);l.value=c._expand(s,t);s=[]}if(l){var f=new p(u);var d=function(){var e=c._expandAttributes(l,t);m(w(e),function(e){var n=o.flattenAttributes(e);var r={};Object.keys(n).forEach(function(e){if(null==n[e]||false===n[e])r[e]=null;else r[e]=c._toText(n[e],t,o.TEXTMODE.STRING)});f.update(r)})};var h;h=t?t.autorun(d,void 0,"updater"):n.nonreactive(function(){return n.autorun(function(){n._withCurrentView(t,d)})});c._DOMBackend.Teardown.onElementTeardown(u,function(){h.stop()})}if(s.length){var v=[];a.push(function(){for(var e=0;e<v.length;e++){var t=v[e];if(r(t,c._DOMRange))t.attach(u);else u.appendChild(t)}});a.push(c._bind(c._materializeDOM,null,s,v,t,a))}return u};var y=function(e){return"a"===e.tagName&&e.attrs&&void 0!==e.attrs["xlink:href"]}},
99"exceptions.js":function(){var t;c._throwNextException=false;c._reportException=function(n,r){if(c._throwNextException){c._throwNextException=false;throw n}if(!t)t=function(){return void 0!==e?e._debug:"undefined"!=typeof console&&console.log?console.log:function(){}};t()(r||"Exception caught in template:",n.stack||n.message||n)};c._reportExceptionAndThrow=function(e){c._reportException(e);throw e};c._wrapCatchingExceptions=function(e,t){if("function"!=typeof e)return e;return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];try{return e.apply(this,r)}catch(e){c._reportException(e,"Exception in "+t+":")}}}},
99"view.js":function(t,r,a){var i;a.link("meteor/htmljs",{HTML:function(e){i=e}},0);function o(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){if(Array.isArray(e))return e}function l(e,t){if(null!=t&&void 0!==s&&t[s.hasInstance])return!!t[s.hasInstance](e);return e instanceof t}function f(e,t){var n=null==e?null:void 0!==s&&e[s.iterator]||e["@@iterator"];if(null==n)return;var r=[];var a=true;var i=false;var o,u;try{for(n=n.call(e);!(a=(o=n.next()).done);a=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;u=e}finally{try{if(!a&&null!=n["return"])n["return"]()}finally{if(i)throw u}}return r}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){return u(e)||f(e,t)||h(e,t)||p()}function h(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}c.View=function(e,t){if(!l(this,c.View))return new c.View(e,t);if("function"==typeof e){t=e;e=""}this.name=e;this._render=t;this._callbacks={created:null,rendered:null,destroyed:null};this.isCreated=false;this._isCreatedForExpansion=false;this.isRendered=false;this._isAttached=false;this.isDestroyed=false;this._isInRender=false;this.parentView=null;this._domrange=null;this._hasGeneratedParent=false;this._scopeBindings={};this.renderCount=0};c.View.prototype._render=function(){return null};c.View.prototype.onViewCreated=function(e){this._callbacks.created=this._callbacks.created||[];this._callbacks.created.push(e)};c.View.prototype._onViewRendered=function(e){this._callbacks.rendered=this._callbacks.rendered||[];this._callbacks.rendered.push(e)};c.View.prototype.onViewReady=function(e){var t=this;var r=function(){n.afterFlush(function(){if(!t.isDestroyed)c._withCurrentView(t,function(){e.call(t)})})};t._onViewRendered(function(){if(t.isDestroyed)return;if(t._domrange.attached)r();else t._domrange.onAttached(r)})};c.View.prototype.onViewDestroyed=function(e){this._callbacks.destroyed=this._callbacks.destroyed||[];this._callbacks.destroyed.push(e)};c.View.prototype.removeViewDestroyedListener=function(e){var t=this._callbacks.destroyed;if(!t)return;var n=t.lastIndexOf(e);if(-1!==n)t[n]=null};c.View.prototype.autorun=function(e,t,r){var a=this;if(!a.isCreated)throw new Error("View#autorun must be called from the created callback at the earliest");if(this._isInRender)throw new Error("Can't call View#autorun from inside render(); try calling it from the created or rendered callback");var i=c.Template._currentTemplateInstanceFunc;var o=function(n){return c._withCurrentView(t||a,function(){return c.Template._withTemplateInstanceFunc(i,function(){return e.call(a,n)})})};o.displayName=(a.name||"anonymous")+":"+(r||"anonymous");var u=n.autorun(o);var l=function(){u.stop()};a.onViewDestroyed(l);u.onStop(function(){a.removeViewDestroyedListener(l)});return u};c.View.prototype._errorIfShouldntCallSubscribe=function(){var e=this;if(!e.isCreated)throw new Error("View#subscribe must be called from the created callback at the earliest");if(e._isInRender)throw new Error("Can't call View#subscribe from inside render(); try calling it from the created or rendered callback");if(e.isDestroyed)throw new Error("Can't call View#subscribe from inside the destroyed callback, try calling it inside created or rendered.")};c.View.prototype.subscribe=function(t,n){var r=this;n=n||{};r._errorIfShouldntCallSubscribe();var a;a=n.connection?n.connection.subscribe.apply(n.connection,t):e.subscribe.apply(e,t);r.onViewDestroyed(function(){a.stop()});return a};c.View.prototype.firstNode=function(){if(!this._isAttached)throw new Error("View must be attached before accessing its DOM");return this._domrange.firstNode()};c.View.prototype.lastNode=function(){if(!this._isAttached)throw new Error("View must be attached before accessing its DOM");return this._domrange.lastNode()};c._fireCallbacks=function(e,t){c._withCurrentView(e,function(){n.nonreactive(function(){var n=e._callbacks[t];for(var r=0,a=n&&n.length;r<a;r++)n[r]&&n[r].call(e)})})};c._createView=function(e,t,n){if(e.isCreated)throw new Error("Can't render the same View twice");e.parentView=t||null;e.isCreated=true;if(n)e._isCreatedForExpansion=true;c._fireCallbacks(e,"created")};var v=function(e,t){var n=new c._DOMRange(t);e._domrange=n;n.view=e;e.isRendered=true;c._fireCallbacks(e,"rendered");var r=null;n.onAttached(function(t,n){e._isAttached=true;r=c._DOMBackend.Teardown.onElementTeardown(n,function(){c._destroyView(e,true)})});e.onViewDestroyed(function(){if(r)r.stop();r=null});return n};c._materializeView=function(e,t,r,a){c._createView(e,t);var i;var o;n.nonreactive(function(){e.autorun(function(t){e.renderCount=e.renderCount+1;e._isInRender=true;var r=e._render();e._isInRender=false;if(!t.firstRun&&!c._isContentEqual(o,r))n.nonreactive(function(){var t=c._materializeDOM(r,[],e);i.setMembers(t);c._fireCallbacks(e,"rendered")});o=r;n.onInvalidate(function(){if(i)i.destroyMembers()})},void 0,"materialize");var t;if(r){t=[];r.push(function(){i=v(e,t);t=null;a.push(i)});r.push(c._bind(c._materializeDOM,null,o,t,e,r))}else{t=c._materializeDOM(o,[],e);i=v(e,t);t=null}});if(!r)return i;return null};c._expandView=function(e,t){c._createView(e,t,true);e._isInRender=true;var r=c._withCurrentView(e,function(){return e._render()});e._isInRender=false;var a=c._expand(r,e);if(n.active)n.onInvalidate(function(){c._destroyView(e)});else c._destroyView(e);return a};c._HTMLJSExpander=i.TransformingVisitor.extend();c._HTMLJSExpander.def({visitObject:function(e){if(l(e,c.Template))e=e.constructView();if(l(e,c.View))return c._expandView(e,this.parentView);return i.TransformingVisitor.prototype.visitObject.call(this,e)},visitAttributes:function(e){if("function"==typeof e)e=c._withCurrentView(this.parentView,e);return i.TransformingVisitor.prototype.visitAttributes.call(this,e)},visitAttribute:function(e,t,n){if("function"==typeof t)t=c._withCurrentView(this.parentView,t);return i.TransformingVisitor.prototype.visitAttribute.call(this,e,t,n)}});var m=function(){var e=c.currentView;return e&&e._isInRender?e:null};c._expand=function(e,t){t=t||m();return new c._HTMLJSExpander({parentView:t}).visit(e)};c._expandAttributes=function(e,t){t=t||m();var n=new c._HTMLJSExpander({parentView:t}).visitAttributes(e);return n||{}};c._destroyView=function(e,t){if(e.isDestroyed)return;e.isDestroyed=true;if(e._domrange)e._domrange.destroyMembers(t);c._fireCallbacks(e,"destroyed")};c._destroyNode=function(e){if(1===e.nodeType)c._DOMBackend.Teardown.tearDownElement(e)};c._isContentEqual=function(e,t){if(l(e,i.Raw))return l(t,i.Raw)&&e.value===t.value;if(null==e)return null==t;return e===t&&("number"==typeof e||"boolean"==typeof e||"string"==typeof e)};c.currentView=null;c._withCurrentView=function(e,t){var n=c.currentView;try{c.currentView=e;return t()}finally{c.currentView=n}};var w=function(e){if(null===e)throw new Error("Can't render null");if(void 0===e)throw new Error("Can't render undefined");if(l(e,c.View)||l(e,c.Template)||"function"==typeof e)return;try{(new i.Visitor).visit(e)}catch(e){throw new Error("Expected Template or View")}};var _=function(e){w(e);if(l(e,c.Template))return e.constructView();if(l(e,c.View))return e;var t=e;if("function"!=typeof t)t=function(){return e};return c.View("render",t)};var y=function(e){w(e);if("function"!=typeof e)return function(){return e};return e};c.__rootViews=[];c.render=function(e,t,n,r){if(!t)c._warn("Blaze.render without a parent element is deprecated. You must specify where to insert the rendered content.");if(l(n,c.View)){r=n;n=null}if(t&&"number"!=typeof t.nodeType)throw new Error("'parentElement' must be a DOM node");if(n&&"number"!=typeof n.nodeType)throw new Error("'nextNode' must be a DOM node");r=r||m();var a=_(e);if(!r){a.onViewCreated(function(){c.__rootViews.push(a)});a.onViewDestroyed(function(){var e=c.__rootViews.indexOf(a);if(e>-1)c.__rootViews.splice(e,1)})}c._materializeView(a,r);if(t)a._domrange.attach(t,n);return a};c.insert=function(e,t,n){c._warn("Blaze.insert has been deprecated.  Specify where to insert the rendered content in the call to Blaze.render.");if(!(e&&l(e._domrange,c._DOMRange)))throw new Error("Expected template rendered with Blaze.render");e._domrange.attach(t,n)};c.renderWithData=function(e,t,n,r,a){return c.render(c._TemplateWith(t,y(e)),n,r,a)};c.remove=function(e){if(!(e&&l(e._domrange,c._DOMRange)))throw new Error("Expected template rendered with Blaze.render");while(e){if(!e.isDestroyed){var t=e._domrange;t.destroy();if(t.attached&&!t.parentRange)t.detach()}e=e._hasGeneratedParent&&e.parentView}};c.toHTML=function(e,t){t=t||m();return i.toHTML(c._expandView(_(e),t))};c.toHTMLWithData=function(e,t,n){n=n||m();return i.toHTML(c._expandView(c._TemplateWith(t,y(e)),n))};c._toText=function(e,t,n){if("function"==typeof e)throw new Error("Blaze._toText doesn't take a function, just HTMLjs");if(null!=t&&!l(t,c.View)){n=t;t=null}t=t||m();if(!n)throw new Error("textMode required");if(!(n===i.TEXTMODE.STRING||n===i.TEXTMODE.RCDATA||n===i.TEXTMODE.ATTRIBUTE))throw new Error("Unknown textMode: "+n);return i.toText(c._expand(e,t),n)};c.getData=function(e){var t;var n;if(e)if(l(e,c.View)){var r=e;n="with"===r.name?r:c.getView(r,"with")}else if("number"==typeof e.nodeType){if(1!==e.nodeType)throw new Error("Expected DOM element");n=c.getView(e,"with")}else throw new Error("Expected DOM element or View");else n=c.getView("with");return n?null==(t=n.dataVar.get())?void 0:t.value:null};c.getElementData=function(e){c._warn("Blaze.getElementData has been deprecated.  Use Blaze.getData(element) instead.");if(1!==e.nodeType)throw new Error("Expected DOM element");return c.getData(e)};c.getView=function(e,t){var n=t;if("string"==typeof e){n=e;e=null}if(!e)return c._getCurrentView(n);if(l(e,c.View))return c._getParentView(e,n);if("number"==typeof e.nodeType)return c._getElementView(e,n);throw new Error("Expected DOM element or View")};c._getCurrentView=function(e){var t=c.currentView;if(!t)throw new Error("There is no current view");if(!e)return t;while(t&&t.name!==e)t=t.parentView;return t||null};c._getParentView=function(e,t){var n=e.parentView;if(t)while(n&&n.name!==t)n=n.parentView;return n||null};c._getElementView=function(e,t){var n=c._DOMRange.forElement(e);var r=null;while(n&&!r){r=n.view||null;if(!r)n=n.parentRange?n.parentRange:c._DOMRange.forElement(n.parentElement)}if(!t)return r;while(r&&r.name!==t)r=r.parentView;return r||null};c._addEventMap=function(e,t,n){n=n||null;var r=[];if(!e._domrange)throw new Error("View must have a DOMRange");e._domrange.onAttached(function(a,i){Object.keys(t).forEach(function(o){var u=t[o];var l=o.split(/,\s+/);l.forEach(function(t){var o=t.split(/\s+/);if(0===o.length)return;var l=o.shift();var s=o.join(" ");r.push(c._EventSupport.listen(i,l,s,function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=d(r,1),f=o[0];if(!a.containsElement(f.currentTarget,s,l))return null;var p=n||this;var h=r;return c._withCurrentView(e,function(){return u.apply(p,h)})},a,function(e){return e.parentRange}))})})});e.onViewDestroyed(function(){r.forEach(function(e){e.stop()});r.length=0})}},
99"builtins.js":function(e,t,r){var u;r.link("lodash.has",{default:function(e){u=e}},0);var l;r.link("lodash.isobject",{default:function(e){l=e}},1);function f(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){if(Array.isArray(e))return e}function d(e,t){if(null!=t&&void 0!==s&&t[s.hasInstance])return!!t[s.hasInstance](e);return e instanceof t}function h(e,t){var n=null==e?null:void 0!==s&&e[s.iterator]||e["@@iterator"];if(null==n)return;var r=[];var a=true;var i=false;var o,u;try{for(n=n.call(e);!(a=(o=n.next()).done);a=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;u=e}finally{try{if(!a&&null!=n["return"])n["return"]()}finally{if(i)throw u}}return r}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){return p(e)||h(e,t)||_(e,t)||v()}function w(e){return e&&void 0!==s&&e.constructor===s?"symbol":typeof e}function _(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}c._calculateCondition=function(e){if(o.isArray(e)&&0===e.length)return false;return!!e};c.With=function(e,t){var n=c.View("with",t);n.dataVar=null;n.onViewCreated(function(){n.dataVar=E(n,e,"setData")});return n};function y(e,t){if((void 0===e?"undefined":w(e))==="object"&&(void 0===t?"undefined":w(t))==="object")return e.error===t.error&&i._isEqual(e.value,t.value);return i._isEqual(e,t)}function b(e){return e}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;if(t&&"function"==typeof t.then)t.then(function(t){return e.set({value:n(t)})},function(t){return e.set({error:t})});else e.set({value:n(t)})}function E(e,t,n,r){var a=new i(void 0,y);if("function"==typeof t)e.autorun(function(){return g(a,t(),r)},e.parentView,n);else g(a,t,r);return a}c._attachBindingsToView=function(e,t){t.onViewCreated(function(){Object.entries(e).forEach(function(e){var n=m(e,2),r=n[0],a=n[1];t._scopeBindings[r]=E(t,a)})})};c.Let=function(e,t){var n=c.View("let",t);c._attachBindingsToView(e,n);return n};c.If=function(e,t,n,r){var a=c.View(r?"unless":"if",function(){var e=a.__conditionVar.get();if(e&&"value"in e)return e.value?t():n?n():null;return null});a.__conditionVar=null;a.onViewCreated(function(){a.__conditionVar=E(a,e,"condition",function(e){return!c._calculateCondition(e)!==!r})});return a};c.Unless=function(e,t,n){return c.If(e,t,n,true)};c.Each=function(e,t,r){var i=c.View("each",function(){var e=this.initialSubviews;this.initialSubviews=null;if(this._isCreatedForExpansion){this.expandedValueDep=new n.Dependency;this.expandedValueDep.depend()}return e});i.initialSubviews=[];i.numItems=0;i.inElseMode=false;i.stopHandle=null;i.contentFunc=t;i.elseFunc=r;i.argVar=void 0;i.variableName=null;var o=function(e,t){if(void 0===t)t=i.numItems-1;for(var n=e;n<=t;n++){var r=i._domrange.members[n].view;r._scopeBindings["@index"].set({value:n})}};i.onViewCreated(function(){i.argVar=E(i,function(){var t=e();if(l(t)&&u(t,"_sequence")){i.variableName=t._variable||null;t=t._sequence}return t},"collection");i.stopHandle=a.observe(function(){var e;return null==(e=i.argVar.get())?void 0:e.value},{addedAt:function(e,t,r){n.nonreactive(function(){var e;e=i.variableName?c.View("item",i.contentFunc):c.With(t,i.contentFunc);i.numItems++;var n={};n["@index"]=r;if(i.variableName)n[i.variableName]=t;c._attachBindingsToView(n,e);if(i.expandedValueDep)i.expandedValueDep.changed();else if(i._domrange){if(i.inElseMode){i._domrange.removeMember(0);i.inElseMode=false}var a=c._materializeView(e,i);i._domrange.addMember(a,r);o(r)}else i.initialSubviews.splice(r,0,e)})},removedAt:function(e,t,r){n.nonreactive(function(){i.numItems--;if(i.expandedValueDep)i.expandedValueDep.changed();else if(i._domrange){i._domrange.removeMember(r);o(r);if(i.elseFunc&&0===i.numItems){i.inElseMode=true;i._domrange.addMember(c._materializeView(c.View("each_else",i.elseFunc),i),0)}}else i.initialSubviews.splice(r,1)})},changedAt:function(e,t,r,a){n.nonreactive(function(){if(i.expandedValueDep)i.expandedValueDep.changed();else{var e;e=i._domrange?i._domrange.getMember(a).view:i.initialSubviews[a];if(i.variableName)e._scopeBindings[i.variableName].set({value:t});else e.dataVar.set({value:t})}})},movedTo:function(e,t,r,a){n.nonreactive(function(){if(i.expandedValueDep)i.expandedValueDep.changed();else if(i._domrange){i._domrange.moveMember(r,a);o(Math.min(r,a),Math.max(r,a))}else{var e=i.initialSubviews;var t=e[r];e.splice(r,1);e.splice(a,0,t)}})}});if(i.elseFunc&&0===i.numItems){i.inElseMode=true;i.initialSubviews[0]=c.View("each_else",i.elseFunc)}});i.onViewDestroyed(function(){if(i.stopHandle)i.stopHandle.stop()});return i};c._Await=function(e){return c.Let({value:e},c._AwaitContent)};c._AwaitContent=function(){var e;return null==(e=c.currentView._scopeBindings.value.get())?void 0:e.value};c._TemplateWith=function(e,t){var n;var r=e;if("function"!=typeof e)r=function(){return e};var a=function(){var e=null;if(n.parentView&&"InOuterTemplateScope"===n.parentView.name)e=n.parentView.originalParentView;if(e)return c._withCurrentView(e,r);return r()};var i=function(){var e=t.call(this);if(d(e,c.Template))e=e.constructView();if(d(e,c.View))e._hasGeneratedParent=true;return e};n=c.With(a,i);n.__isTemplateWith=true;return n};c._InOuterTemplateScope=function(e,t){var n=c.View("InOuterTemplateScope",t);var r=e.parentView;if(r.__isTemplateWith)r=r.parentView;n.onViewCreated(function(){this.originalParentView=this.parentView;this.parentView=r;this.__childDoesntStartNewLexicalScope=true});return n}},
99"lookup.js":function(e,t,n){var r;n.link("lodash.has",{default:function(e){r=e}},0);function a(e,t){if(null!=t&&void 0!==s&&t[s.hasInstance])return!!t[s.hasInstance](e);return e instanceof t}function i(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=c.currentView;n=0===n.length?Object.keys(a._scopeBindings):n.slice(0,-1);return n.some(function(t){var n=f(a,t);if(!n)throw new Error('Binding for "'.concat(t,'" was not found.'));return e(n.get())})}}c._globalHelpers={"@pending":i(function(e){return void 0===e}),"@rejected":i(function(e){return!!e&&"error"in e}),"@resolved":i(function(e){return!!e&&"value"in e})};c.registerHelper=function(e,t){c._globalHelpers[e]=t};c.deregisterHelper=function(e){delete c._globalHelpers[e]};var o=function(e){if("function"==typeof e)return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=c.getData();if(null==a)a={};return e.apply(a,n)};return e};c._OLDSTYLE_HELPER={};c._getTemplateHelper=function(e,t,n){var r=false;if(e.__helpers.has(t)){var a=e.__helpers.get(t);if(a===c._OLDSTYLE_HELPER)r=true;else{if(null==a)return null;var i="".concat(e.viewName," ").concat(t);return u(o(a),n,i)}}if(t in e){if(!r){e.__helpers.set(t,c._OLDSTYLE_HELPER);if(!e._NOWARN_OLDSTYLE_HELPERS)c._warn("Assigning helper with `"+e.viewName+"."+t+" = ...` is deprecated.  Use `"+e.viewName+".helpers(...)` instead.")}if(null!=e[t])return u(o(e[t]),n)}return null};var u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"template helper";if("function"!=typeof e)return e;return function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=this;return c.Template._withTemplateInstanceFunc(t,function(){return c._wrapCatchingExceptions(e,n).apply(o,a)})}};function l(e){if(!e.parentView)return;if(!e.__startsNewLexicalScope)return e.parentView;if(e.parentView.__childDoesntStartNewLexicalScope)return e.parentView;if("with"===e.parentView.name&&e.parentView.parentView&&e.parentView.parentView.__childDoesntStartNewLexicalScope)return e.parentView}function f(e,t){var n=e;do if(r(n._scopeBindings,t))return n._scopeBindings[t];while(n=l(n));return null}c._lexicalBindingLookup=function(e,t){var n=f(e,t);return n&&function(){var e;return null==(e=n.get())?void 0:e.value}};c._getTemplate=function(e,t){if(e in c.Template&&a(c.Template[e],c.Template))return c.Template[e];return null};c._getGlobalHelper=function(e,t){if(null!=c._globalHelpers[e]){var n="global helper ".concat(e);return u(o(c._globalHelpers[e]),t,n)}return null};c.View.prototype.lookup=function(e,t){var n=this.template;var r=t&&t.template;var a;var i;var o;var u;if(this.templateInstance)o=c._bind(this.templateInstance,this);if(/^\./.test(e)){if(!/^(\.)+$/.test(e))throw new Error("id starting with dot must be a series of dots");return c._parentData(e.length-1,true)}if(n&&null!=(a=c._getTemplateHelper(n,e,o)))return a;if(n&&null!=(i=c._lexicalBindingLookup(c.currentView,e)))return i;if(r&&null!=(u=c._getTemplate(e,o)))return u;a=c._getGlobalHelper(e,o);if(null!=a)return a;return function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var i=n.length>0;var o=c.getData();var u=o&&o[e];if(!u){if(r)throw new Error("No such template: "+e);else if(i)throw new Error("No such function: "+e);else if("@"===e.charAt(0)&&null==u)throw new Error("Unsupported directive: "+e)}if(!o)return null;if("function"!=typeof u){if(i)throw new Error("Can't call non-function: "+u);return u}return u.apply(o,n)}};c._parentData=function(e,t){var n;if(null==e)e=1;var r=c.getView("with");for(var a=0;a<e&&r;a++)r=c.getView(r,"with");if(!r)return null;if(t)return function(){var e;return null==(e=r.dataVar.get())?void 0:e.value};return null==(n=r.dataVar.get())?void 0:n.value};c.View.prototype.lookupTemplate=function(e){return this.lookup(e,{template:true})}},
99"template.js":function(e,t,a){var i;a.link("lodash.isobject",{default:function(e){i=e}},0);var o;a.link("lodash.isfunction",{default:function(e){o=e}},1);var u;a.link("lodash.has",{default:function(e){u=e}},2);var l;a.link("lodash.isempty",{default:function(e){l=e}},3);function f(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){if(Array.isArray(e))return e}function d(e,t){if(null!=t&&void 0!==s&&t[s.hasInstance])return!!t[s.hasInstance](e);return e instanceof t}function h(e,t){var n=null==e?null:void 0!==s&&e[s.iterator]||e["@@iterator"];if(null==n)return;var r=[];var a=true;var i=false;var o,u;try{for(n=n.call(e);!(a=(o=n.next()).done);a=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;u=e}finally{try{if(!a&&null!=n["return"])n["return"]()}finally{if(i)throw u}}return r}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){return p(e)||h(e,t)||_(e,t)||v()}function w(e){return e&&void 0!==s&&e.constructor===s?"symbol":typeof e}function _(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}c.Template=function(e,t){if(!d(this,c.Template))return new c.Template(e,t);if("function"==typeof e){t=e;e=""}if("string"!=typeof e)throw new Error("viewName must be a String (or omitted)");if("function"!=typeof t)throw new Error("renderFunction must be a function");this.viewName=e;this.renderFunction=t;this.__helpers=new b;this.__eventMaps=[];this._callbacks={created:[],rendered:[],destroyed:[]}};var y=c.Template;var b=function(){};b.prototype.get=function(e){return this[" "+e]};b.prototype.set=function(e,t){this[" "+e]=t};b.prototype.has=function(e){return void 0!==this[" "+e]};c.isTemplate=function(e){return d(e,c.Template)};y.prototype.onCreated=function(e){this._callbacks.created.push(e)};y.prototype.onRendered=function(e){this._callbacks.rendered.push(e)};y.prototype.onDestroyed=function(e){this._callbacks.destroyed.push(e)};y.prototype._getCallbacks=function(e){var t=this;var n=t[e]?[t[e]]:[];n=n.concat(t._callbacks[e]);return n};var g=function(e,t){y._withTemplateInstanceFunc(function(){return t},function(){for(var n=0,r=e.length;n<r;n++)e[n].call(t)})};y.prototype.constructView=function(e,t){var n=this;var r=c.View(n.viewName,n.renderFunction);r.template=n;r.templateContentBlock=e?new y("(contentBlock)",e):null;r.templateElseBlock=t?new y("(elseBlock)",t):null;if(n.__eventMaps||"object"===w(n.events))r._onViewRendered(function(){if(1!==r.renderCount)return;if(!n.__eventMaps.length&&"object"===w(n.events))y.prototype.events.call(n,n.events);n.__eventMaps.forEach(function(e){c._addEventMap(r,e,r)})});r._templateInstance=new c.TemplateInstance(r);r.templateInstance=function(){var e=r._templateInstance;e.data=c.getData(r);if(r._domrange&&!r.isDestroyed){e.firstNode=r._domrange.firstNode();e.lastNode=r._domrange.lastNode()}else{e.firstNode=null;e.lastNode=null}return e};var a=n._getCallbacks("created");r.onViewCreated(function(){g(a,r.templateInstance())});var i=n._getCallbacks("rendered");r.onViewReady(function(){g(i,r.templateInstance())});var o=n._getCallbacks("destroyed");r.onViewDestroyed(function(){g(o,r.templateInstance())});return r};c.TemplateInstance=function(e){if(!d(this,c.TemplateInstance))return new c.TemplateInstance(e);if(!d(e,c.View))throw new Error("View required");e._templateInstance=this;this.view=e;this.data=null;this.firstNode=null;this.lastNode=null;this._allSubsReadyDep=new n.Dependency;this._allSubsReady=false;this._subscriptionHandles={}};c.TemplateInstance.prototype.$=function(e){var t=this.view;if(!t._domrange)throw new Error("Can't use $ on template instance with no DOM");return t._domrange.$(e)};c.TemplateInstance.prototype.findAll=function(e){return Array.prototype.slice.call(this.$(e))};c.TemplateInstance.prototype.find=function(e){var t=this.$(e);return t[0]||null};c.TemplateInstance.prototype.autorun=function(e){return this.view.autorun(e)};c.TemplateInstance.prototype.subscribe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=this;var i=a._subscriptionHandles;var s={};if(t.length){var c=t[t.length-1];var f={onReady:r.Optional(Function),onError:r.Optional(Function),onStop:r.Optional(Function),connection:r.Optional(r.Any)};if(o(c))s.onReady=t.pop();else if(c&&!l(c)&&r.test(c,f))s=t.pop()}var p;var d=s.onStop;s.onStop=function(e){delete i[p.subscriptionId];if(!a._allSubsReady)a._allSubsReadyDep.changed();if(d)d(e)};var h=s.onReady,v=s.onError,m=s.onStop,w=s.connection;var _={onReady:h,onError:v,onStop:m};t.push(_);p=a.view.subscribe.call(a.view,t,{connection:w});if(!u(i,p.subscriptionId)){i[p.subscriptionId]=p;if(a._allSubsReady)a._allSubsReadyDep.changed()}return p};c.TemplateInstance.prototype.subscriptionsReady=function(){this._allSubsReadyDep.depend();this._allSubsReady=Object.values(this._subscriptionHandles).every(function(e){return e.ready()});return this._allSubsReady};y.prototype.helpers=function(e){if(!i(e))throw new Error("Helpers dictionary has to be an object");for(var t in e)this.__helpers.set(t,e[t])};var E=function(){if(Object.defineProperty){var e={};try{Object.defineProperty(e,"self",{get:function(){return e}})}catch(e){return false}return e.self===e}return false}();if(E){var V=null;Object.defineProperty(y,"_currentTemplateInstanceFunc",{get:function(){return V}});y._withTemplateInstanceFunc=function(e,t){if("function"!=typeof t)throw new Error("Expected function, got: "+t);var n=V;try{V=e;return t()}finally{V=n}}}else{y._currentTemplateInstanceFunc=null;y._withTemplateInstanceFunc=function(e,t){if("function"!=typeof t)throw new Error("Expected function, got: "+t);var n=y._currentTemplateInstanceFunc;try{y._currentTemplateInstanceFunc=e;return t()}finally{y._currentTemplateInstanceFunc=n}}}y.prototype.events=function(e){if(!i(e))throw new Error("Event map has to be an object");var t=this;var r={};for(var a in e)r[a]=function(e,t){return function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];var i=this;var o=m(r,1),u=o[0];return n.nonreactive(function(){var e=c.getData(u.currentTarget);if(null==e)e={};var n=c._bind(i.templateInstance,i);r.splice(1,0,n());return y._withTemplateInstanceFunc(n,function(){return t.apply(e,r)})})}}(0,e[a]);t.__eventMaps.push(r)};y.instance=function(){return y._currentTemplateInstanceFunc&&y._currentTemplateInstanceFunc()};y.currentData=c.getData;y.parentData=c._parentData;y.registerHelper=c.registerHelper;y.deregisterHelper=c.deregisterHelper},
99"backcompat.js":function(){d=c;c.ReactiveVar=i;d._templateInstance=c.Template.instance;h={};h.registerHelper=c.registerHelper;h._escape=c._escape;h.SafeString=function(e){this.string=e};h.SafeString.prototype.toString=function(){return this.string.toString()}},node_modules:{"lodash.has":{
99"package.json":function(e,t,n){n.exports={name:"lodash.has",version:"4.5.2"}},
99"index.js":function(e,n,r){var a="Expected a function";var i="__lodash_hash_undefined__";var o=1/0,u=0x1fffffffffffff;var l="[object Arguments]",s="[object Function]",c="[object GeneratorFunction]",f="[object Symbol]";var p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,h=/^\./,v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var m=/[\\^$.*+?()[\]{}|]/g;var w=/\\(\\)?/g;var _=/^\[object .+?Constructor\]$/;var y=/^(?:0|[1-9]\d*)$/;var b="object"==typeof t&&t&&t.Object===Object&&t;var g="object"==typeof self&&self&&self.Object===Object&&self;var E=b||g||Function("return this")();function V(e,t){return null==e?void 0:e[t]}function T(e){var t=false;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}var j=Array.prototype,x=Function.prototype,k=Object.prototype;var A=E["__core-js_shared__"];var O=function(){var e=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var I=x.toString;var D=k.hasOwnProperty;var M=k.toString;var C=RegExp("^"+I.call(D).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var S=E.Symbol,N=k.propertyIsEnumerable,R=j.splice;var P=ef(E,"Map"),B=ef(Object,"create");var H=S?S.prototype:void 0,L=H?H.toString:void 0;function z(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function F(){this.__data__=B?B(null):{}}function U(e){return this.has(e)&&delete this.__data__[e]}function $(e){var t=this.__data__;if(B){var n=t[e];return n===i?void 0:n}return D.call(t,e)?t[e]:void 0}function G(e){var t=this.__data__;return B?void 0!==t[e]:D.call(t,e)}function W(e,t){var n=this.__data__;n[e]=B&&void 0===t?i:t;return this}z.prototype.clear=F;z.prototype["delete"]=U;z.prototype.get=$;z.prototype.has=G;z.prototype.set=W;function q(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function J(){this.__data__=[]}function Q(e){var t=this.__data__,n=ei(t,e);if(n<0)return false;var r=t.length-1;if(n==r)t.pop();else R.call(t,n,1);return true}function Y(e){var t=this.__data__,n=ei(t,e);return n<0?void 0:t[n][1]}function X(e){return ei(this.__data__,e)>-1}function K(e,t){var n=this.__data__,r=ei(n,e);if(r<0)n.push([e,t]);else n[r][1]=t;return this}q.prototype.clear=J;q.prototype["delete"]=Q;q.prototype.get=Y;q.prototype.has=X;q.prototype.set=K;function Z(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function ee(){this.__data__={hash:new z,map:new(P||q),string:new z}}function et(e){return ec(this,e)["delete"](e)}function en(e){return ec(this,e).get(e)}function er(e){return ec(this,e).has(e)}function ea(e,t){ec(this,e).set(e,t);return this}Z.prototype.clear=ee;Z.prototype["delete"]=et;Z.prototype.get=en;Z.prototype.has=er;Z.prototype.set=ea;function ei(e,t){var n=e.length;while(n--)if(eg(e[n][0],t))return n;return -1}function eo(e,t){return null!=e&&D.call(e,t)}function eu(e){if(!eA(e)||em(e))return false;var t=ex(e)||T(e)?C:_;return t.test(ey(e))}function el(e){if("string"==typeof e)return e;if(eI(e))return L?L.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}function es(e){return eV(e)?e:ew(e)}function ec(e,t){var n=e.__data__;return ev(t)?n["string"==typeof t?"string":"hash"]:n.map}function ef(e,t){var n=V(e,t);return eu(n)?n:void 0}function ep(e,t,n){t=eh(t,e)?[t]:es(t);var r,a=-1,i=t.length;while(++a<i){var o=e_(t[a]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}if(r)return r;var i=e?e.length:0;return!!i&&ek(i)&&ed(o,i)&&(eV(e)||eE(e))}function ed(e,t){t=null==t?u:t;return!!t&&("number"==typeof e||y.test(e))&&e>-1&&e%1==0&&e<t}function eh(e,t){if(eV(e))return false;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||eI(e))return true;return d.test(e)||!p.test(e)||null!=t&&e in Object(t)}function ev(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function em(e){return!!O&&O in e}var ew=eb(function(e){e=eD(e);var t=[];if(h.test(e))t.push("");e.replace(v,function(e,n,r,a){t.push(r?a.replace(w,"$1"):n||e)});return t});function e_(e){if("string"==typeof e||eI(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}function ey(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eb(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);
99n.cache=i.set(a,o);return o};n.cache=new(eb.Cache||Z);return n}eb.Cache=Z;function eg(e,t){return e===t||e!==e&&t!==t}function eE(e){return ej(e)&&D.call(e,"callee")&&(!N.call(e,"callee")||M.call(e)==l)}var eV=Array.isArray;function eT(e){return null!=e&&ek(e.length)&&!ex(e)}function ej(e){return eO(e)&&eT(e)}function ex(e){var t=eA(e)?M.call(e):"";return t==s||t==c}function ek(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function eA(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eO(e){return!!e&&"object"==typeof e}function eI(e){return"symbol"==typeof e||eO(e)&&M.call(e)==f}function eD(e){return null==e?"":el(e)}function eM(e,t){return null!=e&&ep(e,t,eo)}r.exports=eM}},"lodash.isobject":{
99"package.json":function(e,t,n){n.exports={name:"lodash.isobject",version:"3.0.2"}},
99"index.js":function(e,t,n){function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}n.exports=r}},"lodash.isfunction":{
99"package.json":function(e,t,n){n.exports={name:"lodash.isfunction",version:"3.0.9"}},
99"index.js":function(e,n,r){var a="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",u="[object Null]",l="[object Proxy]",s="[object Undefined]";var c="object"==typeof t&&t&&t.Object===Object&&t;var f="object"==typeof self&&self&&self.Object===Object&&self;var p=c||f||Function("return this")();var d=Object.prototype;var h=d.hasOwnProperty;var v=d.toString;var m=p.Symbol,w=m?m.toStringTag:void 0;function _(e){if(null==e)return void 0===e?s:u;return w&&w in Object(e)?y(e):b(e)}function y(e){var t=h.call(e,w),n=e[w];try{e[w]=void 0;var r=true}catch(e){}var a=v.call(e);if(r)if(t)e[w]=n;else delete e[w];return a}function b(e){return v.call(e)}function g(e){if(!E(e))return false;var t=_(e);return t==i||t==o||t==a||t==l}function E(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}r.exports=g}},"lodash.isempty":{
99"package.json":function(e,t,n){n.exports={name:"lodash.isempty",version:"4.4.0"}},
99"index.js":function(e,n,r){var a=0x1fffffffffffff;var i="[object Arguments]",o="[object Function]",u="[object GeneratorFunction]",l="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",p="[object WeakMap]";var d="[object DataView]";var h=/[\\^$.*+?()[\]{}|]/g;var v=/^\[object .+?Constructor\]$/;var m="object"==typeof t&&t&&t.Object===Object&&t;var w="object"==typeof self&&self&&self.Object===Object&&self;var _=m||w||Function("return this")();var y="object"==typeof n&&n&&!n.nodeType&&n;var b=y&&"object"==typeof r&&r&&!r.nodeType&&r;var g=b&&b.exports===y;function E(e,t){return null==e?void 0:e[t]}function V(e){var t=false;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function T(e,t){return function(n){return e(t(n))}}var j=Function.prototype,x=Object.prototype;var k=_["__core-js_shared__"];var A=function(){var e=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var O=j.toString;var I=x.hasOwnProperty;var D=x.toString;var M=RegExp("^"+O.call(I).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var C=g?_.Buffer:void 0,S=x.propertyIsEnumerable;var N=C?C.isBuffer:void 0,R=T(Object.keys,Object);var P=Y(_,"DataView"),B=Y(_,"Map"),H=Y(_,"Promise"),L=Y(_,"Set"),z=Y(_,"WeakMap");var F=!S.call({valueOf:1},"valueOf");var U=ee(P),$=ee(B),G=ee(H),W=ee(L),q=ee(z);function J(e){return D.call(e)}function Q(e){if(!es(e)||K(e))return false;var t=eu(e)||V(e)?M:v;return t.test(ee(e))}function Y(e,t){var n=E(e,t);return Q(n)?n:void 0}var X=J;if(P&&X(new P(new ArrayBuffer(1)))!=d||B&&X(new B)!=l||H&&X(H.resolve())!=c||L&&X(new L)!=f||z&&X(new z)!=p)X=function(e){var t=D.call(e),n=t==s?e.constructor:void 0,r=n?ee(n):void 0;if(r)switch(r){case U:return d;case $:return l;case G:return c;case W:return f;case q:return p}return t};function K(e){return!!A&&A in e}function Z(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||x;return e===n}function ee(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function et(e){return ea(e)&&I.call(e,"callee")&&(!S.call(e,"callee")||D.call(e)==i)}var en=Array.isArray;function er(e){return null!=e&&el(e.length)&&!eu(e)}function ea(e){return ec(e)&&er(e)}var ei=N||ef;function eo(e){if(er(e)&&(en(e)||"string"==typeof e||"function"==typeof e.splice||ei(e)||et(e)))return!e.length;var t=X(e);if(t==l||t==f)return!e.size;if(F||Z(e))return!R(e).length;for(var n in e)if(I.call(e,n))return false;return true}function eu(e){var t=es(e)?D.call(e):"";return t==o||t==u}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function es(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ec(e){return!!e&&"object"==typeof e}function ef(){return false}r.exports=eo}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{Blaze:c,UI:d,Handlebars:h}},require:v,eagerModulePaths:["/node_modules/meteor/blaze/preamble.js","/node_modules/meteor/blaze/dombackend.js","/node_modules/meteor/blaze/domrange.js","/node_modules/meteor/blaze/events.js","/node_modules/meteor/blaze/attrs.js","/node_modules/meteor/blaze/materializer.js","/node_modules/meteor/blaze/exceptions.js","/node_modules/meteor/blaze/view.js","/node_modules/meteor/blaze/builtins.js","/node_modules/meteor/blaze/lookup.js","/node_modules/meteor/blaze/template.js","/node_modules/meteor/blaze/backcompat.js"]}});
100
101Package["core-runtime"].queue("spacebars",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;Package["observe-sequence"].ObserveSequence;var t=Package.tracker.Tracker;Package.tracker.Deps;var e=Package.htmljs.HTML;var n=Package.blaze.Blaze;Package.blaze.UI;var r=Package.blaze.Handlebars;var a;(function(){a={};var u=function(t,e){return t===e};a.include=function(t,e,r){if(!t)return null;if("function"!=typeof t){var a=t;if(!n.isTemplate(a))throw new Error("Expected template or null, found: "+a);var i=t.constructView(e,r);i.__startsNewLexicalScope=true;return i}var o=n.ReactiveVar(null,u);var i=n.View("Spacebars.include",function(){var t=o.get();if(null===t)return null;if(!n.isTemplate(t))throw new Error("Expected template or null, found: "+t);return t.constructView(e,r)});i.__templateVar=o;i.onViewCreated(function(){this.autorun(function(){o.set(t())})});i.__startsNewLexicalScope=true;return i};a.mustacheImpl=function(t){var e=arguments;if(e.length>1){var n=e[e.length-1];if(n instanceof a.kw){var r={};for(var u in n.hash){var i=n.hash[u];r[u]="function"==typeof i?i():i}e[e.length-1]=a.kw(r)}else{n=a.kw();e=Array.prototype.slice.call(arguments);e.push(n)}}return a.call.apply(null,e)};a.mustache=function(t){var n=a.mustacheImpl.apply(null,arguments);if(n instanceof a.SafeString)return e.Raw(n.toString());if(o(n))return n;return null==n||false===n?null:String(n)};a.attrMustache=function(t){var n=a.mustacheImpl.apply(null,arguments);if(null==n||""===n)return null;if("object"==typeof n)return n;if("string"==typeof n&&e.isValidAttributeName(n)){var r={};r[n]="";return r}throw new Error("Expected valid attribute name, '', null, or object")};a.dataMustache=function(t){var e=a.mustacheImpl.apply(null,arguments);return e};a.makeRaw=function(t){if(null==t)return null;if(t instanceof e.Raw||o(t))return t;return e.Raw(t)};function i(e,r){const a=t.currentComputation;const u=n.currentView;return e.then(e=>n._withCurrentView(u,()=>t.withComputation(a,()=>r(e))),n._reportExceptionAndThrow)}a.call=function(t){if("function"==typeof t){var e=[];let a=false;for(var n=1;n<arguments.length;n++){var r=arguments[n];e[n-1]="function"==typeof r?r():r;a=a||o(e[n-1])}if(a)return i(Promise.all(e),e=>t.apply(null,e));return t.apply(null,e)}if(null!=t&&arguments.length>1)throw new Error("Can't call non-function: "+t);return t};const o=t=>!!t&&"function"==typeof t.then;a.kw=function(t){if(!(this instanceof a.kw))return new a.kw(t);this.hash=t||{}};a.SafeString=function(t){if(!(this instanceof a.SafeString))return new a.SafeString(t);return new r.SafeString(t)};a.SafeString.prototype=r.SafeString.prototype;a.dot=function(t,e){if(arguments.length>2){var n=[];n.push(a.dot(t,e));n.push.apply(n,Array.prototype.slice.call(arguments,2));return a.dot.apply(null,n)}while("function"==typeof t)t=t();if(!t)return t;if(o(t))return i(t,t=>a.dot(t,e));var r=t[e];if("function"!=typeof r)return r;return function(){return r.apply(t,arguments)}};a.With=function(e,r,a){var u=new n.ReactiveVar;var i=n.View("Spacebars_with",function(){return n.If(function(){return u.get()},function(){return n.With(function(){return u.get()},r)},a)});i.onViewCreated(function(){this.autorun(function(){u.set(e());t.onInvalidate(function(){u.dep.changed()})})});return i}}).call(this);return{export:function(){return{Spacebars:a}}}});
102
103Package["core-runtime"].queue("templating-compiler",function(){return{}});
104
105Package["core-runtime"].queue("templating-runtime",function(){Package.meteor.Meteor;var e=Package.meteor.global;Package.meteor.meteorEnv;var t=Package.blaze.Blaze;Package.blaze.UI;Package.blaze.Handlebars;var n=Package.spacebars.Spacebars;Package.htmljs.HTML;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var a=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var o;var i=r({node_modules:{meteor:{"templating-runtime":{
105"templating.js":function(){function e(e,t){if(null!=t&&void 0!==a&&t[a.hasInstance])return!!t[a.hasInstance](e);return e instanceof t}o=t.Template;var n="__proto__ name".split(" ");o.__checkName=function(t){if(t in o||n.includes(t)){if(e(o[t],o)&&"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)}};var r=false;o.__define__=function(e,t){o.__checkName(e);o[e]=new o("Template."+e,t);o[e]._NOWARN_OLDSTYLE_HELPERS=true;if(!r){r=true;console.warn("Your app is using old Template definition that is scheduled to be removed with Blaze 3.0, please check your app and packages for use of: Template.__define__")}};o.body=new o("body",function(){var e=this;return o.body.contentRenderFuncs.map(function(t){return t.apply(e)})});o.body.contentRenderFuncs=[];o.body.view=null;o.body.addContent=function(e){o.body.contentRenderFuncs.push(e)};o.body.renderToDocument=function(){if(o.body.view)return;var e=t.render(o.body,document.body);o.body.view=e};o.__pendingReplacement=[];var i=null;o._applyHmrChanges=function(e){if(i)return;i=setTimeout(function(){i=null;for(var e=0;e<o.__pendingReplacement.length;e++)delete o[o.__pendingReplacement[e]];o.__pendingReplacement=[];var n=t.__rootViews.slice();for(var e=0;e<n.length;e++){var r=n[e];if(!r.destroyed){var a=r._render;var c;if(r._domrange&&r._domrange.parentElement)c=r._domrange.parentElement;else if(r._hmrParent)c=r._hmrParent;var u;if(r._hmrAfter)u=r._hmrAfter;else{var l=r._domrange.firstNode();u=document.createComment("Blaze HMR PLaceholder");c.insertBefore(u,l)}r._hmrAfter=null;r._hmrParent=null;if(r._domrange)t.remove(r);try{if(r===o.body.view){var s=t.render(o.body,document.body,u);o.body.view=s}else if(r.dataVar){var f;t.renderWithData(a,null==(f=r.dataVar.curValue)?void 0:f.value,c,u)}else t.render(a,c,u);c.removeChild(u)}catch(e){console.log("[Blaze HMR] Error re-rending template:");console.error(e);var p=t.__rootViews[t.__rootViews.length-1];if(p&&p.isCreated&&!p.isRendered){p._hmrAfter=u;p._hmrParent=c}}}}})};o._migrateTemplate=function(e,t,n){var r=o[e];var n=o.__pendingReplacement.indexOf(e)>-1;if(r&&n){t.__helpers=r.__helpers;t.__eventMaps=r.__eventMaps;t._callbacks.created=r._callbacks.created;t._callbacks.rendered=r._callbacks.rendered;t._callbacks.destroyed=r._callbacks.destroyed;delete o[e];o._applyHmrChanges(e)}if(n)o.__pendingReplacement.splice(o.__pendingReplacement.indexOf(e),1);o.__checkName(e);o[e]=t}},
105"template.dynamic.js":function(){o.__checkName("__dynamic");o["__dynamic"]=new o("Template.__dynamic",function(){var e=this;return[t.View("lookup:checkContext",function(){return n.mustache(e.lookup("checkContext"))}),t.If(function(){return n.call(e.lookup("dataContextPresent"))},function(){return n.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return t._InOuterTemplateScope(e,function(){return n.include(function(){return n.call(e.templateContentBlock)})})})},function(){return t._TemplateWith(function(){return{template:n.call(e.lookup("template")),data:n.call(e.lookup(".."))}},function(){return n.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return t._InOuterTemplateScope(e,function(){return n.include(function(){return n.call(e.templateContentBlock)})})})})})]});o.__checkName("__dynamicWithDataContext");o["__dynamicWithDataContext"]=new o("Template.__dynamicWithDataContext",function(){var e=this;return n.With(function(){return n.dataMustache(e.lookup("chooseTemplate"),e.lookup("template"))},function(){return t._TemplateWith(function(){return n.call(n.dot(e.lookup(".."),"data"))},function(){return n.include(e.lookupTemplate(".."),function(){return t._InOuterTemplateScope(e,function(){return n.include(function(){return n.call(e.templateContentBlock)})})})})})})},
105"dynamic.js":function(e,n,r){var a;r.link("lodash.has",{default:function(e){a=e}},0);var o=t.Template;o.__dynamicWithDataContext.helpers({chooseTemplate:function(e){return t._getTemplate(e,function(){return o.instance()})}});o.__dynamic.helpers({dataContextPresent:function(){return a(this,"data")},checkContext:function(){if(!a(this,"template"))throw new Error("Must specify name in the 'template' argument to {{> Template.dynamic}}.");Object.keys(this).forEach(function(e){if("template"!==e&&"data"!==e)throw new Error("Invalid argument to {{> Template.dynamic}}: "+e)})}})},node_modules:{"lodash.has":{
105"package.json":function(e,t,n){n.exports={name:"lodash.has",version:"4.5.2"}},
105"index.js":function(t,n,r){var a="Expected a function";var o="__lodash_hash_undefined__";var i=1/0,c=0x1fffffffffffff;var u="[object Arguments]",l="[object Function]",s="[object GeneratorFunction]",f="[object Symbol]";var p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/,d=/^\./,m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var h=/[\\^$.*+?()[\]{}|]/g;var v=/\\(\\)?/g;var y=/^\[object .+?Constructor\]$/;var g=/^(?:0|[1-9]\d*)$/;var b="object"==typeof e&&e&&e.Object===Object&&e;var k="object"==typeof self&&self&&self.Object===Object&&self;var w=b||k||Function("return this")();function T(e,t){return null==e?void 0:e[t]}function j(e){var t=false;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}var P=Array.prototype,C=Function.prototype,x=Object.prototype;var O=w["__core-js_shared__"];var E=function(){var e=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var R=C.toString;var S=x.hasOwnProperty;var I=x.toString;var M=RegExp("^"+R.call(S).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var W=w.Symbol,$=x.propertyIsEnumerable,A=P.splice;var B=ef(w,"Map"),D=ef(Object,"create");var H=W?W.prototype:void 0,N=H?H.toString:void 0;function z(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function F(){this.__data__=D?D(null):{}}function V(e){return this.has(e)&&delete this.__data__[e]}function L(e){var t=this.__data__;if(D){var n=t[e];return n===o?void 0:n}return S.call(t,e)?t[e]:void 0}function q(e){var t=this.__data__;return D?void 0!==t[e]:S.call(t,e)}function Y(e,t){var n=this.__data__;n[e]=D&&void 0===t?o:t;return this}z.prototype.clear=F;z.prototype["delete"]=V;z.prototype.get=L;z.prototype.has=q;z.prototype.set=Y;function G(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function U(){this.__data__=[]}function J(e){var t=this.__data__,n=eo(t,e);if(n<0)return false;var r=t.length-1;if(n==r)t.pop();else A.call(t,n,1);return true}function K(e){var t=this.__data__,n=eo(t,e);return n<0?void 0:t[n][1]}function Q(e){return eo(this.__data__,e)>-1}function X(e,t){var n=this.__data__,r=eo(n,e);if(r<0)n.push([e,t]);else n[r][1]=t;return this}G.prototype.clear=U;G.prototype["delete"]=J;G.prototype.get=K;G.prototype.has=Q;G.prototype.set=X;function Z(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function ee(){this.__data__={hash:new z,map:new(B||G),string:new z}}function et(e){return es(this,e)["delete"](e)}function en(e){return es(this,e).get(e)}function er(e){return es(this,e).has(e)}function ea(e,t){es(this,e).set(e,t);return this}Z.prototype.clear=ee;Z.prototype["delete"]=et;Z.prototype.get=en;Z.prototype.has=er;Z.prototype.set=ea;function eo(e,t){var n=e.length;while(n--)if(ek(e[n][0],t))return n;return -1}function ei(e,t){return null!=e&&S.call(e,t)}function ec(e){if(!eO(e)||eh(e))return false;var t=eC(e)||j(e)?M:y;return t.test(eg(e))}function eu(e){if("string"==typeof e)return e;if(eR(e))return N?N.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}function el(e){return eT(e)?e:ev(e)}function es(e,t){var n=e.__data__;return em(t)?n["string"==typeof t?"string":"hash"]:n.map}function ef(e,t){var n=T(e,t);return ec(n)?n:void 0}function ep(e,t,n){t=ed(t,e)?[t]:el(t);var r,a=-1,o=t.length;while(++a<o){var i=ey(t[a]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}if(r)return r;var o=e?e.length:0;return!!o&&ex(o)&&e_(i,o)&&(eT(e)||ew(e))}function e_(e,t){t=null==t?c:t;return!!t&&("number"==typeof e||g.test(e))&&e>-1&&e%1==0&&e<t}function ed(e,t){if(eT(e))return false;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||eR(e))return true;return _.test(e)||!p.test(e)||null!=t&&e in Object(t)}function em(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function eh(e){return!!E&&E in e}var ev=eb(function(e){e=eS(e);var t=[];if(d.test(e))t.push("");e.replace(m,function(e,n,r,a){t.push(r?a.replace(v,"$1"):n||e)});return t});function ey(e){if("string"==typeof e||eR(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function eg(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eb(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);
105n.cache=o.set(a,i);return i};n.cache=new(eb.Cache||Z);return n}eb.Cache=Z;function ek(e,t){return e===t||e!==e&&t!==t}function ew(e){return eP(e)&&S.call(e,"callee")&&(!$.call(e,"callee")||I.call(e)==u)}var eT=Array.isArray;function ej(e){return null!=e&&ex(e.length)&&!eC(e)}function eP(e){return eE(e)&&ej(e)}function eC(e){var t=eO(e)?I.call(e):"";return t==l||t==s}function ex(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function eO(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eE(e){return!!e&&"object"==typeof e}function eR(e){return"symbol"==typeof e||eE(e)&&I.call(e)==f}function eS(e){return null==e?"":eu(e)}function eI(e,t){return null!=e&&ep(e,t,ei)}r.exports=eI}}}}}}},{extensions:[".js",".json",".html"]});return{export:function(){return{Template:o}},require:i,eagerModulePaths:["/node_modules/meteor/templating-runtime/templating.js","/node_modules/meteor/templating-runtime/template.dynamic.js","/node_modules/meteor/templating-runtime/dynamic.js"]}});
106
107Package["core-runtime"].queue("templating",function(){var e=Package["templating-runtime"].Template;return{export:function(){return{Template:e}}}});
108
109Package["core-runtime"].queue("aldeed:template-extension",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package["templating-runtime"].Template;Package.blaze.Blaze;Package.blaze.UI;Package.blaze.Handlebars;Package.spacebars.Spacebars;Package.htmljs.HTML;(function(){(function(){e.prototype.replaces=function(t){var a=this;var r=e[t];if(!r)return void console.warn("Can't replace template "+t+" because it hasn't been defined yet.");r.__render=e[a.__templateName].__render};e.prototype.inheritsHelpersFrom=function(t){var a=this;var r=e[t];if(!r)return void console.warn("Can't inherit helpers from template "+t+" because it hasn't been defined yet.");var n=e[a.__templateName];for(var i in r)if(r.hasOwnProperty(i)&&"__"!==i.slice(0,2))n[i]=r[i]};e.prototype.inheritsEventsFrom=function(t){var a=this;var r=e[t];if(!r)return void console.warn("Can't inherit events from template "+t+" because it hasn't been defined yet.");e[a.__templateName].__eventMaps=r.__eventMaps};e.prototype.copyAs=function(t){var a=this;var r=e.__define__(t,a.__render);r.__initView=a.__initView;e[t]=r;r.inheritsHelpersFrom(a.__templateName);r.inheritsEventsFrom(a.__templateName)}}).call(this)}).call(this);return{}});
110
111Package["core-runtime"].queue("less",function(){return{}});
112
113Package["core-runtime"].queue("ddp-rate-limiter",function(){return{}});
114
115Package["core-runtime"].queue("localstorage",function(){var e=Package.meteor.Meteor;var t=Package.meteor.global;Package.meteor.meteorEnv;var o=Package.random.Random;(function(){var a=Object.prototype.hasOwnProperty;var r="_localstorage_test_"+o.id();var n;var l;try{l=t.localStorage;if(l){l.setItem(r,r);n=l.getItem(r);l.removeItem(r)}}catch(e){}if(r===n)if(e.isServer)e._localStorage=l;else["getItem","setItem","removeItem"].forEach(function(e){this[e]=function(){return l[e].apply(l,arguments)}},e._localStorage={});if(!e._localStorage){if(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 a.call(this,e)?this[e]:null}})}}).call(this);return{}});
116
117Package["core-runtime"].queue("url",function(){Package.meteor.Meteor;var r=Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var t,n;var a=e({node_modules:{meteor:{url:{
117"modern.js":function(e,a){t=r.URL;n=r.URLSearchParams;a.URL=t;a.URLSearchParams=n;Object.assign(t,e("./bc/url_client"))},
117"legacy.js":function(r,e){try{r("url-search-params-polyfill");n=window.URLSearchParams;e.URLSearchParams=n;r("core-js/proposals/url");t=window.URL;e.URL=t}catch(r){throw new Error("The core-js npm package could not be found in your node_modules \ndirectory. Please run the following command to install it:\n\n  meteor npm install --save core-js\n")}r("./modern.js")},bc:{
117"url_client.js":function(r,e){var t=r("./url_common.js");e._constructUrl=function(r,e,n){var a=/^(.*?)(\?.*)?$/.exec(r);return t.buildUrl(a[1],a[2],e,n)};e._encodeParams=t._encodeParams},
117"url_common.js":function(r,e){function t(r){return encodeURIComponent(r).replace(/\*/g,"%2A")}var n=function(r,e){var a=[];var i=Array.isArray(r);for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s)){var o=e?e+"["+(i?"":s)+"]":s;var u=r[s];if("object"==typeof u)a.push(n(u,o));else{var l=t(o).replace("%5B","[").replace("%5D","]");a.push(l+"="+t(u))}}return a.join("&").replace(/%20/g,"+")};e._encodeParams=n;e.buildUrl=function(r,e,t,a){var i=r;var s=e?e.slice(1):null;if("string"==typeof t)s=String(t);if(a){s=s||"";var o=n(a);if(s&&o)s+="&";s+=o}var u=i;if(null!==s)u+="?"+s;return u}}},node_modules:{"url-search-params-polyfill":{
117"package.json":function(r,e,t){t.exports={name:"url-search-params-polyfill",version:"8.2.5",main:"index.js"}},
117"index.js":function(){(function(r){"use strict";var e=function(){try{if(r.URLSearchParams&&"bar"===new r.URLSearchParams("foo=bar").get("foo"))return r.URLSearchParams}catch(r){}return null}(),t=e&&"a=1"===new e({a:1}).toString(),a=e&&"+"===new e("s=%2B").get("s"),i=e&&"size"in e.prototype,s="__URLSearchParams__",o=e?function(){var r=new e;r.append("s"," &");return"s=+%26"===r.toString()}():true,u=c.prototype,l=!!(r.Symbol&&r.Symbol.iterator);if(e&&t&&a&&o&&i)return;function c(r){r=r||"";if(r instanceof n||r instanceof c)r=r.toString();this[s]=b(r)}u.append=function(r,e){y(this[s],r,e)};u["delete"]=function(r){delete this[s][r]};u.get=function(r){var e=this[s];return this.has(r)?e[r][0]:null};u.getAll=function(r){var e=this[s];return this.has(r)?e[r].slice(0):[]};u.has=function(r){return j(this[s],r)};u.set=function(r,e){this[s][r]=[""+e]};u.toString=function(){var r=this[s],e=[],t,n,a,i;for(n in r){a=h(n);for(t=0,i=r[n];t<i.length;t++)e.push(a+"="+h(i[t]))}return e.join("&")};var v=r.Proxy&&e&&(!a||!o||!t||!i);var f;if(v){f=new Proxy(e,{construct:function(r,e){return new r(new c(e[0]).toString())}});f.toString=Function.prototype.toString.bind(c)}else f=c;Object.defineProperty(r,"URLSearchParams",{value:f});var p=r.URLSearchParams.prototype;p.polyfill=true;if(!v&&r.Symbol)p[r.Symbol.toStringTag]="URLSearchParams";if(!("forEach"in p))p.forEach=function(r,e){var t=b(this.toString());Object.getOwnPropertyNames(t).forEach(function(n){t[n].forEach(function(t){r.call(e,t,n,this)},this)},this)};if(!("sort"in p))p.sort=function(){var r=b(this.toString()),e=[],t,n,a;for(t in r)e.push(t);e.sort();for(n=0;n<e.length;n++)this["delete"](e[n]);for(n=0;n<e.length;n++){var i=e[n],s=r[i];for(a=0;a<s.length;a++)this.append(i,s[a])}};if(!("keys"in p))p.keys=function(){var r=[];this.forEach(function(e,t){r.push(t)});return g(r)};if(!("values"in p))p.values=function(){var r=[];this.forEach(function(e){r.push(e)});return g(r)};if(!("entries"in p))p.entries=function(){var r=[];this.forEach(function(e,t){r.push([t,e])});return g(r)};if(l)p[r.Symbol.iterator]=p[r.Symbol.iterator]||p.entries;if(!("size"in p))Object.defineProperty(p,"size",{get:function(){var r=b(this.toString());if(p===this)throw new TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(r).reduce(function(e,t){return e+r[t].length},0)}});
117function h(r){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'\(\)~]|%20|%00/g,function(r){return e[r]})}function d(r){return r.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(r){return decodeURIComponent(r)})}function g(e){var t={next:function(){var r=e.shift();return{done:void 0===r,value:r}}};if(l)t[r.Symbol.iterator]=function(){return t};return t}function b(r){var e={};if("object"==typeof r){if(m(r))for(var t=0;t<r.length;t++){var n=r[t];if(m(n)&&2===n.length)y(e,n[0],n[1]);else throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var a in r)if(r.hasOwnProperty(a))y(e,a,r[a])}else{if(0===r.indexOf("?"))r=r.slice(1);var i=r.split("&");for(var s=0;s<i.length;s++){var o=i[s],u=o.indexOf("=");if(-1<u)y(e,d(o.slice(0,u)),d(o.slice(u+1)));else if(o)y(e,d(o),"")}}return e}function y(r,e,t){var n="string"==typeof t?t:null!=t&&"function"==typeof t.toString?t.toString():JSON.stringify(t);if(j(r,e))r[e].push(n);else r[e]=[n]}function m(r){return!!r&&"[object Array]"===Object.prototype.toString.call(r)}function j(r,e){return Object.prototype.hasOwnProperty.call(r,e)}})(void 0!==r?r:"undefined"!=typeof window?window:this)}},"core-js":{proposals:{
117"url.js":function(r){"use strict";r("../web/url")}},web:{
117"url.js":function(r,e,t){"use strict";r("./url-search-params");r("../modules/web.url");r("../modules/web.url.can-parse");r("../modules/web.url.parse");r("../modules/web.url.to-json");var n=r("../internals/path");t.exports=n.URL},
117"url-search-params.js":function(r,e,t){"use strict";r("../modules/web.url-search-params");r("../modules/web.url-search-params.delete");r("../modules/web.url-search-params.has");r("../modules/web.url-search-params.size");var n=r("../internals/path");t.exports=n.URLSearchParams}},modules:{
117"web.url-search-params.js":function(r,e,t){"use strict";r("../modules/web.url-search-params.constructor")},
117"web.url-search-params.constructor.js":function(r,e,t){"use strict";r("../modules/es.array.iterator");r("../modules/es.string.from-code-point");var n=r("../internals/export");var a=r("../internals/global-this");var i=r("../internals/safe-get-built-in");var s=r("../internals/get-built-in");var o=r("../internals/function-call");var u=r("../internals/function-uncurry-this");var l=r("../internals/descriptors");var c=r("../internals/url-constructor-detection");var v=r("../internals/define-built-in");var f=r("../internals/define-built-in-accessor");var p=r("../internals/define-built-ins");var h=r("../internals/set-to-string-tag");var d=r("../internals/iterator-create-constructor");var g=r("../internals/internal-state");var b=r("../internals/an-instance");var y=r("../internals/is-callable");var m=r("../internals/has-own-property");var j=r("../internals/function-bind-context");var w=r("../internals/classof");var x=r("../internals/an-object");var S=r("../internals/is-object");var k=r("../internals/to-string");var P=r("../internals/object-create");var O=r("../internals/create-property-descriptor");var R=r("../internals/get-iterator");var U=r("../internals/get-iterator-method");var L=r("../internals/create-iter-result-object");var E=r("../internals/validate-arguments-length");var A=r("../internals/well-known-symbol");var _=r("../internals/array-sort");var I=A("iterator");var q="URLSearchParams";var C=q+"Iterator";var T=g.set;var z=g.getterFor(q);var B=g.getterFor(C);var F=i("fetch");var H=i("Request");var M=i("Headers");var N=H&&H.prototype;var G=M&&M.prototype;var D=a.TypeError;var $=a.encodeURIComponent;var W=String.fromCharCode;var J=s("String","fromCodePoint");var Q=parseInt;var Y=u("".charAt);var X=u([].join);var K=u([].push);var V=u("".replace);var Z=u([].shift);var rr=u([].splice);var re=u("".split);var rt=u("".slice);var rn=u(/./.exec);var ra=/\+/g;var ri="�";var rs=/^[0-9a-f]+$/i;var ro=function(r,e){var t=rt(r,e,e+2);if(!rn(rs,t))return NaN;return Q(t,16)};var ru=function(r){var e=0;for(var t=128;t>0&&(r&t)!==0;t>>=1)e++;return e};var rl=function(r){var e=null;switch(r.length){case 1:e=r[0];break;case 2:e=(31&r[0])<<6|63&r[1];break;case 3:e=(15&r[0])<<12|(63&r[1])<<6|63&r[2];break;case 4:e=(7&r[0])<<18|(63&r[1])<<12|(63&r[2])<<6|63&r[3];break}return e>1114111?null:e};var rc=function(r){r=V(r,ra," ");var e=r.length;var t="";var n=0;while(n<e){var a=Y(r,n);if("%"===a){if("%"===Y(r,n+1)||n+3>e){t+="%";n++;continue}var i=ro(r,n+1);if(i!==i){t+=a;n++;continue}n+=2;var s=ru(i);if(0===s)a=W(i);else{if(1===s||s>4){t+=ri;n++;continue}var o=[i];var u=1;while(u<s){n++;if(n+3>e||"%"!==Y(r,n))break;var l=ro(r,n+1);if(l!==l){n+=3;break}if(l>191||l<128)break;K(o,l);n+=2;u++}if(o.length!==s){t+=ri;continue}var c=rl(o);if(null===c)t+=ri;else a=J(c)}}t+=a;n++}return t};var rv=/[!'()~]|%20/g;var rf={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};var rp=function(r){return rf[r]};var rh=function(r){return V($(r),rv,rp)};var rd=d(function(r,e){T(this,{type:C,target:z(r).entries,index:0,kind:e})},q,function(){var r=B(this);var e=r.target;var t=r.index++;if(!e||t>=e.length){r.target=null;return L(void 0,true)}var n=e[t];switch(r.kind){case"keys":return L(n.key,false);case"values":return L(n.value,false)}return L([n.key,n.value],false)},true);var rg=function(r){this.entries=[];this.url=null;if(void 0!==r)if(S(r))this.parseObject(r);else this.parseQuery("string"==typeof r?"?"===Y(r,0)?rt(r,1):r:k(r))};rg.prototype={type:q,bindURL:function(r){this.url=r;this.update()},parseObject:function(r){var e=this.entries;var t=U(r);var n,a,i,s,u,l,c;if(t){n=R(r,t);a=n.next;while(!(i=o(a,n)).done){s=R(x(i.value));u=s.next;if((l=o(u,s)).done||(c=o(u,s)).done||!o(u,s).done)throw new D("Expected sequence with length 2");K(e,{key:k(l.value),value:k(c.value)})}}else for(var v in r)if(m(r,v))K(e,{key:v,value:k(r[v])})},parseQuery:function(r){if(r){var e=this.entries;var t=re(r,"&");var n=0;var a,i;while(n<t.length){a=t[n++];if(a.length){i=re(a,"=");K(e,{key:rc(Z(i)),value:rc(X(i,"="))})}}}},serialize:function(){var r=this.entries;var e=[];var t=0;var n;while(t<r.length){n=r[t++];K(e,rh(n.key)+"="+rh(n.value))}return X(e,"&")},update:function(){this.entries.length=0;this.parseQuery(this.url.query)}
117,updateURL:function(){if(this.url)this.url.update()}};var rb=function(){b(this,ry);var r=arguments.length>0?arguments[0]:void 0;var e=T(this,new rg(r));if(!l)this.size=e.entries.length};var ry=rb.prototype;p(ry,{append:function(r,e){var t=z(this);E(arguments.length,2);K(t.entries,{key:k(r),value:k(e)});if(!l)this.length++;t.updateURL()},delete:function(r){var e=z(this);var t=E(arguments.length,1);var n=e.entries;var a=k(r);var i=t<2?void 0:arguments[1];var s=void 0===i?i:k(i);var o=0;while(o<n.length){var u=n[o];if(u.key===a&&(void 0===s||u.value===s)){rr(n,o,1);if(void 0!==s)break}else o++}if(!l)this.size=n.length;e.updateURL()},get:function(r){var e=z(this).entries;E(arguments.length,1);var t=k(r);var n=0;for(;n<e.length;n++)if(e[n].key===t)return e[n].value;return null},getAll:function(r){var e=z(this).entries;E(arguments.length,1);var t=k(r);var n=[];var a=0;for(;a<e.length;a++)if(e[a].key===t)K(n,e[a].value);return n},has:function(r){var e=z(this).entries;var t=E(arguments.length,1);var n=k(r);var a=t<2?void 0:arguments[1];var i=void 0===a?a:k(a);var s=0;while(s<e.length){var o=e[s++];if(o.key===n&&(void 0===i||o.value===i))return true}return false},set:function(r,e){var t=z(this);E(arguments.length,1);var n=t.entries;var a=false;var i=k(r);var s=k(e);var o=0;var u;for(;o<n.length;o++){u=n[o];if(u.key===i)if(a)rr(n,o--,1);else{a=true;u.value=s}}if(!a)K(n,{key:i,value:s});if(!l)this.size=n.length;t.updateURL()},sort:function(){var r=z(this);_(r.entries,function(r,e){return r.key>e.key?1:-1});r.updateURL()},forEach:function(r){var e=z(this).entries;var t=j(r,arguments.length>1?arguments[1]:void 0);var n=0;var a;while(n<e.length){a=e[n++];t(a.value,a.key,this)}},keys:function(){return new rd(this,"keys")},values:function(){return new rd(this,"values")},entries:function(){return new rd(this,"entries")}},{enumerable:true});v(ry,I,ry.entries,{name:"entries"});v(ry,"toString",function(){return z(this).serialize()},{enumerable:true});if(l)f(ry,"size",{get:function(){return z(this).entries.length},configurable:true,enumerable:true});h(rb,q);n({global:true,constructor:true,forced:!c},{URLSearchParams:rb});if(!c&&y(M)){var rm=u(G.has);var rj=u(G.set);var rw=function(r){if(S(r)){var e=r.body;var t;if(w(e)===q){t=r.headers?new M(r.headers):new M;if(!rm(t,"content-type"))rj(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8");return P(r,{body:O(0,k(e)),headers:O(0,t)})}}return r};if(y(F))n({global:true,enumerable:true,dontCallGetSet:true,forced:true},{fetch:function(r){return F(r,arguments.length>1?rw(arguments[1]):{})}});if(y(H)){var rx=function(r){b(this,N);return new H(r,arguments.length>1?rw(arguments[1]):{})};N.constructor=rx;rx.prototype=N;n({global:true,constructor:true,dontCallGetSet:true,forced:true},{Request:rx})}}t.exports={URLSearchParams:rb,getState:z}},
117"es.array.iterator.js":function(r,e,t){"use strict";var n=r("../internals/to-indexed-object");var a=r("../internals/add-to-unscopables");var i=r("../internals/iterators");var s=r("../internals/internal-state");var o=r("../internals/object-define-property").f;var u=r("../internals/iterator-define");var l=r("../internals/create-iter-result-object");var c=r("../internals/is-pure");var v=r("../internals/descriptors");var f="Array Iterator";var p=s.set;var h=s.getterFor(f);t.exports=u(Array,"Array",function(r,e){p(this,{type:f,target:n(r),index:0,kind:e})},function(){var r=h(this);var e=r.target;var t=r.index++;if(!e||t>=e.length){r.target=null;return l(void 0,true)}switch(r.kind){case"keys":return l(t,false);case"values":return l(e[t],false)}return l([t,e[t]],false)},"values");var d=i.Arguments=i.Array;a("keys");a("values");a("entries");if(!c&&v&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(r){}},
117"es.string.from-code-point.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/function-uncurry-this");var n=r("../internals/to-absolute-index");var a=RangeError;var i=String.fromCharCode;var s=String.fromCodePoint;var o=t([].join);var u=!!s&&1!==s.length;e({target:"String",stat:true,arity:1,forced:u},{fromCodePoint:function(r){var e=[];var t=arguments.length;var s=0;var u;while(t>s){u=+arguments[s++];if(n(u,1114111)!==u)throw new a(u+" is not a valid code point");e[s]=u<65536?i(u):i(((u-=65536)>>10)+55296,u%1024+56320)}return o(e,"")}})},
117"web.url-search-params.delete.js":function(r){"use strict";var e=r("../internals/define-built-in");var t=r("../internals/function-uncurry-this");var a=r("../internals/to-string");var i=r("../internals/validate-arguments-length");var s=n;var o=s.prototype;var u=t(o.append);var l=t(o["delete"]);var c=t(o.forEach);var v=t([].push);var f=new s("a=1&a=2&b=3");f["delete"]("a",1);f["delete"]("b",void 0);if(f+""!=="a=2")e(o,"delete",function(r){var e=arguments.length;var t=e<2?void 0:arguments[1];if(e&&void 0===t)return l(this,r);var n=[];c(this,function(r,e){v(n,{key:e,value:r})});i(e,1);var s=a(r);var o=a(t);var f=0;var p=0;var h=false;var d=n.length;var g;while(f<d){g=n[f++];if(h||g.key===s){h=true;l(this,g.key)}else p++}while(p<d){g=n[p++];if(!(g.key===s&&g.value===o))u(this,g.key,g.value)}},{enumerable:true,unsafe:true})},
117"web.url-search-params.has.js":function(r){"use strict";var e=r("../internals/define-built-in");var t=r("../internals/function-uncurry-this");var a=r("../internals/to-string");var i=r("../internals/validate-arguments-length");var s=n;var o=s.prototype;var u=t(o.getAll);var l=t(o.has);var c=new s("a=1");if(c.has("a",2)||!c.has("a",void 0))e(o,"has",function(r){var e=arguments.length;var t=e<2?void 0:arguments[1];if(e&&void 0===t)return l(this,r);var n=u(this,r);i(e,1);var s=a(t);var o=0;while(o<n.length)if(n[o++]===s)return true;return false},{enumerable:true,unsafe:true})},
117"web.url-search-params.size.js":function(r){"use strict";var e=r("../internals/descriptors");var t=r("../internals/function-uncurry-this");var a=r("../internals/define-built-in-accessor");var i=n.prototype;var s=t(i.forEach);if(e&&!("size"in i))a(i,"size",{get:function(){var r=0;s(this,function(){r++});return r},configurable:true,enumerable:true})},
117"web.url.js":function(r,e,t){"use strict";r("../modules/web.url.constructor")},
117"web.url.constructor.js":function(r){"use strict";r("../modules/es.string.iterator");var e=r("../internals/export");var t=r("../internals/descriptors");var n=r("../internals/url-constructor-detection");var a=r("../internals/global-this");var i=r("../internals/function-bind-context");var s=r("../internals/function-uncurry-this");var o=r("../internals/define-built-in");var u=r("../internals/define-built-in-accessor");var l=r("../internals/an-instance");var c=r("../internals/has-own-property");var v=r("../internals/object-assign");var f=r("../internals/array-from");var p=r("../internals/array-slice");var h=r("../internals/string-multibyte").codeAt;var d=r("../internals/string-punycode-to-ascii");var g=r("../internals/to-string");var b=r("../internals/set-to-string-tag");var y=r("../internals/validate-arguments-length");var m=r("../modules/web.url-search-params.constructor");var j=r("../internals/internal-state");var w=j.set;var x=j.getterFor("URL");var S=m.URLSearchParams;var k=m.getState;var P=a.URL;var O=a.TypeError;var R=a.parseInt;var U=Math.floor;var L=Math.pow;var E=s("".charAt);var A=s(/./.exec);var _=s([].join);var I=s(1..toString);var q=s([].pop);var C=s([].push);var T=s("".replace);var z=s([].shift);var B=s("".split);var F=s("".slice);var H=s("".toLowerCase);var M=s([].unshift);var N="Invalid authority";var G="Invalid scheme";var D="Invalid host";var $="Invalid port";var W=/[a-z]/i;var J=/[\d+-.a-z]/i;var Q=/\d/;var Y=/^0x/i;var X=/^[0-7]+$/;var K=/^\d+$/;var V=/^[\da-f]+$/i;var Z=/[\0\t\n\r #%/:<>?@[\\\]^|]/;var rr=/[\0\t\n\r #/:<>?@[\\\]^|]/;var re=/^[\u0000-\u0020]+/;var rt=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;var rn=/[\t\n\r]/g;var ra;var ri=function(r){var e=B(r,".");var t,n,a,i,s,o,u;if(e.length&&""===e[e.length-1])e.length--;t=e.length;if(t>4)return r;n=[];for(a=0;a<t;a++){i=e[a];if(""===i)return r;s=10;if(i.length>1&&"0"===E(i,0)){s=A(Y,i)?16:8;i=F(i,8===s?1:2)}if(""===i)o=0;else{if(!A(10===s?K:8===s?X:V,i))return r;o=R(i,s)}C(n,o)}for(a=0;a<t;a++){o=n[a];if(a===t-1){if(o>=L(256,5-t))return null}else if(o>255)return null}u=q(n);for(a=0;a<n.length;a++)u+=n[a]*L(256,3-a);return u};var rs=function(r){var e=[0,0,0,0,0,0,0,0];var t=0;var n=null;var a=0;var i,s,o,u,l,c,v;var f=function(){return E(r,a)};if(":"===f()){if(":"!==E(r,1))return;a+=2;t++;n=t}while(f()){if(8===t)return;if(":"===f()){if(null!==n)return;a++;t++;n=t;continue}i=s=0;while(s<4&&A(V,f())){i=16*i+R(f(),16);a++;s++}if("."===f()){if(0===s)return;a-=s;if(t>6)return;o=0;while(f()){u=null;if(o>0)if("."!==f()||!(o<4))return;else a++;if(!A(Q,f()))return;while(A(Q,f())){l=R(f(),10);if(null===u)u=l;else{if(0===u)return;u=10*u+l}if(u>255)return;a++}e[t]=256*e[t]+u;o++;if(2===o||4===o)t++}if(4!==o)return;break}if(":"===f()){a++;if(!f())return}else if(f())return;e[t++]=i}if(null!==n){c=t-n;t=7;while(0!==t&&c>0){v=e[t];e[t--]=e[n+c-1];e[n+--c]=v}}else if(8!==t)return;return e};var ro=function(r){var e=null;var t=1;var n=null;var a=0;var i=0;for(;i<8;i++)if(0!==r[i]){if(a>t){e=n;t=a}n=null;a=0}else{if(null===n)n=i;++a}return a>t?n:e};var ru=function(r){var e,t,n,a;if("number"==typeof r){e=[];for(t=0;t<4;t++){M(e,r%256);r=U(r/256)}return _(e,".")}if("object"==typeof r){e="";n=ro(r);for(t=0;t<8;t++)if(!a||0!==r[t]){if(a)a=false;if(n===t){e+=t?":":"::";a=true}else{e+=I(r[t],16);if(t<7)e+=":"}}return"["+e+"]"}return r};var rl={};var rc=v({},rl,{" ":1,'"':1,"<":1,">":1,"`":1});var rv=v({},rc,{"#":1,"?":1,"{":1,"}":1});var rf=v({},rv,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1});var rp=function(r,e){var t=h(r,0);return t>32&&t<127&&!c(e,r)?r:encodeURIComponent(r)};var rh={ftp:21,file:null,http:80,https:443,ws:80,wss:443};var rd=function(r,e){var t;return 2===r.length&&A(W,E(r,0))&&(":"===(t=E(r,1))||!e&&"|"===t)};var rg=function(r){var e;return r.length>1&&rd(F(r,0,2))&&(2===r.length||"/"===(e=E(r,2))||"\\"===e||"?"===e||"#"===e)};var rb=function(r){return"."===r||"%2e"===H(r)};var ry=function(r){r=H(r);return".."===r||"%2e."===r||".%2e"===r||"%2e%2e"===r};var rm={};var rj={};var rw={};var rx={};var rS={};var rk={};var rP={};var rO={};var rR={};var rU={};var rL={};var rE={};var rA={};var r_={};var rI={};var rq={};var rC={};var rT={};var rz={};var rB={};var rF={};var rH=function(r,e,t){var n=g(r);var a,i,s;if(e){i=this.parse(n);if(i)throw new O(i);this.searchParams=null}else{if(void 0!==t)a=new rH(t,true);i=this.parse(n,null,a);if(i)throw new O(i);s=k(new S);s.bindURL(this);this.searchParams=s}};rH.prototype={type:"URL",parse:function(r,e,t){var n=this;var a=e||rm;var i=0;var s="";var o=false;var u=false;var l=false;var v,h,d,b;r=g(r);if(!e){n.scheme="";n.username="";n.password="";n.host=null;n.port=null;n.path=[];n.query=null;n.fragment=null;n.cannotBeABaseURL=false;r=T(r,re,"");r=T(r,rt,"$1")}
117r=T(r,rn,"");v=f(r);while(i<=v.length){h=v[i];switch(a){case rm:if(h&&A(W,h)){s+=H(h);a=rj}else{if(e)return G;a=rw;continue}break;case rj:if(h&&(A(J,h)||"+"===h||"-"===h||"."===h))s+=H(h);else if(":"===h){if(e&&(n.isSpecial()!==c(rh,s)||"file"===s&&(n.includesCredentials()||null!==n.port)||"file"===n.scheme&&!n.host))return;n.scheme=s;if(e){if(n.isSpecial()&&rh[n.scheme]===n.port)n.port=null;return}s="";if("file"===n.scheme)a=r_;else if(n.isSpecial()&&t&&t.scheme===n.scheme)a=rx;else if(n.isSpecial())a=rO;else if("/"===v[i+1]){a=rS;i++}else{n.cannotBeABaseURL=true;C(n.path,"");a=rz}}else{if(e)return G;s="";a=rw;i=0;continue}break;case rw:if(!t||t.cannotBeABaseURL&&"#"!==h)return G;if(t.cannotBeABaseURL&&"#"===h){n.scheme=t.scheme;n.path=p(t.path);n.query=t.query;n.fragment="";n.cannotBeABaseURL=true;a=rF;break}a="file"===t.scheme?r_:rk;continue;case rx:if("/"===h&&"/"===v[i+1]){a=rR;i++}else{a=rk;continue}break;case rS:if("/"===h){a=rU;break}a=rT;continue;case rk:n.scheme=t.scheme;if(h===ra){n.username=t.username;n.password=t.password;n.host=t.host;n.port=t.port;n.path=p(t.path);n.query=t.query}else if("/"===h||"\\"===h&&n.isSpecial())a=rP;else if("?"===h){n.username=t.username;n.password=t.password;n.host=t.host;n.port=t.port;n.path=p(t.path);n.query="";a=rB}else if("#"===h){n.username=t.username;n.password=t.password;n.host=t.host;n.port=t.port;n.path=p(t.path);n.query=t.query;n.fragment="";a=rF}else{n.username=t.username;n.password=t.password;n.host=t.host;n.port=t.port;n.path=p(t.path);n.path.length--;a=rT;continue}break;case rP:if(n.isSpecial()&&("/"===h||"\\"===h))a=rR;else if("/"===h)a=rU;else{n.username=t.username;n.password=t.password;n.host=t.host;n.port=t.port;a=rT;continue}break;case rO:a=rR;if("/"!==h||"/"!==E(s,i+1))continue;i++;break;case rR:if("/"!==h&&"\\"!==h){a=rU;continue}break;case rU:if("@"===h){if(o)s="%40"+s;o=true;d=f(s);for(var y=0;y<d.length;y++){var m=d[y];if(":"===m&&!l){l=true;continue}var j=rp(m,rf);if(l)n.password+=j;else n.username+=j}s=""}else if(h===ra||"/"===h||"?"===h||"#"===h||"\\"===h&&n.isSpecial()){if(o&&""===s)return N;i-=f(s).length+1;s="";a=rL}else s+=h;break;case rL:case rE:if(e&&"file"===n.scheme){a=rq;continue}if(":"!==h||u)if(h===ra||"/"===h||"?"===h||"#"===h||"\\"===h&&n.isSpecial()){if(n.isSpecial()&&""===s)return D;if(e&&""===s&&(n.includesCredentials()||null!==n.port))return;b=n.parseHost(s);if(b)return b;s="";a=rC;if(e)return;continue}else{if("["===h)u=true;else if("]"===h)u=false;s+=h}else{if(""===s)return D;b=n.parseHost(s);if(b)return b;s="";a=rA;if(e===rE)return}break;case rA:if(A(Q,h))s+=h;else{if(!(h===ra||"/"===h||"?"===h||"#"===h||"\\"===h&&n.isSpecial())&&!e)return $;if(""!==s){var w=R(s,10);if(w>65535)return $;n.port=n.isSpecial()&&w===rh[n.scheme]?null:w;s=""}if(e)return;a=rC;continue}break;case r_:n.scheme="file";if("/"===h||"\\"===h)a=rI;else if(t&&"file"===t.scheme)switch(h){case ra:n.host=t.host;n.path=p(t.path);n.query=t.query;break;case"?":n.host=t.host;n.path=p(t.path);n.query="";a=rB;break;case"#":n.host=t.host;n.path=p(t.path);n.query=t.query;n.fragment="";a=rF;break;default:if(!rg(_(p(v,i),""))){n.host=t.host;n.path=p(t.path);n.shortenPath()}a=rT;continue}else{a=rT;continue}break;case rI:if("/"===h||"\\"===h){a=rq;break}if(t&&"file"===t.scheme&&!rg(_(p(v,i),"")))if(rd(t.path[0],true))C(n.path,t.path[0]);else n.host=t.host;a=rT;continue;case rq:if(h===ra||"/"===h||"\\"===h||"?"===h||"#"===h){if(!e&&rd(s))a=rT;else if(""===s){n.host="";if(e)return;a=rC}else{b=n.parseHost(s);if(b)return b;if("localhost"===n.host)n.host="";if(e)return;s="";a=rC}continue}s+=h;break;case rC:if(n.isSpecial()){a=rT;if("/"!==h&&"\\"!==h)continue}else if(e||"?"!==h)if(e||"#"!==h){if(h!==ra){a=rT;if("/"!==h)continue}}else{n.fragment="";a=rF}else{n.query="";a=rB}break;case rT:if(h===ra||"/"===h||"\\"===h&&n.isSpecial()||!e&&("?"===h||"#"===h)){if(ry(s)){n.shortenPath();if("/"!==h&&!("\\"===h&&n.isSpecial()))C(n.path,"")}else if(rb(s)){if("/"!==h&&!("\\"===h&&n.isSpecial()))C(n.path,"")}else{if("file"===n.scheme&&!n.path.length&&rd(s)){if(n.host)n.host="";s=E(s,0)+":"}C(n.path,s)}s="";if("file"===n.scheme&&(h===ra||"?"===h||"#"===h))while(n.path.length>1&&""===n.path[0])z(n.path);if("?"===h){n.query="";a=rB}else if("#"===h){n.fragment="";a=rF}}else s+=rp(h,rv);break;case rz:if("?"===h){n.query="";a=rB}else if("#"===h){n.fragment="";a=rF}else if(h!==ra)n.path[0]+=rp(h,rl);break;case rB:if(e||"#"!==h){if(h!==ra)if("'"===h&&n.isSpecial())n.query+="%27";else if("#"===h)n.query+="%23";else n.query+=rp(h,rl)}else{n.fragment="";a=rF}break;case rF:if(h!==ra)n.fragment+=rp(h,rc);break}i++}},parseHost:function(r){var e,t,n;
117if("["===E(r,0)){if("]"!==E(r,r.length-1))return D;e=rs(F(r,1,-1));if(!e)return D;this.host=e}else if(this.isSpecial()){r=d(r);if(A(Z,r))return D;e=ri(r);if(null===e)return D;this.host=e}else{if(A(rr,r))return D;e="";t=f(r);for(n=0;n<t.length;n++)e+=rp(t[n],rl);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return c(rh,this.scheme)},shortenPath:function(){var r=this.path;var e=r.length;if(e&&("file"!==this.scheme||1!==e||!rd(r[0],true)))r.length--},serialize:function(){var r=this;var e=r.scheme;var t=r.username;var n=r.password;var a=r.host;var i=r.port;var s=r.path;var o=r.query;var u=r.fragment;var l=e+":";if(null!==a){l+="//";if(r.includesCredentials())l+=t+(n?":"+n:"")+"@";l+=ru(a);if(null!==i)l+=":"+i}else if("file"===e)l+="//";l+=r.cannotBeABaseURL?s[0]:s.length?"/"+_(s,"/"):"";if(null!==o)l+="?"+o;if(null!==u)l+="#"+u;return l},setHref:function(r){var e=this.parse(r);if(e)throw new O(e);this.searchParams.update()},getOrigin:function(){var r=this.scheme;var e=this.port;if("blob"===r)try{return new rM(r.path[0]).origin}catch(r){return"null"}if("file"===r||!this.isSpecial())return"null";return r+"://"+ru(this.host)+(null!==e?":"+e:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(r){this.parse(g(r)+":",rm)},getUsername:function(){return this.username},setUsername:function(r){var e=f(g(r));if(this.cannotHaveUsernamePasswordPort())return;this.username="";for(var t=0;t<e.length;t++)this.username+=rp(e[t],rf)},getPassword:function(){return this.password},setPassword:function(r){var e=f(g(r));if(this.cannotHaveUsernamePasswordPort())return;this.password="";for(var t=0;t<e.length;t++)this.password+=rp(e[t],rf)},getHost:function(){var r=this.host;var e=this.port;return null===r?"":null===e?ru(r):ru(r)+":"+e},setHost:function(r){if(this.cannotBeABaseURL)return;this.parse(r,rL)},getHostname:function(){var r=this.host;return null===r?"":ru(r)},setHostname:function(r){if(this.cannotBeABaseURL)return;this.parse(r,rE)},getPort:function(){var r=this.port;return null===r?"":g(r)},setPort:function(r){if(this.cannotHaveUsernamePasswordPort())return;r=g(r);if(""===r)this.port=null;else this.parse(r,rA)},getPathname:function(){var r=this.path;return this.cannotBeABaseURL?r[0]:r.length?"/"+_(r,"/"):""},setPathname:function(r){if(this.cannotBeABaseURL)return;this.path=[];this.parse(r,rC)},getSearch:function(){var r=this.query;return r?"?"+r:""},setSearch:function(r){r=g(r);if(""===r)this.query=null;else{if("?"===E(r,0))r=F(r,1);this.query="";this.parse(r,rB)}this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var r=this.fragment;return r?"#"+r:""},setHash:function(r){r=g(r);if(""===r){this.fragment=null;return}if("#"===E(r,0))r=F(r,1);this.fragment="";this.parse(r,rF)},update:function(){this.query=this.searchParams.serialize()||null}};var rM=function(r){var e=l(this,rN);var n=y(arguments.length,1)>1?arguments[1]:void 0;var a=w(e,new rH(r,false,n));if(!t){e.href=a.serialize();e.origin=a.getOrigin();e.protocol=a.getProtocol();e.username=a.getUsername();e.password=a.getPassword();e.host=a.getHost();e.hostname=a.getHostname();e.port=a.getPort();e.pathname=a.getPathname();e.search=a.getSearch();e.searchParams=a.getSearchParams();e.hash=a.getHash()}};var rN=rM.prototype;var rG=function(r,e){return{get:function(){return x(this)[r]()},set:e&&function(r){return x(this)[e](r)},configurable:true,enumerable:true}};if(t){u(rN,"href",rG("serialize","setHref"));u(rN,"origin",rG("getOrigin"));u(rN,"protocol",rG("getProtocol","setProtocol"));u(rN,"username",rG("getUsername","setUsername"));u(rN,"password",rG("getPassword","setPassword"));u(rN,"host",rG("getHost","setHost"));u(rN,"hostname",rG("getHostname","setHostname"));u(rN,"port",rG("getPort","setPort"));u(rN,"pathname",rG("getPathname","setPathname"));
117u(rN,"search",rG("getSearch","setSearch"));u(rN,"searchParams",rG("getSearchParams"));u(rN,"hash",rG("getHash","setHash"))}o(rN,"toJSON",function(){return x(this).serialize()},{enumerable:true});o(rN,"toString",function(){return x(this).serialize()},{enumerable:true});if(P){var rD=P.createObjectURL;var r$=P.revokeObjectURL;if(rD)o(rM,"createObjectURL",i(rD,P));if(r$)o(rM,"revokeObjectURL",i(r$,P))}b(rM,"URL");e({global:true,constructor:true,forced:!n,sham:!t},{URL:rM})},
117"es.string.iterator.js":function(r){"use strict";var e=r("../internals/string-multibyte").charAt;var t=r("../internals/to-string");var n=r("../internals/internal-state");var a=r("../internals/iterator-define");var i=r("../internals/create-iter-result-object");var s="String Iterator";var o=n.set;var u=n.getterFor(s);a(String,"String",function(r){o(this,{type:s,string:t(r),index:0})},function(){var r=u(this);var t=r.string;var n=r.index;var a;if(n>=t.length)return i(void 0,true);a=e(t,n);r.index+=a.length;return i(a,false)})},
117"web.url.can-parse.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/get-built-in");var n=r("../internals/fails");var a=r("../internals/validate-arguments-length");var i=r("../internals/to-string");var s=r("../internals/url-constructor-detection");var o=t("URL");var u=s&&n(function(){o.canParse()});var l=n(function(){return 1!==o.canParse.length});e({target:"URL",stat:true,forced:!u||l},{canParse:function(r){var e=a(arguments.length,1);var t=i(r);var n=e<2||void 0===arguments[1]?void 0:i(arguments[1]);try{return new o(t,n),true}catch(r){return false}}})},
117"web.url.parse.js":function(r){"use strict";var e=r("../internals/export");var t=r("../internals/get-built-in");var n=r("../internals/validate-arguments-length");var a=r("../internals/to-string");var i=r("../internals/url-constructor-detection");var s=t("URL");e({target:"URL",stat:true,forced:!i},{parse:function(r){var e=n(arguments.length,1);var t=a(r);var i=e<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new s(t,i)}catch(r){return null}}})},
117"web.url.to-json.js":function(r){"use strict";var e=r("../internals/export");var n=r("../internals/function-call");e({target:"URL",proto:true,enumerable:true},{toJSON:function(){return n(t.prototype.toString,this)}})}},internals:{
117"to-indexed-object.js":function(r,e,t){"use strict";var n=r("../internals/indexed-object");var a=r("../internals/require-object-coercible");t.exports=function(r){return n(a(r))}},
117"indexed-object.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=r("../internals/fails");var i=r("../internals/classof-raw");var s=Object;var o=n("".split);t.exports=a(function(){return!s("z").propertyIsEnumerable(0)})?function(r){return"String"===i(r)?o(r,""):s(r)}:s},
117"function-uncurry-this.js":function(r,e,t){"use strict";var n=r("../internals/function-bind-native");var a=Function.prototype;var i=a.call;var s=n&&a.bind.bind(i,i);t.exports=n?s:function(r){return function(){return i.apply(r,arguments)}}},
117"function-bind-native.js":function(r,e,t){"use strict";var n=r("../internals/fails");t.exports=!n(function(){var r=(function(){}).bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})},
117"fails.js":function(r,e,t){"use strict";t.exports=function(r){try{return!!r()}catch(r){return true}}},
117"classof-raw.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=n({}.toString);var i=n("".slice);t.exports=function(r){return i(a(r),8,-1)}},
117"require-object-coercible.js":function(r,e,t){"use strict";var n=r("../internals/is-null-or-undefined");var a=TypeError;t.exports=function(r){if(n(r))throw new a("Can't call method on "+r);return r}},
117"is-null-or-undefined.js":function(r,e,t){"use strict";t.exports=function(r){return null==r}},
117"add-to-unscopables.js":function(r,e,t){"use strict";var n=r("../internals/well-known-symbol");var a=r("../internals/object-create");var i=r("../internals/object-define-property").f;var s=n("unscopables");var o=Array.prototype;if(void 0===o[s])i(o,s,{configurable:true,value:a(null)});t.exports=function(r){o[s][r]=true}},
117"well-known-symbol.js":function(r,e,t){"use strict";var n=r("../internals/global-this");var a=r("../internals/shared");var i=r("../internals/has-own-property");var s=r("../internals/uid");var o=r("../internals/symbol-constructor-detection");var u=r("../internals/use-symbol-as-uid");var l=n.Symbol;var c=a("wks");var v=u?l["for"]||l:l&&l.withoutSetter||s;t.exports=function(r){if(!i(c,r))c[r]=o&&i(l,r)?l[r]:v("Symbol."+r);return c[r]}},
117"global-this.js":function(e,t,n){"use strict";var a=function(r){return r&&r.Math===Math&&r};n.exports=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof r&&r)||a("object"==typeof this&&this)||function(){return this}()||Function("return this")()},
117"shared.js":function(r,e,t){"use strict";var n=r("../internals/shared-store");t.exports=function(r,e){return n[r]||(n[r]=e||{})}},
117"shared-store.js":function(r,e,t){"use strict";var n=r("../internals/is-pure");var a=r("../internals/global-this");var i=r("../internals/define-global-property");var s="__core-js_shared__";var o=t.exports=a[s]||i(s,{});(o.versions||(o.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},
117"is-pure.js":function(r,e,t){"use strict";t.exports=false},
117"define-global-property.js":function(r,e,t){"use strict";var n=r("../internals/global-this");var a=Object.defineProperty;t.exports=function(r,e){try{a(n,r,{value:e,configurable:true,writable:true})}catch(t){n[r]=e}return e}},
117"has-own-property.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=r("../internals/to-object");var i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(r,e){return i(a(r),e)}},
117"to-object.js":function(r,e,t){"use strict";var n=r("../internals/require-object-coercible");var a=Object;t.exports=function(r){return a(n(r))}},
117"uid.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=0;var i=Math.random();var s=n(1..toString);t.exports=function(r){return"Symbol("+(void 0===r?"":r)+")_"+s(++a+i,36)}},
117"symbol-constructor-detection.js":function(r,e,t){"use strict";var n=r("../internals/environment-v8-version");var a=r("../internals/fails");var i=r("../internals/global-this");var s=i.String;t.exports=!!Object.getOwnPropertySymbols&&!a(function(){var r=Symbol("symbol detection");return!s(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&n&&n<41})},
117"environment-v8-version.js":function(r,e,t){"use strict";var n=r("../internals/global-this");var a=r("../internals/environment-user-agent");var i=n.process;var s=n.Deno;var o=i&&i.versions||s&&s.version;var u=o&&o.v8;var l,c;if(u){l=u.split(".");c=l[0]>0&&l[0]<4?1:+(l[0]+l[1])}if(!c&&a){l=a.match(/Edge\/(\d+)/);if(!l||l[1]>=74){l=a.match(/Chrome\/(\d+)/);if(l)c=+l[1]}}t.exports=c},
117"environment-user-agent.js":function(r,e,t){"use strict";var n=r("../internals/global-this");var a=n.navigator;var i=a&&a.userAgent;t.exports=i?String(i):""},
117"use-symbol-as-uid.js":function(r,e,t){"use strict";var n=r("../internals/symbol-constructor-detection");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},
117"object-create.js":function(r,e,t){"use strict";var n=r("../internals/an-object");var a=r("../internals/object-define-properties");var i=r("../internals/enum-bug-keys");var s=r("../internals/hidden-keys");var o=r("../internals/html");var u=r("../internals/document-create-element");var l=r("../internals/shared-key");var c=">";var v="<";var f="prototype";var p="script";var h=l("IE_PROTO");var d=function(){};var g=function(r){return v+p+c+r+v+"/"+p+c};var b=function(r){r.write(g(""));r.close();var e=r.parentWindow.Object;r=null;return e};var y=function(){var r=u("iframe");var e="java"+p+":";var t;r.style.display="none";o.appendChild(r);r.src=String(e);t=r.contentWindow.document;t.open();t.write(g("document.F=Object"));t.close();return t.F};var m;var j=function(){try{m=new ActiveXObject("htmlfile")}catch(r){}j="undefined"!=typeof document?document.domain&&m?b(m):y():b(m);var r=i.length;while(r--)delete j[f][i[r]];return j()};s[h]=true;t.exports=Object.create||function(r,e){var t;if(null!==r){d[f]=n(r);t=new d;d[f]=null;t[h]=r}else t=j();return void 0===e?t:a.f(t,e)}},
117"an-object.js":function(r,e,t){"use strict";var n=r("../internals/is-object");var a=String;var i=TypeError;t.exports=function(r){if(n(r))return r;throw new i(a(r)+" is not an object")}},
117"is-object.js":function(r,e,t){"use strict";var n=r("../internals/is-callable");t.exports=function(r){return"object"==typeof r?null!==r:n(r)}},
117"is-callable.js":function(r,e,t){"use strict";var n="object"==typeof document&&document.all;t.exports=void 0===n&&void 0!==n?function(r){return"function"==typeof r||r===n}:function(r){return"function"==typeof r}},
117"object-define-properties.js":function(r,e){"use strict";var t=r("../internals/descriptors");var n=r("../internals/v8-prototype-define-bug");var a=r("../internals/object-define-property");var i=r("../internals/an-object");var s=r("../internals/to-indexed-object");var o=r("../internals/object-keys");e.f=t&&!n?Object.defineProperties:function(r,e){i(r);var t=s(e);var n=o(e);var u=n.length;var l=0;var c;while(u>l)a.f(r,c=n[l++],t[c]);return r}},
117"descriptors.js":function(r,e,t){"use strict";var n=r("../internals/fails");t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},
117"v8-prototype-define-bug.js":function(r,e,t){"use strict";var n=r("../internals/descriptors");var a=r("../internals/fails");t.exports=n&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:false}).prototype})},
117"object-define-property.js":function(r,e){"use strict";var t=r("../internals/descriptors");var n=r("../internals/ie8-dom-define");var a=r("../internals/v8-prototype-define-bug");var i=r("../internals/an-object");var s=r("../internals/to-property-key");var o=TypeError;var u=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c="enumerable";var v="configurable";var f="writable";e.f=t?a?function(r,e,t){i(r);e=s(e);i(t);if("function"==typeof r&&"prototype"===e&&"value"in t&&f in t&&!t[f]){var n=l(r,e);if(n&&n[f]){r[e]=t.value;t={configurable:v in t?t[v]:n[v],enumerable:c in t?t[c]:n[c],writable:false}}}return u(r,e,t)}:u:function(r,e,t){i(r);e=s(e);i(t);if(n)try{return u(r,e,t)}catch(r){}if("get"in t||"set"in t)throw new o("Accessors not supported");if("value"in t)r[e]=t.value;return r}},
117"ie8-dom-define.js":function(r,e,t){"use strict";var n=r("../internals/descriptors");var a=r("../internals/fails");var i=r("../internals/document-create-element");t.exports=!n&&!a(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},
117"document-create-element.js":function(r,e,t){"use strict";var n=r("../internals/global-this");var a=r("../internals/is-object");var i=n.document;var s=a(i)&&a(i.createElement);t.exports=function(r){return s?i.createElement(r):{}}},
117"to-property-key.js":function(r,e,t){"use strict";var n=r("../internals/to-primitive");var a=r("../internals/is-symbol");t.exports=function(r){var e=n(r,"string");return a(e)?e:e+""}},
117"to-primitive.js":function(r,e,t){"use strict";var n=r("../internals/function-call");var a=r("../internals/is-object");var i=r("../internals/is-symbol");var s=r("../internals/get-method");var o=r("../internals/ordinary-to-primitive");var u=r("../internals/well-known-symbol");var l=TypeError;var c=u("toPrimitive");t.exports=function(r,e){if(!a(r)||i(r))return r;var t=s(r,c);var u;if(t){if(void 0===e)e="default";u=n(t,r,e);if(!a(u)||i(u))return u;throw new l("Can't convert object to primitive value")}if(void 0===e)e="number";return o(r,e)}},
117"function-call.js":function(r,e,t){"use strict";var n=r("../internals/function-bind-native");var a=Function.prototype.call;t.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},
117"is-symbol.js":function(r,e,t){"use strict";var n=r("../internals/get-built-in");var a=r("../internals/is-callable");var i=r("../internals/object-is-prototype-of");var s=r("../internals/use-symbol-as-uid");var o=Object;t.exports=s?function(r){return"symbol"==typeof r}:function(r){var e=n("Symbol");return a(e)&&i(e.prototype,o(r))}},
117"get-built-in.js":function(r,e,t){"use strict";var n=r("../internals/global-this");var a=r("../internals/is-callable");var i=function(r){return a(r)?r:void 0};t.exports=function(r,e){return arguments.length<2?i(n[r]):n[r]&&n[r][e]}},
117"object-is-prototype-of.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");t.exports=n({}.isPrototypeOf)},
117"get-method.js":function(r,e,t){"use strict";var n=r("../internals/a-callable");var a=r("../internals/is-null-or-undefined");t.exports=function(r,e){var t=r[e];return a(t)?void 0:n(t)}},
117"a-callable.js":function(r,e,t){"use strict";var n=r("../internals/is-callable");var a=r("../internals/try-to-string");var i=TypeError;t.exports=function(r){if(n(r))return r;throw new i(a(r)+" is not a function")}},
117"try-to-string.js":function(r,e,t){"use strict";var n=String;t.exports=function(r){try{return n(r)}catch(r){return"Object"}}},
117"ordinary-to-primitive.js":function(r,e,t){"use strict";var n=r("../internals/function-call");var a=r("../internals/is-callable");var i=r("../internals/is-object");var s=TypeError;t.exports=function(r,e){var t,o;if("string"===e&&a(t=r.toString)&&!i(o=n(t,r)))return o;if(a(t=r.valueOf)&&!i(o=n(t,r)))return o;if("string"!==e&&a(t=r.toString)&&!i(o=n(t,r)))return o;throw new s("Can't convert object to primitive value")}},
117"object-keys.js":function(r,e,t){"use strict";var n=r("../internals/object-keys-internal");var a=r("../internals/enum-bug-keys");t.exports=Object.keys||function(r){return n(r,a)}},
117"object-keys-internal.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=r("../internals/has-own-property");var i=r("../internals/to-indexed-object");var s=r("../internals/array-includes").indexOf;var o=r("../internals/hidden-keys");var u=n([].push);t.exports=function(r,e){var t=i(r);var n=0;var l=[];var c;for(c in t)!a(o,c)&&a(t,c)&&u(l,c);while(e.length>n)if(a(t,c=e[n++]))~s(l,c)||u(l,c);return l}},
117"array-includes.js":function(r,e,t){"use strict";var n=r("../internals/to-indexed-object");var a=r("../internals/to-absolute-index");var i=r("../internals/length-of-array-like");var s=function(r){return function(e,t,s){var o=n(e);var u=i(o);if(0===u)return!r&&-1;var l=a(s,u);var c;if(r&&t!==t)while(u>l){c=o[l++];if(c!==c)return true}else for(;u>l;l++)if((r||l in o)&&o[l]===t)return r||l||0;return!r&&-1}};t.exports={includes:s(true),indexOf:s(false)}},
117"to-absolute-index.js":function(r,e,t){"use strict";var n=r("../internals/to-integer-or-infinity");var a=Math.max;var i=Math.min;t.exports=function(r,e){var t=n(r);return t<0?a(t+e,0):i(t,e)}},
117"to-integer-or-infinity.js":function(r,e,t){"use strict";var n=r("../internals/math-trunc");t.exports=function(r){var e=+r;return e!==e||0===e?0:n(e)}},
117"math-trunc.js":function(r,e,t){"use strict";var n=Math.ceil;var a=Math.floor;t.exports=Math.trunc||function(r){var e=+r;return(e>0?a:n)(e)}},
117"length-of-array-like.js":function(r,e,t){"use strict";var n=r("../internals/to-length");t.exports=function(r){return n(r.length)}},
117"to-length.js":function(r,e,t){"use strict";var n=r("../internals/to-integer-or-infinity");var a=Math.min;t.exports=function(r){var e=n(r);return e>0?a(e,0x1fffffffffffff):0}},
117"hidden-keys.js":function(r,e,t){"use strict";t.exports={}},
117"enum-bug-keys.js":function(r,e,t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},
117"html.js":function(r,e,t){"use strict";var n=r("../internals/get-built-in");t.exports=n("document","documentElement")},
117"shared-key.js":function(r,e,t){"use strict";var n=r("../internals/shared");var a=r("../internals/uid");var i=n("keys");t.exports=function(r){return i[r]||(i[r]=a(r))}},
117"iterators.js":function(r,e,t){"use strict";t.exports={}},
117"internal-state.js":function(r,e,t){"use strict";var n=r("../internals/weak-map-basic-detection");var a=r("../internals/global-this");var i=r("../internals/is-object");var s=r("../internals/create-non-enumerable-property");var o=r("../internals/has-own-property");var u=r("../internals/shared-store");var l=r("../internals/shared-key");var c=r("../internals/hidden-keys");var v="Object already initialized";var f=a.TypeError;var p=a.WeakMap;var h,d,g;var b=function(r){return g(r)?d(r):h(r,{})};var y=function(r){return function(e){var t;if(!i(e)||(t=d(e)).type!==r)throw new f("Incompatible receiver, "+r+" required");return t}};if(n||u.state){var m=u.state||(u.state=new p);m.get=m.get;m.has=m.has;m.set=m.set;h=function(r,e){if(m.has(r))throw new f(v);e.facade=r;m.set(r,e);return e};d=function(r){return m.get(r)||{}};g=function(r){return m.has(r)}}else{var j=l("state");c[j]=true;h=function(r,e){if(o(r,j))throw new f(v);e.facade=r;s(r,j,e);return e};d=function(r){return o(r,j)?r[j]:{}};g=function(r){return o(r,j)}}t.exports={set:h,get:d,has:g,enforce:b,getterFor:y}},
117"weak-map-basic-detection.js":function(r,e,t){"use strict";var n=r("../internals/global-this");var a=r("../internals/is-callable");var i=n.WeakMap;t.exports=a(i)&&/native code/.test(String(i))},
117"create-non-enumerable-property.js":function(r,e,t){"use strict";var n=r("../internals/descriptors");var a=r("../internals/object-define-property");var i=r("../internals/create-property-descriptor");t.exports=n?function(r,e,t){return a.f(r,e,i(1,t))}:function(r,e,t){r[e]=t;return r}},
117"create-property-descriptor.js":function(r,e,t){"use strict";t.exports=function(r,e){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:e}}},
117"iterator-define.js":function(r,e,t){"use strict";var n=r("../internals/export");var a=r("../internals/function-call");var i=r("../internals/is-pure");var s=r("../internals/function-name");var o=r("../internals/is-callable");var u=r("../internals/iterator-create-constructor");var l=r("../internals/object-get-prototype-of");var c=r("../internals/object-set-prototype-of");var v=r("../internals/set-to-string-tag");var f=r("../internals/create-non-enumerable-property");var p=r("../internals/define-built-in");var h=r("../internals/well-known-symbol");var d=r("../internals/iterators");var g=r("../internals/iterators-core");var b=s.PROPER;var y=s.CONFIGURABLE;var m=g.IteratorPrototype;var j=g.BUGGY_SAFARI_ITERATORS;var w=h("iterator");var x="keys";var S="values";var k="entries";var P=function(){return this};t.exports=function(r,e,t,s,h,g,O){u(t,e,s);var R=function(r){if(r===h&&_)return _;if(!j&&r&&r in E)return E[r];switch(r){case x:return function(){return new t(this,r)};case S:return function(){return new t(this,r)};case k:return function(){return new t(this,r)}}return function(){return new t(this)}};var U=e+" Iterator";var L=false;var E=r.prototype;var A=E[w]||E["@@iterator"]||h&&E[h];var _=!j&&A||R(h);var I="Array"===e?E.entries||A:A;var q,C,T;if(I){q=l(I.call(new r));if(q!==Object.prototype&&q.next){if(!i&&l(q)!==m){if(c)c(q,m);else if(!o(q[w]))p(q,w,P)}v(q,U,true,true);if(i)d[U]=P}}if(b&&h===S&&A&&A.name!==S)if(!i&&y)f(E,"name",S);else{L=true;_=function(){return a(A,this)}}if(h){C={values:R(S),keys:g?_:R(x),entries:R(k)};if(O){for(T in C)if(j||L||!(T in E))p(E,T,C[T])}else n({target:e,proto:true,forced:j||L},C)}if((!i||O)&&E[w]!==_)p(E,w,_,{name:h});d[e]=_;return C}},
117"export.js":function(r,e,t){"use strict";var n=r("../internals/global-this");var a=r("../internals/object-get-own-property-descriptor").f;var i=r("../internals/create-non-enumerable-property");var s=r("../internals/define-built-in");var o=r("../internals/define-global-property");var u=r("../internals/copy-constructor-properties");var l=r("../internals/is-forced");t.exports=function(r,e){var t=r.target;var c=r.global;var v=r.stat;var f,p,h,d,g,b;p=c?n:v?n[t]||o(t,{}):n[t]&&n[t].prototype;if(p)for(h in e){g=e[h];if(r.dontCallGetSet){b=a(p,h);d=b&&b.value}else d=p[h];f=l(c?h:t+(v?".":"#")+h,r.forced);if(!f&&void 0!==d){if(typeof g==typeof d)continue;u(g,d)}if(r.sham||d&&d.sham)i(g,"sham",true);s(p,h,g,r)}}},
117"object-get-own-property-descriptor.js":function(r,e){"use strict";var t=r("../internals/descriptors");var n=r("../internals/function-call");var a=r("../internals/object-property-is-enumerable");var i=r("../internals/create-property-descriptor");var s=r("../internals/to-indexed-object");var o=r("../internals/to-property-key");var u=r("../internals/has-own-property");var l=r("../internals/ie8-dom-define");var c=Object.getOwnPropertyDescriptor;e.f=t?c:function(r,e){r=s(r);e=o(e);if(l)try{return c(r,e)}catch(r){}if(u(r,e))return i(!n(a.f,r,e),r[e])}},
117"object-property-is-enumerable.js":function(r,e){"use strict";var t={}.propertyIsEnumerable;var n=Object.getOwnPropertyDescriptor;var a=n&&!t.call({1:2},1);e.f=a?function(r){var e=n(this,r);return!!e&&e.enumerable}:t},
117"define-built-in.js":function(r,e,t){"use strict";var n=r("../internals/is-callable");var a=r("../internals/object-define-property");var i=r("../internals/make-built-in");var s=r("../internals/define-global-property");t.exports=function(r,e,t,o){if(!o)o={};var u=o.enumerable;var l=void 0!==o.name?o.name:e;if(n(t))i(t,l,o);if(o.global)if(u)r[e]=t;else s(e,t);else{try{if(o.unsafe){if(r[e])u=true}else delete r[e]}catch(r){}if(u)r[e]=t;else a.f(r,e,{value:t,enumerable:false,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return r}},
117"make-built-in.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=r("../internals/fails");var i=r("../internals/is-callable");var s=r("../internals/has-own-property");var o=r("../internals/descriptors");var u=r("../internals/function-name").CONFIGURABLE;var l=r("../internals/inspect-source");var c=r("../internals/internal-state");var v=c.enforce;var f=c.get;var p=String;var h=Object.defineProperty;var d=n("".slice);var g=n("".replace);var b=n([].join);var y=o&&!a(function(){return 8!==h(function(){},"length",{value:8}).length});var m=String(String).split("String");var j=t.exports=function(r,e,t){if("Symbol("===d(p(e),0,7))e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]";if(t&&t.getter)e="get "+e;if(t&&t.setter)e="set "+e;if(!s(r,"name")||u&&r.name!==e)if(o)h(r,"name",{value:e,configurable:true});else r.name=e;if(y&&t&&s(t,"arity")&&r.length!==t.arity)h(r,"length",{value:t.arity});try{if(t&&s(t,"constructor")&&t.constructor){if(o)h(r,"prototype",{writable:false})}else if(r.prototype)r.prototype=void 0}catch(r){}var n=v(r);if(!s(n,"source"))n.source=b(m,"string"==typeof e?e:"");return r};Function.prototype.toString=j(function(){return i(this)&&f(this).source||l(this)},"toString")},
117"function-name.js":function(r,e,t){"use strict";var n=r("../internals/descriptors");var a=r("../internals/has-own-property");var i=Function.prototype;var s=n&&Object.getOwnPropertyDescriptor;var o=a(i,"name");var u=o&&"something"===(function(){}).name;var l=o&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:l}},
117"inspect-source.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=r("../internals/is-callable");var i=r("../internals/shared-store");var s=n(Function.toString);if(!a(i.inspectSource))i.inspectSource=function(r){return s(r)};t.exports=i.inspectSource},
117"copy-constructor-properties.js":function(r,e,t){"use strict";var n=r("../internals/has-own-property");var a=r("../internals/own-keys");var i=r("../internals/object-get-own-property-descriptor");var s=r("../internals/object-define-property");t.exports=function(r,e,t){var o=a(e);var u=s.f;var l=i.f;for(var c=0;c<o.length;c++){var v=o[c];if(!n(r,v)&&!(t&&n(t,v)))u(r,v,l(e,v))}}},
117"own-keys.js":function(r,e,t){"use strict";var n=r("../internals/get-built-in");var a=r("../internals/function-uncurry-this");var i=r("../internals/object-get-own-property-names");var s=r("../internals/object-get-own-property-symbols");var o=r("../internals/an-object");var u=a([].concat);t.exports=n("Reflect","ownKeys")||function(r){var e=i.f(o(r));var t=s.f;return t?u(e,t(r)):e}},
117"object-get-own-property-names.js":function(r,e){"use strict";var t=r("../internals/object-keys-internal");var n=r("../internals/enum-bug-keys");var a=n.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(r){return t(r,a)}},
117"object-get-own-property-symbols.js":function(r,e){"use strict";e.f=Object.getOwnPropertySymbols},
117"is-forced.js":function(r,e,t){"use strict";var n=r("../internals/fails");var a=r("../internals/is-callable");var i=/#|\.prototype\./;var s=function(r,e){var t=u[o(r)];return t===c?true:t===l?false:a(e)?n(e):!!e};var o=s.normalize=function(r){return String(r).replace(i,".").toLowerCase()};var u=s.data={};var l=s.NATIVE="N";var c=s.POLYFILL="P";t.exports=s},
117"iterator-create-constructor.js":function(r,e,t){"use strict";var n=r("../internals/iterators-core").IteratorPrototype;var a=r("../internals/object-create");var i=r("../internals/create-property-descriptor");var s=r("../internals/set-to-string-tag");var o=r("../internals/iterators");var u=function(){return this};t.exports=function(r,e,t,l){var c=e+" Iterator";r.prototype=a(n,{next:i(+!l,t)});s(r,c,false,true);o[c]=u;return r}},
117"iterators-core.js":function(r,e,t){"use strict";var n=r("../internals/fails");var a=r("../internals/is-callable");var i=r("../internals/is-object");var s=r("../internals/object-create");var o=r("../internals/object-get-prototype-of");var u=r("../internals/define-built-in");var l=r("../internals/well-known-symbol");var c=r("../internals/is-pure");var v=l("iterator");var f=false;var p,h,d;if([].keys){d=[].keys();if("next"in d){h=o(o(d));if(h!==Object.prototype)p=h}else f=true}var g=!i(p)||n(function(){var r={};return p[v].call(r)!==r});if(g)p={};else if(c)p=s(p);if(!a(p[v]))u(p,v,function(){return this});t.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}},
117"object-get-prototype-of.js":function(r,e,t){"use strict";var n=r("../internals/has-own-property");var a=r("../internals/is-callable");var i=r("../internals/to-object");var s=r("../internals/shared-key");var o=r("../internals/correct-prototype-getter");var u=s("IE_PROTO");var l=Object;var c=l.prototype;t.exports=o?l.getPrototypeOf:function(r){var e=i(r);if(n(e,u))return e[u];var t=e.constructor;if(a(t)&&e instanceof t)return t.prototype;return e instanceof l?c:null}},
117"correct-prototype-getter.js":function(r,e,t){"use strict";var n=r("../internals/fails");t.exports=!n(function(){function r(){}r.prototype.constructor=null;return Object.getPrototypeOf(new r)!==r.prototype})},
117"set-to-string-tag.js":function(r,e,t){"use strict";var n=r("../internals/object-define-property").f;var a=r("../internals/has-own-property");var i=r("../internals/well-known-symbol");var s=i("toStringTag");t.exports=function(r,e,t){if(r&&!t)r=r.prototype;if(r&&!a(r,s))n(r,s,{configurable:true,value:e})}},
117"object-set-prototype-of.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this-accessor");var a=r("../internals/is-object");var i=r("../internals/require-object-coercible");var s=r("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=false;var e={};var t;try{t=n(Object.prototype,"__proto__","set");t(e,[]);r=e instanceof Array}catch(r){}return function(e,n){i(e);s(n);if(!a(e))return e;if(r)t(e,n);else e.__proto__=n;return e}}():void 0)},
117"function-uncurry-this-accessor.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=r("../internals/a-callable");t.exports=function(r,e,t){try{return n(a(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(r){}}},
117"a-possible-prototype.js":function(r,e,t){"use strict";var n=r("../internals/is-possible-prototype");var a=String;var i=TypeError;t.exports=function(r){if(n(r))return r;throw new i("Can't set "+a(r)+" as a prototype")}},
117"is-possible-prototype.js":function(r,e,t){"use strict";var n=r("../internals/is-object");t.exports=function(r){return n(r)||null===r}},
117"create-iter-result-object.js":function(r,e,t){"use strict";t.exports=function(r,e){return{value:r,done:e}}},
117"safe-get-built-in.js":function(r,e,t){"use strict";var n=r("../internals/global-this");var a=r("../internals/descriptors");var i=Object.getOwnPropertyDescriptor;t.exports=function(r){if(!a)return n[r];var e=i(n,r);return e&&e.value}},
117"url-constructor-detection.js":function(r,e,a){"use strict";var i=r("../internals/fails");var s=r("../internals/well-known-symbol");var o=r("../internals/descriptors");var u=r("../internals/is-pure");var l=s("iterator");a.exports=!i(function(){var r=new t("b?a=1&b=2&c=3","https://a");var e=r.searchParams;var a=new n("a=1&a=2&b=3");var i="";r.pathname="c%20d";e.forEach(function(r,t){e["delete"]("b");i+=t+r});a["delete"]("a",2);a["delete"]("b",void 0);return u&&(!r.toJSON||!a.has("a",1)||a.has("a",2)||!a.has("a",void 0)||a.has("b"))||!e.size&&(u||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==r.href||"3"!==e.get("c")||"a=1"!==String(new n("?a=1"))||!e[l]||"a"!==new t("https://a@b").username||"b"!==new n(new n("a=b")).get("a")||"xn--e1aybc"!==new t("https://тест").host||"#%D0%B1"!==new t("https://a#б").hash||"a1c3"!==i||"x"!==new t("https://x",void 0).host})},
117"define-built-in-accessor.js":function(r,e,t){"use strict";var n=r("../internals/make-built-in");var a=r("../internals/object-define-property");t.exports=function(r,e,t){if(t.get)n(t.get,e,{getter:true});if(t.set)n(t.set,e,{setter:true});return a.f(r,e,t)}},
117"define-built-ins.js":function(r,e,t){"use strict";var n=r("../internals/define-built-in");t.exports=function(r,e,t){for(var a in e)n(r,a,e[a],t);return r}},
117"an-instance.js":function(r,e,t){"use strict";var n=r("../internals/object-is-prototype-of");var a=TypeError;t.exports=function(r,e){if(n(e,r))return r;throw new a("Incorrect invocation")}},
117"function-bind-context.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this-clause");var a=r("../internals/a-callable");var i=r("../internals/function-bind-native");var s=n(n.bind);t.exports=function(r,e){a(r);return void 0===e?r:i?s(r,e):function(){return r.apply(e,arguments)}}},
117"function-uncurry-this-clause.js":function(r,e,t){"use strict";var n=r("../internals/classof-raw");var a=r("../internals/function-uncurry-this");t.exports=function(r){if("Function"===n(r))return a(r)}},
117"classof.js":function(r,e,t){"use strict";var n=r("../internals/to-string-tag-support");var a=r("../internals/is-callable");var i=r("../internals/classof-raw");var s=r("../internals/well-known-symbol");var o=s("toStringTag");var u=Object;var l="Arguments"===i(function(){return arguments}());var c=function(r,e){try{return r[e]}catch(r){}};t.exports=n?i:function(r){var e,t,n;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(t=c(e=u(r),o))?t:l?i(e):"Object"===(n=i(e))&&a(e.callee)?"Arguments":n}},
117"to-string-tag-support.js":function(r,e,t){"use strict";var n=r("../internals/well-known-symbol");var a=n("toStringTag");var i={};i[a]="z";t.exports="[object z]"===String(i)},
117"to-string.js":function(r,e,t){"use strict";var n=r("../internals/classof");var a=String;t.exports=function(r){if("Symbol"===n(r))throw new TypeError("Cannot convert a Symbol value to a string");return a(r)}},
117"get-iterator.js":function(r,e,t){"use strict";var n=r("../internals/function-call");var a=r("../internals/a-callable");var i=r("../internals/an-object");var s=r("../internals/try-to-string");var o=r("../internals/get-iterator-method");var u=TypeError;t.exports=function(r,e){var t=arguments.length<2?o(r):e;if(a(t))return i(n(t,r));throw new u(s(r)+" is not iterable")}},
117"get-iterator-method.js":function(r,e,t){"use strict";var n=r("../internals/classof");var a=r("../internals/get-method");var i=r("../internals/is-null-or-undefined");var s=r("../internals/iterators");var o=r("../internals/well-known-symbol");var u=o("iterator");t.exports=function(r){if(!i(r))return a(r,u)||a(r,"@@iterator")||s[n(r)]}},
117"validate-arguments-length.js":function(r,e,t){"use strict";var n=TypeError;t.exports=function(r,e){if(r<e)throw new n("Not enough arguments");return r}},
117"array-sort.js":function(r,e,t){"use strict";var n=r("../internals/array-slice");var a=Math.floor;var i=function(r,e){var t=r.length;if(t<8){var s=1;var o,u;while(s<t){u=s;o=r[s];while(u&&e(r[u-1],o)>0)r[u]=r[--u];if(u!==s++)r[u]=o}}else{var l=a(t/2);var c=i(n(r,0,l),e);var v=i(n(r,l),e);var f=c.length;var p=v.length;var h=0;var d=0;while(h<f||d<p)r[h+d]=h<f&&d<p?e(c[h],v[d])<=0?c[h++]:v[d++]:h<f?c[h++]:v[d++]}return r};t.exports=i},
117"array-slice.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");t.exports=n([].slice)},
117"path.js":function(r,e,t){"use strict";var n=r("../internals/global-this");t.exports=n},
117"string-multibyte.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=r("../internals/to-integer-or-infinity");var i=r("../internals/to-string");var s=r("../internals/require-object-coercible");var o=n("".charAt);var u=n("".charCodeAt);var l=n("".slice);var c=function(r){return function(e,t){var n=i(s(e));var c=a(t);var v=n.length;var f,p;if(c<0||c>=v)return r?"":void 0;f=u(n,c);return f<55296||f>56319||c+1===v||(p=u(n,c+1))<56320||p>57343?r?o(n,c):f:r?l(n,c,c+2):(f-55296<<10)+(p-56320)+65536}};t.exports={codeAt:c(false),charAt:c(true)}},
117"object-assign.js":function(r,e,t){"use strict";var n=r("../internals/descriptors");var a=r("../internals/function-uncurry-this");var i=r("../internals/function-call");var s=r("../internals/fails");var o=r("../internals/object-keys");var u=r("../internals/object-get-own-property-symbols");var l=r("../internals/object-property-is-enumerable");var c=r("../internals/to-object");var v=r("../internals/indexed-object");var f=Object.assign;var p=Object.defineProperty;var h=a([].concat);t.exports=!f||s(function(){if(n&&1!==f({b:1},f(p({},"a",{enumerable:true,get:function(){p(this,"b",{value:3,enumerable:false})}}),{b:2})).b)return true;var r={};var e={};var t=Symbol("assign detection");var a="abcdefghijklmnopqrst";r[t]=7;a.split("").forEach(function(r){e[r]=r});return 7!==f({},r)[t]||o(f({},e)).join("")!==a})?function(r,e){var t=c(r);var a=arguments.length;var s=1;var f=u.f;var p=l.f;while(a>s){var d=v(arguments[s++]);var g=f?h(o(d),f(d)):o(d);var b=g.length;var y=0;var m;while(b>y){m=g[y++];if(!n||i(p,d,m))t[m]=d[m]}}return t}:f},
117"array-from.js":function(r,e,t){"use strict";var n=r("../internals/function-bind-context");var a=r("../internals/function-call");var i=r("../internals/to-object");var s=r("../internals/call-with-safe-iteration-closing");var o=r("../internals/is-array-iterator-method");var u=r("../internals/is-constructor");var l=r("../internals/length-of-array-like");var c=r("../internals/create-property");var v=r("../internals/get-iterator");var f=r("../internals/get-iterator-method");var p=Array;t.exports=function(r){var e=i(r);var t=u(this);var h=arguments.length;var d=h>1?arguments[1]:void 0;var g=void 0!==d;if(g)d=n(d,h>2?arguments[2]:void 0);var b=f(e);var y=0;var m,j,w,x,S,k;if(b&&!(this===p&&o(b))){j=t?new this:[];x=v(e,b);S=x.next;for(;!(w=a(S,x)).done;y++){k=g?s(x,d,[w.value,y],true):w.value;c(j,y,k)}}else{m=l(e);j=t?new this(m):p(m);for(;m>y;y++){k=g?d(e[y],y):e[y];c(j,y,k)}}j.length=y;return j}},
117"call-with-safe-iteration-closing.js":function(r,e,t){"use strict";var n=r("../internals/an-object");var a=r("../internals/iterator-close");t.exports=function(r,e,t,i){try{return i?e(n(t)[0],t[1]):e(t)}catch(e){a(r,"throw",e)}}},
117"iterator-close.js":function(r,e,t){"use strict";var n=r("../internals/function-call");var a=r("../internals/an-object");var i=r("../internals/get-method");t.exports=function(r,e,t){var s,o;a(r);try{s=i(r,"return");if(!s){if("throw"===e)throw t;return t}s=n(s,r)}catch(r){o=true;s=r}if("throw"===e)throw t;if(o)throw s;a(s);return t}},
117"is-array-iterator-method.js":function(r,e,t){"use strict";var n=r("../internals/well-known-symbol");var a=r("../internals/iterators");var i=n("iterator");var s=Array.prototype;t.exports=function(r){return void 0!==r&&(a.Array===r||s[i]===r)}},
117"is-constructor.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=r("../internals/fails");var i=r("../internals/is-callable");var s=r("../internals/classof");var o=r("../internals/get-built-in");var u=r("../internals/inspect-source");var l=function(){};var c=o("Reflect","construct");var v=/^\s*(?:class|function)\b/;var f=n(v.exec);var p=!v.test(l);var h=function(r){if(!i(r))return false;try{c(l,[],r);return true}catch(r){return false}};var d=function(r){if(!i(r))return false;switch(s(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return false}try{return p||!!f(v,u(r))}catch(r){return true}};d.sham=true;t.exports=!c||a(function(){var r;return h(h.call)||!h(Object)||!h(function(){r=true})||r})?d:h},
117"create-property.js":function(r,e,t){"use strict";var n=r("../internals/descriptors");var a=r("../internals/object-define-property");var i=r("../internals/create-property-descriptor");t.exports=function(r,e,t){if(n)a.f(r,e,i(0,t));else r[e]=t}},
117"string-punycode-to-ascii.js":function(r,e,t){"use strict";var n=r("../internals/function-uncurry-this");var a=0x7fffffff;var i=36;var s=1;var o=26;var u=38;var l=700;var c=72;var v=128;var f="-";var p=/[^\0-\u007E]/;var h=/[.\u3002\uFF0E\uFF61]/g;var d="Overflow: input needs wider integers to process";var g=i-s;var b=RangeError;var y=n(h.exec);var m=Math.floor;var j=String.fromCharCode;var w=n("".charCodeAt);var x=n([].join);var S=n([].push);var k=n("".replace);var P=n("".split);var O=n("".toLowerCase);var R=function(r){var e=[];var t=0;var n=r.length;while(t<n){var a=w(r,t++);if(a>=55296&&a<=56319&&t<n){var i=w(r,t++);if((64512&i)===56320)S(e,((1023&a)<<10)+(1023&i)+65536);else{S(e,a);t--}}else S(e,a)}return e};var U=function(r){return r+22+75*(r<26)};var L=function(r,e,t){var n=0;r=t?m(r/l):r>>1;r+=m(r/e);while(r>g*o>>1){r=m(r/g);n+=i}return m(n+(g+1)*r/(r+u))};var E=function(r){var e=[];r=R(r);var t=r.length;var n=v;var u=0;var l=c;var p,h;for(p=0;p<r.length;p++){h=r[p];if(h<128)S(e,j(h))}var g=e.length;var y=g;if(g)S(e,f);while(y<t){var w=a;for(p=0;p<r.length;p++){h=r[p];if(h>=n&&h<w)w=h}var k=y+1;if(w-n>m((a-u)/k))throw new b(d);u+=(w-n)*k;n=w;for(p=0;p<r.length;p++){h=r[p];if(h<n&&++u>a)throw new b(d);if(h===n){var P=u;var O=i;while(true){var E=O<=l?s:O>=l+o?o:O-l;if(P<E)break;var A=P-E;var _=i-E;S(e,j(U(E+A%_)));P=m(A/_);O+=i}S(e,j(U(P)));l=L(u,k,y===g);u=0;y++}}u++;n++}return x(e,"")};t.exports=function(r){var e=[];var t=P(k(O(r),h,"."),".");var n,a;for(n=0;n<t.length;n++){a=t[n];S(e,y(p,a)?"xn--"+E(a):a)}return x(e,".")}}}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{URL:t,URLSearchParams:n}},require:a,eagerModulePaths:["/node_modules/meteor/url/legacy.js"],mainModulePath:"/node_modules/meteor/url/legacy.js"}});
118
119Package["core-runtime"].queue("accounts-base",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package.tracker.Tracker;Package.tracker.Deps;var n=Package.random.Random;var o=Package["callback-hook"].Hook;var r=Package["reactive-var"].ReactiveVar;Package.url.URL;Package.url.URLSearchParams;var i=Package["ddp-client"].DDP;var s=Package.mongo.Mongo;Package.mongo.CollectionExtensions;var a=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var u=Package.promise.Promise;var c=Package["ecmascript-runtime-client"].Symbol;var l=Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var f;var g=a({node_modules:{meteor:{"accounts-base":{
119"client_main.js":function(t,n,o){o.export({Accounts:function(){return f},AccountsClient:function(){return r},AccountsTest:function(){return i},default:function(){return n}});var r,i;o.link("./accounts_client.js",{AccountsClient:function(e){r=e},AccountsTest:function(e){i=e}},0);var s,a,u;o.runSetters(f=new r((null==(u=e.settings)?void 0:null==(a=u.public)?void 0:null==(s=a.packages)?void 0:s.accounts)||{}),["Accounts"]);e.users=f.users},
119"accounts_client.js":function(o,s,a){a.export({AccountsClient:function(){return P},AccountsTest:function(){return R}});var g;a.link("./accounts_common.js",{AccountsCommon:function(e){g=e}},0);function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,n,o,r,i,s){try{var a=e[i](s);var c=a.value}catch(e){n(e);return}if(a.done)t(c);else u.resolve(c).then(o,r)}function d(e){return function(){var t=this,n=arguments;return new u(function(o,r){var i=e.apply(t,n);function s(e){p(i,o,r,s,a,"next",e)}function a(e){p(i,o,r,s,a,"throw",e)}s(void 0)})}}function _(e,t,n){t=O(t);return w(e,A()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n))}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false;o.configurable=true;if("value"in o)o.writable=true;Object.defineProperty(e,o.key,o)}}function v(e,t,n){if(t)y(e.prototype,t);if(n)y(e,n);return e}function b(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function m(e,t,n){m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=I(e,t);if(!o)return;var r=Object.getOwnPropertyDescriptor(o,t);if(r.get)return r.get.call(n||e);return r.value};return m(e,t,n||e)}function O(e){O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return O(e)}function L(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)C(e,t)}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var o=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));o.forEach(function(t){b(e,t,n[t])})}return e}function w(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;return h(e)}function C(e,t){C=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return C(e,t)}function I(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=O(e);if(null===e)break}return e}function T(e){return e&&void 0!==c&&e.constructor===c?"symbol":typeof e}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(A=function(){return!!e})()}function S(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),"function"==typeof c&&(s[c.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,o&&(r=2&a[0]?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[2&a[0],r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var P=function(o){"use strict";L(s,o);function s(t){k(this,s);var n;var o,i,a,u;n=_(this,s,[t]);n._loggingIn=new r(false);n._loggingOut=new r(false);n._loginServicesHandle=n.connection.subscribe("meteor.loginServiceConfiguration");n._pageLoadLoginCallbacks=[];n._pageLoadLoginAttemptInfo=null;n.savedHash=window.location.hash;n._initUrlMatching();n.initStorageLocation();n._useHttpOnlyCookies=!!((null==t?void 0:t.useHttpOnlyCookies)||(null==(u=e.settings)?void 0:null==(a=u.public)?void 0:null==(i=a.packages)?void 0:null==(o=i.accounts)?void 0:o.useHttpOnlyCookies));n._initLocalStorage();n._initHttpOnlyCookieLogin();n._loginFuncs={};n._loginCallbacksCalled=false;return n}v(s,[{key:"initStorageLocation",value:function(t){var n,o,r,i;var s=(null==t?void 0:t.clientStorage)||(null==(i=e.settings)?void 0:null==(r=i.public)?void 0:null==(o=r.packages)?void 0:null==(n=o.accounts)?void 0:n.clientStorage);if("session"===s)this.storageLocation=window.sessionStorage;else if("none"===s){var a=new l;this.storageLocation={getItem:function(e){return a.get(e)||null},setItem:function(e,t){a.set(e,String(t))},removeItem:function(e){a.delete(e)}}}else this.storageLocation=e._localStorage}},{key:"config",value:function(e){m(O(s.prototype),"config",this).call(this,e);this.initStorageLocation(e);if(Object.prototype.hasOwnProperty.call(e||{},"useHttpOnlyCookies"))this._useHttpOnlyCookies=!!e.useHttpOnlyCookies}},{key:"userId",value:function(){return this.connection.userId()}}
119,{key:"_setLoggingIn",value:function(e){this._loggingIn.set(e)}},{key:"loggingIn",value:function(){return this._loggingIn.get()}},{key:"loggingOut",value:function(){return this._loggingOut.get()}},{key:"registerClientLoginFunction",value:function(e,t){if(this._loginFuncs[e])throw new Error("".concat(e," has been defined already"));this._loginFuncs[e]=t}},{key:"callLoginFunction",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(!this._loginFuncs[e])throw new Error("".concat(e," was not defined"));return this._loginFuncs[e].apply(this,n)}},{key:"applyLoginFunction",value:function(e,t){if(!this._loginFuncs[e])throw new Error("".concat(e," was not defined"));return this._loginFuncs[e].apply(this,t)}},{key:"logout",value:function(e){var t=this;this._loggingOut.set(true);this.connection.applyAsync("logout",[],{wait:true}).then(function(n){return d(function(){return S(this,function(t){switch(t.label){case 0:this._loggingOut.set(false);this._loginCallbacksCalled=false;return[4,this.makeClientLoggedOut()];case 1:t.sent();null==e||e();return[2]}})}).call(t)}).catch(function(n){t._loggingOut.set(false);null==e||e(n)})}},{key:"logoutAsync",value:function(){return e.promisify(this.logout,this)()}},{key:"logoutAllClients",value:function(e){var t=this;this._loggingOut.set(true);this.connection.applyAsync("logoutAllClients",[],{wait:true}).then(function(n){return d(function(){return S(this,function(t){switch(t.label){case 0:this._loggingOut.set(false);this._loginCallbacksCalled=false;return[4,this.makeClientLoggedOut()];case 1:t.sent();null==e||e();return[2]}})}).call(t)}).catch(function(n){t._loggingOut.set(false);null==e||e(n)})}},{key:"logoutAllClientsAsync",value:function(){return e.promisify(this.logoutAllClients,this)()}},{key:"logoutOtherClients",value:function(e){var t=this;this.connection.apply("getNewToken",[],{wait:true},function(e,n){if(!e)t._storeLoginToken(t.userId(),n.token,n.tokenExpires)});this.connection.apply("removeOtherTokens",[],{wait:true},function(t){return null==e?void 0:e(t)})}},{key:"logoutOtherClientsAsync",value:function(){return e.promisify(this.logoutOtherClients,this)()}},{key:"callLoginMethod",value:function(n){var o=this;n=E({methodName:"login",methodArguments:[{}],_suppressLoggingIn:false},n);["validateResult","userCallback"].forEach(function(e){if(!n[e])n[e]=function(){return null}});var r;var s=function(e){var t=e.error,i=e.loginDetails;return d(function(){return S(this,function(e){switch(e.label){case 0:if(!!r)return[3,6];r=true;if(!!t)return[3,2];return[4,this._onLoginHook.forEachAsync(function(e){return d(function(){return S(this,function(t){switch(t.label){case 0:return[4,e(i)];case 1:t.sent();return[2,true]}})})()})];case 1:e.sent();this._loginCallbacksCalled=true;return[3,4];case 2:this._loginCallbacksCalled=false;return[4,this._onLoginFailureHook.forEachAsync(function(e){return d(function(){return S(this,function(n){switch(n.label){case 0:return[4,e({error:t})];case 1:n.sent();return[2,true]}})})()})];case 3:e.sent();e.label=4;case 4:return[4,n.userCallback(t,i)];case 5:e.sent();e.label=6;case 6:return[2]}})}).call(o)};var a=false;var u=function(e,t){if(!e&&t&&t.token){if(o._reconnectStopper)o._reconnectStopper.stop();o._reconnectStopper=i.onReconnect(function(e){return d(function(){var n,o;return S(this,function(r){switch(r.label){case 0:n=this;if(e!=this.connection)return[2];a=true;o=this._storedLoginToken();if(o)t={token:o,tokenExpires:this._storedLoginTokenExpires()};if(!t.tokenExpires)t.tokenExpires=this._tokenExpiration(new Date);if(!this._tokenExpiresSoon(t.tokenExpires))return[3,2];return[4,this.makeClientLoggedOut()];case 1:r.sent();return[3,3];case 2:this.callLoginMethod({methodArguments:[{resume:t.token}],_suppressLoggingIn:true,userCallback:function(e,o){return d(function(){var n;return S(this,function(r){switch(r.label){case 0:n=this._storedLoginToken();if(!e)return[3,2];if(!(n&&n===t.token))return[3,2];return[4,this.makeClientLoggedOut()];case 1:r.sent();r.label=2;case 2:return[4,s({error:e,loginDetails:o})];case 3:r.sent();return[2]}})}).call(n)}});r.label=3;case 3:return[2]}})}).call(o)})}};var c=function(r,i){return d(function(){var o,u;return S(this,function(c){switch(c.label){case 0:o=this;if(a)return[2];if(!(r||!i))return[3,2];r=r||new Error("No result from call to ".concat(n.methodName));this._setLoggingIn(false);return[4,s({error:r})];case 1:c.sent();return[2];case 2:c.trys.push([2,3,,5]);n.validateResult(i);return[3,5];case 3:u=c.sent();this._setLoggingIn(false);return[4,s({error:u})];case 4:c.sent();return[2];case 5:return[4,this.makeClientLoggedIn(i.id,i.token,i.tokenExpires)];case 6:c.sent();t.autorun(function(n){return d(function(){var o;return S(this,function(r){switch(r.label){case 0:return[4,t.withComputation(n,function(){return e.userAsync()})];case 1:o=r.sent();if(!o)return[3,5];this._setLoggingIn(false);r.label=2;case 2:r.trys.push([2,,4,5]);
119return[4,s({loginDetails:i})];case 3:r.sent();return[3,5];case 4:n.stop();return[7];case 5:return[2]}})}).call(o)});return[2]}})}).call(o)};if(!n._suppressLoggingIn)this._setLoggingIn(true);this.connection.applyAsync(n.methodName,n.methodArguments,{wait:true,onResultReceived:u},c)}},{key:"makeClientLoggedOut",value:function(){return d(function(){var e,t;return S(this,function(n){switch(n.label){case 0:n.trys.push([0,3,4,7]);if(!this.connection._userId)return[3,2];return[4,this._onLogoutHook.forEachAsync(function(e){return d(function(){return S(this,function(t){switch(t.label){case 0:return[4,e()];case 1:t.sent();return[2,true]}})})()})];case 1:n.sent();n.label=2;case 2:return[3,7];case 3:t=n.sent();e=t;return[3,7];case 4:this._unstoreLoginToken();this.connection.setUserId(null);this._reconnectStopper&&this._reconnectStopper.stop();if(!this._useHttpOnlyCookies)return[3,6];return[4,this._clearHttpOnlyCookie()];case 5:n.sent();n.label=6;case 6:return[7];case 7:if(e)throw e;return[2]}})}).call(this)}},{key:"makeClientLoggedIn",value:function(e,t,n){return d(function(){return S(this,function(o){switch(o.label){case 0:this._storeLoginToken(e,t,n);this.connection.setUserId(e);if(!this._useHttpOnlyCookies)return[3,2];return[4,this._setHttpOnlyCookie(t,n)];case 1:o.sent();o.label=2;case 2:return[2]}})}).call(this)}},{key:"loginServicesConfigured",value:function(){return this._loginServicesHandle.ready()}},{key:"onPageLoadLogin",value:function(e){if(this._pageLoadLoginAttemptInfo)e(this._pageLoadLoginAttemptInfo);else this._pageLoadLoginCallbacks.push(e)}},{key:"_pageLoadLogin",value:function(t){if(this._pageLoadLoginAttemptInfo)return void e._debug("Ignoring unexpected duplicate page load login attempt info");this._pageLoadLoginCallbacks.forEach(function(e){return e(t)});this._pageLoadLoginCallbacks=[];this._pageLoadLoginAttemptInfo=t}},{key:"_startupCallback",value:function(t){if(this._loginCallbacksCalled)e.setTimeout(function(){return t({type:"resume"})},0)}},{key:"loginWithToken",value:function(e,t){this.callLoginMethod({methodArguments:[{resume:e}],userCallback:t})}},{key:"loginWithTokenAsync",value:function(t){return e.promisify(this.loginWithToken,this)(t)}},{key:"loginWithCookie",value:function(){return d(function(){var e,t,n;return S(this,function(o){switch(o.label){case 0:e=this;o.label=1;case 1:o.trys.push([1,4,,5]);return[4,fetch("/_accounts/cookie/refresh",{method:"GET",credentials:"include",headers:{Accept:"application/json"}})];case 2:t=o.sent();if(!t.ok)return[2];return[4,t.json()];case 3:n=o.sent();if(null==n?void 0:n.token)this.loginWithToken(n.token,function(t){return d(function(){return S(this,function(e){switch(e.label){case 0:if(!t)return[3,2];return[4,this.makeClientLoggedOut()];case 1:e.sent();e.label=2;case 2:return[2]}})}).call(e)});return[3,5];case 4:o.sent();return[3,5];case 5:return[2]}})}).call(this)}},{key:"_enableAutoLogin",value:function(){this._autoLoginEnabled=true;this._pollStoredLoginToken()}},{key:"_isolateLoginTokenForTest",value:function(){this.LOGIN_TOKEN_KEY=this.LOGIN_TOKEN_KEY+n.id();this.USER_ID_KEY=this.USER_ID_KEY+n.id()}},{key:"_storeLoginToken",value:function(e,t,n){this.storageLocation.setItem(this.USER_ID_KEY,e);this.storageLocation.setItem(this.LOGIN_TOKEN_KEY,t);if(!n)n=this._tokenExpiration(new Date);this.storageLocation.setItem(this.LOGIN_TOKEN_EXPIRES_KEY,n);this._lastLoginTokenWhenPolled=t}},{key:"_unstoreLoginToken",value:function(){this.storageLocation.removeItem(this.USER_ID_KEY);this.storageLocation.removeItem(this.LOGIN_TOKEN_KEY);this.storageLocation.removeItem(this.LOGIN_TOKEN_EXPIRES_KEY);this._lastLoginTokenWhenPolled=null}},{key:"_setHttpOnlyCookie",value:function(e,t){return d(function(){return S(this,function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,fetch("/_accounts/cookie/set",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e,tokenExpires:t})})];case 1:n.sent();return[3,3];case 2:n.sent();return[3,3];case 3:return[2]}})})()}},{key:"_clearHttpOnlyCookie",value:function(){return d(function(){return S(this,function(e){switch(e.label){case 0:e.trys.push([0,2,,3]);return[4,fetch("/_accounts/cookie/clear",{method:"POST",credentials:"include"})];case 1:e.sent();return[3,3];case 2:e.sent();return[3,3];case 3:return[2]}})})()}},{key:"_storedLoginToken",value:function(){return this.storageLocation.getItem(this.LOGIN_TOKEN_KEY)}},{key:"_storedLoginTokenExpires",value:function(){return this.storageLocation.getItem(this.LOGIN_TOKEN_EXPIRES_KEY)}},{key:"_storedUserId",value:function(){return this.storageLocation.getItem(this.USER_ID_KEY)}},{key:"_unstoreLoginTokenIfExpiresSoon",value:function(){var e=this._storedLoginTokenExpires();if(e&&this._tokenExpiresSoon(new Date(e)))this._unstoreLoginToken()}},{key:"_initLocalStorage",value:function(){var t=this;this.LOGIN_TOKEN_KEY="Meteor.loginToken";this.LOGIN_TOKEN_EXPIRES_KEY="Meteor.loginTokenExpires";this.USER_ID_KEY="Meteor.userId";var n=__meteor_runtime_config__.ROOT_URL_PATH_PREFIX;if(n||this.connection!==e.connection){var o=":".concat(this.connection._stream.rawUrl);if(n)o+=":".concat(n);this.LOGIN_TOKEN_KEY+=o;this.LOGIN_TOKEN_EXPIRES_KEY+=o;this.USER_ID_KEY+=o}var r;if(this._autoLoginEnabled){this._unstoreLoginTokenIfExpiresSoon();r=this._storedLoginToken();if(r){var i=this._storedUserId();i&&this.connection.setUserId(i);this.loginWithToken(r,function(n){return d(function(){return S(this,function(t){switch(t.label){case 0:if(!n)return[3,2];e._debug("Error logging in with token: ".concat(n));return[4,this.makeClientLoggedOut()];case 1:t.sent();t.label=2;case 2:this._pageLoadLogin({type:"resume",allowed:!n,error:n,methodName:"login",methodArguments:[{resume:r}]});return[2]}})}).call(t)})}}this._lastLoginTokenWhenPolled=r;if(this._pollIntervalTimer)clearInterval(this._pollIntervalTimer);this._pollIntervalTimer=setInterval(function(){t._pollStoredLoginToken()},3e3)}},{key:"_initHttpOnlyCookieLogin",value:function(){if(!this._useHttpOnlyCookies)return;var e=!!this._storedLoginToken();if(!e)this.loginWithCookie()}},{key:"_pollStoredLoginToken",value:function(){var e=this;if(!this._autoLoginEnabled)return;var t=this._storedLoginToken();if(this._lastLoginTokenWhenPolled!=t)if(t)this.loginWithToken(t,function(t){return d(function(){return S(this,function(e){switch(e.label){case 0:if(!t)return[3,2];return[4,this.makeClientLoggedOut()];case 1:e.sent();e.label=2;case 2:return[2]}})}).call(e)});else this.logout();this._lastLoginTokenWhenPolled=t}},{key:"_initUrlMatching",value:function(){this._autoLoginEnabled=true;this._accountsCallbacks={};this._attemptToMatchHash()}},{key:"_attemptToMatchHash",value:function(){N(this,this.savedHash,j)}},{key:"_registerLinkCallback",value:function(t,n){if(this._accountsCallbacks[t])e._debug('Accounts callback for "'.concat(t,'" was registered more than once. ')+"Only one callback added will be executed.");this._accountsCallbacks[t]=n}},{key:"onResetPasswordLink",value:function(e){this._registerLinkCallback("reset-password",e)}},{key:"onEmailVerificationLink",value:function(e){this._registerLinkCallback("verify-email",e)}},{key:"onEnrollmentLink",value:function(e){this._registerLinkCallback("enroll-account",e)}}]);return s}(g);e.loggingIn=function(){return f.loggingIn()};e.loggingOut=function(){return f.loggingOut()};e.logout=function(e){return f.logout(e)};e.logoutAsync=function(){return f.logoutAsync()};e.logoutAllClients=function(e){return f.logoutAllClients(e)};e.logoutAllClientsAsync=function(){return f.logoutAllClientsAsync()};e.logoutOtherClients=function(e){return f.logoutOtherClients(e)};e.logoutOtherClientsAsync=function(){return f.logoutOtherClientsAsync()};e.loginWithToken=function(e,t){return f.loginWithToken(e,t)};e.loginWithTokenAsync=function(e){return f.loginWithTokenAsync(e)};if(Package.blaze){var x=Package.blaze.Blaze.Template;x.registerHelper("currentUser",function(){return e.user()});x.registerHelper("loggingIn",function(){return e.loggingIn()});x.registerHelper("loggingOut",function(){return e.loggingOut()});x.registerHelper("loggingInOrOut",function(){return e.loggingIn()||e.loggingOut()})}var j=function(t,n){var o=this;this._autoLoginEnabled=false;e.startup(function(){if(o._accountsCallbacks[n])o._accountsCallbacks[n](t,function(){return o._enableAutoLogin()})})};var N=function(e,t,n){["reset-password","verify-email","enroll-account"].forEach(function(o){var r;var i=new RegExp("^\\#\\/".concat(o,"\\/(.*)$"));var s=t.match(i);if(!s)return;r=s[1];if("reset-password"===o)e._resetPasswordToken=r;else if("verify-email"===o)e._verifyEmailToken=r;else if("enroll-account"===o)e._enrollAccountToken=r;window.location.hash="";n.call(e,r,o)})};var R={attemptToMatchHash:function(e,t){return N(f,e,t)}}},
119"accounts_common.js":function(e,t,n){n.export({AccountsCommon:function(){return T},EXPIRE_TOKENS_INTERVAL_MS:function(){return j}});var r;n.link("meteor/meteor",{Meteor:function(e){r=e}},0);function a(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function l(e){if(Array.isArray(e))return a(e)}function g(e,t,n,o,r,i,s){try{var a=e[i](s);var c=a.value}catch(e){n(e);return}if(a.done)t(c);else u.resolve(c).then(o,r)}function h(e){return function(){var t=this,n=arguments;return new u(function(o,r){var i=e.apply(t,n);function s(e){g(i,o,r,s,a,"next",e)}function a(e){g(i,o,r,s,a,"throw",e)}s(void 0)})}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false;o.configurable=true;if("value"in o)o.writable=true;Object.defineProperty(e,o.key,o)}}function _(e,t,n){if(t)d(e.prototype,t);if(n)d(e,n);return e}function k(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function y(e,t){if(null!=t&&void 0!==c&&t[c.hasInstance])return!!t[c.hasInstance](e);return e instanceof t}function v(e){if(void 0!==c&&null!=e[c.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var o=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));o.forEach(function(t){k(e,t,n[t])})}return e}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);if(t)o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,o)}return n}function L(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else O(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}function E(e){return l(e)||v(e)||w(e)||b()}function w(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}function C(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),"function"==typeof c&&(s[c.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,o&&(r=2&a[0]?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[2&a[0],r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var I=["sendVerificationEmail","forbidClientAccountCreation","restrictCreationByEmailDomain","loginExpiration","loginExpirationInDays","oauthSecretKey","passwordResetTokenExpirationInDays","passwordResetTokenExpiration","passwordEnrollTokenExpirationInDays","passwordEnrollTokenExpiration","ambiguousErrorMessages","bcryptRounds","argon2Enabled","argon2Type","argon2TimeCost","argon2MemoryCost","argon2Parallelism","defaultFieldSelector","collection","loginTokenExpirationHours","tokenSequenceLength","clientStorage","useHttpOnlyCookies","ddpUrl","connection"];var T=function(){"use strict";function e(t){p(this,e);var n=true,i=false,s=void 0;try{for(var a=Object.keys(t)[c.iterator](),u;!(n=(u=a.next()).done);
119n=true){var l=u.value;if(!I.includes(l))console.error("Accounts.config: Invalid key: ".concat(l))}}catch(e){i=true;s=e}finally{try{if(!n&&null!=a.return)a.return()}finally{if(i)throw s}}this._options=t||{};this.connection=void 0;this._initConnection(t||{});this.users=this._initializeCollection(t||{});this._onLoginHook=new o({bindEnvironment:false,debugPrintExceptions:"onLogin callback"});this._onLoginFailureHook=new o({bindEnvironment:false,debugPrintExceptions:"onLoginFailure callback"});this._onLogoutHook=new o({bindEnvironment:false,debugPrintExceptions:"onLogout callback"});this.DEFAULT_LOGIN_EXPIRATION_DAYS=A;this.LOGIN_UNEXPIRING_TOKEN_DAYS=N;var f="Accounts.LoginCancelledError";this.LoginCancelledError=r.makeErrorType(f,function(e){this.message=e});this.LoginCancelledError.prototype.name=f;this.LoginCancelledError.numericError=0x8acdc2f}_(e,[{key:"_initializeCollection",value:function(e){if(e.collection&&"string"!=typeof e.collection&&!y(e.collection,s.Collection))throw new r.Error('Collection parameter can be only of type string or "Mongo.Collection"');var t="users";if("string"==typeof e.collection)t=e.collection;var n;n=y(e.collection,s.Collection)?e.collection:new s.Collection(t,{_preventAutopublish:true,connection:this.connection});return n}},{key:"userId",value:function(){throw new Error("userId method not implemented")}},{key:"_addDefaultFieldSelector",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._options.defaultFieldSelector)return e;if(!e.fields)return L(m({},e),{fields:this._options.defaultFieldSelector});var t=Object.keys(e.fields);if(!t.length)return e;if(!!e.fields[t[0]])return e;var n=Object.keys(this._options.defaultFieldSelector);return this._options.defaultFieldSelector[n[0]]?e:L(m({},e),{fields:m({},e.fields,this._options.defaultFieldSelector)})}},{key:"user",value:function(e){var t,n;if(r.isServer)console.warn("`Meteor.user()` is deprecated on the server side.\n    To fetch the current user record on the server,\n    use `Meteor.userAsync()` instead.");var o=this;var i=o.userId();var s=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return r.isClient?(t=o.users).findOne.apply(t,E(i)):(n=o.users).findOneAsync.apply(n,E(i))};return i?s(i,this._addDefaultFieldSelector(e)):null}},{key:"userAsync",value:function(e){return h(function(){var t;return C(this,function(n){t=this.userId();return[2,t?this.users.findOneAsync(t,this._addDefaultFieldSelector(e)):null]})}).call(this)}},{key:"config",value:function(e){if(r.isServer)__meteor_runtime_config__.accountsConfigCalled=true;else if(!__meteor_runtime_config__.accountsConfigCalled)r._debug("Accounts.config was called on the client but not on the server; some configuration options may not take effect.");if(Object.hasOwn(e,"oauthSecretKey")){if(r.isClient)throw new Error("The oauthSecretKey option may only be specified on the server");if(!Package["oauth-encryption"])throw new Error("The oauth-encryption package must be loaded to set oauthSecretKey");Package["oauth-encryption"].OAuthEncryption.loadKey(e.oauthSecretKey);e=m({},e);delete e.oauthSecretKey}var t=true,n=false,o=void 0;try{for(var i=Object.keys(e)[c.iterator](),s;!(t=(s=i.next()).done);t=true){var a=s.value;if(!I.includes(a))console.error("Accounts.config: Invalid key: ".concat(a))}}catch(e){n=true;o=e}finally{try{if(!t&&null!=i.return)i.return()}finally{if(n)throw o}}var u=true,l=false,f=void 0;try{for(var g=I[c.iterator](),h;!(u=(h=g.next()).done);u=true){var p=h.value;if(p in e){if(p in this._options){if("collection"!==p&&r.isTest&&"clientStorage"!==p)throw new r.Error("Can't set `".concat(p,"` more than once"))}this._options[p]=e[p]}}}catch(e){l=true;f=e}finally{try{if(!u&&null!=g.return)g.return()}finally{if(l)throw f}}if(e.collection&&e.collection!==this.users._name&&e.collection!==this.users)this.users=this._initializeCollection(e)}},{key:"onLogin",value:function(e){var t=this._onLoginHook.register(e);this._startupCallback(t.callback);return t}},{key:"onLoginFailure",value:function(e){return this._onLoginFailureHook.register(e)}},{key:"onLogout",value:function(e){return this._onLogoutHook.register(e)}}
119,{key:"_initConnection",value:function(e){if(!r.isClient)return;if(e.connection)this.connection=e.connection;else if(e.ddpUrl)this.connection=i.connect(e.ddpUrl);else if("undefined"!=typeof __meteor_runtime_config__&&__meteor_runtime_config__.ACCOUNTS_CONNECTION_URL)this.connection=i.connect(__meteor_runtime_config__.ACCOUNTS_CONNECTION_URL);else this.connection=r.connection}},{key:"_getTokenLifetimeMs",value:function(){var e=null===this._options.loginExpirationInDays?N:this._options.loginExpirationInDays;return this._options.loginExpiration||864e5*(e||A)}},{key:"_getPasswordResetTokenLifetimeMs",value:function(){return this._options.passwordResetTokenExpiration||864e5*(this._options.passwordResetTokenExpirationInDays||S)}},{key:"_getPasswordEnrollTokenLifetimeMs",value:function(){return this._options.passwordEnrollTokenExpiration||864e5*(this._options.passwordEnrollTokenExpirationInDays||P)}},{key:"_tokenExpiration",value:function(e){return new Date(new Date(e).getTime()+this._getTokenLifetimeMs())}},{key:"_tokenExpiresSoon",value:function(e){var t=.1*this._getTokenLifetimeMs();var n=1e3*x;if(t>n)t=n;return new Date>new Date(e)-t}},{key:"_startupCallback",value:function(e){}}]);return e}();r.userId=function(){return f.userId()};r.user=function(e){return f.user(e)};r.userAsync=function(e){return f.userAsync(e)};var A=90;var S=3;var P=30;var x=3600;var j=6e5;var N=36500}}}}},{extensions:[".js",".json"]});return{export:function(){return{Accounts:f}},require:g,eagerModulePaths:["/node_modules/meteor/accounts-base/client_main.js"],mainModulePath:"/node_modules/meteor/accounts-base/client_main.js"}});
120
121Package["core-runtime"].queue("roles",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;Package["accounts-base"].Accounts;Package.tracker.Tracker;Package.tracker.Deps;Package.mongo.Mongo;Package.mongo.CollectionExtensions;Package.check.check;var r=Package.check.Match;Package["ddp-client"].DDP;var n=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var t=Package.promise.Promise;var i=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;var s=Package["ecmascript-runtime-client"].Set;var o,a,l;var c=n({node_modules:{meteor:{roles:{
121"roles_client.js":function(e,r,n){var t;n.link("meteor/meteor",{Meteor:function(e){t=e}},0);function a(e,r){if(null==r||r>e.length)r=e.length;for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function l(e){if(Array.isArray(e))return a(e)}function c(e){if(void 0!==i&&null!=e[i.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return l(e)||c(e)||p(e)||u()}function d(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}function p(e,r){if(!e)return;if("string"==typeof e)return a(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,r)}if(void 0===o)o={};var y=false;Object.assign(o,{GLOBAL_GROUP:null,createRole:function(e,r){o._checkRoleName(e);r=Object.assign({unlessExists:false},r);var n=t.roles.upsert({_id:e},{$setOnInsert:{children:[]}});if(!n.insertedId){if(r.unlessExists)return null;throw new Error("Role '"+e+"' already exists.")}return n.insertedId},deleteRole:function(e){var r;var n;o._checkRoleName(e);t.roleAssignment.remove({"role._id":e});do{r=o._getParentRoleNames(t.roles.findOne({_id:e}));var s=true,a=false,l=void 0;try{for(var c=t.roles.find({_id:{$in:r}}).fetch()[i.iterator](),u;!(s=(u=c.next()).done);s=true){var d=u.value;t.roles.update({_id:d._id},{$pull:{children:{_id:e}}});n=o._getInheritedRoleNames(t.roles.findOne({_id:d._id}));t.roleAssignment.update({"role._id":d._id},{$set:{inheritedRoles:[d._id].concat(f(n)).map(function(e){return{_id:e}})}},{multi:true})}}catch(e){a=true;l=e}finally{try{if(!s&&null!=c.return)c.return()}finally{if(a)throw l}}}while(r.length>0);t.roles.remove({_id:e})},renameRole:function(e,r){var n;o._checkRoleName(e);o._checkRoleName(r);if(e===r)return;var i=t.roles.findOne({_id:e});if(!i)throw new Error("Role '"+e+"' does not exist.");i._id=r;t.roles.insert(i);do n=t.roleAssignment.update({"role._id":e},{$set:{"role._id":r}},{multi:true});while(n>0);do n=t.roleAssignment.update({"inheritedRoles._id":e},{$set:{"inheritedRoles.$._id":r}},{multi:true});while(n>0);do n=t.roles.update({"children._id":e},{$set:{"children.$._id":r}},{multi:true});while(n>0);t.roles.remove({_id:e})},addRolesToParent:function(e,r){if(!Array.isArray(e))e=[e];var n=true,t=false,s=void 0;try{for(var a=e[i.iterator](),l;!(n=(l=a.next()).done);n=true){var c=l.value;o._addRoleToParent(c,r)}}catch(e){t=true;s=e}finally{try{if(!n&&null!=a.return)a.return()}finally{if(t)throw s}}},_addRoleToParent:function(e,r){o._checkRoleName(e);o._checkRoleName(r);var n=t.roles.findOne({_id:e});if(!n)throw new Error("Role '"+e+"' does not exist.");if(o._getInheritedRoleNames(n).includes(r))throw new Error("Roles '"+e+"' and '"+r+"' would form a cycle.");var i=t.roles.update({_id:r,"children._id":{$ne:n._id}},{$push:{children:{_id:n._id}}});if(!i)return;t.roleAssignment.update({"inheritedRoles._id":r},{$push:{inheritedRoles:{$each:[n._id].concat(f(o._getInheritedRoleNames(n))).map(function(e){return{_id:e}})}}},{multi:true})},removeRolesFromParent:function(e,r){if(!Array.isArray(e))e=[e];var n=true,t=false,s=void 0;try{for(var a=e[i.iterator](),l;!(n=(l=a.next()).done);n=true){var c=l.value;o._removeRoleFromParent(c,r)}}catch(e){t=true;s=e}finally{try{if(!n&&null!=a.return)a.return()}finally{if(t)throw s}}},_removeRoleFromParent:function(e,r){o._checkRoleName(e);o._checkRoleName(r);var n=t.roles.findOne({_id:e},{fields:{_id:1}});if(!n)throw new Error("Role '"+e+"' does not exist.");var s=t.roles.update({_id:r},{$pull:{children:{_id:n._id}}});if(!s)return;var a=f(o._getParentRoleNames(t.roles.findOne({_id:r}))).concat([r]);var l=true,c=false,u=void 0;try{for(var d=t.roles.find({_id:{$in:a}}).fetch()[i.iterator](),p;!(l=(p=d.next()).done);l=true){var y=p.value;var h=o._getInheritedRoleNames(t.roles.findOne({_id:y._id}));t.roleAssignment.update({"role._id":y._id,"inheritedRoles._id":n._id},{$set:{inheritedRoles:[y._id].concat(f(h)).map(function(e){return{_id:e}})}},{multi:true})}}catch(e){c=true;u=e}finally{try{if(!l&&null!=d.return)d.return()}finally{if(c)throw u}}},addUsersToRoles:function(e,r,n){var t;if(!e)throw new Error("Missing 'users' param.");if(!r)throw new Error("Missing 'roles' param.");n=o._normalizeOptions(n);if(!Array.isArray(e))e=[e];if(!Array.isArray(r))r=[r];o._checkScopeName(n.scope);n=Object.assign({ifExists:false},n);var s=true,a=false,l=void 0;try{for(var c=e[i.iterator](),u;!(s=(u=c.next()).done);s=true){var f=u.value;t=(void 0===f?"undefined":d(f))==="object"?f._id:f;var p=true,y=false,h=void 0;try{for(var m=r[i.iterator](),_;!(p=(_=m.next()).done);p=true){var v=_.value;o._addUserToRole(t,v,n)}}catch(e){y=true;h=e}finally{try{if(!p&&null!=m.return)m.return()}finally{if(y)throw h}}}}catch(e){a=true;l=e}finally{try{if(!s&&null!=c.return)c.return()}finally{if(a)throw l}}},setUserRoles:function(e,r,n){var s;if(!e)throw new Error("Missing 'users' param.");if(!r)throw new Error("Missing 'roles' param.");n=o._normalizeOptions(n);if(!Array.isArray(e))e=[e];if(!Array.isArray(r))r=[r];o._checkScopeName(n.scope);n=Object.assign({ifExists:false,anyScope:false},n);var a=true,l=false,c=void 0;try{for(var u=e[i.iterator](),f;!(a=(f=u.next()).done);a=true){var p=f.value;s=(void 0===p?"undefined":d(p))==="object"?p._id:p;var y={"user._id":s};if(!n.anyScope)y.scope=n.scope;t.roleAssignment.remove(y);var h=true,m=false,_=void 0;try{for(var v=r[i.iterator](),g;!(h=(g=v.next()).done);h=true){var A=g.value;o._addUserToRole(s,A,n)}}catch(e){m=true;_=e}finally{try{if(!h&&null!=v.return)v.return()}finally{if(m)throw _}}}}catch(e){l=true;c=e}finally{try{if(!a&&null!=u.return)u.return()}finally{if(l)throw c}}},_addUserToRole:function(e,r,n){o._checkRoleName(r);o._checkScopeName(n.scope);if(!e)return;var i=t.roles.findOne({_id:r},{fields:{children:1}});if(!i)if(n.ifExists)return[];else throw new Error("Role '"+r+"' does not exist.");var s=t.roleAssignment.upsert({"user._id":e,"role._id":r,scope:n.scope},{$setOnInsert:{user:{_id:e},role:{_id:r},scope:n.scope}});if(s.insertedId)t.roleAssignment.update({_id:s.insertedId},{$set:{inheritedRoles:[r].concat(f(o._getInheritedRoleNames(i))).map(function(e){return{_id:e}})}});return s},_getParentRoleNames:function(e){if(!e)return[];var r=new s([e._id]);var n=true,o=false,a=void 0;try{for(var l=r[i.iterator](),c;!(n=(c=l.next()).done);
121n=true){var u=c.value;t.roles.find({"children._id":u}).fetch().forEach(function(e){r.add(e._id)})}}catch(e){o=true;a=e}finally{try{if(!n&&null!=l.return)l.return()}finally{if(o)throw a}}r.delete(e._id);return f(r)},_getInheritedRoleNames:function(e){var r=new s;var n=new s([e]);var o=true,a=false,l=void 0;try{for(var c=n[i.iterator](),u;!(o=(u=c.next()).done);o=true){var d=u.value;var p=t.roles.find({_id:{$in:d.children.map(function(e){return e._id})}},{fields:{children:1}}).fetch();var y=true,h=false,m=void 0;try{for(var _=p[i.iterator](),v;!(y=(v=_.next()).done);y=true){var g=v.value;r.add(g._id);n.add(g)}}catch(e){h=true;m=e}finally{try{if(!y&&null!=_.return)_.return()}finally{if(h)throw m}}}}catch(e){a=true;l=e}finally{try{if(!o&&null!=c.return)c.return()}finally{if(a)throw l}}return f(r)},removeUsersFromRoles:function(e,r,n){if(!e)throw new Error("Missing 'users' param.");if(!r)throw new Error("Missing 'roles' param.");n=o._normalizeOptions(n);if(!Array.isArray(e))e=[e];if(!Array.isArray(r))r=[r];o._checkScopeName(n.scope);var t=true,s=false,a=void 0;try{for(var l=e[i.iterator](),c;!(t=(c=l.next()).done);t=true){var u=c.value;if(u){var f=true,p=false,y=void 0;try{for(var h=r[i.iterator](),m;!(f=(m=h.next()).done);f=true){var _=m.value;var v=void 0;v=(void 0===u?"undefined":d(u))==="object"?u._id:u;o._removeUserFromRole(v,_,n)}}catch(e){p=true;y=e}finally{try{if(!f&&null!=h.return)h.return()}finally{if(p)throw y}}}}}catch(e){s=true;a=e}finally{try{if(!t&&null!=l.return)l.return()}finally{if(s)throw a}}},_removeUserFromRole:function(e,r,n){o._checkRoleName(r);o._checkScopeName(n.scope);if(!e)return;var i={"user._id":e,"role._id":r};if(!n.anyScope)i.scope=n.scope;t.roleAssignment.remove(i)},userIsInRole:function(e,r,n){var i;n=o._normalizeOptions(n);if(!Array.isArray(r))r=[r];r=r.filter(function(e){return null!=e});if(!r.length)return false;o._checkScopeName(n.scope);n=Object.assign({anyScope:false},n);i=e&&(void 0===e?"undefined":d(e))==="object"?e._id:e;if(!i)return false;if("string"!=typeof i)return false;var s={"user._id":i};if(!n.anyScope)s.scope={$in:[n.scope,null]};return r.some(function(e){s["inheritedRoles._id"]=e;return t.roleAssignment.find(s,{limit:1}).count()>0})},getRolesForUser:function(e,r){var n;r=o._normalizeOptions(r);o._checkScopeName(r.scope);r=Object.assign({fullObjects:false,onlyAssigned:false,anyScope:false,onlyScoped:false},r);n=e&&(void 0===e?"undefined":d(e))==="object"?e._id:e;if(!n)return[];var i={"user._id":n};var a={fields:{"inheritedRoles._id":1}};if(!r.anyScope){i.scope={$in:[r.scope]};if(!r.onlyScoped)i.scope.$in.push(null)}if(r.onlyAssigned){delete a.fields["inheritedRoles._id"];a.fields["role._id"]=1}if(r.fullObjects)delete a.fields;var l=t.roleAssignment.find(i,a).fetch();if(r.fullObjects)return l;return f(new s(l.reduce(function(e,r){if(r.inheritedRoles)return e.concat(r.inheritedRoles.map(function(e){return e._id}));if(r.role)e.push(r.role._id);return e},[])))},getAllRoles:function(e){e=e||{sort:{_id:1}};return t.roles.find({},e)},getUsersInRole:function(e,r,n){var i=o.getUserAssignmentsForRole(e,r).fetch().map(function(e){return e.user._id});return t.users.find({_id:{$in:i}},r&&r.queryOptions||n||{})},getUserIdsInRole:function(e,r){var n=o.getUserAssignmentsForRole(e,r).fetch().map(function(e){return e.user._id});return n},getUserAssignmentsForRole:function(e,r){r=o._normalizeOptions(r);r=Object.assign({anyScope:false,queryOptions:{}},r);return o._getUsersInRoleCursor(e,r,r.queryOptions)},_getUsersInRoleCursor:function(e,r,n){r=o._normalizeOptions(r);r=Object.assign({anyScope:false,onlyScoped:false},r);if(!Array.isArray(e))e=[e];o._checkScopeName(r.scope);n=Object.assign({fields:{"user._id":1}},n);var i={"inheritedRoles._id":{$in:e}};if(!r.anyScope){i.scope={$in:[r.scope]};if(!r.onlyScoped)i.scope.$in.push(null)}return t.roleAssignment.find(i,n)},getGroupsForUser:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var t;if(!y){y=true;console&&console.warn("getGroupsForUser has been deprecated. Use getScopesForUser instead.")}return(t=o).getScopesForUser.apply(t,f(r))},getScopesForUser:function(e,r){var n;if(r&&!Array.isArray(r))r=[r];n=e&&(void 0===e?"undefined":d(e))==="object"?e._id:e;if(!n)return[];var i={"user._id":n,scope:{$ne:null}};if(r)i["inheritedRoles._id"]={$in:r};var o=t.roleAssignment.find(i,{fields:{scope:1}}).fetch().map(function(e){return e.scope});return f(new s(o))},renameScope:function(e,r){var n;o._checkScopeName(e);o._checkScopeName(r);if(e===r)return;do n=t.roleAssignment.update({scope:e},{$set:{scope:r}},{multi:true});while(n>0)},removeScope:function(e){o._checkScopeName(e);t.roleAssignment.remove({scope:e})},_checkRoleName:function(e){if(!e||"string"!=typeof e||e.trim()!==e)throw new Error("Invalid role name '"+e+"'.")},isParentOf:function(e,r){if(e===r)return true;if(null==e||null==r)return false;o._checkRoleName(e);o._checkRoleName(r);var n=[e];while(0!==n.length){var i=n.pop();if(i===r)return true;var s=t.roles.findOne({_id:i});if(!s)continue;n=n.concat(s.children.map(function(e){return e._id}))}return false},_normalizeOptions:function(e){e=void 0===e?{}:e;if(null===e||"string"==typeof e)e={scope:e};e.scope=o._normalizeScopeName(e.scope);return e},_normalizeScopeName:function(e){if(null==e)return null;return e},_checkScopeName:function(e){if(null===e)return;if(!e||"string"!=typeof e||e.trim()!==e)throw new Error("Invalid scope name '".concat(e,"'."))}})},
121"roles_common_async.js":function(e,r,n){n.export({RolesCollection:function(){return b},RoleAssignmentCollection:function(){return w}});var a;n.link("meteor/meteor",{Meteor:function(e){a=e}},0);var l;n.link("meteor/mongo",{Mongo:function(e){l=e}},1);function c(e,r){if(null==r||r>e.length)r=e.length;for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function u(e){if(Array.isArray(e))return c(e)}function f(e,r,n,i,s,o,a){try{var l=e[o](a);var c=l.value}catch(e){n(e);return}if(l.done)r(c);else t.resolve(c).then(i,s)}function d(e){return function(){var r=this,n=arguments;return new t(function(t,i){var s=e.apply(r,n);function o(e){f(s,t,i,o,a,"next",e)}function a(e){f(s,t,i,o,a,"throw",e)}o(void 0)})}}function p(e,r,n){if(r in e)Object.defineProperty(e,r,{value:n,enumerable:true,configurable:true,writable:true});else e[r]=n;return e}function y(e){if(void 0!==i&&null!=e[i.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};var t=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)t=t.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));t.forEach(function(r){p(e,r,n[r])})}return e}function _(e){return u(e)||y(e)||g(e)||h()}function v(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}function g(e,r){if(!e)return;if("string"==typeof e)return c(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,r)}function A(e,r){var n,t,s,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a["throw"]=l(1),a["return"]=l(2),"function"==typeof i&&(a[i.iterator]=function(){return this}),a;function l(e){return function(r){return c([e,r])}}
121function c(i){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,i[0]&&(o=0)),o)try{if(n=1,t&&(s=2&i[0]?t["return"]:i[0]?t["throw"]||((s=t["return"])&&s.call(t),0):t.next)&&!(s=s.call(t,i[1])).done)return s;if(t=0,s)i=[2&i[0],s.value];switch(i[0]){case 0:case 1:s=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;t=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(6===i[0]&&o.label<s[1]){o.label=s[1];s=i;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(i);break}if(s[2])o.ops.pop();o.trys.pop();continue}i=r.call(e,o)}catch(e){i=[6,e];t=0}finally{n=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var b=new l.Collection("roles");if(!a.roles)a.roles=b;var w=new l.Collection("role-assignment");if(!a.roleAssignment)a.roleAssignment=w;if(void 0===o)o={};var R=false;var O=function(e,r){return d(function(){var n,t,s,o,a,l,c;return A(this,function(u){switch(u.label){case 0:n=true,t=false,s=void 0;u.label=1;case 1:u.trys.push([1,6,7,8]);o=e[i.iterator]();u.label=2;case 2:if(!!(n=(a=o.next()).done))return[3,5];l=a.value;return[4,r(l)];case 3:if(u.sent())return[2,true];u.label=4;case 4:n=true;return[3,2];case 5:return[3,8];case 6:c=u.sent();t=true;s=c;return[3,8];case 7:try{if(!n&&null!=o.return)o.return()}finally{if(t)throw s}return[7];case 8:return[2,false]}})})()};var k;Object.assign(o,(k={GLOBAL_GROUP:null,createRoleAsync:function(e,r){return d(function(){var n,t;return A(this,function(i){switch(i.label){case 0:o._checkRoleName(e);r=Object.assign({unlessExists:false},r);n=null;return[4,a.roles.findOneAsync({_id:e})];case 1:t=i.sent();if(!t)return[3,3];return[4,a.roles.updateAsync({_id:e},{$setOnInsert:{children:[]}})];case 2:i.sent();return[2,null];case 3:return[4,a.roles.insertAsync({_id:e,children:[]})];case 4:n=i.sent();i.label=5;case 5:if(!n){if(r.unlessExists)return[2,null];throw new Error("Role '"+e+"' already exists.")}return[2,n]}})})()},deleteRoleAsync:function(e){return d(function(){var r,n,t,s,l,c,u,f,d,p,y;return A(this,function(h){switch(h.label){case 0:o._checkRoleName(e);return[4,a.roleAssignment.removeAsync({"role._id":e})];case 1:h.sent();h.label=2;case 2:t=o._getParentRoleNamesAsync;return[4,a.roles.findOneAsync({_id:e})];case 3:return[4,t.apply(o,[h.sent()])];case 4:r=h.sent();s=true,l=false,c=void 0;h.label=5;case 5:h.trys.push([5,14,15,16]);return[4,a.roles.find({_id:{$in:r}}).fetchAsync()];case 6:u=h.sent()[i.iterator]();h.label=7;case 7:if(!!(s=(f=u.next()).done))return[3,13];d=f.value;return[4,a.roles.updateAsync({_id:d._id},{$pull:{children:{_id:e}}})];case 8:h.sent();p=o._getInheritedRoleNamesAsync;return[4,a.roles.findOneAsync({_id:d._id})];case 9:return[4,p.apply(o,[h.sent()])];case 10:n=h.sent();return[4,a.roleAssignment.updateAsync({"role._id":d._id},{$set:{inheritedRoles:[d._id].concat(_(n)).map(function(e){return{_id:e}})}},{multi:true})];case 11:h.sent();h.label=12;case 12:s=true;return[3,7];case 13:return[3,16];case 14:y=h.sent();l=true;c=y;return[3,16];case 15:try{if(!s&&null!=u.return)u.return()}finally{if(l)throw c}return[7];case 16:if(r.length>0)return[3,2];h.label=17;case 17:return[4,a.roles.removeAsync({_id:e})];case 18:h.sent();return[2]}})})()},renameRoleAsync:function(e,r){return d(function(){var n,t;return A(this,function(i){switch(i.label){case 0:o._checkRoleName(e);o._checkRoleName(r);if(e===r)return[2];return[4,a.roles.findOneAsync({_id:e})];case 1:t=i.sent();if(!t)throw new Error("Role '"+e+"' does not exist.");t._id=r;return[4,a.roles.insertAsync(t)];case 2:i.sent();i.label=3;case 3:return[4,a.roleAssignment.updateAsync({"role._id":e},{$set:{"role._id":r}},{multi:true})];case 4:n=i.sent();i.label=5;case 5:if(n>0)return[3,3];i.label=6;case 6:return[4,a.roleAssignment.updateAsync({"inheritedRoles._id":e},{$set:{"inheritedRoles.$._id":r}},{multi:true})];case 7:n=i.sent();i.label=8;case 8:if(n>0)return[3,6];i.label=9;case 9:return[4,a.roles.updateAsync({"children._id":e},{$set:{"children.$._id":r}},{multi:true})];case 10:n=i.sent();i.label=11;case 11:if(n>0)return[3,9];i.label=12;case 12:return[4,a.roles.removeAsync({_id:e})];case 13:i.sent();return[2]}})})()},addRolesToParentAsync:function(e,r){return d(function(){var n,t,s,a,l,c,u;return A(this,function(f){switch(f.label){case 0:if(!Array.isArray(e))e=[e];n=true,t=false,s=void 0;f.label=1;case 1:f.trys.push([1,6,7,8]);a=e[i.iterator]();f.label=2;case 2:if(!!(n=(l=a.next()).done))return[3,5];c=l.value;return[4,o._addRoleToParentAsync(c,r)];case 3:f.sent();f.label=4;case 4:n=true;return[3,2];case 5:return[3,8];case 6:u=f.sent();t=true;s=u;return[3,8];case 7:try{if(!n&&null!=a.return)a.return()}finally{if(t)throw s}
121return[7];case 8:return[2]}})})()},_addRoleToParentAsync:function(e,r){return d(function(){var n,t,i,s,l,c,u,f,d,p;return A(this,function(y){switch(y.label){case 0:o._checkRoleName(e);o._checkRoleName(r);return[4,a.roles.findOneAsync({_id:e})];case 1:n=y.sent();if(!n)throw new Error("Role '".concat(e,"' does not exist."));return[4,o._getInheritedRoleNamesAsync(n)];case 2:if(y.sent().includes(r))throw new Error("Roles '".concat(e,"' and '").concat(r,"' would form a cycle."));return[4,a.roles.updateAsync({_id:r,"children._id":{$ne:n._id}},{$push:{children:{_id:n._id}}})];case 3:t=y.sent();if(!t)return[2];s=(i=a.roleAssignment).updateAsync;l=[{"inheritedRoles._id":r}];c={};u={};f={};p=(d=[n._id]).concat;return[4,o._getInheritedRoleNamesAsync(n)];case 4:return[4,s.apply(i,l.concat([(c.$push=(u.inheritedRoles=(f.$each=p.apply(d,[_.apply(void 0,[y.sent()])]).map(function(e){return{_id:e}}),f),u),c),{multi:true}]))];case 5:y.sent();return[2]}})})()},removeRolesFromParentAsync:function(e,r){return d(function(){var n,t,s,a,l,c,u;return A(this,function(f){switch(f.label){case 0:if(!Array.isArray(e))e=[e];n=true,t=false,s=void 0;f.label=1;case 1:f.trys.push([1,6,7,8]);a=e[i.iterator]();f.label=2;case 2:if(!!(n=(l=a.next()).done))return[3,5];c=l.value;return[4,o._removeRoleFromParentAsync(c,r)];case 3:f.sent();f.label=4;case 4:n=true;return[3,2];case 5:return[3,8];case 6:u=f.sent();t=true;s=u;return[3,8];case 7:try{if(!n&&null!=a.return)a.return()}finally{if(t)throw s}return[7];case 8:return[2]}})})()},_removeRoleFromParentAsync:function(e,r){return d(function(){var n,t,s,l,c,u,f,d,p,y,h,m,v;return A(this,function(g){switch(g.label){case 0:o._checkRoleName(e);o._checkRoleName(r);return[4,a.roles.findOneAsync({_id:e},{fields:{_id:1}})];case 1:n=g.sent();if(!n)throw new Error("Role '".concat(e,"' does not exist."));return[4,a.roles.updateAsync({_id:r},{$pull:{children:{_id:n._id}}})];case 2:t=g.sent();if(!t)return[2];l=o._getParentRoleNamesAsync;return[4,a.roles.findOneAsync({_id:r})];case 3:return[4,l.apply(o,[g.sent()])];case 4:s=_.apply(void 0,[g.sent()]).concat([r]);c=true,u=false,f=void 0;g.label=5;case 5:g.trys.push([5,13,14,15]);return[4,a.roles.find({_id:{$in:s}}).fetchAsync()];case 6:d=g.sent()[i.iterator]();g.label=7;case 7:if(!!(c=(p=d.next()).done))return[3,12];y=p.value;m=o._getInheritedRoleNamesAsync;return[4,a.roles.findOneAsync({_id:y._id})];case 8:return[4,m.apply(o,[g.sent()])];case 9:h=g.sent();return[4,a.roleAssignment.updateAsync({"role._id":y._id,"inheritedRoles._id":n._id},{$set:{inheritedRoles:[y._id].concat(_(h)).map(function(e){return{_id:e}})}},{multi:true})];case 10:g.sent();g.label=11;case 11:c=true;return[3,7];case 12:return[3,15];case 13:v=g.sent();u=true;f=v;return[3,15];case 14:try{if(!c&&null!=d.return)d.return()}finally{if(u)throw f}return[7];case 15:return[2]}})})()},addUsersToRolesAsync:function(e,r,n){return d(function(){var t,s,a,l,c,u,f,d,p,y,h,m,_,g;return A(this,function(A){switch(A.label){case 0:if(!e)throw new Error("Missing 'users' param.");if(!r)throw new Error("Missing 'roles' param.");n=o._normalizeOptions(n);if(!Array.isArray(e))e=[e];if(!Array.isArray(r))r=[r];o._checkScopeName(n.scope);n=Object.assign({ifExists:false},n);s=true,a=false,l=void 0;A.label=1;case 1:A.trys.push([1,12,13,14]);c=e[i.iterator]();A.label=2;case 2:if(!!(s=(u=c.next()).done))return[3,11];f=u.value;t=(void 0===f?"undefined":v(f))==="object"?f._id:f;d=true,p=false,y=void 0;A.label=3;case 3:A.trys.push([3,8,9,10]);h=r[i.iterator]();A.label=4;case 4:if(!!(d=(m=h.next()).done))return[3,7];_=m.value;return[4,o._addUserToRoleAsync(t,_,n)];case 5:A.sent();A.label=6;case 6:d=true;return[3,4];case 7:return[3,10];case 8:g=A.sent();p=true;y=g;return[3,10];case 9:try{if(!d&&null!=h.return)h.return()}finally{if(p)throw y}return[7];case 10:s=true;return[3,2];case 11:return[3,14];case 12:g=A.sent();a=true;l=g;return[3,14];case 13:try{if(!s&&null!=c.return)c.return()}finally{if(a)throw l}return[7];case 14:return[2]}})})()},setUserRolesAsync:function(e,r,n){return d(function(){var t,s,l,c,u,f,d,p,y,h,m,_,g,b,w;return A(this,function(A){switch(A.label){case 0:if(!e)throw new Error("Missing 'users' param.");if(!r)throw new Error("Missing 'roles' param.");n=o._normalizeOptions(n);if(!Array.isArray(e))e=[e];if(!Array.isArray(r))r=[r];o._checkScopeName(n.scope);n=Object.assign({ifExists:false,anyScope:false},n);s=true,l=false,c=void 0;A.label=1;case 1:A.trys.push([1,13,14,15]);u=e[i.iterator]();A.label=2;case 2:if(!!(s=(f=u.next()).done))return[3,12];d=f.value;t=(void 0===d?"undefined":v(d))==="object"?d._id:d;p={"user._id":t};if(!n.anyScope)p.scope=n.scope;return[4,a.roleAssignment.removeAsync(p)];case 3:A.sent();y=true,h=false,m=void 0;A.label=4;case 4:A.trys.push([4,9,10,11]);_=r[i.iterator]();A.label=5;case 5:if(!!(y=(g=_.next()).done))return[3,8];b=g.value;return[4,o._addUserToRoleAsync(t,b,n)];case 6:A.sent();A.label=7;case 7:y=true;return[3,5];case 8:return[3,11];case 9:w=A.sent();h=true;m=w;return[3,11];case 10:try{if(!y&&null!=_.return)_.return()}finally{if(h)throw m}
121return[7];case 11:s=true;return[3,2];case 12:return[3,15];case 13:w=A.sent();l=true;c=w;return[3,15];case 14:try{if(!s&&null!=u.return)u.return()}finally{if(l)throw c}return[7];case 15:return[2]}})})()},_addUserToRoleAsync:function(e,r,n){return d(function(){var t,i,s,l,c,u,f,d,p,y,h;return A(this,function(m){switch(m.label){case 0:o._checkRoleName(r);o._checkScopeName(n.scope);if(!e)return[2];return[4,a.roles.findOneAsync({_id:r},{fields:{children:1}})];case 1:t=m.sent();if(!t)if(n.ifExists)return[2,[]];else throw new Error("Role '"+r+"' does not exist.");return[4,a.roleAssignment.findOneAsync({"user._id":e,"role._id":r,scope:n.scope})];case 2:i=m.sent();if(!i)return[3,5];return[4,a.roleAssignment.updateAsync(i._id,{$set:{user:{_id:e},role:{_id:r},scope:n.scope}})];case 3:m.sent();return[4,a.roleAssignment.findOneAsync(i._id)];case 4:l=m.sent();return[3,7];case 5:return[4,a.roleAssignment.insertAsync({user:{_id:e},role:{_id:r},scope:n.scope})];case 6:s=m.sent();m.label=7;case 7:if(!s)return[3,11];u=(c=a.roleAssignment).updateAsync;f=[{_id:s}];d={};p={};h=(y=[r]).concat;return[4,o._getInheritedRoleNamesAsync(t)];case 8:return[4,u.apply(c,f.concat([(d.$set=(p.inheritedRoles=h.apply(y,[_.apply(void 0,[m.sent()])]).map(function(e){return{_id:e}}
121),p),d)]))];case 9:m.sent();return[4,a.roleAssignment.findOneAsync({_id:s})];case 10:l=m.sent();m.label=11;case 11:l.insertedId=s;return[2,l]}})})()},_getParentRoleNamesAsync:function(e){return d(function(){var r,n,t,o,l,c,u,f,d,p,y,h,m,v;return A(this,function(g){switch(g.label){case 0:if(!e)return[2,[]];r=new s([e._id]);n=true,t=false,o=void 0;g.label=1;case 1:g.trys.push([1,12,13,14]);l=r[i.iterator]();g.label=2;case 2:if(!!(n=(c=l.next()).done))return[3,11];u=c.value;f=true,d=false,p=void 0;g.label=3;case 3:g.trys.push([3,8,9,10]);return[4,a.roles.find({"children._id":u}).fetchAsync()];case 4:y=g.sent()[i.iterator]();g.label=5;case 5:if(!!(f=(h=y.next()).done))return[3,7];m=h.value;r.add(m._id);g.label=6;case 6:f=true;return[3,5];case 7:return[3,10];case 8:v=g.sent();d=true;p=v;return[3,10];case 9:try{if(!f&&null!=y.return)y.return()}finally{if(d)throw p}return[7];case 10:n=true;return[3,2];case 11:return[3,14];case 12:v=g.sent();t=true;o=v;return[3,14];case 13:try{if(!n&&null!=l.return)l.return()}finally{if(t)throw o}return[7];case 14:r.delete(e._id);return[2,_(r)]}})})()},_getInheritedRoleNamesAsync:function(e){return d(function(){var r,n,t,o,l,c,u,f,d,p,y,h,m,v,g,b;return A(this,function(A){switch(A.label){case 0:r=new s;n=new s([e]);t=true,o=false,l=void 0;A.label=1;case 1:A.trys.push([1,6,7,8]);c=n[i.iterator]();A.label=2;case 2:if(!!(t=(u=c.next()).done))return[3,5];f=u.value;return[4,a.roles.find({_id:{$in:f.children.map(function(e){return e._id})}},{fields:{children:1}}).fetchAsync()];case 3:d=A.sent();p=true,y=false,h=void 0;try{for(m=d[i.iterator]();!(p=(v=m.next()).done);p=true){g=v.value;r.add(g._id);n.add(g)}}catch(e){y=true;h=e}finally{try{if(!p&&null!=m.return)m.return()}finally{if(y)throw h}}A.label=4;case 4:t=true;return[3,2];case 5:return[3,8];case 6:b=A.sent();o=true;l=b;return[3,8];case 7:try{if(!t&&null!=c.return)c.return()}finally{if(o)throw l}return[7];case 8:return[2,_(r)]}})})()},removeUsersFromRolesAsync:function(e,r,n){return d(function(){var t,s,a,l,c,u,f,d,p,y,h,m,_,g;return A(this,function(A){switch(A.label){case 0:if(!e)throw new Error("Missing 'users' param.");if(!r)throw new Error("Missing 'roles' param.");n=o._normalizeOptions(n);if(!Array.isArray(e))e=[e];if(!Array.isArray(r))r=[r];o._checkScopeName(n.scope);t=true,s=false,a=void 0;A.label=1;case 1:A.trys.push([1,12,13,14]);l=e[i.iterator]();A.label=2;case 2:if(!!(t=(c=l.next()).done))return[3,11];u=c.value;if(!u)return[2];f=true,d=false,p=void 0;A.label=3;case 3:A.trys.push([3,8,9,10]);y=r[i.iterator]();A.label=4;case 4:if(!!(f=(h=y.next()).done))return[3,7];m=h.value;_=void 0;_=(void 0===u?"undefined":v(u))==="object"?u._id:u;return[4,o._removeUserFromRoleAsync(_,m,n)];case 5:A.sent();A.label=6;case 6:f=true;return[3,4];case 7:return[3,10];case 8:g=A.sent();d=true;p=g;return[3,10];case 9:try{if(!f&&null!=y.return)y.return()}finally{if(d)throw p}
121return[7];case 10:t=true;return[3,2];case 11:return[3,14];case 12:g=A.sent();s=true;a=g;return[3,14];case 13:try{if(!t&&null!=l.return)l.return()}finally{if(s)throw a}return[7];case 14:return[2]}})})()},_removeUserFromRoleAsync:function(e,r,n){return d(function(){var t;return A(this,function(i){switch(i.label){case 0:o._checkRoleName(r);o._checkScopeName(n.scope);if(!e)return[2];t={"user._id":e,"role._id":r};if(!n.anyScope)t.scope=n.scope;return[4,a.roleAssignment.removeAsync(t)];case 1:i.sent();return[2]}})})()},userIsInRoleAsync:function(e,r,n){return d(function(){var t,i,s;return A(this,function(l){switch(l.label){case 0:n=o._normalizeOptions(n);if(!Array.isArray(r))r=[r];r=r.filter(function(e){return null!=e});if(!r.length)return[2,false];o._checkScopeName(n.scope);n=Object.assign({anyScope:false},n);t=e&&(void 0===e?"undefined":v(e))==="object"?e._id:e;if(!t)return[2,false];if("string"!=typeof t)return[2,false];i={"user._id":t};if(!n.anyScope)i.scope={$in:[n.scope,null]};return[4,O(r,function(e){return d(function(){var r;return A(this,function(n){switch(n.label){case 0:i["inheritedRoles._id"]=e;return[4,a.roleAssignment.countDocuments(i,{limit:1})];case 1:r=n.sent()>0;return[2,r]}})})()})];case 1:s=l.sent();return[2,s]}})})()},getRolesForUserAsync:function(e,r){return d(function(){var n,t,i,l;return A(this,function(c){switch(c.label){case 0:r=o._normalizeOptions(r);o._checkScopeName(r.scope);r=Object.assign({fullObjects:false,onlyAssigned:false,anyScope:false,onlyScoped:false},r);n=e&&(void 0===e?"undefined":v(e))==="object"?e._id:e;if(!n)return[2,[]];t={"user._id":n};i={fields:{"inheritedRoles._id":1}};if(!r.anyScope){t.scope={$in:[r.scope]};if(!r.onlyScoped)t.scope.$in.push(null)}if(r.onlyAssigned){delete i.fields["inheritedRoles._id"];i.fields["role._id"]=1}if(r.fullObjects)delete i.fields;return[4,a.roleAssignment.find(t,i).fetchAsync()];case 1:l=c.sent();if(r.fullObjects)return[2,l];return[2,_(new s(l.reduce(function(e,r){if(r.inheritedRoles)return e.concat(r.inheritedRoles.map(function(e){return e._id}));if(r.role)e.push(r.role._id);return e},[])))]}})})()},getScopesForUserAsync:function(e,r){return d(function(){var n,t,i;return A(this,function(o){switch(o.label){case 0:if(r&&!Array.isArray(r))r=[r];n=e&&(void 0===e?"undefined":v(e))==="object"?e._id:e;if(!n)return[2,[]];t={"user._id":n,scope:{$ne:null}};if(r)t["inheritedRoles._id"]={$in:r};return[4,a.roleAssignment.find(t,{fields:{scope:1}}).fetchAsync()];case 1:i=o.sent().map(function(e){return e.scope});return[2,_(new s(i))]}})})()},renameScopeAsync:function(e,r){return d(function(){var n;return A(this,function(t){switch(t.label){case 0:o._checkScopeName(e);o._checkScopeName(r);if(e===r)return[2];t.label=1;case 1:return[4,a.roleAssignment.updateAsync({scope:e},{$set:{scope:r}},{multi:true})];case 2:n=t.sent();t.label=3;case 3:if(n>0)return[3,1];t.label=4;case 4:return[2]}})})()},removeScopeAsync:function(e){return d(function(){return A(this,function(r){switch(r.label){case 0:o._checkScopeName(e);return[4,a.roleAssignment.removeAsync({scope:e})];case 1:r.sent();return[2]}})})()},isParentOfAsync:function(e,r){return d(function(){var n,t,i;return A(this,function(s){switch(s.label){case 0:if(e===r)return[2,true];if(null==e||null==r)return[2,false];o._checkRoleName(e);o._checkRoleName(r);n=[e];s.label=1;case 1:if(!(0!==n.length))return[3,3];t=n.pop();if(t===r)return[2,true];return[4,a.roles.findOneAsync({_id:t})];case 2:i=s.sent();if(!i)return[3,1];n=n.concat(i.children.map(function(e){return e._id}));return[3,1];case 3:return[2,false]}})})()},getAllRoles:function(e){e=e||{sort:{_id:1}};return a.roles.find({},e)},getUsersInRoleAsync:function(e,r,n){return d(function(){var t,i;return A(this,function(s){switch(s.label){case 0:r=o._normalizeOptions(r);t=m({},r);t.queryOptions=void 0;return[4,o.getUserAssignmentsForRole(e,t).fetchAsync()];case 1:i=s.sent().map(function(e){return e.user._id});return[2,a.users.find({_id:{$in:i}},r&&r.queryOptions||n||{})]}})})()},getUserIdsInRoleAsync:function(e,r){return d(function(){var n;return A(this,function(t){switch(t.label){case 0:n=o.getUserAssignmentsForRole(e,r);return[4,n.fetchAsync()];case 1:return[2,t.sent().map(function(e){return e.user._id})]}})})()},getUserAssignmentsForRole:function(e,r){r=o._normalizeOptions(r);r=Object.assign({anyScope:false,queryOptions:{}},r);return o._getUsersInRoleCursor(e,r,r.queryOptions)},_getUsersInRoleCursor:function(e,r,n){r=o._normalizeOptions(r);r=Object.assign({anyScope:false,onlyScoped:false},r);if(!Array.isArray(e))e=[e];o._checkScopeName(r.scope);n=Object.assign({fields:{"user._id":1}},n);var t={"inheritedRoles._id":{$in:e}};if(!r.anyScope){t.scope={$in:[r.scope]};if(!r.onlyScoped)t.scope.$in.push(null)}return a.roleAssignment.find(t,n)},getGroupsForUserAsync:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return d(function(){var e;return A(this,function(n){switch(n.label){case 0:if(!R){R=true;console&&console.warn("getGroupsForUser has been deprecated. Use getScopesForUser instead.")}return[4,(e=o).getScopesForUser.apply(e,_(r))];case 1:return[2,n.sent()]}})})()}},p(k,"getScopesForUserAsync",function(e,r){return d(function(){var n,t,i;return A(this,function(o){switch(o.label){case 0:if(r&&!Array.isArray(r))r=[r];n=e&&(void 0===e?"undefined":v(e))==="object"?e._id:e;if(!n)return[2,[]];t={"user._id":n,scope:{$ne:null}};if(r)t["inheritedRoles._id"]={$in:r};return[4,a.roleAssignment.find(t,{fields:{scope:1}}).fetchAsync()];case 1:i=o.sent().map(function(e){return e.scope});return[2,_(new s(i))]}})})()}),p(k,"renameScopeAsync",function(e,r){return d(function(){var n;return A(this,function(t){switch(t.label){case 0:o._checkScopeName(e);o._checkScopeName(r);if(e===r)return[2];t.label=1;case 1:return[4,a.roleAssignment.updateAsync({scope:e},{$set:{scope:r}},{multi:true})];case 2:n=t.sent();t.label=3;case 3:if(n>0)return[3,1];t.label=4;case 4:return[2]}})})()}),p(k,"removeScopeAsync",function(e){return d(function(){return A(this,function(r){switch(r.label){case 0:o._checkScopeName(e);return[4,a.roleAssignment.removeAsync({scope:e})];case 1:r.sent();return[2]}})})()}),p(k,"_checkRoleName",function(e){if(!e||"string"!=typeof e||e.trim()!==e)throw new Error("Invalid role name '".concat(e,"'."))}),p(k,"isParentOfAsync",function(e,r){return d(function(){var n,t,i;return A(this,function(s){switch(s.label){case 0:if(e===r)return[2,true];if(null==e||null==r)return[2,false];o._checkRoleName(e);o._checkRoleName(r);n=[e];s.label=1;case 1:if(!(0!==n.length))return[3,3];t=n.pop();if(t===r)return[2,true];return[4,a.roles.findOneAsync({_id:t})];case 2:i=s.sent();if(!i)return[3,1];n=n.concat(i.children.map(function(e){return e._id}));return[3,1];case 3:return[2,false]}})})()}),p(k,"_normalizeOptions",function(e){e=void 0===e?{}:e;if(null===e||"string"==typeof e||"number"==typeof e)e={scope:e};e.scope=o._normalizeScopeName(e.scope);return e}),p(k,"_normalizeScopeName",function(e){if(null==e)return null;return e}),p(k,"_checkScopeName",function(e){if(null===e)return;if(!e||"string"!=typeof e||e.trim()!==e)throw new Error("Invalid scope name '".concat(e,"'."))}),k))},client:{
121"debug.js":function(){o.debug=false;try{if(localStorage){var e=localStorage.getItem("Roles.debug");if(void 0!==e)o.debug=!!e}}catch(e){}},
121"uiHelpers.js":function(n,t,s){function a(e,r){if(null==r||r>e.length)r=e.length;for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function l(e){if(Array.isArray(e))return e}function c(e,r){var n=null==e?null:void 0!==i&&e[i.iterator]||e["@@iterator"];if(null==n)return;var t=[];var s=true;var o=false;var a,l;try{for(n=n.call(e);!(s=(a=n.next()).done);s=true){t.push(a.value);if(r&&t.length===r)break}}catch(e){o=true;l=e}finally{try{if(!s&&null!=n["return"])n["return"]()}finally{if(o)throw l}}return t}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,r){return l(e)||c(e,r)||d(e,r)||u()}function d(e,r){if(!e)return;if("string"==typeof e)return a(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,r)}o._uiHelpers={isInRole:function(n,t){var i=e.user();var s=(n||"").indexOf(",");var a;if(!i)return false;if(!r.test(n,String))return false;a=-1!==s?n.split(",").reduce(function(e,r){if(!r)return e;e.push(r);return e},[]):[n];if(r.test(t,String))return o.userIsInRole(i,a,t);return o.userIsInRole(i,a)}};if(o.debug&&console.debug)console.debug("[roles] Roles.debug =",o.debug);if(void 0!==Package.blaze&&void 0!==Package.blaze.Blaze&&"function"==typeof Package.blaze.Blaze.registerHelper)Object.entries(o._uiHelpers).forEach(function(e){var r=f(e,2),n=r[0],t=r[1];if(o.debug&&console.debug)console.debug("[roles] registering Blaze helper '"+n+"'");Package.blaze.Blaze.registerHelper(n,t)})}}}}}},{extensions:[".js",".json"]});return{export:function(){return{Roles:o,RolesCollection:a,RoleAssignmentCollection:l}},require:c,eagerModulePaths:["/node_modules/meteor/roles/roles_client.js","/node_modules/meteor/roles/roles_common_async.js","/node_modules/meteor/roles/client/debug.js","/node_modules/meteor/roles/client/uiHelpers.js"]}});
122
123Package["core-runtime"].queue("zodern:types",function(){return{}});
124
125Package["core-runtime"].queue("reactive-dict",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package.tracker.Tracker;Package.tracker.Deps;var i=Package.ejson.EJSON;var a=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var n=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var r;var s=a({node_modules:{meteor:{"reactive-dict":{
125"migration.js":function(t,i,a){a.export({ReactiveDict:function(){return n}});var n;a.link("./reactive-dict",{ReactiveDict:function(e){n=e}},0);var r=Object.prototype.hasOwnProperty;n._migratedDictData={};n._dictsToMigrate={};n._loadMigratedDict=function(e){if(r.call(n._migratedDictData,e)){var t=n._migratedDictData[e];delete n._migratedDictData[e];return t}return null};n._registerDictForMigrate=function(e,t){if(r.call(n._dictsToMigrate,e))throw new Error("Duplicate ReactiveDict name: "+e);n._dictsToMigrate[e]=t};if(e.isClient&&Package.reload){var s=Package.reload.Reload._migrationData("reactive-dict");if(s&&s.dicts)n._migratedDictData=s.dicts;Package.reload.Reload._onMigrate("reactive-dict",function(){var e=n._dictsToMigrate;var t={};for(var i in e)t[i]=e[i]._getMigrationData();return[true,{dicts:t}]})}},
125"reactive-dict.js":function(a,r,s){s.export({ReactiveDict:function(){return h}});function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}function u(e,t,i){if(t)o(e.prototype,t);if(i)o(e,i);return e}function l(e,t){if(null!=t&&void 0!==n&&t[n.hasInstance])return!!t[n.hasInstance](e);return e instanceof t}function f(e){return e&&void 0!==n&&e.constructor===n?"symbol":typeof e}var d=Object.prototype.hasOwnProperty;function v(e){if(void 0===e)return"undefined";return i.stringify(e)}function k(e){if(void 0===e||"undefined"===e)return;return i.parse(e)}function y(e){e&&e.changed()}var h=function(){"use strict";function a(i,n){c(this,a);this.keys={};if(i)if("string"==typeof i){e.isClient&&a._registerDictForMigrate(i,this);var r=e.isClient&&a._loadMigratedDict(i);if(r)this.keys=r;else this._setObject(n||{});this.name=i}else if((void 0===i?"undefined":f(i))==="object")this._setObject(i);else throw new Error("Invalid ReactiveDict argument: "+i);else if((void 0===n?"undefined":f(n))==="object")this._setObject(n);this.allDeps=new t.Dependency;this.keyDeps={};this.keyValueDeps={}}u(a,[{key:"set",value:function(e,t){if((void 0===e?"undefined":f(e))==="object"&&void 0===t)return void this._setObject(e);var i=e;t=v(t);var a=d.call(this.keys,i);var n=a?this.keys[i]:"undefined";var r=t!==n;this.keys[i]=t;if(r||!a)y(this.allDeps);if(r&&this.keyDeps){y(this.keyDeps[i]);if(this.keyValueDeps[i]){y(this.keyValueDeps[i][n]);y(this.keyValueDeps[i][t])}}}},{key:"setDefault",value:function(e,t){if((void 0===e?"undefined":f(e))==="object"&&void 0===t)return void this._setDefaultObject(e);var i=e;if(!d.call(this.keys,i))this.set(i,t)}},{key:"get",value:function(e){this._ensureKey(e);this.keyDeps[e].depend();return k(this.keys[e])}},{key:"equals",value:function(e,a){var n=this;var r=null;if(Package.mongo)r=Package.mongo.Mongo.ObjectID;if("string"!=typeof a&&"number"!=typeof a&&"boolean"!=typeof a&&void 0!==a&&!l(a,Date)&&!(r&&l(a,r))&&null!==a)throw new Error("ReactiveDict.equals: value must be scalar");var s=v(a);if(t.active){this._ensureKey(e);if(!d.call(this.keyValueDeps[e],s))this.keyValueDeps[e][s]=new t.Dependency;var c=this.keyValueDeps[e][s].depend();if(c)t.onInvalidate(function(){if(!n.keyValueDeps[e][s].hasDependents())delete n.keyValueDeps[e][s]})}var o=void 0;if(d.call(this.keys,e))o=k(this.keys[e]);return i.equals(o,a)}},{key:"all",value:function(){var e=this;this.allDeps.depend();var t={};Object.keys(this.keys).forEach(function(i){t[i]=k(e.keys[i])});return t}},{key:"clear",value:function(){var e=this;var t=this.keys;this.keys={};this.allDeps.changed();Object.keys(t).forEach(function(i){y(e.keyDeps[i]);if(e.keyValueDeps[i]){y(e.keyValueDeps[i][t[i]]);y(e.keyValueDeps[i]["undefined"])}})}},{key:"delete",value:function(e){var t=false;if(d.call(this.keys,e)){var i=this.keys[e];delete this.keys[e];y(this.keyDeps[e]);if(this.keyValueDeps[e]){y(this.keyValueDeps[e][i]);y(this.keyValueDeps[e]["undefined"])}this.allDeps.changed();t=true}return t}},{key:"destroy",value:function(){this.clear();if(this.name&&d.call(a._dictsToMigrate,this.name))delete a._dictsToMigrate[this.name]}},{key:"_setObject",value:function(e){var t=this;Object.keys(e).forEach(function(i){t.set(i,e[i])})}},{key:"_setDefaultObject",value:function(e){var t=this;Object.keys(e).forEach(function(i){t.setDefault(i,e[i])})}},{key:"_ensureKey",value:function(e){if(!(e in this.keyDeps)){this.keyDeps[e]=new t.Dependency;this.keyValueDeps[e]={}}}},{key:"_getMigrationData",value:function(){return this.keys}}]);return a}()}}}}},{extensions:[".js",".json"]});return{export:function(){return{ReactiveDict:r}},require:s,eagerModulePaths:["/node_modules/meteor/reactive-dict/migration.js"],mainModulePath:"/node_modules/meteor/reactive-dict/migration.js"}});
126
127Package["core-runtime"].queue("vlasky:galvanized-iron-router",function(){Package.ejson.EJSON;Package.meteor.Meteor;var e=Package.meteor.global;Package.meteor.meteorEnv;Package.random.Random;Package.tracker.Tracker;Package.tracker.Deps;Package["reactive-var"].ReactiveVar;Package["reactive-dict"].ReactiveDict;var t=Package.blaze.Blaze;Package.blaze.UI;Package.blaze.Handlebars;var r=Package["templating-runtime"].Template;var n=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var o=Package.htmljs.HTML;var i=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var a=Package.spacebars.Spacebars;var u,s,l,c,f,h;var p=n({node_modules:{meteor:{"vlasky:galvanized-iron-router":{lib:{"dynamic-template":{
127"template.dynamic_template.js":function(){r.__checkName("__IronRouterDynamicTemplateError__");r["__IronRouterDynamicTemplateError__"]=new r("Template.__IronRouterDynamicTemplateError__",function(){var e=this;return o.DIV({style:"width: 600px; margin: 0 auto; padding: 20px;"},"\n    ",o.DIV({style:"font-size: 18pt; color: #999;"},"\n      ",t.View("lookup:msg",function(){return a.mustache(e.lookup("msg"))}),"\n    "),"\n  ")})},
127"blaze_overrides.js":function(e,t,r){var n;r.link("meteor/blaze",{Blaze:function(e){n=e}},0);var o;r.link("../core/iron_core.js",{Iron:function(e){o=e}},1);var i;r.link("./dynamic_template.js",{DynamicTemplate:function(e){i=e}},2);var a=o.utils.get;var u=n.View.prototype.lookup;n.View.prototype.lookup=function(e){var t=i.findLookupHostWithHelper(n.getView(),e);if(t)return function(){var r=a(t,"constructor","_helpers",e);var n=[].slice.call(arguments);return"function"==typeof r?r.apply(t,n):r};return u.apply(this,arguments)}},
127"dynamic_template.js":function(e,t,r){r.export({DynamicTemplate:function(){return O}});var n;r.link("meteor/meteor",{Meteor:function(e){n=e}},0);var o;r.link("meteor/blaze",{Blaze:function(e){o=e}},1);var a;r.link("meteor/templating",{Template:function(e){a=e}},2);var u;r.link("meteor/random",{Random:function(e){u=e}},3);var s;r.link("meteor/tracker",{Tracker:function(e){s=e}},4);var l;r.link("meteor/reactive-var",{ReactiveVar:function(e){l=e}},5);var c;r.link("../core/iron_core.js",{Iron:function(e){c=e}},6);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function p(e,t,r){if(t)h(e.prototype,t);if(r)h(e,r);return e}function v(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function d(e,t){if(null!=t&&void 0!==i&&t[i.hasInstance])return!!t[i.hasInstance](e);return e instanceof t}function y(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}var m=o;var _=c.utils.assert;var g=c.utils.warn;var k=c.utils.get;var w=c.utils.camelCase;var b=function(e){var t=e&&e.constructor&&e.constructor._helpers;return!!t&&Object.keys(t).length>0};var j=function(e){return Object.prototype.toString.call(e)};var O=function(){"use strict";function e(t){f(this,e);this._id=u.id();this.options=t=t||{};this._template=t.template;this._defaultTemplate=t.defaultTemplate;this._content=t.content;this._data=t.data;this._templateDep=new s.Dependency;this._dataDep=new s.Dependency;this._lookupHostDep=new s.Dependency;this._lookupHostHelpersDep=new s.Dependency;this._lookupHostValue=null;this._hooks={};this._eventMap=null;this._eventHandles=null;this._eventThisArg=null;this.name=t.name||this.constructor.prototype.name||"DynamicTemplate";this.isCreated=false;this.isDestroyed=false}p(e,[{key:"template",value:function(e){if(1===arguments.length&&e!==this._template){this._template=e;this._templateDep.changed();return}if(arguments.length>0)return;this._templateDep.depend();if(this._template)return"function"==typeof this._template?this._template():this._template;if(this._defaultTemplate)return"function"==typeof this._defaultTemplate?this._defaultTemplate():this._defaultTemplate}},{key:"defaultTemplate",value:function(e){if(1!==arguments.length)return this._defaultTemplate;this._defaultTemplate=e}},{key:"clear",value:function(){this._template=void 0;this._data=void 0;this._templateDep.changed()}},{key:"data",value:function(e){if(1===arguments.length&&e!==this._data){this._data=e;this._dataDep.changed();return}this._dataDep.depend();return"function"==typeof this._data?this._data():this._data}},{key:"create",value:function(t){var r=this;if(this.isCreated)throw new Error("DynamicTemplate view is already created");this.isCreated=true;this.isDestroyed=false;var n=l(null);var i=o.View("DynamicTemplate",function(){var t=n.get();return o.With(function(){var t=r.data();if(void 0!==t)return t;return e.getParentDataContext(i)},function(){return r.renderView(t)})});i.onViewCreated(function(){i.autorun(function(){n.set(r.template())})});["onViewCreated","onViewReady","_onViewRendered","onViewDestroyed"].forEach(function(e){i[e](function(){r._runHooks(e,i)})});i._onViewRendered(function(){r.isInserted=true;if(1!==i.renderCount)return;r._attachEvents()});i.onViewDestroyed(function(){r._detachEvents()});i._templateInstance=new o.TemplateInstance(i);i.templateInstance=function(){var e=i._templateInstance;e.data=o.getData(i);if(i._domrange&&!i.isDestroyed){e.firstNode=i._domrange.firstNode();e.lastNode=i._domrange.lastNode()}else{e.firstNode=null;e.lastNode=null}return e};this.view=i;i.__dynamicTemplate__=this;i.name=this.name;return i}},{key:"renderView",value:function(e){var t=null;if("string"==typeof e){t=a[e];if(!t)t=a[w(e)];if(!t)t=o.With({msg:"Couldn't find a template named "+JSON.stringify(e)+" or "+JSON.stringify(w(e))+". Are you sure you defined it?"},function(){return a.__IronRouterDynamicTemplateError__})}else if("[object Object]"===j(e))t=e;else if(void 0!==this._content)t=this._content;return t}},{key:"destroy",value:function(){if(this.isCreated){o.remove(this.view);this.view=null;this.isDestroyed=true;this.isCreated=false}}},{key:"_runHooks",value:function(e,t){var r=this._hooks[e]||[];for(var n=0;n<r.length;n++){var o=r[n];o.call(t,this)}}},{key:"onViewCreated",value:function(e){var t=this._hooks["onViewCreated"]=this._hooks["onViewCreated"]||[];t.push(e);return this}},{key:"onViewReady",value:function(e){var t=this._hooks["onViewReady"]=this._hooks["onViewReady"]||[];t.push(e);return this}},{key:"_onViewRendered",value:function(e){var t=this._hooks["_onViewRendered"]=this._hooks["_onViewRendered"]||[];t.push(e);return this}},{key:"onViewDestroyed",value:function(e){var t=this._hooks["onViewDestroyed"]=this._hooks["onViewDestroyed"]||[];t.push(e);return this}},{key:"events",value:function(e,t){var r=this;this._detachEvents();this._eventThisArg=t;var n=this._eventMap={};for(var i in e)n[i]=function(e,n){return function(e){var i=o.getData(e.currentTarget);if(null==i)i={};var a=r.view.templateInstance();return n.call(t||r,e,a,i)}}(0,e[i]);this._attachEvents()}},{key:"_attachEvents",value:function(){var e=this;var t=this._eventMap;var r=this.view;var n=this._eventHandles;if(!r||!t)return;var i=r._domrange;if(!i)throw new Error("no domrange");var a=function(i,a){Object.keys(t).forEach(function(u){var s=t[u];var l=u.split(/,\s+/);l.forEach(function(t){var u=t.split(/\s+/);if(0===u.length)return;var l=u.shift();var c=u.join(" ");n.push(o._EventSupport.listen(a,l,c,(function(e){if(!i.containsElement(e.currentTarget))return null;var t=this._eventThisArg||this;var n=arguments;return o._withCurrentView(r,function(){return s.apply(t,n)})}).bind(e),i,function(e){return e.parentRange}))})})};if(i.attached)a(i,i.parentElement);else i.onAttached(a)}},{key:"_detachEvents",value:function(){if(this._eventHandles)this._eventHandles.forEac
127h(function(e){e.stop()});this._eventHandles=[]}},{key:"insert",value:function(e){e=e||{};if(this.isInserted)return;this.isInserted=true;var t=e.el||document.body;var r="string"==typeof t?document.querySelector(t):t;if(r&&!d(r,Element)&&"number"==typeof r.length)r=r[0];if(!r)throw new Error("No element to insert layout into. Is your element defined? Try a Meteor.startup callback.");if(!this.view)this.create(e);o.render(this.view,r,e.nextNode,e.parentView);return this}},{key:"_getLookupHost",value:function(e){var t=!(e&&false===e.reactive);if(t&&s.active)if(e&&e.helpersOnly)this._lookupHostHelpersDep.depend();else this._lookupHostDep.depend();return this._lookupHostValue}},{key:"_setLookupHost",value:function(e){var t=this;if(this._lookupHostValue!==e){var r=b(this._lookupHostValue)||b(e);this._lookupHostValue=e;s.afterFlush(function(){t._lookupHostDep.changed();if(r)t._lookupHostHelpersDep.changed()})}return this}}],[{key:"extend",value:function(e){return c.utils.extend(this,e)}},{key:"getParentDataContext",value:function(t){var r=e.getDataContext(t&&t.parentView);if(null!=r)return r;if(e._isBlaze2()&&void 0!==a&&"function"==typeof a.parentData)try{return a.parentData(1)}catch(e){}return r}},{key:"_normalizeScopeBindings",value:function(e){if(!e||(void 0===e?"undefined":y(e))!=="object")return null;var t=Object.keys(e);if(!t.length)return null;var r={};var n=[];var o=false;t.forEach(function(t){if(!t)return;if("_"===t.charAt(0))return;var i=e[t];if("function"==typeof i)try{i=i()}catch(e){i=void 0}if("hash"===t&&i&&(void 0===i?"undefined":y(i))==="object")return void Object.keys(i).forEac
127h(function(e){r[e]=i[e];o=true});if(/^\d+$/.test(t))return void n.push(i);r[t]=i;o=true});if(o)return r;if(1===n.length)return n[0];if(n.length>1)return n;return null}},{key:"_isInclusionArgsView",value:function(e){if(!e)return false;return true===e.__isTemplateWith}},{key:"_isBlaze2",value:function(){if(void 0===e._isBlaze2Memo)e._isBlaze2Memo=!n.isFibersDisabled;return e._isBlaze2Memo}},{key:"_normalizeViewName",value:function(e){if(!e||"string"!=typeof e)return e;if(0===e.indexOf("Template."))return e.slice(9);return e}},{key:"_unwrapBlaze3Value",value:function(t){if(e._isBlaze2())return t;if(t&&(void 0===t?"undefined":y(t))==="object"&&!Array.isArray(t)){var r=Object.keys(t);if(1===r.length&&"value"===r[0])return t.value}return t}},{key:"_hasAnyInclusionKey",value:function(t){if(!t||(void 0===t?"undefined":y(t))!=="object"||Array.isArray(t))return false;var r=e._inclusionArgKeys;return Object.keys(t).some(function(e){return!!r[e]})}},{key:"_looksLikeInclusionArgs",value:function(t){if(!t||(void 0===t?"undefined":y(t))!=="object"||Array.isArray(t))return false;var r=Object.keys(t);if(!r.length)return false;var n=e._inclusionArgKeys;var o=false;for(var i=0;i<r.length;i++){var a=r[i];if(n[a])o=true;else if("_"!==a.charAt(0))return false}return o}},{key:"_getInclusionArgsFromView",value:function(t){if(!t)return null;if(t.__isTemplateWith){if(t.dataVar)try{var r=t.dataVar.get();r=e._unwrapBlaze3Value(r);if(r&&(void 0===r?"undefined":y(r))==="object"&&r.hash&&"object"===y(r.hash))return r.hash;if(void 0!==r)return r}catch(e){}var n=e._normalizeScopeBindings(t._scopeBindings);if(null!=n)return n;if(o&&o.getData)try{var i=o.getData(t);if(void 0!==i)return i}catch(e){}}return null}},{key:"getDataContext",value:function(t){var r=30;var n=0;var o=t;var i=null;var a=false;var u=t;while(u){var s=e._normalizeViewName(u.name);if(e._positionalArgHelpers[s]){a=true;break}u=u.parentView}while(o&&n<r){n++;if("with"!==o.name){i=o;o=o.parentView;continue}if(e._isInclusionArgsView(o)){var l=null;if(o.dataVar)try{l=o.dataVar.get()}catch(e){}l=e._unwrapBlaze3Value(l);var c=i?e._normalizeViewName(i.name):null;var f=!!(c&&e._ironHelperViews[c]);var h=f?e._hasAnyInclusionKey(l):e._looksLikeInclusionArgs(l);var p=false;if((void 0===l?"undefined":y(l))!=="object"||null===l)p=a;if(h||p){i=o;o=o.parentView;continue}}var v=null;if(o.dataVar)try{v=o.dataVar.get()}catch(e){v=null}if(null==v){i=o;o=o.parentView;continue}v=e._unwrapBlaze3Value(v);if(null==v){i=o;o=o.parentView;continue}if((void 0===v?"undefined":y(v))!=="object")return v;if(Array.isArray(v)){i=o;o=o.parentView;continue}if(e._looksLikeInclusionArgs(v)){i=o;o=o.parentView;continue}var d=Object.keys(v);if(0===d.length){i=o;o=o.parentView;continue}var m=d.some(function(e){return"_"!==e.charAt(0)});if(!m){i=o;o=o.parentView;continue}return v}g(!o,"DynamicTemplate.getDataContext gave up after "+r+" parent views; the data context lookup may be incomplete");return null}},{key:"getInclusionArguments",value:function(t){var r=t;var n=15;var i=0;while(r&&i<n){var a=e._getInclusionArgsFromView(r);if(null!=a)return a;if(r!==t&&"string"==typeof r.name&&0===r.name.indexOf("Template."))break;r=r.parentView;i++}g(!(r&&i>=n),"DynamicTemplate.getInclusionArguments gave up after "+n+" parent views; inclusion arguments may have been missed");var u=!!(t&&(t.templateContentBlock||t._templateContentBlock));if(u&&o&&o.getData)try{var s=o.getData(t);if("string"==typeof s)return s;if(s&&(void 0===s?"undefined":y(s))==="object"&&!Array.isArray(s)){if(s.hasOwnProperty("template")||s.hasOwnProperty("region")||s.hasOwnProperty("data")||s.hasOwnProperty("route"))return s}}catch(e){}return null}},{key:"args",value:function(t){return function(r){var n=e.getInclusionArguments(t);if(!n)return null;if(r)return n[r];return n}}},{key:"findFirstLookupHost",value:function(e){var t;_(d(e,o.View),"view must be a Blaze.View");var r=e;while(r){if(r.__dynamicTemplate__){t=r.__dynamicTemplate__._getLookupHost({reactive:false});if(t)return t}r=r.parentView}if(!s.active)return;r=e;while(r){if(r.__dynamicTemplate__){t=r.__dynamicTemplate__._getLookupHost({reactive:true});if(t)return t}r=r.parentView}}},{key:"findLookupHostWithProperty",value:function(e,t){_(d(e,o.View),"view must be a Blaze.View");var r=e;while(r){if(r.__dynamicTemplate__){var n=r.__dynamicTemplate__._getLookupHost();if(n&&k(n,t))return n}r=r.parentView}}},{key:"findLookupHostWithHelper",value:function(e,t){_(d(e,o.View),"view must be a Blaze.View");var r=e;while(r){if(r.__dynamicTemplate__){var n=r.__dynamicTemplate__._getLookupHost({helpersOnly:true});if(n&&k(n,"constructor","_helpers",t))return n}r=r.parentView}}}]);return e}();v(O,"_isBlaze2Memo",void 0);O._inclusionArgKeys={template:true,region:true,hash:true,route:true,content:true,data:true};O._positionalArgHelpers={yield:true,contentFor:true};O._ironHelperViews={yield:true,contentFor:true,layout:true,DynamicTemplateHelper:true};if(void 0!==a)m.registerHelper("DynamicTemplate",new a("DynamicTemplateHelper",function(){var e=this;var t=function(t){var r=O.getInclusionArguments(e);if(r&&(void 0===r?"undefined":y(r))==="object")return r.hasOwnProperty(t)?r[t]:void 0;if(t&&e.lookup)try{var n=e.lookup(t);var o="function"==typeof n?n():n;
127if(void 0!==o)return o}catch(e){}};var r=function(){return t("template")};var n=function(){var e=t("data");return e};return new O({data:n,template:r,content:e.templateContentBlock}).create()}));c.DynamicTemplate=O}},layout:{
127"template.default_layout.js":function(){r.__checkName("__IronDefaultLayout__");r["__IronDefaultLayout__"]=new r("Template.__IronDefaultLayout__",function(){var e=this;return a.include(e.lookupTemplate("yield"))})},
127"layout.js":function(e,t,r){r.export({Layout:function(){return O},DEFAULT_REGION:function(){return j}});var n;r.link("meteor/blaze",{Blaze:function(e){n=e}},0);var o;r.link("meteor/templating",{Template:function(e){o=e}},1);var a;r.link("meteor/tracker",{Tracker:function(e){a=e}},2);var u;r.link("../core/iron_core.js",{Iron:function(e){u=e}},3);var s;r.link("../dynamic-template/dynamic_template.js",{DynamicTemplate:function(e){s=e}},4);function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,r){t=d(t);return m(e,k()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function p(e,t,r){if(t)h(e.prototype,t);if(r)h(e,r);return e}function v(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function d(e){d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return d(e)}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)_(e,t)}function m(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;return l(e)}function _(e,t){_=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return _(e,t)}function g(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var w=n;var b=function(e){while(e)if("Iron.Layout"===e.name)return e.__dynamicTemplate__;else e=e.parentView;return null};var j="main";var O=function(e){"use strict";y(t,e);function t(e){f(this,t);var r;r=c(this,t,[e]);e=e||{};r.name="Iron.Layout";r._regions={};r._regionHooks={};r.defaultTemplate("__IronDefaultLayout__");if(e.content)r.render(e.content);return r}p(t,[{key:"region",value:function(e,t){return this._ensureRegion(e,t)}},{key:"destroyRegions",value:function(){var e=this;Object.keys(this._regions).forEach(function(t){e._regions[t].destroy()});this._regions={}}},{key:"render",value:function(e,t){t=t||{};var r=t.to||t.region||j;var n=this.region(r);this._trackRenderedRegion(r);n.template(e);n.data(t.data);return n}},{key:"has",value:function(e){e=e||t.DEFAULT_REGION;return!!this._regions[e]}},{key:"regionKeys",value:function(){return Object.keys(this._regions)}},{key:"clear",value:function(e){e=e||t.DEFAULT_REGION;if(this.has(e))this.region(e).template(null);return this}},{key:"clearAll",value:function(){var e=this;Object.keys(this._regions).forEach(function(t){e._regions[t].template(null)});return this}},{key:"beginRendering",value:function(e){var t=this;if(this._finishRenderingTransaction)this._finishRenderingTransaction();var r=false;this._finishRenderingTransaction=function(){if(r)return;r=true;var n=t._endRendering({flush:false});e&&e(n)};a.afterFlush(this._finishRenderingTransaction);if(this._renderedRegions)throw new Error("You called beginRendering again before calling endRendering");this._renderedRegions={}}},{key:"_trackRenderedRegion",value:function(e){if(!this._renderedRegions)return;this._renderedRegions[e]=true}},{key:"_endRendering",value:function(e){e=e||{};if(false!==e.flush)a.flush();var t=this._renderedRegions||{};this._renderedRegions=null;return Object.keys(t)}},{key:"onRegionCreated",value:function(e){var t=this._regionHooks["onRegionCreated"]=this._regionHooks["onRegionCreated"]||[];t.push(e);return this}},{key:"onRegionRendered",value:function(e){var t=this._regionHooks["onRegionRendered"]=this._regionHooks["onRegionRendered"]||[];t.push(e);return this}},{key:"onRegionDestroyed",value:function(e){var t=this._regionHooks["onRegionDestroyed"]=this._regionHooks["onRegionDestroyed"]||[];t.push(e);return this}},{key:"_ensureRegion",value:function(e,t){return this._regions[e]=this._regions[e]||this._createDynamicTemplate(e,t)}},{key:"_createDynamicTemplate",value:function(e,t){var r=this;var n=new u.DynamicTemplate(t);var o=u.utils.capitalize;n._region=e;["viewCreated","viewReady","viewDestroyed"].forEach(function(e){var t=o(e);n["on"+t](function(e){var n=e.view;var o={viewCreated:"regionCreated",viewReady:"regionRendered",viewDestroyed:"regionDestroyed"}[t];r._runRegionHooks("on"+o,n,e)})});return n}},{key:"_runRegionHooks",value:function(e,t,r){var n=this._regionHooks[e]||[];for(var o=0;o<n.length;o++){var i=n[o];i.call(t,r._region,r,this)}}}]);return t}(s);v(O,"DEFAULT_REGION",j);if(void 0!==o){w.registerHelper("yield",new o("yield",function(){var e=this;var t=b(e);
127if(!t)throw new Error("No Iron.Layout found so you can't use yield!");var r=s.args(e);var n=r("region");if(!n){var o=r();if("string"==typeof o)n=o}n=n||j;var i=t.region(n);if(i.isCreated)i.destroy();return i.create()}));w.registerHelper("contentFor",new o("contentFor",function(){var e=this;var t=b(e);if(!t)throw new Error("No Iron.Layout found so you can't use contentFor!");var r=s.args(e);var n=e.templateContentBlock;var o=r("template");var i=r("data");var a=r("region");if(!a){var u=r();if("string"==typeof u)a=u}if(!a)throw new Error("Which region is this contentFor block supposed to be for?");if(e._contentForRegion&&e._contentForRegion!==a)t.clear(e._contentForRegion);e._contentForRegion=a;t.region(a).template(o||n);t._trackRenderedRegion(a);if(i)t.region(a).data(i);return null}));w.registerHelper("hasRegion",function(e){var t=b(n.getView());if(!t)throw new Error("No Iron.Layout found so you can't use hasRegion!");if("string"!=typeof e)throw new Error("You need to provide an region argument to hasRegion");return!!t.region(e).template()});w.registerHelper("Layout",new o("layout",function(){var e=this;var t=s.args(e);var r=e.templateContentBlock;if(!r&&e._templateContentBlock)r=e._templateContentBlock;if(!r&&o.contentBlock)r=o.contentBlock;var n=new O({template:function(){return t("template")},data:function(){return t("data")},content:r});return n.create()}))}u.Layout=O}},router:{
127"template.templates.js":function(){r.__checkName("__IronRouterNotFound__");r["__IronRouterNotFound__"]=new r("Template.__IronRouterNotFound__",function(){var e=this;return o.DIV({style:"width: 600px; margin: 0 auto; padding: 20px;"},"\n    ",o.DIV({style:"font-size: 18pt; color: #999;"},"\n      Oops, looks like there's no route on the client or the server for url: \"",t.View("lookup:url",function(){return a.mustache(e.lookup("url"))}),'."\n    '),"\n  ")});r.__checkName("__IronRouterNoRoutes__");r["__IronRouterNoRoutes__"]=new r("Template.__IronRouterNoRoutes__",function(){return o.Raw('<div style="font-family: helvetica; color: #777; max-width: 600px; margin: 20px auto;">\n      <h1 style="text-align: center; margin: 0; font-size: 48pt;">\n        iron:router\n      </h1>\n      <p style="text-align: center; font-size: 1.3em; color: red;">\n        No route definitions found.\n      </p>\n      <div style="margin: 50px 0px;">\n        <p>To create a route:</p>\n        <pre style="background: #f2f2f2; margin: 0; padding: 10px;">\nRouter.route(\'/\', function () {\n  this.render(\'Home\', {\n    data: function () { return Items.findOne({_id: this.params._id}); }\n  });\n});\n        </pre>\n        <p style="text-align:center"><small>To hide this page, set \'noRoutesTemplate\' in <a href="http://iron-meteor.github.io/iron-router/#global-default-options" target="_blank">Router.configure()</a></small></p>\n      </div>\n      <div style="margin: 50px 0px; text-align: center;">\n        Check it out on Github:<br>\n        <a href="https://github.com/meteor-compat/iron-router/" target="_blank">https://github.com/meteor-compat/iron-router/</a>\n        <br>\n        <br>\n        And check out our Guide:<br>\n        <a href="https://iron-meteor.github.io/iron-router" target="_blank">\n          https://iron-meteor.github.io/iron-router\n        </a>\n      </div>\n    </div>')})},
127"current_options.js":function(e,t,r){r.export({CurrentOptions:function(){return o}});var n;r.link("meteor/meteor",{Meteor:function(e){n=e}},0);var o=new n.EnvironmentVariable},
127"global_router.js":function(e,t,r){r.export({Router:function(){return a},RouteController:function(){return i}});var n;r.link("../core/iron_core.js",{Iron:function(e){n=e}},0);var o;r.link("./router.js",{Router:function(e){o=e}},1);var i;r.link("./route_controller.js",{RouteController:function(e){i=e}},2);var a=new o;n.utils.global.Router=a;n.utils.global.RouteController=i},
127"helpers.js":function(e,t,r){var n,o;r.link("meteor/blaze",{Blaze:function(e){n=e},HTML:function(e){o=e}},0);var a;r.link("meteor/ejson",{EJSON:function(e){a=e}},1);var u;r.link("../core/iron_core.js",{Iron:function(e){u=e}},2);var s;r.link("../dynamic-template/dynamic_template.js",{DynamicTemplate:function(e){s=e}},3);var l;r.link("./global_router.js",{Router:function(e){l=e}},4);function c(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}var f=n;var h=u.utils.warn;f.registerHelper("Router",new n.Template("Router",function(){return l.createView()}));f.registerHelper("pathFor",function(e){var t;if(arguments.length>1){t=arguments[0];e=arguments[1]||{}}var r=e&&e.hash;r=r||{};var n="";var o=r.query;var i=r.hash;t=t||r.route;var u=Object.assign({},r.data||this);var s=l.findRouteByName(t);h(s,"pathFor couldn't find a route named "+JSON.stringify(t));if(s){s.handler.compiledUrl.keys.forEach(function(e){var t=e.name;if(Object.prototype.hasOwnProperty.call(r,t)){u[t]=a.clone(r[t]);delete r[t]}});n=s.path(u,{query:o,hash:i})}return n});f.registerHelper("urlFor",function(e){var t;if(arguments.length>1){t=arguments[0];e=arguments[1]||{}}var r=e&&e.hash;r=r||{};var n="";var o=r.query;var i=r.hash;t=t||r.route;var u=Object.assign({},r.data||this);var s=l.findRouteByName(t);h(s,"urlFor couldn't find a route named "+JSON.stringify(t));if(s){s.handler.compiledUrl.keys.forEach(function(e){var t=e.name;if(Object.prototype.hasOwnProperty.call(r,t)){u[t]=a.clone(r[t]);delete r[t]}});n=s.url(u,{query:o,hash:i})}return n});f.registerHelper("linkTo",new n.Template("linkTo",function(){var e=this;var t=s.getInclusionArguments(this);if((void 0===t?"undefined":c(t))!=="object")throw new Error("linkTo options must be key value pairs such as {{#linkTo route='my.route.name'}}. You passed: "+JSON.stringify(t));var r="";var i=t.query;var u=t.hash;var f=t.route;var p=Object.assign({},t.data||s.getParentDataContext(this));var v=l.findRouteByName(f);h(v,"linkTo couldn't find a route named "+JSON.stringify(f));if(v){v.handler.compiledUrl.keys.forEach(function(e){var r=e.name;if(Object.prototype.hasOwnProperty.call(t,r)){p[r]=a.clone(t[r]);delete t[r]}});r=v.path(p,{query:i,hash:u})}var d=["route","query","hash","data"];var y={};Object.keys(t).forEach(function(e){if(!d.includes(e))y[e]=t[e]});y.href=r;return n.With(function(){return s.getParentDataContext(e)},function(){return o.A(y,e.templateContentBlock)})}))},
127"hooks.js":function(e,t,r){var n;r.link("meteor/templating",{Template:function(e){n=e}},0);var o;r.link("./router.js",{Router:function(e){o=e}},1);var i;var a;if(void 0!==n){i=new n("DefaultLoadingTemplate",function(){return"Loading..."});a=new n("DefaultDataNotFoundTemplate",function(){return"Data not found..."})}o.hooks.loading=function(){if(this.ready())return void this.next();var e=this.lookupOption("loadingTemplate");this.render(e||i);this.renderRegions()};o.hooks.dataNotFound=function(){if(!this.ready())return void this.next();var e=this.lookupOption("data");var t=this.lookupOption("notFoundTemplate");if("function"==typeof e){if(!e.call(this)){this.render(t||a);this.renderRegions();return}}this.next()}},
127"http_methods.js":function(e,t,r){r.export({HTTP_METHODS:function(){return n}});var n=["get","post","put","delete","patch","head"]},
127"plugins.js":function(e,t,r){var n;r.link("./router.js",{Router:function(e){n=e}},0);n.plugins.loading=function(e,t){e.onBeforeAction("loading",t)};n.plugins.dataNotFound=function(e,t){e.onBeforeAction("dataNotFound",t)}},
127"route.js":function(e,t,r){r.export({Route:function(){return d}});var n;r.link("meteor/meteor",{Meteor:function(e){n=e}},0);var o;r.link("../core/iron_core.js",{Iron:function(e){o=e}},1);var a;r.link("../middleware/middleware_stack.js",{MiddlewareStack:function(e){a=e}},2);var u;r.link("./route_controller.js",{RouteController:function(e){u=e}},3);var s;r.link("./http_methods.js",{HTTP_METHODS:function(e){s=e}},4);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function f(e,t,r){if(t)c(e.prototype,t);if(r)c(e,r);return e}function h(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function p(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}var v=o.utils.assert;var d=function(){"use strict";function e(t,r,n){l(this,e);h(this,"options",void 0);h(this,"_actionStack",void 0);h(this,"_beforeStack",void 0);h(this,"_afterStack",void 0);h(this,"_methods",void 0);h(this,"_path",void 0);h(this,"handler",void 0);h(this,"router",void 0);var o=function(e,t,r){var n=this;n.request=e;n.response=t;o.dispatch(e.url,n,r)};Object.defineProperty(o,"name",{value:"",configurable:true});if((void 0===r?"undefined":p(r))==="object"){n=r;r=n.action}n=n||{};if("string"==typeof t&&"/"!==t.charAt(0))t=n.path?n.path:"/"+t;Object.getOwnPropertyNames(e.prototype).forEach(function(t){if("constructor"!==t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);if(r)Object.defineProperty(o,t,r)}});n=o.options=n||{};o._actionStack=new a;o._beforeStack=new a;o._beforeStack.append(o.options.onBeforeAction);o._beforeStack.append(o.options.before);o._afterStack=new a;o._afterStack.append(o.options.onAfterAction);o._afterStack.append(o.options.after);o._methods={};if("string"==typeof r)o._actionStack.push(t,Object.assign(n,{template:r}));else if("function"==typeof r||(void 0===r?"undefined":p(r))==="object")o._actionStack.push(t,r,n);o._path=t;return o}f(e,[{key:"getName",value:function(){return this.handler&&this.handler.name}},{key:"findControllerConstructor",value:function(){var e=this;var t=function(t,r){r=r||{};var n=e.router&&e.router._controllers&&e.router._controllers[t];if(!n)n=o.utils.resolve(t);if(n&&u.prototype.isPrototypeOf(n.prototype))return n;if(true===r.supressErrors)return;throw new Error("RouteController '"+t+"' is not defined.")};var r=function(t){return e.router.toControllerName(t)};var n;var i=this.getName();if("function"==typeof this.options.controller)return this.options.controller;if("string"==typeof this.options.controller)return t(this.options.controller);if(this.router&&this.router.options.controller){if("function"==typeof this.router.options.controller)return this.router.options.controller;else if("string"==typeof this.router.options.controller)return t(this.router.options.controller)}else if(i&&(n=t(r(i),{supressErrors:true})))return n;else return u}},{key:"createController",value:function(e){e=e||{};var t=this.findControllerConstructor();e.route=this;var r=new t(e);return r}},{key:"setControllerParams",value:function(e,t){}},{key:"dispatch",value:function(e,t,r){v(t._runRoute,"context doesn't have a _runRoute method");return t._runRoute(this,e,r)}},{key:"path",value:function(e,t){return this.handler.resolve(e,t)}},{key:"url",value:function(e,t){var r=this.path(e,t);var o=t&&t.host||n.absoluteUrl();if("/"===o.charAt(o.length-1))o=o.slice(0,o.length-1);return o+r}},{key:"params",value:function(e){return this.handler.params(e)}}]);return e}();s.forEach(function(e){d.prototype[e]=function(t){this._methods[e]=true;this._actionStack.push(this._path,t,{name:this.getName()+"_"+e.toLowerCase(),method:e,where:this.handler.where,mount:false});return this}});o.Route=d},
127"route_controller.js":function(e,t,r){r.export({RouteController:function(){return k}});var n;r.link("../core/iron_core.js",{Iron:function(e){n=e}},0);var o;r.link("../controller/controller.js",{Controller:function(e){o=e}},1);var a;r.link("./current_options.js",{CurrentOptions:function(e){a=e}},2);function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,r){t=p(t);return d(e,_()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function f(e,t,r){if(t)c(e.prototype,t);if(r)c(e,r);return e}function h(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function p(e){p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return p(e)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)y(e,t)}function d(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return u(e)}function y(e,t){y=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return y(e,t)}function m(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}var g=n.utils.assert;var k=function(e){"use strict";v(t,e);function t(e){l(this,t);var r;r=s(this,t,[e]),h(r,"_onStopCallbacks",void 0),h(r,"route",void 0),h(r,"params",void 0),h(r,"data",void 0),h(r,"router",void 0),h(r,"request",void 0),h(r,"response",void 0),h(r,"url",void 0),h(r,"originalUrl",void 0),h(r,"method",void 0),h(r,"_computation",void 0),h(r,"_paramsDep",void 0),h(r,"location",void 0),h(r,"isStopped",void 0),h(r,"_rendered",void 0),h(r,"next",void 0),h(r,"_pendingAsync",void 0),h(r,"_onAsyncDrain",void 0);e=e||{};r.options=e;r._onStopCallbacks=[];r.route=e.route;r.params=[];var n=r.lookupOption("data");if("function"==typeof n)r.data=n.bind(r);else if(void 0!==n)r.data=function(){return n};r.init(e);return r}f(t,[{key:"_deferInit",get:function(){return true}},{key:"lookupOption",value:function(e){if(this.route&&this.route.options&&Object.prototype.hasOwnProperty.call(this.route.options,e)){var t=this.route.options[e];if(void 0!==t)return t}if(Object.prototype.hasOwnProperty.call(this.options,e)){var r=this.options[e];if(void 0!==r)return r}if(void 0!==this[e])return this[e];var n=this.constructor&&this.constructor.prototype&&this.constructor.prototype[e];if(void 0!==n)return n;var o=a.get();if(o&&Object.prototype.hasOwnProperty.call(o,e)){var i=o[e];if(void 0!==i)return i}if(this.router&&this.router.options&&Object.prototype.hasOwnProperty.call(this.router.options,e)){var u=this.router.options[e];if(void 0!==u)return u}}},{key:"configureFromUrl",value:function(e,t,r){g("string"==typeof e,"url must be a string");t=t||{};this.request=t.request||{};this.response=t.response||{};this.url=t.url||e;this.originalUrl=t.originalUrl||e;this.method=this.request.method;if(this.route)this.setParams(this.route.params(e),r)}},{key:"_collectHooks",value:function(){var e=this;var t=Array.from(arguments);var r=function(t){if(!t)return[];var r=e.router.lookupHook;var n=Array.isArray(t)?t:[t];return n.map(function(e){return r(e)})};var n=function(e,t){var n=[];var o=e.prototype;while(o&&o!==Object.prototype){if(Object.prototype.hasOwnProperty.call(o,t))n.push(o[t]);o=Object.getPrototypeOf(o)}var i=[];for(var a=n.length-1;a>=0;a--)i=i.concat(r(n[a]));return i};var o=function(e){for(var r=0;r<t.length;r++)e(t[r])};var i=[];o(function(t){var r=e.route&&e.route.getName();var n=e.router.getHooks(t,r);i=i.concat(n)});var a=[];o(function(t){var r=n(e.constructor,t);a=a.concat(r)});var u=[];o(function(t){if(Object.prototype.hasOwnProperty.call(e,t)){var n=r(e[t]);u=u.concat(n)}});var s=[];if(this.route)o(function(t){var n=r(e.route.options[t]);s=s.concat(n)});var l=i.concat(s).concat(a).concat(u);return l}},{key:"runHooks",value:function(){var e=this._collectHooks.apply(this,arguments);for(var t=0,r=e.length;t<r;t++){var n=e[t];
127n.call(this)}return e.length}},{key:"getParams",value:function(){return this.params}},{key:"setParams",value:function(e,t){this.params=e;return this}},{key:"dispatch",value:function(e,t){}},{key:"_runRoute",value:function(e,t,r){}},{key:"action",value:function(){}},{key:"lookupTemplate",value:function(){return""}},{key:"lookupRegionTemplates",value:function(){return{}}},{key:"renderRegions",value:function(){}},{key:"redirect",value:function(e,t,r){}},{key:"subscribe",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n]}}]);return t}(o);h(k,"_hasJustReloaded",void 0);k.__super__=o.prototype;n.RouteController=k},
127"route_controller_client.js":function(e,t,r){var n;r.link("meteor/meteor",{Meteor:function(e){n=e}},0);var o;r.link("meteor/ejson",{EJSON:function(e){o=e}},1);var a;r.link("meteor/tracker",{Tracker:function(e){a=e}},2);var u;r.link("../core/iron_core.js",{Iron:function(e){u=e}},3);var s;r.link("../middleware/middleware_stack.js",{MiddlewareStack:function(e){s=e}},4);var l;r.link("./route_controller.js",{RouteController:function(e){l=e}},5);function c(e,t){if(null!=t&&void 0!==i&&t[i.hasInstance])return!!t[i.hasInstance](e);return e instanceof t}var f=globalThis.Package||{};var h=u.utils.debug("iron-router:RouteController");l.prototype.init=function(e){l.__super__.init.apply(this,arguments);this._computation=null;this._paramsDep=new a.Dependency;this.location=u.Location};l.prototype.getParams=function(){this._paramsDep.depend();return this.params};l.prototype.setParams=function(e,t){var r=function(e,r){if(!c(e,Array))throw new Error("you called equals with a non array value in setParams");if(!c(r,Array))return false;if(e.length!==r.length)return false;for(var n=0;n<e.length;n++)if(!o.equals(e[n],r[n],t))return false;var i=Object.keys(e);var a=Object.keys(r);var u;if(i.length!==a.length)return false;for(var s=0;s<i.length;s++){u=i[s];if(!Object.prototype.hasOwnProperty.call(r,u))return false;if(!o.equals(e[u],r[u]))return false}return true};if(r(this.params,e))return;this.params=e;t=t||{};if(false!==t.reactive)this._paramsDep.changed();return this};l.prototype.dispatch=function(e,t,r){var n=this;if(this._computation&&!this._computation.stopped)throw new Error("RouteController computation is already running. Stop it first.");a.nonreactive(function(){a.autorun(function(o){n._computation=o;e.dispatch(t,n,r)})});return this};l.prototype._runRoute=function(e,t,r){var n=this;var o=this._collectHooks("subscriptions");o.forEach(function(e){n.wait(e.call(n))});var i=this._collectHooks("waitOn");i.forEach(function(e){n.wait(e.call(n))});var c=i.length>0;var f=function(){return a.nonreactive(function(){return n._layout.template()})};var h=function(){return a.nonreactive(function(){var e=n._layout._regions.main;return e&&e.template()})};var p=f();var v=h();this.beginRendering(function(e){if(n.isStopped)return;var t=f();var r=h();if(p===t&&v==r)return;var o=n._layout.regionKeys();var i=o.filter(function(t){return!e.includes(t)});i.forEach(function(e){n._layout.clear(e)})});var d=this.lookupOption("data");this.layout(this.lookupOption("layoutTemplate"),{data:void 0===d&&"function"==typeof this.data?this.data:d});var y=new s;var m=new s;var _=new s;m.append(this._collectHooks("onRun","load"),{where:"client"});_.append(this._collectHooks("onRerun"),{where:"client"});y.append(function(e,t,r){if(this._computation.firstRun&&!l._hasJustReloaded)if(m.length>0)m.dispatch(e.url,this,r);else r();else r();l._hasJustReloaded=false},function(e,t,r){if(this._computation.firstRun)r();else if(_.length>0)_.dispatch(e.url,this,r);else r()},{where:"client"});if(c)y.push(u.Router.hooks.loading.bind(this));var g=this._collectHooks("onBeforeAction","before");y.append(g,{where:"client"});if(0===e._actionStack.length)e._actionStack.push(e._path,"action",e.options);y=y.concat(e._actionStack);this._rendered=false;y.dispatch(t,this,r);var k=function(){a.afterFlush(function(){u.utils.warn(n._rendered||n.isStopped,"Route dispatch never rendered. Did you forget to call this.next() in an onBeforeAction?")});n.runHooks("onAfterAction","after")};if(this._pendingAsync)this._onAsyncDrain.push(k);else k()};l.prototype.action=function(){this.render()};l.prototype.lookupTemplate=function(){return this.lookupOption("template")||this.router&&this.router.toTemplateName(this.route.getName())};l.prototype.lookupRegionTemplates=function(){return this.lookupOption("yieldRegions")||this.lookupOption("regionTemplates")||this.lookupOption("yieldTemplates")||{}};l.prototype.render=function(e,t){this._rendered=true;if(0===arguments.length){var r=this.lookupTemplate();var n=this.lookupOption("data");var o=void 0===n&&"function"==typeof this.data?this.data:n;var i=o?{data:o}:{};var a=l.__super__.render.call(this,r,i);this.renderRegions();return a}var u=this.lookupOption("data");if(u&&(!t||!t.data)){t=t||{};t.data=u}return l.__super__.render.call(this,e,t)};l.prototype.renderRegions=function(){var e=this;var t=this.lookupRegionTemplates();h("regionTemplates: "+JSON.stringify(t));Object.keys(t).forEach(function(r){e.render(r,t[r])})};l.prototype.stop=function(){l.__super__.stop.call(this);if(this._computation)this._computation.stop();this.runHooks("onStop","unload");this.isStopped=true};l.prototype.redirect=function(){return this.router.go.apply(this.router,arguments)};l.prototype.subscribe=function(){var e=this;var t=n.subscribe.apply(this,arguments);return Object.assign(t,{wait:function(){e.wait(t)}})};if(f.reload){f.reload.Reload._onMigrate("iron-router",function(){return[true,true]});var p=f.reload.Reload._migrationData("iron-router");l._hasJustReloaded=p}},
127"router.js":function(e,t,r){r.export({Router:function(){return m}});var n;r.link("meteor/meteor",{Meteor:function(e){n=e}},0);var o;r.link("../core/iron_core.js",{Iron:function(e){o=e}},1);var a;r.link("../middleware/middleware_stack.js",{MiddlewareStack:function(e){a=e}},2);var u;r.link("./route.js",{Route:function(e){u=e}},3);var s;r.link("./route_controller.js",{RouteController:function(e){s=e}},4);var l;r.link("./current_options.js",{CurrentOptions:function(e){l=e}},5);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function h(e,t,r){if(t)f(e.prototype,t);if(r)f(e,r);return e}function p(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function v(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}var d=o.utils.warn;var y=o.utils.assert;var m=function(){"use strict";function e(t){c(this,e);p(this,"_stack",void 0);p(this,"_globalHooks",void 0);p(this,"routes",void 0);p(this,"_controllers",void 0);p(this,"options",void 0);p(this,"_layout",void 0);p(this,"_templateNameConverter",void 0);p(this,"_controllerNameConverter",void 0);p(this,"_currentController",void 0);p(this,"_currentRoute",void 0);p(this,"_currentDep",void 0);p(this,"_locationComputation",void 0);p(this,"_isStarted",void 0);p(this,"_scrollToHash",void 0);p(this,"onBeforeAction",void 0);var r=function(e,t,n){r.dispatch(e.url,{request:e,response:t},n)};Object.getOwnPropertyNames(e.prototype).forEach(function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);if(n)Object.defineProperty(r,t,n)}});r._stack=new a;r._globalHooks={};r.routes=[];r.routes._byPath={};r.routes._byName=Object.create(null);r._controllers={};r.configure(t);r.init(t);n.startup(function(){n.defer(function(){if(false!==r.options.autoStart)r.start()})});return r}h(e,[{key:"init",value:function(e){}},{key:"start",value:function(){}},{key:"configure",value:function(e){var t=this;e=e||{};var r=function(e){if(!e)return[];if(Array.isArray(e))return e;return[e]};o.Router.HOOK_TYPES.forEach(function(n){if(e[n]){r(e[n]).forEach(function(e){t.addHook(n,e)});delete e[n]}});this.options=this.options||{};Object.assign(this.options,e);return this}},{key:"map",value:function(e){return e.call(this)}},{key:"route",value:function(e,t,r){var n=function(e){return Object.prototype.toString.call(e)};y("[object String]"===n(e)||"[object RegExp]"===n(e),"Router.route requires a path that is a string or regular expression.");if((void 0===t?"undefined":v(t))==="object"){r=t;t=r.action}var o=new u(e,t,r);r=r||{};r.mount=false;var i=this._stack.push(e,o,r);i.route=o;o.handler=i;o.router=this;var a=String(i.path);y(!this.routes._byPath[a],"A route for the path "+JSON.stringify(i.path)+" already exists by the name of "+JSON.stringify(i.name)+".");this.routes._byPath[a]=o;this.routes.push(o);if("string"==typeof i.name){this.routes._byName[i.name]=o;if(!(i.name in this.routes))this.routes[i.name]=o}return o}},{key:"findRouteByName",value:function(e){return this.routes._byName[e]}},{key:"findFirstRoute",value:function(e){var t;var r;for(var o=0;o<this.routes.length;o++){r=this.routes[o];t=r.handler.test(e,{where:n.isServer?"server":"client"});if(t)return r}return null}},{key:"path",value:function(e,t,r){var n=this.findRouteByName(e);d(n,"You called Router.path for a route named "+JSON.stringify(e)+" but that route doesn't seem to exist. Are you sure you created it?");return n&&n.path(t,r)}},{key:"url",value:function(e,t,r){var n=this.findRouteByName(e);d(n,"You called Router.url for a route named "+JSON.stringify(e)+" but that route doesn't seem to exist. Are you sure you created it?");return n&&n.url(t,r)}},{key:"createController",value:function(e,t){var r=this.findFirstRoute(e);var n;t=t||{};n=r?r.createController({layout:this._layout}):new s({layout:this._layout});n.router=this;n.configureFromUrl(e,t,{reactive:false});return n}},{key:"setTemplateNameConverter",value:function(e){this._templateNameConverter=e;return this}},{key:"setControllerNameConverter",value:function(e){this._controllerNameConverter=e;return this}},{key:"toTemplateName",value:function(e){if(this._templateNameConverter)return this._templateNameConverter(e);return o.utils.classCase(e)}},{key:"toControllerName",value:function(e){if(this._controllerNameConverter)return this._controllerNameConverter(e);return o.utils.classCase(e)+"Controller"}},{key:"registerController",value:function(e,t){var r;if("function"==typeof e){t=e;r=Object.prototype.hasOwnProperty.call(t,"_name")&&t._name||t.name;if(!r)throw new Error("Controller must have a name. Use registerController(name, controller) for anonymous functions.")}else if(1===arguments.length)throw new Error("Controller must be a function.");else r=e;if("string"!=typeof r||!r)throw new Error("Controller name must be a non-empty string.");if("function"!=typeof t)throw new Error("Controller must be a function.");
127d(!(this._controllers[r]&&this._controllers[r]!==t),"A controller named "+JSON.stringify(r)+" is already registered and is being overwritten. If this happens only in production builds, the minifier has probably mangled your class names - register controllers with the object-map form, e.g. Router.registerControllers({MyController}).");this._controllers[r]=t;return this}},{key:"registerControllers",value:function(e){var t=this;if(Array.isArray(e)){e.forEach(function(e){t.registerController(e)});return this}if(e&&(void 0===e?"undefined":v(e))==="object"){Object.keys(e).forEach(function(r){t.registerController(r,e[r])});return this}throw new Error("registerControllers expects an array or object of controllers.")}},{key:"getController",value:function(e){return this._controllers[e]}},{key:"addHook",value:function(e,t,r){r=r||{};var n=function(e){if(!e)return[];if(Array.isArray(e))return e;return[e]};if(r.only)r.only=n(r.only);if(r.except)r.except=n(r.except);var o=this._globalHooks[e]=this._globalHooks[e]||[];var i=this;var a=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var a=this;return l.withValue(r,function(){return i.lookupHook(t).apply(a,n)})};o.push({options:r,hook:a});return this}},{key:"lookupHook",value:function(e){var t=e;if("function"==typeof t)return t;if("string"==typeof t){if("function"==typeof o.Router.hooks[t])return o.Router.hooks[t]}throw new Error("No hook found named: "+e)}},{key:"getHooks",value:function(e,t){var r=[];var n=this._globalHooks[e]||[];n.forEach(function(e){var n=e.options;if(n.except&&n.except.includes(t))return;if(n.only&&!n.only.includes(t))return;r.push(e.hook)});return r}},{key:"plugin",value:function(e,t){var r;if("function"==typeof e)r=e;else if("string"==typeof e)r=o.Router.plugins[e];if(!r)throw new Error("No plugin found named "+JSON.stringify(e));r.call(this,this,t);return this}},{key:"dispatch",value:function(e,t,r){}},{key:"insert",value:function(e){}},{key:"createView",value:function(){return null}},{key:"lookupNotFoundTemplate",value:function(){return""}},{key:"lookupLayoutTemplate",value:function(){return""}},{key:"go",value:function(e,t,r){}},{key:"current",value:function(){}},{key:"stop",value:function(){}},{key:"configureBodyParsers",value:function(){}}]);return e}();m.HOOK_TYPES=["onRun","onRerun","onBeforeAction","onAfterAction","onStop","waitOn","subscriptions","load","before","after","unload"];m.hooks={};m.plugins={};m.bodyParser={};m.HOOK_TYPES.forEach(function(e){m.prototype[e]=function(t,r){return this.addHook(e,t,r)}});o.Router=m},
127"router_client.js":function(e,t,r){var n;r.link("meteor/meteor",{Meteor:function(e){n=e}},0);var o;r.link("meteor/tracker",{Tracker:function(e){o=e}},1);var i;r.link("../core/iron_core.js",{Iron:function(e){i=e}},2);var a;r.link("../layout/layout.js",{Layout:function(e){a=e}},3);var u;r.link("./router.js",{Router:function(e){u=e}},4);var s=i.utils.assert;var l="__IronRouterNotFound__";var c="__IronRouterNoRoutes__";u.prototype.init=function(e){var t=this;this._currentController=null;this._currentRoute=null;this._currentDep=new o.Dependency;this._locationComputation=null;this._layout=new a({template:this.options.layoutTemplate});n.startup(function(){setTimeout(function(){if(false!==t.options.autoRender)t.insert({el:document.body})})})};u.prototype.insert=function(e){this._layout.insert(e);return this};u.prototype.createView=function(){return this._layout.create()};u.prototype.lookupNotFoundTemplate=function(){if(this.options.notFoundTemplate)return this.options.notFoundTemplate;return 0===this.routes.length?c:l};u.prototype.lookupLayoutTemplate=function(){return this.options.layoutTemplate};u.prototype.dispatch=function(e,t,r){s("string"==typeof e,"expected url string in router dispatch");var n=this._currentController;var i=this.findFirstRoute(e);var a=this._currentRoute;this._currentRoute=i;if(this._currentController)this._currentController.stop();var u;if(n&&i&&a===i){n.configureFromUrl(e,t);u=n}else u=this.createController(e,t);this._currentController=u;u.dispatch(this._stack,e,function(e){if(e)throw e;if(!u.isHandled()){var t=o.nonreactive(function(){return u.location.get().options.historyState});if(t&&true===t.initial){this.layout(this.lookupOption("layoutTemplate"),{data:{url:this.url}});var n;n=0===this.router.routes.length?this.lookupOption("noRoutesTemplate")||c:this.lookupOption("notFoundTemplate")||l;this.render(n,{data:{url:this.url}});this.renderRegions();u.isHandled=function(){return true}}return r&&r.call(u)}});if(this._currentController==u)this._currentDep.changed();return u};u.prototype.current=function(){this._currentDep.depend();return this._currentController};u.prototype._scrollToHash=function(e){try{if(!e||"#"!==e.charAt(0))return;var t=decodeURIComponent(e.slice(1));var r=t&&document.getElementById(t);if(!r)return;var n=r.getBoundingClientRect().top+window.scrollY;window.scrollTo(window.scrollX,n)}catch(e){}};u.prototype.start=function(){var e=this;if(this._isStarted)return;this._isStarted=true;var t;this._locationComputation=o.autorun(function(r){var n=i.Location.get();var o=e._currentController;if(!o||t&&t.path!==n.path)e.dispatch(n.href,null,function(e){if(!this.isHandled()){n.cancelUrlChange();window.location=n.path}});else{e._scrollToHash(n.hash);o.configureFromUrl(n.href)}t=n})};u.prototype.stop=function(){if(!this._isStarted)return;if(this._locationComputation)this._locationComputation.stop();if(this._currentController)this._currentController.stop();this._isStarted=false};u.prototype.go=function(e,t,r){var n=/^\/|http/;var o;r=r||{};if(n.test(e))o=e;else{var a=this.findRouteByName(e);s(a,"No route found named "+JSON.stringify(e));o=a.path(t,Object.assign(r,{throwOnMissingParams:true}))}i.Location.go(o,r)}}},
127"client.js":function(e,t,r){r.link("./core/iron_core.js",{Iron:"Iron"},0);r.link("./url/url.js",{Url:"Url"},1);r.link("./middleware/handler.js",{Handler:"Handler"},2);r.link("./middleware/middleware_stack.js",{MiddlewareStack:"MiddlewareStack"},3);r.link("./dynamic-template/dynamic_template.js",{DynamicTemplate:"DynamicTemplate"},4);r.link("./layout/layout.js",{Layout:"Layout",DEFAULT_REGION:"DEFAULT_REGION"},5);r.link("./controller/controller.js",{Controller:"Controller"},6);r.link("./router/route_controller.js",{RouteController:"RouteController"},7);r.link("./router/route.js",{Route:"Route"},8);r.link("./location/location.js",{Location:"Location"},9);r.link("./location/state.js",{State:"State"},10);r.link("./location/utils.js",{urlToHashStyle:"urlToHashStyle",urlFromHashStyle:"urlFromHashStyle",fixHashPath:"fixHashPath"},11);r.link("./controller/wait_list.js",{WaitList:"WaitList"},12);r.link("./dynamic-template/blaze_overrides.js");r.link("./controller/controller_client.js");r.link("./router/route_controller_client.js");r.link("./router/router_client.js");r.link("./router/hooks.js");r.link("./router/helpers.js");r.link("./router/plugins.js");r.link("./router/global_router.js",{Router:"Router",RouteController:"RC"},13)},controller:{
127"controller.js":function(e,t,r){r.export({Controller:function(){return v}});var n;r.link("meteor/blaze",{Blaze:function(e){n=e}},0);var o;r.link("meteor/templating",{Template:function(e){o=e}},1);var i;r.link("../core/iron_core.js",{Iron:function(e){i=e}},2);var a;r.link("../layout/layout.js",{Layout:function(e){a=e}},3);var u;r.link("../dynamic-template/dynamic_template.js",{DynamicTemplate:function(e){u=e}},4);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function c(e,t,r){if(t)l(e.prototype,t);if(r)l(e,r);return e}function f(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}var h=function(e,t){return function(){return"function"==typeof e?e.apply(t,arguments):e}};var p=function(e,t){var r={};var n;n=Object.prototype.hasOwnProperty.call(e,"__super__")&&e.__super__?e.__super__.constructor:Object.getPrototypeOf(e);if("function"==typeof n&&n!==Function.prototype)Object.assign(r,p(n,t));return Object.prototype.hasOwnProperty.call(e,t)?Object.assign(r,e[t]):r};var v=function(){"use strict";function e(t){s(this,e);f(this,"options",void 0);f(this,"_layout",void 0);f(this,"_isController",void 0);f(this,"_waitlist",void 0);f(this,"state",void 0);this.options=t||{};this._layout=this.options.layout||new a(this.options);this._isController=true;this._layout._setLookupHost(this);var r=e._collectEventMaps.call(this.constructor);this._layout.events(r,this);if(!this._deferInit)this.init(t)}c(e,[{key:"_deferInit",get:function(){return false}},{key:"layout",value:function(e,t){var r=this;this._layout.template(e);if(t&&Object.prototype.hasOwnProperty.call(t,"data"))this._layout.data(h(t.data,this));return{data:function(e){return r._layout.data(h(e,r))}}}},{key:"render",value:function(e,t){var r=this;if(t&&void 0!==t.data)t.data=h(t.data,this);var n=this._layout.render(e,t);return{data:function(e){return n.data(h(e,r))}}}},{key:"beginRendering",value:function(e){return this._layout.beginRendering(e)}},{key:"init",value:function(e){}},{key:"wait",value:function(e){return this}},{key:"ready",value:function(){return true}},{key:"stop",value:function(){}},{key:"insert",value:function(e){}}],[{key:"extend",value:function(e){return i.utils.extend(this,e)}},{key:"events",value:function(e){this._eventMap=e;return this}},{key:"_collectEventMaps",value:function(){return p(this,"_eventMap")}},{key:"helpers",value:function(e){if(!Object.prototype.hasOwnProperty.call(this,"_helpers"))this._helpers=Object.assign({},this._helpers);Object.assign(this._helpers,e);return this}}]);return e}();v._helpers={};if(void 0!==o){i.controller=function(){return u.findLookupHostWithProperty(n.getView(),"_isController")};o.registerHelper("get",function(e){var t=i.controller();if(t&&t.state)return t.state.get(e)})}i.Controller=v},
127"controller_client.js":function(e,t,r){var n;r.link("meteor/reactive-dict",{ReactiveDict:function(e){n=e}},0);var o;r.link("./controller.js",{Controller:function(e){o=e}},1);var i;r.link("./wait_list.js",{WaitList:function(e){i=e}},2);o.prototype.init=function(e){this._waitlist=new i;this.state=new n};o.prototype.insert=function(e){return this._layout.insert.apply(this._layout,arguments)};o.prototype.wait=function(e){var t=this;if(!e)return;if(Array.isArray(e))e.forEach(function(e){t.wait(e)});else if(e.ready)this._waitlist.wait(function(){return e.ready()});else this._waitlist.wait(e);return this};o.prototype.ready=function(){return this._waitlist.ready()};o.prototype.stop=function(){this._waitlist.stop()}},
127"wait_list.js":function(e,t,r){r.export({WaitList:function(){return f}});var n;r.link("meteor/tracker",{Tracker:function(e){n=e}},0);var o;r.link("../core/iron_core.js",{Iron:function(e){o=e}},1);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function u(e,t,r){if(t)a(e.prototype,t);if(r)a(e,r);return e}var s=o.utils.assert;var l=function(){var e={};var t=n.currentComputation;while(t){e[String(t._id)]=true;t=t._parent}return e};var c=function(e){var t=l();var r=Object.keys(e._dependentsById);r.forEach(function(e){s(!t[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.")})};var f=function(){"use strict";function e(){i(this,e);this._readyDep=new n.Dependency;this._comps=[];this._notReadyCount=0}u(e,[{key:"wait",value:function(e){var t=this;var r=n.currentComputation;c(this._readyDep);n.nonreactive(function(){var o=null;var i=n.autorun(function(r){var n=!!e();var i=t._notReadyCount;if(r.firstRun&&!n)t._notReadyCount++;else if(null!==o&&n!==o&&true===n)t._notReadyCount--;else if(null!==o&&n!==o&&false===n)t._notReadyCount++;o=n;if(0===i&&t._notReadyCount>0)t._readyDep.changed();else if(i>0&&0===t._notReadyCount)t._readyDep.changed()});t._comps.push(i);if(r)r.onInvalidate(function(){n.afterFlush(function(){i.stop();t._comps.splice(t._comps.indexOf(i),1);if(false===o){t._notReadyCount--;if(0===t._notReadyCount)t._readyDep.changed()}})})})}},{key:"ready",value:function(){this._readyDep.depend();return 0===this._notReadyCount}},{key:"stop",value:function(){this._comps.forEach(function(e){e.stop()});this._comps=[]}}]);return e}();o.WaitList=f}},core:{
127"iron_core.js":function(t,r,n){n.export({Iron:function(){return w}});var o;n.link("meteor/meteor",{Meteor:function(e){o=e}},0);function a(e,t){if(null==t||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e){if(Array.isArray(e))return a(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t,r){t=f(t);return d(e,k()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return f(e)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)y(e,t)}function p(e){if(void 0!==i&&null!=e[i.iterator]||null!=e["@@iterator"])return Array.from(e)}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;return s(e)}function y(e,t){y=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return y(e,t)}function m(e){return u(e)||p(e)||g(e)||v()}function _(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}function g(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor)r=e.constructor.name;if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var w={};w.utils={};var b=function(e){if(Array.isArray(e))return e.slice();if(e&&(void 0===e?"undefined":_(e))==="object"){var t=Object.getPrototypeOf(e);if(t===Object.prototype||null===t)return Object.assign(Object.create(t),e)}return e};w.utils.assert=function(e,t){if(!e)throw new Error(t)};w.utils.warn=function(e,t){if(!e)console&&console.warn&&console.warn(t)};w.utils.defaultValue=function(e,t,r){if(void 0!==e[t])return e[t];e[t]=r;return r};w.utils.inherits=function(e,t,r){w.utils.assert(void 0!==e,"Child is undefined in inherits function");w.utils.assert(void 0!==t,"Parent is undefined in inherits function");for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=b(t[n]);var o=["extend","events","_collectEventMaps","helpers"];o.forEach(function(r){if("function"==typeof t[r]&&!e[r])e[r]=t[r]});var i=function(){this.constructor=e};i.prototype=t.prototype;e.prototype=new i;e.__super__=t.prototype;if((void 0===r?"undefined":_(r))==="object"&&null!==r)Object.assign(e.prototype,r);return e};w.utils.extend=function(e,t){t=t||{};var r=Object.prototype.hasOwnProperty.call(t,"constructor")&&"function"==typeof t.constructor;var n=e;var o=function(e){"use strict";h(n,e);function n(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];c(this,n);var a;a=l(this,n,m(o));if(r)t.constructor.apply(a,o);return a}return n}(n);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&"__super__"!==i&&"_name"!==i)o[i]=b(e[i]);o.__super__=e.prototype;Object.keys(t).forEach(function(e){if("constructor"!==e)o.prototype[e]=t[e]});if(Object.prototype.hasOwnProperty.call(t,"name")&&"string"==typeof t.name&&t.name){try{Object.defineProperty(o,"name",{value:t.name})}catch(e){}o._name=t.name}return o};w.utils.global=function(){return o.isClient?window:e}();w.utils.namespace=function(e,t){var r=w.utils.global;w.utils.assert("string"==typeof e,"namespace must be a string");var n=e.split(".");var o=n.pop();var i=r;for(var a=0;a<n.length;a++){var u=n[a];i=i[u]=i[u]||{}}if(2!==arguments.length)return i[o];i[o]=t;return t};w.utils.resolve=function(e){var t=w.utils.global;var r;if("string"==typeof e){var n=e.split(".");r=t;for(var o=0;o<n.length;o++){r=r[n[o]];if(!r)return}}else r=e;return r};w.utils.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1,e.length)};w.utils.classCase=function(e){var t=/_|-|\.|\//;if(!e)return"";return e.split(t).map(function(e){return w.utils.capitalize(e)}).join("")};w.utils.camelCase=function(e){var t=w.utils.classCase(e);return t.charAt(0).toLowerCase()+t.slice(1,t.length)};w.utils.notifyDeprecated=function(e){var t;var r;var n;var o;var i="[:where] ':name' is deprecated. Please use ':instead' instead.";if((void 0===e?"undefined":_(e))==="object"&&null!==e){t=e.name;r=e.instead;n=e.message||i;o=e.where||"IronRouter"}else{n=e;t="";r="";o=""}if("undefined"!=typeof console&&console.warn)console.warn("<deprecated> "+n.replace(":name",t).replace(":instead",r).replace(":where",o)+" "+(new Error).stack)};w.utils.withDeprecatedNotice=function(e,t,r){return function(){w.utils.notifyDeprecated(e);return t&&t.apply(r||this,arguments)}};Function.prototype.deprecate=function(e){return w.utils.withDeprecatedNotice(e,this)};w.utils.debug=function(e){w.utils.assert("string"==typeof e,"debug requires a package name");return function(){if(console&&console.log&&true===w.debug){var t=Array.from(arguments).join(" ");console.log("%c<"+e+"> %c"+t,"color: #999;","color: #000;")}}};w.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};w.utils.global.Iron=w}},location:{
127"location.js":function(e,t,r){r.export({Location:function(){return S}});var n;r.link("meteor/tracker",{Tracker:function(e){n=e}},0);var o;r.link("../core/iron_core.js",{Iron:function(e){o=e}},1);var a;r.link("../url/url.js",{Url:function(e){a=e}},2);var u;r.link("./state.js",{State:function(e){u=e}},3);var s,l,c;r.link("./utils.js",{urlToHashStyle:function(e){s=e},urlFromHashStyle:function(e){l=e},fixHashPath:function(e){c=e}},4);function f(e,t){if(null!=t&&void 0!==i&&t[i.hasInstance])return!!t[i.hasInstance](e);return e instanceof t}var h=globalThis.Package||{};var p=null;var v=new n.Dependency;var d={go:[],popState:[]};var y=function(){return/MSIE 9/.test(navigator.appVersion)};var m=function(){return/MSIE 8/.test(navigator.appVersion)};var _=function(){return!!h.appcache};var g=function(){return"undefined"==typeof history||"function"!=typeof history.pushState};var k=function(){return S.options.useHashPaths||m()||y()||_()||g()};var w=function(){return!!S.options.useHashPaths};var b=function(e,t){d[e].forEach(function(e){e.call(t)})};var j=function(e){if(!f(e,u))throw new Error("Expected a State instance");if(!e.equals(p)){p=e;v.changed();return true}return false};var O=function(){var e=location.href;var t;t=w()?new u(l(e)):new u(e,{historyState:history.state});b("popState",t);j(t)};var R=function(e){var t=E;t&&t(e)};var C=function(e){var t=f(e.target,Element)?e.target:e.target&&e.target.parentElement;var r=t&&t.closest(S.options.linkSelector);if(!r)return;var n=Object.getOwnPropertyDescriptor(e,"currentTarget");var o=false;try{Object.defineProperty(e,"currentTarget",{configurable:true,value:r});o=true;R(e)}finally{if(o)if(n)Object.defineProperty(e,"currentTarget",n);else delete e.currentTarget}};var T=function(e,t){t=t||{};var r=new u(e,t);b("go",r);if(j(r))n.afterFlush(function(){if(!r.isCancelled())if(w())location.hash=c(e);else if(true===t.replaceState)history.replaceState(t.historyState,null,e);else history.pushState(t.historyState,null,e)})};var E=function(e){try{var t=e.currentTarget;var r,n;if(f(t.href,SVGAnimatedString)){r=t.href.animVal;n=r}else{r=t.href;n=t.pathname+t.search+t.hash}n=n.replace(/(^\/?)/,"/");if(e.defaultPrevented)return void e.preventDefault();if(e.metaKey||e.ctrlKey||e.shiftKey)return;if(t.target)return;if(!a.isSameOrigin(r,location.href))return;e.preventDefault();T(n)}catch(t){e.preventDefault();throw t}};var S={};S.options={linkSelector:"a[href]",useHashPaths:false};var P=function(e){try{document.documentElement.matches(e)}catch(t){throw new Error("Invalid linkSelector "+JSON.stringify(e)+": it must be a valid CSS selector (jQuery-only extensions like ':visible' are not supported).")}};S.configure=function(e){if(e&&"string"==typeof e.linkSelector)P(e.linkSelector);Object.assign(this.options,e||{})};S.get=function(){v.depend();return p};S.start=function(){if(this._isStarted)return;P(S.options.linkSelector);var e=a.parse(location.href);if(k()){if(e.pathname.length>1){var t=s(location.href);window.location=t}S.configure({useHashPaths:true})}var r=location.href;if(w()){var n=new u(l(r));j(n)}else{if("!"===e.hash.replace("#","")[0])r=l(r);var o={initial:true};history.replaceState(o,null,r);var i=new u(r,{historyState:o});j(i)}window.addEventListener("popstate",O);window.addEventListener("hashchange",O);document.addEventListener("click",C);this._isStarted=true};S.stop=function(){if(!this._isStarted)return;window.removeEventListener("popstate",O);window.removeEventListener("hashchange",O);document.removeEventListener("click",C);this._isStarted=false};S.onClick=function(e){E=e};S.go=function(e,t){return T(e,t)};S.onGo=function(e){d.go.push(e)};S.onPopState=function(e){d.popState.push(e)};S.start();o.Location=S},
127"state.js":function(e,t,r){r.export({State:function(){return c}});var n;r.link("../url/url.js",{Url:function(e){n=e}},0);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function u(e,t,r){if(t)a(e.prototype,t);if(r)a(e,r);return e}function s(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function l(e,t){if(null!=t&&void 0!==i&&t[i.hasInstance])return!!t[i.hasInstance](e);return e instanceof t}var c=function(){"use strict";function e(t,r){o(this,e);s(this,"rootUrl",void 0);s(this,"originalUrl",void 0);s(this,"href",void 0);s(this,"protocol",void 0);s(this,"auth",void 0);s(this,"host",void 0);s(this,"hostname",void 0);s(this,"port",void 0);s(this,"origin",void 0);s(this,"path",void 0);s(this,"pathname",void 0);s(this,"search",void 0);s(this,"query",void 0);s(this,"queryObject",void 0);s(this,"hash",void 0);s(this,"slashes",void 0);s(this,"options",void 0);s(this,"_isCancelled",void 0);Object.assign(this,n.parse(t),{options:r||{}})}u(e,[{key:"equals",value:function(t){if(!t)return false;if(!l(t,e))return false;if(t.pathname==this.pathname&&t.search==this.search&&t.hash==this.hash&&t.options.historyState===this.options.historyState)return true;return false}},{key:"isCancelled",value:function(){return!!this._isCancelled}},{key:"cancelUrlChange",value:function(){this._isCancelled=true}}]);return e}()},
127"utils.js":function(e,t,r){r.export({urlToHashStyle:function(){return i},urlFromHashStyle:function(){return a},fixHashPath:function(){return u}});var n;r.link("../url/url.js",{Url:function(e){n=e}},0);var o="__hash__";var i=function(e){var t=n.parse(e);var r=t.hash&&t.hash.replace("#","");var i=t.search;var a=t.pathname;var u=t.rootUrl;if(r&&"!"!==r.charAt(0)){var s=o+"="+r;i=i?i+"&":"?";i+=s;r=""}if(!r&&a)r="#!"+a.substring(1);else if(r)r="#"+r;return[u,r,i].join("")};var a=function(e){var t=n.parse(e);var r=t.hash&&t.hash.replace("#!","/");var i=t.rootUrl;var a;if(Object.prototype.hasOwnProperty.call(t.queryObject,o)){a="#"+t.queryObject[o];delete t.queryObject[o]}else a="";return[i,r,n.toQueryString(t.queryObject),a].join("")};var u=function(e){var t=n.parse(e);var r=t.queryObject;if(t.hash)r[o]=t.hash.replace("#","");return["!",t.pathname.substring(1),n.toQueryString(r)].join("")}}},middleware:{
127"handler.js":function(e,t,r){r.export({Handler:function(){return f}});var n;r.link("../core/iron_core.js",{Iron:function(e){n=e}},0);var o;r.link("../url/url.js",{Url:function(e){o=e}},1);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function s(e,t,r){if(t)u(e.prototype,t);if(r)u(e,r);return e}function l(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function c(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}var f=function(){"use strict";function e(t,r,n){a(this,e);l(this,"options",void 0);l(this,"mount",void 0);l(this,"method",void 0);l(this,"where",void 0);l(this,"name",void 0);l(this,"path",void 0);l(this,"compiledUrl",void 0);l(this,"handle",void 0);l(this,"middleware",void 0);l(this,"route",void 0);if("function"==typeof t){n=n||r||{};r=t;t="/";this.middleware=true;if(void 0===n.mount)n.mount=true}if((void 0===r?"undefined":c(r))==="object"){n=r;r=n.action||"action"}n=n||{};this.options=n;this.mount=n.mount;this.method=n.method&&n.method.toLowerCase()||false;this.where=n.where||"client";if(this.mount)n.end=false;if(n.name)this.name=n.name;else if("string"==typeof t&&"/"!==t.charAt(0))this.name=t;else if("function"==typeof r&&r.name)this.name=r.name;else if("string"==typeof t&&"/"!==t)this.name=t.split("/").slice(1).join(".");t=n.path||t;if("string"==typeof t&&"/"!==t.charAt(0))t="/"+t;this.path=t;this.compiledUrl=new o(t,n);if("string"==typeof r)this.handle=function(){var e=this[r];if("function"!=typeof e)throw new Error("No method named "+JSON.stringify(r)+" found on handler.");return e.apply(this,arguments)};else if("function"==typeof r)this.handle=r}s(e,[{key:"test",value:function(e,t){t=t||{};var r=this.compiledUrl.test(e);var n=true;var o=true;if(this.method&&t.method)n=this.method==t.method.toLowerCase();if(t.where)o=this.where==t.where;return r&&n&&o}},{key:"params",value:function(e){return this.compiledUrl.params(e)}},{key:"resolve",value:function(e,t){return this.compiledUrl.resolve(e,t)}},{key:"clone",value:function(){var t=new e(this.path,this.handle,this.options);t.name=this.name;return t}}]);return e}();n.Handler=f},
127"middleware_stack.js":function(e,t,r){r.export({MiddlewareStack:function(){return d}});var n;r.link("meteor/meteor",{Meteor:function(e){n=e}},0);var o;r.link("meteor/ejson",{EJSON:function(e){o=e}},1);var a;r.link("../core/iron_core.js",{Iron:function(e){a=e}},2);var u;r.link("../url/url.js",{Url:function(e){u=e}},3);var s;r.link("./handler.js",{Handler:function(e){s=e}},4);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function f(e,t,r){if(t)c(e.prototype,t);if(r)c(e,r);return e}function h(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}var p=a.utils.assert;var v=a.utils.defaultValue;var d=function(){"use strict";function e(){l(this,e);this._stack=[];this._byName=Object.create(null);this.length=0;this._onServerDispatch=null}f(e,[{key:"onServerDispatch",value:function(e){this._onServerDispatch=e;return this}},{key:"_create",value:function(e,t,r){var n=new s(e,t,r);var o=n.name;var i=!!(n.options&&Object.prototype.hasOwnProperty.call(n.options,"name"));if(o)if(o in this._byName){if(!(n.middleware&&!i))throw new Error("Handler with name '"+o+"' already exists.")}else this._byName[o]=n;return n}},{key:"findByName",value:function(e){return this._byName[e]}},{key:"push",value:function(e,t,r){var n=this._create(e,t,r);this._stack.push(n);this.length++;return n}},{key:"append",value:function(){var e=this;var t=Array.from(arguments);var r={};if("object"===h(t[t.length-1]))r=t.pop();t.forEach(function(t){if(void 0===t)return;if("function"==typeof t)e.push(t,r);else if(Array.isArray(t))e.append.apply(e,t.concat([r]));else throw new Error("Can only append functions or arrays to the MiddlewareStack")});return this}},{key:"insertAt",value:function(e,t,r,n){var o=this._create(t,r,n);this._stack.splice(e,0,o);this.length=this._stack.length;return this}},{key:"insertBefore",value:function(e,t,r,n){var o=this._byName[e];if(!o)throw new Error("Couldn't find a handler named '"+e+"' on the path stack");var i=this._stack.indexOf(o);this.insertAt(i,t,r,n);return this}},{key:"insertAfter",value:function(e,t,r,n){var o=this._byName[e];if(!o)throw new Error("Couldn't find a handler named '"+e+"' on the path stack");var i=this._stack.indexOf(o);this.insertAt(i+1,t,r,n);return this}},{key:"concat",value:function(){var t=new e;var r=Array.prototype.concat;var n=o.clone(this._stack);var i=Array.from(arguments).map(function(e){return o.clone(e._stack)});t._stack=r.apply(n,i);t.length=t._stack.length;return t}},{key:"dispatch",value:function(e,t,r){var o=this;p("string"==typeof e,"Requires url");p((void 0===t?"undefined":h(t))==="object","Requires context object");var i=e||"/";e=u.normalize(i);var a=t.next;v(t,"request",{});v(t,"response",{});v(t,"originalUrl",e);v(t.request,"originalUrl",e);v(t,"_method",t.method);v(t,"_handlersForEnv",{client:false,server:false});v(t,"_handled",false);v(t,"isHandled",function(){return t._handled});v(t,"willBeHandledOnClient",function(){return t._handlersForEnv.client});v(t,"willBeHandledOnServer",function(){return t._handlersForEnv.server});var s=function(){var e=r||a;if(e)try{e.apply(this,arguments)}catch(e){if(null!==e&&(void 0===e?"undefined":h(e))==="object")e._punt=true;throw e}};v(t,"_pendingAsync",0);v(t,"_onAsyncDrain",[]);var l=function(){t._pendingAsync--;t._handled=true;if(0===t._pendingAsync){t.next=null;var e=t._onAsyncDrain.splice(0);e.forEach(function(e){e()})}};var c=0;var f=n.bindEnvironment;var d=f(function(r){var a=o._stack[c++];t.url=t.request.url=t.originalUrl;if(!a)return s.call(t,r);
127if(!a.test(e,{method:t._method}))return d(r);var f=n.isClient?"client":"server";if(!a.middleware)t._handlersForEnv[a.where]=true;if(a.where!==f){if(n.isClient&&"server"===a.where&&o._onServerDispatch)o._onServerDispatch.call(t,a,e);return d(r)}var h=a.params(i);v(t,"params",{});t.request.params=t.params;Object.assign(t.params,h);var p=false;var y=function(e){p=true;return d(e)};t.next=y;if(a.mount){var m=u.normalize(a.compiledUrl.pathname);var _=e.substr(m.length,e.length);_=u.normalize(_);t.url=t.request.url=_}var g=false;try{var k=a.handle.length;var w=t.request;var b=t.response;var j;if(r&&4===k)j=a.handle.call(t,r,w,b,y);else{if(!!r||!(k<4))return d(r);j=a.handle.call(t,w,b,y)}g=!!(j&&"function"==typeof j.then);if(g){t._pendingAsync++;try{j.then(function(){l()},function(e){try{if(p)console.error("Iron Router: async handler rejected after calling next():",e&&e.stack||e);else y(e)}catch(e){console.error(e&&e.stack||e)}finally{l()}})}catch(e){t._pendingAsync--;g=false;throw e}}return}catch(e){if(e&&e._punt)throw e;d(e)}finally{if(!g){t._handled=true;if(!t._pendingAsync)t.next=null}}},function(e){throw e});d();if(!t._pendingAsync)t.next=null;return t}}]);return e}();a.MiddlewareStack=d}},url:{
127"compiler.js":function(e,t,r){r.export({compilePath:function(){return c}});function n(e,t){if(null!=t&&void 0!==i&&t[i.hasInstance])return!!t[i.hasInstance](e);return e instanceof t}var o=function(e){return Object.prototype.toString.call(e)};var a=new RegExp("(\\\\.)|([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?|([.+*?=^!:${}()[\\]|\\/])","g");function u(e){return e.replace(/([=!:$/()])/g,"\\$1")}var s=function(e,t){e.keys=t;return e};function l(e,t,r){if(t&&"[object Array]"!==o(t)){r=t;t=null}t=t||[];r=r||{};var i=r.strict;var c=false!==r.end;var f=r.sensitive?"":"i";var h=0;if(n(e,RegExp)){var p=e.source.match(/\((?!\?)/g)||[];t.push.apply(t,p.map(function(e,t){return{name:t,delimiter:null,optional:false,repeat:false}}));return s(e,t)}if("[object Array]"===o(e)){var v=e;var d=v.map(function(e){return l(e,t,r).source});return s(new RegExp("(?:"+d.join("|")+")",f),t)}var y=e;y=y.replace(a,function(e,r,n,o,i,a,s,l){if(r)return r;if(l)return"\\"+l;var c="+"===s||"*"===s;var f="?"===s||"*"===s;t.push({name:o||h++,delimiter:n||"/",optional:f,repeat:c});n=n?"\\"+n:"";i=u(i||a||"[^"+(n||"\\/")+"]+?");if(c)i=i+"(?:"+n+i+")*";if(f)return"(?:"+n+"("+i+"))?";return n+"("+i+")"});var m="/"===y[y.length-1];if(!i)y=(m?y.slice(0,-2):y)+"(?:\\/(?=$))?";if(!c)y+=i&&m?"":"(?=\\/|$)";return s(new RegExp("^"+y+(c?"$":""),f),t)}var c=l},
127"url.js":function(e,t,r){r.export({Url:function(){return d}});var n;r.link("../core/iron_core.js",{Iron:function(e){n=e}},0);var o;r.link("./compiler.js",{compilePath:function(e){o=e}},1);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function s(e,t,r){if(t)u(e.prototype,t);if(r)u(e,r);return e}function l(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function c(e,t){if(null!=t&&void 0!==i&&t[i.hasInstance])return!!t[i.hasInstance](e);return e instanceof t}var f=n.utils.warn;function h(e){try{return decodeURIComponent(e)}catch(t){if(t.constructor==URIError)f(false,"Tried to decode an invalid URI component: "+JSON.stringify(e)+" "+t.stack);return}}function p(e){return h(e.replace(/\+/g," "))}function v(e){try{return decodeURI(e)}catch(t){if(t.constructor==URIError)f(false,"Tried to decode an invalid URI: "+JSON.stringify(e)+" "+t.stack);return}}var d=function(){"use strict";function e(t,r){a(this,e);l(this,"options",void 0);l(this,"keys",void 0);l(this,"regexp",void 0);l(this,"_originalPath",void 0);l(this,"rootUrl",void 0);l(this,"originalUrl",void 0);l(this,"href",void 0);l(this,"protocol",void 0);l(this,"auth",void 0);l(this,"host",void 0);l(this,"hostname",void 0);l(this,"port",void 0);l(this,"origin",void 0);l(this,"path",void 0);l(this,"pathname",void 0);l(this,"search",void 0);l(this,"query",void 0);l(this,"queryObject",void 0);l(this,"hash",void 0);l(this,"slashes",void 0);l(this,"name",void 0);r=r||{};this.options=r;this.keys=[];this.regexp=o(t,this.keys,r);this._originalPath=t;Object.assign(this,e.parse(t))}s(e,[{key:"test",value:function(t){return this.regexp.test(e.normalize(t))}},{key:"exec",value:function(t){return this.regexp.exec(e.normalize(t))}},{key:"params",value:function(t){if(!t)return[];var r=[];var n=this.exec(t);var o;var i=this.keys;if(!n)throw new Error('The route named "'+this.name+'" does not match the path "'+t+'"');for(var a=1,u=n.length;a<u;++a){var s=i[a-1];var l="string"==typeof n[a]?h(n[a]):n[a];if(s)r[s.name]=void 0!==r[s.name]?r[s.name]:l;else r.push(l)}if(void 0!==v(t)){o=t.split("?")[1];if(o)o=o.split("#")[0];r.hash=t.split("#")[1]||null;r.query=e.fromQueryString(o)}return r}},{key:"resolve",value:function(t,r){var n;var o;var i=0;var a=this._originalPath;var u;var s;var l=[];var f=t;r=r||{};t=t||[];s=r.query;u=r.hash&&r.hash.toString();if(c(a,RegExp))throw new Error("Cannot currently resolve a regular expression path");a=a.replace(/(\/)?(\.)?:(\w+)(?:(\(.*?\)))?(\?)?/g,function(e,r,i,a,u,s,c){r=r||"";i=i||"";n=t[a];o=void 0!==n;if(s&&!o)n="";else if(!o)return void l.push(a);n="function"==typeof n?n.call(t):n;var f=String(n).split("/").map(function(e){return encodeURIComponent(e)}).join("/");return r+i+f}).replace(/\*/g,function(e){if(void 0===t[i])throw new Error("You are trying to access a wild card parameter at index "+i+" but the value of params at that index is undefined");var r=String(t[i++]);return r.split("/").map(function(e){return encodeURIComponent(e)}).join("/")});s=e.toQueryString(s);a+=s;if(u){u=encodeURI(u.replace("#",""));a=a+"#"+u}a=a.replace(/\/+/g,"/");a=a.replace(/^(.+)\/$/g,"$1");if(0==l.length)return a;if(true!==r.throwOnMissingParams)return null;throw new Error("Missing required parameters on path "+JSON.stringify(this._originalPath)+". The missing params are: "+JSON.stringify(l)+". The params object passed in was: "+JSON.stringify(f)+".")}}],[{key:"normalize",value:function(t){if(c(t,RegExp))return t;if("string"!=typeof t)return"/";var r=e.parse(t);var n=r.pathname;if("/"!==n.charAt(0))n="/"+n;if(n.length>1&&"/"===n.charAt(n.length-1))n=n.slice(0,n.length-1);return n}},{key:"isSameOrigin",value:function(t,r){var n=e.parse(t);var o=e.parse(r);var i=n.origin===o.origin;return i}},{key:"fromQueryString",value:function(e){if(!e)return{};if("string"!=typeof e)throw new Error("expected string");if("?"===e.charAt(0))e=e.slice(1);var t=e.split("&");var r={};var n=function(e,t){Object.defineProperty(r,e,{value:t,writable:true,enumerable:true,configurable:true})};t.forEach(function(e){var t=e.indexOf("=");var o=p(-1===t?e:e.slice(0,t));var i=-1===t?void 0:p(e.slice(t+1));if(void 0===o)return;if(void 0!==i&&"[]"===o.slice(-2)){o=o.slice(0,-2);if(!Object.prototype.hasOwnProperty.call(r,o))n(o,[]);if(Array.isArray(r[o]))r[o].push(i)}else n(o,i)});return r}},{key:"toQueryString",value:function(e){var t=[];if("string"==typeof e)if("?"!==e.charAt(0))return"?"+e;else return e;if(null==e)return"";Object.keys(e).forEach(function(r){var n=e[r];if(Array.isArray(n))n.forEach(function(e){t.push(encodeURIComponent(r)+"[]="+encodeURIComponent(e))});else t.push(encodeURIComponent(r)+"="+encodeURIComponent(n))});if(t.length>0)return"?"+t.join("&");return""}},{key:"parse",value:function(t){if("string"!=typeof t)return{};
127var r=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var n=t.match(r);var o=n[1]?n[1].toLowerCase():void 0;var i=n[3];var a=!!i;var u=n[4]?n[4].toLowerCase():void 0;var s=u?u.split("@"):[];var l,c;if(2==s.length){c=s[0];l=s[1]}else if(1==s.length){l=s[0];c=void 0}else{l=void 0;c=void 0}var f=l&&l.split(":")||[];var h=f[0];var p=f[1];var v=o&&l?o+"//"+l:void 0;var d=n[5];var y=n[8];var m=n[6];var _;var g=y?y.indexOf("?"):-1;if(~g&&!m){m=y.slice(g);y=y.substr(0,g);_=m.slice(1)}else _=n[7];var k=d+(m||"");var w=e.fromQueryString(_);var b=[o||"",a?"//":"",u||""].join("");var j=[o||"",a?"//":"",u||"",d||"",m||"",y||""].join("");return{rootUrl:b||"",originalUrl:t||"",href:j||"",protocol:o||"",auth:c||"",host:l||"",hostname:h||"",port:p||"",origin:v||"",path:k||"",pathname:d||"",search:m||"",query:_||"",queryObject:w,hash:y||"",slashes:a}}}]);return e}();n.Url=d}}}}}}},{extensions:[".js",".json",".html",".d.ts"]});return{export:function(){return{Iron:u,Router:s,RouteController:l,Handler:c,urlToHashStyle:f,urlFromHashStyle:h}},require:p,eagerModulePaths:["/node_modules/meteor/vlasky:galvanized-iron-router/lib/dynamic-template/template.dynamic_template.js","/node_modules/meteor/vlasky:galvanized-iron-router/lib/layout/template.default_layout.js","/node_modules/meteor/vlasky:galvanized-iron-router/lib/router/template.templates.js","/node_modules/meteor/vlasky:galvanized-iron-router/lib/client.js"],mainModulePath:"/node_modules/meteor/vlasky:galvanized-iron-router/lib/client.js"}});
128
129Package["core-runtime"].queue("email",function(){return{}});
130
131Package["core-runtime"].queue("underscore",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var n,r;(function(){n={}}).call(this);(function(){(function(){var r=this;var t=r._;var e={};var i=Array.prototype,u=Object.prototype,a=Function.prototype;var l=i.push,o=i.slice,c=i.concat,f=u.toString,s=u.hasOwnProperty;var p=i.forEach,v=i.map,h=i.reduce,y=i.reduceRight,d=i.filter,g=i.every,m=i.some,b=i.indexOf,w=i.lastIndexOf,_=Array.isArray,x=Object.keys,j=a.bind;var A=function(n){if(n instanceof A)return n;if(!(this instanceof A))return new A(n);this._wrapped=n};if(void 0!==n){if("undefined"!=typeof module&&module.exports)n=module.exports=A;n._=A}else r._=A;A.VERSION="1.6.0";var k=function(n){return"[object Arguments]"===f.call(n)};if(!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)};var E=A.each=A.forEach=function(n,r,t){if(null==n)return n;if(p&&n.forEach===p)n.forEach(r,t);else if(O(n)){for(var i=0,u=n.length;i<u;i++)if(r.call(t,n[i],i,n)===e)return}else{var a=A.keys(n);for(var i=0,u=a.length;i<u;i++)if(r.call(t,n[a[i]],a[i],n)===e)return}return n};A.map=A.collect=function(n,r,t){var e=[];if(null==n)return e;if(v&&n.map===v)return n.map(r,t);E(n,function(n,i,u){e.push(r.call(t,n,i,u))});return e};var F="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(n,r,t,e){var i=arguments.length>2;if(null==n)n=[];if(h&&n.reduce===h){if(e)r=A.bind(r,e);return i?n.reduce(r,t):n.reduce(r)}E(n,function(n,u,a){if(i)t=r.call(e,t,n,u,a);else{t=n;i=true}});if(!i)throw new TypeError(F);return t};A.reduceRight=A.foldr=function(n,r,t,e){var i=arguments.length>2;if(null==n)n=[];if(y&&n.reduceRight===y){if(e)r=A.bind(r,e);return i?n.reduceRight(r,t):n.reduceRight(r)}var u=n.length;if(!O(n)){var a=A.keys(n);u=a.length}E(n,function(l,o,c){o=a?a[--u]:--u;if(i)t=r.call(e,t,n[o],o,c);else{t=n[o];i=true}});if(!i)throw new TypeError(F);return t};A.find=A.detect=function(n,r,t){var e;M(n,function(n,i,u){if(r.call(t,n,i,u)){e=n;return true}});return e};A.filter=A.select=function(n,r,t){var e=[];if(null==n)return e;if(d&&n.filter===d)return n.filter(r,t);E(n,function(n,i,u){if(r.call(t,n,i,u))e.push(n)});return e};A.reject=function(n,r,t){return A.filter(n,function(n,e,i){return!r.call(t,n,e,i)},t)};A.every=A.all=function(n,r,t){r||(r=A.identity);var i=true;if(null==n)return i;if(g&&n.every===g)return n.every(r,t);E(n,function(n,u,a){if(!(i=i&&r.call(t,n,u,a)))return e});return!!i};var M=A.some=A.any=function(n,r,t){r||(r=A.identity);var i=false;if(null==n)return i;if(m&&n.some===m)return n.some(r,t);E(n,function(n,u,a){if(i||(i=r.call(t,n,u,a)))return e});return!!i};A.contains=A.include=function(n,r){if(null==n)return false;if(b&&n.indexOf===b)return -1!=n.indexOf(r);return M(n,function(n){return n===r})};A.invoke=function(n,r){var t=o.call(arguments,2);var e=A.isFunction(r);return A.map(n,function(n){return(e?r:n[r]).apply(n,t)})};A.pluck=function(n,r){return A.map(n,A.property(r))};A.where=function(n,r,t){return t?A.find(n,A.matches(r)):A.filter(n,A.matches(r))};A.findWhere=function(n,r){return A.where(n,r,true)};A.max=function(n,r,t){if(!r&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.max.apply(Math,n);var e=-1/0,i=-1/0;E(n,function(n,u,a){var l=r?r.call(t,n,u,a):n;
131if(l>i){e=n;i=l}});return e};A.min=function(n,r,t){if(!r&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.min.apply(Math,n);var e=1/0,i=1/0;E(n,function(n,u,a){var l=r?r.call(t,n,u,a):n;if(l<i){e=n;i=l}});return e};A.shuffle=function(n){var r;var t=0;var e=[];E(n,function(n){r=A.random(t++);e[t-1]=e[r];e[r]=n});return e};A.sample=function(n,r,t){if(null==r||t){if(n.length!==+n.length)n=A.values(n);return n[A.random(n.length-1)]}return A.shuffle(n).slice(0,Math.max(0,r))};var R=function(n){if(null==n)return A.identity;if(A.isFunction(n))return n;return A.property(n)};A.sortBy=function(n,r,t){r=R(r);return A.pluck(A.map(n,function(n,e,i){return{value:n,index:e,criteria:r.call(t,n,e,i)}}).sort(function(n,r){var t=n.criteria;var e=r.criteria;if(t!==e){if(t>e||void 0===t)return 1;if(t<e||void 0===e)return -1}return n.index-r.index}),"value")};var S=function(n){return function(r,t,e){var i={};t=R(t);E(r,function(u,a){var l=t.call(e,u,a,r);n(i,l,u)});return i}};A.groupBy=S(function(n,r,t){A.has(n,r)?n[r].push(t):n[r]=[t]});A.indexBy=S(function(n,r,t){n[r]=t});A.countBy=S(function(n,r){A.has(n,r)?n[r]++:n[r]=1});A.sortedIndex=function(n,r,t,e){t=null==t?A.identity:R(t);var i=t.call(e,r);var u=0,a=n.length;while(u<a){var l=u+a>>>1;t.call(e,n[l])<i?u=l+1:a=l}return u};A.toArray=function(n){if(!n)return[];if(A.isArray(n))return o.call(n);if(O(n))return A.map(n,A.identity);return A.values(n)};A.size=function(n){if(null==n)return 0;return O(n)?n.length:A.keys(n).length};A.first=A.head=A.take=function(n,r,t){if(null==n)return;if(null==r||t)return n[0];if(r<0)return[];return o.call(n,0,r)};A.initial=function(n,r,t){return o.call(n,0,n.length-(null==r||t?1:r))};A.last=function(n,r,t){if(null==n)return;if(null==r||t)return n[n.length-1];return o.call(n,Math.max(n.length-r,0))};A.rest=A.tail=A.drop=function(n,r,t){return o.call(n,null==r||t?1:r)};A.compact=function(n){return A.filter(n,A.identity)};var T=function(n,r,t){if(r&&A.every(n,A.isArray))return c.apply(t,n);E(n,function(n){if(A.isArray(n)||A.isArguments(n))r?l.apply(t,n):T(n,r,t);else t.push(n)});return t};A.flatten=function(n,r){return T(n,r,[])};A.without=function(n){return A.difference(n,o.call(arguments,1))};A.partition=function(n,r){var t=[],e=[];E(n,function(n){(r(n)?t:e).push(n)});return[t,e]};A.uniq=A.unique=function(n,r,t,e){if(A.isFunction(r)){e=t;t=r;r=false}var i=t?A.map(n,t,e):n;var u=[];var a=[];E(i,function(t,e){if(r?!e||a[a.length-1]!==t:!A.contains(a,t)){a.push(t);u.push(n[e])}});return u};A.union=function(){return A.uniq(A.flatten(arguments,true))};A.intersection=function(n){var r=o.call(arguments,1);return A.filter(A.uniq(n),function(n){return A.every(r,function(r){return A.contains(r,n)})})};A.difference=function(n){var r=c.apply(i,o.call(arguments,1));return A.filter(n,function(n){return!A.contains(r,n)})};A.zip=function(){var n=A.max(A.pluck(arguments,"length").concat(0));var r=new Array(n);for(var t=0;t<n;t++)r[t]=A.pluck(arguments,""+t);return r};A.object=function(n,r){if(null==n)return{};var t={};for(var e=0,i=n.length;e<i;e++)if(r)t[n[e]]=r[e];else t[n[e][0]]=n[e][1];return t};A.indexOf=function(n,r,t){if(null==n)return -1;var e=0,i=n.length;if(t)if("number"==typeof t)e=t<0?Math.max(0,i+t):t;else{e=A.sortedIndex(n,r);return n[e]===r?e:-1}if(b&&n.indexOf===b)return n.indexOf(r,t);for(;e<i;e++)if(n[e]===r)return e;return -1};A.lastIndexOf=function(n,r,t){if(null==n)return -1;var e=null!=t;if(w&&n.lastIndexOf===w)return e?n.lastIndexOf(r,t):n.lastIndexOf(r);var i=e?t:n.length;while(i--)if(n[i]===r)return i;return -1};A.range=function(n,r,t){if(arguments.length<=1){r=n||0;n=0}t=arguments[2]||1;var e=Math.max(Math.ceil((r-n)/t),0);var i=0;var u=new Array(e);while(i<e){u[i++]=n;n+=t}return u};var I=function(){};A.bind=function(n,r){var t,e;if(j&&n.bind===j)return j.apply(n,o.call(arguments,1));if(!A.isFunction(n))throw new TypeError;t=o.call(arguments,2);return e=function(){if(!(this instanceof e))return n.apply(r,t.concat(o.call(arguments)));I.prototype=n.prototype;var i=new I;I.prototype=null;var u=n.apply(i,t.concat(o.call(arguments)));if(Object(u)===u)return u;return i}};
131A.partial=function(n){var r=o.call(arguments,1);return function(){var t=0;var e=r.slice();for(var i=0,u=e.length;i<u;i++)if(e[i]===A)e[i]=arguments[t++];while(t<arguments.length)e.push(arguments[t++]);return n.apply(this,e)}};A.bindAll=function(n){var r=o.call(arguments,1);if(0===r.length)throw new Error("bindAll must be passed function names");E(r,function(r){n[r]=A.bind(n[r],n)});return n};A.memoize=function(n,r){var t={};r||(r=A.identity);return function(){var e=r.apply(this,arguments);return A.has(t,e)?t[e]:t[e]=n.apply(this,arguments)}};A.delay=function(n,r){var t=o.call(arguments,2);return setTimeout(function(){return n.apply(null,t)},r)};A.defer=function(n){return A.delay.apply(A,[n,1].concat(o.call(arguments,1)))};A.throttle=function(n,r,t){var e,i,u;var a=null;var l=0;t||(t={});var o=function(){l=false===t.leading?0:A.now();a=null;u=n.apply(e,i)};return function(){var c=A.now();if(!l&&false===t.leading)l=c;var f=r-(c-l);e=this;i=arguments;if(f<=0){clearTimeout(a);a=null;l=c;u=n.apply(e,i);e=i=null}else if(!a&&false!==t.trailing)a=setTimeout(o,f);return u}};A.debounce=function(n,r,t){var e,i,u,a,l;var o=function(){var c=A.now()-a;if(c<r)e=setTimeout(o,r-c);else{e=null;if(!t){l=n.apply(u,i);u=i=null}}};return function(){u=this;i=arguments;a=A.now();var c=t&&!e;if(!e)e=setTimeout(o,r);if(c){l=n.apply(u,i);u=i=null}return l}};A.once=function(n){var r=false,t;return function(){if(r)return t;r=true;t=n.apply(this,arguments);n=null;return t}};A.wrap=function(n,r){return A.partial(r,n)};A.compose=function(){var n=arguments;return function(){var r=arguments;for(var t=n.length-1;t>=0;t--)r=[n[t].apply(this,r)];return r[0]}};A.after=function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}};A.keys=function(n){if(!A.isObject(n))return[];if(x)return x(n);var r=[];for(var t in n)if(A.has(n,t))r.push(t);return r};A.values=function(n){var r=A.keys(n);var t=r.length;var e=new Array(t);for(var i=0;i<t;i++)e[i]=n[r[i]];return e};A.pairs=function(n){var r=A.keys(n);var t=r.length;var e=new Array(t);for(var i=0;i<t;i++)e[i]=[r[i],n[r[i]]];return e};A.invert=function(n){var r={};var t=A.keys(n);for(var e=0,i=t.length;e<i;e++)r[n[t[e]]]=t[e];return r};A.functions=A.methods=function(n){var r=[];for(var t in n)if(A.isFunction(n[t]))r.push(t);return r.sort()};A.extend=function(n){E(o.call(arguments,1),function(r){if(r)for(var t in r)n[t]=r[t]});return n};A.pick=function(n){var r={};var t=c.apply(i,o.call(arguments,1));E(t,function(t){if(t in n)r[t]=n[t]});return r};A.omit=function(n){var r={};var t=c.apply(i,o.call(arguments,1));for(var e in n)if(!A.contains(t,e))r[e]=n[e];return r};A.defaults=function(n){E(o.call(arguments,1),function(r){if(r){for(var t in r)if(void 0===n[t])n[t]=r[t]}});return n};A.clone=function(n){if(!A.isObject(n))return n;return A.isArray(n)?n.slice():A.extend({},n)};A.tap=function(n,r){r(n);return n};var N=function(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;if(null==n||null==r)return n===r;if(n instanceof A)n=n._wrapped;if(r instanceof A)r=r._wrapped;var i=f.call(n);if(i!=f.call(r))return false;switch(i){case"[object String]":return n==String(r);case"[object Number]":return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case"[object Date]":case"[object Boolean]":return+n==+r;case"[object RegExp]":return n.source==r.source&&n.global==r.global&&n.multiline==r.multiline&&n.ignoreCase==r.ignoreCase}if("object"!=typeof n||"object"!=typeof r)return false;var u=t.length;while(u--)if(t[u]==n)return e[u]==r;var a=n.constructor,l=r.constructor;if(a!==l&&!(A.isFunction(a)&&a instanceof a&&A.isFunction(l)&&l instanceof l)&&"constructor"in n&&"constructor"in r)return false;t.push(n);e.push(r);var o=0,c=true;if("[object Array]"==i){o=n.length;c=o==r.length;if(c){while(o--)if(!(c=N(n[o],r[o],t,e)))break}}else{for(var s in n)if(A.has(n,s)){o++;if(!(c=A.has(r,s)&&N(n[s],r[s],t,e)))break}if(c){for(s in r)if(A.has(r,s)&&!o--)break;c=!o}}t.pop();e.pop();return c};A.isEqual=function(n,r){return N(n,r,[],[])};A.isEmpty=function(n){if(null==n)return true;if(A.isArray(n)||A.isString(n))return 0===n.length;for(var r in n)if(A.has(n,r))return false;return true};A.isElement=function(n){return!!(n&&1===n.nodeType)};A.isArray=_||function(n){return"[object Array]"==f.call(n)};A.isObject=function(n){return n===Object(n)};E(["Arguments","Function","String","Number","Date","RegExp"],function(n){A["is"+n]=function(r){return f.call(r)=="[object "+n+"]"}});if(!A.isArguments(arguments))A.isArguments=function(n){return!!(n&&A.has(n,"callee"))};if("function"!=typeof/./)A.isFunction=function(n){return"function"==typeof n};
131A.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};A.isNaN=function(n){return A.isNumber(n)&&n!=+n};A.isBoolean=function(n){return true===n||false===n||"[object Boolean]"==f.call(n)};A.isNull=function(n){return null===n};A.isUndefined=function(n){return void 0===n};A.has=function(n,r){return s.call(n,r)};A.noConflict=function(){r._=t;return this};A.identity=function(n){return n};A.constant=function(n){return function(){return n}};A.property=function(n){return function(r){return r[n]}};A.matches=function(n){return function(r){if(r===n)return true;for(var t in n)if(n[t]!==r[t])return false;return true}};A.times=function(n,r,t){var e=Array(Math.max(0,n));for(var i=0;i<n;i++)e[i]=r.call(t,i);return e};A.random=function(n,r){if(null==r){r=n;n=0}return n+Math.floor(Math.random()*(r-n+1))};A.now=Date.now||function(){return new Date().getTime()};var q={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};q.unescape=A.invert(q.escape);var B={escape:new RegExp("["+A.keys(q.escape).join("")+"]","g"),unescape:new RegExp("("+A.keys(q.unescape).join("|")+")","g")};A.each(["escape","unescape"],function(n){A[n]=function(r){if(null==r)return"";return(""+r).replace(B[n],function(r){return q[n][r]})}});A.result=function(n,r){if(null==n)return;var t=n[r];return A.isFunction(t)?t.call(n):t};A.mixin=function(n){E(A.functions(n),function(r){var t=A[r]=n[r];A.prototype[r]=function(){var n=[this._wrapped];l.apply(n,arguments);return U.call(this,t.apply(A,n))}})};var P=0;A.uniqueId=function(n){var r=++P+"";return n?n+r:r};A.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var D=/(.)^/;var z={"'":"'","\\":"\\","\r":"r","\n":"n","	":"t","\u2028":"u2028","\u2029":"u2029"};var C=/\\|'|\r|\n|\t|\u2028|\u2029/g;A.template=function(n,r,t){var e;t=A.defaults({},t,A.templateSettings);var i=new RegExp([(t.escape||D).source,(t.interpolate||D).source,(t.evaluate||D).source].join("|")+"|$","g");var u=0;var a="__p+='";n.replace(i,function(r,t,e,i,l){a+=n.slice(u,l).replace(C,function(n){return"\\"+z[n]});if(t)a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'";if(e)a+="'+\n((__t=("+e+"))==null?'':__t)+\n'";if(i)a+="';\n"+i+"\n__p+='";u=l+r.length;return r});a+="';\n";if(!t.variable)a="with(obj||{}){\n"+a+"}\n";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{e=new Function(t.variable||"obj","_",a)}catch(n){n.source=a;throw n}if(r)return e(r,A);var l=function(n){return e.call(this,n,A)};l.source="function("+(t.variable||"obj")+"){\n"+a+"}";return l};A.chain=function(n){return A(n).chain()};var U=function(n){return this._chain?A(n).chain():n};A.mixin(A);E(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var r=i[n];A.prototype[n]=function(){var t=this._wrapped;r.apply(t,arguments);if(("shift"==n||"splice"==n)&&0===t.length)delete t[0];return U.call(this,t)}});E(["concat","join","slice"],function(n){var r=i[n];A.prototype[n]=function(){return U.call(this,r.apply(this._wrapped,arguments))}});A.extend(A.prototype,{chain:function(){this._chain=true;return this},value:function(){return this._wrapped}})}).call(this)}).call(this);(function(){r=n._}).call(this);return{export:function(){return{_:r}}}});
132
133Package["core-runtime"].queue("http",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package.underscore._;var n,r,a,o,i,c;(function(){(function(){n=function(e,t){var n=500;var r=function(e,t){return e.length>t?e.slice(0,t)+"...":e};var a="failed ["+e+"]";if(t)a+=" "+r(t.replace(/\n/g," "),n);return new Error(a)};r=function(e){var n=[];t.each(e,function(e,t){if(n.length)n.push("&");n.push(a(t),"=",a(e))});return n.join("").replace(/%20/g,"+")};a=function(e){return encodeURIComponent(e).replace(/[!'()]/g,escape).replace(/\*/g,"%2A")};o=function(e,t,n,a){var o=e;var i=t?t.slice(1):null;if("string"==typeof n)i=String(n);if(a){i=i||"";var c=r(a);if(i&&c)i+="&";i+=c}var s=o;if(null!==i)s+="?"+i;return s};i=function(e){var n=(e.headers["content-type"]||";").split(";")[0];if(t.include(["application/json","text/javascript"],n))try{e.data=JSON.parse(e.content)}catch(t){e.data=null}else e.data=null};c={};c.get=function(){return c.call.apply(this,["GET"].concat(t.toArray(arguments)))};c.post=function(){return c.call.apply(this,["POST"].concat(t.toArray(arguments)))};c.put=function(){return c.call.apply(this,["PUT"].concat(t.toArray(arguments)))};c.del=function(){return c.call.apply(this,["DELETE"].concat(t.toArray(arguments)))}}).call(this);(function(){c.call=function(a,c,s,u){if(!u&&"function"==typeof s){u=s;s=null}s=s||{};if("function"!=typeof u)throw new Error("Can't make a blocking HTTP call from the client; callback required.");a=(a||"").toUpperCase();var l={};var f=s.content;if(s.data){f=JSON.stringify(s.data);l["Content-Type"]="application/json"}var p,d;if(f||"GET"===a||"HEAD"===a)p=s.params;else d=s.params;var h=/^(.*?)(\?.*)?$/.exec(c);c=o(h[1],h[2],s.query,p);if(false===s.followRedirects)throw new Error("Option followRedirects:false not supported on client.");var v,g;if(s.auth){var y=s.auth.indexOf(":");if(y<0)throw new Error('auth option should be of the form "username:password"');v=s.auth.substring(0,y);g=s.auth.substring(y+1)}if(d)f=r(d);t.extend(l,s.headers||{});u=function(e){return function(t,n){if(t&&n)t.response=n;e(t,n)}}(u);u=t.once(u);try{var w;if("undefined"!=typeof XMLHttpRequest)w=new XMLHttpRequest;else if("undefined"!=typeof ActiveXObject)w=new ActiveXObject("Microsoft.XMLHttp");else throw new Error("Can't create XMLHttpRequest");w.open(a,c,true,v,g);for(var m in l)w.setRequestHeader(m,l[m]);var E=false;var T;if(s.timeout)T=e.setTimeout(function(){E=true;w.abort()},s.timeout);w.onreadystatechange=function(r){if(4===w.readyState){if(T)e.clearTimeout(T);
133if(E)u(new Error("timeout"));else if(w.status){var a={};a.statusCode=w.status;a.content=w.responseText;a.headers={};var o=w.getAllResponseHeaders();if(""===o&&w.getResponseHeader("content-type"))o="content-type: "+w.getResponseHeader("content-type");var c=o.split(/\r?\n/);t.each(c,function(e){var t=/^(.*?):(?:\s+)(.*)$/.exec(e);if(t&&3===t.length)a.headers[t[1].toLowerCase()]=t[2]});i(a);var s=null;if(a.statusCode>=400)s=n(a.statusCode,a.content);u(s,a)}else u(new Error("network"))}};w.send(f)}catch(e){u(e)}}}).call(this);(function(){e.http=c}).call(this)}).call(this);return{export:function(){return{HTTP:c}}}});
134
135Package["core-runtime"].queue("sha",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var r;(function(){r=function(){function r(r){var e=8;var a=0;function c(r,e){var a=(65535&r)+(65535&e);var c=(r>>16)+(e>>16)+(a>>16);return c<<16|65535&a}function x(r,e){return r>>>e|r<<32-e}function n(r,e){return r>>>e}function f(r,e,a){return r&e^~r&a}function t(r,e,a){return r&e^r&a^e&a}function o(r){return x(r,2)^x(r,13)^x(r,22)}function b(r){return x(r,6)^x(r,11)^x(r,25)}function u(r){return x(r,7)^x(r,18)^n(r,3)}function d(r){return x(r,17)^x(r,19)^n(r,10)}function i(r,e){var a=new Array(0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2);var x=new Array(0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19);var n=new Array(64);var i,v,h,g,C,l,m,A,S,s;var k,y;r[e>>5]|=128<<24-e%32;r[(e+64>>9<<4)+15]=e;for(var S=0;S<r.length;S+=16){i=x[0];v=x[1];h=x[2];g=x[3];C=x[4];l=x[5];m=x[6];A=x[7];for(var s=0;s<64;s++){if(s<16)n[s]=r[s+S];else n[s]=c(c(c(d(n[s-2]),n[s-7]),u(n[s-15])),n[s-16]);k=c(c(c(c(A,b(C)),f(C,l,m)),a[s]),n[s]);y=c(o(i),t(i,v,h));A=m;m=l;l=C;C=c(g,k);g=h;h=v;v=i;i=c(k,y)}x[0]=c(i,x[0]);x[1]=c(v,x[1]);x[2]=c(h,x[2]);x[3]=c(g,x[3]);x[4]=c(C,x[4]);x[5]=c(l,x[5]);x[6]=c(m,x[6]);x[7]=c(A,x[7])}return x}function v(r){var a=Array();var c=(1<<e)-1;for(var x=0;x<r.length*e;x+=e)a[x>>5]|=(r.charCodeAt(x/e)&c)<<24-x%32;return a}function h(r){var e="";for(var a=0;a<r.length;a++){var c=r.charCodeAt(a);if(c<128)e+=String.fromCharCode(c);else if(c>127&&c<2048){e+=String.fromCharCode(c>>6|192);e+=String.fromCharCode(63&c|128)}else{e+=String.fromCharCode(c>>12|224);e+=String.fromCharCode(c>>6&63|128);e+=String.fromCharCode(63&c|128)}}return e}function g(r){var e=a?"0123456789ABCDEF":"0123456789abcdef";var c="";for(var x=0;x<4*r.length;x++)c+=e.charAt(r[x>>2]>>(3-x%4)*8+4&15)+e.charAt(r[x>>2]>>(3-x%4)*8&15);return c}r=h(r);return g(i(v(r),r.length*e))}return r}()}).call(this);return{export:function(){return{SHA256:r}}}});
136
137Package["core-runtime"].queue("accounts-password",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var r=Package["accounts-base"].Accounts;var o=Package.sha.SHA256;Package["ddp-client"].DDP;var t=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var n=Package.promise.Promise;var s=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var a=t({node_modules:{meteor:{"accounts-password":{
137"password_client.js":function(){function t(e,r,o){if(r in e)Object.defineProperty(e,r,{value:o,enumerable:true,configurable:true,writable:true});else e[r]=o;return e}function a(e,r){if(null!=r&&void 0!==s&&r[s.hasInstance])return!!r[s.hasInstance](e);return e instanceof r}function i(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};var n=Object.keys(o);if("function"==typeof Object.getOwnPropertySymbols)n=n.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}));n.forEach(function(r){t(e,r,o[r])})}return e}var c=function(e,r){if(r)r(e);else throw e};var u=function(e){var o=e.selector,t=e.password,n=e.code,s=e.callback;if("string"==typeof o)o=o.includes("@")?{email:o}:{username:o};r.callLoginMethod({methodArguments:[{user:o,password:r._hashPassword(t),code:n}],userCallback:function(e,r){if(e)return c(e,s);return s&&s(e,r)}});return o};e.loginWithPassword=function(e,r,o){return u({selector:e,password:r,callback:o})};e.loginWithPasswordAsync=e.promisify(e.loginWithPassword);r._hashPassword=function(e){return{digest:o(e),algorithm:"sha-256"}};e.loginWithPasswordAnd2faCode=function(r,o,t,n){if(null==t||"string"!=typeof t||!t)throw new e.Error(400,"token is required to use loginWithPasswordAnd2faCode and must be a string");return u({selector:r,password:o,code:t,callback:n})};r.createUser=function(o,t){o=i({},o);if("string"!=typeof o.password)throw new Error("options.password must be a string");if(!o.password)return c(new e.Error(400,"Password may not be empty"),t);o.password=r._hashPassword(o.password);r.callLoginMethod({methodName:"createUser",methodArguments:[o],userCallback:t})};r.createUserAsync=function(e){return new n(function(o,t){return r.createUser(e,function(e){if(e)t(e);else o()})})};r.changePassword=function(o,t,n){if(!e.user())return c(new Error("Mu
137st be logged in to change password."),n);if(!("string"==typeof t||a(t,String)))return c(new e.Error(400,"Password must be a string"),n);if(!t)return c(new e.Error(400,"Password may not be empty"),n);r.connection.apply("changePassword",[o?r._hashPassword(o):null,r._hashPassword(t)],function(e,r){if(e||!r)c(e||new Error("No result from changePassword."),n);else n&&n()})};r.forgotPassword=function(o,t){if(!o.email)return c(new e.Error(400,"Must pass options.email"),t);if(t)r.connection.call("forgotPassword",o,t);else r.connection.call("forgotPassword",o)};r.resetPassword=function(o,t,n){if(!("string"==typeof o||a(o,String)))return c(new e.Error(400,"Token must be a string"),n);if(!("string"==typeof t||a(t,String)))return c(new e.Error(400,"Password must be a string"),n);if(!t)return c(new e.Error(400,"Password may not be empty"),n);r.callLoginMethod({methodName:"resetPassword",methodArguments:[o,r._hashPassword(t)],userCallback:n})};r.verifyEmail=function(o,t){if(!o)return c(new e.Error(400,"Need to pass token"),t);r.callLoginMethod({methodName:"verifyEmail",methodArguments:[o],userCallback:t})}}}}}},{extensions:[".js",".json"]});return{require:a,eagerModulePaths:["/node_modules/meteor/accounts-password/password_client.js"]}});
138
139Package["core-runtime"].queue("service-configuration",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var o=Package["accounts-base"].Accounts;var n=Package.mongo.Mongo;Package.mongo.CollectionExtensions;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var i;var t=r({node_modules:{meteor:{"service-configuration":{
139"service_configuration_common.js":function(){if(void 0===i)i={};i.configurations=new n.Collection("meteor_accounts_loginServiceConfiguration",{_preventAutopublish:true,connection:e.isClient?o.connection:e.connection});i.ConfigError=function(n){if(e.isClient&&!o.loginServicesConfigured())this.message="Login service configuration not yet loaded";else if(n)this.message="Service "+n+" not configured";else this.message="Service not configured"};i.ConfigError.prototype=new Error;i.ConfigError.prototype.name="ServiceConfiguration.ConfigError"}}}}},{extensions:[".js",".json"]});return{export:function(){return{ServiceConfiguration:i}},require:t,eagerModulePaths:["/node_modules/meteor/service-configuration/service_configuration_common.js"]}});
140
141Package["core-runtime"].queue("session",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;Package["reactive-dict"].ReactiveDict;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var s;var o=e({node_modules:{meteor:{session:{
141"session.js":function(e,s,o){o.export({Session:function(){return a}});var t;o.link("meteor/reactive-dict",{ReactiveDict:function(e){t=e}},0);var a=new t("session")}}}}},{extensions:[".js",".json"]});return{export:function(){return{Session:s}},require:o,eagerModulePaths:["/node_modules/meteor/session/session.js"],mainModulePath:"/node_modules/meteor/session/session.js"}});
142
143Package["core-runtime"].queue("oauth",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var r=Package.check.check;Package.check.Match;var t=Package.url.URL;Package.url.URLSearchParams;var o=Package.reload.Reload;var n=Package.base64.Base64;var i=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var a;var c=i({node_modules:{meteor:{oauth:{
143"oauth_client.js":function(){var t={};a={};a.showPopup=function(e,r,t){throw new Error("OAuth.showPopup must be implemented on this arch.")};a._loginStyle=function(r,t,o){if(e.isCordova)return"popup";var n=o&&o.loginStyle||t.loginStyle||"popup";if(!["popup","redirect"].includes(n))throw new Error("Invalid login style: ".concat(n));if("redirect"===n)try{sessionStorage.setItem("Meteor.oauth.test","test");sessionStorage.removeItem("Meteor.oauth.test")}catch(e){n="popup"}return n};a._stateParam=function(r,t,o){var i,a,c,l;var u={loginStyle:r,credentialToken:t,isCordova:e.isCordova};if("redirect"===r||(null==(l=e.settings)?void 0:null==(c=l.public)?void 0:null==(a=c.packages)?void 0:null==(i=a.oauth)?void 0:i.setRedirectUrlWhenLoginStyleIsPopup)&&"popup"===r)u.redirectUrl=o||""+window.location;return n.encode(JSON.stringify(u))};a.saveDataForRedirect=function(e,r){o._onMigrate("oauth",function(){return[true,{loginService:e,credentialToken:r}]});o._migrate(null,{immediateMigration:true})};a.getDataAfterRedirect=function(){var r=o._migrationData("oauth");if(!(r&&r.credentialToken))return null;var t=r.credentialToken;var n=a._storageTokenPrefix+t;var i;try{i=sessionStorage.getItem(n);sessionStorage.removeItem(n)}catch(r){e._debug("error retrieving credentialSecret",r)}return{loginService:r.loginService,credentialToken:t,credentialSecret:i}};a.launchLogin=function(e){if(!e.loginService)throw new Error("loginService required");if("popup"===e.loginStyle)a.showPopup(e.loginUrl,e.credentialRequestCompleteCallback.bind(null,e.credentialToken),e.popupOptions);else if("redirect"===e.loginStyle){a.saveDataForRedirect(e.loginService,e.credentialToken);window.location=e.loginUrl}else throw new Error("invalid login style")};a._handleCredentialSecret=function(e,o){r(e,String);r(o,String);if(Object.prototype.hasOwnProperty.call(t,e))throw new Error("Duplicate credential token from OAuth login");t[e]=o};a._retrieveCredentialSecret=function(r){var o=t[r];if(o)delete t[r];else{var n=a._storageTokenPrefix+r;o=e._localStorage.getItem(n);e._localStorage.removeItem(n)}return o}},
143"oauth_browser.js":function(){a.showPopup=function(r,t,o){var n=e(r,o&&o.width||650,o&&o.height||331);var i=setInterval(function(){var e;try{e=n.closed||void 0===n.closed}catch(e){return}if(e){clearInterval(i);t()}},100)};var e=function(e,r,t){var o=void 0!==window.screenX?window.screenX:window.screenLeft;var n=void 0!==window.screenY?window.screenY:window.screenTop;var i=void 0!==window.outerWidth?window.outerWidth:document.body.clientWidth;var a=void 0!==window.outerHeight?window.outerHeight:document.body.clientHeight-22;var c=o+(i-r)/2;var l=n+(a-t)/2;var u="width=".concat(r,",height=").concat(t)+",left=".concat(c,",top=").concat(l,",scrollbars=yes");var s=window.open(e,"Login",u);if(!s||s.closed){var d=new Error("The login popup was blocked by the browser");d.attemptedUrl=e;throw d}if(s.focus)s.focus();return s}},
143"oauth_common.js":function(){function r(e,r,t){if(r in e)Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true});else e[r]=t;return e}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};var n=Object.keys(o);if("function"==typeof Object.getOwnPropertySymbols)n=n.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}));n.forEach(function(t){r(e,t,o[t])})}return e}function n(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);if(r)o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable});t.push.apply(t,o)}return t}function i(e,r){r=null!=r?r:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(r));else n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))});return e}a._storageTokenPrefix="Meteor.oauth.credentialSecret-";a._redirectUri=function(r,n,a,c){var l=false;var u=false;if(a){a=o({},a);l=a.cordova;u=a.android;delete a.cordova;delete a.android;if(0===Object.keys(a).length)a=void 0}if(e.isServer&&l){var s=process.env.MOBILE_ROOT_URL||__meteor_runtime_config__.ROOT_URL;if(u){var d=new t(s);if("localhost"===d.hostname)d.hostname="10.0.2.2";s=d.toString()}c=i(o({},c),{rootUrl:s})}return t._constructUrl(e.absoluteUrl("_oauth/".concat(r),c),null,a)}}}}}},{extensions:[".js",".json"]});return{export:function(){return{OAuth:a}},require:c,eagerModulePaths:["/node_modules/meteor/oauth/oauth_client.js","/node_modules/meteor/oauth/oauth_browser.js","/node_modules/meteor/oauth/oauth_common.js"]}});
144
145Package["core-runtime"].queue("accounts-oauth",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var r=Package["accounts-base"].Accounts;var t=Package.oauth.OAuth;var o=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var a=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var n=o({node_modules:{meteor:{"accounts-oauth":{
145"oauth_common.js":function(e,t,o){var a;o.link("meteor/meteor",{Meteor:function(e){a=e}},0);r.oauth={};var n={};var c=Object.prototype.hasOwnProperty;r.oauth.registerService=function(e){if(c.call(n,e))throw new Error("Duplicate service: ".concat(e));n[e]=true;if(a.server)a.users.createIndexAsync("services.".concat(e,".id"),{unique:true,sparse:true})};r.oauth.unregisterService=function(e){if(!c.call(n,e))throw new Error("Service not found: ".concat(e));delete n[e]};r.oauth.serviceNames=function(){return Object.keys(n)};a.startup(function(){var e,t;var o=Package["service-configuration"].ServiceConfiguration;r.loginServiceConfiguration=o.configurations;r.ConfigError=o.ConfigError;var n=null==(t=a.settings)?void 0:null==(e=t.packages)?void 0:e["accounts-base"];if(n){if(n.oauthSecretKey){if(!Package["oauth-encryption"])throw new Error("The oauth-encryption package must be loaded to set oauthSecretKey");Package["oauth-encryption"].OAuthEncryption.loadKey(n.oauthSecretKey);delete n.oauthSecretKey}}})},
145"oauth_client.js":function(){function o(e,r){if(null!=r&&void 0!==a&&r[a.hasInstance])return!!r[a.hasInstance](e);return e instanceof r}var n=function(t){if(t&&o(t,e.Error)&&t.error===r.LoginCancelledError.numericError)return new r.LoginCancelledError(t.reason);return t};e.startup(function(){var e=t.getDataAfterRedirect();if(!e)return;var o="login";var a=e.credentialToken,c=e.credentialSecret;var i=[{oauth:{credentialToken:a,credentialSecret:c}}];r.callLoginMethod({methodArguments:i,userCallback:function(t){t=n(t);r._pageLoadLogin({type:e.loginService,allowed:!t,error:t,methodName:o,methodArguments:i})}})});r.oauth.tryLoginAfterPopupClosed=function(o,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;var i=Date.now();var u=false;var l;var s=function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:false;var i=t._retrieveCredentialSecret(o);if(!u&&(i||c)){u=true;e.clearInterval(l);r.callLoginMethod({methodArguments:[{oauth:{credentialToken:o,credentialSecret:i}}],userCallback:a?function(e){return a(n(e))}:function(){}})}else if(c)e.clearInterval(l)};s();l=e.setInterval(function(){Date.now()-i>c?s(true):s()},250)};r.oauth.credentialRequestCompleteHandler=function(e){return function(t){if(t&&o(t,Error))e&&e(t);else r.oauth.tryLoginAfterPopupClosed(t,e)}}}}}}},{extensions:[".js",".json"]});return{require:n,eagerModulePaths:["/node_modules/meteor/accounts-oauth/oauth_common.js","/node_modules/meteor/accounts-oauth/oauth_client.js"]}});
146
147Package["core-runtime"].queue("accounts-ui-unstyled",function(){var n=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.tracker.Tracker;Package.tracker.Deps;var o=Package["service-configuration"].ServiceConfiguration;var i=Package["accounts-base"].Accounts;var t=Package["templating-runtime"].Template;var s=Package.session.Session;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;var l=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;var a=Package["ecmascript-runtime-client"].Set;var u=Package.blaze.Blaze;Package.blaze.UI;Package.blaze.Handlebars;var c=Package.spacebars.Spacebars;var g=Package.htmljs.HTML;var d=r({node_modules:{meteor:{"accounts-ui-unstyled":{
147"accounts_ui.js":function(e,o,t){t.export({passwordSignupFields:function(){return f},passwordlessSignupFields:function(){return p}});i.ui={_options:{requestPermissions:Object.create(null),requestOfflineToken:Object.create(null),forceApprovalPrompt:Object.create(null)}};var s=new a().add("passwordSignupFields").add("requestPermissions").add("requestOfflineToken").add("forceApprovalPrompt").add("passwordlessSignupFields");var r=new a().add("USERNAME_AND_EMAIL").add("USERNAME_AND_OPTIONAL_EMAIL").add("USERNAME_ONLY").add("EMAIL_ONLY");function l(n){return r.has(n)}var u=new a().add("USERNAME_AND_EMAIL").add("EMAIL_ONLY");function c(n){return u.has(n)}i.ui.config=function(n){Object.keys(n).forEach(function(n){if(!s.has(n))throw new Error("Accounts.ui.config: Invalid option: ".concat(n))});d(n);g(n);m(n);w(n);v(n)};n.startup(function(){var e,o;var t=null==(o=n.settings.public)?void 0:null==(e=o.packages)?void 0:e["accounts-ui-unstyled"];if(t)i.ui.config(t)});function g(n){var e=n.passwordlessSignupFields;if(e){var o=function(){throw new Error("Accounts.ui.config: Invalid option for `passwordlessSignupFields`: ".concat(e))};if("string"==typeof e)e=[e];else if(!Array.isArray(e))o();if(e.every(c)){if(i.ui._options.passwordlessSignupFields)throw new Error("Accounts.ui.config: Can't set `passwordlessSignupFields` more than once");Object.assign(i.ui._options,{passwordlessSignupFields:e});return}o()}}function d(n){var e=n.passwordSignupFields;if(e){var o=function(){throw new Error("Accounts.ui.config: Invalid option for `passwordSignupFields`: ".concat(e))};if("string"==typeof e)e=[e];else if(!Array.isArray(e))o();if(e.every(l)){if(i.ui._options.passwordSignupFields)throw new Error("Accounts.ui.config: Can't set `passwordSignupFields` more than once");Object.assign(i.ui._options,{passwordSignupFields:e});return}o()}}function f(){var n=i.ui._options.passwordSignupFields;if(Array.isArray(n))return n;if("string"==typeof n)return[n];return["EMAIL_ONLY"]}function p(){var n=i.ui._options.passwordlessSignupFields;if(Array.isArray(n))return n;if("string"==typeof n)return[n];return["EMAIL_ONLY"]}function m(n){var e=n.requestPermissions;
147if(e)Object.keys(e).forEach(function(n){if(i.ui._options.requestPermissions[n])throw new Error("Accounts.ui.config: Can't set `requestPermissions` more than once for ".concat(n));var o=e[n];if(!Array.isArray(o))throw new Error("Accounts.ui.config: Value for `requestPermissions` must be an array");i.ui._options.requestPermissions[n]=o})}function w(n){var e=n.requestOfflineToken;if(e)Object.keys(e).forEach(function(n){if("google"!==n)throw new Error("Accounts.ui.config: `requestOfflineToken` only supported for Google login at the moment.");if(i.ui._options.requestOfflineToken[n])throw new Error("Accounts.ui.config: Can't set `requestOfflineToken` more than once for ".concat(n));i.ui._options.requestOfflineToken[n]=e[n]})}function v(n){var e=n.forceApprovalPrompt;if(e)Object.keys(e).forEach(function(n){if("google"!==n)throw new Error("Accounts.ui.config: `forceApprovalPrompt` only supported for Google login at the moment.");if(i.ui._options.forceApprovalPrompt[n])throw new Error("Accounts.ui.config: Can't set `forceApprovalPrompt` more than once for ".concat(n));i.ui._options.forceApprovalPrompt[n]=e[n]})}},
147"template.login_buttons.js":function(){t.__checkName("loginButtons");t["loginButtons"]=new t("Template.loginButtons",function(){var n=this;return g.DIV({id:"login-buttons",class:function(){return["login-buttons-dropdown-align-",c.mustache(n.lookup("align"))]}},"\n    ",u.If(function(){return c.call(n.lookup("currentUser"))},function(){return["\n      ",u.If(function(){return c.call(n.lookup("loggingInOrOut"))},function(){return["\n        \n        ",u.If(function(){return c.call(n.lookup("dropdown"))},function(){return["\n          ",c.include(n.lookupTemplate("_loginButtonsLoggingIn")),"\n        "]},function(){return["\n          ",g.DIV({class:"login-buttons-with-only-one-button"},"\n            ",c.include(n.lookupTemplate("_loginButtonsLoggingInSingleLoginButton")),"\n          "),"\n        "]}),"\n      "]},function(){return["\n        ",c.include(n.lookupTemplate("_loginButtonsLoggedIn")),"\n      "]}),"\n    "]},function(){return["\n      ",c.include(n.lookupTemplate("_loginButtonsLoggedOut")),"\n    "]}),"\n  ")});t.__checkName("_loginButtonsLoggedIn");t["_loginButtonsLoggedIn"]=new t("Template._loginButtonsLoggedIn",function(){var n=this;return u.If(function(){return c.call(n.lookup("dropdown"))},function(){return["\n    ",c.include(n.lookupTemplate("_loginButtonsLoggedInDropdown")),"\n  "]},function(){return["\n    ",g.DIV({class:"login-buttons-with-only-one-button"},"\n      ",c.include(n.lookupTemplate("_loginButtonsLoggedInSingleLogoutButton")),"\n    "),"\n  "]})});t.__checkName("_loginButtonsLoggedOut");t["_loginButtonsLoggedOut"]=new t("Template._loginButtonsLoggedOut",function(){var n=this;return u.If(function(){return c.call(n.lookup("services"))},function(){return[" \n    ",u.If(function(){return c.call(n.lookup("c
147onfigurationLoaded"))},function(){return["\n      ",u.If(function(){return c.call(n.lookup("dropdown"))},function(){return[" \n        ",c.include(n.lookupTemplate("_loginButtonsLoggedOutDropdown")),"\n      "]},function(){return["\n        ",c.With(function(){return c.call(n.lookup("singleService"))},function(){return[" \n          ",g.DIV({class:"login-buttons-with-only-one-button"},"\n            ",u.If(function(){return c.call(n.lookup("loggingIn"))},function(){return["\n              ",c.include(n.lookupTemplate("_loginButtonsLoggingInSingleLoginButton")),"\n            "]},function(){return["\n              ",c.include(n.lookupTemplate("_loginButtonsLoggedOutSingleLoginButton")),"\n            "]}),"\n          "),"\n        "]}),"\n      "]}),"\n    "]}),"\n  "]},function(){return g.Raw('\n    <div class="no-services">No login services configured</div>\n  ')})});t.__checkName("_loginButtonsMessages");t["_loginButtonsMessages"]=new t("Template._loginButtonsMessages",function(){var n=this;return[u.If(function(){return c.call(n.lookup("errorMessage"))},function(){return["\n    ",g.DIV({class:"message error-message"},u.View("lookup:errorMessage",function(){return c.mustache(n.lookup("errorMessage"))})),"\n  "]}),"\n  ",u.If(function(){return c.call(n.lookup("infoMessage"))},function(){return["\n    ",g.DIV({class:"message info-message"},u.View("lookup:infoMessage",function(){return c.mustache(n.lookup("infoMessage"))})),"\n  "]})]});t.__checkName("_loginButtonsLoggingIn");t["_loginButtonsLoggingIn"]=new t("Template._loginButtonsLoggingIn",function(){var n=this;return[c.include(n.lookupTemplate("_loginButtonsLoggingInPadding")),g.Raw('\n  <div class="loading">&nbsp;</div>\n  '),c.include(n.lookupTemplate("_loginButtonsLoggingInPadding"))]});t.__checkName("_loginButtonsLoggingInPadding");t["_loginButtonsLoggingInPadding"]=new t("Template._loginButtonsLoggingInPadding",function(){var n=this;return u.Unless(function(){return c.call(n.lookup("dropdown"))},function(){return g.Raw('\n    \n    <div class="login-buttons-padding">\n      <div class="login-button single-login-button" style="visibility: hidden;" id="login-buttons-logout">&nbsp;</div>\n    </div>\n  ')},function(){return g.Raw('\n    \n    <div class="login-buttons-padding"></div>\n  ')})})},
147"template.login_buttons_single.js":function(){t.__checkName("_loginButtonsLoggedOutSingleLoginButton");t["_loginButtonsLoggedOutSingleLoginButton"]=new t("Template._loginButtonsLoggedOutSingleLoginButton",function(){var n=this;return g.DIV({class:"login-text-and-button"},"\n    ",g.DIV({class:function(){return["login-button single-login-button ",u.Unless(function(){return c.call(n.lookup("configured"))},function(){return"configure-button"})]},id:function(){return["login-buttons-",c.mustache(n.lookup("name"))]}},"\n      ",u.If(function(){return c.call(n.lookup("cannotConfigure"))},function(){return["\n        ",g.SPAN({class:""},u.View("lookup:capitalizedName",function(){return c.mustache(n.lookup("capitalizedName"))})," not configured"),"\n      "]},function(){return["\n        ",g.DIV({class:"login-image",id:function(){return["login-buttons-image-",c.mustache(n.lookup("name"))]}}),"\n        ",u.If(function(){return c.call(n.lookup("configured"))},function(){return["\n          ",g.SPAN({class:function(){return["text-besides-image sign-in-text-",c.mustache(n.lookup("name"))]}},"Sign in with ",u.View("lookup:capitalizedName",function(){return c.mustache(n.lookup("capitalizedName"))})),"\n        "]},function(){return["\n            ",g.SPAN({class:function(){return["text-besides-image configure-text-",c.mustache(n.lookup("name"))]}},"Configure ",u.View("lookup:capitalizedName",function(){return c.mustache(n.lookup("capitalizedName"))})," Login"),"\n        "]}),"\n      "]}),"\n    "),"\n  ")});t.__checkName("_loginButtonsLoggingInSingleLoginButton");t["_loginButtonsLoggingInSingleLoginButton"]=new t("Template._loginButtonsLoggingInSingleLoginButton",function(){var n=this;return g.DIV({class:"login-text-and-button"},"\n    ",c.include(n.lookupTemplate("_loginButtonsLoggingIn")),"\n  ")});t.__checkName("_loginButtonsLoggedInSingleLogoutButton");t["_loginButtonsLoggedInSingleLogoutButton"]=new t("Template._loginButtonsLoggedInSingleLogoutButton",function(){var n=this;return g.DIV({class:"login-text-and-button"},"\n    ",g.DIV({class:"login-display-name"},"\n      ",u.View("lookup:displayName",function(){return c.mustache(n.lookup("displayName"))}),"\n    "),g.Raw('\n    <div class="login-button single-login-button" id="login-buttons-logout">Sign Out</div>\n  '))})},
147"template.login_buttons_dropdown.js":function(){t.__checkName("_loginButtonsLoggedInDropdown");t["_loginButtonsLoggedInDropdown"]=new t("Template._loginButtonsLoggedInDropdown",function(){var n=this;return g.DIV({class:"login-link-and-dropdown-list"},"\n    ",g.A({class:"login-link-text",id:"login-name-link"},"\n      ",u.View("lookup:displayName",function(){return c.mustache(n.lookup("displayName"))})," ▾\n    "),"\n\n    ",u.If(function(){return c.call(n.lookup("dropdownVisible"))},function(){return["\n      ",g.DIV({id:"login-dropdown-list",class:"accounts-dialog"},g.Raw('\n        <a class="login-close-text">Close</a>\n        <div class="login-close-text-clear"></div>\n\n        '),u.If(function(){return c.call(n.lookup("inMessageOnlyFlow"))},function(){return["\n          ",c.include(n.lookupTemplate("_loginButtonsMessages")),"\n        "]},function(){return["\n          ",u.If(function(){return c.call(n.lookup("inChangePasswordFlow"))},function(){return["\n            ",c.include(n.lookupTemplate("_loginButtonsChangePassword")),"\n          "]},function(){return["\n            ",c.include(n.lookupTemplate("_loginButtonsLoggedInDropdownActions")),"\n          "]}),"\n        "]}),"\n      "),"\n    "]}),"\n  ")});t.__checkName("_loginButtonsLoggedInDropdownActions");t["_loginButtonsLoggedInDropdownActions"]=new t("Template._loginButtonsLoggedInDropdownActions",function(){var n=this;return[u.If(function(){return c.call(n.lookup("allowChangingPassword"))},function(){return g.Raw('\n    <div class="login-button" id="login-buttons-open-change-password">\n      Change password\n    </div>\n  ')}),g.Raw('\n\n  <div class="login-button" id="login-buttons-logout">\n    Sign out\n  </div>\n\n  '),c.include(n.lookupTemplate("_loginButtonsMessages"))]});t.__checkName("_loginButtonsLoggedOutDropdown");t["_loginButtonsLoggedOutDropdown"]=new t("Template._loginButtonsLoggedOutDropdown",function(){var n=this;return g.DIV({class:function(){return["login-link-and-dropdown-list ",c.mustache(n.lookup("additionalClasses"))]}},"\n    ",u.If(function(){return c.call(n.lookup("dropdownVisible"))},function(){return[g.Raw('\n      \n      <a class="login-link-text" id="login-sign-in-link">Sign in ▾</a>\n      '),g.DIV({id:"login-dropdown-list",class:"accounts-dialog"},g.Raw('\n        <a class="login-close-text">Close</a>\n        '),u.If(function(){return c.call(n.lookup("loggingIn"))},function(){return["\n          ",c.include(n.lookupTemplate("_loginButtonsLoggingIn")),"\n        "]}),g.Raw('\n        <div class="login-close-text-clear"></div>\n        '),c.include(n.lookupTemplate("_loginButtonsLoggedOutAllServices")),"\n      "),"\n    "]},function(){return["\n      ",u.If(function(){return c.call(n.lookup("loggingIn"))},function(){return["\n        \n        ",c.include(n.lookupTemplate("_loginButtonsLoggingIn")),"\n      "]},function(){return g.Raw('\n        <a class="login-link-text" id="login-sign-in-link">Sign in ▾</a>\n      ')}),"\n    "]}),"\n  ")});t.__checkName("_loginButtonsLoggedOutAllServices");t["_loginButtonsLoggedOutAllServices"]=new t("Template._loginButtonsLoggedOutAllServices",function(){var n=this;return[u.Each(function(){return c.call(n.lookup("services"))},function(){return["\n    ",u.If(function(){return c.call(n.lookup("isInternalService"))},function(){return["\n      ",u.If(function(){return c.call(n.lookup("isPasswordService"))},function(){return["\n        ",u.If(function(){return c.call(n.lookup("hasOtherServices"))},function(){return[" \n          ",c.include(n.lookupTemplate("_loginButtonsLoggedOutPasswordServiceSeparator")),"\n        "]}),"\n        ",c.include(n.lookupTemplate("_loginButtonsLoggedOutPasswordService")),"\n      "]}),"\n      ",u.If(function(){return c.call(n.lookup("isPasswordlessService"))},function(){return["\n        ",u.If(function(){return c.call(n.lookup("hasPasswordService"))},function(){return g.Raw("\n          <br>\n        ")}),"\n        ",u.If(function(){return c.call(n.lookup("displaySeparatorForPasswordless"))},function(){return[" \n          ",c.include(n.lookupTemplate("_loginButtonsLoggedOutPasswordServiceSeparator")),"\n        "]}),"\n        ",c.include(n.lookupTemplate("_loginButtonsLoggedOutPasswordlessService")),"\n      "]}),"\n    "]},function(){return["\n      ",c.include(n.lookupTemplate("_loginButtonsLoggedOutSingleLoginButton")),"\n    "]}),"\n  "]}),"\n  ",u.Unless(function(){return c.call(n.lookup("hasInternalService"))},function(){return["\n    ",c.include(n.lookupTemplate("_loginButtonsMessages")),"\n  "]})]});t.__checkName("_loginButtonsLoggedOutPasswordlessService");t["_loginButtonsLoggedOutPasswordlessService"]=new t("Template._loginButtonsLoggedOutPasswordlessService",function(){var n=this;return g.FORM({class:"login-form login-passwordless-form"},"\n    ",u.Each(function(){return c.call(n.lookup("fields"))},function(){return["\n      ",c.include(n.lookupTemplate("_loginButtonsFormField")),"\n    "]}),"\n\n    ",c.include(n.lookupTemplate("_loginButtonsMessages")),"\n\n    ",g.BUTTON({class:"login-button login-button-form-submit",id:"login-buttons-passwordless"},"\n      ",u.If(function(){return c.call(n.lookup("inPasswordlessConfirmation"))},function(){return"\n        Submit\n      "},function(){return["\n        ",u.If(function(){return c.call(n.lookup("inSignupFlow"))},function(){return"\n          Create account\n        "},function(){return"\n          Get login code\n        "}),"\n      "]}),"\n    "),"\n    ",u.If(function(){return c.call(n.lookup("inLoginFlow"))},function(){return["\n      ",u.If(function(){return c.call(n.lookup("showCreateAccountLink"))},function(){return g.Raw('\n        <div class="additional-link-container">\n          <a id="signup-link" class="additional-link">Create account</a>\n        </div>\n      ')}),"\n\n      ",u.If(function(){return c.call(n.lookup("inPasswordlessConfirmation"))},function(){return g.Raw('\n        <div class="additional-link-container">\n          <a id="resend-passwordless-code" class="additional-link">
147Re-send code</a>\n        </div>\n      ')}),"\n    "]}),"\n    ",u.If(function(){return c.call(n.lookup("inSignupFlow"))},function(){return["\n      ",c.include(n.lookupTemplate("_loginButtonsBackToLoginLink")),"\n    "]}),"\n  ")});t.__checkName("_loginButtonsLoggedOutPasswordServiceSeparator");t["_loginButtonsLoggedOutPasswordServiceSeparator"]=new t("Template._loginButtonsLoggedOutPasswordServiceSeparator",function(){return g.Raw('<div class="or">\n    <span class="hline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>\n    <span class="or-text">or</span>\n    <span class="hline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>\n  </div>')});t.__checkName("_loginButtonsLoggedOutPasswordService");t["_loginButtonsLoggedOutPasswordService"]=new t("Template._loginButtonsLoggedOutPasswordService",function(){var n=this;return u.If(function(){return c.call(n.lookup("inForgotPasswordFlow"))},function(){return["\n    ",c.include(n.lookupTemplate("_forgotPasswordForm")),"\n  "]},function(){return["\n    ",g.FORM({class:"login-form login-password-form"},"\n      ",u.Each(function(){return c.call(n.lookup("fields"))},function(){return["\n        ",c.include(n.lookupTemplate("_loginButtonsFormField")),"\n      "]}),"\n\n      ",c.include(n.lookupTemplate("_loginButtonsMessages")),"\n\n      ",g.BUTTON({class:"login-button login-button-form-submit",id:"login-buttons-password"},"\n        ",u.If(function(){return c.call(n.lookup("inSignupFlow"))},function(){return"\n          Create account\n        "},function(){return"\n          Sign in\n        "}),"\n      "),"\n\n      ",u.If(function(){return c.call(n.lookup("inLoginFlow"))},function(){return["\n        ",u.If(function(){return c.call(n.lookup("showCreateAccountLink"))},function(){return g.Raw('\n          <div class="additional-link-container">\n            <a id="signup-link" class="additional-link">Create account</a>\n          </div>\n        ')}),"\n\n        ",u.If(function(){return c.call(n.lookup("showForgotPasswordLink"))},function(){return g.Raw('\n          <div class="additional-link-container">\n            <a id="forgot-password-link" class="additional-link">Forgot password</a>\n          </div>\n        ')}),"\n      "]}),"\n\n      ",u.If(function(){return c.call(n.lookup("inSignupFlow"))},function(){return["\n        ",c.include(n.lookupTemplate("_loginButtonsBackToLoginLink")),"\n      "]}),"\n    "),"\n  "]})});t.__checkName("_forgotPasswordForm");t["_forgotPasswordForm"]=new t("Template._forgotPasswordForm",function(){var n=this;return g.FORM({class:"login-form"},g.Raw('\n    <div id="forgot-password-email-label-and-input"> \n      <label id="forgot-password-email-label" for="forgot-password-email">Email</label>\n      <input id="forgot-password-email" type="email" autocomplete="email">\n    </div>\n\n    '),c.include(n.lookupTemplate("_loginButtonsMessages")),g.Raw('\n\n    <div class="login-button login-button-form-submit" id="login-buttons-forgot-password">\n      Reset password\n    </div>\n\n    '),c.include(n.lookupTemplate("_loginButtonsBackToLoginLink")),"\n  ")});t.__checkName("_loginButtonsBackToLoginLink");t["_loginButtonsBackToLoginLink"]=new t("Template._loginButtonsBackToLoginLink",function(){return g.Raw('<div class="additional-link-container">\n    <a id="back-to-login-link" class="additional-link">Sign in</a>\n  </div>')});t.__checkName("_loginButtonsFormField");t["_loginButtonsFormField"]=new t("Template._loginButtonsFormField",function(){var n=this;return u.If(function(){return c.call(n.lookup("visible"))},function(){return["\n    ",g.DIV({id:function(){return["login-",c.mustache(n.lookup("fieldName")),"-label-and-input"]},style:function(){return c.mustache(n.lookup("fieldStyle"))}},"\n      ",g.LABEL({id:function(){return["login-",c.mustache(n.lookup("fieldName")),"-label"]},for:function(){return["login-",c.mustache(n.lookup("fieldName"))]}},"\n        ",u.View("lookup:fieldLabel",function(){return c.mustache(n.lookup("fieldLabel"))}),"\n      "),"\n      ",g.INPUT({id:function(){return["login-",c.mustache(n.lookup("fieldName"))]},type:function(){return c.mustache(n.lookup("inputType"))},value:function(){return c.mustache(n.lookup("fieldValue"))},autocomplete:function(){return c.mustache(n.lookup("autocomplete"))}}),"\n    "),"\n  "]})});t.__checkName("_loginButtonsChangePassword");t["_loginButtonsChangePassword"]=new t("Template._loginButtonsChangePassword",function(){var n=this;return g.FORM({class:"login-form"},"\n\n    ",u.Each(function(){return c.call(n.lookup("fields"))},function(){return["\n      ",c.include(n.lookupTemplate("_loginButtonsFormField")),"\n    "]}),"\n\n    ",c.include(n.lookupTemplate("_loginButtonsMessages")),g.Raw('\n\n    <div class="login-button login-button-form-submit" id="login-buttons-do-change-password">\n      Change password\n    </div>\n  '))})},
147"template.login_buttons_dialogs.js":function(){t.body.addContent(function(){var n=this;return[c.include(n.lookupTemplate("_resetPasswordDialog")),"\n  ",c.include(n.lookupTemplate("_justResetPasswordDialog")),"\n  ",c.include(n.lookupTemplate("_enrollAccountDialog")),"\n  ",c.include(n.lookupTemplate("_justVerifiedEmailDialog")),"\n  ",c.include(n.lookupTemplate("_configureLoginServiceDialog")),"\n  ",c.include(n.lookupTemplate("_configureLoginOnDesktopDialog")),"\n\n  \n  ",c.include(n.lookupTemplate("_loginButtonsMessagesDialog"))]});n.startup(t.body.renderToDocument);t.__checkName("_resetPasswordDialog");t["_resetPasswordDialog"]=new t("Template._resetPasswordDialog",function(){var n=this;return u.If(function(){return c.call(n.lookup("inResetPasswordFlow"))},function(){return[g.Raw('\n    <div class="hide-background"></div>\n\n    '),g.FORM({class:"accounts-dialog accounts-centered-dialog"},g.Raw('\n      <label id="reset-password-username-email-label" for="reset-password-username-email" style="display: none;">\n        Username or email\n      </label> \n\n      '),g.DIV({class:"reset-password-username-email-wrapper",style:"display: none;"},"\n        ",g.INPUT({id:"reset-password-username-email",type:"text",value:function(){return c.mustache(n.lookup("displayName"))},autocomplete:"username email",disabled:""}),"\n      "),g.Raw('\n\n      <label id="reset-password-new-password-label" for="reset-password-new-password">\n        New password\n      </label>      \n\n      <div class="reset-password-new-password-wrapper">\n        <input id="reset-password-new-password" type="password" autocomplete="new-password">\n      </div>\n\n      '),c.include(n.lookupTemplate("_loginButtonsMessages")),g.Raw('\n\n      <div class="login-button login-button-form-submit" id="login-buttons-reset-password-button">\n        Set password\n      </div>\n\n      <a class="accounts-close" id="login-buttons-cancel-reset-password">&times;</a>\n    ')),"\n  "]})});t.__checkName("_justResetPasswordDialog");t["_justResetPasswordDialog"]=new t("Template._justResetPasswordDialog",function(){var n=this;return u.If(function(){return c.call(n.lookup("visible"))},function(){return["\n    ",g.DIV({class:"accounts-dialog accounts-centered-dialog"},"\n      Password reset.\n      You are now logged in as ",u.View("lookup:displayName",function(){return c.mustache(n.lookup("displayName"))}),g.Raw('.\n      <div class="login-button" id="just-verified-dismiss-button">Dismiss</div>\n    ')),"\n  "]})});t.__checkName("_enrollAccountDialog");t["_enrollAccountDialog"]=new t("Template._enrollAccountDialog",function(){var n=this;return u.If(function(){return c.call(n.lookup("inEnrollAccountFlow"))},function(){return[g.Raw('\n    <div class="hide-background"></div>\n\n    '),g.FORM({class:"accounts-dialog accounts-centered-dialog"},g.Raw('\n      <label id="enroll-account-username-email-label" for="enroll-account-username-email" style="display: none;">\n        Username or email\n      </label> \n\n      '),g.DIV({class:"enroll-account-username-email-wrapper",style:"display: none;"},"\n        ",g.INPUT({id:"enroll-account-username-email",type:"text",value:function(){return c.mustache(n.lookup("displayName"))},autocomplete:"username email",disabled:""}),"\n      "),g.Raw('\n\n      <label id="enroll-account-password-label" for="enroll-account-password">\n        Choose a password\n      </label>\n\n      <div class="enroll-account-password-wrapper">\n        <input id="enroll-account-password" type="password" autocomplete="new-password">\n      </div>\n\n      '),c.include(n.lookupTemplate("_loginButtonsMessages")),g.Raw('\n\n      <div class="login-button login-button-form-submit" id="login-buttons-enroll-account-button">\n        Create account\n      </div>\n\n      <a class="accounts-close" id="login-buttons-cancel-enroll-account">&times;</a>\n    ')),"\n  "]})});t.__checkName("_justVerifiedEmailDialog");t["_justVerifiedEmailDialog"]=new t("Template._justVerifiedEmailDialog",function(){var n=this;return u.If(function(){return c.call(n.lookup("visible"))},function(){return["\n    ",g.DIV({class:"accounts-dialog accounts-centered-dialog"},"\n      Email verified.\n      You are now logged in as ",u.Vie
147w("lookup:displayName",function(){return c.mustache(n.lookup("displayName"))}),g.Raw('.\n      <div class="login-button" id="just-verified-dismiss-button">Dismiss</div>\n    ')),"\n  "]})});t.__checkName("_configureLoginServiceDialog");t["_configureLoginServiceDialog"]=new t("Template._configureLoginServiceDialog",function(){var n=this;return u.If(function(){return c.call(n.lookup("visible"))},function(){return["\n    ",g.DIV({id:"configure-login-service-dialog",class:"accounts-dialog accounts-centered-dialog"},"\n      ",c.include(n.lookupTemplate("configurationSteps")),g.Raw("\n\n      <p>\n        Now, copy over some details.\n      </p>\n      "),g.P("\n        ",g.TABLE(g.Raw('\n          <colgroup>\n            <col span="1" class="configuration_labels">\n            <col span="1" class="configuration_inputs">\n          </colgroup>\n          '),u.Each(function(){return c.call(n.lookup("configurationFields"))},function(){return["\n            ",g.TR("\n              ",g.TD("\n                ",g.LABEL({for:function(){return["configure-login-service-dialog-",c.mustache(n.lookup("property"))]}},u.View("lookup:label",function(){return c.mustache(n.lookup("label"))})),"\n              "),"\n              ",g.TD("\n                ",g.INPUT({id:function(){return["configure-login-service-dialog-",c.mustache(n.lookup("property"))]},type:"text"}),"\n              "),"\n            "),"\n          "]}),"\n        "),"\n      "),g.Raw('\n      <p class="new-section">\n        Choose the login style:\n      </p>\n      <p>\n        &emsp;<input id="configure-login-service-dialog-popupBasedLogin" type="radio" checked="checked" name="loginStyle" value="popup">\n        <label for="configure-login-service-dialog-popupBasedLogin">Popup-based login (recommended for most applications)</label>\n\n        <br>&emsp;<input id="configure-login-service-dialog-redirectBasedLogin" type="radio" name="loginStyle" value="redirect">\n        <label for="configure-login-service-dialog-redirectBasedLogin">\n          Redirect-based login (special cases explained\n          <a href="https://github.com/meteor/meteor/wiki/OAuth-for-mobile-Meteor-clients#popup-versus-redirect-flow" target="_blank">here</a>)\n        </label>\n      </p>\n      '),g.DIV({class:"new-section"},g.Raw('\n        <div class="login-button configure-login-service-dismiss-button">\n          I\'ll do this later\n        </div>\n        <a class="accounts-close configure-login-service-dismiss-button">&times;</a>\n\n        '),g.DIV({class:function(){return["login-button login-button-configure ",u.If(function(){return c.call(n.lookup("saveDisabled"))},function(){return"login-button-disabled"})]},id:"configure-login-service-dialog-save-configuration"},"\n          Save Configuration\n        "),"\n      "),"\n    "),"\n  "]})});t.__checkName("_loginButtonsMessagesDialog");t["_loginButtonsMessagesDialog"]=new t("Template._loginButtonsMessagesDialog",function(){var n=this;return u.If(function(){return c.call(n.lookup("visible"))},function(){return["\n    ",g.DIV({class:"accounts-dialog accounts-centered-dialog",id:"login-buttons-message-dialog"},"\n      ",c.include(n.lookupTemplate("_loginButtonsMessages")),g.Raw('\n      <div class="login-button" id="messages-dialog-dismiss-button">Dismiss</div>\n    ')),"\n  "]})});t.__checkName("_configureLoginOnDesktopDialog");t["_configureLoginOnDesktopDialog"]=new t("Template._configureLoginOnDesktopDialog",function(){var n=this;return u.If(function(){return c.call(n.lookup("visible"))},function(){return g.Raw('\n    <div class="accounts-dialog accounts-centered-dialog" id="configure-on-desktop-dialog">\n      <p>\n        Please configure login on a desktop browser.\n      </p>\n      <div class="login-button" id="configure-on-desktop-dismiss-button">Dismiss</div>\n    </div>\n  ')})})},
147"login_buttons_session.js":function(){var e=["dropdownVisible","inSignupFlow","inForgotPasswordFlow","inChangePasswordFlow","inMessageOnlyFlow","inPasswordlessConfirmation","passwordlessCodeEmail","errorMessage","infoMessage","resetPasswordToken","enrollAccountToken","justVerifiedEmail","justResetPassword","configureLoginServiceDialogVisible","configureLoginServiceDialogServiceName","configureLoginServiceDialogSaveDisabled","configureOnDesktopVisible"];var o=function(n){if(!e.includes(n))throw new Error("Invalid key in loginButtonsSession: ".concat(n))};var t="Meteor.loginButtons.";var r=function(n,e){o(n);if(["errorMessage","infoMessage"].includes(n))throw new Error("Don't set errorMessage or infoMessage directly. Instead, use errorMessage() or infoMessage().");l(n,e)};var l=function(n,e){return s.set(t+n,e)};var a=function(n){o(n);return s.get(t+n)};var u=function(){r("inSignupFlow",false);r("inForgotPasswordFlow",false);r("inChangePasswordFlow",false);r("inMessageOnlyFlow",false);r("dropdownVisible",false);p()};var c=function(n){l("errorMessage",null);l("infoMessage",n);f()};var g=function(n){l("errorMessage",n);l("infoMessage",null);f()};var d=function(){return a("resetPasswordToken")||a("enrollAccountToken")||a("justVerifiedEmail")};var f=function(){if(!d())r("dropdownVisible",true)};var p=function(){l("errorMessage",null);l("infoMessage",null)};var m=function(e){if(n.isCordova)r("configureOnDesktopVisible",true);else{r("configureLoginServiceDialogVisible",true);r("configureLoginServiceDialogServiceName",e);r("configureLoginServiceDialogSaveDisabled",true)}};i._loginButtonsSession={set:r,_set:l,get:a,closeDropdown:u,infoMessage:c,errorMessage:g,isMessageDialogVisible:d,ensureMessageVisible:f,resetMessages:p,configureService:m}},
147"login_buttons.js":function(e,o,s){s.export({displayName:function(){return a},getLoginServices:function(){return u},hasPasswordService:function(){return c},hasPasswordlessService:function(){return g},dropdown:function(){return d},validateUsername:function(){return f},validateEmail:function(){return p},validatePassword:function(){return m}});var r;s.link("./accounts_ui.js",{passwordSignupFields:function(n){r=n}},0);var l=i._loginButtonsSession;t.loginButtons.events({"click #login-buttons-logout":function(){return n.logout(function(){return l.closeDropdown()})}});t.registerHelper("loginButtons",function(){throw new Error("Use {{> loginButtons}} instead of {{loginButtons}}")});var a=function(){var e=n.user();if(!e)return"";if(e.profile&&e.profile.name)return e.profile.name;if(e.username)return e.username;if(e.emails&&e.emails[0]&&e.emails[0].address)return e.emails[0].address;return""};var u=function(){var n=Package["accounts-oauth"]?i.oauth.serviceNames():[];n.sort();if(c())n.push("password");if(g())n.push("passwordless");return n.map(function(n){return{name:n}})};var c=function(){return!!Package["accounts-password"]};var g=function(){return!!Package["accounts-passwordless"]};var d=function(){return c()||g()||u().length>1};var f=function(n){if(n.length>=3)return true;l.errorMessage("Username must be at least 3 characters long");return false};var p=function(n){if("USERNAME_AND_OPTIONAL_EMAIL"===r()&&""===n)return true;if(n.includes("@"))return true;l.errorMessage("Invalid email");return false};var m=function(n){if(n.length>=6)return true;l.errorMessage("Password must be at least 6 characters long");return false};t._loginButtonsLoggedOut.helpers({dropdown:d,services:u,singleService:function(){var n=u();if(1!==n.length)throw new Error("Shouldn't be rendering this template with more than one configured service");return n[0]},configurationLoaded:function(){return i.loginServicesConfigured()}});t._loginButtonsLoggedIn.helpers({dropdown:d});t._loginButtonsLoggedInSingleLogoutButton.helpers({displayName:a});t._loginButtonsMessages.helpers({errorMessage:function(){return l.get("errorMessage")}});t._loginButtonsMessages.helpers({infoMessage:function(){return l.get("infoMessage")}});t._loginButtonsLoggingInPadding.helpers({dropdown:d})},
147"login_buttons_single.js":function(e,s,r){var a;r.link("./login_buttons.js",{getLoginServices:function(n){a=n}},0);function u(n,e){if(null!=e&&void 0!==l&&e[l.hasInstance])return!!e[l.hasInstance](n);return n instanceof e}var c=i._loginButtonsSession;var g=function(n,e){if(e)if(u(e,i.LoginCancelledError));else if(u(e,o.ConfigError))if(t._configureLoginServiceDialog.templateForService(n))c.configureService(n);else c.errorMessage("No configuration for ".concat(d(n),".\n")+"Use `ServiceConfiguration` to configure it or "+"install the `".concat(n,"-config-ui` package."));else c.errorMessage(e.reason||"Unknown error");else c.closeDropdown()};i.onPageLoadLogin(function(n){if(a().map(function(n){return n.name}).includes(n.type))g(n.type,n.error)});t._loginButtonsLoggedOutSingleLoginButton.events({"click .login-button":function(){var e=this.name;c.resetMessages();var o=n["loginWith".concat("meteor-developer"===e?"MeteorDeveloperAccount":d(e))];var t={};if(i.ui._options.requestPermissions[e])t.requestPermissions=i.ui._options.requestPermissions[e];if(i.ui._options.requestOfflineToken[e])t.requestOfflineToken=i.ui._options.requestOfflineToken[e];if(i.ui._options.forceApprovalPrompt[e])t.forceApprovalPrompt=i.ui._options.forceApprovalPrompt[e];o(t,function(n){g(e,n)})}});t._loginButtonsLoggedOutSingleLoginButton.helpers({cannotConfigure:function(){return!o.configurations.findOne({service:this.name})&&!t._configureLoginServiceDialog.templateForService(this.name)},configured:function(){return!!o.configurations.findOne({service:this.name})},capitalizedName:function(){if("twitter"===this.name)return"X/Twitter";if("github"===this.name)return"GitHub";if("meteor-developer"===this.name)return"Meteor";return d(this.name)}});var d=function(n){var e=null==n?"":String(n);return e.charAt(0).toUpperCase()+e.slice(1)}},
147"login_buttons_dropdown.js":function(o,s,r){var l,a;r.link("./accounts_ui.js",{passwordlessSignupFields:function(n){l=n},passwordSignupFields:function(n){a=n}},0);var u,c,g,d,f,p,m;r.link("./login_buttons.js",{displayName:function(n){u=n},getLoginServices:function(n){c=n},hasPasswordService:function(n){g=n},hasPasswordlessService:function(n){d=n},validateUsername:function(n){f=n},validateEmail:function(n){p=n},validatePassword:function(n){m=n}},1);var w=i._loginButtonsSession;var v=function(n){var e=document.getElementById(n);if(!e)return null;return e.value};var _=function(n){var e=document.getElementById(n);if(!e)return null;return e.value.replace(/^\s*|\s*$/g,"")};var k=function(){if(w.get("inSignupFlow"))L();else h()};var b=function(){w.resetMessages();if(w.get("inPasswordlessConfirmation")){var e=_("login-code-passwordless");n.passwordlessLoginWithToken({email:w.get("passwordlessCodeEmail")},e,function(n){if(n)w.errorMessage(n.reason||"Unknown error");else{w.set("inPasswordlessConfirmation",false);w.set("passwordlessCodeEmail",null)}});return}var o=_("login-email-passwordless");var t=_("login-username-passwordless");if(!o.includes("@"))return void w.errorMessage("Invalid email");if(i._options.forbidClientAccountCreation)return void w.errorMessage("Action not allowed");if(null!==t&&!f(t))return;i.requestLoginTokenForUser({selector:o,userData:{email:o,username:t}},function(n,e){if(n)w.errorMessage(n.reason||"Unknown error");else{var o;w.set("inPasswordlessConfirmation",true);w.set("inSignupFlow",false);w.set("passwordlessCodeEmail",null==e?void 0:null==(o=e.selector)?void 0:o.email)}})};var h=function(){w.resetMessages();var e=_("login-username");var o=_("login-email");var i=_("login-username-or-email");var t=v("login-password");var s;if(null!==e)if(!f(e))return;else s={username:e};else if(null!==o)if(!p(o))return;else s={email:o};else if(null!==i)if(!f(i))return;else s=i;else throw new Error("Unexpected -- no element to use as a login user selector");n.loginWithPassword(s,t,function(n,e){if(n)w.errorMessage(n.reason||"Unknown error");else w.closeDropdown()})};var L=function(){w.resetMessages();var n={};var e=_("login-username");if(null!==e)if(!f(e))return;else n.username=e;var o=_("login-email");if(null!==o)if(!p(o))return;else n.email=o;var t=v("login-password");if(!m(t))return;n.password=t;if(!I())return;i.createUser(n,function(n){if(n)w.errorMessage(n.reason||"Unknown error");else w.closeDropdown()})};var S=function(){w.resetMessages();var n=_("forgot-password-email");if(n.includes("@"))i.forgotPassword({email:n},function(n){if(n)w.errorMessage(n.reason||"Unknown error");else w.infoMessage("Email sent")});else w.errorMessage("Invalid email")};var P=function(){w.resetMessages();var n=v("login-old-password");var e=v("login-password");if(!m(e))return;if(!I())return;i.changePassword(n,e,function(n){if(n)w.errorMessage(n.reason||"Unknown error");else{w.set("inChangePasswordFlow",false);w.set("inMessageOnlyFlow",true);w.infoMessage("Password changed")}})};var I=function(){var n=v("login-password-again");if(null!==n){var e=v("login-password");if(e!==n){w.errorMessage("Passwords don't match");return false}}return true};var B=function(n){var e=a();if(Array.isArray(n))return e.reduce(function(e,o){return e&&n.includes(o)},true);return e.includes(n)};var y=function(n){var e=l();if(Array.isArray(n))return e.reduce(function(e,o){return e&&n.includes(o)},true);return e.includes(n)};t.loginButtons.events({"click #login-name-link, click #login-sign-in-link":function(){return w.set("dropdownVisible",true)},"click .login-close-text":w.closeDropdown});t._loginButtonsLoggedInDropdown.events({"click #login-buttons-open-change-password":function(){w.resetMessages();w.set("inChangePasswordFlow",true)}});t._loginButtonsLoggedInDropdown.helpers({displayName:u,inChangePasswordFlow:function(){return w.get("inChangePasswordFlow")},inMessageOnlyFlow:function(){return w.get("inMessageOnlyFlow")},dropdownVisible:function(){return w.get("dropdownVisible")}});t._loginButtonsLoggedInDropdownActions.helpers({allowChangingPassword:function(){if(!Package["accounts-password"])return false;var e=n.user();return e.username||e.emails&&e.emails[0]&&e.emails[0].address}});t._loginButtonsLoggedOutDropdown.events({"click #login-buttons-password":function(n){n.preventDefault();k()},"click #login-buttons-passwordless":function(n){n.preventDefault();b()}
147,"keypress #forgot-password-email":function(n){if(13===n.keyCode){n.preventDefault();S()}},"click #login-buttons-forgot-password":S,"click #signup-link":function(){w.resetMessages();var n=_("login-username");var o=_("login-email");var i=_("login-username-or-email");var t=v("login-password");w.set("inSignupFlow",true);w.set("inForgotPasswordFlow",false);e.flush();if(null!==n)document.getElementById("login-username").value=n;else if(null!==o)document.getElementById("login-email").value=o;else if(null!==i)if(i.includes("@"))document.getElementById("login-email").value=i;else document.getElementById("login-username").value=i;if(null!==t)document.getElementById("login-password").value=t;var s=document.getElementById("login-dropdown-list");s.style.display="none";s.offsetHeight;s.style.display="block"},"click #forgot-password-link":function(){w.resetMessages();var n=_("login-email");var o=_("login-username-or-email");w.set("inSignupFlow",false);w.set("inForgotPasswordFlow",true);e.flush();if(null!==n)document.getElementById("forgot-password-email").value=n;else if(null!==o){if(o.includes("@"))document.getElementById("forgot-password-email").value=o}},"click #resend-passwordless-code":function(){w.set("inPasswordlessConfirmation",false);w.set("passwordlessCodeEmail",null)},"click #back-to-login-link":function(){w.resetMessages();var n=_("login-username");var o=_("login-email")||_("forgot-password-email");var i=v("login-password");w.set("inSignupFlow",false);w.set("inForgotPasswordFlow",false);e.flush();if(document.getElementById("login-username")&&null!==n)document.getElementById("login-username").value=n;if(document.getElementById("login-email")&&null!==o)document.getElementById("login-email").value=o;var t=document.getElementById("login-username-or-email");if(t){if(null!==o)t.value=o;if(null!==n)t.value=n}if(null!==i)document.getElementById("login-password").value=i}});t._loginButtonsLoggedOutDropdown.helpers({additionalClasses:function(){if(!g()||!d())return false;if(w.get("inSignupFlow"))return"login-form-create-account";if(w.get("inForgotPasswordFlow"))return"login-form-forgot-password";return"login-form-sign-in"},dropdownVisible:function(){return w.get("dropdownVisible")},hasPasswordService:g,hasPasswordlessService:d});t._loginButtonsLoggedOutAllServices.helpers({services:c,isPasswordService:function(){return"password"===this.name},isPasswordlessService:function(){return"passwordless"===this.name},hasOtherServices:function(){var n=0;if(d())n++;if(g())n++;return c().length>n},displaySeparatorForPasswordless:function(){return g()||c().length>1},isInternalService:function(){return"password"===this.name||"passwordless"===this.name},hasInternalService:function(){return g()||d()},hasPasswordService:g,hasPasswordlessService:d});t._loginButtonsLoggedOutPasswordlessService.helpers({fields:function(){return[{fieldName:"email-passwordless",fieldLabel:"Email",autocomplete:"email",inputType:"email",visible:function(){return!w.get("inPasswordlessConfirmation")}},{fieldName:"username-passwordless",fieldLabel:"Username",autocomplete:"username",inputType:"text",visible:function(){return y("USERNAME_AND_EMAIL")&&w.get("inSignupFlow")}},{fieldName:"code-passwordless",fieldLabel:"Code",inputType:"text",visible:function(){return w.get("inPasswordlessConfirmation")}}]},inForgotPasswordFlow:function(){return w.get("inForgotPasswordFlow")},inPasswordlessConfirmation:function(){return w.get("inPasswordlessConfirmation")},inLoginFlow:function(){return!w.get("inSignupFlow")&&!w.get("inForgotPasswordFlow")},inSignupFlow:function(){return w.get("inSignupFlow")},showCreateAccountLink:function(){return!i._options.forbidClientAccountCreation}});t._loginButtonsLoggedOutPasswordService.helpers({fields:function(){var n=[{fieldName:"username-or-email",fieldLabel:"Username or Email",autocomplete:"username email",visible:function(){return B(["USERNAME_AND_EMAIL","USERNAME_AND_OPTIONAL_EMAIL"])}},{fieldName:"username",fieldLabel:"Username",autocomplete:"username",visible:function(){return B("USERNAME_ONLY")}},{fieldName:"email",fieldLabel:"Email",inputType:"email",autocomplete:"email",visible:function(){return B("EMAIL_ONLY")}},{fieldName:"password",fieldLabel:"Password",inputType:"password",autocomplete:"current-password",visible:function(){return true}}];var e=[{fieldName:"username",fieldLabel:"Username",autocomplete:"username",visible:function(){return B(["USERNAME_AND_EMAIL","USERNAME_AND_OPTIONAL_EMAIL","USERNAME_ONLY"])}},{fieldName:"email",fieldLabel:"Email",inputType:"email",autocomplete:"email",visible:function(){return B(["USERNAME_AND_EMAIL","EMAIL_ONLY"])}},{fieldName:"email",fieldLabel:"Email (optional)",inputType:"email",autocomplete:"email",visible:function(){return B("USERNAME_AND_OPTIONAL_EMAIL")}},{fieldName:"password",fieldLabel:"Password",inputType:"password",autocomplete:"new-password",visible:function(){return true}},{fieldName:"password-again",fieldLabel:"Password (again)",inputType:"password",autocomplete:"new-password",visible:function(){return B(["USERNAME_AND_OPTIONAL_EMAIL","USERNAME_ONLY"])}}];return w.get("inSignupFlow")?e:n},inForgotPasswordFlow:function(){return w.get("inForgotPasswordFlow")},inLoginFlow:function(){return!w.get("inSignupFlow")&&!w.get("inForgotPasswordFlow")},inSignupFlow:function(){return w.get("inSignupFlow")},showCreateAccountLink:function(){return!i._options.forbidClientAccountCreation},showForgotPasswordLink:function(){return B(["USERNAME_AND_EMAIL","USERNAME_AND_OPTIONAL_EMAIL","EMAIL_ONLY"])}});t._loginButtonsFormField.helpers({inputType:function(){return this.inputType||"text"}});t._loginButtonsChangePassword.events({"keypress #login-old-password, keypress #login-password, keypress #login-password-again":function(n){if(13===n.keyCode)P()},"click #login-buttons-do-change-password":P});t._loginButtonsChangePassword.helpers({fields:function(){var e=n.user(),o=e.username,i=e.emails;var t;if(i)t=i[0].address;return[{fieldName:"username",fieldLabel:"Username",autocomplete:"username",fieldStyle:"display: none;",fieldValue:o,visible:function(){return B(["USERNAME_AND_EMAIL","USERNAME_AND_OPTIONAL_EMAIL","USERNAME_ONLY"])}},{fieldName:"email",fieldLabel:"Email",inputType:"email",autocomplete:"email",fieldStyle:"display: none;",fieldValue:t,visible:function(){return B(["USERNAME_AND_EMAIL","EMAIL_ONLY"])}},{fieldName:"old-password",fieldLabel:"Current Password",inputType:"password",autocomplete:"current-password",visible:function(){return true}},{fieldName:"password",fieldLabel:"New Password",inputType:"password",autocomplete:"new-password",visible:function(){return true}},{fieldName:"password-again",fieldLabel:"New Password (again)",inputType:"password",autocomplete:"new-password",visible:function(){return B(["USERNAME_AND_OPTIONAL_EMAIL","USERNAME_ONLY"])}}]}})},
147"login_buttons_dialogs.js":function(e,o,s){var r,l,a;s.link("./login_buttons.js",{displayName:function(n){r=n},dropdown:function(n){l=n},validatePassword:function(n){a=n}},0);var u=i._loginButtonsSession;var c;i.onResetPasswordLink(function(n,e){u.set("resetPasswordToken",n);c=e});i.onEnrollmentLink(function(n,e){u.set("enrollAccountToken",n);c=e});i.onEmailVerificationLink(function(n,e){i.verifyEmail(n,function(n){if(!n)u.set("justVerifiedEmail",true);e()})});t._resetPasswordDialog.events({"click #login-buttons-reset-password-button":function(){return g()},"keypress #reset-password-new-password":function(n){if(13===n.keyCode)g()},"click #login-buttons-cancel-reset-password":function(){u.set("resetPasswordToken",null);if(c)c()}});var g=function(){u.resetMessages();var n=document.getElementById("reset-password-new-password").value;if(!a(n))return;i.resetPassword(u.get("resetPasswordToken"),n,function(n){if(n)u.errorMessage(n.reason||"Unknown error");else{u.set("resetPasswordToken",null);u.set("justResetPassword",true);if(c)c()}})};t._resetPasswordDialog.helpers({displayName:r,inResetPasswordFlow:function(){return u.get("resetPasswordToken")}});t._justResetPasswordDialog.events({"click #just-verified-dismiss-button":function(){return u.set("justResetPassword",false)}});t._justResetPasswordDialog.helpers({visible:function(){return u.get("justResetPassword")},displayName:r});var d=function(){u.resetMessages();var n=document.getElementById("enroll-account-password").value;if(!a(n))return;i.resetPassword(u.get("enrollAccountToken"),n,function(n){if(n)u.errorMessage(n.reason||"Unknown error");else{u.set("enrollAccountToken",null);if(c)c()}})};t._enrollAccountDialog.events({"click #login-buttons-enroll-account-button":d,"keypress #enroll-account-password":function(n){if(13===n.keyCode)d()},"click #login-buttons-cancel-enroll-account":function(){u.set("enrollAccountToken",null);if(c)c()}});t._enrollAccountDialog.helpers({displayName:r,inEnrollAccountFlow:function(){return u.get("enrollAccountToken")}});t._justVerifiedEmailDialog.events({"click #just-verified-dismiss-button":function(){return u.set("justVerifiedEmail",false)}});t._justVerifiedEmailDialog.helpers({visible:function(){return u.get("justVerifiedEmail")},displayName:r});t._loginButtonsMessagesDialog.events({"click #messages-dialog-dismiss-button":function(){return u.resetMessages()}});t._loginButtonsMessagesDialog.helpers({visible:function(){var n=u.get("infoMessage")||u.get("errorMessage");return!l()&&n}});t._configureLoginServiceDialog.events({"click .configure-login-service-dismiss-button":function(){return u.set("configureLoginServiceDialogVisible",false)},"click #configure-login-service-dialog-save-configuration":function(){if(u.get("configureLoginServiceDialogVisible")&&!u.get("configureLoginServiceDialogSaveDisabled")){var e=u.get("configureLoginServiceDialogServiceName");var o={service:e};p().forEach(function(n){o[n.property]=document.getElementById("configure-login-service-dialog-".concat(n.property)).value.replace(/^\s*|\s*$/g,"")});[].slice.call(document.getElementById("configure-login-service-dialog").getElementsByTagName("input"));o.loginStyle=document.querySelector('#configure-login-service-dialog input[name="loginStyle"]:checked').value;i.connection.call("configureLoginService",o,function(o,i){if(o)n._debug("Error configuring login service ".concat(e),o);else u.set("configureLoginServiceDialogVisible",false)})}},"input, keyup input":function(n){if(0===n.target.id.indexOf("configure-login-service-dialog"))f()}});var f=function(){var n=p().reduce(function(n,e){return n||""===document.getElementById("configure-login-service-dialog-".concat(e.property)).value},false);u.set("configureLoginServiceDialogSaveDisabled",n)};t._configureLoginServiceDialog.templateForService=function(n){n=n||u.get("configureLoginServiceDialogServiceName");return t["configureLoginServiceDialogFor".concat("meteor-developer"===n?"MeteorDeveloper":m(n))]};var p=function(){var n=t._configureLoginServiceDialog.templateForService();return n.fields()};t._configureLoginServiceDialog.helpers({configurationFields:p,visible:function(){return u.get("configureLoginServiceDialogVisible")},configurationSteps:function(){return t._configureLoginServiceDialog.templateForService()},saveDisabled:function(){return u.get("configureLoginServiceDialogSaveDisabled")}});var m=function(n){n=null==n?"":String(n);return n.charAt(0).toUpperCase()+n.slice(1)};t._configureLoginOnDesktopDialog.helpers({visible:function(){return u.get("configureOnDesktopVisible")}});t._configureLoginOnDesktopDialog.events({"click #configure-on-desktop-dismiss-button":function(){return u.set("configureOnDesktopVisible",false)}})}}}}},{extensions:[".js",".json",".html",".css"]});return{require:d,eagerModulePaths:["/node_modules/meteor/accounts-ui-unstyled/accounts_ui.js","/node_modules/meteor/accounts-ui-unstyled/template.login_buttons.js","/node_modules/meteor/accounts-ui-unstyled/template.login_buttons_single.js","/node_modules/meteor/accounts-ui-unstyled/template.login_buttons_dropdown.js","/node_modules/meteor/accounts-ui-unstyled/template.login_buttons_dialogs.js","/node_modules/meteor/accounts-ui-unstyled/login_buttons_session.js","/node_modules/meteor/accounts-ui-unstyled/login_buttons.js","/node_modules/meteor/accounts-ui-unstyled/login_buttons_single.js","/node_modules/meteor/accounts-ui-unstyled/login_buttons_dropdown.js","/node_modules/meteor/accounts-ui-unstyled/login_buttons_dialogs.js"]}});
148
149Package["core-runtime"].queue("accounts-ui",function(){return{}});
150
151Package["core-runtime"].queue("useraccounts:core",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package["accounts-base"].Accounts;var i=Package["service-configuration"].ServiceConfiguration;var n=Package.check.check;var r=Package.check.Match;var a=Package.underscore._;var s=Package["reactive-var"].ReactiveVar;var o=Package.blaze.Blaze;Package.blaze.UI;Package.blaze.Handlebars;var l=Package["reactive-dict"].ReactiveDict;var u=Package["templating-runtime"].Template;var c=Package.jquery.$;Package.jquery.jQuery;var d=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var f=Package.promise.Promise;Package.htmljs.HTML;var p=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var g=Package.spacebars.Spacebars;var h,m,v,w,_,b,k,y,S,O,P,x,I,E,L;
151var C=d({node_modules:{meteor:{"useraccounts:core":{lib:{
151"utils.js":function(){h=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},
151"field.js":function(){m=function(e){n(e,P);a.defaults(this,e);this.validating=new s(false);this.status=new s(null)};if(e.isClient)m.prototype.clearStatus=function(){return this.status.set(null)};if(e.isServer)m.prototype.clearStatus=function(){};m.prototype.fixValue=function(e){if("checkbox"===this.type)return!!e;if("select"===this.type)return e;if("radio"===this.type)return e;if(this.trim)e=e.trim();if(this.lowercase)e=e.toLowerCase();if(this.uppercase)e=e.toUpperCase();if(!!this.transform)e=this.transform(e);return e};if(e.isClient)m.prototype.getDisplayName=function(e){var t=this.displayName;if(a.isFunction(t))t=t();else if(a.isObject(t))t=t[e]||t["default"];if(!t)t=h(this._id);return t};if(e.isClient)m.prototype.getPlaceholder=function(e){var t=this.placeholder;if(a.isObject(t))t=t[e]||t["default"];if(!t)t=h(this._id);return t};m.prototype.getStatus=function(){return this.status.get()};if(e.isClient)m.prototype.getValue=function(e){if("checkbox"===this.type)return!!e.$("#at-field-"+this._id+":checked").val();if("radio"===this.type)return e.$("[name=at-field-"+this._id+"]:checked").val();return e.$("#at-field-"+this._id).val()};if(e.isClient)m.prototype.hasError=function(){return this.negativeValidation&&this.status.get()};if(e.isClient)m.prototype.hasIcon=function(){if(this.showValidating&&this.isValidating())return true;if(this.negativeFeedback&&this.hasError())return true;if(this.positiveFeedback&&this.hasSuccess())return true};if(e.isClient)m.prototype.hasSuccess=function(){return this.positiveValidation&&false===this.status.get()};if(e.isClient)m.prototype.iconClass=function(){if(this.isValidating())return I.texts.inputIcons["isValidating"];if(this.hasError())return I.texts.inputIcons["hasError"];if(this.hasSuccess())return I.texts.inputIcons["hasSuccess"]};if(e.isClient)m.prototype.isValidating=function(){return this.validating.get()};if(e.isClient)m.prototype.setError=function(e){n(e,r.OneOf(String,void 0,Boolean));if(false===e)return this.status.set(false);return this.status.set(e||true)};if(e.isServer)m.prototype.setError=function(e){};if(e.isClient)m.prototype.setSuccess=function(){return this.status.set(false)};if(e.isServer)m.prototype.setSuccess=function(){};if(e.isClient)m.prototype.setValidating=function(e){n(e,Boolean);return this.validating.set(e)};if(e.isServer)m.prototype.setValidating=function(e){};if(e.isClient)m.prototype.setValue=function(e,t){if("checkbox"===this.type)return void e.$("#at-field-"+this._id).prop("checked",true);if("radio"===this.type)return void e.$("[name=at-field-"+this._id+"]").prop("checked",true);e.$("#at-field-"+this._id).val(t)};m.prototype.validate=function(e,t){n(e,r.OneOf(void 0,String,Boolean));this.setValidating(true);this.clearStatus();if(a.isUndefined(e)||""===e)if(t)if(this.required){this.setError(I.texts.requiredField);this.setValidating(false);return I.texts.requiredField}else{this.setSuccess();this.setValidating(false);return false}else{this.clearStatus();this.setValidating(false);return null}var i=e.length;var s=this.minLength;if(s&&i<s){this.setError(I.texts.minRequiredLength+": "+s);this.setValidating(false);return I.texts.minRequiredLength+": "+s}var o=this.maxLength;if(o&&i>o){this.setError(I.texts.maxAllowedLength+": "+o);this.setValidating(false);return I.texts.maxAllowedLength+": "+o}if(this.re&&i&&!e.match(this.re)){this.setError(this.errStr);this.setValidating(false);return this.errStr}if(this.func){var l=this.func(e);var u=true===l?this.errStr||true:l;if(a.isUndefined(l))return u;this.status.set(u);this.setValidating(false);return u}this.setSuccess();this.setValidating(false);return false}},
151"core.js":function(){v={changePwd:r.Optional(String),enrollAccount:r.Optional(String),forgotPwd:r.Optional(String),resetPwd:r.Optional(String),signIn:r.Optional(String),signUp:r.Optional(String),verifyEmail:r.Optional(String),resendVerificationEmail:r.Optional(String)};w={accountsCreationDisabled:r.Optional(String),cannotRemoveService:r.Optional(String),captchaVerification:r.Optional(String),loginForbidden:r.Optional(String),mustBeLoggedIn:r.Optional(String),pwdMismatch:r.Optional(String),validationErrors:r.Optional(String),verifyEmailFirst:r.Optional(String)};_={emailSent:r.Optional(String),emailVerified:r.Optional(String),pwdChanged:r.Optional(String),pwdReset:r.Optional(String),pwdSet:r.Optional(String),signUpVerifyEmail:r.Optional(String),verificationEmailSent:r.Optional(String)};b={hasError:r.Optional(String),hasSuccess:r.Optional(String),isValidating:r.Optional(String)};k=r.Where(function(e){n(e,Object);a.each(a.values(e),function(e){n(e,String)});return true});y={button:r.Optional(v),errors:r.Optional(w),info:r.Optional(_),inputIcons:r.Optional(b),maxAllowedLength:r.Optional(String),minRequiredLength:r.Optional(String),navSignIn:r.Optional(String),navSignOut:r.Optional(String),optionalField:r.Optional(String),pwdLink_link:r.Optional(String),pwdLink_pre:r.Optional(String),pwdLink_suff:r.Optional(String),requiredField:r.Optional(String),resendVerificationEmailLink_pre:r.Optional(String),resendVerificationEmailLink_link:r.Optional(String),resendVerificationEmailLink_suff:r.Optional(String),sep:r.Optional(String),signInLink_link:r.Optional(String),signInLink_pre:r.Optional(String),signInLink_suff:r.Optional(String),signUpLink_link:r.Optional(String),signUpLink_pre:r.Optional(String),signUpLink_suff:r.Optional(String),socialAdd:r.Optional(String),socialConfigure:r.Optional(String),socialIcons:r.Optional(k),socialRemove:r.Optional(String),socialSignIn:r.Optional(String),socialSignUp:r.Optional(String),socialWith:r.Optional(String),termsAnd:r.Optional(String),termsPreamble:r.Optional(String),termsPrivacy:r.Optional(String),termsTerms:r.Optional(String),title:r.Optional(v)};S={confirmPassword:r.Optional(Boolean),defaultState:r.Optional(String),enablePasswordChange:r.Optional(Boolean),enforceEmailVerification:r.Optional(Boolean),focusFirstInput:r.Optional(Boolean),forbidClientAccountCreation:r.Optional(Boolean),lowercaseUsername:r.Optional(Boolean),overrideLoginErrors:r.Optional(Boolean),sendVerificationEmail:r.Optional(Boolean),socialLoginStyle:r.Optional(r.OneOf("popup","redirect")),defaultLayout:r.Optional(String),hideSignInLink:r.Optional(Boolean),hideSignUpLink:r.Optional(Boolean),showAddRemoveServices:r.Optional(Boolean),showForgotPasswordLink:r.Optional(Boolean),showResendVerificationEmailLink:r.Optional(Boolean),showLabels:r.Optional(Boolean),showPlaceholders:r.Optional(Boolean),continuousValidation:r.Optional(Boolean),negativeFeedback:r.Optional(Boolean),negativeValidation:r.Optional(Boolean),positiveFeedback:r.Optional(Boolean),positiveValidation:r.Optional(Boolean),showValidating:r.Optional(Boolean),privacyUrl:r.Optional(String),termsUrl:r.Optional(String),homeRoutePath:r.Optional(String),redirectTimeout:r.Optional(Number),onLogoutHook:r.Optional(Function),onSubmitHook:r.Optional(Function),preSignUpHook:r.Optional(Function),postSignUpHook:r.Optional(Function),texts:r.Optional(y),reCaptcha:r.Optional({data_type:r.Optional(r.OneOf("audio","image")),secretKey:r.Optional(String),siteKey:r.Optional(String),theme:r.Optional(r.OneOf("dark","light"))}),showReCaptcha:r.Optional(Boolean)};O={default:r.Optional(String),changePwd:r.Optional(String),enrollAccount:r.Optional(String),forgotPwd:r.Optional(String),resetPwd:r.Optional(String),signIn:r.Optional(String),signUp:r.Optional(String)};P={_id:String,type:String,required:r.Optional(Boolean),displayName:r.Optional(r.OneOf(String,r.Where(a.isFunction),O)),placeholder:r.Optional(r.OneOf(String,O)),select:r.Optional([{text:String,value:r.Any}]),minLength:r.Optional(r.Integer),maxLength:r.Optional(r.Integer),re:r.Optional(RegExp),func:r.Optional(r.Where(a.isFunction)),errStr:r.Optional(String),continuousValidation:r.Optional(Boolean),negativeFeedback:r.Optional(Boolean),negativeValidation:r.Optional(Boolean),positiveValidation:r.Optional(Boolean),positiveFeedback:r.Optional(Boolean),trim:r.Optional(Boolean),lowercase:r.Optional(Boolean),uppercase:r.Optional(Boolean),transform:r.Optional(r.Where(a.isFunction)),options:r.Optional(Object),template:r.Optional(String)};x=function(){};x.prototype.CONFIG_PAT=S;x.prototype.INPUT_TYPES=["checkbox","email","hidden","password","radio","select","tel","text","url"];x.prototype.options={showAddRemoveServices:false,showForgotPasswordLink:false,showResendVerificationEmailLink:false,showLabels:true,showPlaceholders:true,confirmPassword:true,defaultState:"signIn",enablePasswordChange:false,focusFirstInput:!e.isCordova,forbidClientAccountCreation:false,lowercaseUsername:false,overrideLoginErrors:true,sendVerificationEmail
151:false,socialLoginStyle:"popup",privacyUrl:void 0,termsUrl:void 0,onSubmitHook:void 0};x.prototype.texts={button:{changePwd:"updateYourPassword",enrollAccount:"signUp",forgotPwd:"emailResetLink",resetPwd:"setPassword",signIn:"signIn",signUp:"signUp",resendVerificationEmail:"Send email again"},errors:{accountsCreationDisabled:"Client side accounts creation is disabled!!!",cannotRemoveService:"Cannot remove the only active service!",captchaVerification:"Captcha verification failed!",loginForbidden:"error.accounts.Login forbidden",mustBeLoggedIn:"error.accounts.Must be logged in",pwdMismatch:"error.pwdsDontMatch",validationErrors:"Validation Errors",verifyEmailFirst:"Please verify your email first. Check the email and follow the link!"},navSignIn:"signIn",navSignOut:"signOut",info:{emailSent:"info.emailSent",emailVerified:"info.emailVerified",pwdChanged:"info.passwordChanged",pwdReset:"info.passwordReset",pwdSet:"Password Set",signUpVerifyEmail:"Successful Registration! Please check your email and follow the instructions.",verificationEmailSent:"A new email has been sent to you. If the email doesn't show up in your inbox, be sure to check your spam folder."},inputIcons:{isValidating:"fa fa-spinner fa-spin",hasSuccess:"fa fa-check",hasError:"fa fa-times"},maxAllowedLength:"Maximum allowed length",minRequiredLength:"Minimum required length",optionalField:"optional",pwdLink_pre:"",pwdLink_link:"forgotPassword",pwdLink_suff:"",requiredField:"Required Field",resendVerificationEmailLink_pre:"Verification email lost?",resendVerificationEmailLink_link:"Send again",resendVerificationEmailLink_suff:"",sep:"OR",signInLink_pre:"ifYouAlreadyHaveAnAccount",signInLink_link:"signin",signInLink_suff:"",signUpLink_pre:"dontHaveAnAccount",signUpLink_link:"signUp",signUpLink_suff:"",socialAdd:"add",socialConfigure:"configure",socialIcons:{"meteor-developer":"fa fa-rocket"},socialRemove:"remove",socialSignIn:"signIn",socialSignUp:"signUp",socialWith:"with",termsPreamble:"clickAgree",termsPrivacy:"privacyPolicy",termsAnd:"and",termsTerms:"terms",title:{changePwd:"changePassword",enrollAccount:"createAccount",forgotPwd:"resetYourPassword",resetPwd:"resetYourPassword",signIn:"signIn",signUp:"createAccount",verifyEmail:"",resendVerificationEmail:"Send the verification email again"}};x.prototype.SPECIAL_FIELDS=["password_again","username_and_email"];x.prototype._fields=[new m({_id:"email",type:"email",required:true,lowercase:true,trim:true,func:function(e){return!a.contains(e,"@")},errStr:"Invalid email"}),new m({_id:"password",type:"password",required:true,minLength:6,displayName:{default:"password",changePwd:"newPassword",resetPwd:"newPassword"},placeholder:{default:"password",changePwd:"newPassword",resetPwd:"newPassword"}})];x.prototype._initialized=false;x.prototype._isValidInputType=function(e){return -1!==a.indexOf(this.INPUT_TYPES,e)};x.prototype.addField=function(t){if(this._initialized)throw new Error("AccountsTemplates.addField should strictly be called before AccountsTemplates.init!");t=a.pick(t,a.keys(P));n(t,P);if(-1!==a.indexOf(a.pluck(this._fields,"_id"),t._id))throw new Error("A field called "+t._id+" already exists!");if(!this._isValidInputType(t.type))throw new Error("field.type is not valid!");if(void 0!==t.minLength&&t.minLength<=0)throw new Error("field.minLength should be greater than zero!");if(void 0!==t.maxLength&&t.maxLength<=0)throw new Error("field.maxLength should be greater than zero!");if(void 0!==t.minLength&&void 0!==t.minLength&&t.maxLength<t.minLength)throw new Error("field.maxLength should be greater than field.maxLength!");if(!(e.isServer&&a.contains(this.SPECIAL_FIELDS,t._id)))this._fields.push(new m(t));return this._fields};x.prototype.addFields=function(e){var t;try{t=e.length>0&&"0"in Object(e)}catch(e){throw new Error("field argument should be an array of valid field objects!")}if(t)a.map(e,function(e){this.addField(e)},this);else throw new Error("field argument should be an array of valid field objects!");return this._fields};x.prototype.configure=function(e){if(this._initialized)throw new Error("Configuration options must be set before AccountsTemplates.init!");n(e,S);
151var t=a.omit(e,"texts","reCaptcha");this.options=a.defaults(t,this.options);var i=e.reCaptcha;if(i)this.options.reCaptcha=a.defaults(i,this.options.reCaptcha||{});if(e.texts){var r=e.texts;var s=a.omit(r,"button","errors","info","inputIcons","socialIcons","title");this.texts=a.defaults(s,this.texts);if(r.button)this.texts.button=a.defaults(r.button,this.texts.button);if(r.errors)this.texts.errors=a.defaults(r.errors,this.texts.errors);if(r.info)this.texts.info=a.defaults(r.info,this.texts.info);if(r.inputIcons)this.texts.inputIcons=a.defaults(r.inputIcons,this.texts.inputIcons);if(r.socialIcons)this.texts.socialIcons=a.defaults(r.socialIcons,this.texts.socialIcons);if(r.title)this.texts.title=a.defaults(r.title,this.texts.title)}};x.prototype.configureRoute=function(e,t){console.warn("You now need a routing package like useraccounts:iron-routing or useraccounts:flow-routing to be able to configure routes!")};x.prototype.hasField=function(e){return!!this.getField(e)};x.prototype.getField=function(e){var t=a.filter(this._fields,function(t){return t._id===e});return 1===t.length?t[0]:void 0};x.prototype.getFields=function(){return this._fields};x.prototype.getFieldIds=function(){return a.pluck(this._fields,"_id")};x.prototype.getRoutePath=function(e){return"#"};x.prototype.oauthServicesHelper=function(e,i){var n=a.map(e,function(e){return{_id:e,configured:a.contains(i,e)}});var r=void 0!==t._loginButtonsSession;if(!r)n=a.filter(n,function(e){return e.configured});n=a.sortBy(n,function(e){return e._id});return n};x.prototype.removeField=function(t){if(this._initialized)throw new Error("AccountsTemplates.removeField should strictly be called before AccountsTemplates.init!");var i=a.indexOf(a.pluck(this._fields,"_id"),t);if(-1!==i)return this._fields.splice(i,1)[0];if(!(e.isServer&&a.contains(this.SPECIAL_FIELDS,t)))throw new Error("A field called "+t+" does not exist!")}},
151"client.js":function(){"use strict";x.prototype.STATES=["changePwd","enrollAccount","forgotPwd","hide","resetPwd","signIn","signUp","verifyEmail","resendVerificationEmail"];x.prototype._loginType="";x.prototype._disabled=false;x.prototype._isValidState=function(e){return a.contains(this.STATES,e)};x.prototype.avoidRedirect=false;x.prototype.avoidClearError=false;x.prototype.paramToken=null;x.prototype.loginType=function(){return this._loginType};x.prototype.getparamToken=function(){return this.paramToken};x.prototype.getState=function(){return this.state.form.get("state")};x.prototype.disabled=function(e){return this.state.form.equals("disabled",true)?"disabled":e};x.prototype.setDisabled=function(e){n(e,Boolean);return this.state.form.set("disabled",e)};x.prototype.setState=function(t,i){n(t,String);if(!this._isValidState(t)||this.options.forbidClientAccountCreation&&"signUp"===t)throw new e.Error(500,"Internal server error","accounts-templates-core package got an invalid state value!");this.state.form.set("state",t);if(!this.avoidClearError)this.clearState();this.avoidClearError=false;if(a.isFunction(i))i()};x.prototype.clearState=function(){a.each(this._fields,function(e){e.clearStatus()});var e=this.state.form;e.set("error",null);e.set("result",null);e.set("message",null);I.setDisabled(false)};x.prototype.clearError=function(){this.state.form.set("error",null)};x.prototype.clearResult=function(){this.state.form.set("result",null)};x.prototype.clearMessage=function(){this.state.form.set("message",null)};x.prototype.oauthServices=function(){var e=t.oauth&&t.loginServicesConfigured()&&t.oauth.serviceNames()||[];var n=[];if(i.configurations)n=i.configurations.find().map(function(e){return e.service});return x.prototype.oauthServicesHelper(e,n)};x.prototype.init=function(){console.warn("[AccountsTemplates] There is no more need to call AccountsTemplates.init()! Simply remove the call ;-)")};x.prototype._init=function(){if(this._initialized)return;var t=this.hasField("username");var i=this.hasField("email");if(t&&i)this._loginType="username_and_email";else this._loginType=t?"username":"email";if("username_and_email"===this._loginType){if(!this.hasField("username_and_email"))this.addField({_id:"username_and_email",type:"text",displayName:"usernameOrEmail",placeholder:"usernameOrEmail",required:true})}if(this.options.confirmPassword){if(!this.hasField("password_again")){var n=a.clone(this.getField("password"));n._id="password_again";n.displayName={default:"passwordAgain",changePwd:"newPasswordAgain",resetPwd:"newPasswordAgain"};n.placeholder={default:"passwordAgain",changePwd:"newPasswordAgain",resetPwd:"newPasswordAgain"};this.addField(n)}}else if(this.hasField("password_again"))throw new Error("AccountsTemplates: a field password_again was added but confirmPassword is set to false!");if(this.options.enablePasswordChange){if(!this.hasField("current_password"))this.addField({_id:"current_password",type:"password",displayName:"currentPassword",placeholder:"currentPassword",required:true})}var r=function(e,t){var i=I.getFieldIds();var n=a.indexOf(i,t);if(-1===n)return;var r=a.indexOf(i,e);if(-1===r)return;if(-1!==r&&r!==n+1){var s=I._fields.splice(r,1)[0];var o=I.getFieldIds();var l=a.indexOf(o,t);I._fields.splice(l+1,0,s)}};var s=function(e,t){var i=I.getFieldIds();var n=a.indexOf(i,t);if(-1===n)return;var r=a.indexOf(i,e);if(-1===r)return;if(-1!==r&&r!==n-1){var s=I._fields.splice(r,1)[0];var o=I.getFieldIds();var l=a.indexOf(o,t);I._fields.splice(l,0,s)}};r("username_and_email","username");r("username_and_email","email");s("current_password","password");r("password","current_password");r("password_again","password");var o=!!I.options.positiveValidation;var c=!!I.options.negativeValidation;var d=!!I.options.showValidating;var f=!!I.options.continuousValidation;var p=!!I.options.negativeFeedback;var g=!!I.options.positiveFeedback;a.each(this._fields,function(e){switch(e._id){case"current_password":e.visible=["changePwd"];break;case"email":e.visible=["forgotPwd","signUp","resendVerificationEmail"];
151if("email"===I.loginType())e.visible.push("signIn");break;case"password":e.visible=["changePwd","enrollAccount","resetPwd","signIn","signUp"];break;case"password_again":e.visible=["changePwd","enrollAccount","resetPwd","signUp"];break;case"username":e.visible=["signUp"];if("username"===I.loginType())e.visible.push("signIn");break;case"username_and_email":e.visible=[];if("username_and_email"===I.loginType())e.visible.push("signIn");break;default:e.visible=["signUp"]}var t=e.positiveValidation;if(a.isUndefined(t))e.positiveValidation=o;var i=e.negativeValidation;if(a.isUndefined(i))e.negativeValidation=c;e.validation=e.positiveValidation||e.negativeValidation;if(a.isUndefined(e.continuousValidation))e.continuousValidation=f;e.continuousValidation=e.validation&&e.continuousValidation;if(a.isUndefined(e.negativeFeedback))e.negativeFeedback=p;if(a.isUndefined(e.positiveFeedback))e.positiveFeedback=g;e.feedback=e.negativeFeedback||e.positiveFeedback;var n=e.showValidating;if(a.isUndefined(n))e.showValidating=d;if(e.template)if(e.template in u)u[e.template].helpers(I.atInputHelpers);else console.warn("[UserAccounts] Warning no template "+e.template+" found!")});var h=new l;h.set("disabled",false);h.set("state","signIn");h.set("result",null);h.set("error",null);h.set("message",null);this.state={form:h};if(this.options.showAddRemoveServices)e.subscribe("userRegisteredServices");if(this.options.showReCaptcha){var m=null;var v=null;var w=null;var _=null;if(I.options.reCaptcha){m=I.options.reCaptcha.siteKey;v=I.options.reCaptcha.secretKey}if(e.settings&&e.settings.public&&e.settings.public.reCaptcha){w=e.settings.public.reCaptcha.siteKey;_=e.settings.public.reCaptcha.secretKey}if(v||_){if(v)I.options.reCaptcha.secretKey=null;if(_)e.settings.public.reCaptcha.secretKey=null;var b=v?"User Accounts configuration!":"Meteor settings!";throw new e.Error(401,"User Accounts: DANGER - reCaptcha private key leaked to client from "+b+" Provide the key in server settings ONLY.")}if(!m&&!w)throw new e.Error(401,"User Accounts: reCaptcha site key not found! Please provide it or set showReCaptcha to false.")}this._initialized=true};x.prototype.linkClick=function(e){if(I.disabled())return;I.setState(e);if(I.options.focusFirstInput){var t=a.find(this.getFields(),function(t){return a.contains(t.visible,e)});if(t)c("input#at-field-"+t._id).focus()}};x.prototype.logout=function(){var t=I.options.onLogoutHook;e.logout(function(){if(t)t()})};x.prototype.submitCallback=function(e,t,i){var n=I.options.onSubmitHook;if(n)n(e,t);if(e){if(a.isObject(e.details))a.each(e.details,function(e,t){I.getField(t).setError(e)});else{var r="error.accounts.Unknown error";if(e.reason)r=e.reason;if("error.accounts."!==r.substring(0,15))r="error.accounts."+r;I.state.form.set("error",[r])}I.setDisabled(false);if("signUp"===t&&I.options.showReCaptcha)grecaptcha.reset()}else{if(i)i();if(t)I.setDisabled(false)}};I=new x;e.startup(function(){I._init()})},templates_helpers:{
151"at_error.js":function(){x.prototype.atErrorHelpers={singleError:function(){var e=I.state.form.get("error");return e&&1===e.length},error:function(){return I.state.form.get("error")},errorText:function(){var e,t;if(this.field){e=L.get(this.field,false);t=L.get(this.err,false)}else t=L.get(this.valueOf(),false);if("error.accounts."===t.substring(0,15))t=t.substring(15);if(e)return e+": "+t;return t}}},
151"at_form.js":function(){x.prototype.atFormHelpers={disabled:function(){return I.disabled({})},hide:function(){var e=this.state||I.getState();return"hide"===e},showTitle:function(t){var i=t||this.state||I.getState();if(e.userId()&&"signIn"===i)return false;return!!I.texts.title[i]},showOauthServices:function(t){var i=t||this.state||I.getState();if(!("signIn"===i||"signUp"===i))return false;var n=I.oauthServices();if(!n.length)return false;if(e.userId())return I.options.showAddRemoveServices;return true},showServicesSeparator:function(t){var i=void 0!==Package["accounts-password"];var n=t||this.state||I.getState();var r="signIn"===n||"signUp"===n;return r&&!e.userId()&&i&&I.oauthServices().length},showError:function(e){return!!I.state.form.get("error")},showResult:function(e){return!!I.state.form.get("result")},showMessage:function(e){return!!I.state.form.get("message")},showPwdForm:function(t){if(void 0===Package["accounts-password"])return false;var i=t||this.state||I.getState();if("verifyEmail"===i||"signIn"===i&&e.userId())return false;return true},showSignInLink:function(e){if(I.options.hideSignInLink)return false;var t=e||this.state||I.getState();if(I.options.forbidClientAccountCreation&&"forgotPwd"===t)return true;return"signUp"===t},showSignUpLink:function(t){if(I.options.hideSignUpLink)return false;var i=t||this.state||I.getState();return("signIn"===i&&!e.userId()||"forgotPwd"===i)&&!I.options.forbidClientAccountCreation},showTermsLink:function(e){if(!!I.options.privacyUrl||!!I.options.termsUrl){var t=e||this.state||I.getState();if("signUp"===t||"enrollAccount"===t)return true}return false},showResendVerificationEmailLink:function(){var e=u.currentData();var t=e&&e.state||I.getState();return("signIn"===t||"forgotPwd"===t)&&I.options.showResendVerificationEmailLink}}},
151"at_input.js":function(){x.prototype.atInputRendered=[function(){var e=this.data._id;var t=u.currentData();var i=t&&t.state||I.getState();if(I.options.focusFirstInput){var n=a.find(I.getFields(),function(e){return a.contains(e.visible,i)});if(n&&n._id===e)this.$("input#at-field-"+e).focus()}}];x.prototype.atInputHelpers={disabled:function(){return I.disabled({})},showLabels:function(){return I.options.showLabels},displayName:function(){var e=u.parentData();var t=e&&e.state||I.getState();var i=this.getDisplayName(t);return L.get(i,false)},optionalText:function(){return"("+L.get(I.texts.optionalField,false)+")"},templateName:function(){if(this.template)return this.template;if("checkbox"===this.type)return"atCheckboxInput";if("select"===this.type)return"atSelectInput";if("radio"===this.type)return"atRadioInput";if("hidden"===this.type)return"atHiddenInput";return"atTextInput"},values:function(){var e=this._id;return a.map(this.select,function(t){var i=a.clone(t);i._id=e+"-"+t.value;i.id=e;return i})},errorText:function(){var e=this.getStatus();return L.get(e,false)},placeholder:function(){if(I.options.showPlaceholders){var e=u.parentData();var t=e&&e.state||I.getState();var i=this.getPlaceholder(t);return L.get(i,false)}}};x.prototype.atInputEvents={"focusin input":function(e,t){var i=u.currentData();i.clearStatus()},"focusout input, change select":function(e,t){var i=u.currentData();var n=i._id;var r=i.getValue(t);var a=i.fixValue(r);if(a!==r)i.setValue(t,a);if(!i.validation)return;var s=u.parentData();var o=s&&s.state||I.getState();if("signIn"===o)return;if(a&&"password_again"===n){if(a!==c("#at-field-password").val())return i.setError(I.texts.errors.pwdMismatch)}i.validate(a)},"keyup input":function(e,t){var i=u.currentData();if(!i.continuousValidation)return;var n=u.parentData();var r=n&&n.state||I.getState();if("signIn"===r)return;var a=i._id;var s=i.getValue(t);var o=i.fixValue(s);if(o!==s)i.setValue(t,o);if(o&&"password_again"===a){if(o!==c("#at-field-password").val())return i.setError(I.texts.errors.pwdMismatch)}i.validate(o)}}},
151"at_nav_button.js":function(){x.prototype.atNavButtonHelpers={text:function(){var t=e.userId()?I.texts.navSignOut:I.texts.navSignIn;return L.get(t,false)}};x.prototype.atNavButtonEvents={"click #at-nav-button":function(t){t.preventDefault();if(e.userId())I.logout();else I.linkClick("signIn")}}},
151"at_oauth.js":function(){x.prototype.atOauthHelpers={oauthService:function(){return I.oauthServices()}}},
151"at_pwd_form.js":function(){x.prototype.atPwdFormHelpers={disabled:function(){var e;return null!=(e=I.disabled())?e:{}},fields:function(){var e=u.currentData();var t=e&&e.state||I.getState();return a.filter(I.getFields(),function(e){return a.contains(e.visible,t)})},showForgotPasswordLink:function(){var e=u.currentData();var t=e&&e.state||I.getState();return"signIn"===t&&I.options.showForgotPasswordLink},showReCaptcha:function(){var e=u.currentData();var t=e&&e.state||I.getState();return"signUp"===t&&I.options.showReCaptcha}};var i=function(e){return e.toLowerCase().replace(/\s+/gm,"")};x.prototype.atPwdFormEvents={"submit #at-pwd-form":function(n,r){n.preventDefault();r.$("#at-btn").blur();I.setDisabled(true);var s=u.currentData();var o=s&&s.state||I.getState();var l="signIn"!==o;var c={};var d=false;var f=[];a.each(I.getFields(),function(e){if(!a.contains(e.visible,o))return;var t=e._id;var i=e.getValue(r);var n=e.fixValue(i);if(n!==i)e.setValue(r,n);if(void 0!==n&&""!==n)c[t]=n;if(l&&false!==e.getStatus()){var s=e.validate(n,"strict");if(s){if(e.negativeValidation)e.setError(s);else{L.get(e.getDisplayName(),false);f.push({field:e.getDisplayName(),err:s})}d=true}else e.setSuccess()}});I.clearError();I.clearResult();I.clearMessage();if(d){if(f.length)I.state.form.set("error",f);I.setDisabled(false);if("signUp"===o&&I.options.showReCaptcha)grecaptcha.reset();return}var p=c.current_password;var g=c.email;var h=c.password;var m=c.password_again;var v=c.username;var w=c.username_and_email;delete c.current_password;delete c.email;delete c.password;delete c.password_again;delete c.username;delete c.username_and_email;if(I.options.confirmPassword){if(m&&h!==m){var _=I.getField("password_again");if(_.negativeValidation)_.setError(I.texts.errors.pwdMismatch);else I.state.form.set("error",[{field:_.getDisplayName(),err:I.texts.errors.pwdMismatch}]);I.setDisabled(false);if("signUp"===o&&I.options.showReCaptcha)grecaptcha.reset();return}}if("signIn"===o){var b=!!h;var k=true;var y;if(g){if(I.options.lowercaseUsername)g=i(g);y={email:g}}else if(v){if(I.options.lowercaseUsername)v=i(v);y={username:v}}else if(w){if(I.options.lowercaseUsername)w=i(w);y=w}else k=false;if(!b||!k){I.state.form.set("error",[I.texts.errors.loginForbidden]);I.setDisabled(false);return}return e.loginWithPassword(y,h,function(e){I.submitCallback(e,o)})}if("signUp"===o){if(I.options.showReCaptcha){var S=grecaptcha.getResponse();if(""===S)return void I.setDisabled(false);c.reCaptchaResponse=S}var O=t._hashPassword(h);var P={username:v,email:g,password:O,profile:c};var x=I.options.preSignUpHook;if(x)x(h,P);return e.call("ATCreateUserServer",P,function(t){if(t&&"Email already exists."===t.reason){if(I.options.showReCaptcha)grecaptcha.reset()}I.submitCallback(t,void 0,function(){if(I.options.sendVerificationEmail&&I.options.enforceEmailVerification)I.submitCallback(t,o,function(){I.state.form.set("result",I.texts.info.signUpVerifyEmail);a.each(I.getFields(),function(e){if(!a.contains(e.visible,o))return;var t=r.$("#at-field-"+e._id);if("checkbox"===e.type)t.prop("checked",false);else t.val("")});I.setDisabled(false);I.avoidRedirect=true});else{var n;if(g){if(I.options.lowercaseUsername)g=i(g);n={email:g}}else if(v){if(I.options.lowercaseUsername)v=i(v);n={username:v}}else{if(I.options.lowercaseUsername)w=i(w);n=w}e.loginWithPassword(n,h,function(e){I.submitCallback(e,o,function(){I.setState("signIn")})})}})})}if("forgotPwd"===o)return t.forgotPassword({email:g},function(e){I.submitCallback(e,o,function(){I.state.form.set("result",I.texts.info.emailSent);r.$("#at-field-email").val("")})});if("resetPwd"===o||"enrollAccount"===o){var E=I.getparamToken();return t.resetPassword(E,h,function(e){I.submitCallback(e,o,function(){if("resetPwd"===o)I.state.form.set("result",I.texts.info.pwdReset);else I.state.form.set("result",I.texts.info.pwdSet);r.$("#at-field-password").val("");if(I.options.confirmPassword)r.$("#at-field-password_again").val("")})})}if("changePwd"===o)return t.changePassword(p,h,function(e){I.submitCallback(e,o,function(){I.state.form.set("result",I.texts.info.pwdChanged);r.$("#at-field-current_password").val("");r.$("#at-field-password").val("");if(I.options.confirmPassword)r.$("#at-field-password_again").val("")}
151)});if("resendVerificationEmail"===o)return e.call("ATResendVerificationEmail",g,function(e){I.submitCallback(e,o,function(){I.state.form.set("result",I.texts.info.verificationEmailSent);r.$("#at-field-email").val("");I.avoidRedirect=true})})}}},
151"at_pwd_form_btn.js":function(){x.prototype.atPwdFormBtnHelpers={submitDisabled:function(){var e=a.chain(I.getFields()).map(function(e){return e.hasError()||e.isValidating()}).some().value();if(e)return"disabled"},buttonText:function(){var e=u.currentData();var t=e&&e.state||I.getState();return L.get(I.texts.button[t],false)}}},
151"at_pwd_link.js":function(){x.prototype.atPwdLinkHelpers={disabled:function(){return I.disabled()},forgotPwdLink:function(){return I.getRoutePath("forgotPwd")},preText:function(){return L.get(I.texts.pwdLink_pre,false)},linkText:function(){return L.get(I.texts.pwdLink_link,false)},suffText:function(){return L.get(I.texts.pwdLink_suff,false)}};x.prototype.atPwdLinkEvents={"click #at-forgotPwd":function(e,t){e.preventDefault();I.linkClick("forgotPwd")}}},
151"at_reCaptcha.js":function(){x.prototype.atReCaptchaRendered=function(){c.getScript("//www.google.com/recaptcha/api.js?hl="+L.getLanguage())};x.prototype.atReCaptchaHelpers={key:function(){if(I.options.reCaptcha&&I.options.reCaptcha.siteKey)return I.options.reCaptcha.siteKey;return e.settings.public.reCaptcha.siteKey},theme:function(){return I.options.reCaptcha&&I.options.reCaptcha.theme},data_type:function(){return I.options.reCaptcha&&I.options.reCaptcha.data_type}}},
151"at_resend_verification_email_link.js":function(){x.prototype.atResendVerificationEmailLinkHelpers={disabled:function(){return I.disabled()},resendVerificationEmailLink:function(){return I.getRoutePath("resendVerificationEmail")},preText:function(){return L.get(I.texts.resendVerificationEmailLink_pre,false)},linkText:function(){return L.get(I.texts.resendVerificationEmailLink_link,false)},suffText:function(){return L.get(I.texts.resendVerificationEmailLink_suff,false)}};x.prototype.atResendVerificationEmailLinkEvents={"click #at-resend-verification-email":function(e,t){e.preventDefault();I.linkClick("resendVerificationEmail")}}},
151"at_result.js":function(){x.prototype.atResultHelpers={result:function(){var e=I.state.form.get("result");if(e)return L.get(e,false)}}},
151"at_sep.js":function(){x.prototype.atSepHelpers={sepText:function(){return L.get(I.texts.sep,false)}}},
151"at_signin_link.js":function(){x.prototype.atSigninLinkHelpers={disabled:function(){return I.disabled()},signInLink:function(){return I.getRoutePath("signIn")},preText:function(){return L.get(I.texts.signInLink_pre,false)},linkText:function(){return L.get(I.texts.signInLink_link,false)},suffText:function(){return L.get(I.texts.signInLink_suff,false)}};x.prototype.atSigninLinkEvents={"click #at-signIn":function(e,t){e.preventDefault();I.linkClick("signIn")}}},
151"at_signup_link.js":function(){x.prototype.atSignupLinkHelpers={disabled:function(){return I.disabled()},signUpLink:function(){return I.getRoutePath("signUp")},preText:function(){return L.get(I.texts.signUpLink_pre,false)},linkText:function(){return L.get(I.texts.signUpLink_link,false)},suffText:function(){return L.get(I.texts.signUpLink_suff,false)}};x.prototype.atSignupLinkEvents={"click #at-signUp":function(e,t){e.preventDefault();I.linkClick("signUp")}}},
151"at_social.js":function(){function n(e,t){if(null!=t&&void 0!==p&&t[p.hasInstance])return!!t[p.hasInstance](e);return e instanceof t}x.prototype.atSocialHelpers={disabled:function(){if(I.disabled())return"disabled";var t=e.user();if(t){var i=0;if(t.services)i=a.keys(t.services).length;if(2===i&&t.services[this._id])return"disabled"}},name:function(){return this._id},iconClass:function(){var e=I.texts.socialIcons[this._id];if(!e)e="fa fa-"+this._id;return e},buttonText:function(){var t=this;var i=this._id;if("meteor-developer"===i)i="meteor";i=h(i);if(!t.configured)return L.get(I.texts.socialConfigure,false)+" "+i;var n=I.options.showAddRemoveServices;var r=e.user();if(r&&n)if(!r.services||!r.services[this._id])return L.get(I.texts.socialAdd,false)+" "+i;else{var s=a.keys(r.services).length;if(2===s)return i;return L.get(I.texts.socialRemove,false)+" "+i}var o=u.parentData();var l=o&&o.state||I.getState();var c="signIn"===l?L.get(I.texts.socialSignIn,false):L.get(I.texts.socialSignUp,false);return c+" "+L.get(I.texts.socialWith,false)+" "+i}};x.prototype.atSocialEvents={"click button":function(r,s){r.preventDefault();r.currentTarget.blur();if(I.disabled())return;var o=e.user();if(o&&o.services&&o.services[this._id]){var l=a.keys(o.services).length;if(2===l)return;I.setDisabled(true);e.call("ATRemoveService",this._id,function(e){I.setDisabled(false)})}else{I.setDisabled(true);var c=u.parentData();var d=c&&c.state||I.getState();var f=this._id;var p;p="meteor-developer"===f?"loginWithMeteorDeveloperAccount":"loginWith"+h(f);var g=e[p];E={loginStyle:I.options.socialLoginStyle};if(t.ui){if(t.ui._options.requestPermissions[f])E.requestPermissions=t.ui._options.requestPermissions[f];if(t.ui._options.requestOfflineToken[f])E.requestOfflineToken=t.ui._options.requestOfflineToken[f]}g(E,function(e){I.setDisabled(false);if(e&&n(e,t.LoginCancelledError));else if(e&&n(e,i.ConfigError)){if(t._loginButtonsSession)return t._loginButtonsSession.configureService(f)}else I.submitCallback(e,d)})}}}},
151"at_terms_link.js":function(){x.prototype.atTermsLinkHelpers={disabled:function(){return I.disabled()},text:function(){return L.get(I.texts.termsPreamble,false)},privacyUrl:function(){return I.options.privacyUrl},privacyLinkText:function(){return L.get(I.texts.termsPrivacy,false)},showTermsAnd:function(){return!!I.options.privacyUrl&&!!I.options.termsUrl},and:function(){return L.get(I.texts.termsAnd,false)},termsUrl:function(){return I.options.termsUrl},termsLinkText:function(){return L.get(I.texts.termsTerms,false)}};x.prototype.atTermsLinkEvents={"click a":function(e){if(I.disabled())e.preventDefault()}}},
151"at_title.js":function(){x.prototype.atTitleHelpers={title:function(){var e=u.currentData();var t=e&&e.state||I.getState();return L.get(I.texts.title[t],false)}}},
151"at_message.js":function(){x.prototype.atMessageHelpers={message:function(){var e=I.state.form.get("message");if(e)return L.get(e,false)}}},
151"template.ensure_signed_in.js":function(){u.__checkName("ensureSignedIn");u["ensureSignedIn"]=new u("Template.ensureSignedIn",function(){var e=this;return o.If(function(){return g.call(e.lookup("signedIn"))},function(){return["\n    ",o._TemplateWith(function(){return{template:g.call(e.lookup("template"))}},function(){return g.include(function(){return g.call(u.__dynamic)})}),"\n  "]},function(){return["\n    ",o.If(function(){return g.call(e.lookup("auth"))},function(){return["\n      ",o._TemplateWith(function(){return{template:g.call(e.lookup("auth"))}},function(){return g.include(function(){return g.call(u.__dynamic)})}),"\n    "]},function(){return["\n      ",g.include(e.lookupTemplate("fullPageAtForm")),"\n    "]}),"\n  "]})})},
151"ensure_signed_in.js":function(){u.ensureSignedIn.helpers({signedIn:function(){if(e.user()){I.clearError();return true}I.setState(I.options.defaultState,function(){var e=I.texts.errors.mustBeLoggedIn;I.state.form.set("error",[e])});return false}})}},
151"methods.js":function(){"use strict";function t(e,t,i,n,r,a,s){try{var o=e[a](s);var l=o.value}catch(e){i(e);return}if(o.done)t(l);else f.resolve(l).then(n,r)}function i(e){return function(){var i=this,n=arguments;return new f(function(r,a){var s=e.apply(i,n);function o(e){t(s,r,a,o,l,"next",e)}function l(e){t(s,r,a,o,l,"throw",e)}o(void 0)})}}function r(e,t){var i,n,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),"function"==typeof p&&(s[p.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(a=0)),a)try{if(i=1,n&&(r=2&o[0]?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[2&o[0],r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;n=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1];r=o;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(o);break}if(r[2])a.ops.pop();a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e];n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:true}}}e.methods({ATRemoveService:function(t){return i(function(){var i,s,o,l;return r(this,function(r){switch(r.label){case 0:n(t,String);i=this.userId;if(!i)return[3,3];return[4,e.users.findOneAsync(i)];case 1:s=r.sent();o=a.keys(s.services).length;l={};if(2===o)throw new e.Error(403,I.texts.errors.cannotRemoveService,{});l["services."+t]="";return[4,e.users.updateAsync(i,{$unset:l})];case 2:r.sent();r.label=3;case 3:return[2]}})}).call(this)}})},
151"T9n.js":function(e,t,i){var n;i.link("meteor-accounts-t9n/build/en",{default:function(e){n=e}},0);L=e("meteor-accounts-t9n").T9n;L.map("en",n);L.setLanguage("en")}},node_modules:{"meteor-accounts-t9n":{build:{
151"en.js":function(e,t,i){(function(){var e;e={t9Name:"English",add:"add",and:"and",back:"back",cancel:"Cancel",changePassword:"Change Password",choosePassword:"Choose a Password",clickAgree:"By clicking Register, you agree to our",configure:"Configure",createAccount:"Create an Account",currentPassword:"Current Password",dontHaveAnAccount:"Don't have an account?",email:"Email",emailAddress:"Email Address",emailResetLink:"Email Reset Link",forgotPassword:"Forgot your password?",ifYouAlreadyHaveAnAccount:"If you already have an account",newPassword:"New Password",newPasswordAgain:"New Password (again)",optional:"Optional",OR:"OR",password:"Password",passwordAgain:"Password (again)",privacyPolicy:"Privacy Policy",remove:"remove",resetYourPassword:"Reset your password",setPassword:"Set Password",sign:"Sign",signIn:"Sign In",signin:"sign in",signOut:"Sign Out",signUp:"Register",signupCode:"Registration Code",signUpWithYourEmailAddress:"Register with your email address",terms:"Terms of Use",updateYourPassword:"Update your password",username:"Username",usernameOrEmail:"Username or email",with:"with",maxAllowedLength:"Maximum allowed length",minRequiredLength:"Minimum required length",resendVerificationEmail:"Send email again",resendVerificationEmailLink_pre:"Verification email lost?",resendVerificationEmailLink_link:"Send again",enterPassword:"Enter password",enterNewPassword:"Enter new password",enterEmail:"Enter email",enterUsername:"Enter username",enterUsernameOrEmail:"Enter username or email",orUse:"Or use","Required Field":"Required Field",info:{emailSent:"Email sent",emailVerified:"Email verified",passwordChanged:"Password changed",passwordReset:"Password reset"},alert:{ok:"Ok",type:{info:"Notice",error:"Error",warning:"Warning"}},error:{emailRequired:"Email is required.",minChar:"7 character minimum password.",pwdsDontMatch:"Passwords don't match",pwOneDigit:"Password must have at least one digit.",pwOneLetter:"Password requires 1 letter.",signInRequired:"You must be signed in to do that.",signupCodeIncorrect:"Registration code is incorrect.",signupCodeRequired:"Registration code is required.",usernameIsEmail:"Username cannot be an email address.",usernameRequired:"Username is required.",accounts:{"Email already exists.":"Email already exists.","Email doesn't match the criteria.":"Email doesn't match the criteria.","Invalid login token":"Invalid login token","Login forbidden":"Login forbidden","Service unknown":"Service unknown","Unrecognized options for login request":"Unrecognized options for login request","User validation failed":"User validation failed","Username already exists.":"Username already exists.","You are not logged in.":"You are not logged in.","You've been logged out by the server. Please log in again.":"You've been logged out by the server. Please log in again.","Your session has expired. Please log in again.":"Your session has expired. Please log in again.","Already verified":"Already verified","Invalid email or username":"Invalid email or username","Internal server error":"Internal server error",undefined:"Something went wrong","No matching login attempt found":"No matching login attempt found","Password is old. Please reset your password.":"Password is old. Please reset your password.","Incorrect password":"Incorrect password","Invalid email":"Invalid email","Must be logged in":"Must be logged in","Need to set a username or email":"Need to set a username or email","old password format":"old password format","Password may not be empty":"Password may not be empty","Signups forbidden":"Signups forbidden","Token expired":"Token expired","Token has invalid email address":"Token has invalid email address","User has no password set":"User has no password set","User not found":"User not found","Verify email link expired":"Verify email link expired","Verify email link is for unknown address":"Verify email link is for unknown address","At least 1 digit, 1 lowercase and 1 uppercase":"At least 1 digit, 1 lowercase and 1 uppercase","Please verify your email first. Check the email and follow the link!":"Please verify your email first. Check the email and follow the link!","A new email has been sent to you. If the email doesn't show up in your inbox, be sure to check your spam folder.":"A new email has been sent to you. If the email doesn't show up in your inbox, be sure to check your spam folder.","Match failed":"Match failed","Unknown error":"Unknown error","Error, too many requests. Please slow down. You must wait 1 seconds before trying again.":"Error, too many requests. Please slow down. You must wait 1 seconds before trying again."}}};if(null!=L)L.map("en",e);if(null!=i)i.exports=e}).call(this)},
151"t9n.js":function(t,i,n){(function(){var t;if(null!=e)e.startup(function(){if(e.isClient)return null!=u?u.registerHelper("t9n",function(e,i){return t.get(e,true,i.hash)}):void 0});t=(function(){class e{static setTracker(e){this.tracker=e;this.dep=new e.Tracker.Dependency;return this.depLanguage=new this.tracker.Tracker.Dependency}static map(e,t){var i;if(!this.maps[e])this.maps[e]={};this.registerItem(e,"",false,t);return null!=(i=this.dep)?i.changed():void 0}static get(e,t=true,i={},n){var r,a,s,o,l,u,c;if(null!=(s=this.dep))s.depend();if(null!=(o=this.depLanguage))o.depend();if("string"!=typeof e)return"";if(null==n)n=this.language;c=null!=(l=this.maps[n])?l[e]:void 0;if(!c){r=n.lastIndexOf("_");if(r){a=n.substring(0,r);if(a)return this.get(e,t,i,a)}}if(!c)c=null!=(u=this.maps[this.defaultLanguage])?u[e]:void 0;if(!c)if(t)return this.missingPrefix+e+this.missingPostfix;else return e;if(0===Object.keys(i).length)return c;return this.replaceParams(c,i)}static registerItem(e,t,i,n){var r,a,s;if("string"==typeof n)return this.maps[e][t]=n;if("object"==typeof n){if(i)t+=".";a=[];for(r in n){s=n[r];a.push(this.registerItem(e,t+r,true,s))}return a}}static getLanguage(){var e;if(null!=(e=this.depLanguage))e.depend();return this.language}static getLanguages(){var e;if(null!=(e=this.dep))e.depend();return Object.keys(this.maps).sort()}static getLanguageInfo(){var e,t,i,n,r,a;if(null!=(r=this.dep))r.depend();i=Object.keys(this.maps).sort();a=[];for(e=0,n=i.length;e<n;e++){t=i[e];a.push({name:this.maps[t]["t9Name"],code:t})}return a}static setLanguage(e){var t;if(this.language===e)return;e=e.replace(new RegExp("-","g"),"_");if(!this.maps[e])if(e.indexOf("_")>1)return this.setLanguage(e.substring(0,e.lastIndexOf("_")));else throw Error(`language ${e} does not exist`);this.language=e;return null!=(t=this.depLanguage)?t.changed():void 0}static replaceParams(e,t){var i,n,r,a,s,o;i=0;r=e;while(i>-1){i=r.indexOf("@{");if(i>-1){n=r.indexOf("}");a=r.substring(i,n+1);if(a.indexOf("->")>-1){o=this.handleSelector(r,t,a);e=e.replace(a,o)}else{s=a.substring(2,a.indexOf("}"));e=e.replace(new RegExp(a,"g"),t[s]);e=e.replace(new RegExp(`\\$${s}`,"g"),t[s])}r=r.substring(n+2).trim()}}return e}static handleSelector(e,t,i){var n,r,a;a=i.substring(2,i.indexOf(" "));r=e.split(/\n/).slice(1).map(function(e){var t;t=e.trim().split(/\s/)[0];return{regexString:t,line:e.substring(e.indexOf(t)+t.length)}});n=r.find(function(e){return new RegExp(e.regexString).test(t[a])});if(n)return n.line.substring(n.line.lastIndexOf("]")+1).trim().replace(new RegExp(`\\$${a}`),t[a])}}e.maps={};e.defaultLanguage="en";e.language="";e.dep=void 0;e.depLanguage=void 0;e.missingPrefix=">";e.missingPostfix="<";return e}).call(this);this.T9n=t;this.t9n=function(e,i,n){return t.get(e)};if(null!=n)n.exports.T9n=t}).call(this)}},
151"package.json":function(e,t,i){i.exports={name:"meteor-accounts-t9n",version:"2.6.0",main:"build/t9n.js"}}}}}}}},{extensions:[".js",".json",".html"]});return{export:function(){return{AccountsTemplates:I,T9n:L}},require:C,eagerModulePaths:["/node_modules/meteor/useraccounts:core/lib/utils.js","/node_modules/meteor/useraccounts:core/lib/field.js","/node_modules/meteor/useraccounts:core/lib/core.js","/node_modules/meteor/useraccounts:core/lib/client.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_error.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_form.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_input.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_nav_button.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_oauth.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_pwd_form.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_pwd_form_btn.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_pwd_link.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_reCaptcha.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_resend_verification_email_link.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_result.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_sep.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_signin_link.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_signup_link.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_social.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_terms_link.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_title.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/at_message.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/template.ensure_signed_in.js","/node_modules/meteor/useraccounts:core/lib/templates_helpers/ensure_signed_in.js","/node_modules/meteor/useraccounts:core/lib/methods.js","/node_modules/meteor/useraccounts:core/lib/T9n.js"]}});
152
153Package["core-runtime"].queue("useraccounts:bootstrap",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package["templating-runtime"].Template;var n=Package.underscore._;var e=Package["useraccounts:core"].AccountsTemplates;Package["useraccounts:core"].T9n;Package["accounts-base"].Accounts;var u=Package.blaze.Blaze;Package.blaze.UI;Package.blaze.Handlebars;var a=Package.spacebars.Spacebars;var o=Package.htmljs.HTML;(function(){t.__checkName("atError");t["atError"]=new t("Template.atError",function(){var t=this;return o.DIV({class:"at-error alert alert-danger"},"\n    ",u.Each(function(){return a.call(t.lookup("error"))},function(){return["\n      ",o.P(u.View("lookup:errorText",function(){return a.mustache(t.lookup("errorText"))})),"\n    "]}),"\n  ")})}).call(this);(function(){t.atError.helpers(e.atErrorHelpers)}).call(this);(function(){t.__checkName("atForm");t["atForm"]=new t("Template.atForm",function(){var t=this;return u.Unless(function(){return a.call(t.lookup("hide"))},function(){return["\n    ",o.DIV({class:"at-form"},"\n      ",u.If(function(){return a.call(t.lookup("showTitle"))},function(){return["\n        ",a.include(t.lookupTemplate("atTitle")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showOauthServices"))},function(){return["\n        ",a.include(t.lookupTemplate("atOauth")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showServicesSeparator"))},function(){return["\n        ",a.include(t.lookupTemplate("atSep")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showError"))},function(){return["\n        ",a.include(t.lookupTemplate("atError")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showResult"))},function(){return["\n        ",a.include(t.lookupTemplate("atResult")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showMessage"))},function(){return["\n        ",a.include(t.lookupTemplate("atMessage")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showPwdForm"))},function(){return["\n        ",a.include(t.lookupTemplate("atPwdForm")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showTermsLink"))},function(){return["\n        ",a.include(t.lookupTemplate("atTermsLink")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showSignInLink"))},function(){return["\n        ",a.include(t.lookupTemplate("atSigninLink")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showSignUpLink"))},function(){return["\n        ",a.include(t.lookupTemplate("atSignupLink")),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showResendVerificationEmailLink"))},function(){return["\n        ",a.include(t.lookupTemplate("atResendVerificationEmailLink")),"\n      "]}),"\n    "),"\n  "]})})}).call(this);(function(){t.atForm.helpers(e.atFormHelpers)}).call(this);(function(){t.__checkName("atInput");t["atInput"]=new t("Template.atInput",function(){var n=this;return u._TemplateWith(function(){return{template:a.call(n.lookup("templateName"))}},function(){return a.include(function(){return a.call(t.__dynamic)})})});t.__checkName("atTextInput");t["atTextInput"]=new t("Template.atTextInput",function(){var t=this;return o.DIV({class:function(){return["at-input form-group ",u.If(function(){return a.call(t.lookup("isValidating"))},function(){return"validating"})," ",u.If(function(){return a.call(t.lookup("hasError"))},function(){return"has-error"})," ",u.If(function(){return a.call(t.lookup("hasSuccess"))},function(){return"has-success"})," ",u.If(function(){return a.call(t.lookup("feedback"))},function(){return"has-feedback"})]}},"\n    ",o.LABEL({class:function(){return["control-label ",u.Unless(function(){return a.call(t.lookup("showLabels"))},function(){return"sr-only"})]},for:function(){return["at-field-",a.mustache(t.lookup("_id"))]}},"\n      ",u.View("lookup:displayName",function(){return a.mustache(t.lookup("displayName"))})," ",u.Unless(function(){return a.call(t.lookup("required"))}
153,function(){return u.View("lookup:optionalText",function(){return a.mustache(t.lookup("optionalText"))})}),"\n    "),"\n    ",o.INPUT({type:function(){return a.mustache(t.lookup("type"))},class:"form-control",id:function(){return["at-field-",a.mustache(t.lookup("_id"))]},name:function(){return["at-field-",a.mustache(t.lookup("_id"))]},placeholder:function(){return a.mustache(t.lookup("placeholder"))},autocapitalize:"none",autocorrect:"off"}),"\n    ",u.If(function(){return a.call(t.lookup("hasIcon"))},function(){return["\n      ",o.SPAN({class:function(){return[a.mustache(t.lookup("iconClass"))," form-control-feedback"]}}),"\n    "]}),"\n    ",o.SPAN({class:function(){return["help-block ",u.Unless(function(){return a.call(t.lookup("hasError"))},function(){return"hide"})]}},u.View("lookup:errorText",function(){return a.mustache(t.lookup("errorText"))})),"\n  ")});t.__checkName("atCheckboxInput");t["atCheckboxInput"]=new t("Template.atCheckboxInput",function(){var t=this;return o.DIV({class:"at-input checkbox"},"\n    ",o.LABEL({for:function(){return["at-field-",a.mustache(t.lookup("_id"))]}},"\n      ",o.INPUT(o.Attrs({type:function(){return a.mustache(t.lookup("type"))},id:function(){return["at-field-",a.mustache(t.lookup("_id"))]},name:function(){return["at-field-",a.mustache(t.lookup("_id"))]}},function(){return a.attrMustache(t.lookup("disabled"))})),"\n      ",u.View("lookup:displayName",function(){return a.mustache(t.lookup("displayName"))}),"\n    "),"\n  ")});t.__checkName("atSelectInput");t["atSelectInput"]=new t("Template.atSelectInput",function(){var t=this;return o.DIV({class:"at-input field"},"\n    ",o.LABEL(u.View("lookup:displayName",function(){return a.mustache(t.lookup("displayName"))})),"\n    ",o.SELECT({class:"form-control",id:function(){return["at-field-",a.mustache(t.lookup("_id"))]},name:function(){return["at-field-",a.mustache(t.lookup("_id"))]}},"\n      ",u.Each(function(){return a.call(t.lookup("values"))},function(){return["\n        ",o.OPTION({value:function(){return a.mustache(t.lookup("value"))}},u.View("lookup:text",function(){return a.mustache(t.lookup("text"))})),"\n      "]}),"\n    "),"\n  ")});t.__checkName("atRadioInput");t["atRadioInput"]=new t("Template.atRadioInput",function(){var t=this;return o.DIV({class:"at-input form-group"},"\n    ",o.LABEL(u.View("lookup:displayName",function(){return a.mustache(t.lookup("displayName"))})),"\n    ",u.Each(function(){return a.call(t.lookup("values"))},function(){return["\n      ",o.DIV({class:"at-input radio"},"\n        ",o.LABEL({for:function(){return["at-field-",a.mustache(t.lookup("id")),"-choice-",a.mustache(t.lookup("value"))]}},"\n          ",o.INPUT({id:function(){return["at-field-",a.mustache(t.lookup("id")),"-choice-",a.mustache(t.lookup("value"))]},type:"radio",name:function(){return["at-field-",a.mustache(t.lookup("id"))]},value:function(){return a.mustache(t.lookup("value"))}}),"\n          ",u.View("lookup:text",function(){return a.mustache(t.lookup("text"))}),"\n        "),"\n      "),"\n    "]}),"\n  ")});t.__checkName("atHiddenInput");t["atHiddenInput"]=new t("Template.atHiddenInput",function(){var t=this;return o.INPUT({type:"hidden",id:function(){return["at-field-",a.mustache(t.lookup("_id"))]},name:function(){return["at-field-",a.mustache(t.lookup("_id"))]}})})}).call(this);(function(){n.each(e.atInputRendered,function(n){t.atInput.onRendered(n);t.atHiddenInput.onRendered(n)});t.atInput.helpers(e.atInputHelpers);t.atInput.events(e.atInputEvents);t.atTextInput.helpers(e.atInputHelpers);t.atCheckboxInput.helpers(e.atInputHelpers);t.atSelectInput.helpers(e.atInputHelpers);t.atRadioInput.helpers(e.atInputHelpers);t.atHiddenInput.helpers(e.atInputHelpers);e.configure({texts:{inputIcons:{isValidating:"glyphicon glyphicon-refresh",hasError:"glyphicon glyphicon-remove",hasSuccess:"glyphicon glyphicon-ok"}}})}).call(this);(function(){t.__checkName("atMessage");t["atMessage"]=new t("Template.atMessage",function(){var t=this;return o.DIV({class:"at-message alert alert-info"},"\n    ",u.View("lookup:message",function(){return a.mustache(t.lookup("message"))}),"\n  ")})}).call(this);(function(){t.atMessage.helpers(e.atMessageHelpers)}).call(this);(function(){t.__checkName("atNavButton");t["atNavButton"]=new t("Template.atNavButton",function(){var t=this;return o.BUTTON({type:"button",id:"at-nav-button",class:"btn btn-default navbar-btn"},u.View("lookup:text",function(){return a.mustache(t.lookup("text"))}))})}).call(this);(function(){t.atNavButton.helpers(e.atNavButtonHelpers);t.atNavButton.events(e.atNavButtonEvents)}).call(this);(function(){t.__checkName("atOauth");t["atOauth"]=new t("Template.atOauth",function(){var t=this;return o.DIV({class:"at-oauth"},"\n    ",u.Each(function(){return a.call(t.lookup("oauthService"))},function(){return["\n      ",a.include(t.lookupTemplate("atSocial")),"\n    "]}),"\n  ")})}).call(this);(function(){t.atOauth.helpers(e.atOauthHelpers)}).call(this);(function(){t.__checkName("atPwdForm");t["atPwdForm"]=new t("Template.atPwdForm",function(){var t=this;return o.DIV({class:"at-pwd-form"},"\n    ",o.FORM({role:"form",id:"at-pwd-form",novalidate:"",action:"#",method:"POST"},"\n      ",o.FIELDSET(o.Attrs(function(){return a.attrMustache(t.lookup("disabled"))}),"\n        ",u.Each(function(){return a.call(t.lookup("fields"))},function(){return["\n          ",a.include(t.lookupTemplate("atInput")),"\n        "]}),"\n        ",u.If(function(){return a.call(t.lookup("showReCaptcha"))},function(){return["\n          ",a.include(t.lookupTemplate("atReCaptcha")),"\n        "]}),"\n        ",u.If(function(){return a.call(t.lookup("showForgotPasswordLink"))},function(){return["\n          ",a.include(t.lookupTemplate("atPwdLink")),"\n        "]}),"\n        ",a.include(t.lookupTemplate("atPwdFormBtn")),"\n      "),"\n    "),"\n  ")})}).call(this);(function(){t.atPwdForm.helpers(e.atPwdFormHelpers);t.atPwdForm.events(e.atPwdFormEvents)}).call(this);(function(){t.__checkName("atPwdFormBtn");t["atPwdFormBtn"]=new t("Template.atPwdFormBtn",function(){var t=this;return o.BUTTON({type:"submit",class:function(){return["at-btn submit btn btn-lg btn-block btn-default ",a.mustache(t.lookup("submitDisabled"))]},id:"at-btn"},"\n    ",u.View("lookup:buttonText",function(){return a.mustache(t.lookup("buttonText"))}),"\n  ")})}).call(this);(function(){t.atPwdFormBtn.helpers(e.atPwdFormBtnHelpers)}).call(this);(function(){t.__checkName("atPwdLink");t["atPwdLink"]=new t("Template.atPwdLink",function(){var t=this;return o.DIV({class:"at-pwd-link"},"\n    ",o.P("\n      ",u.View("lookup:preText",function(){return a.mustache(t.lookup("preText"))}),"\n      ",o.A({href:function(){return a.mustache(t.lookup("forgotPwdLink"))},id:"at-forgotPwd",class:function(){return["at-link at-pwd ",a.mustache(t.lookup("disabled"))]}},u.View("lookup:linkText",function(){return a.mustache(t.lookup("linkText"))})),"\n      ",u.View("lookup:suffText",function(){return a.mustache(t.lookup("suffText"))}),"\n    "),"\n  ")})}).call(this);(function(){t.atPwdLink.helpers(e.atPwdLinkHelpers);t.atPwdLink.events(e.atPwdLinkEvents)}).call(this);(function(){t.__checkName("atReCaptcha");t["atReCaptcha"]=new t("Template.atReCaptcha",function(){var t=this;return o.DIV({class:"g-recaptcha","data-sitekey":function(){return a.mustache(t.lookup("key"))},"data-theme":function(){return a.mustache(t.lookup("theme"))},"data-type":function(){return a.mustache(t.lookup("data_type"))}})})}).call(this);(function(){t.atReCaptcha.rendered=e.atReCaptchaRendered;t.atReCaptcha.helpers(e.atReCaptchaHelpers)}).call(this);(function(){t.__checkName("atResult");t["atResult"]=new t("Template.atResult",function(){var t=this;return o.DIV({class:"at-result alert alert-success"},"\n    ",u.View("lookup:result",function(){return a.mustache(t.lookup("result"))}),"\n  ")})}).call(this);(function(){t.atResult.helpers(e.atResultHelpers)}).call(this);(function(){t.__checkName("atSep");t["atSep"]=new t("Template.atSep",function(){var t=this;return o.DIV({class:"at-sep"},"\n    ",o.STRONG(u.View("lookup:sepText",function(){return a.mustache(t.lookup("sepText"))})),"\n  ")})}).call(this);(function(){t.atSep.helpers(e.atSepHelpers)}).call(this);(function(){t.__checkName("atSigninLink");t["atSigninLink"]=new t("Template.atSigninLink",function(){var t=this;return o.DIV({class:"at-signin-link"},"\n    ",o.P("\n      ",u.View("lookup:preText",function(){return a.mustache(t.lookup("preText"))}),"\n      ",o.A({href:function(){return a.mustache(t.lookup("signInLink"))},id:"at-signIn",class:function(){return["at-link at-signin ",a.mustache(t.lookup("disabled"))]}},u.View("lookup:linkText",function(){return a.mustache(t.lookup("linkText"))})),"\n      ",u.View("lookup:suffText",function(){return a.mustache(t.lookup("suffText"))}),"\n    "),"\n  ")})}).call(this);(function(){t.atSigninLink.helpers(e.atSigninLinkHelpers);t.atSigninLink.events(e.atSigninLinkEvents)}).call(this);(function(){t.__checkName("atSignupLink");t["atSignupLink"]=new t("Template.atSignupLink",function(){var t=this;return o.DIV({class:"at-signup-link"},"\n    ",o.P("\n      ",u.View("lookup:preText",function(){return a.mustache(t.lookup("preText"))}),"\n      ",o.A({href:function(){return a.mustache(t.lookup("signUpLink"))},id:"at-signUp",class:function(){return["at-link at-signup ",a.mustache(t.lookup("disabled"))]}},u.View("lookup:linkText",function(){return a.mustache(t.lookup("linkText"))})),"\n      ",u.View("lookup:suffText",function(){return a.mustache(t.lookup("suffText"))}),"\n    "),"\n  ")})}).call(this);(function(){t.atSignupLink.helpers(e.atSignupLinkHelpers);t.atSignupLink.events(e.atSignupLinkEvents)}).call(this);(function(){t.__checkName("atSocial");t["atSocial"]=new t("Template.atSocial",function(){var t=this;return o.BUTTON({class:function(){return["btn at-social-btn ",a.mustache(t.lookup("disabled"))]},id:function(){return["at-",a.mustache(t.lookup("name"))]},name:function(){return a.mustache(t.lookup("name"))}},"\n    ",o.I({class:function(){return a.mustache(t.lookup("iconClass"))}})," ",u.View("lookup:buttonText",function(){return a.mustache(t.lookup("buttonText"))}),"\n  ")})}).call(this);(function(){t.atSocial.helpers(e.atSocialHelpers);t.atSocial.events(e.atSocialEvents)}).call(this);(function(){t.__checkName("atTermsLink");t["atTermsLink"]=new t("Template.atTermsLink",function(){var t=this;return o.DIV({class:"at-terms-link at-wrap"},"\n    ",o.P("\n      ",u.View("lookup:text",function(){return a.mustache(t.lookup("text"))}),"\n      ",u.If(function(){return a.call(t.lookup("privacyUrl"))},function(){return["\n        ",o.A({href:function(){return a.mustache(t.lookup("privacyUrl"))},class:function(){return a.mustache(t.lookup("disabled"))}},u.View("lookup:privacyLinkText",function(){return a.mustache(t.lookup("privacyLinkText"))})),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("showTermsAnd"))},function(){return["\n        ",u.View("lookup:and",function(){return a.mustache(t.lookup("and"))}),"\n      "]}),"\n      ",u.If(function(){return a.call(t.lookup("termsUrl"))},function(){return["\n        ",o.A({href:function(){return a.mustache(t.lookup("termsUrl"))},class:function(){return a.mustache(t.lookup("disabled"))}},u.View("lookup:termsLinkText",function(){return a.mustache(t.lookup("termsLinkText"))})),"\n      "]}),"\n    "),"\n  ")})}).call(this);(function(){t.atTermsLink.helpers(e.atTermsLinkHelpers);t.atTermsLink.events(e.atTermsLinkEvents)}).call(this);(function(){t.__checkName("atResendVerificationEmailLink");t["atResendVerificationEmailLink"]=new t("Template.atResendVerificationEmailLink",function(){var t=this;return o.DIV({class:"at-resend-verification-email-link at-wrap"},"\n    ",o.P("\n      ",u.View("lookup:preText",function(){return a.mustache(t.lookup("preText"))}),"\n      ",o.A({href:function(){return a.mustache(t.lookup("resendVerificationEmailLink"))},id:"at-resend-verification-email",class:function(){return["at-link at-resend-verification-email ",a.mustache(t.lookup("disabled"))]}},u.View("lookup:linkText",function(){return a.mustache(t.lookup("linkText"))})),"\n      ",u.View("lookup:suffText",function(){return a.mustache(t.lookup("suffText"))}),"\n    "),"\n  ")})}).call(this);(function(){t.atResendVerificationEmailLink.helpers(e.atResendVerificationEmailLinkHelpers);t.atResendVerificationEmailLink.events(e.atResendVerificationEmailLinkEvents)}).call(this);(function(){t.__checkName("atTitle");t["atTitle"]=new t("Template.atTitle",function(){var t=this;return o.DIV({class:"at-title"},"\n    ",o.H3(u.View("lookup:title",function(){return a.mustache(t.lookup("title"))})),"\n  ")})}).call(this);(function(){t.atTitle.helpers(e.atTitleHelpers)}).call(this);(function(){t.__checkName("fullPageAtForm");t["fullPageAtForm"]=new t("Template.fullPageAtForm",function(){var t=this;return o.DIV({class:"container"},"\n    ",o.DIV({class:"row"},"\n      ",o.DIV({class:"col-md-6 col-md-offset-3"},"\n        ",a.include(t.lookupTemplate("atForm")),"\n      "),"\n    "),"\n  ")})}).call(this);return{}});
154
155Package["core-runtime"].queue("ostrio:cookies",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;Package.fetch.fetch;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var t=Package.promise.Promise;var n=Package["ecmascript-runtime-client"].Symbol;var i=Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;
155var o=r({node_modules:{meteor:{"ostrio:cookies":{
155"cookies.js":function(e,r,o){o.export({Cookies:function(){return q},CookiesCore:function(){return F}});var s;o.link("meteor/meteor",{Meteor:function(e){s=e}},0);var a;o.link("./helpers.js",{default:function(e){a=e}},1);function u(e,r){if(null==r||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function c(e){if(Array.isArray(e))return e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,r,n,i,o,s,a){try{var u=e[s](a);var c=u.value}catch(e){n(e);return}if(u.done)r(c);else t.resolve(c).then(i,o)}function h(e){return function(){var r=this,n=arguments;return new t(function(t,i){var o=e.apply(r,n);function s(e){f(o,t,i,s,a,"next",e)}function a(e){f(o,t,i,s,a,"throw",e)}s(void 0)})}}function d(e,r,t){r=k(r);return b(e,j()?Reflect.construct(r,t||[],k(e).constructor):r.apply(e,t))}function p(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function v(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function _(e,r,t){if(r)v(e.prototype,r);if(t)v(e,t);return e}function y(e,r,t){if(r in e)Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true});else e[r]=t;return e}function k(e){k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return k(e)}function g(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)O(e,r)}function w(e,r){var t=null==e?null:void 0!==n&&e[n.iterator]||e["@@iterator"];if(null==t)return;var i=[];var o=true;var s=false;var a,u;try{for(t=t.call(e);!(o=(a=t.next()).done);o=true){i.push(a.value);if(r&&i.length===r)break}}catch(e){s=true;u=e}finally{try{if(!o&&null!=t["return"])t["return"]()}finally{if(s)throw u}}return i}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e,r){if(r&&("object"===S(r)||"function"==typeof r))return r;return l(e)}function O(e,r){O=Object.setPrototypeOf||function(e,r){e.__proto__=r;return e};return O(e,r)}function C(e,r){return c(e)||w(e,r)||E(e,r)||m()}function S(e){return e&&void 0!==n&&e.constructor===n?"symbol":typeof e}function E(e,r){if(!e)return;if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor)t=e.constructor.name;if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,r)}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}function A(e,r){var t,i,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),"function"==typeof n&&(a[n.iterator]=function(){return this}),a;function u(e){return function(r){return c([e,r])}}function c(n){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,n[0]&&(s=0)),s)try{if(t=1,i&&(o=2&n[0]?i["return"]:n[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;if(i=0,o)n=[2&n[0],o.value];switch(n[0]){case 0:case 1:o=n;break;case 4:s.label++;return{value:n[1],done:false};case 5:s.label++;i=n[1];n=[0];continue;case 7:n=s.ops.pop();s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){s.label=n[1];break}if(6===n[0]&&s.label<o[1]){s.label=o[1];o=n;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(n);break}if(o[2])s.ops.pop();s.trys.pop();continue}n=r.call(e,s)}catch(e){n=[6,e];i=0}finally{t=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:true}}}var P,R,x,T,M,I;var L;var U;if(s.isServer)U=e("meteor/webapp").WebApp;else L=e("meteor/fetch").fetch;var N=function(){};var D=/\/___cookie___\/set/;var z=s.isServer?process.env.ROOT_URL:(null==(P=window.__meteor_runtime_config__)?void 0:P.ROOT_URL)||(null==(x=window.__meteor_runtime_config__)?void 0:null==(R=x.meteorEnv)?void 0:R.ROOT_URL)||false;var H=s.isServer?process.env.MOBILE_ROOT_URL:(null==(T=window.__meteor_runtime_config__)?void 0:T.MOBILE_ROOT_URL)||(null==(I=window.__meteor_runtime_config__)?void 0:null==(M=I.meteorEnv)?void 0:M.MOBILE_ROOT_URL)||false;var F=function(){"use strict";function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,e);this.NAME=r.name||"COOKIES_CORE";this.id=n(this.NAME);this.__pendingCookies=[];this.TTL=r.TTL||false;this.response=r.response||false;this.setCookie=r.setCookie||false;this.runOnServer=r.runOnServer||false;this.allowQueryStringCookies=r.allowQueryStringCookies||false;this.allowedCordovaOrigins=r.allowedCordovaOrigins||false;if(true===this.allowedCordovaOrigins)this.allowedCordovaOrigins=/^http:\/\/localhost:12[0-9]{3}$/;this.originRE=new RegExp("^https?://(".concat(z?z:"").concat(H?"|"+H:"",")$"));if(a.isObject(r._cookies))this.cookies=r._cookies;else if("string"==typeof r._cookies)this.cookies=a.parse(r._cookies,{setCookie:r.setCookie});else this.cookies={}}_(e,[{key:"get",value:function(e,r){var t=r?a.parse(r):this.cookies;if(!e||!t)return;if(t.hasOwnProperty(e))return a.deserialize(t[e])}},{key:"set",value:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&!a.isUndefined(r)){if(a.isNumber(this.TTL)&&void 0===t.expires)t.expires=new Date(+new Date+this.TTL);var n=a.serialize(e,r,t),i=n.cookieString,o=n.sanitizedValue;this.cookies[e]=o;if(s.isClient)document.cookie=i;else if(this.response){this.__pendingCookies.push(i);this.response.setHeader("Set-Cookie",this.__pendingCookies)}return true}return false}},{key:"remove",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(e&&this.cookies.hasOwnProperty(e)){var n=a.serialize(e,"",{domain:t,path:r,expires:new Date(0)}).cookieString;delete this.cookies[e];if(s.isClient)document.cookie=n;else if(this.response)this.response.setHeader("Set-Cookie",n);return true}if(!e&&this.keys().length>0&&""!==this.keys()[0]){var i=Object.keys(this.cookies);for(var o=0;o<i.length;o++)this.remove(i[o]);return true}return false}},{key:"has",value:function(e,r){var t=r?a.parse(r):this.cookies;if(!e||!t)return false;return t.hasOwnProperty(e)}},{key:"keys",value:function(){if(this.cookies)return Object.keys(this.cookies);return[]}},{key:"send",value:function(){var e=this;var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;if(s.isServer)r(new s.Error(400,"Client only: `.send()` cannot be used on the Server"));if(this.runOnServer){var t=this.__prepareSendData(),n=t.path,i=t.query;L("".concat(n).concat(i),{credentials:"include",type:"cors"}).then(function(t){e.cookies=a.parse(document.cookie);r(void 0,t)}).catch(r)}else r(new s.Error(400,"Can't send cookies on server when `runOnServer` is false."))}},{key:"sendAsync",value:function(){return h(function(){var e,r,t,n;return A(this,function(i){switch(i.label){case 0:if(s.isServer)throw new s.Error(400,"Client only: `.sendAsync()` cannot be used on the Server");if(!this.runOnServer)throw new s.Error(400,"Can't send cookies on server when `runOnServer` is false.");e=this.__prepareSendData(),r=e.path,t=e.query;return[4,L("".concat(r).concat(t),{credentials:"include",type:"cors"})];case 1:n=i.sent();this.cookies=a.parse(document.cookie);return[2,n]}})}).call(this)}},{key:"__prepareSendData",value:function(){var e,r,t;var n="".concat((null==(e=window.__meteor_runtime_config__)?void 0:e.ROOT_URL_PATH_PREFIX)||(null==(t=window.__meteor_runtime_config__)?void 0:null==(r=t.meteorEnv)?void 0:r.ROOT_URL_PATH_PREFIX)||"","/___cookie___/set");var i="";if((s.isCordova||s.isDesktop)&&this.allowQueryStringCookies){var o=this.keys();var u=[];for(var c=0;c<o.length;c++){var l=a.serialize(o[c],this.get(o[c])).sanitizedValue;var f="".concat(o[c],"=").concat(l);
155if(!u.includes(f))u.push(f)}if(u.length){n=s.absoluteUrl("___cookie___/set");i="?___cookies___=".concat(encodeURIComponent(u.join("; ")))}}return{path:n,query:i}}}]);return e}();var q=function(e){"use strict";g(r,e);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,r);var t;e.name="string"==typeof e.name?e.name:"COOKIES";e.TTL=a.isNumber(e.TTL)?e.TTL:false;e.runOnServer=false!==e.runOnServer;e.allowQueryStringCookies=true===e.allowQueryStringCookies;if(s.isClient){e._cookies=document.cookie;t=d(this,r,[e])}else{e._cookies={};t=d(this,r,[e]);e.auto=false!==e.auto;t.opts=e;t._coreInstancesCount=0;t.isDestroyed=false;t.hasMiddleware=false;if(a.isFunction(e.onCookies))if(e.auto||r.isMiddlewareRegistered)r.__hooks.set(t.id,e.onCookies);else s._debug("[ostrio:cookies] [WARNING] {onCookies} has no effect when {auto: false}. `onCookies` hook would not run!",t.NAME);if(a.isFunction(e.handler))r.__handlers.set(t.id,e.handler);if(e.runOnServer&&e.auto&&!r.isMiddlewareRegistered){t.hasMiddleware=true;r.isMiddlewareRegistered=true;U.connectHandlers.use(t.__autoMiddleware.bind(t))}}return l(t)}_(r,[{key:"middleware",value:function(){var e=this;if(!s.isServer)throw new s.Error(500,"Server only: `.middleware()` cannot be used on the Client");if(!this.opts.runOnServer)throw new s.Error(400,"Can't use middleware when `runOnServer` is false.");if(r.isMiddlewareRegistered){s._debug("[ostrio:cookies] [WARNING] Middleware already registered! All consequent middleware registration will have no effect as it will execute same logic and call the same hooks/callbacks",this.NAME);return this.__blankMiddleware.bind(this)}this.hasMiddleware=true;r.isMiddlewareRegistered=true;return function(t,n,i){return h(function(){return A(this,function(e){switch(e.label){case 0:if(this.isDestroyed){i();return[2]}t.Cookies=this.__getCookiesCore(t,n);return[4,this.__execute(t,n,r.__handlers)];case 1:e.sent();i();return[2]}})}).call(e)}}},{key:"destroy",value:function(){if(!s.isServer)throw new s.Error(500,"Server only: `.destroy()` cannot be used on the Client");if(this.isDestroyed)return false;if(this.hasMiddleware)r.isMiddlewareRegistered=false;this.isDestroyed=true;r.__hooks.delete(this.id);r.__handlers.delete(this.id);this.opts=null;this.response=null;this.cookies=null;this.__pendingCookies=null;return true}},{key:"__execute",value:function(e,r,t){return h(function(){var i,o,a,u,c,l,f,h,d,p,v;return A(this,function(_){switch(_.label){case 0:i=e.Cookies;if(!t.size)return[3,11];if(!i)i=this.__getCookiesCore(e,r);o=true,a=false,u=void 0;_.label=1;case 1:_.trys.push([1,8,9,10]);c=t[n.iterator]();_.label=2;case 2:if(!!(o=(l=c.next()).done))return[3,7];f=C(l.value,2),h=f[0],d=f[1];_.label=3;case 3:_.trys.push([3,5,,6]);return[4,d(i)];case 4:_.sent();return[3,6];case 5:p=_.sent();s._debug("[ostrio:cookies] Error in `handler` callback or `onCookies` hook",this.NAME,h,p);return[3,6];case 6:o=true;return[3,2];case 7:return[3,10];case 8:v=_.sent();a=true;u=v;return[3,10];case 9:try{if(!o&&null!=c.return)c.return()}finally{if(a)throw u}return[7];case 10:return[2,true];case 11:return[2,false]}})}).call(this)}},{key:"__blankMiddleware",value:function(e,r,t){t()}},{key:"__autoMiddleware",value:function(e,t,n){return h(function(){var i,o,s,u,c,l,f;return A(this,function(h){switch(h.label){case 0:if(this.isDestroyed){n();return[2]}if(!D.test(e._parsedUrl.path))return[3,2];t.statusCode=200;i=!!e.headers.origin&&this.allowedCordovaOrigins&&this.allowedCordovaOrigins.test(e.headers.origin);o=i||!!e.headers.origin&&this.originRE.test(e.headers.origin);if(o){t.setHeader("Access-Control-Allow-Credentials","true");t.setHeader("Access-Control-Allow-Origin",e.headers.origin)}s={};if(i&&this.opts.allowQueryStringCookies&&e.query.___cookies___)s=a.parse(decodeURIComponent(e.query.___cookies___));else if(e.headers.cookie)s=a.parse(e.headers.cookie);u=Object.keys(s);c=[];if(u.length){for(l=0;l<u.length;l++){f=a.serialize(u[l],s[u[l]]).cookieString;if(!c.includes(f))c.push(f)}if(c.length)t.setHeader("Set-Cookie",c)}return[4,this.__execute(e,t,r.__hooks)];case 1:h.sent();t.setHeader("Content-Type","plain/text");t.end();return[3,4];case 2:e.Cookies=this.__getCookiesCore(e,t);return[4,this.__execute(e,t,r.__handlers)];case 3:h.sent();n();h.label=4;case 4:return[2]}})}).call(this)}},{key:"__getCookiesCore",value:function(e,r){var t={};if(e.headers&&e.headers.cookie)t=a.parse(e.headers.cookie);this._coreInstancesCount++;return new F({_cookies:t,TTL:this.opts.TTL,runOnServer:this.opts.runOnServer,response:r,allowQueryStringCookies:this.opts.allowQueryStringCookies,name:"CORE_".concat(this._coreInstancesCount,"_BY_").concat(this.NAME)})}}]);return r}(F);y(q,"__handlers",new i);y(q,"__hooks",new i);y(q,"isMiddlewareRegistered",false)},
155"helpers.js":function(r,t,i){i.export({isNumber:function(){return y},isObject:function(){return k},isUndefined:function(){return g},isArray:function(){return w},isFunction:function(){return m},clone:function(){return b},tryDecode:function(){return R},parse:function(){return x},antiCircular:function(){return T},serialize:function(){return M},deserialize:function(){return I}});function o(e,r){if(null==r||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function s(e){if(Array.isArray(e))return o(e)}function a(e,r,t){if(r in e)Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true});else e[r]=t;return e}function u(e,r){if(null!=r&&void 0!==n&&r[n.hasInstance])return!!r[n.hasInstance](e);return e instanceof r}function c(e){if(void 0!==n&&null!=e[n.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};var n=Object.keys(t);if("function"==typeof Object.getOwnPropertySymbols)n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}));n.forEach(function(r){a(e,r,t[r])})}return e}function h(e){return s(e)||c(e)||p(e)||l()}function d(e){return e&&void 0!==n&&e.constructor===n?"symbol":typeof e}function p(e,r){if(!e)return;if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor)t=e.constructor.name;if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,r)}var v=/JSON\.parse\((.*)\)/;var _=/false|true|null/;var y=function(e){return"[object Number]"===Object.prototype.toString.call(e)};var k=function(e){return"[object Object]"===Object.prototype.toString.call(e)};var g=function(e){return void 0===e};var w=function(e){return Array.isArray(e)};var m=function(e){if(g(e))return false;var r=Object.prototype.toString.call(e);return"[object Function]"===r||"[object AsyncFunction]"===r};var b=function(e){if(!k(e))return e;return w(e)?h(e):f({},e)};var O=function(e){return String(e).replace(/[^A-Za-z0-9@*\_\+\-\.\/]/g,function(e){var r=e.charCodeAt(0);if(r<256){var t=r.toString(16).toUpperCase();return"%"+(1===t.length?"0"+t:t)}var n=r.toString(16).toUpperCase();while(n.length<4)n="0"+n;return"%u"+n})};var C=function(e){return String(e).replace(/(%u[0-9A-Fa-f]{4})|(%[0-9A-Fa-f]{2})/g,function(e){if(e.startsWith("%u"))return String.fromCharCode(parseInt(e.slice(2),16));return String.fromCharCode(parseInt(e.slice(1),16))})};var S=decodeURIComponent;var E=encodeURIComponent;var j=/; */;var A=/, */;var P=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;var R=function(e,r){try{return r(e)}catch(r){return e}};var x=function(r,t){if("string"!=typeof r)throw new e.Error(404,"argument str must be a string");var n={};var i=t||{setCookie:false};var o;var s;var a;r.split(i.setCookie?A:j).forEach(function(e){var r=e;if(i.setCookie)r=r.split(j)[0];a=r.indexOf("=");if(a<0)return;s=r.slice(0,a).trim();s=R(C(s),i.decode||S);o=r.slice(++a).trim();if('"'===o[0])o=o.slice(1,-1);if(void 0===n[s])n[s]=R(o,i.decode||S)});return n};var T=function(e){if(!k(e)&&!w(e))return e;var r=b(e);var t=new WeakMap;return JSON.stringify(r,function(e,r){if((void 0===r?"undefined":d(r))==="object"&&null!==r){if(t.get(r))return;t.set(r,true)}return r})};var M=function(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var i;i=P.test(r)?r:O(r);var o=t;var s=t;if(g(s))s="";else if(k(s)||w(s)){var a=T(s);s=E("JSON.parse(".concat(a,")"));o=JSON.parse(a)}else{s=E(s);if(s&&!P.test(s))s=O(s)}var c=["".concat(i,"=").concat(s)];if(y(n.maxAge))c.push("Max-Age=".concat(n.maxAge));if(n.domain&&"string"==typeof n.domain){if(!P.test(n.domain))throw new e.Error(404,"option domain is invalid");c.push("Domain=".concat(n.domain))}if(n.path&&"string"==typeof n.path){if(!P.test(n.path))throw new e.Error(404,"option path is invali
155d");c.push("Path=".concat(n.path))}else c.push("Path=/");n.expires=n.expires||n.expire||false;if(n.expires===1/0)c.push("Expires=Fri, 31 Dec 9999 23:59:59 GMT");else if(u(n.expires,Date))c.push("Expires=".concat(n.expires.toUTCString()));else if(0===n.expires)c.push("Expires=0");else if(y(n.expires))c.push("Expires=".concat(new Date(n.expires).toUTCString()));if(n.httpOnly)c.push("HttpOnly");if(n.secure)c.push("Secure");if(n.partitioned)c.push("Partitioned");if(n.priority){var l="string"==typeof n.priority?n.priority.toLowerCase():void 0;switch(l){case"low":c.push("Priority=Low");break;case"medium":c.push("Priority=Medium");break;case"high":c.push("Priority=High");break;default:e._debug('[ostrio:cookies] [serialize] Cookie "'.concat(r,'" has invalid value for "priority" option: "').concat(n.priority,'" and was ignored'))}}if(n.firstPartyOnly)c.push("First-Party-Only");if(n.sameSite)c.push(true===n.sameSite?"SameSite":"SameSite=".concat(n.sameSite));return{cookieString:c.join("; "),sanitizedValue:o}};var I=function(r){if("string"!=typeof r)return r;if(v.test(r)){var t=r.match(v)[1];if(t)try{return JSON.parse(S(t))}catch(n){e._debug("[ostrio:cookies] [deserialize()] Exception:",n,r,t)}}else if(_.test(r))try{return JSON.parse(r)}catch(e){}return r}}}}}},{extensions:[".js",".json"]});return{require:o,eagerModulePaths:["/node_modules/meteor/ostrio:cookies/cookies.js"],mainModulePath:"/node_modules/meteor/ostrio:cookies/cookies.js"}});
156
157Package["core-runtime"].queue("ostrio:files",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;Package["reactive-var"].ReactiveVar;Package.tracker.Tracker;Package.tracker.Deps;Package["ddp-client"].DDP;Package.mongo.Mongo;Package.mongo.CollectionExtensions;Package.check.check;Package.check.Match;Package.random.Random;Package.fetch.fetch;var t=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var n=Package.promise.Promise;var i=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var r;var o=t({node_modules:{meteor:{"ostrio:files":{
157"client.js":function(e,t,r){r.export({FilesCollection:function(){return P},helpers:function(){return p}});var o;r.link("meteor/ddp-client",{DDP:function(e){o=e}},0);var s;r.link("meteor/mongo",{Mongo:function(e){s=e}},1);var c;r.link("meteor/meteor",{Meteor:function(e){c=e}},2);var l;r.link("meteor/ostrio:cookies",{Cookies:function(e){l=e}},3);var a,u;r.link("meteor/check",{check:function(e){a=e},Match:function(e){u=e}},4);var f;r.link("./upload.js",{UploadInstance:function(e){f=e}},5);var h;r.link("./core.js",{default:function(e){h=e}},6);var d,p;r.link("./lib.js",{formatFileURL:function(e){d=e},helpers:function(e){p=e}},7);function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t,i,r,o,s,c){try{var l=e[s](c);var a=l.value}catch(e){i(e);return}if(l.done)t(a);else n.resolve(a).then(r,o)}function v(e){return function(){var t=this,i=arguments;return new n(function(n,r){var o=e.apply(t,i);function s(e){b(o,n,r,s,c,"next",e)}function c(e){b(o,n,r,s,c,"throw",e)}s(void 0)})}}function y(e,t,n){t=w(t);return O(e,j()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function k(e,t,n){if(t)_(e.prototype,t);if(n)_(e,n);return e}
157function w(e){w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return w(e)}function C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)F(e,t)}function O(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;return g(e)}function F(e,t){F=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return F(e,t)}function S(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}function A(e,t){var n,r,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=l(0),c["throw"]=l(1),c["return"]=l(2),"function"==typeof i&&(c[i.iterator]=function(){return this}),c;function l(e){return function(t){return a([e,t])}}function a(i){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,i[0]&&(s=0)),s)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;if(r=0,o)i=[2&i[0],o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:s.label++;return{value:i[1],done:false};case 5:s.label++;r=i[1];i=[0];continue;case 7:i=s.ops.pop();s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1];o=i;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(i);break}if(o[2])s.ops.pop();s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e];r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var E=function(){};var R=["allowClientCode","allowQueryStringCookies","chunkSize","collection","collectionName","ddp","debug","disableSetTokenCookie","disableUpload","downloadRoute","namingFunction","onBeforeUpload","onbeforeunloadMessage","public","sanitize","schema"];var P=function(e){"use strict";C(t,e);function t(e){m(this,t);var n;n=y(this,t);if(e)Object.keys(e).forEach(function(t){if(R.includes(t))n[t]=e[t]});var i=n;var r=new l({allowQueryStringCookies:n.allowQueryStringCookies});if(!p.isBoolean(n.debug))n.debug=false;if(!p.isBoolean(n.public))n.public=false;if(!n.chunkSize)n.chunkSize=524288;n.chunkSize=8*Math.floor(n.chunkSize/8);if(!p.isString(n.collectionName)&&!n.collection)n.collectionName="MeteorUploadFiles";if(n.collection)n.collectionName=n.collection._name;else n.collection=new s.Collection(n.collectionName);n.collection.filesCollection=n;a(n.collectionName,String);if(n.public&&!n.downloadRoute)throw new c.Error(500,"[FilesCollection.".concat(n.collectionName,']: "downloadRoute" must be precisely provided on "public" collections! Note: "downloadRoute" must be equal or be inside of your web/proxy-server (relative) root.'));if(!p.isBoolean(n.disableUpload))n.disableUpload=false;if(!p.isBoolean(n.disableSetTokenCookie))n.disableSetTokenCookie=false;if(!p.isString(n.downloadRoute))n.downloadRoute="/cdn/storage";n.downloadRoute=n.downloadRoute.replace(/\/$/,"");if(!p.isFunction(n.namingFunction))n.namingFunction=false;if(!p.isFunction(n.onBeforeUpload))n.onBeforeUpload=false;if(!p.isBoolean(n.allowClientCode))n.allowClientCode=true;if(!n.ddp)n.ddp=c;if(!n.onbeforeunloadMessage)n.onbeforeunloadMessage="Upload in a progress... Do you want to abort?";if(!e.disableSetTokenCookie){var f=function(){if(c.connection._lastSessionId){r.set("x_mtok",c.connection._lastSessionId,{path:"/",sameSite:"Lax",secure:c.isProduction});if((c.isCordova||c.isDesktop)&&n.allowQueryStringCookies)r.send()}};var d=Package&&Package["accounts-base"]&&Package["accounts-base"].Accounts?Package["accounts-base"].Accounts:void 0;if(d){o.onReconnect(function(e){e.onReconnect=f});c.startup(f);d.onLogin(f)}}a(n.onbeforeunloadMessage,u.OneOf(String,Function));try{var g=window.URL||window.webkitURL||window.mozURL||window.msURL||window.oURL||false;if(window.Worker&&window.Blob&&g&&p.isFunction(g.createObjectURL)){n._supportWebWorker=true;n._webWorkerUrl=g.createObjectURL(new window.Blob(['!function(a){"use strict";a.onmessage=function(b){var c=b.data.f.slice(b.data.cs*(b.data.cc-1),b.data.cs*b.data.cc);if(b.data.ib===!0)postMessage({bin:c,chunkId:b.data.cc});else{var d;a.FileReader?(d=new FileReader,d.onloadend=function(a){postMessage({bin:(d.result||a.srcElement||a.target).split(",")[1],chunkId:b.data.cc,s:b.data.s})},d.onerror=function(a){throw(a.target||a.srcElement).error},d.readAsDataURL(c)):a.FileReaderSync?(d=new FileReaderSync,postMessage({bin:d.readAsDataURL(c).split(",")[1],chunkId:b.data.cc})):postMessage({bin:null,chunkId:b.data.cc,error:"File API is not supported in WebWorker!"})}}}(this);'],{type:"application/javascript"}))}else if(window.Worker){n._supportWebWorker=true;n._webWorkerUrl=c.absoluteUrl("packages/ostrio_files/worker.min.js")}else n._supportWebWorker=false}catch(e){i._debug("[FilesCollection] [Check WebWorker Availability] Error:",e);n._supportWebWorker=false}if(!n.schema)n.schema=h.schema;a(n.debug,Boolean);a(n.schema,Object);a(n.public,Boolean);a(n.chunkSize,Number);a(n.downloadRoute,String);a(n.disableUpload,Boolean);a(n.namingFunction,u.OneOf(false,Function));a(n.onBeforeUpload,u.OneOf(false,Function));a(n.allowClientCode,Boolean);a(n.ddp,u.Any);n._methodNames={_Abort:"_FilesCollectionAbort_".concat(n.collectionName),_Write:"_FilesCollectionWrite_".concat(n.collectionName),_Start:"_FilesCollectionStart_".concat(n.collectionName),_Remove:"_FilesCollectionRemove_".concat(n.collectionName)};return n}k(t,[{key:"_getMimeType",value:function(e){var t;a(e,Object);if(p.isObject(e))t=e.type;if(!t||!p.isString(t))t="application/octet-stream";return t}},{key:"_getUser",value:function(){var e={user:function(){return null},userId:null};if(p.isFunction(c.userId)){e.user=function(){return c.user()};e.userId=c.userId()}return e}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:true;this._debug("[FilesCollection] [insert()]",e,{autoStart:t});if(this.disableUpload){this._debug("[FilesCollection] [insert()] Upload is disabled 
157with [disableUpload]!");e.disableUpload=true}var n=new f(e,this);if(t){n.start().catch(function(e){n.emit("error",new c.Error(500,"[FilesCollection] [insert] Error starting upload:",e))});return n}return n.manual()}},{key:"insertAsync",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:true;return v(function(){var n;return A(this,function(i){switch(i.label){case 0:this._debug("[FilesCollection] [insertAsync()]",e,{autoStart:t});if(this.disableUpload){this._debug("[FilesCollection] [insertAsync()] Upload is disabled with [disableUpload]!");e.disableUpload=true}n=new f(e,this);if(!t)return[3,2];return[4,n.start()];case 1:i.sent();return[2,n];case 2:return[2,n.manual()]}})}).call(this)}},{key:"remove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this._debug("[FilesCollection] [remove(".concat(JSON.stringify(e),")]"));a(e,u.OneOf(Object,String));a(t,u.Optional(Function));if(this.allowClientCode)this.ddp.call(this._methodNames._Remove,e,t||E);else{t&&t(new c.Error(401,"[FilesCollection] [remove] Run code from client is not allowed!"));this._debug("[FilesCollection] [remove] Run code from client is not allowed!")}return this}},{key:"removeAsync",value:function(){return v(function(){var e;var t=arguments;return A(this,function(n){switch(n.label){case 0:e=t.length>0&&void 0!==t[0]?t[0]:{};this._debug("[FilesCollection] [removeAsync(".concat(JSON.stringify(e),")]"));a(e,u.OneOf(Object,String));if(!this.allowClientCode)return[3,2];return[4,this.ddp.callAsync(this._methodNames._Remove,e)];case 1:return[2,n.sent()];case 2:this._debug("[FilesCollection] [removeAsync] Run code from client is not allowed!");return[2,0]}})}).apply(this,arguments)}}]);return t}(h);c.startup(function(){var e=Package&&Package.templating&&Package.templating.Template?Package.templating.Template:void 0;if(e)e.registerHelper("fileURL",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"original",n=arguments.length>2?arguments[2]:void 0;if(!p.isObject(e))return"";var i=p.isString(t)?t:"original";var r=p.isString(n)?n:void 0;return d(e,i,r)})})},
157"core.js":function(t,r,o){o.export({default:function(){return A}});var s;o.link("eventemitter3",{EventEmitter:function(e){s=e}},0);var c,l;o.link("meteor/check",{check:function(e){c=e},Match:function(e){l=e}},1);var a,u;o.link("./lib.js",{formatFileURL:function(e){a=e},helpers:function(e){u=e}},2);var f,h;o.link("./cursor.js",{FilesCursor:function(e){f=e},FileCursor:function(e){h=e}},3);function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,i,r,o,s,c){try{var l=e[s](c);var a=l.value}catch(e){i(e);return}if(l.done)t(a);else n.resolve(a).then(r,o)}function g(e){return function(){var t=this,i=arguments;return new n(function(n,r){var o=e.apply(t,i);function s(e){p(o,n,r,s,c,"next",e)}function c(e){p(o,n,r,s,c,"throw",e)}s(void 0)})}}function b(e,t,n){t=k(t);return C(e,S()?Reflect.construct(t,n||[],k(e).constructor):t.apply(e,n))}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function m(e,t,n){if(t)y(e.prototype,t);if(n)y(e,n);return e}function _(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function k(e){k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return k(e)}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)O(e,t)}function C(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;return d(e)}function O(e,t){O=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return O(e,t)}function F(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function j(e,t){var n,r,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=l(0),c["throw"]=l(1),c["return"]=l(2),"function"==typeof i&&(c[i.iterator]=function(){return this}),c;function l(e){return function(t){return a([e,t])}}function a(i){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,i[0]&&(s=0)),s)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;if(r=0,o)i=[2&i[0],o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:s.label++;return{value:i[1],done:false};case 5:s.label++;r=i[1];i=[0];continue;case 7:i=s.ops.pop();s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1];o=i;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(i);break}if(o[2])s.ops.pop();s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e];r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var A=function(t){"use strict";w(n,t);function n(){v(this,n);return b(this,n)}m(n,[{key:"_debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.debug)(console.info||console.log||function(){}).apply(void 0,t)}},{key:"_getFileName",value:function(e){var t=e.name||e.fileName;if(u.isString(t)&&t.length>0)return t.replace(/^\.\.+/,"").replace(/\.{2,}/g,".").replace(/\//g,"");return""}},{key:"_getExt",value:function(e){if(e.includes(".")){var t=(e.split(".").pop().split("?")[0]||"").toLowerCase().replace(/([^a-z0-9\-\_\.]+)/gi,"").substring(0,20);return{ext:t,extension:t,extensionWithDot:".".concat(t)}}return{ext:"",extension:"",extensionWithDot:""}}},{key:"_updateFileTypes",value:function(e){e.isVideo=/^video\//i.test(e.type);e.isAudio=/^audio\//i.test(e.type);e.isImage=/^image\//i.test(e.type);e.isText=/^text\//i.test(e.type);e.isJSON=/^application\/json$/i.test(e.type);e.isPDF=/^application\/(x-)?pdf$/i.test(e.type)}},{key:"_dataToSchema",value:function(e){var t={name:e.name,extension:e.extension,ext:e.extension,extensionWithDot:".".concat(e.extension),path:e.path,meta:e.meta,type:e.type,mime:e.type,"mime-type":e.type,size:e.size,userId:e.userId||null,versions:{original:{path:e.path,size:e.size,type:e.type,extension:e.extension}},_downloadRoute:e._downloadRoute||this.downloadRoute,_collectionName:e._
157collectionName||this.collectionName};if(e.fileId)t._id=e.fileId;this._updateFileTypes(t);t._storagePath=e._storagePath||this.storagePath(Object.assign({},e,t));return t}},{key:"findOneAsync",value:function(e){return g(function(){var e,t,n;var i=arguments;return j(this,function(r){switch(r.label){case 0:e=i.length>0&&void 0!==i[0]?i[0]:{},t=i.length>1?i[1]:void 0;this._debug("[FilesCollection] [findOneAsync(".concat(JSON.stringify(e),", ").concat(JSON.stringify(t),")]"));c(e,l.Optional(l.OneOf(Object,String,Boolean,Number,null)));c(t,l.Optional(Object));return[4,this.collection.findOneAsync(e,t)];case 1:n=r.sent();if(n)return[2,new h(n,this)];return[2,null]}})}).apply(this,arguments)}},{key:"findOne",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this._debug("[FilesCollection] [findOne(".concat(JSON.stringify(t),", ").concat(JSON.stringify(n),")]"),e.isServer);if(e.isServer)throw new e.Error(404,"FilesCollection#findOne() not available in server! Use .findOneAsync instead");c(t,l.Optional(l.OneOf(Object,String,Boolean,Number,null)));c(n,l.Optional(Object));var i=this.collection.findOne(t,n);if(i)return new h(i,this);return null}},{key:"find",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this._debug("[FilesCollection] [find(".concat(JSON.stringify(e),", ").concat(JSON.stringify(t),")]"));c(e,l.Optional(l.OneOf(Object,String,Boolean,Number,null)));c(t,l.Optional(Object));return new f(e,t,this)}},{key:"update",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.collection.update.apply(this.collection,t);return this.collection}},{key:"updateAsync",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(function(){return j(this,function(e){switch(e.label){case 0:return[4,this.collection.updateAsync.apply(this.collection,t)];case 1:return[2,e.sent()]}})}).call(this)}},{key:"countDocuments",value:function(e){return g(function(){var e,t,n;var i=arguments;return j(this,function(r){switch(r.label){case 0:e=i.length>0&&void 0!==i[0]?i[0]:{},t=i.length>1?i[1]:void 0;this._debug("[FilesCollection] [countDocuments(".concat(JSON.stringify(e),", ").concat(JSON.stringify(t),")]"));c(e,l.Optional(l.OneOf(Object,String)));c(t,l.Optional(Object));n="string"==typeof e&&e.length?{_id:e}:e;return[4,this.collection.countDocuments(n,t)];case 1:return[2,r.sent()]}})}).apply(this,arguments)}},{key:"estimatedDocumentCount",value:function(e){return g(function(){return j(this,function(t){switch(t.label){case 0:c(e,l.Optional(Object));this._collection._debug("[FilesCollection] [estimatedDocumentCount()]");return[4,this.collection.estimatedDocumentCount(e)];case 1:return[2,t.sent()]}})}).call(this)}},{key:"link",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"original",n=arguments.length>2?arguments[2]:void 0;this._debug("[FilesCollection] [link(".concat(u.isObject(e)?e._id:void 0,", ").concat(t,")]"));c(e,Object);if(!e)return"";return a(e,t,n)}}]);return n}(s);_(A,"__helpers",u);_(A,"schema",{_id:{type:String},size:{type:Number},name:{type:String},type:{type:String},path:{type:String},isVideo:{type:Boolean},isAudio:{type:Boolean},isImage:{type:Boolean},isText:{type:Boolean},isJSON:{type:Boolean},isPDF:{type:Boolean},extension:{type:String,optional:true},ext:{type:String,optional:true},extensionWithDot:{type:String,optional:true},mime:{type:String,optional:true},"mime-type":{type:String,optional:true},_storagePath:{type:String},_downloadRoute:{type:String},_collectionName:{type:String},public:{type:Boolean,optional:true},meta:{type:Object,blackbox:true,optional:true},userId:{type:String,optional:true},updatedAt:{type:Date,optional:true},versions:{type:Object,blackbox:true}})},
157"cursor.js":function(e,t,r){r.export({FileCursor:function(){return h},FilesCursor:function(){return d}});var o;r.link("meteor/meteor",{Meteor:function(e){o=e}},0);function s(e,t,i,r,o,s,c){try{var l=e[s](c);var a=l.value}catch(e){i(e);return}if(l.done)t(a);else n.resolve(a).then(r,o)}function c(e){return function(){var t=this,i=arguments;return new n(function(n,r){var o=e.apply(t,i);function c(e){s(o,n,r,c,l,"next",e)}function l(e){s(o,n,r,c,l,"throw",e)}c(void 0)})}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function u(e,t,n){if(t)a(e.prototype,t);if(n)a(e,n);return e}function f(e,t){var n,r,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=l(0),c["throw"]=l(1),c["return"]=l(2),"function"==typeof i&&(c[i.iterator]=function(){return this}),c;function l(e){return function(t){return a([e,t])}}function a(i){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,i[0]&&(s=0)),s)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;if(r=0,o)i=[2&i[0],o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:s.label++;return{value:i[1],done:false};case 5:s.label++;r=i[1];i=[0];continue;case 7:i=s.ops.pop();s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1];o=i;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(i);break}if(o[2])s.ops.pop();s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e];r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var h=function(){"use strict";function e(t,n){l(this,e);if(!t)throw new o.Error(404,"No file reference provided");this._fileRef=t;this._collection=n;Object.assign(this,t)}u(e,[{key:"remove",value:function(e){this._collection._debug("[FilesCollection] [FileCursor] [remove()]");if(this._fileRef&&this._fileRef._id)this._collection.remove(this._fileRef._id,e);else e&&e(new o.Error(404,"No such file"));return this}},{key:"removeAsync",value:function(){return c(function(){return f(this,function(e){switch(e.label){case 0:this._collection._debug("[FilesCollection] [FileCursor] [removeAsync()]");if(!(this._fileRef&&this._fileRef._id))return[3,2];return[4,this._collection.removeAsync(this._fileRef._id)];case 1:e.sent();return[3,3];case 2:throw new o.Error(404,"No such file");case 3:return[2,this]}})}).call(this)}},{key:"link",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"original",t=arguments.length>1?arguments[1]:void 0;this._collection._debug("[FilesCollection] [FileCursor] [link(".concat(e,")]"));if(this._fileRef&&this._fileRef._id)return this._collection.link(this._fileRef,e,t);return""}},{key:"get",value:function(e){this._collection._debug("[FilesCollection] [FileCursor] [get(".concat(e,")]"));if(e)return this._fileRef[e];return this._fileRef}},{key:"fetch",value:function(){this._collection._debug("[FilesCollection] [FileCursor] [fetch()]");return[this._fileRef]}},{key:"fetchAsync",value:function(){return c(function(){return f(this,function(e){this._collection._debug("[FilesCollection] [FileCursor] [fetchAsync()]");return[2,[this._fileRef]]})}).call(this)}},{key:"with",value:function(){this._collection._debug("[FilesCollection] [FileCursor] [with()]");var e=this._collection.collection.findOne(this._fileRef._id);Object.assign(this,e);return this}},{key:"withAsync",value:function(){return c(function(){var e;return f(this,function(t){switch(t.label){case 0:this._collection._debug("[FilesCollection] [FileCursor] [withAsync()]");return[4,this._collection.collection.findOneAsync(this._fileRef._id)];case 1:e=t.sent();Object.assign(this,e);return[2,this]}})}).call(this)}}]);return e}();var d=function(){"use strict";function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;l(this,e);this._collection=i;this._selector=t;this._current=-1;this.cursor=this._collection.collection.find(this._selector,n)}u(e,[{key:"get",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [get()]");return this.fetch()}},{key:"getAsync",value:function(){return c(function(){return f(this,function(e){switch(e.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [getAsync()]");return[4,this.fetchAsync()];case 1:return[2,e.sent()]}})}).call(this)}},{key:"hasNext",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [hasNext()]");o.deprecate("FilesCursor#hasNext() is deprecated! Use `hasNextAsync` instead");return this._current<this.count()-1}},{key:"hasNextAsync",value:function(){return c(function(){var e;return f(this,function(t){switch(t.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [hasNextAsync()]");return[4,this.countDocuments()];case 1:e=t.sent();return[2,this._current<e-1]}})}).call(this)}},{key:"next",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [next()]");var e=this.fetch();this._current++;return e[this._current]}},{key:"nextAsync",value:function(){return c(function(){var e;return f(this,function(t){switch(t.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [nextAsync()]");return[4,this.fetchAsync()];case 1:e=t.sent();this._current++;return[2,e[this._current]]}})}).call(this)}},{key:"hasPrevious",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [hasPrevious()]");return this._current>0}},{key:"hasPreviousAsync",value:function(){return c(function(){return f(this,function(e){this._collection._debug("[FilesCollection] [FilesCursor] [hasPreviousAsync()]");return[2,this._current>0]})}).call(this)}},{key:"previous",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [previous()]");this._current=Math.max(this._current-1,0);return this.fetch()[this._current]}},{key:"previousAsync",value:function(){return c(function(){var e;return f(this,function(t){switch(t.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [previousAsync()]");this._current=Math.max(this._current-1,0);return[4,this.fetchAsync()];case 1:e=t.sent();return[2,e[this._current]]}})}).call(this)}},{key:"fetch",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [fetch()]");return this.cursor.fetch()||[]}},{key:"fetchAsync",value:function(){return c(function(){return f(this,function(e){switch(e.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [fetchAsync()]");return[4,this.cursor.fetchAsync()];case 1:return[2,e.sent()||[]]}})}).call(this)}},{key:"first",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [first()]");this._current=0;var e=this.fetch();return e[this._current]}},{key:"firstAsync",value:function(){return c(function(){var e;return f(this,function(t){switch(t.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [firstAsync()]");this._current=0;return[4,this.fetchAsync()];case 1:e=t.sent();return[2,e[this._current]]}})}).call(this)}},{key:"last",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [last()]");var e=this.count();this._current=e-1;var t=this.fetch();return e>0?t[this._current]:void 0}},{key:"lastAsync",value:function(){return c(function(){var e,t;return f(this,function(n){switch(n.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [lastAsync()]");return[4,this.countDocuments()];case 1:e=n.sent();this._current=e-1;return[4,this.fetchAsync()];case 2:t=n.sent();return[2,e>0?t[this._current]:void 0]}})}).call(this)}},{key:"count",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [count()]");o.deprecate("FilesCursor#count() is deprecated! Use `countDocuments` instead");return this.cursor.count()}},{key:"countAsync",value:function(){return c(function(){return f(this,function(e){switch(e.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [countAsync()]");o.deprecate("FilesCursor#countAsync() is deprecated! Use `countDocuments` instead");return[4,this.cursor.countAsync()];case 1:return[2,e.sent()]}})}).call(this)}},{key:"countDocuments",value:function(e){return c(function(){return f(this,function(t){switch(t.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [countDocuments()]");return[4,this._collection.countDocuments(this._selector,e)];case 1:return[2,t.sent()]}})}).call(this)}},{key:"remove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};this._collection._debug("[FilesCollection] [FilesCursor] [remove()]");this._collection.remove(this._selector,e);return this}},{key:"removeAsync",value:function(){return c(function(){return f(this,function(e){switch(e.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [removeAsync()]");return[4,this._collection.removeAsync(this._selector)];case 1:return[2,e.sent()]}})}).call(this)}}
157,{key:"forEach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._collection._debug("[FilesCollection] [FilesCursor] [forEach()]");this.cursor.forEach(e,t);return this}},{key:"forEachAsync",value:function(e){return c(function(e){var t;var n=arguments;return f(this,function(i){switch(i.label){case 0:t=n.length>1&&void 0!==n[1]?n[1]:{};this._collection._debug("[FilesCollection] [FilesCursor] [forEachAsync()]");return[4,this.cursor.forEachAsync(e,t)];case 1:i.sent();return[2,this]}})}).apply(this,arguments)}},{key:"each",value:function(){var e=this;this._collection._debug("[FilesCollection] [FilesCursor] [each()]");return this.map(function(t){return new h(t,e._collection)})}},{key:"eachAsync",value:function(){return c(function(){var e;return f(this,function(t){switch(t.label){case 0:e=this;this._collection._debug("[FilesCollection] [FilesCursor] [eachAsync()]");return[4,this.mapAsync(function(t){return new h(t,e._collection)})];case 1:return[2,t.sent()]}})}).call(this)}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._collection._debug("[FilesCollection] [FilesCursor] [map()]");return this.cursor.map(e,t)}},{key:"mapAsync",value:function(e){return c(function(e){var t;var n=arguments;return f(this,function(i){switch(i.label){case 0:t=n.length>1&&void 0!==n[1]?n[1]:{};this._collection._debug("[FilesCollection] [FilesCursor] [mapAsync()]");return[4,this.cursor.mapAsync(e,t)];case 1:return[2,i.sent()]}})}).apply(this,arguments)}},{key:"current",value:function(){this._collection._debug("[FilesCollection] [FilesCursor] [current()]");if(this._current<0)this._current=0;return this.fetch()[this._current]}},{key:"currentAsync",value:function(){return c(function(){var e;return f(this,function(t){switch(t.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [currentAsync()]");if(this._current<0)this._current=0;return[4,this.fetchAsync()];case 1:e=t.sent();return[2,e[this._current]]}})}).call(this)}},{key:"observe",value:function(e){this._collection._debug("[FilesCollection] [FilesCursor] [observe()]");return this.cursor.observe(e)}},{key:"observeAsync",value:function(e){return c(function(){return f(this,function(t){switch(t.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [observeAsync()]");return[4,this.cursor.observeAsync(e)];case 1:return[2,t.sent()]}})}).call(this)}},{key:"observeChanges",value:function(e){this._collection._debug("[FilesCollection] [FilesCursor] [observeChanges()]");return this.cursor.observeChanges(e)}},{key:"observeChangesAsync",value:function(e){return c(function(){return f(this,function(t){switch(t.label){case 0:this._collection._debug("[FilesCollection] [FilesCursor] [observeChangesAsync()]");return[4,this.cursor.observeChangesAsync(e)];case 1:return[2,t.sent()]}})}).call(this)}}]);return e}()},
157"lib.js":function(e,t,n){n.export({fixJSONParse:function(){return p},fixJSONStringify:function(){return g},formatFileURL:function(){return b},helpers:function(){return d}});var r;n.link("meteor/check",{check:function(e){r=e}},0);function o(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e){if(Array.isArray(e))return o(e)}function c(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function l(e){if(void 0!==i&&null!=e[i.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var i=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));i.forEach(function(t){c(e,t,n[t])})}return e}function f(e){return s(e)||l(e)||h(e)||a()}function h(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}var d={sanitize:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:28,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-";return e.replace(/([^a-z0-9\-\_]+)/gi,n).substring(0,t)},isUndefined:function(e){return void 0===e},isObject:function(e){if(null===e||this.isArray(e)||this.isFunction(e))return false;return e===Object(e)},isNumber:function(e){return"[object Number]"===Object.prototype.toString.call(e)},isDate:function(e){return"[object Date]"===Object.prototype.toString.call(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)},isArray:function(e){return Array.isArray(e)},isBoolean:function(e){return true===e||false===e||"[object Boolean]"===Object.prototype.toString.call(e)},isFunction:function(e){if(this.isUndefined(e))return false;var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t},isEmpty:function(e){if(this.isDate(e))return false;if(this.isObject(e))return!Object.keys(e).length;if(this.isArray(e)||this.isString(e))return!e.length;return false},clone:function(e){if(!this.isObject(e))return e;return this.isArray(e)?f(e):u({},e)},has:function(e,t){var n=e;if(!this.isObject(n))return false;if(!this.isArray(t))return this.isObject(n)&&Object.prototype.hasOwnProperty.call(n,t);var i=t.length;for(var r=0;r<i;r++){if(!Object.prototype.hasOwnProperty.call(n,t[r]))return false;n=n[t[r]]}return!!i},omit:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=Object.assign({},e);for(var o=n.length-1;o>=0;o--)delete r[n[o]];return r},now:Date.now,throttle:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var i=0;var r=null;var o;var s=this;var c;var l;var a=function(){i=false===n.leading?0:s.now();r=null;o=e.apply(c,l);if(!r)c=l=null};var u=function(){var u=s.now();if(!i&&false===n.leading)i=u;var f=t-(u-i);c=this;l=arguments;if(f<=0||f>t){if(r){clearTimeout(r);r=null}i=u;o=e.apply(c,l);if(!r)c=l=null}else if(!r&&false!==n.trailing)r=setTimeout(a,f);return o};u.cancel=function(){clearTimeout(r);i=0;r=c=l=null};return u}};var p=function(e){for(var t in e)if(d.isString(e[t])&&e[t].includes("=--JSON-DATE--=")){e[t]=e[t].replace("=--JSON-DATE--=","");e[t]=new Date(parseInt(e[t]))}else if(d.isObject(e[t]))e[t]=p(e[t]);else if(d.isArray(e[t])){var n=void 0;for(var i=0;i<e[t].length;i++){n=e[t][i];if(d.isObject(n))e[t][i]=p(n);else if(d.isString(n)&&n.includes("=--JSON-DATE--=")){n=n.replace("=--JSON-DATE--=","");e[t][i]=new Date(parseInt(n))}}}return e};var g=function(e){for(var t in e)if(d.isDate(e[t]))e[t]="=--JSON-DATE--=".concat(+e[t]);else if(d.isObject(e[t]))e[t]=g(e[t]);else if(d.isArray(e[t])){var n=void 0;for(var i=0;i<e[t].length;i++){n=e[t][i];if(d.isObject(n))e[t][i]=g(n);else if(d.isDate(n))e[t][i]="=--JSON-DATE--=".concat(+n)}}return e};var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"original",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(__meteor_runtime_config__||{}).ROOT_URL;r(e,Object);r(t,String);var i=n;
157if(!d.isString(i))i=(__meteor_runtime_config__||{}).ROOT_URL||"/";var o=i.replace(/\/+$/,"");var s=e.versions&&e.versions[t]||e||{};var c;c=d.isString(s.extension)?".".concat(s.extension.replace(/^\./,"")):"";if(true===e.public)return o+("original"===t?"".concat(e._downloadRoute,"/").concat(e._id).concat(c):"".concat(e._downloadRoute,"/").concat(t,"-").concat(e._id).concat(c));return"".concat(o).concat(e._downloadRoute,"/").concat(e._collectionName,"/").concat(e._id,"/").concat(t,"/").concat(e._id).concat(c)}},
157"upload.js":function(e,t,r){r.export({FileUpload:function(){return U},UploadInstance:function(){return T}});var o;r.link("meteor/fetch",{fetch:function(e){o=e}},0);var s;r.link("meteor/meteor",{Meteor:function(e){s=e}},1);var c;r.link("meteor/random",{Random:function(e){c=e}},2);var l;r.link("meteor/tracker",{Tracker:function(e){l=e}},3);var a;r.link("meteor/reactive-var",{ReactiveVar:function(e){a=e}},4);var u;r.link("eventemitter3",{EventEmitter:function(e){u=e}},5);var f,h;r.link("meteor/check",{check:function(e){f=e},Match:function(e){h=e}},6);var d,p,g;r.link("./lib.js",{fixJSONParse:function(e){d=e},fixJSONStringify:function(e){p=e},helpers:function(e){g=e}},7);function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,i,r,o,s,c){try{var l=e[s](c);var a=l.value}catch(e){i(e);return}if(l.done)t(a);else n.resolve(a).then(r,o)}function y(e){return function(){var t=this,i=arguments;return new n(function(n,r){var o=e.apply(t,i);function s(e){v(o,n,r,s,c,"next",e)}function c(e){v(o,n,r,s,c,"throw",e)}s(void 0)})}}function m(e,t,n){t=O(t);return E(e,x()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n))}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function w(e,t,n){if(t)k(e.prototype,t);if(n)k(e,n);return e}function C(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function O(e){O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return O(e)}function F(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)R(e,t)}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var i=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));i.forEach(function(t){C(e,t,n[t])})}return e}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t)i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,i)}return n}function A(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else j(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}function E(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;return b(e)}function R(e,t){R=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return R(e,t)}function P(e){return e&&void 0!==i&&e.constructor===i?"symbol":typeof e}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}function D(e,t){var n,r,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=l(0),c["throw"]=l(1),c["return"]=l(2),"function"==typeof i&&(c[i.iterator]=function(){return this}),c;function l(e){return function(t){return a([e,t])}}function a(i){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,i[0]&&(s=0)),s)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;if(r=0,o)i=[2&i[0],o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:s.label++;return{value:i[1],done:false};case 5:s.label++;r=i[1];i=[0];continue;case 7:i=s.ops.pop();s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1];o=i;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(i);break}if(o[2])s.ops.pop();s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e];r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var I=(window.__meteor_runtime_config__.MOBILE_ROOT_URL||window.__meteor_runtime_config__.ROOT_URL).replace(/\/+$/,"");var N=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);var U=function(e){"use strict";F(t,e);function t(e){_(this,t);var n;n=m(this,t);n.config=e;n.config._debug("[FilesCollection] [FileUpload] [constructor]");if(n.config.isBase64)n.file=n.config.fileData;else n.file=Object.assign({},g.clone(n.config.file),n.config.fileData);n.state=new a("active");n.onPause=new a(false);n.progress=new a(0);n.continueFunc=function(){};n.estimateTime=new a(1e3);n.estimateSpeed=new a(0);n.remainingTime=new a("00:00:00");n.estimateTimer=s.setInterval(function(){if("active"===n.state.get()){var e=n.estimateTime.get();if(e>1e3){var t=e-1e3;n.estimateTime.set(t);n.remainingTime.set(n._formatDuration(t))}else n.remainingTime.set("00:00:00")}},1e3);return n}w(t,[{key:"pause",value:function(){this.config._debug("[FilesCollection] [insert] [.pause()]");if(!this.onPause.get()){this.onPause.set(true);this.state.set("paused");
157this.emit("pause",this.file)}}},{key:"continue",value:function(){this.config._debug("[FilesCollection] [insert] [.continue()]");if(this.onPause.get()&&s.status().connected){this.onPause.set(false);this.state.set("active");this.emit("continue",this.file);this.continueFunc()}}},{key:"toggle",value:function(){this.config._debug("[FilesCollection] [insert] [.toggle()]");if(this.onPause.get())this.continue();else this.pause()}},{key:"abort",value:function(){return y(function(){return D(this,function(e){switch(e.label){case 0:this.config._debug("[FilesCollection] [insert] [.abort()]");this.pause();this.config._onEnd();this.state.set("aborted");if(this.config.onAbort)this.config.onAbort.call(this,this.file);this.emit("abort",this.file);if(this.config.debug)console.timeEnd("insert ".concat(this.config.fileData.name));return[4,this.config.ddp.callAsync(this.config._Abort,this.config.fileId)];case 1:e.sent();return[2]}})}).call(this)}},{key:"_formatDuration",value:function(e){var t="".concat(Math.floor(e/36e5)).padStart(2,"0");var n="".concat(Math.floor(e%36e5/6e4)).padStart(2,"0");var i="".concat(Math.floor(e%6e4/1e3)).padStart(2,"0");return"".concat(t,":").concat(n,":").concat(i)}}]);return t}(u);var T=function(e){"use strict";F(t,e);function t(e,n){_(this,t);var i;i=m(this,t);i.config=e;i.collection=n;
157i.collection._debug("[FilesCollection] [new UploadInstance()]");if(!i.config.ddp)i.config.ddp=i.collection.ddp;if(!i.config.meta)i.config.meta={};if(!g.isString(i.config.transport))i.config.transport="ddp";i.config.transport=i.config.transport.toLowerCase();if("ddp"!==i.config.transport&&"http"!==i.config.transport)i.config.transport="ddp";if(!i.config.chunkSize)i.config.chunkSize=i.collection.chunkSize;if(!g.isBoolean(i.config.allowWebWorkers))i.config.allowWebWorkers=true;f(i.config,{ddp:h.Any,file:h.Any,fileId:h.Optional(String),meta:h.Optional(Object),type:h.Optional(String),onError:h.Optional(Function),onAbort:h.Optional(Function),onStart:h.Optional(Function),fileName:h.Optional(String),isBase64:h.Optional(Boolean),transport:h.OneOf("http","ddp"),chunkSize:h.OneOf("dynamic",Number),onUploaded:h.Optional(Function),disableUpload:h.Optional(Boolean),onProgress:h.Optional(Function),onBeforeUpload:h.Optional(Function),allowWebWorkers:Boolean});i.config.isEnded=false;if(true===i.config.isBase64){f(i.config.file,String);if(!i.config.fileName)throw new s.Error(400,'"fileName" must me specified for base64 upload!');if(i.config.file.includes("data:"))i.config.file=i.config.file.replace("data:","");if(i.config.file.includes(",")){var r=i.config.file.split(",");i.fileData={size:Math.floor(r[1].replace(/\=/g,"").length/4*3),type:r[0].split(";")[0],name:i.config.fileName,meta:i.config.meta};i.config.file=r[1]}else if(i.config.type)i.fileData={size:Math.floor(i.config.file.replace(/\=/g,"").length/4*3),type:i.config.type,name:i.config.fileName,meta:i.config.meta};else throw new s.Error(400,'"type" must me specified for base64 upload! And represent mime-type of the file')}if(!i.config.file)throw new s.Error(500,"[FilesCollection] [insert] Have you forget to pass a File itself?");if(!i.config.isBase64){try{if(!i.config.file.name||isNaN(i.config.file.size))throw new s.Error(500,"Not a File!")}catch(e){throw new s.Error(500,"[FilesCollection] [insert] Insert method accepts File, not a FileList. You need to provide a real File. File must have `.name` property, and its size must be larger than zero.",e)}i.fileData={size:i.config.file.size,type:i.config.type||i.config.file.type,name:i.config.fileName||i.config.file.name,meta:i.config.meta}}if(i.collection.debug){console.time("insert ".concat(i.fileData.name));console.time("loadFile ".concat(i.fileData.name))}if(i.collection._supportWebWorker&&i.config.allowWebWorkers)try{i.worker=new Worker(i.collection._webWorkerUrl)}catch(e){i.worker=false;i.collection._debug("[FilesCollection] [insert] [create WebWorker]: Can't create WebWorker, fallback to MainThread",e)}else i.worker=null;i.disonnectRe=/network|connection|fetch/i;i.fetchControllers={};i.fetchTimeouts={};i.config._debug=i.collection._debug;i.config.debug=i.collection.debug;i.transferTime=0;i.trackerCompConnection=null;i.trackerCompPause=null;i.sentChunks=-1;i.fileLength=1;i.startTime={};i.EOFsent=false;i.fileId=i.config.fileId||c.id();i.pipes=[];i.fileData=Object.assign(i.fileData,i.collection._getExt(i.fileData.name),{mime:i.collection._getMimeType(i.fileData)});i.fileData["mime-type"]=i.fileData.mime;i.result=new U(Object.assign({},i.config,{fileData:i.fileData,fileId:i.fileId,_Abort:i.collection._methodNames._Abort}));i._handleNetworkError=function(e){i.collection._debug("[FilesCollection] [_handleNetworkError] Error:",e);if(!s.status().connected||i.disonnectRe.test("".concat(e)))i.result.pause();else if((null==e?void 0:e.error)===503)i._upload();else if("aborted"!==i.result.state.get()&&"paused"!==i.result.state.get())i.emit("error",e)};i.beforeunload=function(e){var t=g.isFunction(i.collection.onbeforeunloadMessage)?i.collection.onbeforeunloadMessage.call(i.result,i.fileData):i.collection.onbeforeunloadMessage;if(e)e.returnValue=t;return t};i.result.config.beforeunload=i.beforeunload;window.addEventListener("beforeunload",i.beforeunload,false);i.result.config._onEnd=function(){return i.emit("_onEnd")};i._setProgress=function(e){if(i.result.progress.get()>=100)return;var t=i.config.chunkSize*i.sentChunks;if(t>i.fileData.size)t=i.fileData.size;i.result.progress.set(e);i.config.onProgress&&i.config.onProgress.call(i.result,e,i.fileData);i.result.emit("progress",e,i.fileData,{chunksSent:i.sentChunks,chunksLength:i.fileLength,bytesSent:t})};i.addListener("end",i._end);i.addListener("error",i._error);i.addListener("start",i.start);i.addListener("calculateStats",g.throttle(function(){if(i.result.progress.get()>=100)return;var e=i.transferTime/(i.sentChunks||1);var t=e*(i.fileLength-i.sentChunks);i.result.estimateTime.set(t);i.result.remainingTime.set(i.result._formatDuration(t));i.result.estimateSpeed.set(i.config.chunkSize/(e/1e3));var n=Math.round(i.sentChunks/i.fileLength*100);i._setProgress(n)},250));i.addListener("_onEnd",function(){if(i.config.isEnded)return;i.config.isEnded=true;i.result.remainingTime.set("00:00:00");
157for(var e in i.fetchControllers){if(i.fetchControllers[e]){i.fetchControllers[e].abort(new s.Error(200,"Upload has finished"));delete i.fetchControllers[e]}if(i.fetchTimeouts[e]){clearTimeout(i.fetchTimeouts[e]);delete i.fetchTimeouts[e]}}if(i.result.estimateTimer)s.clearInterval(i.result.estimateTimer);if(i.worker)i.worker.terminate();if(i.trackerCompConnection)i.trackerCompConnection.stop();if(i.trackerCompPause)i.trackerCompPause.stop();if(i.beforeunload)window.removeEventListener("beforeunload",i.beforeunload,false)});return i}w(t,[{key:"_error",value:function(e,t){this.collection._debug("[FilesCollection] [UploadInstance] [error]",this.fileId,{error:e,data:t});this._end(e,t);return this}},{key:"_end",value:function(e,t){this.collection._debug("[FilesCollection] [UploadInstance] [end]",this.fileId,{error:e,data:t});if(this.collection.debug)console.timeEnd("insert ".concat(this.fileData.name));this._setProgress(100);this.emit("_onEnd");if(e){this.collection._debug("[FilesCollection] [insert] [end] Error:",e);this.result.abort();this.result.state.set("aborted");this.result.emit("error",e,this.fileData);if(this.config.onError)this.config.onError.call(this.result,e,this.fileData)}else{this.result.emit("uploaded",e,t);if(this.config.onUploaded)this.config.onUploaded.call(this.result,e,t);this.result.state.set("completed");this.collection.emit("afterUpload",t)}this.result.emit("end",e,t||this.fileData);return this.result}},{key:"_sendChunk",value:function(e){return y(function(){var t,n,i,r,o;return D(this,function(s){switch(s.label){case 0:this.collection._debug("[FilesCollection] [UploadInstance] [sendChunk]",this.fileId,e.data.chunkId);t={fileId:this.fileId,binData:e.data.bin,chunkId:e.data.chunkId};if(this.config.isBase64){n=t.binData.length%4;if(n){i=0;while(i<n){t.binData+="=";i++}}}this.result.emit("data",e.data.bin);if(this.pipes.length)for(r=this.pipes.length-1;r>=0;r--)t.binData=this.pipes[r](t.binData);if(this.fileLength===e.data.chunkId){if(this.collection.debug)console.timeEnd("loadFile ".concat(this.fileData.name));this.result.emit("readEnd")}if(!t.binData){this.collection._debug("[FilesCollection] [sendChunk] binData is empty! Can not send empty chunk!");return[2]}return[4,this._sendRequest({methodName:this.collection._methodNames._Write,payload:t,timeout:25e3,headers:{"x-fileid":t.fileId,"x-chunkid":t.chunkId,"content-type":"text/plain"}})];case 1:o=s.sent();if(!this.config.isEnded&&(null==o?void 0:o.status)===204){this.transferTime+=Date.now()-this.startTime[t.chunkId];this.emit("calculateStats")}return[2]}})}).call(this)}},{key:"_sendEOF",value:function(){return y(function(){var e,t;return D(this,function(n){switch(n.label){case 0:this.collection._debug("[FilesCollection] [UploadInstance] [sendEOF]",this.fileId,this.EOFsent,this.config.isEnded);if(this.EOFsent)return[2];this.EOFsent=true;e={eof:true,fileId:this.fileId,binData:""};return[4,this._sendRequest({methodName:this.collection._methodNames._Write,payload:e,timeout:1e4,headers:{"x-eof":"1","x-fileId":e.fileId,"content-type":"text/plain"}})];case 1:t=n.sent();if(t&&!this.config.isEnded)this.emit("end",t.error,t);return[2]}})}).call(this)}},{key:"_sendRequest",value:function(e){return y(function(){var t,n,i,r,l,a,u,f,h,b;return D(this,function(v){switch(v.label){case 0:t=this;this.collection._debug("[FilesCollection] [UploadInstance] [sendRequest]",this.fileId,{conf:e});n=false;v.label=1;case 1:v.trys.push([1,9,,10]);if("ddp"!==this.config.transport)return[3,3];return[4,this.config.ddp.callAsync(e.methodName,e.payload)];case 2:n=v.sent();return[3,8];case 3:l=g.clone((null==(i=e.payload)?void 0:i.binData)||e.payload||"");if(g.isObject(null==l?void 0:null==(r=l.file)?void 0:r.meta))l.file.meta=p(l.file.meta);a=c.id();this.fetchControllers[a]=new AbortController;this.fetchTimeouts[a]=setTimeout(function(){if(t.fetchControllers[a])t.fetchControllers[a].abort(new s.Error(503,"Send Request Timeout"))},e.timeout||25e3);return[4,o("".concat(I).concat(this.collection.downloadRoute,"/").concat(this.collection.collectionName,"/__upload"),{method:"POST",signal:this.fetchControllers[a].signal,body:g.isObject(l)?JSON.stringify(l):l,cache:"no-cache",credentials:"include",type:"cors",headers:A(S({},e.headers),{"x-mtok":(g.isObject(s.connection)?s.connection._lastSessionId:void 0)||null})})];case 4:u=v.sent();clearTimeout(this.fetchTimeouts[a]);delete this.fetchControllers[a];delete this.fetchTimeouts[a];n=u;if(!(u.headers.get("content-type")||"").includes("application/json"))return[3,8];v.label=5;case 5:v.trys.push([5,7,,8]);return[4,u.json()];case 6:f=v.sent();if(f.meta)f.meta=d(f.meta);n=S({status:u.status},f);return[3,8];case 7:h=v.sent();this.collection._debug("[FilesCollection] [UploadInstance] [sendRequest] [parseJSON] [ERROR:]",this.fileId,h,u);return[3,8];case 8:if(!this.config.isEnded){if(200===n.status)return[2,n];if(204===n.status){++this.sentChunks;this._upload()}else if(503===n.status)this._upload();
157else if(408===n.status)this.emit("error",new s.Error(n.status,"Can't continue upload, session expired. Please, start upload again."));else if(405===n.status)this.emit("error",new s.Error(405,"Uploads are disabled"));else if(403===n.status)if(n.error&&n.isClientSafe)this.emit("error",new s.Error(n.error,n.reason));else this.emit("error",new s.Error(500,"Unexpected error occurred during upload, try again later"));else this._handleNetworkError(new s.Error(500,"Unexpected error occurred during upload, make sure you're connected to the Internet. Reload the page or try again later.",n))}return[3,10];case 9:b=v.sent();this.collection._debug("[FilesCollection] [UploadInstance] [sendRequest] [CAUGHT ERROR:]",this.fileId,b,e);setTimeout(function(){t._handleNetworkError(b)},128);return[3,10];case 10:return[2,n]}})}).call(this)}},{key:"_proceedChunk",value:function(e){return y(function(){var t,n,i;return D(this,function(r){switch(r.label){case 0:t=this;this.collection._debug("[FilesCollection] [UploadInstance] [proceedChunk]",this.fileId,e);n=this.config.file.slice(this.config.chunkSize*(e-1),this.config.chunkSize*e);if(!this.config.isBase64)return[3,2];return[4,this._sendChunk({data:{bin:n,chunkId:e}})];case 1:r.sent();return[2];case 2:if(!window.FileReader&&!window.FileReaderSync){this.emit("error",new s.Error(400,"File API is not supported in this Browser!"));return[2]}if(window.FileReader){i=new window.FileReader;i.onloadend=function(n){t._sendChunk({data:{bin:((g.isObject(i)?i.result:void 0)||(n.srcElement?n.srcElement.result:void 0)||(n.target?n.target.result:void 0)).split(",")[1],chunkId:e}})};i.onerror=function(e){t.emit("error",(e.target||e.srcElement).error)};i.readAsDataURL(n);return[2]}i=new window.FileReaderSync;return[4,this._sendChunk({data:{bin:i.readAsDataURL(n).split(",")[1],chunkId:e}})];case 3:r.sent();return[2]}})}).call(this)}},{key:"_upload",value:function(){return y(function(){return D(this,function(e){switch(e.label){case 0:if(this.result.onPause.get())return[2,this];if("aborted"===this.result.state.get())return[2,this];if(!(this.sentChunks+1<=this.fileLength))return[3,4];if(!this.worker)return[3,1];this.worker.postMessage({f:this.config.file,cc:this.sentChunks+1,cs:this.config.chunkSize,ib:this.config.isBase64});return[3,3];case 1:return[4,this._proceedChunk(this.sentChunks+1)];case 2:e.sent();e.label=3;case 3:return[3,6];case 4:return[4,this._sendEOF()];case 5:e.sent();e.label=6;case 6:this.startTime[this.sentChunks+1]=Date.now();return[2,this]}})}).call(this)}},{key:"_prepare",value:function(){return y(function(){var e,t,n,i,r,o;return D(this,function(s){switch(s.label){case 0:e=this;if(this.config.onStart)this.config.onStart.call(this.result,null,this.fileData);this.result.emit("start",null,this.fileData);if("dynamic"===this.config.chunkSize){this.config.chunkSize=this.fileData.size/1e3;if(this.config.chunkSize<327680)this.config.chunkSize=327680;else if(this.config.chunkSize>1048576)this.config.chunkSize=1048576;if("http"===this.config.transport)this.config.chunkSize=Math.round(this.config.chunkSize/2);else if(N)this.config.chunkSize=Math.ceil(this.config.chunkSize/8)}if(this.config.isBase64){this.config.chunkSize=4*Math.floor(this.config.chunkSize/4);t=Math.ceil(this.config.file.length/this.config.chunkSize)}else{this.config.chunkSize=8*Math.floor(this.config.chunkSize/8);t=Math.ceil(this.fileData.size/this.config.chunkSize)}this.fileLength=t<=0?1:t;this.result.config.fileLength=this.fileLength;n={file:this.fileData,fileId:this.fileId,chunkSize:this.config.isBase64?this.config.chunkSize/4*3:this.config.chunkSize,fileLength:this.fileLength};i=this;if(!this.collection.namingFunction)return[3,2];return[4,this.collection.namingFunction(this.fileData)];case 1:r=s.sent();return[3,3];case 2:r=this.fileId;s.label=3;case 3:i.FSName=r;if(this.FSName!==this.fileId)n.FSName=this.FSName;return[4,this._sendRequest({methodName:this.collection._methodNames._Start,payload:n,timeout:1e4,headers:{"x-start":"1","content-type":"application/json"}})];case 4:o=s.sent();this.collection._debug("[FilesCollection] [UploadInstance] [prepare] [response]",this.fileId,o);if(!this.config.isEnded&&(null==o?void 0:o.status)===204)this.result.continueFunc=function(){e.collection._debug("[FilesCollection] [insert] [continueFunc]",e.fileId);e._upload()};return[2]}})}).call(this)}},{key:"pipe",value:function(e){this.pipes.push(e);return this}},{key:"start",value:function(){return y(function(){var e,t,i;return D(this,function(r){switch(r.label){case 0:e=this;
157if(this.config.disableUpload){this.emit("error",new s.Error(403,"Uploads are disabled"),this);return[2,this.result]}if(this.fileData.size<=0){this.emit("error",new s.Error(400,"Can't upload empty file"));return[2,this.result]}r.label=1;case 1:r.trys.push([1,6,,7]);if(!(this.config.onBeforeUpload&&g.isFunction(this.config.onBeforeUpload)))return[3,3];return[4,n.resolve(this.config.onBeforeUpload.call(Object.assign({},this.result,this.collection._getUser()),this.fileData))];case 2:t=r.sent();if(true!==t){this.emit("error",new s.Error(403,g.isString(t)?t:"config.onBeforeUpload() returned false"));return[2,this.result]}r.label=3;case 3:if(!(this.collection.onBeforeUpload&&g.isFunction(this.collection.onBeforeUpload)))return[3,5];return[4,n.resolve(this.collection.onBeforeUpload.call(Object.assign({},this.result,this.collection._getUser()),this.fileData))];case 4:t=r.sent();if(true!==t){this.emit("error",new s.Error(403,g.isString(t)?t:"collection.onBeforeUpload() returned false"));return[2,this.result]}r.label=5;case 5:return[3,7];case 6:i=r.sent();this.emit("error",new s.Error(500,"Error in onBeforeUpload: ".concat(i.message)));return[2,this.result];case 7:this.trackerCompConnection=l.autorun(function(){if(e.result.onPause.curValue||s.status().connected){if(e.result.onPause.curValue&&s.status().connected){e.collection._debug("[FilesCollection] [insert] [Tracker connection] [continue]",e.fileId);e.result.continue()}}else{e.collection._debug("[FilesCollection] [insert] [Tracker connection] [pause]",e.fileId);e.result.pause()}});this.trackerCompPause=l.autorun(function(){if(true===e.result.onPause.get()){e.collection._debug("[FilesCollection] [insert] [Tracker pause] [abort]",e.fileId);for(var t in e.fetchControllers){if(e.fetchControllers[t]){e.fetchControllers[t].abort(new s.Error(412,"Upload set to pause"));delete e.fetchControllers[t]}if(e.fetchTimeouts[t]){clearTimeout(e.fetchTimeouts[t]);delete e.fetchTimeouts[t]}}}});if(this.worker){this.collection._debug("[FilesCollection] [insert] using WebWorkers",this.fileId);this.worker.onmessage=function(t){if(t.data.error){e.collection._debug("[FilesCollection] [insert] [worker] [onmessage] [ERROR:]",e.fileId,t.data.error);e._proceedChunk(t.data.chunkId)}else e._sendChunk(t)};this.worker.onerror=function(t){e.collection._debug("[FilesCollection] [insert] [worker] [onerror] [ERROR:]",e.fileId,t);e.emit("error",new s.Error(500,t.message))}}else this.collection._debug("[FilesCollection] [insert] using MainThread",this.fileId);return[4,this._prepare()];case 8:r.sent();return[2,this.result]}})}).call(this)}},{key:"manual",value:function(){var e=this;this.result.start=function(){return y(function(){return D(this,function(e){this.emit("start");return[2]})}).call(e)};var t=this;this.result.pipe=function(e){t.pipe(e);return this};return this.result}}]);return t}(u)},node_modules:{eventemitter3:{
157"package.json":function(e,t,n){n.exports={name:"eventemitter3",version:"5.0.1",main:"index.js"}},
157"index.js":function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty,r="~";function o(){}if(Object.create){o.prototype=Object.create(null);if(!new o().__proto__)r=false}function s(e,t,n){this.fn=e;this.context=t;this.once=n||false}function c(e,t,n,i,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new s(n,i||e,o),l=r?r+t:t;if(e._events[l])if(e._events[l].fn)e._events[l]=[e._events[l],c];else e._events[l].push(c);else e._events[l]=c,e._eventsCount++;return e}function l(e,t){if(0===--e._eventsCount)e._events=new o;else delete e._events[t]}function a(){this._events=new o;this._eventsCount=0}a.prototype.eventNames=function(){var e=[],t,n;if(0===this._eventsCount)return e;for(n in t=this._events)if(i.call(t,n))e.push(r?n.slice(1):n);if(Object.getOwnPropertySymbols)return e.concat(Object.getOwnPropertySymbols(t));return e};a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i<o;i++)s[i]=n[i].fn;return s};a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return 0;if(n.fn)return 1;return n.length};a.prototype.emit=function(e,t,n,i,o,s){var c=r?r+e:e;if(!this._events[c])return false;var l=this._events[c],a=arguments.length,u,f;if(l.fn){if(l.once)this.removeListener(e,l.fn,void 0,true);switch(a){case 1:return l.fn.call(l.context),true;case 2:return l.fn.call(l.context,t),true;case 3:return l.fn.call(l.context,t,n),true;case 4:return l.fn.call(l.context,t,n,i),true;case 5:return l.fn.call(l.context,t,n,i,o),true;case 6:return l.fn.call(l.context,t,n,i,o,s),true}for(f=1,u=new Array(a-1);f<a;f++)u[f-1]=arguments[f];l.fn.apply(l.context,u)}else{var h=l.length,d;for(f=0;f<h;f++){if(l[f].once)this.removeListener(e,l[f].fn,void 0,true);switch(a){case 1:l[f].fn.call(l[f].context);break;case 2:l[f].fn.call(l[f].context,t);break;case 3:l[f].fn.call(l[f].context,t,n);break;case 4:l[f].fn.call(l[f].context,t,n,i);break;default:if(!u)for(d=1,u=new Array(a-1);d<a;d++)u[d-1]=arguments[d];l[f].fn.apply(l[f].context,u)}}}return true};a.prototype.on=function(e,t,n){return c(this,e,t,n,false)};a.prototype.once=function(e,t,n){return c(this,e,t,n,true)};a.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t){l(this,o);return this}var s=this._events[o];if(s.fn){if(s.fn===t&&(!i||s.once)&&(!n||s.context===n))l(this,o)}else{for(var c=0,a=[],u=s.length;c<u;c++)if(s[c].fn!==t||i&&!s[c].once||n&&s[c].context!==n)a.push(s[c]);if(a.length)this._events[o]=1===a.length?a[0]:a;else l(this,o)}return this};a.prototype.removeAllListeners=function(e){var t;if(e){t=r?r+e:e;if(this._events[t])l(this,t)}else{this._events=new o;this._eventsCount=0}return this};a.prototype.off=a.prototype.removeListener;a.prototype.addListener=a.prototype.on;a.prefixed=r;a.EventEmitter=a;if(void 0!==n)n.exports=a}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{FilesCollection:r}},require:o,eagerModulePaths:["/node_modules/meteor/ostrio:files/client.js"],mainModulePath:"/node_modules/meteor/ostrio:files/client.js"}});
158
159Package["core-runtime"].queue("webapp",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var t;var r=e({node_modules:{meteor:{webapp:{
159"webapp_client.js":function(e,t,r){r.export({WebApp:function(){return o}});var o={_isCssLoaded:function(){if(0===document.styleSheets.length)return true;return Array.prototype.find.call(document.styleSheets,function(e){if(e.cssText&&!e.cssRules)return!e.cssText.match(/meteor-css-not-found-error/);return!Array.prototype.find.call(e.cssRules,function(e){return".meteor-css-not-found-error"===e.selectorText})})}}}}}}},{extensions:[".js",".json"]});return{export:function(){return{WebApp:t}},require:r,eagerModulePaths:["/node_modules/meteor/webapp/webapp_client.js"],mainModulePath:"/node_modules/meteor/webapp/webapp_client.js"}});
160
161Package["core-runtime"].queue("davidfm:core",function(){var e=Package.meteor.Meteor;var t=Package.meteor.global;Package.meteor.meteorEnv;var n=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var r=Package["templating-runtime"].Template;var i=Package.mongo.Mongo;Package.mongo.CollectionExtensions;var o=Package["vlasky:galvanized-iron-router"].Iron;var a=Package["vlasky:galvanized-iron-router"].Router;Package["vlasky:galvanized-iron-router"].RouteController;var s=Package.check.check;var l=Package.check.Match;Package.http.HTTP;var u=Package["accounts-base"].Accounts;var c=Package.roles.Roles;Package.roles.RolesCollection;Package.roles.RoleAssignmentCollection;var f=Package["useraccounts:core"].AccountsTemplates;Package["useraccounts:core"].T9n;Package["ostrio:files"].FilesCollection;Package.webapp.WebApp;var d=Package.promise.Promise;var m=Package["ecmascript-runtime-client"].Symbol;var p=Package["ecmascript-runtime-client"].Map;var h=Package["ecmascript-runtime-client"].Set;var b=Package.blaze.Blaze;Package.blaze.UI;Package.blaze.Handlebars;var g=Package.spacebars.Spacebars;var v=Package.htmljs.HTML;var y=n({node_modules:{meteor:{"davidfm:core":{client:{
161"main.js":function(t,n,r){var i;r.link("meteor/tracker",{Tracker:function(e){i=e}},0);var o;r.link("meteor/session",{Session:function(e){o=e}},1);r.link("./startup.js");r.link("../lib/check.js");r.link("./templates/liveStamp/liveStamp.js");r.link("../lib/helpers/main.js");r.link("./helpers/main.js");r.link("./roles-ready.js");r.link("./user-accounts.js");r.link("../lib/routes.js");r.link("./route-tracking.js");r.link("./templates/auth.js");r.link("./templates/join.html");r.link("./templates/webmaster/layout.html");r.link("./templates/webmaster/menu.js");r.link("../api/button-toggle/client/button-toggle.js");r.link("./templates/webmaster/onlyWebmaster.js");r.link("../api/languages/client/main.js");r.link("../api/serialize/client/main.js");r.link("../api/instances/client/main.js");r.link("../api/userAgent/client/main.js");r.link("../api/accounts/client/main.js");r.link("../api/shared-login/client/main.js");r.link("../api/connection/client/main.js");r.link("../api/toast/client/main.js");r.link("../api/messages/client/main.js");r.link("../api/files/client/main.js");r.link("../api/impersonate/lib/collections.js");r.link("../api/impersonate/client/lib.js");r.link("../api/logs/client/main.js");r.link("../api/tooltip/client/main.js");r.link("../api/settings/client/main.js");r.link("../api/permissions/client/main.js");r.link("../api/ui-css/client/inject.js");r.link("../api/sortable/client/main.js");r.link("../api/notifications/client/main.js");r.link("../api/template-extension/client/main.js");r.link("../api/carousel/client/main.js");r.link("../api/order-by/client/main.js");r.link("../api/draggable/client/main.js");r.link("../api/userStatus/client/main.js");r.link("../api/messages/client/main.js");r.link("../api/google-storage/client/main.js");r.link("jquery-serializejson",{default:function(e){}},2);r.link("./dfm.less");r.link("./switch.less");r.link("./dfm-responsive.less");var a,s,l,u,c,f;globalThis.Tracker=i;globalThis.Session=o;globalThis.dfm=globalThis.dfm||{};globalThis.app=globalThis.app||{};if((null==(l=e.settings)?void 0:null==(s=l.public)?void 0:null==(a=s.dfm)?void 0:a.redirectHttps)&&!dfm.isLocalhost())e.startup(function(){if("https:"!==location.protocol)location.replace("https://".concat(location.host).concat(location.pathname))});i.autorun(function(){if(e.status().connected)e.setTimeout(function(){dfm.connections.setId(e.connection._lastSessionId)},1e3)});if(null==(f=e.settings)?void 0:null==(c=f.public)?void 0:null==(u=c.dfm)?void 0:u.checkCompatibleBrowser){var d=["Chrome","Firefox","Edge","Safari","Opera","YaBrowser","SamsungBrowser"];var m=dfm.core.humanUserAgent();if(m&&!d.includes(m.browser)&&!dfm.isBot()){var p,h,b;var g={lng:null==(h=navigator)?void 0:null==(p=h.language)?void 0:p.split("-")[0],log:{details:{userAgent:null==(b=navigator)?void 0:b.userAgent}},message:"alert : "+m.browser+" "+m.browserVersion,tags:["error","browser"]};e.callAsync("dfm.incompatibleBrowser",g).then(function(e){dfm.alert(e.incompatibleBrowser)}).catch(function(e){console.error(e)})}}},
161"VirtualScrollState.js":function(e,t,n){n.export({VirtualScrollState:function(){return m}});var r;n.link("meteor/reactive-var",{ReactiveVar:function(e){r=e}},0);var i;n.link("meteor/mongo",{Mongo:function(e){i=e}},1);var o;n.link("meteor/tracker",{Tracker:function(e){o=e}},2);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function l(e,t,n){if(t)s(e.prototype,t);if(n)s(e,n);return e}function u(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){u(e,t,n[t])})}return e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function d(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else f(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}var m=function(){"use strict";function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e);this.itemHeight=t.itemHeight||90;this.bufferSize=t.bufferSize||100;this.bufferMargin=t.bufferMargin||30;this.maxCacheSize=t.maxCacheSize||500;this._epoch=new r(0);this.bufferSkip=new r(0);this.confirmedBufferSkip=new r(0);this._scrollTop=0;this.visibleRange=new r({start:0,end:0});this.scrollPosition=new r(0);this.isLoading=new r(false);this.cache=new i.Collection(null);this._cacheObserver=null;this._cacheVersion=new r(0);this._updateTimeout=null;this._trimTimeout=null}l(e,[{key:"getEpoch",value:function(){return this._epoch.get()}},{key:"incrementEpoch",value:function(){var e=this;var t=o.nonreactive(function(){return e._epoch.get()});var n=t+1;this._epoch.set(n);this.bufferSkip.set(0);this.confirmedBufferSkip.set(0);this.scrollPosition.set(0);this.isLoading.set(false);this.cleanOldEpochs();return n}},{key:"startLoading",value:function(){this.isLoading.set(true)}},{key:"finishLoading",value:function(){this.isLoading.set(false)}},{key:"updateVisibleRange",value:function(e,t,n){var r=this;this._scrollTop=n;var i=o.nonreactive(function(){return r.visibleRange.get()});if(i.start!==e||i.end!==t)this.visibleRange.set({start:e,end:t})}},{key:"triggerUIUpdate",value:function(){var e=this;if(this._updateTimeout)return;this._updateTimeout=setTimeout(function(){e._cacheVersion.set(e._cacheVersion.get()+1);e._updateTimeout=null},200)}},{key:"getCacheVersion",value:function(){return this._cacheVersion.get()}},{key:"upsertWithEpoch",value:function(e){var t=this;var n=o.nonreactive(function(){return t.getEpoch()});e._epoch=n;this.cache.upsert(e._id,e);this.trimCacheIfNeeded();this.triggerUIUpdate()}},{key:"trimCacheIfNeeded",value:function(){var e=this;if(this._trimTimeout)return;this._trimTimeout=setTimeout(function(){e._trimTimeout=null;e._doTrimCache()},500)}},{key:"_doTrimCache",value:function(){var e=this.getEpoch();var t=this.cache.find({_epoch:e}).count();if(t<=this.maxCacheSize)return;var n=this._scrollTop;var r=Math.floor(n/this.itemHeight)+Math.floor(window.innerHeight/this.itemHeight/2);var i=this.cache.find({_epoch:e}).fetch();i.forEach(function(e){e._distanceFromCenter=Math.abs((e._virtualIndex||0)-r)});i.sort(function(e,t){return t._distanceFromCenter-e._distanceFromCenter});var o=t-this.maxCacheSize;for(var a=0;a<o;a++)this.cache.remove(i[a]._id)}},{key:"removeFromCache",value:function(e){this.cache.remove(e);this.triggerUIUpdate()}},{key:"findInCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n=this.getEpoch();var r=d(c({},e),{_epoch:n});return this.cache.find(r,t)}},{key:"countInCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t=this.getEpoch();var n=d(c({},e),{_epoch:t});return this.cache.find(n).count()}},{key:"cleanOldEpochs",value:function(){var e=this.getEpoch();this.cache.remove({_epoch:{$ne:e}})}},{key:"destroy",value:function(){if(this._updateTimeout){clearTimeout(this._updateTimeout);this._updateTimeout=null}if(this._trimTimeout){clearTimeout(this._trimTimeout);this._trimTimeout=null}if(this._cacheObserver){this._cacheObserver.stop();this._cacheObserver=null}this.cache.remove({})}},{key:"setCacheObserver",value:function(e){this._cacheObserver=e}}]);return e}();n.exportDefault(m)},
161"admin-users-list-controller.js":function(e,t,n){n.export({OS_ICONS:function(){return p},BROWSER_ICONS:function(){return h},ROLE_COLORS:function(){return b},escapeRegex:function(){return g},buildSortObject:function(){return v},buildQueryFromSearch:function(){return y},precomputeUserBase:function(){return w},precomputeUserRoles:function(){return k},setupAdminUsersList:function(){return T}});var i;n.link("meteor/meteor",{Meteor:function(e){i=e}},0);var o;n.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},1);var a;n.link("meteor/tracker",{Tracker:function(e){a=e}},2);var s;n.link("meteor/roles",{Roles:function(e){s=e}},3);var l;n.link("meteor/davidfm:core/api/accounts/client/collections.js",{DfmUsersVirtuals:function(e){l=e}},4);var u;n.link("meteor/davidfm:core/client/VirtualScrollState.js",{VirtualScrollState:function(e){u=e}},5);function c(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){c(e,t,n[t])})}return e}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function m(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else d(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}var p=Object.freeze({"Windows 7":{src:"/packages/davidfm_core/assets/img/os_windows_7.png",label:"windows 7"},"Windows 10+":{src:"/packages/davidfm_core/assets/img/os_windows10+.png",label:"windows 10+"},Android:{src:"/packages/davidfm_core/assets/img/os_android.png",label:"android"},"Mac/macOS":{src:"/packages/davidfm_core/assets/img/os_MacOS.png",label:"MaciOS"}});var h=Object.freeze({Chrome:{src:"/packages/davidfm_core/assets/img/browser_chrome.png",label:"Chrome"},Edge:{src:"/packages/davidfm_core/assets/img/browser_edge.png",label:"Edge"},Safari:{src:"/packages/davidfm_core/assets/img/browser_safari.png",label:"Safari"},Firefox:{src:"/packages/davidfm_core/assets/img/browser_firefox.png",label:"Firefox"},Opera:{src:"/packages/davidfm_core/assets/img/browser_opera.png",label:"Opera"},SasmsungBrowser:{src:"/packages/davidfm_core/assets/img/browser_samsung.png",label:"Samsung"},Unknown:{src:"/packages/davidfm_core/assets/img/browser_unknown.png",label:"Unknown"}});var b=Object.freeze({webmaster:"secondary",superAdmin:"danger",admin:"danger",host:"success",interpreter:"warning text-dark",technician:"primary"});function g(e){return String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dfm.userStatus.onLogin",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;var r=Session.get("sortBy_"+e)||t;var i=Session.get("sortOrder_"+e)||n;var o={};if("name"===r){o["profile.firstName"]=-1*i;o["profile.lastName"]=-1*i}else if("email"===r)o["emails.0.address"]=-1*i;else if("dfm.userStatus.onLogin"===r){o["dfm.userStatus.online"]=i;o["dfm.userStatus.onLogin"]=i;o["createdAt"]=i}else if(r)o[r]=i;return o}function y(e){if("string"!=typeof e||!e.trim())return{};var t=e.split(" ").map(function(e){return e.trim()}).filter(Boolean);if(!t.length)return{};return{$and:t.map(function(e){var t=new RegExp(g(e),"i");return{$or:[{"profile.firstName":t},{"profile.lastName":t},{"emails.0.address":t},{"infos.ip":t}]}})}}function w(e){var t,n,r,i,o,a,s,l,u;var c={};c.fullname=dfm.getUserFullname(e);c.email=dfm.getUserEmail(e);var f=null==(t=e.dfm)?void 0:t.userStatus;if((null==f?void 0:f.online)===false)c.statusClass="";else if(null==f?void 0:f.idle)c.statusClass="badge bg-warning text-dark";else if(null==f?void 0:f.online)c.statusClass="badge bg-success";else c.statusClass="";if(null==f?void 0:f.onLogin)c.loginDate=dfm.formatDate(f.onLogin,"shortFullTime2");if((null==f?void 0:null==(n=f.connection)?void 0:n.onClose)&&f.connection.onClose>f.onLogin)c.logoutDate=dfm.formatDate(f.connection.onClose,"shortFullTime2");if(e.createdAt)c.createdDate=dfm.formatDate(e.createdAt,"shortFullTime2");var d=null==(o=e.infos)?void 0:null==(i=o.ua)?void 0:null==(r=i.userAgent)?void 0:r.humanUserAgent;if(d){try{c.uaTitle=JSON.stringify(d)}catch(e){c.uaTitle=""}if("iPhone/iOS"===d.os){var m=d.platformVersion?" ".concat(d.platformVersion):"";c.osIcon={src:"/packages/davidfm_core/assets/img/os_iPhoneiOS.png",label:"iPhoneiOS".concat(m)}}else c.osIcon=p[d.os]||null;c.browserIcon=h[d.browser]||null}if(null==(a=e.infos)?void 0:a.route)try{c.routeTitle=JSON.stringify(e.infos.route)}catch(e){c.routeTitle=""}var b=e.services||{};if(b.google)c.authIcon="google";else if(b.linkedin)c.authIcon="linkedin";else if(b.anonymous)c.authIcon="anonymous";else if(e.emails&&e.emails.length>0)c.authIcon="password";else c.authIcon=null;c.flagUrl=null==(l=(u=app).getFlag)?void 0:l.call(u,(null==(s=e.profile)?void 0:s.language)||"fr");return c}function k(e){var t;if(Array.isArray(e._roles))t=e._roles;else try{t=s.getRolesForUser(e._id)||[]}catch(e){t=[]}var n=t.map(function(e){return{name:e,color:b[e]||"secondary"}});return{roles:t,roleBadges:n}}var x=5;function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n=f({sessionKey:"adminUsers",itemHeight:90,bufferSize:100,bufferMargin:30,maxCacheSize:500,defaultSortBy:"dfm.userStatus.onLogin",defaultSortOrder:-1,initialRoleFilter:null,searchDebounceMs:300,subscriptionName:"dfmAdminUsersListVirtual",countMethod:"dfm.users.list.count.byAdmin",estimatedCountMethod:"dfm.users.list.estimatedCount.byAdmin",precomputeExtra:null,computeRoles:false,combineQuery:function(e){return e}},t);var s=r[e];if(!s)throw new Error('setupAdminUsersList: template "'.concat(e,'" not found'));var c=function(e){var t=w(e);if(n.computeRoles)Object.assign(t,k(e));if(n.precomputeExtra)Object.assign(t,n.precomputeExtra(e)||{});return m(f({},e),{_precomputed:t})};s.onCreated(function(){var e=this;var t,r;this.state=new u({itemHeight:n.itemHeight,bufferSize:n.bufferSize,bufferMargin:n.bufferMargin,maxCacheSize:n.maxCacheSize});this.query=new o({});this.sortReact=new o;this.filterByRoleReact=new o(n.initialRoleFilter);this.nbUsers=new o(0);null==(t=app.globalSearch)||t.clear();if(!Session.get("sortBy_"+n.sessionKey)){Session.set("sortBy_"+n.sessionKey,n.defaultSortBy);Session.set("sortOrder_"+n.sessionKey,n.defaultSortOrder)}this.sortReact.set(v(n.sessionKey,n.defaultSortBy,n.defaultSortOrder));this.refreshQuery=function(){var t;var r=y(null==(t=app.globalSearch)?void 0:t.get());var i=n.combineQuery(r,e);e.state.incrementEpoch();e.nbUsers.set(0);e.query.set(i)};this.query.set(n.combineQuery(y(null==(r=app.globalSearch)?void 0:r.get()),this));if(n.estimatedCountMethod)i.callAsync(n.estimatedCountMethod).then(function(t){if(0===e.nbUsers.get())e.nbUsers.set(t)}).catch(function(){});var s=this;var f=this.state;var d=l.find().observe({added:function(e){return f.upsertWithEpoch(c(e))},changed:function(e){return f.upsertWithEpoch(c(e))},removed:function(){}});f.setCacheObserver(d);this.autorun(function(){var t=f.bufferSkip.get();var r=s.sortReact.get();var i=s.query.get();var o=s.filterByRoleReact.get();var l=a.nonreactive(function(){return f.getEpoch()});if(void 0===r)return;e.subscribe(n.subscriptionName,i,{sort:r,skip:t,limit:f.bufferSize,filterByRole:o},{onReady:function(){var e=a.nonreactive(function(){return f.getEpoch()});if(e===l){f.confirmedBufferSkip.set(t);f.finishLoading()}},onError:function(e){f.finishLoading();log("subscription error:",e)}})});
161this.autorun(function(e){Session.get("sortBy_"+n.sessionKey);Session.get("sortOrder_"+n.sessionKey);if(e.firstRun)return;f.incrementEpoch();s.nbUsers.set(0);s.sortReact.set(v(n.sessionKey,n.defaultSortBy,n.defaultSortOrder))});this.autorun(function(e){var t;null==(t=app.globalSearch)||t.get();if(e.firstRun)return;clearTimeout(s._searchDebounce);s._searchDebounce=setTimeout(function(){return s.refreshQuery()},n.searchDebounceMs)});this.autorun(function(){var e=a.nonreactive(function(){return f.getEpoch()});i.callAsync(n.countMethod,{query:s.query.get(),filterByRole:s.filterByRoleReact.get()}).then(function(t){if(a.nonreactive(function(){return f.getEpoch()})===e)s.nbUsers.set(t)}).catch(function(e){return dfm.toastError(e.message)})})});s.onRendered(function(){var e=this;var t=this.state;var n=this.$(".infinite-scroll")[0];if(!n)return;var r=function(){var e=n.getBoundingClientRect();var r=e.height||n.offsetHeight||0;var i;i=e.bottom<0?r:Math.max(0,-e.top);var o=Math.min(r,i+window.innerHeight);var a=Math.max(0,Math.floor(i/t.itemHeight)-x);var s=Math.ceil(o/t.itemHeight)+x;return{start:a,end:s,scrollTop:i}};var i=function(n,r){if(t.isLoading.get())return;var i=e.nbUsers.get()||0;if(0===i)return;var o=t.confirmedBufferSkip.get()||0;var a=o;var s=o+t.bufferSize;if(n>s+t.bufferMargin||r<a-t.bufferMargin){var l=Math.floor((n+r)/2);var u=Math.max(0,Math.floor(l/t.bufferSize)*t.bufferSize);if(u!==t.bufferSkip.get()){t.startLoading();t.bufferSkip.set(u)}return}if(r>=s-t.bufferMargin&&s<i){t.startLoading();t.bufferSkip.set(s);return}if(n<=a+t.bufferMargin&&a>0){t.startLoading();t.bufferSkip.set(Math.max(0,a-t.bufferSize))}};var o=null;var s=function(){if(o)cancelAnimationFrame(o);o=requestAnimationFrame(function(){var e=r(),n=e.start,o=e.end,a=e.scrollTop;t.updateVisibleRange(n,o,a);i(n,o)})};window.addEventListener("scroll",s,{passive:true});this._onScrollUpdate=s;a.afterFlush(function(){var e=r(),n=e.start,i=e.end,o=e.scrollTop;t.updateVisibleRange(n,i,o)})});s.onDestroyed(function(){if(this._onScrollUpdate)window.removeEventListener("scroll",this._onScrollUpdate);if(this._searchDebounce)clearTimeout(this._searchDebounce);if(this.state)this.state.destroy()});s.helpers({wrapperHeight:function(){var e=r.instance();var t=e.state;var n=e.nbUsers.get();if(!n||0===n){var i=Math.ceil(2*window.innerHeight/t.itemHeight);n=Math.max(i,t.bufferSize)}var o=Math.ceil(2*window.innerHeight/t.itemHeight);if(n<o)n=o;return n*t.itemHeight+40},itemHeight:function(){return r.instance().state.itemHeight},getUsers:function(){var e=r.instance();var t=e.state;var n=t.visibleRange.get();t.getCacheVersion();t.getEpoch();if(0===n.start&&0===n.end)return t.findInCache({},{sort:{_virtualIndex:1},limit:30}).fetch().map(function(e){e.itemTranslate=(e._virtualIndex||0)*t.itemHeight;e.itemHeight=t.itemHeight;return e});var i=t.findInCache({_virtualIndex:{$gte:n.start,$lt:n.end}},{sort:{_virtualIndex:1}}).fetch();if(0===i.length&&t.countInCache()>0)i=t.findInCache({},{sort:{_virtualIndex:1},limit:20}).fetch();return i.map(function(e){e.itemTranslate=(e._virtualIndex||0)*t.itemHeight;e.itemHeight=t.itemHeight;return e})},totalUserCount:function(){return r.instance().nbUsers.get()}})}},
161"dfm-responsive.less":function(e,t,n){n.exports=e("meteor/modules").addStyles("@media (min-width:991px){.lg\\:mt-0{margin-top:0!important}.lg\\:mt-100{margin-top:100px!important}.lg\\:mt-200{margin-top:200px!important}}")},
161"dfm.less":function(e,t,n){n.exports=e("meteor/modules").addStyles("body,html{height:100%;margin:0;padding:0}#webmaster-layout{background-color:#b0b0b0;min-height:100%}#webmaster-layout .wm-wrapper{display:flex;min-height:100vh}#webmaster-layout .wm-sidebar{background-color:#2c3e50;color:#fff;flex-shrink:0;overflow-y:auto;width:250px}#webmaster-layout .wm-sidebar .wm-sidebar-header{align-items:center;border-bottom:1px solid hsla(0,0%,100%,.1);display:flex;justify-content:space-between;padding:15px 20px}#webmaster-layout .wm-sidebar .wm-sidebar-header a{color:#fff;font-size:1.25rem;font-weight:700}#webmaster-layout .wm-sidebar .wm-sidebar-close{background:none;border:none;color:#fff;cursor:pointer;font-size:1.5rem;line-height:1;padding:0}#webmaster-layout .wm-sidebar .sidebar-heading{color:hsla(0,0%,100%,.5)}#webmaster-layout .wm-sidebar .nav-link{color:hsla(0,0%,100%,.7);padding:8px 20px;transition:background-color .2s,color .2s}#webmaster-layout .wm-sidebar .nav-link:hover{background-color:hsla(0,0%,100%,.1);color:#fff}#webmaster-layout .wm-sidebar .nav-link .material-symbols-outlined{vertical-align:middle}#webmaster-layout .wm-sidebar .nav-item.active .nav-link,#webmaster-layout .wm-sidebar .nav-item.active-route .nav-link{background-color:hsla(0,0%,100%,.15);color:#fff}#webmaster-layout .wm-overlay{display:none}#webmaster-layout .wm-main{flex:1;min-width:0;overflow-y:auto}#webmaster-layout .wm-content{padding:20px}#webmaster-layout .wm-topbar{align-items:center;background-color:#fff;border-bottom:1px solid #dee2e6;display:flex;gap:10px;padding:10px 15px}#webmaster-layout .wm-topbar a{color:#2c3e50;font-weight:700}#webmaster-layout .wm-sidebar-toggle{background:none;border:none;cursor:pointer;font-size:1.5rem;line-height:1;padding:0}@media (max-width:767px){#webmaster-layout .wm-sidebar{bottom:0;left:0;position:fixed;top:0;transform:translateX(-100%);transition:transform .3s ease;z-index:1000}#webmaster-layout .wm-sidebar.open{transform:translateX(0)}#webmaster-layout .wm-overlay{background-color:rgba(0,0,0,.5);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:999}#webmaster-layout .wm-overlay.open{display:block}}a,a:hover{text-decoration:none!important}dialog{border:0!important;border-radius:10px;padding:0}dialog:active,dialog:focus{border:0!important;outline:none}dialog::backdrop{background-color:rgba(0,0,0,.3)}dialog .body,dialog .footer,dialog .header{padding:10px 20px}dialog .body:empty,dialog .header:empty{display:none}dialog .footer a{padding:5px}dialog .footer a.yes{background-color:var(--bs-primary);color:#fff}.text-capitalize-first{display:inline-block}.text-capitalize-first:first-letter{text-transform:uppercase}.at-form{color:#000}.btn.btn-xs{padding:1px 4px}.btn.btn-sm .material-symbols-outlined{font-size:20px}.btn.btn-icon{align-items:center;border-radius:8px;display:inline-flex;height:40px;justify-content:center;padding:0;width:40px}.btn.btn-icon.btn-xs{height:35px;width:35px}.btn.btn-icon .material-symbols-outlined{font-size:22px;line-height:1}.dfm-linline-translation{position:relative}.dfm-linline-translation .btn-transalion-edit{background-color:var(--bs-warning);border:1px solid #000;color:#000!important;left:-30px;padding:0;position:absolute;top:0;width:26px!important}.dfm-inline-translation-edit{background-color:#fff;border:1px solid #ccc;border-radius:5px;left:50%;padding:5px;position:absolute;top:10px;transform:translateX(-50%);width:500px;z-index:800000}.dfm-inline-translation-edit .btn-transalion-save{background-color:var(--bs-primary);top:0}.dfm-inline-translation-edit .btn-transalion-done,.dfm-inline-translation-edit .btn-transalion-save{border:1px solid #000;color:#000!important;left:-30px;padding:0;position:absolute;width:26px!important}.dfm-inline-translation-edit .btn-transalion-done{background-color:var(--bs-light);top:30px}.mt-100{margin-top:100px}.mt-200{margin-top:200px}.mb-100{margin-bottom:100px}.mb-200{margin-bottom:200px}.dfm-grid{grid-gap:20px;display:grid;grid-template-columns:repeat(3,1fr);margin-top:50px}.dfm-grid.dfm-grid-2{grid-template-columns:repeat(2,1fr)}@media (max-width:991px){.dfm-grid.dfm-grid-2{grid-template-columns:repeat(1,1fr)}}.dfm-grid.dfm-grid-4{grid-template-columns:repeat(4,1fr)}
161.clickable,.cursor-pointer,.form-check-label{cursor:pointer}.only-webmaster{background-color:#ffbdbd;margin:10px;padding:10px}[dfm-toggle]{cursor:pointer}[dfm-toggle]:hover{opacity:.8}[contenteditable=true]:empty:before{content:attr(placeholder);display:block;pointer-events:none}.hidden-empty:empty{display:none}.table{--bs-table-bg:transparent!important}.no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}")},
161"roles-ready.js":function(){var t=null;e.startup(function(){if(dfm.rolesHandle){t=dfm.rolesHandle;return}t=dfm.rolesHandle=e.subscribe("dfm.currentUserRoles")});dfm.rolesReady=function(){if(!e.userId())return true;return!!(t&&t.ready())}},
161"route-tracking.js":function(e,t,n){var r;n.link("meteor/vlasky:galvanized-iron-router",{Router:function(e){r=e}},0);r.onAfterAction(function(){var e,t,n,r,i,o;if(this._dfmRouteTracked===this.url)return;this._dfmRouteTracked=this.url;if(null==(t=this.route)?void 0:null==(e=t.options)?void 0:e.skipRouteTracking)return;var a=(null==(r=this.route)?void 0:null==(n=r.options)?void 0:n.seoTitle)||(null==(o=this.route)?void 0:null==(i=o.getName)?void 0:i.call(o));dfm.someUpdateAfterRoute({seo:{title:a}})})},
161"startup.js":function(t,n,r){var i;r.link("meteor/random",{Random:function(e){i=e}},0);e.startup(function(){var t=sessionStorage.getItem("tabId");if(!t){t=i.id();sessionStorage.setItem("tabId",t)}Tracker.autorun(function(){if(e.status().connected)e.callAsync("dfm.connections.registerTabId",t).then(function(e){Session.set("dfmTabId",t)}).catch(function(e){dfm.logError({message:"Erreur registration tabId:",details:e})})})})},
161"switch.less":function(e,t,n){n.exports=e("meteor/modules").addStyles('.btn.btn-switch,.btn.btn-switch:focus,.btn.btn-switch:hover{background:#bdc1c8;border:none;border-radius:10px!important;border-radius:1.5rem;color:#6b7381;height:1.5rem;margin:0 4rem;padding:0;position:relative;width:3rem}.btn.btn-switch.focus,.btn.btn-switch.focus.active,.btn.btn-switch:focus,.btn.btn-switch:focus.active,.btn.btn-switch:focus.focus,.btn.btn-switch:focus.focus.active,.btn.btn-switch:focus:focus,.btn.btn-switch:focus:focus.active,.btn.btn-switch:hover.focus,.btn.btn-switch:hover.focus.active,.btn.btn-switch:hover:focus,.btn.btn-switch:hover:focus.active{outline:none}.btn.btn-switch:after,.btn.btn-switch:before,.btn.btn-switch:focus:after,.btn.btn-switch:focus:before,.btn.btn-switch:hover:after,.btn.btn-switch:hover:before{bottom:0;font-size:.75rem;font-weight:600;letter-spacing:2px;line-height:1.5rem;position:absolute;text-align:center;text-transform:uppercase;transition:opacity .25s;width:4rem}.btn.btn-switch:before,.btn.btn-switch:focus:before,.btn.btn-switch:hover:before{content:"Off";left:-4rem}.btn.btn-switch:after,.btn.btn-switch:focus:after,.btn.btn-switch:hover:after{content:"On";opacity:.5;right:-4rem}.btn.btn-switch:focus>.handle,.btn.btn-switch:hover>.handle,.btn.btn-switch>.handle{background:#fff;border-radius:1.125rem;height:1.125rem;left:.375rem/2;position:absolute;top:.375rem/2;transition:left .25s;width:1.125rem}.btn.btn-switch.active,.btn.btn-switch:focus.active,.btn.btn-switch:hover.active{transition:background-color .25s}.btn.btn-switch.active>.handle,.btn.btn-switch:focus.active>.handle,.btn.btn-switch:hover.active>.handle{left:1.875rem;transition:left .25s}.btn.btn-switch.active:before,.btn.btn-switch:focus.active:before,.btn.btn-switch:hover.active:before{opacity:.5}.btn.btn-switch.active:after,.btn.btn-switch:focus.active:after,.btn.btn-switch:hover.active:after{opacity:1}.btn.btn-switch.btn-sm:after,.btn.btn-switch.btn-sm:before,.btn.btn-switch:focus.btn-sm:after,.btn.btn-switch:focus.btn-sm:before,.btn.btn-switch:hover.btn-sm:after,.btn.btn-switch:hover.btn-sm:before{color:#fff;left:.4125rem;letter-spacing:.75px;line-height:-.5rem;width:2.325rem}.btn.btn-switch.btn-sm:before,.btn.btn-switch:focus.btn-sm:before,.btn.btn-switch:hover.btn-sm:before{text-align:right}.btn.btn-switch.btn-sm:after,.btn.btn-switch:focus.btn-sm:after,.btn.btn-switch:hover.btn-sm:after{opacity:0;text-align:left}.btn.btn-switch.btn-sm.active:before,.btn.btn-switch:focus.btn-sm.active:before,.btn.btn-switch:hover.btn-sm.active:before{opacity:0}.btn.btn-switch.btn-xs .handle,.btn.btn-switch:focus.btn-xs .handle,.btn.btn-switch:hover.btn-xs .handle{left:2px;top:2px}.btn.btn-switch.btn-xs:after,.btn.btn-switch.btn-xs:before,.btn.btn-switch:focus.btn-xs:after,.btn.btn-switch:focus.btn-xs:before,.btn.btn-switch:hover.btn-xs:after,.btn.btn-switch:hover.btn-xs:before{display:none}.btn.btn-switch.btn-xs.active .handle,.btn.btn-switch:focus.btn-xs.active .handle,.btn.btn-switch:hover.btn-xs.active .handle{left:18px}.btn.btn-switch:after,.btn.btn-switch:before,.btn.btn-switch:focus:after,.btn.btn-switch:focus:before,.btn.btn-switch:hover:after,.btn.btn-switch:hover:before{color:#6b7381}.btn.btn-switch.active,.btn.btn-switch:focus.active,.btn.btn-switch:hover.active{background-color:#29b5a8}.btn.btn-switch.btn-lg,.btn.btn-switch:focus.btn-lg,.btn.btn-switch:hover.btn-lg{border:none;border-radius:2.5rem;height:2.5rem;margin:0 5rem;padding:0;position:relative;width:5rem}.btn.btn-switch.btn-lg.focus,.btn.btn-switch.btn-lg.focus.active,.btn.btn-switch.btn-lg:focus,.btn.btn-switch.btn-lg:focus.active,.btn.btn-switch:focus.btn-lg.focus,.btn.btn-switch:focus.btn-lg.focus.active,.btn.btn-switch:focus.btn-lg:focus,.btn.btn-switch:focus.btn-lg:focus.active,.btn.btn-switch:hover.btn-lg.focus,.btn.btn-switch:hover.btn-lg.focus.active,.btn.btn-switch:hover.btn-lg:focus,.btn.btn-switch:hover.btn-lg:focus.active{outline:none}.btn.btn-switch.btn-lg:after,.btn.btn-switch.btn-lg:before,.btn.btn-switch:focus.btn-lg:after,.btn.btn-switch:focus.btn-lg:before,.btn.btn-switch:hover.btn-lg:after,.btn.btn-switch:hover.btn-lg:before{bottom:0;font-size:1rem;font-weight:600;letter-spacing:2px;line-height:2.5rem;position:absolute;text-align:center;text-transform:uppercase;transition:opacity .25s;width:5rem}.btn.btn-switch.btn-lg:before,.btn.btn-switch:focus.btn-lg:before,.btn.btn-switch:hover.btn-lg:before{content:"Off";left:-5rem}.btn.btn-switch.btn-lg:after,.btn.btn-switch:focus.btn-lg:after,.btn.btn-switch:hover.btn-lg:after{content:"On";opacity:.5;right:-5rem}.btn.btn-switch.btn-lg>.handle,.btn.btn-switch:focus.btn-lg>.handle,.btn.btn-switch:hover.btn-lg>.handle{background:#fff;border-radius:1.875rem;height:1.875rem;left:.625rem/2;position:absolute;top:.625rem/2;transition:left .25s;width:1.875rem}.btn.btn-switch.btn-lg.active,.btn.btn-switch:focus.btn-lg.active,.btn.btn-switch:hover.btn-lg.active{transition:background-color .25s}.btn.btn-switch.btn-lg.active>.handle,.btn.btn-switch:focus.btn-lg.active>.handle,.btn.btn-switch:hover.btn-lg.active>.handle{left:3.125rem;transition:left .25s}.btn.btn-switch.btn-lg.active:before,.btn.btn-switch:focus.btn-lg.active:before,.btn.btn-switch:hover.btn-lg.active:before{opacity:.5}.btn.btn-switch.btn-lg.active:after,.btn.btn-switch:focus.btn-lg.active:after,.btn.btn-switch:hover.btn-lg.active:after{opacity:1}.btn.btn-switch.btn-lg.btn-sm:after,.btn.btn-switch.btn-lg.btn-sm:before,.btn.btn-switch:focus.btn-lg.btn-sm:after,.btn.btn-switch:focus.btn-lg.btn-sm:before,.btn.btn-switch:hover.btn-lg.btn-sm:after,.btn.btn-switch:hover.btn-lg.btn-sm:before{color:#fff;left:.6875rem;letter-spacing:.75px;line-height:.5rem;width:3.875rem}.btn.btn-switch.btn-lg.btn-sm:before,.btn.btn-switch:focus.btn-lg.btn-sm:before,.btn.btn-switch:hover.btn-lg.btn-sm:before{text-align:right}.btn.btn-switch.btn-lg.btn-sm:after,.btn.btn-switch:focus.btn-lg.btn-sm:after,.btn.btn-switch:hover.btn-lg.btn-sm:after{opacity:0;text-align:left}.btn.btn-switch.btn-lg.btn-sm.active:before,.btn.btn-switch:focus.btn-lg.btn-sm.active:before,.btn.btn-switch:hover.btn-lg.btn-sm.active:before{opacity:0}
161.btn.btn-switch.btn-lg.btn-sm.active:after,.btn.btn-switch:focus.btn-lg.btn-sm.active:after,.btn.btn-switch:hover.btn-lg.btn-sm.active:after{opacity:1}.btn.btn-switch.btn-lg.btn-xs .handle,.btn.btn-switch:focus.btn-lg.btn-xs .handle,.btn.btn-switch:hover.btn-lg.btn-xs .handle{left:2px;top:2px}.btn.btn-switch.btn-lg.btn-xs:after,.btn.btn-switch.btn-lg.btn-xs:before,.btn.btn-switch:focus.btn-lg.btn-xs:after,.btn.btn-switch:focus.btn-lg.btn-xs:before,.btn.btn-switch:hover.btn-lg.btn-xs:after,.btn.btn-switch:hover.btn-lg.btn-xs:before{display:none}.btn.btn-switch.btn-lg.btn-xs.active .handle,.btn.btn-switch:focus.btn-lg.btn-xs.active .handle,.btn.btn-switch:hover.btn-lg.btn-xs.active .handle{left:18px}.btn.btn-switch.btn-sm,.btn.btn-switch:focus.btn-sm,.btn.btn-switch:hover.btn-sm{border:none;border-radius:1.5rem;height:1.5rem;margin:0 .5rem;padding:0;position:relative;width:3rem}.btn.btn-switch.btn-sm.focus,.btn.btn-switch.btn-sm.focus.active,.btn.btn-switch.btn-sm:focus,.btn.btn-switch.btn-sm:focus.active,.btn.btn-switch:focus.btn-sm.focus,.btn.btn-switch:focus.btn-sm.focus.active,.btn.btn-switch:focus.btn-sm:focus,.btn.btn-switch:focus.btn-sm:focus.active,.btn.btn-switch:hover.btn-sm.focus,.btn.btn-switch:hover.btn-sm.focus.active,.btn.btn-switch:hover.btn-sm:focus,.btn.btn-switch:hover.btn-sm:focus.active{outline:none}.btn.btn-switch.btn-sm:after,.btn.btn-switch.btn-sm:before,.btn.btn-switch:focus.btn-sm:after,.btn.btn-switch:focus.btn-sm:before,.btn.btn-switch:hover.btn-sm:after,.btn.btn-switch:hover.btn-sm:before{bottom:0;font-size:.55rem;font-weight:600;letter-spacing:2px;line-height:1.5rem;position:absolute;text-align:center;text-transform:uppercase;transition:opacity .25s;width:.5rem}.btn.btn-switch.btn-sm:before,.btn.btn-switch:focus.btn-sm:before,.btn.btn-switch:hover.btn-sm:before{content:"Off";left:-.5rem}.btn.btn-switch.btn-sm:after,.btn.btn-switch:focus.btn-sm:after,.btn.btn-switch:hover.btn-sm:after{content:"On";opacity:.5;right:-.5rem}.btn.btn-switch.btn-sm>.handle,.btn.btn-switch:focus.btn-sm>.handle,.btn.btn-switch:hover.btn-sm>.handle{background:#fff;border-radius:1.125rem;height:1.125rem;left:.375rem/2;position:absolute;top:.375rem/2;transition:left .25s;width:1.125rem}.btn.btn-switch.btn-sm.active,.btn.btn-switch:focus.btn-sm.active,.btn.btn-switch:hover.btn-sm.active{transition:background-color .25s}.btn.btn-switch.btn-sm.active>.handle,.btn.btn-switch:focus.btn-sm.active>.handle,.btn.btn-switch:hover.btn-sm.active>.handle{left:1.875rem;transition:left .25s}.btn.btn-switch.btn-sm.active:before,.btn.btn-switch:focus.btn-sm.active:before,.btn.btn-switch:hover.btn-sm.active:before{opacity:.5}.btn.btn-switch.btn-sm.active:after,.btn.btn-switch:focus.btn-sm.active:after,.btn.btn-switch:hover.btn-sm.active:after{opacity:1}.btn.btn-switch.btn-sm.btn-sm:after,.btn.btn-switch.btn-sm.btn-sm:before,.btn.btn-switch:focus.btn-sm.btn-sm:after,.btn.btn-switch:focus.btn-sm.btn-sm:before,.btn.btn-switch:hover.btn-sm.btn-sm:after,.btn.btn-switch:hover.btn-sm.btn-sm:before{color:#fff;left:.4125rem;letter-spacing:.75px;line-height:-.5rem;width:2.325rem}.btn.btn-switch.btn-sm.btn-sm:before,.btn.btn-switch:focus.btn-sm.btn-sm:before,.btn.btn-switch:hover.btn-sm.btn-sm:before{text-align:right}.btn.btn-switch.btn-sm.btn-sm:after,.btn.btn-switch:focus.btn-sm.btn-sm:after,.btn.btn-switch:hover.btn-sm.btn-sm:after{opacity:0;text-align:left}.btn.btn-switch.btn-sm.btn-sm.active:before,.btn.btn-switch:focus.btn-sm.btn-sm.active:before,.btn.btn-switch:hover.btn-sm.btn-sm.active:before{opacity:0}.btn.btn-switch.btn-sm.btn-sm.active:after,.btn.btn-switch:focus.btn-sm.btn-sm.active:after,.btn.btn-switch:hover.btn-sm.btn-sm.active:after{opacity:1}.btn.btn-switch.btn-sm.btn-xs .handle,.btn.btn-switch:focus.btn-sm.btn-xs .handle,.btn.btn-switch:hover.btn-sm.btn-xs .handle{left:2px;top:2px}.btn.btn-switch.btn-sm.btn-xs:after,.btn.btn-switch.btn-sm.btn-xs:before,.btn.btn-switch:focus.btn-sm.btn-xs:after,.btn.btn-switch:focus.btn-sm.btn-xs:before,.btn.btn-switch:hover.btn-sm.btn-xs:after,.btn.btn-switch:hover.btn-sm.btn-xs:before{display:none}.btn.btn-switch.btn-sm.btn-xs.active .handle,.btn.btn-switch:focus.btn-sm.btn-xs.active .handle,.btn.btn-switch:hover.btn-sm.btn-xs.active .handle{left:18px}.btn.btn-switch.btn-xs,.btn.btn-switch:focus.btn-xs,.btn.btn-switch:hover.btn-xs{border:none;border-radius:1rem;height:1rem;margin:0;padding:0;position:relative;width:2rem}.btn.btn-switch.btn-xs.focus,.btn.btn-switch.btn-xs.focus.active,.btn.btn-switch.btn-xs:focus,.btn.btn-switch.btn-xs:focus.active,.btn.btn-switch:focus.btn-xs.focus,.btn.btn-switch:focus.btn-xs.focus.active,.btn.btn-switch:focus.btn-xs:focus,.btn.btn-switch:focus.btn-xs:focus.active,.btn.btn-switch:hover.btn-xs.focus,.btn.btn-switch:hover.btn-xs.focus.active,.btn.btn-switch:hover.btn-xs:focus,.btn.btn-switch:hover.btn-xs:focus.active{outline:none}.btn.btn-switch.btn-xs:after,.btn.btn-switch.btn-xs:before,.btn.btn-switch:focus.btn-xs:after,.btn.btn-switch:focus.btn-xs:before,.btn.btn-switch:hover.btn-xs:after,.btn.btn-switch:hover.btn-xs:before{bottom:0;font-size:.75rem;font-weight:600;letter-spacing:2px;line-height:1rem;position:absolute;text-align:center;text-transform:uppercase;transition:opacity .25s;width:0}.btn.btn-switch.btn-xs:before,.btn.btn-switch:focus.btn-xs:before,.btn.btn-switch:hover.btn-xs:before{content:"Off";left:0}.btn.btn-switch.btn-xs:after,.btn.btn-switch:focus.btn-xs:after,.btn.btn-switch:hover.btn-xs:after{content:"On";opacity:.5;right:0}.btn.btn-switch.btn-xs>.handle,.btn.btn-switch:focus.btn-xs>.handle,.btn.btn-switch:hover.btn-xs>.handle{background:#fff;border-radius:.75rem;height:.75rem;left:.25rem/2;position:absolute;top:.25rem/2;transition:left .25s;width:.75rem}.btn.btn-switch.btn-xs.active,.btn.btn-switch:focus.btn-xs.active,.btn.btn-switch:hover.btn-xs.active{transition:background-color .25s}.btn.btn-switch.btn-xs.active>.handle,.btn.btn-switch:focus.btn-xs.active>.handle,.btn.btn-switch:hover.btn-xs.active>.handle{left:1.25rem;transition:left .25s}.btn.btn-switch.btn-xs.active:before,.btn.btn-switch:focus.btn-xs.active:before,.btn.btn-switch:hover.btn-xs.active:before{opacity:.5}.btn.btn-switch.btn-xs.active:after,.btn.btn-switch:focus.btn-xs.active:after,.btn.btn-switch:hover.btn-xs.active:after{opacity:1}.btn.btn-switch.btn-xs.btn-sm:after,.btn.btn-switch.btn-xs.btn-sm:before,.btn.btn-switch:focus.btn-xs.btn-sm:after,.btn.btn-switch:focus.btn-xs.btn-sm:before,.btn.btn-switch:hover.btn-xs.btn-sm:after,.btn.btn-switch:hover.btn-xs.btn-sm:before{color:#fff;left:.275rem;letter-spacing:.75px;line-height:-1rem;width:1.55rem}.btn.btn-switch.btn-xs.btn-sm:before,.btn.btn-switch:focus.btn-xs.btn-sm:before,.btn.btn-switch:hover.btn-xs.btn-sm:before{text-align:right}.btn.btn-switch.btn-xs.btn-sm:after,.btn.btn-switch:focus.btn-xs.btn-sm:after,.btn.btn-switch:hover.btn-xs.btn-sm:after{opacity:0;text-align:left}.btn.btn-switch.btn-xs.btn-sm.active:before,.btn.btn-switch:focus.btn-xs.btn-sm.active:before,.btn.btn-switch:hover.btn-xs.btn-sm.active:before{opacity:0}
161.btn.btn-switch.btn-xs.btn-sm.active:after,.btn.btn-switch:focus.btn-xs.btn-sm.active:after,.btn.btn-switch:hover.btn-xs.btn-sm.active:after{opacity:1}.btn.btn-switch.btn-xs.btn-xs .handle,.btn.btn-switch:focus.btn-xs.btn-xs .handle,.btn.btn-switch:hover.btn-xs.btn-xs .handle{left:2px;top:2px}.btn.btn-switch.btn-xs.btn-xs:after,.btn.btn-switch.btn-xs.btn-xs:before,.btn.btn-switch:focus.btn-xs.btn-xs:after,.btn.btn-switch:focus.btn-xs.btn-xs:before,.btn.btn-switch:hover.btn-xs.btn-xs:after,.btn.btn-switch:hover.btn-xs.btn-xs:before{display:none}.btn.btn-switch.btn-xs.btn-xs.active .handle,.btn.btn-switch:focus.btn-xs.btn-xs.active .handle,.btn.btn-switch:hover.btn-xs.btn-xs.active .handle{left:18px}.btn.btn-switch.btn-secondary,.btn.btn-switch:focus.btn-secondary,.btn.btn-switch:hover.btn-secondary{background:#bdc1c8;color:#6b7381}.btn.btn-switch.btn-secondary:after,.btn.btn-switch.btn-secondary:before,.btn.btn-switch:focus.btn-secondary:after,.btn.btn-switch:focus.btn-secondary:before,.btn.btn-switch:hover.btn-secondary:after,.btn.btn-switch:hover.btn-secondary:before{color:#6b7381}.btn.btn-switch.btn-secondary.active,.btn.btn-switch:focus.btn-secondary.active,.btn.btn-switch:hover.btn-secondary.active{background-color:#ff8300}')},
161"user-accounts.js":function(){var t;var n={confirmPassword:false,enablePasswordChange:true,forbidClientAccountCreation:false,overrideLoginErrors:true,sendVerificationEmail:false,lowercaseUsername:false,focusFirstInput:true,showAddRemoveServices:false,showForgotPasswordLink:true,showLabels:true,showPlaceholders:true,showResendVerificationEmailLink:false,continuousValidation:false,negativeFeedback:false,negativeValidation:true,positiveValidation:true,positiveFeedback:true,showValidating:true,homeRoutePath:"/",redirectTimeout:4e3};var r=null==(t=e.settings.public)?void 0:t.AccountsTemplates;if(null==r?void 0:r.defaultLayout)n.defaultLayout=null==r?void 0:r.defaultLayout;if(null==r?void 0:r.confirmPassword)n.confirmPassword=null==r?void 0:r.confirmPassword;f.configure(n)},helpers:{
161"accounts.js":function(e,t,n){var i;n.link("meteor/meteor",{Meteor:function(e){i=e}},0);var o;n.link("../../api/accounts/lib/collections.js",{default:function(e){o=e}},1);globalThis.dfm=globalThis.dfm||{};r.registerHelper("isWebmaster",function(e){return dfm.isWebmaster(e)});r.registerHelper("isSuperAdmin",function(e){return dfm.isSuperAdmin(e)});r.registerHelper("isAdmin",function(e){return dfm.isAdmin(e)});r.registerHelper("isAnonymous",function(e){if("string"!=typeof e)e=void 0;return dfm.isAnonymous(e)});r.registerHelper("getUser",function(e){if(!e||"string"!=typeof e)return;return i.users.findOne(e)});r.registerHelper("getUserByEmail",function(e){return dfm.getUserByEmail(e)});r.registerHelper("getUserFullname",function(e){return dfm.getUserFullname(e)});r.registerHelper("getUserLanguage",function(e){return dfm.languages.getUserLanguage(e)});r.registerHelper("getUserEmail",function(e){return dfm.getUserEmail(e)});r.registerHelper("getUserStatusClass",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=e.hash||{};if(e.userId)e.uId=e.userId;else if(e.user)e.uId=e.user;if(e.subscribe&&e.uId)i.subscribe("dfmAdminUser",e.uId);return dfm.getUserStatusClass(e)});r.registerHelper("isRegistered",function(e){return!!dfm.getUserEmail(e)});r.registerHelper("dfmGetAllRoles",function(){return i.roles.find({_id:{$ne:"webmaster"}},{sort:{_id:1}})});r.registerHelper("getAuthServiceName",function(e){var t,n;if(null==e?void 0:null==(t=e.services)?void 0:t.password)return"password";if(null==e?void 0:null==(n=e.services)?void 0:n.google)return"google";return""});r.registerHelper("authServiceIs",function(e,t){var n;if(t.hash)t=i.user();if("anonymous"===e)return dfm.isAnonymous(t);return!!(null==t?void 0:null==(n=t.services)?void 0:n[e])});r.registerHelper("getUserAvatar",function(e){if(!e)return"/packages/davidfm_core/assets/img/no-avatar.png";return e});r.registerHelper("currentRouteName",function(){return a.current().route.getName()});r.registerHelper("getUsersConnections",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=e.hash||{};var t=o.find();if(e.count)return t.count();return t})},
161"active-route.js":function(t,n,r){var i;r.link("meteor/reactive-dict",{ReactiveDict:function(e){i=e}},0);var o;r.link("meteor/templating",{Template:function(e){o=e}},1);var a,u,c,f,d={};var m={};m.defaults=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach(function(n){if(void 0===e[n]||null===e[n])e[n]=t[n]});return e};m.isEmpty=function(e){return 0===Object.keys(e).length};c=function(e,t){var n;if(null==t)t=false;n="is";if(t)n+="Not";n+="Active"+e;return function(r,i){var o,a,u,c,f,h,b,v,y;if(null==r)r={};if(null==i)i={};if(l.test(r,g.kw))r=r.hash;if(l.test(i,g.kw))i=i.hash;if(l.test(r,String))r=d.config.equals("regex",true)?{regex:r}:"Path"===e?{path:r}:{name:r};r=m.defaults(i,r);f=l.ObjectIncluding({class:l.Optional(String),className:l.Optional(String),regex:l.Optional(l.OneOf(RegExp,String)),name:l.Optional(String),path:l.Optional(String)});s(r,f);b=r.regex,u=r.name,c=r.path;o=null!=(h=r["class"])?h:r.className;if("Path"===e)u=null;else c=null;if(!(b||u||c)){y="Route"===e?"name":e;y=y.toLowerCase();console.error("Invalid argument, "+n+' takes "'+y+'", '+(y+'="')+y+'" or regex="regex"');return false}if(l.test(b,String))b=d.config.equals("caseSensitive",false)?new RegExp(b,"i"):new RegExp(b);if(null==b)b=u||c;if(t){if(null==o)o=d.config.get("disabledClass")}else if(null==o)o=d.config.get("activeClass");if("Path"===e)a=true;if(a)v=p.path(b);else{r=m.defaults(i,i.data);var w=["class","className","data","regex","name","path"];var k=Object.keys(r).reduce(function(e,t){if(!w.includes(t))e[t]=r[t];return e},{});v=p.name(b,k)}if(t)v=!v;if(v)return o;return false}};u={isActiveRoute:c("Route"),isActivePath:c("Path"),isNotActiveRoute:c("Route",true),isNotActivePath:c("Path",true)};for(f in u){a=u[f];o.registerHelper(f,a)}var p,h,b,v,y,w,k,x;w=k=null;b=function(e){try{return s(e,l.OneOf(RegExp,String))}catch(e){throw new Error(y.invalidRouteNameArgument)}};h=function(e){try{return s(e,Object)}
161catch(e){throw new Error(y.invalidRouteParamsArgument)}};v=function(){var e,t;w=null!=(e=null!=(t=Package["kadira:flow-router"])?t:Package["meteorhacks:flow-router"])?e:Package["kadira:flow-router-ssr"];k=Package["iron:router"]||Package["vlasky:galvanized-iron-router"];if(!(k||w))throw new Error(y.noSupportedRouter)};y={noSupportedRouter:"No supported router installed. Please install iron:router or meteorhacks:flow-router.",invalidRouteNameArgument:"Invalid argument, must be String or RegExp.",invalidRouteParamsArgument:"Invalid arguemnt, must be Object."};d.config=new i("activeRouteConfig");d.config.setDefault({activeClass:"active",caseSensitive:true,disabledClass:"disabled"});x=function(e,t){var n;if(!e)return false;if(l.test(t,RegExp)){n=e.search(t);n=n>-1}else if(l.test(t,String)){if(d.config.equals("caseSensitive",false)){e=e.toLowerCase();t=t.toLowerCase()}n=e===t}return null!=n?n:n=false};p={config:function(){return this.configure.apply(this,arguments)},configure:function(t){if(e.isServer)return;d.config.set(t)},name:function(t,n){var r,i,o,a,s,u;if(null==n)n={};v();if(e.isServer&&!Package["kadira:flow-router-ssr"])return;b(t);h(n);if(k)if(!m.isEmpty(n)&&l.test(t,String)){r=k.Router.current();if(null!=r?r.route:void 0)i=null!=r?r.location.get().path:void 0;a=k.Router.path(t,n)}else o=null!=(s=k.Router.current())?null!=(u=s.route)?"function"==typeof u.getName?u.getName():void 0:void 0:void 0;if(w){if(!m.isEmpty(n)&&l.test(t,String)){w.FlowRouter.watchPathChange();if(null==i)i=w.FlowRouter.current().path;if(null==a)a=w.FlowRouter.path(t,n)}else if(null==o)o=w.FlowRouter.getRouteName()}return x(i||o,a||t)},path:function(t){var n,r;v();if(e.isServer)return;b(t);if(k){n=k.Router.current();if(null!=n?n.route:void 0)r=null!=n?n.location.get().path:void 0}if(w){w.FlowRouter.watchPathChange();if(null==r)r=w.FlowRouter.current().path}return x(r,t)}}},
161"body-events.js":function(){r.body.events=function(t){for(var n in t)(function(t,n){var r=t.split(",");r.forEach(function(t){t=$.trim(t);var r=t.split(" ");var i=r[0];if(1===r.length)$(document).on(i,function(e){var t={};n.call(this,e,t)});else{var o=r.slice(1).join(" ");$(document).delegate(o,i,function(t){var r=$(t.currentTarget).get(0);var i=b.getData(r);var o=b.getView(r)&&e(b.getView(r),"_templateInstance")||{};n.call(this,t,i,o)})}})})(n,t[n])};function e(e){var t=e;do if(t._templateInstance)return t._templateInstance;while(!(t.__startsNewLexicalScope&&!(t.parentView&&t.parentView.__childDoesntStartNewLexicalScope))&&(t=t.parentView))}},
161"connections.js":function(t,n,r){var i;r.link("meteor/reactive-var",{ReactiveVar:function(e){i=e}},0);var o;r.link("../../api/accounts/lib/collections.js",{default:function(e){o=e}},1);globalThis.dfm=globalThis.dfm||{};dfm.connections={id:new i(null),getId:function(){return this.id.get()||e.connection._lastSessionId},setId:function(e){this.id.set(e)},getById:function(e){return o.findOne({id:e})}}},
161"core.js":function(t,n,i){var s;i.link("../../api/impersonate/lib/collections.js",{DfmImpersonateLogs:function(e){s=e}},0);var l;i.link("../../api/seo/client/seo.js",{default:function(e){l=e}},1);function u(e,t){if(null!=t&&void 0!==m&&t[m.hasInstance])return!!t[m.hasInstance](e);return e instanceof t}function c(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}var f=new l;r.registerHelper("appVersion",function(){var e;return(null==(e=app)?void 0:e.version)||"noAppVersion"});r.registerHelper("dfmAppName",function(){return dfm.getAppName()});r.registerHelper("JSONstringify",function(e){return JSON.stringify(e)});r.registerHelper("JSONstringifyPre",function(e){return JSON.stringify(e,null,4)});r.registerHelper("capitalize",function(e){if(!e)return"";return e.charAt(0).toUpperCase()+e.slice(1)});r.registerHelper("uppercase",function(e){if(!e)return"";return e.toUpperCase()});r.registerHelper("isLocalhost",function(){return dfm.isLocalhost()});r.registerHelper("and",function(){var e=Array.from(arguments);if(!e[0])return false;e.pop();return e.every(function(e){if(Array.isArray(e))return e.length>0;if((void 0===e?"undefined":c(e))==="object")return Object.keys(e).length>0;return e})});r.registerHelper("or",function(e,t){return e||t});r.registerHelper("equals",function(e,t){return e===t});r.registerHelper("notEquals",function(e,t){return e!==t});r.registerHelper("not",function(e){return!e});r.registerHelper("includesReturn",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if("string"!=typeof n){console.error("equalsReturn: classTrue must be a string");return""}if("string"!=typeof r)r="";if(!Array.isArray(e))e=[e];return e.includes(t)?n:r});r.registerHelper("equalsReturn",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if("string"!=typeof n){console.error("equalsReturn: classTrue must be a string");return""}if("string"!=typeof r)r="";return e===t?n:r});r.registerHelper("count",function(e){var t;if(null==e?void 0:null==(t=e.isArray)?void 0:t.call(e))return(null==e?void 0:e.length)||0;if((void 0===e?"undefined":c(e))==="object")return Object.keys(e).length;return 0});r.registerHelper("concat",function(){return Array.prototype.slice.call(arguments,0,-1).join("")});r.registerHelper("extendContext",function(e){return Object.assign(this,e.hash)});r.registerHelper("MeteorAbsoluteUrl",function(){return e.absoluteUrl()});r.registerHelper("getHostname",function(){return dfm.getHostname()});r.registerHelper("randomId",function(){return Random.id()});r.registerHelper("formatDate",function(e,t,n,r){if((void 0===t?"undefined":c(t))==="object")t=void 0;if((void 0===n?"undefined":c(n))==="object")n=void 0;return dfm.formatDate({date:e,format:t,lang:n,options:r})});r.registerHelper("secondsToTime",function(e){var t=e.hash;if(t.readable)return dfm.secondsToTime(t.seconds,{readable:true});log(t);return dfm.secondsToTime(t.seconds,{readable:false})});r.registerHelper("textToDate",function(e){return dfm.textToDate(e)});r.registerHelper("timestampToDate",function(e){return dfm.textToDate(e)});r.registerHelper("isSelectedOption",function(e,t){if(u(e,Date))if(u(t,Date))return e.getTime()===t.getTime()?"selected":null;else return null;if((void 0===t?"undefined":c(t))!=="object")return e===t?"selected":null;if(!t||!t.length)return null;return t.includes(e)?"selected":null});r.registerHelper("isRadioChecked",function(e,t){return this[e]===t?"checked":""});r.registerHelper("isChecked",function(e){return e?"checked":""});r.registerHelper("nl2br",function(e){if(!e)return"";return dfm.nl2br(e)});r.registerHelper("markdown2html",function(e){if(!e)return"";return dfm.markdown2html(e)});r.registerHelper("humanFileSize",function(e){if(void 0===e)return"undefined";return dfm.core.humanFileSize(e,true)});r.registerHelper("humanUserAgent",function(e){return dfm.core.humanUserAgent(e)});r.registerHelper("humanUserAgentData",function(e){return dfm.core.humanUserAgentData(e)});r.registerHelper("extendContext",function(e){return Object.assign(this,e.hash)});r.registerHelper("dfmGetAuthServiceName",function(e){var t,n;if(null==e?void 0:null==(t=e.services)?void 0:t.password)return"password";if(null==e?void 0:null==(n=e.services)?void 0:n.google)return"google";return""});r.registerHelper("dfmAuthServiceIs",function(t,n){var r;if(n.hash)n=e.user();return!!(null==n?void 0:null==(r=n.services)?void 0:r[t])});r.registerHelper("dfmEscape",function(e){if(!e)return"";return e.replace(/'/g,"\\'")});r.registerHelper("dfmIsAlreadyImpersonated",function(e){return s.findOne({toUser:e})});r.registerHelper("dfmConnectionStats",function(){return dfm.connectionStats()});r.registerHelper("subsReady",function(){var e=r.instance();var t=Array.prototype.slice.call(arguments);if(!t.length)return e.subscriptionsReady();var n=true;t.forEach(function(t){if("string"!=typeof t)return true;if(!e[t])return true;if(!e[t].ready())n=false});return n});r.registerHelper("object",function(e){var t=e.hash;if(0===Object.keys(t).length)return{};return dfm.transformHashKeys(t)});r.registerHelper("equalsRouteName",function(e){return a.current().route.getName()===e});r.registerHelper("getMyTabId",function(){return Session.get("dfmTabId")});dfm.buildBreadcrumb=function(e){var t=[];e.forEach(function(n,r){t.push(n);if(r!==e.length-1)t.push({class:"breadcrumb-arrow",title:">"})});t[2*e.length-2].class+=" active";return t};var d=function(e){e=e.trim();var t=document.createElement("template");t.innerHTML=e;return t.content.firstChild.cloneNode(true)};dfm.alert=function(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).options;var t=arguments.length>2?arguments[2]:void 0;var n='\n  <dialog data-modal class="bloc">\n    <div class="header title"></div>\n    <div class="body"></div>\n    <div class="footer text-right text-end">
161<button class="btn btn-sm btn-primary yes">'.concat(dfm.trans("ok"),"</button></div>\n  </div>");var r=d(n);r.querySelector(".title").innerHTML=e&&e.title?e.title:"";r.querySelector(".body").innerHTML=e&&e.message?e.message:e?e:"";document.body.appendChild(r);r.showModal();r.querySelector(".yes").addEventListener("click",function(e){e.preventDefault();if(t)t(true);r.remove()})};dfm.confirm=function(e,t,n){if(n){if(t)t(true);return}var r,i;if("string"==typeof e){r=e;i=""}else if((void 0===e?"undefined":c(e))==="object"&&null!==e&&void 0!==e.header&&void 0!==e.body){r=e.header;i=e.body}else{r=String(e);i=""}var o='\n    <dialog data-modal class="bloc">\n      <div class="header title"></div>\n      <div class="body"></div>\n      <div class="footer d-flex justify-content-end gap-2"><button class="btn btn-sm text-dark no">'.concat(dfm.trans("cancel"),'</button> <button class="btn btn-sm btn-primary yes" autofocus>').concat(dfm.trans("ok"),"</button></div>\n    </dialog>");var a=d(o);a.querySelector(".title").innerHTML=r;a.querySelector(".body").innerHTML=i;document.body.appendChild(a);a.showModal();a.addEventListener("click",function(e){var t=a.getBoundingClientRect();if(e.clientY<t.top||e.clientY>t.bottom||e.clientX<t.left||e.clientX>t.right)a.remove()});a.querySelector(".yes").addEventListener("click",function(e){e.preventDefault();e.stopPropagation();if(t)t(true);a.remove()});a.querySelector(".no").addEventListener("click",function(e){e.preventDefault();e.stopPropagation();if(t)t(false);a.remove()})};dfm.prompt=function(e,t){var n='\n    <dialog data-modal class="bloc">\n      <div class="header title"></div>\n      <div class="body"><input type="text" class="form-control prompt-input" autofocus></div>\n      <div class="footer d-flex justify-content-end gap-2"><button class="btn btn-sm text-dark no">'.concat(dfm.trans("cancel"),'</button> <button class="btn btn-sm btn-primary yes">').concat(dfm.trans("ok"),"</button></div>\n    </dialog>");var r=d(n);r.querySelector(".title").innerHTML=e;document.body.appendChild(r);r.showModal();r.querySelector(".prompt-input").focus();r.addEventListener("click",function(e){var t=r.getBoundingClientRect();if(e.clientY<t.top||e.clientY>t.bottom||e.clientX<t.left||e.clientX>t.right)r.remove()});r.querySelector(".prompt-input").addEventListener("keydown",function(e){if("Enter"===e.key){e.preventDefault();if(t)t(r.querySelector(".prompt-input").value);r.remove()}});r.querySelector(".yes").addEventListener("click",function(e){e.preventDefault();e.stopPropagation();if(t)t(r.querySelector(".prompt-input").value);r.remove()});r.querySelector(".no").addEventListener("click",function(e){e.preventDefault();e.stopPropagation();if(t)t(null);r.remove()})};r.body.events({"click [dfm-toggle]":function(e,t){e.preventDefault();var n=e.currentTarget.getAttribute("dfm-toggle");var r=document.querySelectorAll(n);r.forEach(function(e){return e.classList.toggle("d-none")});var i=r[0];var o=i&&i.classList.contains("d-none");var a=o?"expand_more":"expand_less";e.currentTarget.querySelectorAll(".material-symbols-outlined, .material-icons-outlined").forEach(function(e){var t=e.textContent.trim();if("expand_more"===t||"expand_less"===t)e.textContent=a})},"click [data-dfm=collapse]":function(e,t){e.preventDefault();var n=$($(e.currentTarget).attr("href"));n.toggle();if(n.is(":visible"))$(e.currentTarget).addClass("expanded");else $(e.currentTarget).removeClass("expanded")}});dfm.whereTogoAfterRoutename=null;dfm.whereTogoAfter=function(e,t){if(e)dfm.whereTogoAfterRoutename=e;else{if(!dfm.whereTogoAfterRoutename)return"/";var n=dfm.whereTogoAfterRoutename;if(!t)dfm.whereTogoAfterRoutename=null;return n}};dfm.absoluteUrl=function(){return e.absoluteUrl()};dfm.getHostname=function(){return window.location.hostname};dfm.getRouteName=function(){return a.current().route.getName()};dfm.getRouteParams=function(){return a.current().params};dfm.getRouteParam=function(e){return a.current().params[e]};var p=function(){var e;var t=void 0!==a&&(null==(e=a.current())?void 0:e.url);return new URL(t||window.location.href,window.location.origin).searchParams};dfm.getQueryParam=function(e){return p().get(e)};dfm.getQueryParams=function(){return Object.fromEntries(p())};dfm.getRoutePathAbsoulte=function(){return window.location.href};dfm.getRoutePathRelative=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t="/"+window.location.href.replace(dfm.absoluteUrl(),"");if(e.removeLocale)return t.replace(/^\/[a-z]{2}(?:-[a-z]{2})?/,"");return"/"+window.location.href.replace(dfm.absoluteUrl(),"")};r.registerHelper("getDefaultLanguage",function(){return dfm.getDefaultLanguage()});dfm.getDefaultLanguage=function(){return navigator.language||"fr-FR"};dfm.connectionStats=function(){var e,t,n;var r=(null==(e=navigator)?void 0:e.connection)||(null==(t=navigator)?void 0:t.mozConnection)||(null==(n=navigator)?void 0:n.webkitConnection);if(!r)return false;return{down:(null==r?void 0:r.downlink)||(null==r?void 0:r.downlinkMax),type:(null==r?void 0:r.effectiveType)||(null==r?void 0:r.type),rtt:null==r?void 0:r.rtt,at:new Date}};dfm.autoGrow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.reset,r=void 0===n?false:n;if(r)e.style.height="";else e.style.height=e.scrollHeight+"px"};dfm.jsonIndent=function(e){if("string"!=typeof e)return JSON.stringify(e,void 0,2);return JSON.stringify(JSON.parse(e),null,2)};dfm.jsonStringIsValid=function(e){try{JSON.parse(e)}catch(e){return false}return true};dfm.scrollToBottom=function(e){if(!e)return;e.scrollTop=e.scrollHeight};dfm.someUpdateAfterRoute=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.seo,r=void 0===n?{title:void 0,meta:void 0}:n;var i;f.set({title:r.title,meta:r.meta}
161);var s=location.hostname;var l=location.origin;var u=o.Location.get().path;var c=a.current().route.getName();var d={hostname:s,hostnameFull:l,url:u,routeName:c,name:c,seoTitle:r.title||c,date:new Date};e.callAsync("dfm.connection.update",e.connection._lastSessionId,{route:d});if(e.userId())e.callAsync("dfm.accounts.updatePrivateInfos",{route:d,screen:{width:screen.width,height:screen.height,navigatorLanguage:null==(i=navigator)?void 0:i.language}})};dfm.insertAfterElement=function(e,t){e.parentNode.insertBefore(t,e.nextSibling)};dfm.transformHashKeys=function(e){if((void 0===e?"undefined":c(e))==="object"){for(var t in e)if(e.hasOwnProperty(t)){var n=t.replace(/-/g,".");if(n!==t){e[n]=dfm.transformHashKeys(e[t]);delete e[t]}}}return e}},
161"main.js":function(e,t,n){n.link("./body-events.js");n.link("./core.js");n.link("./active-route.js");n.link("./accounts.js");n.link("./connections.js");n.link("./routes.js")},
161"routes.js":function(){a.onAfterAction(function(){if(this._dfmUrlLogged!==this.url){this._dfmUrlLogged=this.url;var e=window.location.origin+a.current().location.get().path;dfm.log({url:e,tag:"url"})}})}},templates:{
161"auth.html":function(e,t,n){n.link("./template.auth.js",{"*":"*+"})},
161"template.auth.js":function(){r.__checkName("dfmAuth");r["dfmAuth"]=new r("Template.dfmAuth",function(){var e=this;return v.DIV({id:"dfm-auth"},"\n\n    ",b.If(function(){return g.dataMustache(e.lookup("state"),"signin")},function(){return["\n      ",g.include(e.lookupTemplate("dfmAuthSignin")),"\n    "]}),"\n\n    ",b.If(function(){return g.dataMustache(e.lookup("state"),"signup")},function(){return["\n      ",g.include(e.lookupTemplate("dfmAuthSignup")),"\n    "]}),"\n\n    ",b.If(function(){return g.dataMustache(e.lookup("state"),"forgot")},function(){return["\n      ",g.include(e.lookupTemplate("dfmAuthForgot")),"\n    "]}),"\n\n    ",b.If(function(){return g.dataMustache(e.lookup("state"),"reset")},function(){return["\n      ",g.include(e.lookupTemplate("dfmAuthReset")),"\n    "]}),"\n\n  ")});r.__checkName("dfmAuthSignin");r["dfmAuthSignin"]=new r("Template.dfmAuthSignin",function(){var e=this;return v.DIV({id:"dfm-auth-signin"},"\n    ",v.H1(b._TemplateWith(function(){return{c:g.call("signin")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n\n    ",v.DIV({class:"at-pwd-form"},"\n      ",v.FORM("\n        ",v.FIELDSET("\n\n          ",v.DIV({class:"at-input mb-3 has-feedback"},"\n            ",v.LABEL({class:"control-label",for:"at-field-email"},b._TemplateWith(function(){return{c:g.call("email")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n            ",v.INPUT({type:"email",class:"form-control",id:"at-field-email",name:"email",placeholder:function(){return g.mustache(e.lookup("trans"),"email")},autocapitalize:"none",autocorrect:"off"}),v.Raw('\n\n            <span class="help-block hide"></span>\n          ')),"\n\n          ",v.DIV({class:"at-input mb-3 has-feedback"},"\n            ",v.LABEL({class:"control-label",for:"at-field-signin-password"},b._TemplateWith(function(){return{c:g.call("password")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n            ",v.INPUT({type:"password",class:"form-control",id:"at-field-signin-password",name:"password",placeholder:function(){return g.mustache(e.lookup("trans"),"password")},autocomplete:"current-password",autocapitalize:"none",autocorrect:"off"}),v.Raw('\n\n            <span class="help-block hide"></span>\n          ')),"\n\n          ",v.DIV({class:"at-pwd-link"},"\n            ",v.P("\n              ",v.A({href:"",id:"at-forgotPwd",class:"js-forgot"},b._TemplateWith(function(){return{c:g.call("forgotYourPassword")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n            "),"\n          "),"\n\n          ",v.BUTTON({type:"submit",class:"btn btn-primary",id:"at-btn"},b._TemplateWith(function(){return{c:g.call("signin")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n        "),"\n      "),"\n    "),"\n\n    ",v.DIV({class:"at-signup-link"},b._TemplateWith(function(){return{c:g.call("dontHaveAnAccount")}},function(){return g.include(e.lookupTemplate("trans"))})," ",v.A({id:"at-signUp",class:"js-signup"},b._TemplateWith(function(){return{c:g.call("register")}},function(){return g.include(e.lookupTemplate("trans"))}))),v.Raw("\n\n    <hr>\n    "),b._TemplateWith(function(){return{str:g.call(g.dataMustache(e.lookup("trans"),"connectWithGoogle")),placement:g.call("auto")}},function(){return g.include(e.lookupTemplate("dfmTooltip"))}),v.Raw('\n    <a class="js-signin-with-google cursor-pointer"><img src="/packages/davidfm_core/assets/img/google_icon_130924.png" width="38"></a>\n  '))});r.__checkName("dfmAuthSignup");r["dfmAuthSignup"]=new r("Template.dfmAuthSignup",function(){var e=this;return v.DIV({id:"dfm-auth-signup"},"\n    ",v.H1(b._TemplateWith(function(){return{c:g.call("signup")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n\n    ",v.DIV({class:"at-pwd-form"},"\n      ",v.FORM("\n        ",v.FIELDSET("\n\n          ",v.DIV({class:"at-input mb-3 has-feedback"},"\n            ",v.LABEL({class:"control-label",for:"at-field-email"},b._TemplateWith(function(){return{c:g.call("email")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n            ",v.INPUT({type:"email",class:"form-control",id:"at-field-email",name:"email",placeholder:function(){return g.mustache(e.lookup("trans"),"email")},autocapitalize:"none",autocorrect:"off"}),"\n\n            ",v.SPAN({class:"help-block hide"},b.View("lookup:errors.email",function(){return g.mustache(g.dot(e.lookup("errors"),"email"))})),"\n          "),"\n\n          ",v.DIV({class:"at-input mb-3 has-feedback"},"\n            ",v.LABEL({class:"control-label",for:"at-field-signup-password"},b._TemplateWith(function(){return{c:g.call("password")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n            ",v.INPUT({type:"password",class:"form-control",id:"at-field-signup-password",name:"password",placeholder:function(){return g.mustache(e.lookup("trans"),"password")},autocomplete:"current-password",autocapitalize:"none",autocorrect:"off"}),"\n\n            ",v.SPAN({class:"help-block hide"},b.View("lookup:errors.password",function(){return g.mustache(g.dot(e.lookup("errors"),"password"))})),"\n          "),"\n\n          ",v.BUTTON({type:"submit",class:"btn btn-primary",id:"at-btn"},b._TemplateWith(function(){return{c:g.call("signup")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n        "),"\n      "),"\n    "),"\n\n    ",v.DIV({class:"at-signup-link"},"\n      ",v.P("\n        ",b._TemplateWith(function(){return{c:g.call("haveAnAccount")}},function(){return g.include(e.lookupTemplate("trans"))})," ",v.A({id:"at-signUp",class:"js-signin"},b._TemplateWith(function(){return{c:g.call("signin")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n      "),"\n    "),"\n  ")});r.__checkName("dfmAuthForgot");r["dfmAuthForgot"]=new r("Template.dfmAuthForgot",function(){var e=this;return v.DIV({id:"dfm-auth-forgot"},"\n    ",v.H3(b._TemplateWith(function(){return{c:g.call("resetYourPassword")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n\n    ",b.If(function(){return g.call(e.lookup("sent"))},function(){return["\n      ",v.DIV({class:"text-center"},b._TemplateWith(function(){return{c:g.call("checkYourEmail")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n    "]},function(){return["\n      ",v.DIV({class:"at-pwd-form"},"\n        ",v.FORM("\n          ",v.FIELDSET("\n            ",v.DIV({class:"at-input mb-3 has-success has-feedback"},"\n              ",v.LABEL({class:"control-label",for:"at-field-email"},b._TemplateWith(function(){return{c:g.call("email")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n              ",v.INPUT({type:"email",class:"form-control",id:"at-field-email",name:"email",placeholder:function(){return g.mustache(e.lookup("trans"),"email")},autocapitalize:"none",autocorrect:"off"}),"\n\n              ",v.SPAN({class:"help-block hide"},b.View("lookup:errors.email",function(){return g.mustache(g.dot(e.lookup("errors"),"email"))})),"\n            "),"\n            ",v.BUTTON({type:"submit",class:"btn btn-primary",id:"at-btn"},b._TemplateWith(function(){return{c:g.call("emailResetLink")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n          "),"\n        "),"\n      "),"\n    "]}),"\n    ",v.DIV({class:"at-signup-link"},"\n      ",v.P("\n        ",b._TemplateWith(function(){return{c:g.call("dontHaveAnAccount")}},function(){return g.include(e.lookupTemplate("trans"))})," ",v.A({id:"at-signUp",class:"js-signup"},b._TemplateWith(function(){return{c:g.call("signup")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n      "),"\n    "),"\n  ")});r.__checkName("dfmAuthReset");r["dfmAuthReset"]=new r("Template.dfmAuthReset",function(){var e=this;return v.DIV({id:"dfm-auth-forgot"},"\n    ",v.H3(b._TemplateWith(function(){return{c:g.call("resetYourPassword")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n\n    ",v.DIV({class:"at-pwd-form"},"\n      ",v.FORM("\n        ",v.FIELDSET("\n          ",v.DIV({class:"at-input mb-3 has-feedback"},"\n            ",v.LABEL({class:"control-label",for:"at-field-new-password"},b._TemplateWith(function(){return{c:g.call("createPassword")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n            ",v.INPUT({type:"password",class:"form-control",id:"at-field-new-password",name:"password",placeholder:function(){return g.mustache(e.lookup("trans"),"createPassword")},autocapitalize:"none",autocorrect:"off"}),"\n\n            ",v.SPAN({class:"help-block hide"},b.View("lookup:errors.password",function(){return g.mustache(g.dot(e.lookup("errors"),"password"))})),"\n          "),"\n\n          ",v.BUTTON({type:"submit",class:"btn btn-primary",id:"at-btn"},b._TemplateWith(function(){return{c:g.call("resetYourPassword")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n        "),"\n      "),"\n    "),"\n    ",b.Unless(function(){return g.call(e.lookup("hideSignup"))},function(){return["\n      ",v.DIV({class:"at-signup-link"},"\n        ",v.P("\n          ",b._TemplateWith(function(){return{c:g.call("dontHaveAnAccount")}},function(){return g.include(e.lookupTemplate("trans"))})," ",v.A({id:"at-signUp",class:"js-signup"},b._TemplateWith(function(){return{c:g.call("signup")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n        "),"\n      "),"\n    "]}),"\n  ")})},
161"auth.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);i.link("./auth.html");var s=new o("signin");r.dfmAuth.onCreated(function(){if(a.current().params.token)s.set("reset")});r.dfmAuth.onRendered(function(){});r.dfmAuth.onDestroyed(function(){});r.dfmAuth.helpers({state:function(e){return s.get()===e}});r.dfmAuth.events({});r.dfmAuthSignin.events({"click .js-signup":function(e,t){e.preventDefault();s.set("signup")},"click .js-forgot":function(e,t){e.preventDefault();s.set("forgot")},submit:function(t,n){t.preventDefault();var r=dfm.serialize(t.currentTarget);if(!r.email.trim())dfm.toastError("missing email");if(!r.password.trim())dfm.toastError("missing password");e.loginWithPassword(r.email,r.password,function(e){if(e)dfm.toastError(e.reason)})},"click .js-signin-with-google":function(t){t.preventDefault();e.loginWithGoogle({},function(e){if(e){console.log(e);if("User exist"===e.reason)dfm.toastError(dfm.trans(e.details))}})}});var l=new o({});r.dfmAuthSignup.helpers({errors:function(){return l.get()}});r.dfmAuthSignup.events({"click .js-signin":function(e,t){e.preventDefault();s.set("signin")},submit:function(t,n){t.preventDefault();var r=dfm.serialize(t.currentTarget);var i={};if(!r.email.trim())i["email"]=dfm.trans("missingEmail");if(!r.password.trim())i["password"]=dfm.trans("missingPassword");l.set(i);if(Object.keys(i).length)return dfm.toastWarning({message:dfm.trans("missingInformation"),autohide:true});e.callAsync("dfmAccountsCreate",r).then(function(){e.loginWithPassword(r.email,r.password)}).catch(function(e){dfm.toastError(e.reason)})}});r.dfmAuthForgot.onCreated(function(){this.sent=new o(false)});r.dfmAuthForgot.helpers({sent:function(){return r.instance().sent.get()},errors:function(){return l.get()}});r.dfmAuthForgot.events({"click .js-signup":function(e,t){e.preventDefault();s.set("signup")},submit:function(e,t){e.preventDefault();var n=dfm.serialize(e.currentTarget);var r={};if(!n.email.trim())r["email"]=dfm.trans("missingEmail");l.set(r);if(Object.keys(r).length)return dfm.toastWarning({message:dfm.trans("missingInformation"),autohide:true});u.forgotPassword({email:n.email},function(e,n){if(e)dfm.toastError(e.reason);else{t.sent.set(true);dfm.toast(dfm.trans("emailSent"))}})}});r.dfmAuthReset.helpers({errors:function(){return l.get()}});r.dfmAuthReset.events({"click .js-signup":function(e,t){e.preventDefault();s.set("signup")},submit:function(e,t){e.preventDefault();var n=dfm.serialize(e.currentTarget);var r={};if(!n.password.trim())r["password"]=dfm.trans("missingPassword");l.set(r);if(Object.keys(r).length)return dfm.toastWarning({message:dfm.trans("missingInformation"),autohide:true});var i=a.current().params.paramToken||a.current().params.token;u.resetPassword(i,n.password,function(e,t){if(e)dfm.toastError(e.reason);else{dfm.toast(dfm.trans("success"));s.set("signin");a.go("/")}})}})},
161"join.html":function(e,t,n){n.link("./template.join.js",{"*":"*+"})},
161"template.join.js":function(){r.__checkName("dfmSignin");r["dfmSignin"]=new r("Template.dfmSignin",function(){var e=this;return v.DIV({id:"signin"},"\n    ",g.include(e.lookupTemplate("loginButtons")),"\n  ")});r.__checkName("dfmJoin");r["dfmJoin"]=new r("Template.dfmJoin",function(){var e=this;return v.DIV({id:"signin"},"\n    ",g.include(e.lookupTemplate("loginButtons")),"\n  ")})},liveStamp:{
161"liveStamp.html":function(e,t,n){n.link("./template.liveStamp.js",{"*":"*+"})},
161"template.liveStamp.js":function(){r.__checkName("dfmLiveStamp");r["dfmLiveStamp"]=new r("Template.dfmLiveStamp",function(){return v.Raw('<small class="dfm-livestamp"></small>')})},
161"liveStamp.js":function(t,n,i){i.link("./liveStamp.html");var o;i.link("javascript-time-ago",{default:function(e){o=e}},0);var a;i.link("javascript-time-ago/locale/en",{default:function(e){a=e}},1);o.addDefaultLocale(a);var s=new o("en-US");r.dfmLiveStamp.onRendered(function(){var t;var n=this;if(!(null==(t=this.data)?void 0:t.date))return;n.$(".dfm-livestamp").text(s.format(this.data.date,"twitter-now"));e.setInterval(function(){n.$(".dfm-livestamp").text(s.format(n.data.date,"twitter-now"))},1e4)})}},webmaster:{
161"effective-permissions.html":function(e,t,n){n.link("./template.effective-permissions.js",{"*":"*+"})},
161"template.effective-permissions.js":function(){r.__checkName("dfmUserEffectivePermissions");r["dfmUserEffectivePermissions"]=new r("Template.dfmUserEffectivePermissions",function(){var e=this;return v.DIV({class:"card mb-3"},v.Raw('\n    <div class="card-header">\n      <span class="material-symbols-outlined">security</span> Effective permissions\n    </div>\n    '),v.DIV({class:"card-body p-0"},"\n      ",b.If(function(){return g.call(e.lookup("loading"))},function(){return v.Raw('\n        <div class="p-3 text-center">\n          <div class="spinner-border spinner-border-sm" role="status"></div> Loading…\n        </div>\n      ')},function(){return["\n        ",v.TABLE({class:"table table-hover table-striped mb-0"},"\n          ",v.THEAD("\n            ",v.TR(v.Raw("\n              <th>Permission</th>\n              <th>Scope</th>\n              <th>Source</th>\n            ")),"\n          "),"\n          ",v.TBODY("\n            ",b.Each(function(){return g.call(e.lookup("getRows"))},function(){return["\n              ",v.TR("\n                ",v.TD(v.CODE(b.View("lookup:key",function(){return g.mustache(e.lookup("key"))}))),"\n                ",v.TD("\n                  ",b.If(function(){return g.dataMustache(e.lookup("isGlobal"),e.lookup("scope"))},function(){return v.Raw('<span class="badge bg-dark">GLOBAL</span>')},function(){return v.SPAN({class:"badge bg-secondary"},b.View("lookup:scope",function(){return g.mustache(e.lookup("scope"))}))}),"\n                "),"\n                ",v.TD(b.View("lookup:source",function(){return g.mustache(e.lookup("source"))})),"\n              "),"\n            "]},function(){return["\n              ",v.TR(v.Raw('\n                <td colspan="3" class="text-center text-muted">No effective org permission.</td>\n              ')),"\n            "]}),"\n          "),"\n        "),v.Raw('\n        <div class="card-footer text-muted small">\n          Org-level permissions only. Conference-local roles (moderator / floor) are conference state, managed elsewhere.\n        </div>\n      ')]}),"\n    "),"\n  ")})},
161"effective-permissions.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);i.link("./effective-permissions.html");r.dfmUserEffectivePermissions.onCreated(function(){var t=this;this.rows=new o([]);this.loading=new o(true);this.autorun(function(){var n=r.currentData()&&r.currentData().userId;if(!n){t.rows.set([]);t.loading.set(false);return}t.loading.set(true);e.callAsync("dfm.permissions.effectiveForUser",n).then(function(e){t.rows.set(e||[]);t.loading.set(false)}).catch(function(e){dfm.toastError(e);t.loading.set(false)})})});r.dfmUserEffectivePermissions.helpers({loading:function(){return r.instance().loading.get()},getRows:function(){return r.instance().rows.get()},isGlobal:function(e){return!e||"global"===e}})},
161"groups.html":function(e,t,n){n.link("./template.groups.js",{"*":"*+"})},
161"template.groups.js":function(){r.__checkName("webmasterGroups");r["webmasterGroups"]=new r("Template.webmasterGroups",function(){var e=this;return v.DIV({id:"webmaster-groups"},v.Raw('\n    <h1><span class="material-symbols-outlined">groups_2</span> Permission groups</h1>\n\n    '),b.If(function(){return g.call(e.lookup("canManagePermissions"))},function(){return[v.Raw('\n      <p class="text-muted">\n        A group bundles permissions; its members inherit them all. Unlike roles,\n        a group\'s content is editable here — no code change.\n      </p>\n\n      '),v.DIV({class:"row"},"\n        ",v.DIV({class:"col-md-5"},"\n          ",v.DIV({class:"card mb-3"},v.Raw('\n            <div class="card-header">Groups</div>\n            '),v.DIV({class:"card-body p-0"},"\n              ",b.If(function(){return g.call(e.lookup("loading"))},function(){return v.Raw('\n                <div class="p-3 text-center"><div class="spinner-border spinner-border-sm" role="status"></div> Loading…</div>\n              ')},function(){return["\n                ",v.TABLE({class:"table table-hover table-striped mb-0"},"\n                  ",v.THEAD(v.TR(v.Raw('<th>Name</th><th width="90">Perms</th><th width="50"></th>'))),"\n                  ",v.TBODY("\n                    ",b.Each(function(){return g.call(e.lookup("getGroups"))},function(){return["\n                      ",v.TR({class:function(){return["js-select-group ",g.mustache(e.lookup("selectedClass"),e.lookup("_id"))]},"data-id":function(){return g.mustache(e.lookup("_id"))},style:"cursor:pointer"},"\n                        ",v.TD(b.View("lookup:name",function(){return g.mustache(e.lookup("name"))})," ",b.If(function(){return g.call(e.lookup("key"))},function(){return v.CODE({class:"small text-muted"},b.View("lookup:key",function(){return g.mustache(e.lookup("key"))}))})),"\n                        ",v.TD(v.SPAN({class:"badge bg-primary"},b.View("lookup:permCount",function(){return g.mustache(e.lookup("permCount"))}))),"\n                        ",v.TD(v.SPAN({class:"material-symbols-outlined text-danger js-remove-group","data-id":function(){return g.mustache(e.lookup("_id"))},title:"Delete group"},"delete")),"\n                      "),"\n                    "]},function(){return["\n                      ",v.TR(v.Raw('<td colspan="3" class="text-center text-muted">No group yet.</td>')),"\n                    "]}),"\n                  "),"\n                "),"\n              "]}),"\n            "),v.Raw('\n            <div class="card-footer">\n              <form id="form-create-group" class="d-flex gap-2">\n                <input class="form-control form-control-sm" name="groupName" placeholder="New group name" required="">\n                <button class="btn btn-sm btn-primary" type="submit">Create</button>\n              </form>\n            </div>\n          ')),"\n        "),"\n\n        ",v.DIV({class:"col-md-7"},"\n          ",g.With(function(){return g.call(e.lookup("selectedGroup"))},function(){return["\n            ",v.DIV({class:"card mb-3"},"\n              ",v.DIV({class:"card-header d-flex justify-content-between align-items-center"},"\n                ",v.SPAN("Edit \xab ",b.View("lookup:name",function(){return g.mustache(e.lookup("name"))})," \xbb"),"\n              "),"\n              ",v.DIV({class:"card-body"},"\n                ",v.FORM({id:"form-edit-group"},"\n                  ",v.DIV({class:"mb-3"},v.Raw('\n                    <label class="form-label">Name</label>\n                    '),v.INPUT({class:"form-control",name:"name",value:function(){return g.mustache(e.lookup("name"))},required:""}),"\n                  "),"\n                  ",v.DIV({class:"mb-3"},v.Raw('\n                    <label class="form-label">Permissions in this group</label>\n                    '),b.Each(function(){return g.call(e.lookup("allPermissions"))},function(){return["\n                      ",v.DIV({class:"form-check"},"\n                        ",v.INPUT({class:"form-check-input js-perm-check",type:"checkbox",value:function(){return g.mustache(e.lookup("key"))},id:function(){return["perm-",g.mustache(e.lookup("key"))]},checked:function(){return g.mustache(e.lookup("isChecked"),e.lookup("key"))}}),"\n                        ",v.LABEL({class:"form-check-label",for:function(){return["perm-",g.mustache(e.lookup("key"))]}},"\n                          ",v.CODE(b.View("lookup:key",function(){return g.mustache(e.lookup("key"))}))," ",v.SPAN({class:"text-muted"},b.View("lookup:label",function(){return g.mustache(e.lookup("label"))})),"\n                        "),"\n                      "),"\n                    "]},function(){return v.Raw('\n                      <div class="text-muted">No permission declared in this app.</div>\n                    ')}),"\n                  "),v.Raw('\n                  <button class="btn btn-primary" type="submit">Save</button>\n                ')),"\n              "),"\n            "),"\n\n            ",v.DIV({class:"card mb-3"},v.Raw('\n              <div class="card-header">Members</div>\n              '),v.DIV({class:"card-body"},"\n                ",b.If(function(){return g.call(e.lookup("membersLoading"))},function(){return v.Raw('\n                  <div class="spinner-border spinner-border-sm" role="status"></div> Loading…\n                ')},function(){return["\n                  ",b.Each(function(){return g.call(e.lookup("getMembers"))},function(){return["\n                    ",v.DIV({class:"d-flex justify-content-between align-items-center border-bottom py-1"},"\n                      ",v.SPAN(b.View("lookup:label",function(){return g.mustache(e.lookup("label"))})),"\n                      ",v.SPAN({class:"material-symbols-outlined text-danger js-remove-member","data-userid":function(){return g.mustache(e.lookup("userId"))},style:"cursor:pointer",title:"Remove from group"},"person_remove"),"\n                    "),"\n                  "]},function(){return v.Raw('\n                    <div class="text-muted">No member.</div>\n                  ')}),"\n                "]}),v.Raw('\n\n                <hr>\n                <label class="form-label">Add a member</label>\n                '),b._TemplateWith(function(){return{onlyFilter:g.call(false),filterByRole:g.call(false)}},function(){return g.include(e.lookupTemplate("dfmUserSearch"))}),v.Raw('\n                <button class="btn btn-sm btn-outline-primary js-add-member" type="button">Add selected user</button>\n              ')),"\n            "),"\n          "]},function(){return v.Raw('\n            <div class="alert alert-info">Select a group on the left, or create one.</div>\n          ')}),"\n        "),"\n      "),"\n\n    "]},function(){return v.Raw('\n      <div class="alert alert-danger">You are not allowed to manage permissions.</div>\n    ')}),"\n  ")})},
161"groups.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);var a;i.link("../../../api/permissions/lib/collections.js",{PermissionGroups:function(e){a=e}},1);i.link("../../../api/user-search/client/dfm-user-search.js");i.link("./groups.html");r.webmasterGroups.onCreated(function(){var t=this;this.declared=new o([]);this.loading=new o(true);this.selectedId=new o(null);this.members=new o([]);this.membersLoading=new o(false);this.subscribe("dfmAllGroups");e.callAsync("dfm.permissions.registry").then(function(e){t.declared.set(e&&e.declared||[]);t.loading.set(false)}).catch(function(e){dfm.toastError(e);t.loading.set(false)});this.loadMembers=function(n){if(!n)return void t.members.set([]);t.membersLoading.set(true);e.callAsync("dfm.permissions.groupMembers",n).then(function(e){t.members.set(e||[]);t.membersLoading.set(false)}).catch(function(e){dfm.toastError(e);t.membersLoading.set(false)})}});r.webmasterGroups.helpers({loading:function(){return r.instance().loading.get()},getGroups:function(){return a.find({},{sort:{name:1}}).fetch()},permCount:function(){return(this.permissions||[]).length},selectedClass:function(e){return r.instance().selectedId.get()===e?"table-active":""},selectedGroup:function(){var e=r.instance().selectedId.get();return e?a.findOne(e):null},allPermissions:function(){return r.instance().declared.get()},isChecked:function(e){var t=r.instance().selectedId.get();var n=t&&a.findOne(t);return!!(n&&(n.permissions||[]).some(function(t){return t.key===e}))},membersLoading:function(){return r.instance().membersLoading.get()},getMembers:function(){return r.instance().members.get()}});r.webmasterGroups.events({"submit #form-create-group":function(t,n){t.preventDefault();var r=t.target.groupName.value.trim();if(!r)return dfm.toastWarning("Please enter a group name");e.callAsync("dfm.permissions.group.upsert",{name:r,permissions:[]}).then(function(e){dfm.toastSuccess("Group created");t.target.reset();n.selectedId.set(e);n.loadMembers(e)}).catch(function(e){return dfm.toastError(e)})},"click .js-select-group":function(e,t){var n=e.currentTarget.dataset.id;t.selectedId.set(n);t.loadMembers(n)},"click .js-remove-group":function(t,n){t.preventDefault();t.stopPropagation();var r=t.currentTarget.dataset.id;dfm.confirm("Delete this group? Members will be detached.",function(t){if(!t)return;e.callAsync("dfm.permissions.group.remove",r).then(function(){dfm.toastSuccess("Group deleted");if(n.selectedId.get()===r)n.selectedId.set(null)}).catch(function(e){return dfm.toastError(e)})},t.shiftKey)},"submit #form-edit-group":function(t,n){var r;t.preventDefault();var i=n.selectedId.get();if(!i)return;var o=t.target.name.value.trim();var s=(null==(r=a.findOne(i))?void 0:r.permissions)||[];var l=Array.from(t.target.querySelectorAll(".js-perm-check:checked")).flatMap(function(e){var t=s.filter(function(t){return t.key===e.value});return t.length?t.map(function(e){return{key:e.key,scopeKey:e.scopeKey||"global"}}):[{key:e.value,scopeKey:"global"}]});e.callAsync("dfm.permissions.group.upsert",{_id:i,name:o,permissions:l}).then(function(){return dfm.toastSuccess("Group saved")}).catch(function(e){return dfm.toastError(e)})},"click .js-add-member":function(t,n){var r=dfm.userSearch.get("user");var i=r&&r.result&&r.result._id;if(!i)return dfm.toastWarning("Select a user first");var o=n.selectedId.get();e.callAsync("dfm.permissions.user.addToGroup",i,o).then(function(){dfm.toastSuccess("Member added");dfm.userSearchReset();n.loadMembers(o)}).catch(function(e){return dfm.toastError(e)})},"click .js-remove-member":function(t,n){var r=t.currentTarget.dataset.userid;var i=n.selectedId.get();e.callAsync("dfm.permissions.user.removeFromGroup",r,i).then(function(){dfm.toastSuccess("Member removed");n.loadMembers(i)}).catch(function(e){return dfm.toastError(e)})}})},
161"layout.html":function(e,t,n){n.link("./template.layout.js",{"*":"*+"})},
161"template.layout.js":function(){r.__checkName("webmasterLayout");r["webmasterLayout"]=new r("Template.webmasterLayout",function(){var e=this;return[v.DIV({id:"webmaster-layout"},"\n    ",v.DIV({class:"wm-wrapper"},"\n      ",v.ASIDE({class:"wm-sidebar"},"\n        ",v.DIV({class:"wm-sidebar-header"},"\n          ",v.A({href:"/"},b.View("lookup:dfmAppName",function(){return g.mustache(e.lookup("dfmAppName"))})),v.Raw('\n          <button class="wm-sidebar-close d-md-none">&times;</button>\n        ')),"\n        ",g.include(e.lookupTemplate("webmasterMenu")),"\n      "),v.Raw('\n      <div class="wm-overlay d-md-none"></div>\n      '),v.DIV({class:"wm-main"},"\n        ",v.HEADER({class:"wm-topbar d-md-none"},v.Raw('\n          <button class="wm-sidebar-toggle">&#9776;</button>\n          '),v.A({href:"/"},b.View("lookup:dfmAppName",function(){return g.mustache(e.lookup("dfmAppName"))})),"\n        "),"\n        ",v.DIV({class:"wm-content"},"\n          ",g.include(e.lookupTemplate("yield")),"\n        "),"\n      "),"\n    "),"\n  "),"\n  ",g.include(e.lookupTemplate("dfmMessages"))]})},
161"menu.html":function(e,t,n){n.link("./template.menu.js",{"*":"*+"})},
161"template.menu.js":function(){r.__checkName("webmasterMenu");r["webmasterMenu"]=new r("Template.webmasterMenu",function(){var e=this;return[b.If(function(){return g.call(e.lookup("hasWebmasterRole"))},function(){return["\n    ",b.If(function(){return g.call(e.lookup("onlyLink"))},function(){return["\n      ",b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n        ",g.include(e.lookupTemplate("webmasterMenuLinks")),"\n      "]}),"\n    "]},function(){return["\n      ",v.H6({class:"sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-3"},"\n        ",v.SPAN(g.include(e.lookupTemplate("onlyWebmaster"))," Webmaster CORE"),"\n        ",b._TemplateWith(function(){return{dataToggle:g.call("webmaster"),dataKey:g.call("menu"),isToggled:g.call(e.lookup("isWebmasterVisible"))}},function(){return g.include(e.lookupTemplate("dfmToggle"))}),"\n      "),"\n\n      ",b.If(function(){return g.call(e.lookup("isWebmasterVisible"))},function(){return["\n        ",v.UL({class:"nav flex-column mb-2"},"\n          ",g.include(e.lookupTemplate("webmasterMenuLinks")),"\n        "),"\n      "]}),"\n    "]}),"\n  "]}),"\n\n  ",b.If(function(){return g.call(e.lookup("showDelegateMenu"))},function(){return[v.Raw('\n    <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-3">
161\n      <span>Permissions</span>\n    </h6>\n    '),v.UL({class:"nav flex-column mb-2"},"\n      ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterPermissions")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterPermissions")}},v.Raw('<span class="material-symbols-outlined">security</span> Permissions'))),"\n      ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterGroups")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterGroups")}},v.Raw('<span class="material-symbols-outlined">groups_2</span> Groups'))),"\n    "),"\n  "]})]});r.__checkName("webmasterMenuLinks");r["webmasterMenuLinks"]=new r("Template.webmasterMenuLinks",function(){var e=this;return[v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterDashboard")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterDashboard")}},v.Raw('<span class="material-symbols-outlined float-end">dashboard</span><span class="material-symbols-outlined">dashboard</span> Dashboard'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterUsers")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterUsers")}},v.Raw('<span class="material-symbols-outlined">groups</span> Users'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterRoles")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterRoles")}},v.Raw('<span class="material-symbols-outlined">admin_panel_settings</span> Roles'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterPermissions")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterPermissions")}},v.Raw('<span class="material-symbols-outlined">security</span> Permissions'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterGroups")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterGroups")}},v.Raw('<span class="material-symbols-outlined">groups_2</span> Groups'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterMessages")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterMessages")}},v.Raw('<span class="material-symbols-outlined">announcement</span> Messages'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterFiles")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterFiles")}},v.Raw('<span class="material-symbols-outlined">description</span> Files'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"adminLanguages")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"adminLanguages")}},v.Raw('<span class="material-symbols-outlined">language</span> Languages'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterTranslations")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterTranslations")}},v.Raw('<span class="material-symbols-outlined">translate</span> Translations'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"dfmAdminCron")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"dfmAdminCron")}},v.Raw('<span class="material-symbols-outlined">schedule</span> Crons'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterImpersonateLogs")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterImpersonateLogs")}},v.Raw('<span class="material-symbols-outlined">people_alt</span> impersonateLogs'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterNotifications")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterNotifications")}},v.Raw('<span class="material-symbols-outlined">campaign</span> Notifications'))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"webmasterLogs")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"webmasterLogs")}},v.Raw('<span class="material-symbols-outlined">support</span> Logs '),g.With(function(){return g.call(e.lookup("nbLogsErrors"))},function(){return v.SPAN({class:"badge rounded-pill bg-danger"},b.View("lookup:.",function(){return g.mustache(e.lookup("."))}))}))),"\n  ",v.LI({class:function(){return["nav-item ",g.mustache(e.lookup("isActiveRoute"),"dfmSettings")]}},v.A({class:"nav-link",href:function(){return g.mustache(e.lookup("pathFor"),"dfmSettings")}},v.Raw('<span class="material-symbols-outlined">engineering</span>
161 Settings'))),v.Raw('\n  <li class="nav-item"><a class="nav-link js-logout" href=""><span class="material-symbols-outlined">logout</span> Logout</a></li>')]})},
161"menu.js":function(t,n,i){i.link("./menu.html");var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);var a=new o(0);r.webmasterMenu.onCreated(function(){});r.webmasterMenu.onRendered(function(){});r.webmasterMenu.helpers({nbLogsErrors:function(){return a.get()},hasWebmasterRole:function(){var t=e.userId();return t&&c.userIsInRole(t,["webmaster"])&&!Session.get("hideOnlyWebmasterThings")},isWebmasterVisible:function(){var t,n;return!(null==(n=e.user())?void 0:null==(t=n.profile)?void 0:t.hideWebmasterMenu)},showDelegateMenu:function(){var t=e.userId();if(!t||Session.get("hideOnlyWebmasterThings"))return false;if(c.userIsInRole(t,["webmaster"]))return false;return!!(dfm.canManagePermissions&&dfm.canManagePermissions(t))}});r.webmasterMenu.events({"click .js-toggle":function(t){var n,r;var i=!!(null==(r=e.user())?void 0:null==(n=r.profile)?void 0:n.hideWebmasterMenu);e.users.updateAsync(e.userId(),{$set:{"profile.hideWebmasterMenu":!i}})},"click .js-logout":function(t,n){t.preventDefault();e.logout()}});r.webmasterLayout.events({"click .wm-sidebar-toggle":function(e,t){t.find(".wm-sidebar").classList.add("open");t.find(".wm-overlay").classList.add("open")},"click .wm-sidebar-close, click .wm-overlay":function(e,t){t.find(".wm-sidebar").classList.remove("open");t.find(".wm-overlay").classList.remove("open")}})},
161"onlyWebmaster.html":function(e,t,n){n.link("./template.onlyWebmaster.js",{"*":"*+"})},
161"template.onlyWebmaster.js":function(){r.__checkName("onlyWebmaster");r["onlyWebmaster"]=new r("Template.onlyWebmaster",function(){var e=this;return b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n    ",v.A({class:function(){return["clickable js-hide-only-webmaster-things badge bg-danger text-white ",g.mustache(e.lookup("class"))]},title:"Only webmasters can see this, click to hide webmaster items, refresh for cancel"},"W"),"\n  "]})});r.__checkName("onlyWebmasterJsonPre");r["onlyWebmasterJsonPre"]=new r("Template.onlyWebmasterJsonPre",function(){var e=this;return b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n    ",v.DIV({class:"card mt-5"},"\n      ",v.DIV({class:"card-body",style:"background-color: #ffdada;"},"\n        ",g.include(e.lookupTemplate("onlyWebmaster")),"\n        ",v.PRE("\n        ",b.View("lookup:JSONstringifyPre",function(){return g.mustache(e.lookup("JSONstringifyPre"),e.lookup("json"))}),"\n        "),"\n      "),"\n    "),"\n  "]})});r.__checkName("onlySuperAdmin");r["onlySuperAdmin"]=new r("Template.onlySuperAdmin",function(){var e=this;return b.If(function(){return g.call(e.lookup("isSuperAdmin"))},function(){return["\n    ",v.A({class:function(){return["clickable js-hide-only-superAdmin-things  badge bg-danger text-white ",g.mustache(e.lookup("class"))]},title:"Only superAdmin can see this, click to hide superAdmin items, refresh for cancel"},"S"),"\n  "]})});r.__checkName("adminOnly");r["adminOnly"]=new r("Template.adminOnly",function(){var e=this;return b.If(function(){return g.call(e.lookup("isAdmin"))},function(){return["\n    ",v.A({class:function(){return["clickable js-hide-only-admin-things  badge bg-danger text-white ",g.mustache(e.lookup("class"))]},title:"Only admin can see this, click to hide admin items, refresh for cancel"},"A"),"\n  "]})});r.__checkName("attentionNeeded");r["attentionNeeded"]=new r("Template.attentionNeeded",function(){return v.Raw('<span class="material-symbols-outlined text-danger" title="Attention needed">warning</span>')})},
161"onlyWebmaster.js":function(e,t,n){n.link("./onlyWebmaster.html");r.body.events({"click .js-hide-only-webmaster-things":function(e){e.preventDefault();dfm.toast("Hiding webmaster things","info");Session.set("hideOnlyWebmasterThings",true)},"click .js-hide-only-superAdmin-things":function(e){e.preventDefault();dfm.toast("Hiding superAdmin things","info");Session.set("hideOnlySuperAdminThings",true)},"click .js-hide-only-admin-things":function(e){e.preventDefault();dfm.toast("Hiding admin things","info");Session.set("hideOnlyAdminThings",true)}})},
161"permissions.html":function(e,t,n){n.link("./template.permissions.js",{"*":"*+"})},
161"template.permissions.js":function(){r.__checkName("webmasterPermissions");r["webmasterPermissions"]=new r("Template.webmasterPermissions",function(){var e=this;return v.DIV({id:"webmaster-permissions"},v.Raw('\n    <h1><span class="material-symbols-outlined">security</span> Permissions</h1>\n\n    '),b.If(function(){return g.call(e.lookup("canManagePermissions"))},function(){return["\n      ",g.include(e.lookupTemplate("onlyWebmaster")),v.Raw('\n\n      <p class="text-muted">\n        Registry of permissions declared <strong>in code</strong> by the apps\n        (<code>dfm.permissions.register(...)</code>). Read-only: permissions are not created from the UI.\n      </p>\n\n      '),b.If(function(){return g.call(e.lookup("hasOrphans"))},function(){return["\n        ",v.DIV({class:"alert alert-warning"},v.Raw('\n          <span class="material-symbols-outlined">warning</span>\n          <strong>Orphan permissions</strong> (granted in DB but not declared in code):\n          '),b.Each(function(){return g.call(e.lookup("orphans"))},function(){return v.CODE({class:"mx-1"},b.View("lookup:.",function(){return g.mustache(e.lookup("."))}))}),"\n        "),"\n      "]}),"\n\n      ",v.DIV({class:"card"},v.Raw('\n        <div class="card-header">Declared permissions</div>\n        '),v.DIV({class:"card-body p-0"},"\n          ",b.If(function(){return g.call(e.lookup("loading"))},function(){return v.Raw('\n            <div class="p-3 text-center">\n              <div class="spinner-border spinner-border-sm" role="status"></div> Loading…\n            </div>\n          ')},function(){return["\n            ",v.TABLE({class:"table table-hover table-striped mb-0"},"\n              ",v.THEAD("\n                ",v.TR(v.Raw('\n                  <th>Key</th>\n                  <th>Label</th>\n                  <th>Scopes</th>\n                  <th width="120">Groups</th>\n                  <th width="120">Direct grants</th>\n                  <th width="100">Resolver</th>\n                ')),"\n              "),"\n              ",v.TBODY("\n                ",b.Each(function(){return g.call(e.lookup("getPermissions"))},function(){return["\n                  ",v.TR({class:"js-perm-row","data-key":function(){return g.mustache(e.lookup("key"))},style:"cursor:pointer",title:"Click to see who holds this permission"},"\n                    ",v.TD("\n                      ",v.SPAN({class:"material-symbols-outlined align-middle"},b.View("lookup:caret",function(){return g.mustache(e.lookup("caret"),e.lookup("key"))})),"\n                      ",v.CODE(b.View("lookup:key",function(){return g.mustache(e.lookup("key"))})),"\n                    "),"\n                    ",v.TD(b.View("lookup:label",function(){return g.mustache(e.lookup("label"))})),"\n                    ",v.TD(b.Each(function(){return g.call(e.lookup("scopes"))},function(){return v.SPAN({class:"badge bg-secondary me-1"},b.View("lookup:.",function(){return g.mustache(e.lookup("."))}))})),"\n                    ",v.TD(v.SPAN({class:"badge bg-primary"},b.View("lookup:usageGroups",function(){return g.mustache(e.lookup("usageGroups"),e.lookup("key"))}))),"\n                    ",v.TD(v.SPAN({class:"badge bg-primary"},b.View("lookup:usageGrants",function(){return g.mustache(e.lookup("usageGrants"),e.lookup("key"))}))),"\n                    ",v.TD("\n                      ",b.If(function(){return g.call(e.lookup("hasResolver"))},function(){return v.Raw('\n                        <span class="badge bg-info text-dark">resolver</span>\n                      ')},function(){return v.Raw('\n                        <span class="text-muted">—</span>\n                      ')}),"\n                    "),"\n                  "),"\n                  ",b.If(function(){return g.dataMustache(e.lookup("isExpanded"),e.lookup("key"))},function(){return["\n                    ",v.TR("\n                      ",v.TD({colspan:"6",class:"bg-light small"},"\n                        ",g.With(function(){return g.dataMustache(e.lookup("getHolders"),e.lookup("key"))},function(){return["\n                          ",v.DIV({class:"row"},"\n                            ",v.DIV({class:"col-md-4"},v.Raw("\n                              <strong>Direct grants</strong>\n                              "),b.Each(function(){return g.call(e.lookup("direct"))},function(){return v.DIV(b.View("lookup:label",function(){return g.mustache(e.lookup("label"))})," ",v.SPAN({class:"badge bg-secondary"},b.View("lookup:scope",function(){return g.mustache(e.lookup("scope"))})))},function(){return v.Raw('<div class="text-muted">—</div>')}),"\n                            "),"\n                            ",v.DIV({class:"col-md-4"},v.Raw("\n                              <strong>Via groups</strong>\n                              "),b.Each(function(){return g.call(e.lookup("groups"))},function(){return v.DIV(b.View("lookup:label",function(){return g.mustache(e.lookup("label"))})," ",v.SPAN({class:"badge bg-dark"},b.View("lookup:groupName",function(){return g.mustache(e.lookup("groupName"))}))," ",v.SPAN({class:"badge bg-secondary"},b.View("lookup:scope",function(){return g.mustache(e.lookup("scope"))})))},function(){return v.Raw('<div class="text-muted">—</div>')}),"\n                            "),"\n                            ",v.DIV({class:"col-md-4"},v.Raw("\n                              <strong>Via resolver (global role)</strong>\n                              "),b.Each(function(){return g.call(e.lookup("resolver"))},function(){return v.DIV(b.View("lookup:label",function(){return g.mustache(e.lookup("label"))}))},function(){return v.Raw('<div class="text-muted">—</div>')}),"\n                            "),"\n                          "),"\n                        "]},function(){return v.Raw('\n                          <div class="spinner-border spinner-border-sm" role="status"></div> Loading holders…\n                        ')}),"\n                      "),"\n                    "),"\n                  "]}),"\n                "]},function(){return["\n                  ",v.TR(v.Raw('\n                    <td colspan="6" class="text-center">No permission declared in this app.</td>\n                  ')),"\n                "]}),"\n              "),"\n            "),"\n          "]}),"\n        "),"\n      "),"\n\n    "]},function(){return v.Raw('\n      <div class="alert alert-danger">You must be a webmaster to access this page.</div>\n    ')}),"\n  ")})},
161"permissions.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);var a;i.link("meteor/reactive-dict",{ReactiveDict:function(e){a=e}},1);i.link("./permissions.html");r.webmasterPermissions.onCreated(function(){var t=this;this.data_=new o({declared:[],usage:{},orphans:[]});this.loading=new o(true);this.expanded=new a;this.holders=new a;e.callAsync("dfm.permissions.registry").then(function(e){t.data_.set(e||{declared:[],usage:{},orphans:[]});t.loading.set(false)}).catch(function(e){dfm.toastError(e);t.loading.set(false)})});r.webmasterPermissions.events({"click .js-perm-row":function(t,n){var r=t.currentTarget.dataset.key;if(!r)return;var i=!n.expanded.get(r);n.expanded.set(r,i);if(i&&void 0===n.holders.get(r))e.callAsync("dfm.permissions.holders",r).then(function(e){return n.holders.set(r,e||{direct:[],groups:[],resolver:[]})}).catch(function(e){dfm.toastError(e);n.expanded.set(r,false)})}});r.webmasterPermissions.helpers({loading:function(){return r.instance().loading.get()},getPermissions:function(){return r.instance().data_.get().declared},usageGroups:function(e){return(r.instance().data_.get().usage[e]||{}).groups||0},usageGrants:function(e){return(r.instance().data_.get().usage[e]||{}).grants||0},orphans:function(){return r.instance().data_.get().orphans},hasOrphans:function(){return(r.instance().data_.get().orphans||[]).length>0},isExpanded:function(e){return r.instance().expanded.get(e)},getHolders:function(e){return r.instance().holders.get(e)},caret:function(e){return r.instance().expanded.get(e)?"expand_more":"chevron_right"}})},
161"roles.html":function(e,t,n){n.link("./template.roles.js",{"*":"*+"})},
161"template.roles.js":function(){r.__checkName("webmasterRoles");r["webmasterRoles"]=new r("Template.webmasterRoles",function(){var e=this;return v.DIV({id:"webmaster-roles"},v.Raw('\n    <h1><span class="material-symbols-outlined">admin_panel_settings</span> Roles Management</h1>\n\n    '),b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n      ",g.include(e.lookupTemplate("onlyWebmaster")),v.Raw('\n\n      \x3c!-- Create new role form --\x3e\n      <div class="card mb-4">\n        <div class="card-header">Create New Role</div>\n        <div class="card-body">\n          <form id="form-create-role" class="row g-3 align-items-center">\n            <div class="col-auto">\n              <input type="text" name="roleName" class="form-control" placeholder="Role name (e.g., interpreter, ai)" required="">\n            </div>\n            <div class="col-auto">\n              <button type="submit" class="btn btn-primary">\n                <span class="material-symbols-outlined">add</span> Create Role\n              </button>\n            </div>\n          </form>\n          <small class="text-muted">Only alphanumeric characters, dashes and underscores are allowed.</small>\n        </div>\n      </div>\n\n      \x3c!-- Roles list --\x3e\n      '),v.DIV({class:"card"},v.Raw('\n        <div class="card-header">All Roles</div>\n        '),v.DIV({class:"card-body p-0"},"\n          ",b.If(function(){return g.call(e.lookup("loading"))},function(){return v.Raw('\n            <div class="p-3 text-center">\n              <div class="spinner-border spinner-border-sm" role="status"></div> Loading roles...\n            </div>\n          ')},function(){return["\n            ",v.TABLE({class:"table table-hover table-striped mb-0"},"\n              ",v.THEAD("\n                ",v.TR(v.Raw('\n                  <th>Role Name</th>\n                  <th>Users Count</th>\n                  <th>Type</th>\n                  <th width="100">Actions</th>\n                ')),"\n              "),"\n              ",v.TBODY("\n                ",b.Each(function(){return g.call(e.lookup("getRoles"))},function(){return["\n                  ",v.TR({class:function(){return b.If(function(){return g.call(e.lookup("isSystemRole"))},function(){return"table-secondary"})}},"\n                    ",v.TD("\n                      ",v.STRONG(b.View("lookup:name",function(){return g.mustache(e.lookup("name"))})),"\n                    "),"\n                    ",v.TD("\n                      ",v.SPAN({class:"badge bg-primary"},b.View("lookup:usersCount",function(){return g.mustache(e.lookup("usersCount"))})),"\n                    "),"\n                    ",v.TD("\n                      ",b.If(function(){return g.call(e.lookup("isSystemRole"))},function(){return v.Raw('\n                        <span class="badge bg-warning text-dark">System</span>\n                      ')},function(){return v.Raw('\n                        <span class="badge bg-secondary">Custom</span>\n                      ')}),"\n                    "),"\n                    ",v.TD("\n                      ",b.Unless(function(){return g.call(e.lookup("isSystemRole"))},function(){return["\n                        ",v.BUTTON({class:"btn btn-sm btn-danger js-remove-role","data-role":function(){return g.mustache(e.lookup("name"))}},v.Raw('\n                          <span class="material-symbols-outlined">delete</span>\n                        ')),"\n                      "]},function(){return v.Raw('\n                        <span class="text-muted" title="System roles cannot be deleted">\n                          <span class="material-symbols-outlined">lock</span>\n                        </span>\n                      ')}),"\n                    "),"\n                  "),"\n                "]},function(){return["\n                  ",v.TR(v.Raw('\n                    <td colspan="4" class="text-center">No roles found</td>\n                  ')),"\n                "]}),"\n              "),"\n            "),"\n          "]}),"\n        "),"\n      "),"\n\n    "]},function(){return v.Raw('\n      <div class="alert alert-danger">You must be a webmaster to access this page.</div>\n    ')}),"\n  ")})},
161"roles.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);i.link("./roles.html");r.webmasterRoles.onCreated(function(){var t=this;this.roles=new o([]);this.loading=new o(true);this.loadRoles=function(){t.loading.set(true);e.callAsync("dfm.roles.getAllWithCounts").then(function(e){t.roles.set(e);t.loading.set(false)}).catch(function(e){dfm.toastError(e);t.loading.set(false)})};this.loadRoles()});r.webmasterRoles.onRendered(function(){});r.webmasterRoles.helpers({getRoles:function(){return r.instance().roles.get()},loading:function(){return r.instance().loading.get()}});r.webmasterRoles.events({"submit #form-create-role":function(t,n){t.preventDefault();var r=t.target;var i=r.roleName.value.trim();if(!i)return void dfm.toastWarning("Please enter a role name");e.callAsync("dfm.roles.create",i).then(function(e){dfm.toastSuccess('Role "'.concat(e,'" created successfully'));r.reset();n.loadRoles()}).catch(function(e){dfm.toastError(e)})},"click .js-remove-role":function(t,n){t.preventDefault();var r=t.currentTarget.dataset.role;dfm.confirm('Are you sure you want to delete the role "'.concat(r,'"? All users will be removed from this role.'),function(t){if(t)e.callAsync("dfm.roles.remove",r).then(function(){dfm.toastSuccess('Role "'.concat(r,'" deleted successfully'));n.loadRoles()}).catch(function(e){dfm.toastError(e)})},t.shiftKey)}})},
161"user-permissions-manage.html":function(e,t,n){n.link("./template.user-permissions-manage.js",{"*":"*+"})},
161"template.user-permissions-manage.js":function(){r.__checkName("dfmUserPermissionsManage");r["dfmUserPermissionsManage"]=new r("Template.dfmUserPermissionsManage",function(){var e=this;return v.DIV({class:"card mb-3"},v.Raw('\n    <div class="card-header">\n      <span class="material-symbols-outlined">key</span> Manage permissions\n    </div>\n    '),v.DIV({class:"card-body"},v.Raw("\n\n      <h6>Direct grants</h6>\n      "),b.Each(function(){return g.call(e.lookup("getGrants"))},function(){return["\n        ",v.DIV({class:"d-flex justify-content-between align-items-center border-bottom py-1"},"\n          ",v.SPAN(v.CODE(b.View("lookup:key",function(){return g.mustache(e.lookup("key"))}))," ",v.SPAN({class:"badge bg-dark"},b.View("lookup:scope",function(){return g.mustache(e.lookup("scope"))}))),"\n          ",v.SPAN({class:"material-symbols-outlined text-danger js-revoke","data-key":function(){return g.mustache(e.lookup("key"))},"data-scope":function(){return g.mustache(e.lookup("scopeKey"))},style:"cursor:pointer",title:"Revoke"},"close"),"\n        "),"\n      "]},function(){return v.Raw('\n        <div class="text-muted">No direct grant.</div>\n      ')}),"\n\n      ",v.FORM({id:"form-grant",class:"d-flex gap-2 mt-2"},"\n        ",v.SELECT({class:"form-select form-select-sm",name:"key"},v.Raw('\n          <option value="">— add a direct grant —</option>\n          '),b.Each(function(){return g.call(e.lookup("grantablePermissions"))},function(){return["\n            ",v.OPTION({value:function(){return g.mustache(e.lookup("key"))}},b.View("lookup:key",function(){return g.mustache(e.lookup("key"))})," — ",b.View("lookup:label",function(){return g.mustache(e.lookup("label"))})),"\n          "]}),"\n        "),v.Raw('\n        <button class="btn btn-sm btn-primary" type="submit">Grant</button>\n      ')),v.Raw("\n\n      <hr>\n\n      <h6>Group membership</h6>\n      "),b.Each(function(){return g.call(e.lookup("getGroups"))},function(){return["\n        ",v.DIV({class:"form-check"},"\n          ",v.INPUT({class:"form-check-input js-toggle-group",type:"checkbox",id:function(){return["grp-",g.mustache(e.lookup("_id"))]},"data-id":function(){return g.mustache(e.lookup("_id"))},checked:function(){return g.mustache(e.lookup("isMember"),e.lookup("_id"))}}),"\n          ",v.LABEL({class:"form-check-label",for:function(){return["grp-",g.mustache(e.lookup("_id"))]}},"\n            ",b.View("lookup:name",function(){return g.mustache(e.lookup("name"))})," ",v.SPAN({class:"text-muted small"},"(",b.View("lookup:permList",function(){return g.mustache(e.lookup("permList"))}),")"),"\n          "),"\n        "),"\n      "]},function(){return v.Raw('\n        <div class="text-muted">No group defined.</div>\n      ')}),v.Raw('\n\n      <div class="card-footer text-muted small mt-2 p-2">\n        Changes apply immediately. The \xab Effective permissions \xbb card above refreshes on reload.\n      </div>\n    ')),"\n  ")})},
161"user-permissions-manage.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);var a,s,l;i.link("../../../api/permissions/lib/collections.js",{PermissionGroups:function(e){a=e},UserGroups:function(e){s=e},UserPermissions:function(e){l=e}},1);i.link("./user-permissions-manage.html");function u(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){u(e,t,n[t])})}return e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function d(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else f(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}r.dfmUserPermissionsManage.onCreated(function(){var t=this;this.declared=new o([]);this.subscribe("dfmAllGroups");this.autorun(function(){var e=r.currentData()&&r.currentData().userId;if(e)t.subscribe("dfmUserPermissions",e)});e.callAsync("dfm.permissions.registry").then(function(e){return t.declared.set(e&&e.declared||[])}).catch(function(e){return dfm.toastError(e)})});r.dfmUserPermissionsManage.helpers({getGrants:function(){var e=r.currentData().userId;return l.find({userId:e}).fetch().map(function(e){return{key:e.key,scopeKey:e.scopeKey||"global",scope:e.scopeKey&&"global"!==e.scopeKey?e.scopeKey:"GLOBAL"}})},grantablePermissions:function(){var e=r.currentData().userId;var t=new h(l.find({userId:e}).fetch().map(function(e){return e.key}));return r.instance().declared.get().filter(function(e){return!t.has(e.key)})},getGroups:function(){return a.find({},{sort:{name:1}}).fetch().map(function(e){return d(c({},e),{permList:(e.permissions||[]).map(function(e){return e.key}).join(", ")||"—"})})},isMember:function(e){var t=r.currentData().userId;return!!s.findOne({userId:t,groupId:e})}});r.dfmUserPermissionsManage.events({"submit #form-grant":function(t,n){t.preventDefault();var r=t.target.key.value;if(!r)return;var i=n.data.userId;e.callAsync("dfm.permissions.grant",i,r,"global").then(function(){dfm.toastSuccess("Granted");t.target.reset()}).catch(function(e){return dfm.toastError(e)})},"click .js-revoke":function(t,n){var r=t.currentTarget.dataset.key;var i=t.currentTarget.dataset.scope||"global";var o=n.data.userId;e.callAsync("dfm.permissions.revoke",o,r,i).then(function(){return dfm.toastSuccess("Revoked")}).catch(function(e){return dfm.toastError(e)})},"change .js-toggle-group":function(t,n){var r=t.currentTarget.dataset.id;var i=n.data.userId;var o=t.currentTarget.checked?"dfm.permissions.user.addToGroup":"dfm.permissions.user.removeFromGroup";e.callAsync(o,i,r).then(function(){return dfm.toastSuccess("Membership updated")}).catch(function(e){dfm.toastError(e);t.currentTarget.checked=!t.currentTarget.checked})}})},
161"users-edit.html":function(e,t,n){n.link("./template.users-edit.js",{"*":"*+"})},
161"template.users-edit.js":function(){r.__checkName("webmasterUsersEdit");r["webmasterUsersEdit"]=new r("Template.webmasterUsersEdit",function(){var e=this;return v.DIV({id:"webmaster-users-edit",class:"mt-5"},v.Raw("\n    <h2>User edit</h2>\n\n    "),v.DIV({class:"m-4"},"\n      ",v.DIV({class:"card mb-3"},"\n        ",v.DIV({class:"card-body"},"\n          ",v.FORM({id:"form-input",class:"mt-5"},"\n            ",v.DIV({class:"mb-3"},v.Raw("\n              <label>email</label>\n              "),v.INPUT({name:"emails.0.address",class:"form-control",value:function(){return g.mustache(g.dot(e.lookup("emails"),"0","address"))}}),"\n            "),"\n\n            ",v.DIV({class:"mb-3"},v.Raw("\n              <label>language</label>\n              "),v.INPUT({name:"profile.language",class:"form-control",value:function(){return g.mustache(g.dot(e.lookup("profile"),"language"))}}),"\n            "),"\n\n            ",v.DIV({class:"mb-3"},v.Raw("\n              <label>firstName</label>\n              "),v.INPUT({name:"profile.firstName",class:"form-control",value:function(){return g.mustache(g.dot(e.lookup("profile"),"firstName"))}}),"\n            "),"\n\n            ",v.DIV({class:"mb-3"},v.Raw("\n              <label>lastName</label>\n              "),v.INPUT({name:"profile.lastName",class:"form-control",value:function(){return g.mustache(g.dot(e.lookup("profile"),"lastName"))}}),"\n            "),"\n\n            ",v.DIV({class:"mb-3"},"\n              ",v.SELECT({id:"roles",name:"roles",multiple:"",style:"width: 100%"},"\n                ",b.Each(function(){return g.call(e.lookup("roles"))},function(){return["\n                  ",g.With(function(){return{parent:g.call(e.lookup("..")),context:g.call(e.lookup("."))}},function(){return["\n                    ",v.OPTION(v.Attrs({value:function(){return g.mustache(g.dot(e.lookup("context"),"_id"))}},function(){return g.attrMustache(e.lookup("selected"))}),b.View("lookup:context._id",function(){return g.mustache(g.dot(e.lookup("context"),"_id"))})),"\n                  "]}),"\n                "]}),"\n              "),"\n            "),v.Raw('\n            <button class="btn btn-primary">save</button>\n          ')),"\n        "),"\n      "),"\n\n      ",b._TemplateWith(function(){return{userId:g.call(e.lookup("_id"))}},function(){return g.include(e.lookupTemplate("dfmUserEffectivePermissions"))}),"\n\n      ",b.If(function(){return g.call(e.lookup("canManagePermissions"))},function(){return["\n        ",b._TemplateWith(function(){return{userId:g.call(e.lookup("_id"))}},function(){return g.include(e.lookupTemplate("dfmUserPermissionsManage"))}),"\n      "]}),v.Raw('\n\n      <div class="card mb-3">\n        <div class="card-body">\n          <form id="password-change" class="mt-5">\n            <div class="mb-3">\n              <label>to change the password</label>\n              <input name="password" class="form-control" value="" placeholder="new password">\n            </div>\n\n            <button class="btn btn-danger">save</button>\n          </form>\n        </div>\n      </div>\n\n      '),v.DIV({class:"card mb-3"},"\n        ",v.DIV({class:"card-body"},v.Raw('\n          <h2 class="mt-5">EDITION JSON</h2>\n          '),v.FORM({id:"form-json"},"\n            ",v.DIV({class:"mt-5 mb-3"},"\n              ",v.TEXTAREA({name:"json",class:"form-control",rows:"100",value:function(){return g.mustache(e.lookup("JSONstringifyPre"),e.lookup("."))}}),"\n            "),v.Raw('\n            <button class="btn btn-danger">save</button>\n          ')),"\n        "),"\n      "),"\n    "),"\n  ")})},
161"users-edit.js":function(t,n,i){i.link("./users-edit.html");i.link("./effective-permissions.js");i.link("./user-permissions-manage.js");r.webmasterUsersEdit.onCreated(function(){});r.webmasterUsersEdit.onRendered(function(){$("#roles").select2({tags:true,tokenSeparators:[","," "],placeholder:"Select a role",allowClear:true})});r.webmasterUsersEdit.helpers({roles:function(){if(dfm.isWebmaster())return c.getAllRoles().fetch();return e.roles.find({name:{$ne:"webmaster"}},{sort:{name:1}})},selected:function(){return c.getRolesForUser(this.parent._id).includes(this.context._id)?"selected":""}});r.webmasterUsersEdit.events({"submit #form-input":function(t,n){t.preventDefault();var r=dfm.serialize(t.currentTarget);log(r);e.callAsync("dfm.users.edit.byWebmaster",this._id,r).then(function(){a.go("webmasterUsers")}).catch(function(e){dfm.toastError(e)})},"submit #password-change":function(t,n){t.preventDefault();var r=n.$(t.currentTarget).serializeJSON();e.callAsync("dfm.users.change.password.byWebmaster",this._id,r.password).then(function(){a.go("webmasterUsers")}).catch(function(e){dfm.toastError(e)})},"submit #form-json":function(t,n){var r,i;t.preventDefault();var o=n.$(t.currentTarget).serializeJSON();var s=JSON.parse(o.json);delete s["_id"];if(s.createdAt)s.createdAt=new Date(s.createdAt);if(null==(i=s.status)?void 0:null==(r=i.lastLogin)?void 0:r.date)s.status.lastLogin.date=new Date(s.status.lastLogin.date);e.callAsync("dfm.users.edit.byWebmaster",this._id,s).then(function(){a.go("webmasterUsers")}).catch(function(e){dfm.toastError(e)})},"click .cancel":function(e,t){a.go("webmasterUsers")}})},
161"users.html":function(e,t,n){n.link("./template.users.js",{"*":"*+"})},
161"template.users.js":function(){r.__checkName("webmasterUsers");r["webmasterUsers"]=new r("Template.webmasterUsers",function(){var e=this;return[v.Raw('<h1><span class="material-symbols-outlined">groups</span> users</h1>\n  '),b._TemplateWith(function(){return g.call(e.lookup("breadcrumbLinks"))},function(){return g.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n  ",b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n    ",g.include(e.lookupTemplate("onlyWebmaster")),"\n    ",g.include(e.lookupTemplate("webmasterUsersConnections")),"\n  "]}),v.Raw("\n  \x3c!-- DfmUsers --\x3e\n  "),v.H3({id:"users"},g.With(function(){return g.call(e.lookup("totalUserCount"))},function(){return v.SPAN({class:"float-end badge rounded-pill bg-primary"},b.View("lookup:.",function(){return g.mustache(e.lookup("."))})," total")}),g.With(function(){return g.call(e.lookup("getUsersOnline"))},function(){return v.SPAN({class:"float-end badge rounded-pill bg-primary"},b.View("lookup:.",function(){return g.mustache(e.lookup("."))})," online")})),"\n  ",v.DIV({class:"mb-3"},"\n    filter by roles ",b.Each(function(){return g.call(e.lookup("getAllRoles"))},function(){return[" ",v.A({href:"",class:function(){return["badge ",g.mustache(e.lookup("isFilterByThisRole"))," js-filter-by-role"]}}," ",b.View("lookup:_id",function(){return g.mustache(e.lookup("_id"))}))]}),"\n  "),v.Raw("\n\n  \x3c!-- Header sticky --\x3e\n  "),v.DIV({class:"virtual-list-header"},"\n    ",v.DIV({class:"virtual-row header"},v.Raw('\n      <div class="virtual-cell" style="width:30px;"></div>\n      '),v.DIV({class:"virtual-cell virtual-cell-name"},b._TemplateWith(function(){return{name:g.call("webmasterUsers"),orderBy:g.call("name"),title:g.call("name")}},function(){return g.include(e.lookupTemplate("orderBy"))})),v.Raw('\n      <div class="virtual-cell" style="width:70px;">service</div>\n      <div class="virtual-cell" style="width:70px;">ua</div>\n      '),v.DIV({class:"virtual-cell virtual-cell-email"},b._TemplateWith(function(){return{name:g.call("webmasterUsers"),orderBy:g.call("email"),title:g.call("email")}},function(){return g.include(e.lookupTemplate("orderBy"))})),v.Raw('\n      <div class="virtual-cell virtual-cell-route">Route</div>\n      <div class="virtual-cell" style="width:130px;">ip</div>\n      <div class="virtual-cell" style="width:100px;">ScreenSize</div>\n      <div class="virtual-cell" style="width:90px;">down</div>\n      <div class="virtual-cell" style="width:120px;">roles</div>\n      <div class="virtual-cell" style="width:70px;">Language</div>\n      '),v.DIV({class:"virtual-cell",style:"width:140px;"},b._TemplateWith(function(){return{name:g.call("webmasterUsers"),orderBy:g.call("dfm.userStatus.onLogin"),title:g.call("login/logout"),default:g.call(true)}},function(){return g.include(e.lookupTemplate("orderBy"))})),"\n      ",v.DIV({class:"virtual-cell",style:"width:140px;"},b._TemplateWith(function(){return{name:g.call("webmasterUsers"),orderBy:g.call("createdAt"),title:g.call("created at")}},function(){return g.include(e.lookupTemplate("orderBy"))})),v.Raw('\n      <div class="virtual-cell" style="width:40px;"></div>\n      <div class="virtual-cell" style="width:110px;"></div>\n    ')),"\n  "),v.Raw("\n\n  \x3c!-- Virtual scrolling container --\x3e\n  "),v.DIV({class:"infinite-scroll virtual-list-container",style:function(){return["height:",g.mustache(e.lookup("wrapperHeight")),"px; position:relative;"]}},"\n    ",b.Each(function(){return g.call(e.lookup("getUsers"))},function(){return["\n      ",v.DIV({id:function(){return["user_",g.mustache(e.lookup("_id"))]},class:function(){return["virtual-row ",g.mustache(e.lookup("isUserUsed"))]},style:function(){return["position:absolute; top:0; left:0; right:0; height:",g.mustache(e.lookup("itemHeight")),"px; transform:translateY(",g.mustache(e.lookup("itemTranslate")),"px);"]}},"\n        ",v.DIV({class:"virtual-cell",style:"width:30px;"},v.IMG({src:function(){return g.mustache(e.lookup("getUserAvatar"),g.dot(e.lookup("profile"),"avatar"))},width:"20",loading:"lazy",decoding:"async"})),"\n        ",v.DIV({class:"virtual-cell virtual-cell-name",title:function(){return g.mustache(g.dot(e.lookup("_precomputed"),"fullname"))}},v.A({href:function(){return g.mustache(e.lookup("pathFor"),"webmasterUsersEdit",g.kw({userId:e.lookup("_id")}))},class:function(){return g.mustache(g.dot(e.lookup("_precomputed"),"statusClass"))}},b.View("lookup:_precomputed.fullname",function(){return g.mustache(g.dot(e.lookup("_precomputed"),"fullname"))}))),"\n        ",v.DIV({class:"virtual-cell",style:"width:70px;"},"\n          ",g.With(function(){return g.call(g.dot(e.lookup("_precomputed"),"authIcon"))},function(){return["\n            ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("."),"anonymous")},function(){return[b._TemplateWith(function(){return{str:g.call("anonymous"),placement:g.call("top")}},function(){return g.include(e.lookupTemplate("dfmTooltip"))}),v.Raw('<img src="/packages/davidfm_core/assets/img/spy-g.png" width="24" loading="lazy" decoding="async">')]}),"\n            ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("."),"password")},function(){return[b._TemplateWith(function(){return{str:g.call("password"),placement:g.call("top")}},function(){return g.include(e.lookupTemplate("dfmTooltip"))}),v.Raw('<span class="material-symbols-outlined">password</span>')]}),"\n            ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("."),"google")},function(){return[b._TemplateWith(function(){return{str:g.call("google"),placement:g.call("top")}},function(){return g.include(e.lookupTemplate("dfmTooltip"))}),v.Raw('<img src="/packages/davidfm_core/assets/img/google_icon_130924.png" width="24" loading="lazy" decoding="async">')]}),"\n            ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("."),"linkedin")},function(){return[b._TemplateWith(function(){return{str:g.call("linkedin"),placement:g.call("top")}},function(){return g.include(e.lookupTemplate("dfmTooltip"))}),v.Raw('<img src="/packages/davidfm_core/assets/img/linkedin_icon_130888.png" width="24" loading="lazy" decoding="async">')]}),"\n          "]}),"\n        "),"\n        ",v.DIV({class:"virtual-cell",style:"width:70px;",title:function(){return g.mustache(g.dot(e.lookup("_precomputed"),"uaTitle"))}},"\n          ",g.With(function(){return g.call(g.dot(e.lookup("_precomputed"),"osIcon"))},function(){return v.IMG({src:function(){return g.mustache(e.lookup("src"))},width:"24",title:function(){return g.mustache(e.lookup("label"))},alt:function(){return g.mustache(e.lookup("label"))},loading:"lazy",decoding:"async"})}),"\n          ",g.With(function(){return g.call(g.dot(e.lookup("_precomputed"),"browserIcon"))},function(){return v.IMG({src:function(){return g.mustache(e.lookup("src"))},width:"24",title:function(){return g.mustache(e.lookup("label"))},alt:function(){return g.mustache(e.lookup("label"))},loading:"lazy",decoding:"async"})}),"\n          ",b.If(function(){return g.call(g.dot(e.lookup("infos"),"iframe"))},function(){return v.Raw('<span class="material-symbols-outlined" title="iframe">integration_instructions</span>')}),"\n        "),"\n        ",v.DIV({class:"virtual-cell virtual-cell-email",title:function(){return g.mustache(g.dot(e.lookup("_precomputed"),"email"))}},b.View("lookup:_precomputed.email",function(){return g.mustache(g.dot(e.lookup("_precomputed"),"email"))})),"\n        ",v.DIV({class:"virtual-cell virtual-cell-route",title:function(){return g.mustache(g.dot(e.lookup("_precomputed"),"routeTitle"))}},b.If(function(){return g.call(g.dot(e.lookup("infos"),"route"))},function(){return v.A({href:function(){return[g.mustache(g.dot(e.lookup("infos"),"route","hostnameFull")),g.mustache(g.dot(e.lookup("infos"),"route","url"))]}},b.View("lookup:infos.route.hostname",function(){return g.mustache(g.dot(e.lookup("infos"),"route","hostname"))})," > ",b.View("lookup:infos.route.name",function(){return g.mustache(g.dot(e.lookup("infos"),"route","name"))}))})),"\n        ",v.DIV({class:"virtual-cell",style:"width:130px;"},b.View("lookup:infos.ip",function(){return g.mustache(g.dot(e.lookup("infos"),"ip"))})),"\n        ",v.DIV({class:"virtual-cell",style:"width:100px;"},b.If(function(){return g.call(g.dot(e.lookup("infos"),"screen","width"))},function(){return[b.View("lookup:infos.screen.width",function(){return g.mustache(g.dot(e.lookup("infos"),"screen","width"))}),"x",b.View("lookup:infos.screen.height",function(){return g.mustache(g.dot(e.lookup("infos"),"screen","height"))})]})),"\n        ",v.DIV({class:"virtual-cell",style:"width:90px;"},b.If(function(){return g.call(g.dot(e.lookup("infos"),"connection","down"))},function(){return[b.View("lookup:infos.connection.down",function(){return g.mustache(g.dot(e.lookup("infos"),"connection","down"))}),"Mb/s"]})),"\n        ",v.DIV({class:"virtual-cell virtual-cell-roles",style:"width:120px;"},"\n          ",b.Each(function(){return g.call(g.dot(e.lookup("_precomputed"),"roleBadges"))},function(){return[v.SPAN({class:function(){return["badge bg-",g.mustache(e.lookup("c
161olor"))]}},b.View("lookup:name",function(){return g.mustache(e.lookup("name"))}))," "]}),"\n        "),"\n        ",v.DIV({class:"virtual-cell",style:"width:70px;"},b.View("lookup:getUserLanguage",function(){return g.mustache(e.lookup("getUserLanguage"),e.lookup("."))})),"\n        ",v.DIV({class:"virtual-cell",style:"width:140px;"},"\n          ",v.DIV(b.View("lookup:_precomputed.loginDate",function(){return g.mustache(g.dot(e.lookup("_precomputed"),"loginDate"))})),"\n          ",b.If(function(){return g.call(e.lookup("showLogoutTime"))},function(){return["\n            ",v.DIV({class:"text-muted"},b.View("lookup:_precomputed.logoutDate",function(){return g.mustache(g.dot(e.lookup("_precomputed"),"logoutDate"))})),"\n          "]}),"\n        "),"\n        ",v.DIV({class:"virtual-cell",style:"width:140px;"},b.View("lookup:_precomputed.createdDate",function(){return g.mustache(g.dot(e.lookup("_precomputed"),"createdDate"))})),"\n        ",v.DIV({class:"virtual-cell",style:"width:40px;"},"\n          ",b.Unless(function(){return g.dataMustache(e.lookup("isWebmaster"),e.lookup("_id"))},function(){return["\n            ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("isImpersonating"),e.lookup("_id"))},function(){return v.Raw('\n              <a href="" title="unimpersonate" data-unimpersonate=""><span class="text-success material-icons">supervisor_account</span></a>\n            ')},function(){return["\n              ",b.If(function(){return g.dataMustache(e.lookup("dfmIsAlreadyImpersonated"),e.lookup("_id"))},function(){return v.Raw('\n                <span class="text-danger material-icons" title="already impersonated">supervisor_account</span>\n              ')},function(){return["\n                ",v.A({href:"",title:"impersonate","data-impersonate":function(){return g.mustache(e.lookup("_id"))}},v.Raw('<span class="material-symbols-outlined">supervisor_account</span>')),"\n              "]}),"\n            "]}),"\n          "]}),"\n        "),"\n        ",v.DIV({class:"virtual-cell",style:"width:110px; text-align:right;"},"\n          ",v.A({href:function(){return g.mustache(e.lookup("pathFor"),"webmasterUsersEdit",g.kw({userId:e.lookup("_id")}))},class:"btn btn-xs btn-warning"},v.Raw('<span class="material-symbols-outlined">edit</span>')),v.Raw('\n          <a href="" class="btn btn-xs btn-danger js-remove"><span class="material-symbols-outlined">delete</span></a>\n        ')),"\n      "),"\n    "]}),"\n  ")]})},
161"users.js":function(e,t,n){var i;n.link("meteor/meteor",{Meteor:function(e){i=e}},0);var o;n.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},1);var s;n.link("meteor/roles",{Roles:function(e){s=e}},2);n.link("meteor/davidfm:core/api/accounts/client/collections.js",{DfmUsersVirtuals:function(e){}},3);n.link("meteor/davidfm:core/api/user-search/client/dfm-user-search.js");n.link("meteor/davidfm:core/api/breadcrumb/client/main.js");n.link("./usersConnections.js");n.link("./users.html");n.link("./users.less");var l;n.link("meteor/davidfm:core/client/admin-users-list-controller.js",{setupAdminUsersList:function(e){l=e}},4);var u=3e4;l("webmasterUsers",{sessionKey:"webmasterUsers",itemHeight:90,computeRoles:true});r.webmasterUsers.onCreated(function(){var e=this;this.onlineUsers=new o(0);var t=function(){i.callAsync("dfm.users.online.count.byAdmin").then(function(t){return e.onlineUsers.set(t)}).catch(function(){})};t();this._onlineInterval=setInterval(t,u)});r.webmasterUsers.onDestroyed(function(){if(this._onlineInterval)clearInterval(this._onlineInterval)});r.webmasterUsers.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:a.path("home"),class:"",title:'<span class="material-symbols-outlined">cottage</span>'},{title:"Users"}])},getUsersOnline:function(){return r.instance().onlineUsers.get()},getUserRoles:function(){var e;if(null==(e=this._precomputed)?void 0:e.roles)return this._precomputed.roles;if(Array.isArray(this._roles))return this._roles;return s.getRolesForUser(this._id)},isUserUsed:function(){return this.used?"used":""},isFilterByThisRole:function(){var e=r.instance().filterByRoleReact.get();if(!e||!e.includes(this._id))return"bg-secondary text-light";if(e.includes("webmaster"))return"bg-secondary text-light";if(e.includes("superAdmin")||e.includes("admin"))return"bg-danger text-light";if(e.includes("host"))return"bg-success text-light";if(e.includes("interpreter"))return"bg-warning text-dark";if(e.includes("technician"))return"bg-primary text-light";return"bg-secondary text-light"},getAllRoles:function(){return i.roles.find({_id:{$ne:"webmaster"}},{sort:{_id:1}})},showLogoutTime:function(){var e,t,n,r,i;return(null==(n=this.dfm)?void 0:null==(t=n.userStatus)?void 0:null==(e=t.connection)?void 0:e.onClose)>(null==(i=this.dfm)?void 0:null==(r=i.userStatus)?void 0:r.onLogin)}});r.webmasterUsers.events({"click .js-remove":function(e){e.preventDefault();var t=this;dfm.confirm("delete this user?",function(e){if(!e)return;i.callAsync("users.remove.byAdmin",t._id).then(function(){return dfm.toastSuccess("User deleted")}).catch(function(e){return dfm.toastError(e.message)})},e.shiftKey)},"click .js-filter-by-role":function(e,t){e.preventDefault();t.state.incrementEpoch();t.nbUsers.set(0);var n=t.filterByRoleReact.get();if(n&&n.includes(this._id))t.filterByRoleReact.set(null);else t.filterByRoleReact.set([this._id])}})},
161"users.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".virtual-list-header{background:var(--bs-body-bg,#fff);border-bottom:2px solid var(--bs-border-color,#dee2e6);position:sticky;top:0;z-index:10}.virtual-list-header .virtual-row.header .virtual-cell{background-color:var(--admin-color-one);color:#fff;height:50px;padding:10px}.virtual-row{align-items:center;background:var(--bs-body-bg,#fff);border-bottom:1px solid var(--bs-border-color,#dee2e6);display:flex;padding:8px 4px}.virtual-row.header{font-weight:700}.virtual-row.header,.virtual-row:hover:not(.header){background:var(--bs-tertiary-bg,#f8f9fa)}.virtual-row.used{opacity:.5}.virtual-cell{overflow:hidden;padding:0 4px;text-overflow:ellipsis;white-space:nowrap}.virtual-cell.virtual-cell-name{flex:1 1 0;max-width:300px;min-width:150px}.virtual-cell.virtual-cell-email{flex:1.2 1 0;min-width:180px}.virtual-cell.virtual-cell-route{flex:1 1 0;min-width:140px}.virtual-cell.virtual-cell-roles{max-height:90px;overflow-x:hidden;overflow-y:auto;white-space:normal}.virtual-list-container{overflow:visible}")},
161"usersConnections.html":function(e,t,n){n.link("./template.usersConnections.js",{"*":"*+"})},
161"template.usersConnections.js":function(){r.__checkName("webmasterUsersConnections");r["webmasterUsersConnections"]=new r("Template.webmasterUsersConnections",function(){var e=this;return[v.Raw("\x3c!-- DfmConnections --\x3e\n    "),g.With(function(){return g.call(e.lookup("getConnections"))},function(){return["\n        ",v.H3({id:"connections"},v.Raw('Connections <small class="text-black-50">(max 100)</small>'),g.With(function(){return g.dataMustache(e.lookup("getUsersConnections"),g.kw({count:true}))},function(){return v.SPAN({class:"float-end badge rounded-pill bg-info"},b.View("lookup:.",function(){return g.mustache(e.lookup("."))})," connection(s) unique(s)")})),"\n        ",v.TABLE({class:"table table-hover table-striped mb-5"},"\n            ",v.THEAD("\n                ",v.TR(v.Raw("\n                    \x3c!-- <th>connectionId</th> --\x3e\n                    <th></th>\n                    <th>route</th>\n                    <th>ipAddr / idInstance</th>\n                    <th>userAgent</th>\n                    "),v.TH({width:"170"},g.include(e.lookupTemplate("orderBy"))," connectedAt"),v.Raw('\n                    <th width="60"></th>\n                ')),"\n            "),"\n            ",v.TBODY("\n                ",b.Each(function(){return g.call(e.lookup("."))},function(){return["\n                    ",v.TR({title:function(){return g.mustache(e.lookup("JSONstringify"),e.lookup("custom"))}},v.Raw('\n                        \x3c!-- <td><a href="{{pathForLogs connectionId=id}}" target="_blank">logs ({{id}})</a></td> --\x3e\n                        '),v.TD(b._TemplateWith(function(){return{userId:g.call(g.dot(e.lookup("custom"),"userId"))}},function(){return g.include(e.lookupTemplate("webmasterUsersConnectionUser"))})),"\n                        ",v.TD(b.View("lookup:custom.appName",function(){return g.mustache(g.dot(e.lookup("custom"),"appName"))})," ",g.With(function(){return g.call(g.dot(e.lookup("custom"),"route"))},function(){return v.A({href:function(){return[g.mustache(e.lookup("hostnameFull")),g.mustache(e.lookup("url"))]}}," > ",b.View("lookup:name",function(){return g.mustache(e.lookup("name"))}))})),"\n                        ",v.TD(b.View("lookup:httpHeaders.x-forwarded-for",function(){return g.mustache(g.dot(e.lookup("httpHeaders"),"x-forwarded-for"))})," ",b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return[v.Raw("<br>"),v.SPAN({class:"text-danger"},b.View("lookup:instanceId",function(){return g.mustache(e.lookup("instanceId"))}))]})),"\n                        ",v.TD(g.With(function(){return g.call(g.dot(e.lookup("custom"),"ua"))},function(){return[b._TemplateWith(function(){return{str:g.call(g.dataMustache(e.lookup("JSONstringify"),e.lookup("net"))),placement:g.call("left")}},function(){return g.include(e.lookupTemplate("dfmTooltip"))}),v.Raw('<span class="material-symbols-outlined">info</span> '),v.SPAN({title:function(){return g.mustache(e.lookup("JSONstringify"),e.lookup("."))}},b.View("lookup:net.platformStr",function(){return g.mustache(g.dot(e.lookup("net"),"platformStr"))})," ",b.View("lookup:net.browserStr",function(){return g.mustache(g.dot(e.lookup("net"),"browserStr"))})," ",b.If(function(){return g.call(g.dot(e.lookup("net"),"mobile"))},function(){return[v.Raw('<span class="material-icons" title="smartphone">smartphone</span>'),b.If(function(){return g.call(g.dot(e.lookup("net"),"webApp"))},function(){return v.Raw(' <span class="material-icons" title="webApp mobile">install_mobile</span>')})]},function(){return b.If(function(){return g.call(g.dot(e.lookup("net"),"webApp"))},function(){return v.Raw('<span class="material-icons" title="webApp desktop">install_desktop</span>')})})," ")]},function(){return b.If(function(){return g.call(e.lookup("httpHeadersUserAgent"))},function(){return b.View("lookup:httpHeadersUserAgent",function(){return g.mustache(e.lookup("httpHeadersUserAgent"))})},function(){return v.SPAN({title:function(){return g.mustache(e.lookup("JSONstringify"),e.lookup("."))}},"!ua")})})),"\n                        ",v.TD(b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),e.lookup("c
161onnectedAt"),"tinyFull")})),v.Raw('\n                        <td><a class="btn btn-xs btn-danger js-connection-remove"><span class="material-symbols-outlined">delete</span></a></td>\n                    ')),"\n                "]}),"\n            "),"\n        "),"\n    "]})]});r.__checkName("webmasterUsersConnectionUser");r["webmasterUsersConnectionUser"]=new r("Template.webmasterUsersConnectionUser",function(){var e=this;return g.With(function(){return g.dataMustache(e.lookup("getUser"),e.lookup("userId"))},function(){return["\n        ",v.A({href:function(){return g.mustache(e.lookup("pathFor"),"webmasterUsersEdit",g.kw({userId:e.lookup("_id")}))},class:function(){return g.mustache(e.lookup("getUserStatusClass"),g.kw({userId:e.lookup("_id")}))},title:function(){return g.mustache(e.lookup("JSONstringify"),e.lookup("infos"))}},b.View("lookup:getUserFullname",function(){return g.mustache(e.lookup("getUserFullname"),e.lookup("_id"))})),"\n    "]})})},
161"usersConnections.js":function(e,t,n){var i;n.link("meteor/davidfm:core/api/accounts/lib/collections.js",{default:function(e){i=e}},0);n.link("./usersConnections.html");r.webmasterUsersConnections.onCreated(function(){this.subscribe("dfmConnections")});r.webmasterUsersConnections.onRendered(function(){});r.webmasterUsersConnections.onDestroyed(function(){});r.webmasterUsersConnections.helpers({getConnections:function(){return i.find({},{sort:{loginTime:1}})},httpHeadersUserAgent:function(){var e;return null==(e=this.httpHeaders)?void 0:e["user-agent"]}});r.webmasterUsersConnections.events({});r.webmasterUsersConnectionUser.onCreated(function(){var e=this;var t=new ReactiveVar;this.autorun(function(e){var n=r.currentData().userId;if(n){t.set(n);e.stop()}});this.autorun(function(n){if(t.get())e.subscribe("dfmAdminUser",t.get(),{onReady:function(){},onError:function(e){log(e)}})})});r.webmasterUsersConnectionUser.helpers({})},dashboard:{
161"dashboard.html":function(e,t,n){n.link("./template.dashboard.js",{"*":"*+"})},
161"template.dashboard.js":function(){r.__checkName("webmasterDashboard");r["webmasterDashboard"]=new r("Template.webmasterDashboard",function(){var e=this;return v.DIV({id:"webmaster-dashboard"},v.Raw('\n    <h1><span class="material-symbols-outlined">dashboard</span> Dashboard</h1>\n    '),b._TemplateWith(function(){return g.call(e.lookup("breadcrumbLinks"))},function(){return g.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n    ",v.DIV({class:"row"},"\n      ",v.DIV({class:"col"},"\n        ",v.DIV({class:"card mt-5"},v.Raw('\n          <div class="card-header"> Infos server</div>\n          '),v.DIV({class:"card-body"},"\n            ",v.DIV("Meteor version : ",b.View("lookup:meteorVersion",function(){return g.mustache(e.lookup("meteorVersion"))})),"\n            ",v.DIV("server time : ",b.View("lookup:getServerTime",function(){return g.mustache(e.lookup("getServerTime"))}),v.Raw(' <a class="btn btn-primary js-get-server-time">get serverTime</a>')),"\n            ",v.DIV("GA 4 : ",b.View("lookup:ga4",function(){return g.mustache(e.lookup("ga4"))})),"\n          "),"\n        "),"\n      "),"\n      ",v.DIV({class:"col"},"\n        ",v.DIV({class:"card mt-5"},v.Raw('\n          <div class="card-header"> Infos user</div>\n          '),v.DIV({class:"card-body"},"\n            ",v.DIV("My connection : ",g.With(function(){return g.call(e.lookup("dfmConnectionStats"))},function(){return[v.SPAN("(down ",b.View("lookup:down",function(){return g.mustache(e.lookup("down"))})," Mb/s)")," ",v.SPAN("(type ",b.View("lookup:type",function(){return g.mustache(e.lookup("type"))}),")")," ",v.SPAN("(rtt (ping) ",b.View("lookup:rtt",function(){return g.mustache(e.lookup("rtt"))}),")")]})),"\n          "),"\n        "),"\n      "),"\n    "),"\n    ",v.DIV({class:"card mt-5"},v.Raw('\n      <div class="card-header"><span class="float-end clickable js-set-instance-default">set my instance as default</span> Instances</div>\n      '),v.DIV({class:"card-body"},"\n        ",v.TABLE({class:"table table-hover table-striped"},"\n          ",v.THEAD("\n            ",v.TR(v.Raw("\n              <th></th>\n              "),v.TH(b._TemplateWith(function(){return{name:g.call("webmasterDashboard"),orderBy:g.call("appName"),title:g.call("appName")}},function(){return g.include(e.lookupTemplate("orderBy"))})),"\n              ",v.TH(b._TemplateWith(function(){return{name:g.call("webmasterDashboard"),orderBy:g.call("release"),title:g.call("release")}},function(){return g.include(e.lookupTemplate("orderBy"))})),"\n              ",v.TH(b._TemplateWith(function(){return{name:g.call("webmasterDashboard"),orderBy:g.call("coreVersion"),title:g.call("coreVersion")}},function(){return g.include(e.lookupTemplate("orderBy"))})),"\n              ",v.TH(b._TemplateWith(function(){return{name:g.call("webmasterDashboard"),orderBy:g.call("ip"),title:g.call("ip")}},function(){return g.include(e.lookupTemplate("orderBy"))})),"\n              ",v.TH(b._TemplateWith(function(){return{name:g.call("webmasterDashboard"),orderBy:g.call("startedAt"),title:g.call("startedAt"),default:g.call(true)}},function(){return g.include(e.lookupTemplate("orderBy"))})),"\n              ",v.TH(b._TemplateWith(function(){return{name:g.call("webmasterDashboard"),orderBy:g.call("lastPing"),title:g.call("lastPing")}},function(){return g.include(e.lookupTemplate("orderBy"))})),v.Raw('\n              <th></th>\n              <th>users</th>\n              <th> <a class="btn btn-sm btn-danger float-end js-instances-users-fix text-dark"><span class="material-symbols-outlined">bug_report</span></a></th>\n            ')),"\n          "),"\n          ",v.TBODY("\n            ",b.Each(function(){return g.call(e.lookup("instances"))},function(){return["\n              ",v.TR("\n                ",v.TD({class:function(){return g.mustache(e.lookup("isOnline"))}},b.View("lookup:_id",function(){return g.mustache(e.lookup("_id"))})),"\n                ",v.TD({class:function(){return g.mustache(e.lookup("isOnline"))}},b.View("lookup:appName",function(){return g.mustache(e.lookup("appName"))})),"\n                ",v.TD({class:function(){return g.mustache(e.lookup("isOnline"))}},b.View("lookup:release",function(){return g.mustache(e.lookup("release"))})),"\n                ",v.TD({class:function(){return g.mustache(e.lookup("isOnline"))}},b.View("lookup:coreVersion",function(){return g.mustache(e.lookup("c
161oreVersion"))})),"\n                ",v.TD({class:function(){return g.mustache(e.lookup("isOnline"))}},b.View("lookup:ip",function(){return g.mustache(e.lookup("ip"))})),"\n                ",v.TD({class:function(){return g.mustache(e.lookup("isOnline"))}},b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),e.lookup("startedAt"))})),"\n                ",v.TD({class:function(){return g.mustache(e.lookup("isOnline"))}},b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),e.lookup("lastPing"),"shortFullTime3")})),"\n                ",v.TD({class:function(){return g.mustache(e.lookup("isOnline"))}},b.If(function(){return g.call(e.lookup("primary"))},function(){return"primary"})),"\n                ",v.TD({class:function(){return g.mustache(e.lookup("isOnline"))}},b.View("lookup:UsersCount",function(){return g.mustache(e.lookup("UsersCount"))})),"\n                ",v.TD({class:function(){return[g.mustache(e.lookup("isOnline"))," text-end"]}},"\n                  ",b.If(function(){return g.dataMustache(e.lookup("equals"),g.dot(e.lookup("currentUser"),"instanceId"),e.lookup("_id"))},function(){return v.Raw('\n                    <a class="btn btn-sm btn-danger js-instance-users-fix text-dark"><span class="material-symbols-outlined">bug_report</span></a>\n                  ')}),"\n                "),"\n              "),"\n            "]}),"\n          "),"\n        "),"\n      "),"\n    "),"\n\n    ",g.include(e.lookupTemplate("dfmWebmasterTools")),"\n\n    ",v.DIV({class:"card mt-5"},v.Raw('\n      <div class="card-header"> Links</div>\n      '),v.DIV({class:"card-body"},"\n        ",v.DIV(" ",v.A({href:"https://fonts.google.com/icons?icon.set=Material+Icons",target:"_blank"},"\n            ",v.SVG({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 35",width:"40",height:"35",preserveAspectRatio:"xMidYMid meet"},"\n              ",v.DEFS("\n                ",v.CLIPPATH({id:"__lottie_element_41"},"\n                  ",v.RECT({width:"90",height:"35",x:"0",y:"0"}),"\n                "),"\n                ",v.MASK({id:"__lottie_element_56"},"\n                  ",v.PATH({fill:"#ffffff","clip-rule":"nonzero",d:"M0,0  h190 v35 h-190 v-35  M29.062000274658203,-3 C29.062000274658203,-3 14.753000259399414,-3 14.753000259399414,-3 C14.753000259399414,-3 14.753000259399414,29.816999435424805 14.753000259399414,29.816999435424805 C14.753000259399414,29.816999435424805 29.062000274658203,29.816999435424805 29.062000274658203,29.816999435424805 C29.062000274658203,29.816999435424805 29.062000274658203,-3 29.062000274658203,-3","fill-opacity":"1"}),"\n                "),"\n              "),"\n              ",v.G({"clip-path":"url(#__lottie_element_41)"},"\n                ",v.G({mask:"url(#__lottie_element_56)",style:"display: block;",transform:"matrix(1,0,0,1,1.25,5.75)",opacity:"1"},"\n                  ",v.G({opacity:"1",transform:"matrix(1,0,0,1,12,11.75)"},"\n                    ",v.PATH({fill:"rgb(251,188,4)","fill-opacity":"1",d:" M-11.75,11.5 C-11.75,11.5 2.75,-11.5 2.75,-11.5 C2.75,-11.5 11.75,-11.5 11.75,-11.5 C11.75,-11.5 11.75,-8.300000190734863 11.75,-8.300000190734863 C11.75,-8.300000190734863 -0.75,11.5 -0.75,11.5"}),"\n                  "),"\n                "),"\n                ",v.G({style:"display: block;",transform:"matrix(1,0,0,1,15.75,5.75)",opacity:"1"},"\n                  ",v.G({opacity:"1",transform:"matrix(1,0,0,1,4.75,11.75)"},"\n                    ",v.PATH({fill:"rgb(26,115,232)","fill-opacity":"1",d:" M4.5,11.5 C4.5,11.5 -4.5,11.5 -4.5,11.5 C-4.5,11.5 -4.5,-11.5 -4.5,-11.5 C-4.5,-11.5 4.5,-11.5 4.5,-11.5 C4.5,-11.5 4.5,11.5 4.5,11.5z"}),"\n                  "),"\n                "),"\n                ",v.G({style:"display: block;",transform:"matrix(1,0,0,1,24.75,15.75)",opacity:"1"},"\n                  ",v.G({opacity:"1",transform:"matrix(1,0,0,1,3.5,6.75)"},"\n                    ",v.PATH({fill:"rgb(52,168,83)","fill-opacity":"1",d:" M3.25,0 C3.25,3.5899999141693115 0.3400000035762787,6.5 -3.25,6.5 C-3.25,6.5 -3.25,-6.5 -3.25,-6.5 C0.3400000035762787,-6.5 3.25,-3.5899999141693115 3.25,0z"}),"\n                  "),"\n                "),"\n                ",v.G({style:"display: block;
161",transform:"matrix(1,0,0,1,18.25,15.75)",opacity:"1"},"\n                  ",v.G({opacity:"1",transform:"matrix(1,0,0,1,3.5,6.75)"},"\n                    ",v.PATH({fill:"rgb(13,101,45)","fill-opacity":"1",d:" M3.25,6.5 C-0.3400000035762787,6.5 -3.25,3.5899999141693115 -3.25,0 C-3.25,-3.5899999141693115 -0.3400000035762787,-6.5 3.25,-6.5 C3.25,-6.5 3.25,6.5 3.25,6.5z"}),"\n                  "),"\n                "),"\n                ",v.G({style:"display: block;",transform:"matrix(1,0,0,1,24.75,5.75)",opacity:"1"},"\n                  ",v.G({opacity:"1",transform:"matrix(1,0,0,1,2.75,5.25)"},"\n                    ",v.PATH({fill:"rgb(26,115,232)","fill-opacity":"1",d:" M2.5,0 C2.5,2.760999917984009 0.2619999945163727,5 -2.5,5 C-2.5,5 -2.5,-5 -2.5,-5 C0.2619999945163727,-5 2.5,-2.760999917984009 2.5,0z"}),"\n                  "),"\n                "),"\n                ",v.G({style:"display: block;",transform:"matrix(1,0,0,1,19.75,5.75)",opacity:"1"},"\n                  ",v.G({opacity:"1",transform:"matrix(1,0,0,1,2.75,5.25)"},"\n                    ",v.PATH({fill:"rgb(23,78,166)","fill-opacity":"1",d:" M2.5,5 C-0.2619999945163727,5 -2.5,2.760999917984009 -2.5,0 C-2.5,-2.760999917984009 -0.2619999945163727,-5 2.5,-5 C2.5,-5 2.5,5 2.5,5z"}),"\n                  "),"\n                "),"\n                ",v.G({style:"display: block;",transform:"matrix(1,0,0,1,1.75,5.75)",opacity:"1"},"\n                  ",v.G({opacity:"1",transform:"matrix(1,0,0,1,4.75,4.75)"},"\n                    ",v.PATH({fill:"rgb(234,67,53)","fill-opacity":"1",d:" M-4.5,0 C-4.5,-2.484999895095825 -2.484999895095825,-4.5 0,-4.5 C2.484999895095825,-4.5 4.5,-2.484999895095825 4.5,0 C4.5,2.484999895095825 2.484999895095825,4.5 0,4.5 C-2.484999895095825,4.5 -4.5,2.484999895095825 -4.5,0z"}),"\n                  "),"\n                "),"\n              "),"\n            ")," Google fonts\n          "),"\n        "),"\n      "),v.Raw('\n      <div><a href="https://search.google.com/search-console">https://search.google.com/search-console</a></div>\n    ')),"\n  ")})},
161"dashboard.js":function(t,n,i){var o;i.link("meteor/davidfm:core/api/instances/lib/collections.js",{DfmInstances:function(e){o=e}},0);var s;i.link("meteor/davidfm:core/api/accounts/lib/collections.js",{default:function(e){s=e}},1);i.link("meteor/davidfm:core/api/breadcrumb/client/main.js");i.link("./tools.js");i.link("./dashboard.html");var l="webmasterDashboard";function u(e,t){var n=String(e||"0").split(".").map(function(e){return parseInt(e,10)||0});var r=String(t||"0").split(".").map(function(e){return parseInt(e,10)||0});var i=Math.max(n.length,r.length);for(var o=0;o<i;o++){var a=(n[o]||0)-(r[o]||0);if(0!==a)return a}return 0}r.webmasterDashboard.onCreated(function(){var t=this;this.subscribe("dfmInstances");this.subscribe("dfmConnections");this.serverTime=new ReactiveVar;e.callAsync("dfm.getServerTime").then(function(e){t.serverTime.set(e)}).catch(function(e){dfm.toastError(e)})});r.webmasterDashboard.onRendered(function(){});r.webmasterDashboard.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:a.path("home"),class:"",title:'<span class="material-symbols-outlined">cottage</span>'},{link:a.path("adminDashboard"),class:"",title:"Admin"},{class:"",title:"Dashboard"}])},meteorVersion:function(){return e.release},ga4:function(){var t,n,r,i;return(null==(n=e.settings.public)?void 0:null==(t=n.gtm)?void 0:t.id)?null==(i=e.settings.public)?void 0:null==(r=i.gtm)?void 0:r.id:"not set"},instances:function(){var e={};var t=Session.get("sortBy_"+l);var n=Session.get("sortOrder_"+l);if("coreVersion"===t){var r=o.find(e).fetch();r.sort(function(e,t){return u(null==e?void 0:e.coreVersion,null==t?void 0:t.coreVersion)*n});return r}var i={permanentConference:-1};i[t]=n;return o.find(e,{sort:i})},isOnline:function(){return this.lastPing.getTime()>new Date().getTime()-dfm.instancePingTimeout?"bg-success text-white":"bg-warning"},UsersCount:function(){return s.find({"custom.instanceId":this._id}).count()},getServerTime:function(){return r.instance().serverTime.get()}});r.webmasterDashboard.events({"click .js-set-instance-default":function(){e.callAsync("dfm.instances.setDefault").then(function(e){dfm.toastSuccess("success")}).catch(function(e){dfm.toastError(e)})},"click .js-instance-users-fix":function(t){var n=this;t.preventDefault();e.callAsync("dfm.connections.fixByInstance",this._id).then(function(e){dfm.toastSuccess("".concat(e.activesConnectionsLength," connection on this instance ").concat(n._id))}).catch(function(e){dfm.toastError(e)})},"click .js-instances-users-fix":function(t){t.preventDefault();dfm.confirm("Are you sure you want to fix all users connections?",function(t){if(!t)return;e.callAsync("dfm.instances.connectionsCheck").then(function(e){dfm.toastSuccess("All users connections fixed")}).catch(function(e){dfm.logError(JSON.stringify(e))})},t.shiftKey)},"click .js-get-server-time":function(t,n){e.callAsync("dfm.getServerTime").then(function(e){n.serverTime.set(e)}).catch(function(e){dfm.toastError(e)})}})},
161"tools.html":function(e,t,n){n.link("./template.tools.js",{"*":"*+"})},
161"template.tools.js":function(){r.__checkName("dfmWebmasterTools");r["dfmWebmasterTools"]=new r("Template.dfmWebmasterTools",function(){var e=this;return v.DIV({class:"card mt-5 mb-5"},v.Raw('\n    <div class="card-header"> Tools</div>\n    '),v.DIV({class:"card-body"},"\n      ",g.include(e.lookupTemplate("onlySuperAdmin"))," SuperAdmin ",g.include(e.lookupTemplate("adminOnly")),v.Raw(" Admin<br>\n    ")),"\n  ")})},
161"tools.js":function(e,t,n){n.link("./tools.html");r.dfmWebmasterTools.onCreated(function(){});r.dfmWebmasterTools.onRendered(function(){});r.dfmWebmasterTools.onDestroyed(function(){});r.dfmWebmasterTools.helpers({});r.dfmWebmasterTools.events({})}}}}},api:{accounts:{client:{
161"collections.js":function(e,t,n){n.export({DfmUsersVirtuals:function(){return i}});var r;n.link("meteor/mongo",{Mongo:function(e){r=e}},0);var i=new r.Collection("dfm_users_virtuals")},
161"helpers.html":function(e,t,n){n.link("./template.helpers.js",{"*":"*+"})},
161"template.helpers.js":function(){r.__checkName("getUserFullname");r["getUserFullname"]=new r("Template.getUserFullname",function(){var e=this;return b.If(function(){return g.dataMustache(e.lookup("and"),e.lookup("isSuperAdmin"),e.lookup("link"))},function(){return["\n        ",v.A({href:function(){return g.mustache(e.lookup("pathFor"),"adminUser",g.kw({userId:e.lookup("userId")}))},class:function(){return g.mustache(e.lookup("statusClass"))}},b.View("lookup:getUserFullname",function(){return g.mustache(e.lookup("getUserFullname"),e.lookup("userId"))})),"\n    "]},function(){return["\n        ",v.SPAN({class:function(){return g.mustache(e.lookup("statusClass"))}},b.View("lookup:getUserFullname",function(){return g.mustache(e.lookup("getUserFullname"),e.lookup("userId"))})),"\n    "]})})},
161"helpers.js":function(e,t,n){n.link("./helpers.html");r.getUserFullname.helpers({statusClass:function(){if(false===this.status)return"";return dfm.getUserStatusClass({uId:this.userId,showOffile:this.showOffile})}})},
161"main.js":function(e,t,n){n.link("./collections.js");n.link("./helpers.js")}},lib:{
161"collections.js":function(e,t,n){var r=new i.Collection("dfm_connections");n.exportDefault(r)}}},"back-to-top":{client:{
161"back-to-top.html":function(e,t,n){n.link("./template.back-to-top.js",{"*":"*+"})},
161"template.back-to-top.js":function(){r.__checkName("dfmBackToTop");r["dfmBackToTop"]=new r("Template.dfmBackToTop",function(){return v.Raw('<div class="dfm-back-to-top">\n    <a class="btn btn-primary js-back-to-top"><span class="material-symbols-outlined">expand_less</span></a>\n  </div>')})},
161"back-to-top.js":function(e,t,n){n.link("./back-to-top.html");r.dfmBackToTop.onRendered(function(){var e=i(this,true),t=this;this.scrollHandler=(function(){var n=e.scrollTop();if(n>800)t.$(".dfm-back-to-top").fadeIn(400);else t.$(".dfm-back-to-top").fadeOut(400)}).bind(this);e.on("scroll",this.scrollHandler)});r.dfmBackToTop.onDestroyed(function(){i(this,true).off("scroll",this.scrollHandler)});r.dfmBackToTop.events({"click .js-back-to-top":function(e,t){e.preventDefault();i(t).animate({scrollTop:0},"fast")}});var i=function(e,t){if(e.data&&e.data.backToTopTarget)return $(e.data.backToTopTarget);return t?$(window):$("html,body")}},
161"back-to-top.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".dfm-back-to-top{bottom:20px;display:none;position:fixed;right:20px;z-index:9999}")},
161"main.js":function(e,t,n){n.link("./back-to-top.less");n.link("./back-to-top.js")}}},breadcrumb:{client:{
161"breadcrumb.html":function(e,t,n){n.link("./template.breadcrumb.js",{"*":"*+"})},
161"template.breadcrumb.js":function(){r.__checkName("dfmBreadcrumb");r["dfmBreadcrumb"]=new r("Template.dfmBreadcrumb",function(){var e=this;return v.DIV({class:"dfm-breadcrumb"},"\n    ",b.Each(function(){return g.call(e.lookup("."))},function(){return["\n      ",b.If(function(){return g.call(e.lookup("link"))},function(){return["\n        ",v.A({href:function(){return g.mustache(e.lookup("link"))},class:function(){return["text-capitalize ",g.mustache(e.lookup("class"))]}},b.View("lookup:title",function(){return g.makeRaw(g.mustache(e.lookup("title")))})),"\n      "]},function(){return["\n        ",v.A({class:function(){return["text-capitalize no-link ",g.mustache(e.lookup("class"))]}},b.View("lookup:title",function(){return g.makeRaw(g.mustache(e.lookup("title")))})),"\n      "]}),"\n    "]}),"\n  ")})},
161"breadcrumb.js":function(e,t,n){n.link("./breadcrumb.html");r.dfmBreadcrumb.onCreated(function(){});r.dfmBreadcrumb.onRendered(function(){});r.dfmBreadcrumb.helpers({});r.dfmBreadcrumb.events({})},
161"breadcrumb.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".dfm-breadcrumb{align-items:self-start;display:flex;flex-wrap:wrap;list-style:none;margin-bottom:1rem;padding:0}.dfm-breadcrumb a{display:inline-block}.dfm-breadcrumb a.active{color:grey}.dfm-breadcrumb a.breadcrumb-arrow{margin:0 10px}")},
161"main.js":function(e,t,n){n.link("./breadcrumb.less");n.link("./breadcrumb.js")}}},"button-switch":{client:{
161"button-switch.html":function(e,t,n){n.link("./template.button-switch.js",{"*":"*+"})},
161"template.button-switch.js":function(){r.__checkName("dfmButtonSwitch");r["dfmButtonSwitch"]=new r("Template.dfmButtonSwitch",function(){var e=this;return v.LABEL({class:"clickable"},b.View("lookup:text",function(){return g.mustache(e.lookup("text"))})," ",v.BUTTON({class:function(){return["btn btn-switch js-toggle ms-2 btn-xs ",g.mustache(e.lookup("class"))," ",g.mustache(e.lookup("equalsReturn"),e.lookup("value"),true,"active")]}},v.Raw('<span class="handle"></span>')))})},
161"button-switch.js":function(t,n,i){i.link("./button-switch.html");r.dfmButtonSwitch.onCreated(function(){});r.dfmButtonSwitch.onRendered(function(){});r.dfmButtonSwitch.helpers({});r.dfmButtonSwitch.events({"click .js-toggle":function(t,n){e.callAsync(this.methodName,this.methodParams).catch(function(e){dfm.toastError(e)})}})},
161"button-switch.less":function(e,t,n){n.exports=e("meteor/modules").addStyles('.btn.btn-switch,.btn.btn-switch:focus,.btn.btn-switch:hover{background:#bdc1c8;border:none;border-radius:10px!important;border-radius:1.5rem;color:#6b7381;height:1.5rem;margin:0 4rem;padding:0;position:relative;width:3rem}.btn.btn-switch.focus,.btn.btn-switch.focus.active,.btn.btn-switch:focus,.btn.btn-switch:focus.active,.btn.btn-switch:focus.focus,.btn.btn-switch:focus.focus.active,.btn.btn-switch:focus:focus,.btn.btn-switch:focus:focus.active,.btn.btn-switch:hover.focus,.btn.btn-switch:hover.focus.active,.btn.btn-switch:hover:focus,.btn.btn-switch:hover:focus.active{outline:none}.btn.btn-switch:after,.btn.btn-switch:before,.btn.btn-switch:focus:after,.btn.btn-switch:focus:before,.btn.btn-switch:hover:after,.btn.btn-switch:hover:before{bottom:0;font-size:.75rem;font-weight:600;letter-spacing:2px;line-height:1.5rem;position:absolute;text-align:center;text-transform:uppercase;transition:opacity .25s;width:4rem}.btn.btn-switch:before,.btn.btn-switch:focus:before,.btn.btn-switch:hover:before{content:"Off";left:-4rem}.btn.btn-switch:after,.btn.btn-switch:focus:after,.btn.btn-switch:hover:after{content:"On";opacity:.5;right:-4rem}.btn.btn-switch:focus>.handle,.btn.btn-switch:hover>.handle,.btn.btn-switch>.handle{background:#fff;border-radius:1.125rem;height:1.125rem;left:.375rem/2;position:absolute;top:.375rem/2;transition:left .25s;width:1.125rem}.btn.btn-switch.active,.btn.btn-switch:focus.active,.btn.btn-switch:hover.active{transition:background-color .25s}.btn.btn-switch.active>.handle,.btn.btn-switch:focus.active>.handle,.btn.btn-switch:hover.active>.handle{left:1.875rem;transition:left .25s}.btn.btn-switch.active:before,.btn.btn-switch:focus.active:before,.btn.btn-switch:hover.active:before{opacity:.5}.btn.btn-switch.active:after,.btn.btn-switch:focus.active:after,.btn.btn-switch:hover.active:after{opacity:1}.btn.btn-switch.btn-sm:after,.btn.btn-switch.btn-sm:before,.btn.btn-switch:focus.btn-sm:after,.btn.btn-switch:focus.btn-sm:before,.btn.btn-switch:hover.btn-sm:after,.btn.btn-switch:hover.btn-sm:before{color:#fff;left:.4125rem;letter-spacing:.75px;line-height:-.5rem;width:2.325rem}.btn.btn-switch.btn-sm:before,.btn.btn-switch:focus.btn-sm:before,.btn.btn-switch:hover.btn-sm:before{text-align:right}.btn.btn-switch.btn-sm:after,.btn.btn-switch:focus.btn-sm:after,.btn.btn-switch:hover.btn-sm:after{opacity:0;text-align:left}.btn.btn-switch.btn-sm.active:before,.btn.btn-switch:focus.btn-sm.active:before,.btn.btn-switch:hover.btn-sm.active:before{opacity:0}.btn.btn-switch.btn-xs .handle,.btn.btn-switch:focus.btn-xs .handle,.btn.btn-switch:hover.btn-xs .handle{left:2px;top:2px}.btn.btn-switch.btn-xs:after,.btn.btn-switch.btn-xs:before,.btn.btn-switch:focus.btn-xs:after,.btn.btn-switch:focus.btn-xs:before,.btn.btn-switch:hover.btn-xs:after,.btn.btn-switch:hover.btn-xs:before{display:none}.btn.btn-switch.btn-xs.active .handle,.btn.btn-switch:focus.btn-xs.active .handle,.btn.btn-switch:hover.btn-xs.active .handle{left:18px}.btn.btn-switch:after,.btn.btn-switch:before,.btn.btn-switch:focus:after,.btn.btn-switch:focus:before,.btn.btn-switch:hover:after,.btn.btn-switch:hover:before{color:#6b7381}.btn.btn-switch.active,.btn.btn-switch:focus.active,.btn.btn-switch:hover.active{background-color:#29b5a8}.btn.btn-switch.btn-lg,.btn.btn-switch:focus.btn-lg,.btn.btn-switch:hover.btn-lg{border:none;border-radius:2.5rem;height:2.5rem;margin:0 5rem;padding:0;position:relative;width:5rem}.btn.btn-switch.btn-lg.focus,.btn.btn-switch.btn-lg.focus.active,.btn.btn-switch.btn-lg:focus,.btn.btn-switch.btn-lg:focus.active,.btn.btn-switch:focus.btn-lg.focus,.btn.btn-switch:focus.btn-lg.focus.active,.btn.btn-switch:focus.btn-lg:focus,.btn.btn-switch:focus.btn-lg:focus.active,.btn.btn-switch:hover.btn-lg.focus,.btn.btn-switch:hover.btn-lg.focus.active,.btn.btn-switch:hover.btn-lg:focus,.btn.btn-switch:hover.btn-lg:focus.active{outline:none}.btn.btn-switch.btn-lg:after,.btn.btn-switch.btn-lg:before,.btn.btn-switch:focus.btn-lg:after,.btn.btn-switch:focus.btn-lg:before,.btn.btn-switch:hover.btn-lg:after,.btn.btn-switch:hover.btn-lg:before{bottom:0;font-size:1rem;font-weight:600;letter-spacing:2px;line-height:2.5rem;position:absolute;text-align:center;text-transform:uppercase;transition:opacity .25s;width:5rem}.btn.btn-switch.btn-lg:before,.btn.btn-switch:focus.btn-lg:before,.btn.btn-switch:hover.btn-lg:before{content:"Off";left:-5rem}.btn.btn-switch.btn-lg:after,.btn.btn-switch:focus.btn-lg:after,.btn.btn-switch:hover.btn-lg:after{content:"On";opacity:.5;right:-5rem}.btn.btn-switch.btn-lg>.handle,.btn.btn-switch:focus.btn-lg>.handle,.btn.btn-switch:hover.btn-lg>.handle{background:#fff;border-radius:1.875rem;height:1.875rem;left:.625rem/2;position:absolute;top:.625rem/2;transition:left .25s;width:1.875rem}.btn.btn-switch.btn-lg.active,.btn.btn-switch:focus.btn-lg.active,.btn.btn-switch:hover.btn-lg.active{transition:background-color .25s}.btn.btn-switch.btn-lg.active>.handle,.btn.btn-switch:focus.btn-lg.active>.handle,.btn.btn-switch:hover.btn-lg.active>.handle{left:3.125rem;transition:left .25s}.btn.btn-switch.btn-lg.active:before,.btn.btn-switch:focus.btn-lg.active:before,.btn.btn-switch:hover.btn-lg.active:before{opacity:.5}.btn.btn-switch.btn-lg.active:after,.btn.btn-switch:focus.btn-lg.active:after,.btn.btn-switch:hover.btn-lg.active:after{opacity:1}.btn.btn-switch.btn-lg.btn-sm:after,.btn.btn-switch.btn-lg.btn-sm:before,.btn.btn-switch:focus.btn-lg.btn-sm:after,.btn.btn-switch:focus.btn-lg.btn-sm:before,.btn.btn-switch:hover.btn-lg.btn-sm:after,.btn.btn-switch:hover.btn-lg.btn-sm:before{color:#fff;left:.6875rem;letter-spacing:.75px;line-height:.5rem;width:3.875rem}.btn.btn-switch.btn-lg.btn-sm:before,.btn.btn-switch:focus.btn-lg.btn-sm:before,.btn.btn-switch:hover.btn-lg.btn-sm:before{text-align:right}.btn.btn-switch.btn-lg.btn-sm:after,.btn.btn-switch:focus.btn-lg.btn-sm:after,.btn.btn-switch:hover.btn-lg.btn-sm:after{opacity:0;text-align:left}.btn.btn-switch.btn-lg.btn-sm.active:before,.btn.btn-switch:focus.btn-lg.btn-sm.active:before,.btn.btn-switch:hover.btn-lg.btn-sm.active:before{opacity:0}
161.btn.btn-switch.btn-lg.btn-sm.active:after,.btn.btn-switch:focus.btn-lg.btn-sm.active:after,.btn.btn-switch:hover.btn-lg.btn-sm.active:after{opacity:1}.btn.btn-switch.btn-lg.btn-xs .handle,.btn.btn-switch:focus.btn-lg.btn-xs .handle,.btn.btn-switch:hover.btn-lg.btn-xs .handle{left:2px;top:2px}.btn.btn-switch.btn-lg.btn-xs:after,.btn.btn-switch.btn-lg.btn-xs:before,.btn.btn-switch:focus.btn-lg.btn-xs:after,.btn.btn-switch:focus.btn-lg.btn-xs:before,.btn.btn-switch:hover.btn-lg.btn-xs:after,.btn.btn-switch:hover.btn-lg.btn-xs:before{display:none}.btn.btn-switch.btn-lg.btn-xs.active .handle,.btn.btn-switch:focus.btn-lg.btn-xs.active .handle,.btn.btn-switch:hover.btn-lg.btn-xs.active .handle{left:18px}.btn.btn-switch.btn-sm,.btn.btn-switch:focus.btn-sm,.btn.btn-switch:hover.btn-sm{border:none;border-radius:1.5rem;height:1.5rem;margin:0 .5rem;padding:0;position:relative;width:3rem}.btn.btn-switch.btn-sm.focus,.btn.btn-switch.btn-sm.focus.active,.btn.btn-switch.btn-sm:focus,.btn.btn-switch.btn-sm:focus.active,.btn.btn-switch:focus.btn-sm.focus,.btn.btn-switch:focus.btn-sm.focus.active,.btn.btn-switch:focus.btn-sm:focus,.btn.btn-switch:focus.btn-sm:focus.active,.btn.btn-switch:hover.btn-sm.focus,.btn.btn-switch:hover.btn-sm.focus.active,.btn.btn-switch:hover.btn-sm:focus,.btn.btn-switch:hover.btn-sm:focus.active{outline:none}.btn.btn-switch.btn-sm:after,.btn.btn-switch.btn-sm:before,.btn.btn-switch:focus.btn-sm:after,.btn.btn-switch:focus.btn-sm:before,.btn.btn-switch:hover.btn-sm:after,.btn.btn-switch:hover.btn-sm:before{bottom:0;font-size:.55rem;font-weight:600;letter-spacing:2px;line-height:1.5rem;position:absolute;text-align:center;text-transform:uppercase;transition:opacity .25s;width:.5rem}.btn.btn-switch.btn-sm:before,.btn.btn-switch:focus.btn-sm:before,.btn.btn-switch:hover.btn-sm:before{content:"Off";left:-.5rem}.btn.btn-switch.btn-sm:after,.btn.btn-switch:focus.btn-sm:after,.btn.btn-switch:hover.btn-sm:after{content:"On";opacity:.5;right:-.5rem}.btn.btn-switch.btn-sm>.handle,.btn.btn-switch:focus.btn-sm>.handle,.btn.btn-switch:hover.btn-sm>.handle{background:#fff;border-radius:1.125rem;height:1.125rem;left:.375rem/2;position:absolute;top:.375rem/2;transition:left .25s;width:1.125rem}.btn.btn-switch.btn-sm.active,.btn.btn-switch:focus.btn-sm.active,.btn.btn-switch:hover.btn-sm.active{transition:background-color .25s}.btn.btn-switch.btn-sm.active>.handle,.btn.btn-switch:focus.btn-sm.active>.handle,.btn.btn-switch:hover.btn-sm.active>.handle{left:1.875rem;transition:left .25s}.btn.btn-switch.btn-sm.active:before,.btn.btn-switch:focus.btn-sm.active:before,.btn.btn-switch:hover.btn-sm.active:before{opacity:.5}.btn.btn-switch.btn-sm.active:after,.btn.btn-switch:focus.btn-sm.active:after,.btn.btn-switch:hover.btn-sm.active:after{opacity:1}.btn.btn-switch.btn-sm.btn-sm:after,.btn.btn-switch.btn-sm.btn-sm:before,.btn.btn-switch:focus.btn-sm.btn-sm:after,.btn.btn-switch:focus.btn-sm.btn-sm:before,.btn.btn-switch:hover.btn-sm.btn-sm:after,.btn.btn-switch:hover.btn-sm.btn-sm:before{color:#fff;left:.4125rem;letter-spacing:.75px;line-height:-.5rem;width:2.325rem}.btn.btn-switch.btn-sm.btn-sm:before,.btn.btn-switch:focus.btn-sm.btn-sm:before,.btn.btn-switch:hover.btn-sm.btn-sm:before{text-align:right}.btn.btn-switch.btn-sm.btn-sm:after,.btn.btn-switch:focus.btn-sm.btn-sm:after,.btn.btn-switch:hover.btn-sm.btn-sm:after{opacity:0;text-align:left}.btn.btn-switch.btn-sm.btn-sm.active:before,.btn.btn-switch:focus.btn-sm.btn-sm.active:before,.btn.btn-switch:hover.btn-sm.btn-sm.active:before{opacity:0}.btn.btn-switch.btn-sm.btn-sm.active:after,.btn.btn-switch:focus.btn-sm.btn-sm.active:after,.btn.btn-switch:hover.btn-sm.btn-sm.active:after{opacity:1}.btn.btn-switch.btn-sm.btn-xs .handle,.btn.btn-switch:focus.btn-sm.btn-xs .handle,.btn.btn-switch:hover.btn-sm.btn-xs .handle{left:2px;top:2px}.btn.btn-switch.btn-sm.btn-xs:after,.btn.btn-switch.btn-sm.btn-xs:before,.btn.btn-switch:focus.btn-sm.btn-xs:after,.btn.btn-switch:focus.btn-sm.btn-xs:before,.btn.btn-switch:hover.btn-sm.btn-xs:after,.btn.btn-switch:hover.btn-sm.btn-xs:before{display:none}.btn.btn-switch.btn-sm.btn-xs.active .handle,.btn.btn-switch:focus.btn-sm.btn-xs.active .handle,.btn.btn-switch:hover.btn-sm.btn-xs.active .handle{left:18px}.btn.btn-switch.btn-xs,.btn.btn-switch:focus.btn-xs,.btn.btn-switch:hover.btn-xs{border:none;border-radius:1rem;height:1rem;margin:0;padding:0;position:relative;width:2rem}.btn.btn-switch.btn-xs.focus,.btn.btn-switch.btn-xs.focus.active,.btn.btn-switch.btn-xs:focus,.btn.btn-switch.btn-xs:focus.active,.btn.btn-switch:focus.btn-xs.focus,.btn.btn-switch:focus.btn-xs.focus.active,.btn.btn-switch:focus.btn-xs:focus,.btn.btn-switch:focus.btn-xs:focus.active,.btn.btn-switch:hover.btn-xs.focus,.btn.btn-switch:hover.btn-xs.focus.active,.btn.btn-switch:hover.btn-xs:focus,.btn.btn-switch:hover.btn-xs:focus.active{outline:none}.btn.btn-switch.btn-xs:after,.btn.btn-switch.btn-xs:before,.btn.btn-switch:focus.btn-xs:after,.btn.btn-switch:focus.btn-xs:before,.btn.btn-switch:hover.btn-xs:after,.btn.btn-switch:hover.btn-xs:before{bottom:0;font-size:.75rem;font-weight:600;letter-spacing:2px;line-height:1rem;position:absolute;text-align:center;text-transform:uppercase;transition:opacity .25s;width:0}.btn.btn-switch.btn-xs:before,.btn.btn-switch:focus.btn-xs:before,.btn.btn-switch:hover.btn-xs:before{content:"Off";left:0}.btn.btn-switch.btn-xs:after,.btn.btn-switch:focus.btn-xs:after,.btn.btn-switch:hover.btn-xs:after{content:"On";opacity:.5;right:0}.btn.btn-switch.btn-xs>.handle,.btn.btn-switch:focus.btn-xs>.handle,.btn.btn-switch:hover.btn-xs>.handle{background:#fff;border-radius:.75rem;height:.75rem;left:.25rem/2;position:absolute;top:.25rem/2;transition:left .25s;width:.75rem}.btn.btn-switch.btn-xs.active,.btn.btn-switch:focus.btn-xs.active,.btn.btn-switch:hover.btn-xs.active{transition:background-color .25s}.btn.btn-switch.btn-xs.active>.handle,.btn.btn-switch:focus.btn-xs.active>.handle,.btn.btn-switch:hover.btn-xs.active>.handle{left:1.25rem;transition:left .25s}.btn.btn-switch.btn-xs.active:before,.btn.btn-switch:focus.btn-xs.active:before,.btn.btn-switch:hover.btn-xs.active:before{opacity:.5}.btn.btn-switch.btn-xs.active:after,.btn.btn-switch:focus.btn-xs.active:after,.btn.btn-switch:hover.btn-xs.active:after{opacity:1}.btn.btn-switch.btn-xs.btn-sm:after,.btn.btn-switch.btn-xs.btn-sm:before,.btn.btn-switch:focus.btn-xs.btn-sm:after,.btn.btn-switch:focus.btn-xs.btn-sm:before,.btn.btn-switch:hover.btn-xs.btn-sm:after,.btn.btn-switch:hover.btn-xs.btn-sm:before{color:#fff;left:.275rem;letter-spacing:.75px;line-height:-1rem;width:1.55rem}.btn.btn-switch.btn-xs.btn-sm:before,.btn.btn-switch:focus.btn-xs.btn-sm:before,.btn.btn-switch:hover.btn-xs.btn-sm:before{text-align:right}.btn.btn-switch.btn-xs.btn-sm:after,.btn.btn-switch:focus.btn-xs.btn-sm:after,.btn.btn-switch:hover.btn-xs.btn-sm:after{opacity:0;text-align:left}.btn.btn-switch.btn-xs.btn-sm.active:before,.btn.btn-switch:focus.btn-xs.btn-sm.active:before,.btn.btn-switch:hover.btn-xs.btn-sm.active:before{opacity:0}
161.btn.btn-switch.btn-xs.btn-sm.active:after,.btn.btn-switch:focus.btn-xs.btn-sm.active:after,.btn.btn-switch:hover.btn-xs.btn-sm.active:after{opacity:1}.btn.btn-switch.btn-xs.btn-xs .handle,.btn.btn-switch:focus.btn-xs.btn-xs .handle,.btn.btn-switch:hover.btn-xs.btn-xs .handle{left:2px;top:2px}.btn.btn-switch.btn-xs.btn-xs:after,.btn.btn-switch.btn-xs.btn-xs:before,.btn.btn-switch:focus.btn-xs.btn-xs:after,.btn.btn-switch:focus.btn-xs.btn-xs:before,.btn.btn-switch:hover.btn-xs.btn-xs:after,.btn.btn-switch:hover.btn-xs.btn-xs:before{display:none}.btn.btn-switch.btn-xs.btn-xs.active .handle,.btn.btn-switch:focus.btn-xs.btn-xs.active .handle,.btn.btn-switch:hover.btn-xs.btn-xs.active .handle{left:18px}.btn.btn-switch.btn-secondary,.btn.btn-switch:focus.btn-secondary,.btn.btn-switch:hover.btn-secondary{background:#bdc1c8;color:#6b7381}.btn.btn-switch.btn-secondary:after,.btn.btn-switch.btn-secondary:before,.btn.btn-switch:focus.btn-secondary:after,.btn.btn-switch:focus.btn-secondary:before,.btn.btn-switch:hover.btn-secondary:after,.btn.btn-switch:hover.btn-secondary:before{color:#6b7381}.btn.btn-switch.btn-secondary.active,.btn.btn-switch:focus.btn-secondary.active,.btn.btn-switch:hover.btn-secondary.active{background-color:#ff8300}')},
161"main.js":function(e,t,n){n.link("./button-switch.less");n.link("./button-switch.js")}}},"button-toggle":{client:{
161"button-toggle.html":function(e,t,n){n.link("./template.button-toggle.js",{"*":"*+"})},
161"template.button-toggle.js":function(){r.__checkName("dfmToggle");r["dfmToggle"]=new r("Template.dfmToggle",function(){var e=this;return v.DIV({class:"d-flex align-items-center dfm-toggle-container"},"\n    ",v.BUTTON(v.Attrs({id:function(){return["dfm-toggle-",g.mustache(e.lookup("dataToggle")),"-",g.mustache(e.lookup("dataKey"))]},class:function(){return["js-toggle dfm-toggle ",g.mustache(e.lookup("equalsReturn"),e.lookup("inProgress"),true,"progress","")," ",g.mustache(e.lookup("equalsReturn"),e.lookup("isToggled"),true,"on","off")]},"data-toggle":function(){return g.mustache(e.lookup("dataToggle"))},"data-key":function(){return g.mustache(e.lookup("dataKey"))}},function(){return g.attrMustache(e.lookup("equalsReturn"),e.lookup("inProgress"),true,"disabled")}),"\n\n      ",v.SPAN({class:function(){return["dfm-toggle-slider ",g.mustache(e.lookup("equalsReturn"),e.lookup("inProgress"),true,"progress","")," ",g.mustache(e.lookup("equalsReturn"),e.lookup("isToggled"),true,"on","off")]}}),"\n\n      ",b.If(function(){return g.call(e.lookup("inProgress"))},function(){return v.Raw('\n        <div class="progress-indicator"></div>\n      ')}),"\n    "),"\n\n    ",v.LABEL({for:function(){return["dfm-toggle-",g.mustache(e.lookup("dataToggle")),"-",g.mustache(e.lookup("dataKey"))]},class:function(){return["ml-3 font-weight-medium ",b.If(function(){return g.call(e.lookup("labelClass"))},function(){return b.View("lookup:labelClass",function(){return g.mustache(e.lookup("labelClass"))})},function(){return"text-dark"})]}},b.View("lookup:label",function(){return g.mustache(e.lookup("label"))})),"\n  ")})},
161"button-toggle.js":function(e,t,n){n.link("./button-toggle.less");n.link("./button-toggle.html");r.dfmToggle.helpers({});r.dfmToggle.events({})},
161"button-toggle.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".dfm-toggle-container{--toggle-width:34px;--toggle-height:18px;--slider-size:12px;--transition-duration:0.2s;--color-primary:#17a2b8;--color-success:#28a745;--color-warning:#ffc107;--color-secondary:#6c757d;--color-light:#f8f9fa;--color-white:#fff;--color-border:#dee2e6;--fade-10:0.1;--fade-25:0.25;--fade-30:0.3;--fade-70:0.7}.dfm-toggle-container .dfm-toggle{border:none;border-radius:calc(var(--toggle-height)/2);cursor:pointer;height:var(--toggle-height);margin-right:10px;outline:none;position:relative;transition:all var(--transition-duration) ease;width:var(--toggle-width)}.dfm-toggle-container .dfm-toggle:focus{box-shadow:0 0 0 2px color-mix(in srgb,var(--color-primary) var(--fade-25),transparent)}.dfm-toggle-container .dfm-toggle.off{background-color:#ced4da}.dfm-toggle-container .dfm-toggle.off:hover:not(:disabled){background-color:#adb5bd}.dfm-toggle-container .dfm-toggle.on{background-color:var(--color-primary)}.dfm-toggle-container .dfm-toggle.on:hover:not(:disabled){background-color:color-mix(in srgb,var(--color-primary) 90%,#000)}.dfm-toggle-container .dfm-toggle.progress{background-color:color-mix(in srgb,var(--color-warning) 70%,transparent);cursor:not-allowed;transition:none}.dfm-toggle-container .dfm-toggle:disabled{cursor:not-allowed;opacity:.7}.dfm-toggle-container .dfm-toggle .dfm-toggle-slider{background-color:var(--color-white);border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2);height:var(--slider-size);left:2px;position:absolute;top:3px;transition:transform var(--transition-duration) ease;width:var(--slider-size)}.dfm-toggle-container .dfm-toggle .dfm-toggle-slider.off{transform:translateX(2px)}.dfm-toggle-container .dfm-toggle .dfm-toggle-slider.on{transform:translateX(calc(var(--toggle-width) - var(--slider-size) - 4px))}.dfm-toggle-container .dfm-toggle .dfm-toggle-slider.progress{animation:pulse 1.5s infinite;transform:translateX(calc((var(--toggle-width) - var(--slider-size))/2));transition:none}.dfm-toggle-container .dfm-toggle .progress-indicator{animation:ping 1s infinite;background-color:var(--color-white);border-radius:50%;height:8px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}.dfm-toggle-container label{cursor:pointer}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.05)}}@keyframes ping{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}75%,to{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}@media (max-width:576px){.dfm-toggle{padding:.75rem!important}}")}}},carousel:{client:{
161"carousel.js":function(t,n,r){var i,o,a;r.link("contactjs",{PointerListener:function(e){i=e},Tap:function(e){},Pan:function(e){o=e},Pinch:function(e){},Rotate:function(e){},TwoFingerPan:function(e){},DIRECTION_HORIZONTAL:function(e){a=e}},0);function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t,n){t=d(t);return h(e,v()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function f(e,t,n){if(t)c(e.prototype,t);if(n)c(e,n);return e}function d(e){d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return d(e)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)b(e,t)}function h(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;return s(e)}function b(e,t){b=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return b(e,t)}function g(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var y=function e(){"use strict";arguments.length>0&&void 0!==arguments[0]&&arguments[0];u(this,e)};var w=function(e){"use strict";p(t,e);function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,t);var n;n=l(this,t,[e]);n.carousels=[];n.initAll(e);return n}f(t,[{key:"initAll",value:function(e){var t=this;var n=e.selector;var r=document.querySelectorAll(n);r.forEach(function(n,r){t.carousels.push(new k(n,e))})}}]);return t}(y);var k=function(){"use strict";function t(e,n){u(this,t);this.el=e;this.autoplaySpeed=n.autoplaySpeed||5e3+1e3*Math.random()-500;this.mouseover=false;this.onTab=true;this.handleLoop=null;this.handleStartLoopAfter=null;this.elWrapper=e.querySelector(".carousel-wrapper");this.slides=e.querySelectorAll(".carousel-slide");this.firstSlide=e.querySelector(".carousel-slide");this.active=1;this.activeAbsolute=this.active;this.isHorizontal=true;this.rotateFn=this.isHorizontal?"rotateY":"rotateX";this.slidesCount=this.slides.length;this.elOptions=Object.assign({},e.dataset);this.updateSize();this.init();this.showSlide();this.startLoop()}f(t,[{key:"init",value:function(){var t=this;this.el.classList.add("dfm-carousel-3d");this.firstSlide.classList.add("active");if(this.slides.length>4)this.elWrapper.classList.add("more-than-four-slides");document.querySelectorAll(".js-set-active-slide").forEach(function(e){e.addEventListener("click",function(e){t.stopLoop();t.setActiveSlide(+e.currentTarget.dataset.carouselSlide);t.startLoopAfter()})});this.el.addEventListener("mouseenter",function(){t.mouseover=true;t.el.classList.add("mouseover");t.stopLoop()});this.el.addEventListener("mouseleave",function(){t.mouseover=false;t.el.classList.remove("mouseover");t.startLoop()});this.makeCircle();var n=new o(this.el,{supportedDirections:a});new i(this.el,{supportedGestures:[n]});this.el.addEventListener("swipeleft",function(e){return t.onSwipeLeft(e)});this.el.addEventListener("swiperight",function(e){return t.onSwipeRight(e)});document.addEventListener("visibilitychange",function(e){if("visible"===document.visibilityState)t.startLoop();else t.stopLoop()});window.addEventListener("resize",function(){e.setTimeout(function(){t.updateSize();t.showSlide()},1e3)});this.el.classList.add("ready")}},{key:"loop",value:function(){var t=this;this.handleLoop=e.setInterval(function(){if(t.onTab){t.plusSlide(1);t.updateSize()}},this.autoplaySpeed)}},{key:"updateSize",value:function(){this.makeCircle();this.ratio=1;this.width=this.el.offsetWidth;this.height=this.width/this.ratio;this.perspective=2*this.width;this.el.style.perspective=this.perspective+"px";this.slideWidth=this.width*(this.elOptions.carouselScale||1);this.slideHeight=this.slideWidth/this.ratio;this.elWrapper.style.width=this.slideWidth+"px";this.elWrapper.style.height=this.slideHeight+"px";var e=0;
161this.slides.forEach(function(e,t){e.style.height=null});this.slides.forEach(function(t,n){e=Math.max(e,t.offsetHeight)});this.slides.forEach(function(t,n){t.style.height=e+"px"});this.el.style.height=e+"px"}},{key:"onSwipeLeft",value:function(e){this.stopLoop();this.plusSlide(1);this.startLoopAfter()}},{key:"onSwipeRight",value:function(e){this.stopLoop();this.plusSlide(-1);this.startLoopAfter()}},{key:"startLoopAfter",value:function(){var t=this;if(this.handleStartLoopAfter)e.clearTimeout(this.handleStartLoopAfter);this.handleStartLoopAfter=e.setTimeout(function(){if(!t.isLoop())t.startLoop()},1e4)}},{key:"startLoop",value:function(){this.loop()}},{key:"stopLoop",value:function(){if(this.handleLoop){e.clearInterval(this.handleLoop);this.handleLoop=null}}},{key:"isLoop",value:function(){return null!==this.handleLoop}},{key:"addArrows",value:function(t,n){var r=this;var i=document.createElement("div");i.classList.add("carousel-btn","carousel-btn-next");i.innerHTML='<span class="material-symbols-outlined">chevron_right</span>';i.addEventListener("click",function(){if(this.handleLoop)e.clearInterval(this.handleLoop);r.plusSlide(n,1)});t.appendChild(i);var o=document.createElement("div");o.classList.add("carousel-btn","carousel-btn-prev");o.innerHTML='<span class="material-symbols-outlined">chevron_left</span>';o.addEventListener("click",function(){if(r.handleLoop)e.clearInterval(r.handleLoop);r.plusSlide(n,-1)});t.appendChild(o)}},{key:"addBullets",value:function(t,n){var r=this;var i=document.createElement("div");i.classList.add("carousel-bullets");this.carousels[n].slides.forEach(function(t,o){var a=document.createElement("div");a.classList.add("carousel-bullet");a.addEventListener("click",function(){if(r.handleLoop)e.clearInterval(r.handleLoop);r.setActive(n,o+1)});i.appendChild(a)});this.carousels[n].carousel.appendChild(i)}},{key:"initArrows",value:function(){var e=document.querySelectorAll(".carousel-btn-prev");e.forEach(function(e,t){e.addEventListener("click",function(){plusSlides(carouselIndex,-1)})})}},{key:"plusSlide",value:function(e){this.setActiveSlide(this.activeAbsolute+e)}},{key:"setActiveSlide",value:function(e){this.activeAbsolute=e;this.active=this.mod(this.activeAbsolute,this.slidesCount);if(this.active>this.slides.length-1)this.active=1;if(this.active<0)this.active=this.slides.length-1;this.showSlide()}},{key:"mod",value:function(e,t){return(e%t+t)%t}},{key:"showSlide",value:function(){this.rotateCarousel();Array.from(this.elWrapper.querySelectorAll(".carousel-slide")).forEach(function(e){return e.classList.remove("active","prev","next")});var e=this.active-1<0?this.slides.length-1:this.active-1;var t=this.active+1>this.slides.length-1?0:this.active+1;this.slides[e%this.slidesCount].classList.add("prev");this.slides[t%this.slidesCount].classList.add("next");this.slides[this.active%this.slidesCount].classList.add("active");var n=this.el.id;if(n){if(document.querySelector("[data-carousel-id="+n+"]")){Array.from(document.querySelector("[data-carousel-id="+n+"]").querySelectorAll(".js-set-active-slide")).forEach(function(e){return e.classList.remove("active")});var r=this.slides[this.active%this.slidesCount];var i=r.dataset.setActiveBtn;if(i){if(document.querySelector("[data-carousel-id="+r.id+"]"))document.querySelector("[data-carousel-id="+r.id+"]").classList.add("active")}}}}},{key:"rotateCarousel",value:function(){var e=this.theta*this.activeAbsolute*-1;this.elWrapper.style.transform="translateZ("+-this.radius+"px) "+this.rotateFn+"("+e+"deg)"}},{key:"onOrientationChange",value:function(){this.rotateFn=this.isHorizontal?"rotateY":"rotateX";this.makeCircle();this.rotateCarousel()}},{key:"makeCircle",value:function(){this.theta=360/this.slidesCount;var e=this.isHorizontal?this.slideWidth:this.slideHeight;this.radius=Math.round(e/2/Math.tan(Math.PI/this.slidesCount));for(var t=0;t<this.slides.length;t++){var n=this.slides[t];if(t<this.slidesCount){var r=this.theta*t;n.style.transform=this.rotateFn+"("+r+"deg) translateZ("+this.radius+"px)"}else n.style.transform="none"}}},{key:"destroy",value:function(){this.stopLoop()}}]);return t}();r.exportDefault(w)},
161"carousel.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".dfm-carousel-3d{opacity:0;position:relative;transition:transform 1s,opacity 1s;width:100%}.dfm-carousel-3d.ready{opacity:1}.dfm-carousel-3d .carousel-wrapper{margin:auto;transform-style:preserve-3d;transition:transform 1s}.dfm-carousel-3d .carousel-wrapper .carousel-slide{color:#fff;cursor:grab;opacity:.02;position:absolute;text-align:center;touch-action:pan-y;transition:opacity 1s;user-select:none;width:98%}.dfm-carousel-3d .carousel-wrapper .carousel-slide.active{opacity:1}.dfm-carousel-3d .carousel-wrapper .carousel-slide img{pointer-events:none}.dfm-carousel-3d .carousel-wrapper.more-than-four-slides .carousel-slide.next,.dfm-carousel-3d .carousel-wrapper.more-than-four-slides .carousel-slide.prev{opacity:1}")},
161"main.js":function(e,t,n){n.link("./carousel.less");n.link("./carousel.js")}}},connection:{client:{
161"connectionIssue.html":function(e,t,n){n.link("./template.connectionIssue.js",{"*":"*+"})},
161"template.connectionIssue.js":function(){r.__checkName("dfmConnectionIssue");r["dfmConnectionIssue"]=new r("Template.dfmConnectionIssue",function(){var e=this;return b.Unless(function(){return g.call(g.dot(e.lookup("MeteorStatus"),"connected"))},function(){return["\n        ",b.If(function(){return g.call(g.dot(e.lookup("MeteorStatus"),"retryCount"))},function(){return["\n            ",g.include(e.lookupTemplate("dfmConnectionIssueWindow")),"\n        "]}),"\n    "]})});r.__checkName("dfmConnectionIssueWindow");r["dfmConnectionIssueWindow"]=new r("Template.dfmConnectionIssueWindow",function(){var e=this;return v.DIV({class:"dfm-connection-issue toast text-white bg-danger fade show"},"\n        ",v.DIV({class:"toast-header danger"},"\n            ",v.STRONG({class:"me-auto"},v.Raw('<span class="material-symbols-outlined">sync_disabled</span> '),b._TemplateWith(function(){return{c:g.call("connectionIssueWindowTitle")}},function(){return g.include(e.lookupTemplate("trans"))})),v.Raw('\n            <small class="text-muted"></small>\n            <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>\n        ')),"\n        ",v.DIV({class:"toast-body"},"\n            ",b._TemplateWith(function(){return{c:g.call("connectionIssueWindowContent"),html:g.call(true)}},function(){return g.include(e.lookupTemplate("trans"))}),"\n            ",b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return[v.Raw("<br>\n                "),g.include(e.lookupTemplate("onlyWebmaster")),"\n                ",b.View("lookup:MeteorStatus.status",function(){return g.mustache(g.dot(e.lookup("MeteorStatus"),"status"))}),v.Raw("<br>\n                retry : "),b.View("lookup:MeteorStatus.retryCount",function(){return g.mustache(g.dot(e.lookup("MeteorStatus"),"retryCount"))}),v.Raw("<br>\n                "),b.If(function(){return g.call(g.dot(e.lookup("MeteorStatus"),"retryTime"))},function(){return["\n                    ",b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),g.dot(e.lookup("MeteorStatus"),"retryTime"))}),v.Raw("<br>\n                ")]}),"\n            "]}),"\n        "),"\n    ")})},
161"connectionIssue.js":function(e,t,n){n.link("./connectionIssue.less");n.link("./connectionIssue.html");r.dfmConnectionIssueWindow.onRendered(function(){});r.dfmConnectionIssueWindow.helpers({})},
161"connectionIssue.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".dfm-connection-issue{background:#fff;margin:10px;position:fixed;top:0;z-index:10000000}")},
161"main.js":function(t,n,i){var o;i.link("meteor/session",{Session:function(e){o=e}},0);i.link("./connectionIssue.js");var a=5e3;o.setDefault("showConnectionIssue",false);e.startup(function(){setTimeout(function(){o.set("showConnectionIssue",true)},a)});r.registerHelper("MeteorStatus",function(){return e.status()})}}},cron:{client:{
161"cron.html":function(e,t,n){n.link("./template.cron.js",{"*":"*+"})},
161"template.cron.js":function(){r.__checkName("dfmAdminCron");r["dfmAdminCron"]=new r("Template.dfmAdminCron",function(){var e=this;return v.DIV({id:"dfm-admin-cron"},v.Raw("\n        <h1>Cron</h1>\n\n        "),v.TABLE({class:"mt-3 table table-hover table-striped"},"\n            ",v.THEAD("\n                ",v.TR(v.Raw('\n                    <th>name / details</th>\n                    <th>appName</th>\n                    \x3c!-- <th>date</th> --\x3e\n                    <th>cronTime</th>\n                    \n                    <th>task</th>\n                    <th>task enabled</th>\n                    <th width="50"></th>\n                ')),"\n            "),"\n            ",v.TBODY("\n                ",b.Each(function(){return g.call(e.lookup("getCrons"))},function(){return["\n                    ",g.include(e.lookupTemplate("dfmAdminCronOne")),"\n                "]},function(){return["\n                    ",v.TR(v.Raw('\n                        <td colspan="5">No cron found</td>\n                    ')),"\n                "]}),"\n            "),"\n        "),v.Raw('\n\n        <h1 class="mt-5">Tasks</h1>\n\n        '),v.TABLE({class:"mt-3 table table-hover table-striped"},"\n            ",v.THEAD("\n                ",v.TR(v.Raw("\n                    <th>name</th>\n                    <th>cronId</th>\n                    <th>task / added at</th>\n                    <th>next date</th>\n                ")),"\n            "),"\n            ",v.TBODY("\n                ",b.Each(function(){return g.call(e.lookup("getTasks"))},function(){return["\n                    ",v.TR("\n                        ",v.TD(b.View("lookup:name",function(){return g.mustache(e.lookup("name"))})),"\n                        ",v.TD(b.View("lookup:cronId",function(){return g.mustache(e.lookup("cronId"))})),"\n                        ",v.TD(b.View("lookup:taskName",function(){return g.mustache(e.lookup("taskName"))})),"\n                        ",v.TD(b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),g.dot(e.lookup("nextDate"),"_date","ts"),"tinyFull")})),"\n                    "),"\n                "]},function(){return["\n                    ",v.TR(v.Raw('\n                        <td colspan="4">No tasks found</td>\n                    ')),"\n                "]}),"\n            "),"\n        "),"\n    ")});r.__checkName("dfmAdminCronOne");r["dfmAdminCronOne"]=new r("Template.dfmAdminCronOne",function(){var e=this;return v.TR({class:function(){return["cron ",b.If(function(){return g.call(e.lookup("enabled"))},function(){return"cron-enabled"},function(){return"cron-not-enabled"})]}},"\n        ",v.TD("\n            ",v.DIV("\n                ",b.View("lookup:name",function(){return g.mustache(e.lookup("name"))}),"\n                ",b.If(function(){return g.call(g.dot(e.lookup("meta"),"description"))},function(){return[v.Raw("\n                    <br>"),v.SMALL(b.View("lookup:meta.description",function(){return g.mustache(g.dot(e.lookup("meta"),"description"))})),"\n                "]}),"\n                ",b.If(function(){return g.call(g.dot(e.lookup("meta"),"link"))},function(){return[v.Raw("\n                    <br>"),v.SMALL(v.A({href:function(){return g.mustache(g.dot(e.lookup("meta"),"link"))}},b.View("lookup:meta.link",function(){return g.mustache(g.dot(e.lookup("meta"),"link"))}))),"\n                "]}),"\n            "),"\n            ",v.DIV(b.View("lookup:text",function(){return g.makeRaw(g.mustache(e.lookup("text")))})),"\n        "),"\n        ",v.TD(b.View("lookup:appName",function(){return g.mustache(e.lookup("appName"))})),v.Raw("\n        \x3c!-- <td>{{formatDate date 'long'}}</td> --\x3e\n        "),v.TD(b.View("lookup:time",function(){return g.mustache(e.lookup("time"))})),"\n        \n        ",v.TD("\n            ",g.With(function(){return g.call(e.lookup("getCronDetails"))},function(){return["\n                ",b.If(function(){return g.call(e.lookup("error"))},function(){return["\n                    ",b.View("lookup:message",function(){return g.mustache(e.lookup("message"))}),"\n                "]},function(){return["\n                    ",v.DIV("name : ",b.View("lookup:name",function(){return g.mustache(e.lookup("name"))})),"\n                    ",v.DIV("running : ",b.View("lookup:running",function(){return g.mustache(e.lookup("running"))})),"\n                    ",v.DIV("next : ",b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),g.dot(e.lookup("next"),"_date","ts"),"utc")})),"\n                "]}),"\n                "]},function(){return v.Raw("\n                    <div>Loading...</div>\n            ")}),"\n        "),"\n        ",v.TD({class:"text-center"}," ",v.INPUT({name:"enabled",class:"dfm-admin-cron-enable",type:"checkbox",checked:function(){return g.mustache(e.lookup("enabled"))}})," "),v.Raw('\n        <td><a class="btn btn-xs btn-danger js-remove-cron"><span class="material-symbols-outlined">delete</span></a></td>\n    '))})},
161"cron.js":function(t,n,i){var o;i.link("meteor/reactive-dict",{ReactiveDict:function(e){o=e}},0);var a;i.link("../lib/collections.js",{DfmCrons:function(e){a=e}},1);i.link("./cron.less");i.link("./cron.html");r.dfmAdminCron.onCreated(function(){var t=this;this.tasks=new o;e.callAsync("dfm.cron.getTasks").then(function(e){t.tasks.set("tasks",e)}).catch(function(e){dfm.toastError(e)})});r.dfmAdminCron.onRendered(function(){});r.dfmAdminCron.helpers({getCrons:function(){return a.find({},{sort:{enabled:-1,time:1}})},getTasks:function(){return r.instance().tasks.get("tasks")}});r.dfmAdminCron.events({});r.dfmAdminCronOne.onCreated(function(){var t=this;var n=this.data;log(n);this.cronDetails=new o;if(!n.enabled)this.cronDetails.set(n.id,{error:true,message:"not enabled"});e.callAsync("dfm.cron.getByCronId",n._id).then(function(e){log(e);t.cronDetails.set(n._id,e)}).catch(function(e){dfm.toastError(e)})});r.dfmAdminCronOne.onRendered(function(){});r.dfmAdminCronOne.onDestroyed(function(){});r.dfmAdminCronOne.helpers({getCronDetails:function(){return r.instance().cronDetails.get(this._id)}});r.dfmAdminCronOne.events({"click .dfm-admin-cron-enable":function(t,n){t.preventDefault();var r=this;e.callAsync("dfm.cron.enabletoggle",r._id).then(function(e){dfm.toastSuccess(e?"enabled":"disabled")}).catch(function(e){dfm.toastError(e)})},"click .js-remove-cron":function(t,n){var r=this;t.preventDefault();dfm.confirm("Are you sure you want to remove this cron ?",function(t){if(t)e.callAsync("dfm.cron.remove",r.name).then(function(){dfm.toastSuccess("cron removed")}).catch(function(e){dfm.toastError(e)})},t.shiftKey)}})},
161"cron.less":function(e,t,n){n.exports=e("meteor/modules").addStyles("#dfm-admin-cron .cron.cron-enabled{background-color:#00800038}#dfm-admin-cron .cron.cron-not-enabled{background-color:#df81815c}#dfm-admin-cron .cron .details pre{overflow:auto;width:400px}")}},lib:{
161"collections.js":function(e,t,n){n.export({DfmCrons:function(){return i}});var r;n.link("meteor/mongo",{Mongo:function(e){r=e}},0);var i=new r.Collection("dfm_crons")}}},draggable:{client:{
161"helpers.js":function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function r(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}t.dfm=t.dfm||{};dfm.nextDraggableZIndex=1e5;var i=function(){"use strict";function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,t);if(!n)return;this.el=document.querySelector(n);this.options=r;this.handle=this.el;this.pos1=0;this.pos2=0;this.mouseXBackup=0;this.mouseYBackup=0;this.elementDragBinded=this.elementDrag.bind(this);this.closeDragElementBinded=this.closeDragElement.bind(this);this.dragMouseDownBinded=this.dragMouseDown.bind(this);if(this.options.handle)this.handle=document.querySelectorAll(this.options.handle)[0];this.init()}r(t,[{key:"init",value:function(){this.el.style.position="fixed";this.el.style.margin="0px";this.el.style.zIndex=dfm.nextDraggableZIndex;dfm.nextDraggableZIndex++;this.handle.addEventListener("mousedown",this.dragMouseDownBinded)}},{key:"elementDrag",value:function(e){this.transX=e.clientX-this.mouseXBackup;this.transY=e.clientY-this.mouseYBackup;this.mouseXBackup=e.clientX;this.mouseYBackup=e.clientY;var t=this.el.getBoundingClientRect();var n=t.top+this.transY;var r=t.left+this.transX;if(n<0)n=0;if(n>window.innerHeight-t.height)n=window.innerHeight-t.height;if(r<0)r=0;if(r>window.innerWidth-t.width)r=window.innerWidth-t.width;this.el.style.top=n+"px";this.el.style.left=r+"px";this.el.style.bottom="auto"}},{key:"dragMouseDown",value:function(e){log("dragMouseDown");this.mouseXBackup=e.clientX;this.mouseYBackup=e.clientY;document.addEventListener("mouseup",this.closeDragElementBinded);document.addEventListener("mousemove",this.elementDragBinded)}},{key:"destroy",value:function(){this.handle.removeEventListener("mousedown",this.dragMouseDownBinded);this.el.style.removeProperty("position");this.el.style.removeProperty("top");this.el.style.removeProperty("left");this.el.style.removeProperty("bottom");this.el.style.removeProperty("margin");this.el.style.removeProperty("zIndex")}},{key:"closeDragElement",value:function(){document.removeEventListener("mousemove",this.elementDragBinded);document.removeEventListener("mouseup",this.closeDragElementBinded)}},{key:"setPosition",value:function(e){var t=e.left,n=e.top;log("setPosition",t,n);this.el.style.top=n+"px";this.el.style.left=t+"px";this.el.style.bottom="auto"}},{key:"getPosition",value:function(){var e=this.el.getBoundingClientRect();return{left:e.left,top:e.top}}}]);return t}();dfm.draggable=function(e,t){return new i(e,t)}},
161"main.js":function(e,t,n){n.link("./helpers.js")}}},"files-local":{client:{
161"main.js":function(e,t,n){n.link("./uploadForm/input.js");n.link("./uploadForm/upload.js");n.link("./display/display.js")},display:{
161"display.html":function(e,t,n){n.link("./template.display.js",{"*":"*+"})},
161"template.display.js":function(){r.__checkName("dfmFilesLocalDisplayMultiple");r["dfmFilesLocalDisplayMultiple"]=new r("Template.dfmFilesLocalDisplayMultiple",function(){return""});r.__checkName("dfmFilesLocalDisplayOne");r["dfmFilesLocalDisplayOne"]=new r("Template.dfmFilesLocalDisplayOne",function(){var e=this;return b.If(function(){return g.call(e.lookup("subsReady"))},function(){return["\n    ",g.With(function(){return g.call(e.lookup("getLocalFile"))},function(){return["\n      ",b.If(function(){return g.call(g.dot(e.lookup(".."),"displayImage"))},function(){return["\n        ",b.If(function(){return g.call(e.lookup("isBrowserImage"))},function(){return["\n          ",v.DIV({class:function(){return g.mustache(g.dot(e.lookup(".."),"class"))}},b.Unless(function(){return g.dataMustache(e.lookup("equals"),g.dot(e.lookup(".."),"link"),false)},function(){return[v.A({href:function(){return g.mustache(e.lookup("getLink"))},target:"_blank"},v.IMG({src:function(){return g.mustache(e.lookup("getLink"))},width:function(){return g.mustache(g.dot(e.lookup(".."),"displaySize"))},onerror:["this.onerror=null;this.style.display='none';this.insertAdjacentHTML('afterend','<span class=",v.CharRef({html:"&quot;",str:'"'}),"text-muted",v.CharRef({html:"&quot;",str:'"'}),">Image non support\xe9e</span>')"]})),"\n            "]},function(){return v.IMG({src:function(){return g.mustache(e.lookup("getLink"))},width:function(){return g.mustache(g.dot(e.lookup(".."),"displaySize"))},onerror:["this.onerror=null;this.style.display='none';this.insertAdjacentHTML('afterend','<span class=",v.CharRef({html:"&quot;",str:'"'}),"text-muted",v.CharRef({html:"&quot;",str:'"'}),">Image non support\xe9e</span>')"]})})," "),"\n        "]},function(){return["\n          ",v.DIV({class:function(){return[g.mustache(g.dot(e.lookup(".."),"class"))," text-muted p-2"]}},v.Raw('<span class="material-symbols-outlined">broken_image</span> '),b.View("lookup:name",function(){return g.mustache(e.lookup("name"))})," (format non support\xe9: ",b.View("lookup:extension",function(){return g.mustache(e.lookup("extension"))}),")"),"\n        "]}),"\n      "]},function(){return["\n        ",v.DIV({class:function(){return g.mustache(g.dot(e.lookup(".."),"class"))}},b.Unless(function(){return g.call(g.dot(e.lookup(".."),"deleteHide"))},function(){return v.Raw('<a class="float-end badge bg-danger js-delete-file-local">effacer</a>')})," ",v.A({href:function(){return g.mustache(e.lookup("getLink"))},target:"_blank"},b.View("lookup:name",function(){return g.mustache(e.lookup("name"))}))," ",b.If(function(){return g.call(e.lookup("displaySize"))},function(){return b.View("lookup:humanFileSize",function(){return g.mustache(e.lookup("humanFileSize"),e.lookup("size"))})})),"\n      "]}),"\n    "]},function(){return"\n      error file local not found\n    "}),"\n    ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("deleteHide"),false)},function(){return v.Raw('<a class="clickable float-end badge bg-danger js-delete-file-local">effacer</a>')}),"\n  "]})});r.__checkName("dfmFilesLocalDisplayId");r["dfmFilesLocalDisplayId"]=new r("Template.dfmFilesLocalDisplayId",function(){var e=this;return b.If(function(){return g.dataMustache(e.lookup("notEquals"),e.lookup("display"),e.lookup("undefined"))},function(){return["\n    ",g.With(function(){return g.call(e.lookup("file"))},function(){return["\n      ",b.If(function(){return g.call(g.dot(e.lookup(".."),"nolink"))},function(){return["\n        ",b.View("lookup:eval",function(){return g.mustache(e.lookup("eval"),g.dot(e.lookup(".."),"display"))}),"\n      "]},function(){return["\n        ",v.A({href:function(){return g.mustache(e.lookup("link"))},target:"_blank",class:function(){return g.mustache(g.dot(e.lookup(".."),"class"))}},b.View("lookup:eval",function(){return g.mustache(e.lookup("eval"),g.dot(e.lookup(".."),"display"))})),"\n      "]}),"\n  "]},function(){return["\n    ",b.If(function(){return g.call(e.lookup("noImage"))},function(){return["\n      ",v.DIV({class:"position-relative"},"\n        ",v.DIV({class:"position-absolute text-center w-100 bold p-2"},b.View("lookup:alt",function(){return g.mustache(e.lookup("alt"))})),"\n        ",v.IMG({src:function(){return g.mustache(e.lookup("noImage"))},class:function(){return g.mustache(e.lookup("class"))},alt:function(){return g.mustache(e.lookup("alt"))}}),"\n      "),"\n    "]}),"\n    "]}),"\n  "]},function(){return["\n    ",g.With(function(){return g.call(e.lookup("file"))},function(){return["\n      ",b.If(function(){return g.call(g.dot(e.lookup(".."),"nolink"))},function(){return"\n\n      "},function(){return["\n        ",b.If(function(){return g.call(e.lookup("isImage"))},function(){return["\n          ",v.A({href:function(){return g.mustache(e.lookup("link"))},target:"_blank"},v.IMG({src:function(){return g.mustache(e.lookup("selectVersion"),g.dot(e.lookup(".."),"version"))},alt:function(){return g.mustache(e.lookup("name"))},class:function(){return g.mustache(g.dot(e.lookup(".."),"class"))}})),"\n        "]},function(){return["\n          ",v.A({href:function(){return g.mustache(e.lookup("link"))},target:"_blank"},v.Raw('<span class="material-symbols-outlined text-muted">description</span>')),v.Raw("<br>\n          "),v.DIV({class:"lead bold"},b.View("lookup:ext",function(){return g.mustache(e.lookup("ext"))})),"\n        "]}),"\n      "]}),"\n  "]},function(){return["\n    ",b.If(function(){return g.call(e.lookup("noImage"))},function(){return["\n      ",v.DIV({class:"position-relative"},"\n        ",v.DIV({class:"position-absolute text-center w-100 bold p-2"},b.View("lookup:alt",function(){return g.mustache(e.lookup("alt"))})),"\n        ",v.IMG({src:function(){return g.mustache(e.lookup("noImage"))},class:function(){return g.mustache(e.lookup("class"))},alt:function(){return g.mustache(e.lookup("alt"))}}),"\n      "),"\n    "]}),"\n    "]}),"\n  "]})})},
161"display.js":function(t,n,i){var o;i.link("../../lib/collections.js",{DfmFilesLocal:function(e){o=e}},0);i.link("./display.html");r.dfmFilesLocalDisplayMultiple.onCreated(function(){});r.dfmFilesLocalDisplayOne.onCreated(function(){var e=this;this.autorun(function(){var t=r.currentData();if(null==t?void 0:t.fileId)e.subscribe("dfmFilesLocalById",t.fileId)})});r.dfmFilesLocalDisplayOne.helpers({getLocalFile:function(){if(!this.fileId)return null;return o.findOne(this.fileId)},getLink:function(e){if(!this||!this.link)return"";return this.link("original","/")},isBrowserImage:function(){var e=["heic","heif","tiff","bmp"];if(this.extension&&e.includes(this.extension.toLowerCase()))return false;if(!this.type)return true;var t=["image/heic","image/heif","image/tiff","image/bmp"];return this.type.startsWith("image/")&&!t.includes(this.type.toLowerCase())}});r.dfmFilesLocalDisplayOne.events({"click .js-delete-file-local":function(){var t=this;dfm.confirm("effacer ce fichier ?",function(n){if(!n)return;e.callAsync("dfm.files.local.remove",t.fileId).then(function(){dfm.toastSuccess(dfm.trans("file deleted"))}).catch(function(e){dfm.toastError(e)})})}})}},uploadForm:{
161"input.html":function(e,t,n){n.link("./template.input.js",{"*":"*+"})},
161"template.input.js":function(){r.__checkName("dfmFilesLocalInput");r["dfmFilesLocalInput"]=new r("Template.dfmFilesLocalInput",function(){var e=this;return v.DIV({class:"mb-3 dfm-files-local-input"},v.Raw('\n    <label class="drop-zone">Upload</label>\n    '),v.INPUT({type:"file",name:function(){return g.mustache(e.lookup("inputName"))},accept:function(){return g.mustache(e.lookup("accept"))},class:"fileInput form-control",multiple:""}),"\n  ")})},
161"input.js":function(e,t,n){n.link("./input.html");r.dfmFilesLocalInput.events({"click .drop-zone":function(e,t){e.preventDefault();t.$(".fileInput").click()},"dragover .drop-zone":function(e){e.preventDefault();$(e.currentTarget).addClass("dragover")},"dragleave .drop-zone":function(e){e.preventDefault();$(e.currentTarget).removeClass("dragover")},"drop .drop-zone":function(e){$(e.currentTarget).removeClass("dragover")}})},
161"upload.html":function(e,t,n){n.link("./template.upload.js",{"*":"*+"})},
161"template.upload.js":function(){r.__checkName("dfmFilesLocalUploadForm");r["dfmFilesLocalUploadForm"]=new r("Template.dfmFilesLocalUploadForm",function(){var e=this;return v.DIV({class:"mb-3 dfm-file-upload"},"\n    ",v.LABEL(b._TemplateWith(function(){return{c:g.call("upload")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n    ",g.With(function(){return g.call(e.lookup("currentUpload"))},function(){return["\n      Uploading ",v.B(b.View("lookup:file.name",function(){return g.mustache(g.dot(e.lookup("file"),"name"))})),":\n      ",v.SPAN({id:"progress"},b.View("lookup:progress.get",function(){return g.mustache(g.dot(e.lookup("progress"),"get"))}),"%"),"\n      "]},function(){return[v.Raw('\n        <input name="dfm-file" type="file" class="fileInput form-control" multiple="">\n        '),b.If(function(){return g.call(e.lookup("inputSourceId"))},function(){return v.Raw('\n          <input class="webmasterFilesSourceId form-control" placeholder="sourceId">\n        ')}),"\n    "]}),"\n  ")})},
161"upload.js":function(t,n,r){r.link("./upload.html");var i;r.link("meteor/templating",{Template:function(e){i=e}},0);var o;r.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},1);var a;r.link("../../lib/collections.js",{DfmFilesLocal:function(e){a=e}},2);i.dfmFilesLocalUploadForm.onCreated(function(){this.currentUpload=new o(false)});i.dfmFilesLocalUploadForm.helpers({currentUpload:function(){return i.instance().currentUpload.get()}});i.dfmFilesLocalUploadForm.events({"change .fileInput":function(t,n){var r=function(r){var s=t.currentTarget.files[r];if(o.includes(s.type.toLowerCase())){dfm.toastError('Format "'.concat(s.name,"\" non support\xe9 (HEIC/HEIF). Convertissez en JPEG ou PNG avant l'upload."));return"continue"}var l={};if(i){l.sourceId=i;l.source=l.sourceId.split("_")[0]}l.uploadedAt=new Date;var u=a.insert({meta:l,file:s,chunkSize:"dynamic"},false);u.on("start",function(){n.currentUpload.set(this)});u.on("end",function(t,r){if(t)dfm.toastError("Error during upload: ".concat(t));else e.callAsync("dfm.files.upload",{fileId:r._id,mimeType:r["mime-type"],path:r.path,filename:r.name,size:r.size,ext:r.ext,meta:l}).then(function(e){if(n.data.callback)n.data.callback(e);else dfm.toast('File "'.concat(r.name,'" successfully uploaded'))});n.currentUpload.set(false)});u.start()};var i=$(t.currentTarget).next().val()||n.data.sourceId;var o=["image/heic","image/heif"];for(var s=0;s<t.currentTarget.files.length;s++)r(s)}})}}},lib:{
161"collections.js":function(t,n,r){r.export({DfmFilesLocal:function(){return d}});var i;r.link("meteor/ostrio:files",{FilesCollection:function(e){i=e}},0);var o,a,s;var l=/^(html?|xht(ml)?|shtml|svgz?|xml|xsl|js|mjs|php\d?|swf)$/i;var u=/(html|svg|xml|javascript|ecmascript|flash)/i;var c=/^(image\/(png|jpeg|gif|webp|avif)|video\/(mp4|webm)|audio\/(mpeg|mp4|ogg|wav|webm)|application\/pdf)$/;var f=(null==(s=e.settings.dfm)?void 0:null==(a=s.files)?void 0:null==(o=a.local)?void 0:o.storagePath)||"assets/app/uploads/uploadedFiles";var d=new i({storagePath:f,collectionName:"dfm_files_local",allowClientCode:false,onBeforeUpload:function(e){if(/heic|heif/i.test(e.extension))return"Les fichiers HEIC/HEIF ne sont pas support\xe9s. Convertissez en JPEG ou PNG.";if(l.test(e.extension||"")||u.test(e.type||""))return"Type de fichier non autoris\xe9.";return true},responseHeaders:function(e,t,n){var r={Connection:"keep-alive","Accept-Ranges":"bytes","X-Content-Type-Options":"nosniff"};if("206"===e){r.Pragma="private";r["Transfer-Encoding"]="chunked"}if("400"===e)r["Cache-Control"]="no-cache";if("416"===e)r["Content-Range"]="bytes */".concat(n&&n.size);var i=String(n&&n.type||"").toLowerCase().split(";")[0].trim();if(c.test(i))r["Content-Type"]=i;else{r["Content-Type"]="application/octet-stream";r["Content-Disposition"]="attachment"}return r}})}}},files:{client:{
161"helpers.js":function(e,t,n){var i;n.link("../lib/collections.js",{DfmFiles:function(e){i=e}},0);r.registerHelper("getDfmFiles",function(e){if(!e.hash.sourceId)return dfm.toastError("sourceId missing in template");var t="allFiles"===e.hash.sourceId?{}:{"meta.sourceId":e.hash.sourceId};var n={sort:{"meta.uploadedAt":-1}};if(e.hash.sortBy)n.sort["meta."+e.hash.sortBy]=-1;return i.find(t,n)});r.registerHelper("getDfmFilesCount",function(e){return i.find({"meta.sourceId":"fileConference_"+e}).count()})},
161"main.js":function(e,t,n){n.link("../lib/collections.js");n.link("./helpers.js");n.link("./display/display.js");n.link("../../files-local/client/main.js");n.link("./admin/files.js")},admin:{
161"files.html":function(e,t,n){n.link("./template.files.js",{"*":"*+"})},
161"template.files.js":function(){r.__checkName("webmasterFiles");r["webmasterFiles"]=new r("Template.webmasterFiles",function(){var e=this;return v.DIV({id:"webmaster-files",class:"container-fluid"},v.Raw("\n    <h1>Files</h1>\n\n    "),b._TemplateWith(function(){return{inputSourceId:g.call(true)}},function(){return g.include(e.lookupTemplate("dfmFilesLocalUploadForm"))}),"\n\n    ",v.TABLE({class:"table"},"\n      ",v.THEAD("\n        ",v.TR(v.Raw("\n          <th></th>\n          <th>name</th>\n          <th>type</th>\n          <th>source</th>\n          <th>sourceId</th>\n          <th>size</th>\n          <th>date</th>\n          "),b.Unless(function(){return g.dataMustache(e.lookup("equals"),e.lookup("delete"),false)},function(){return v.Raw("\n            <th></th>\n          ")}),"\n        "),"\n      "),"\n      ",v.TBODY("\n        ",b.Each(function(){return g.dataMustache(e.lookup("getDfmFiles"),g.kw({sourceId:"allFiles"}))},function(){return["\n          ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("type"),"local")},function(){return["\n            ",g.include(e.lookupTemplate("webmasterFilesLocalLine")),"\n          "]},function(){return["\n            ",v.TR({title:function(){return g.mustache(e.lookup("JSONstringify"),e.lookup("."))}},"\n              ",v.TD(b.If(function(){return g.call(e.lookup("isImage"))},function(){return v.IMG({src:function(){return g.mustache(e.lookup("url"))},alt:"",width:"50"})},function(){return[".",b.View("lookup:ext",function(){return g.mustache(e.lookup("ext"))})]})),"\n              ",v.TD(v.A({href:function(){return g.mustache(e.lookup("url"))},target:"_blank"},b.View("lookup:filename",function(){return g.mustache(e.lookup("filename"))}))),"\n              ",v.TD(b.View("lookup:type",function(){return g.mustache(e.lookup("type"))})),"\n              ",v.TD(b.View("lookup:meta.source",function(){return g.mustache(g.dot(e.lookup("meta"),"source"))})),"\n              ",v.TD(b.View("lookup:meta.sourceId",function(){return g.mustache(g.dot(e.lookup("meta"),"sourceId"))})),"\n              ",v.TD(b.View("lookup:humanFileSize",function(){return g.mustache(e.lookup("humanFileSize"),e.lookup("size"))})),"\n              ",v.TD(b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),e.lookup("insertAt"),"full")})),"\n              ",b.Unless(function(){return g.dataMustache(e.lookup("equals"),g.dot(e.lookup(".."),"delete"),false)},function(){return v.Raw('\n                <td class="text-end"><a class="badge bg-danger js-delete">delete</a></td>\n              ')}),"\n            "),"\n          "]}),"\n        "]}),"\n      "),"\n    "),v.Raw("\n    <div></div>\n  "))});r.__checkName("webmasterFilesLocalLine");r["webmasterFilesLocalLine"]=new r("Template.webmasterFilesLocalLine",function(){var e=this;return g.With(function(){return g.call(e.lookup("getLocalFile"))},function(){return["\n    ",v.TR({title:function(){return g.mustache(e.lookup("JSONstringify"),g.dot(e.lookup(".."),"path"))}},"\n      ",v.TD(v.IMG({src:function(){return g.mustache(e.lookup("link"))},alt:"",width:"50"})),"\n      ",v.TD(v.A({href:function(){return g.mustache(e.lookup("link"))},target:"_blank"},b.View("lookup:...filename",function(){return g.mustache(g.dot(e.lookup(".."),"filename"))}))),"\n      ",v.TD(b.View("lookup:...type",function(){return g.mustache(g.dot(e.lookup(".."),"type"))})),"\n      ",v.TD(b.View("lookup:meta.source",function(){return g.mustache(g.dot(e.lookup("meta"),"source"))})),"\n      ",v.TD(b.View("lookup:meta.sourceId",function(){return g.mustache(g.dot(e.lookup("meta"),"sourceId"))})),"\n      ",v.TD(b.View("lookup:humanFileSize",function(){return g.mustache(e.lookup("humanFileSize"),e.lookup("size"))})),"\n      ",v.TD(b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),g.dot(e.lookup("meta"),"uploadedAt"),"full")})),"\n      ",b.Unless(function(){return g.dataMustache(e.lookup("equals"),g.dot(e.lookup(".."),"delete"),false)},function(){return["\n        ",g.With(function(){return g.call(e.lookup(".."))},function(){return v.Raw('\n          <td class="text-end"><a class="clickable badge bg-danger js-delete">delete</a></td>\n        ')}),"\n      "]}),"\n    "),"\n    "]},function(){return["\n      ",v.TR("\n        ",v.TD({colspan:"7"},"File not found : ",b.View("lookup:fileId",function(){return g.mustache(e.lookup("fileId"))})," ",b.View("lookup:filename",function(){return g.mustache(e.lookup("filename"))})," ",b.View("lookup:pathLocal",function(){return g.mustache(e.lookup("pathLocal"))})),"\n      "),"\n  "]})})},
161"files.js":function(t,n,r){r.link("./files.html");var i;r.link("meteor/reactive-var",{ReactiveVar:function(e){i=e}},0);var o;r.link("meteor/templating",{Template:function(e){o=e}},1);var a;r.link("../../../files-local/lib/collections",{DfmFilesLocal:function(e){a=e}},2);o.webmasterFiles.onCreated(function(){var e=this;this.currentUpload=new i(false);this.autorun(function(){var t;var n=null==(t=app.globalSearch)?void 0:t.get();var r={};if(n)r.$or=[{filename:{$regex:n,$options:"i"}},{"meta.sourceId":{$regex:n,$options:"i"}}];e.subscribe("webmaster.dfmFiles.all",r,{limit:100})})});o.webmasterFiles.onRendered(function(){});o.webmasterFiles.helpers({currentUpload:function(){return o.instance().currentUpload.get()},isImage:function(){return this.mimeType&&this.mimeType.startsWith("image/")}});o.webmasterFiles.events({"click .js-delete":function(t){t.preventDefault();var n=this;dfm.confirm("delete this file ?",function(t){if(!t)return;e.callAsync("dfm.files.remove",n._id).catch(function(e){dfm.toastError(e)})},t.shiftKey)}});o.webmasterFilesLocalLine.onCreated(function(){this.subscribe("dfmFilesLocalByIds",[this.data.fileId])});o.webmasterFilesLocalLine.onRendered(function(){});o.webmasterFilesLocalLine.onDestroyed(function(){});o.webmasterFilesLocalLine.helpers({getLocalFile:function(){return a.findOne(this.fileId)}});o.webmasterFilesLocalLine.events({})}},display:{
161"display.html":function(e,t,n){n.link("./template.display.js",{"*":"*+"})},
161"template.display.js":function(){r.__checkName("dfmFilesDisplayMultiple");r["dfmFilesDisplayMultiple"]=new r("Template.dfmFilesDisplayMultiple",function(){var e=this;return b.Each(function(){return g.dataMustache(e.lookup("getDfmFiles"),g.kw({sourceId:e.lookup("sourceId")}))},function(){return["\n    ",b._TemplateWith(function(){return{fileId:g.call(e.lookup(".")),deleteHide:g.call(g.dot(e.lookup(".."),"deleteHide")),displaySize:g.call(g.dot(e.lookup(".."),"displaySize")),displayImage:g.call(g.dot(e.lookup(".."),"displayImage")),class:g.call(g.dot(e.lookup(".."),"classItem")),subscribe:g.call(false)}},function(){return g.include(e.lookupTemplate("dfmFilesDisplayOne"))}),"\n  "]})});r.__checkName("dfmFilesDisplayOne");r["dfmFilesDisplayOne"]=new r("Template.dfmFilesDisplayOne",function(){var e=this;return g.With(function(){return g.call(e.lookup("getFile"))},function(){return["\n    ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("type"),"local")},function(){return["\n      ",v.DIV("\n        ",b._TemplateWith(function(){return{fileId:g.call(e.lookup("fileId")),sourceId:g.call(g.dot(e.lookup(".."),"fileId")),deleteHide:g.call(g.dot(e.lookup(".."),"deleteHide")),deleteCallback:g.call(g.dot(e.lookup(".."),"deleteCallback")),displaySize:g.call(g.dot(e.lookup(".."),"displaySize")),displayImage:g.call(g.dot(e.lookup(".."),"displayImage")),class:g.call(g.dot(e.lookup(".."),"classItem"))}},function(){return g.include(e.lookupTemplate("dfmFilesLocalDisplayOne"))}),"\n      "),"\n    "]}),"\n    ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("type"),"googleStorage")},function(){return["\n      ",v.DIV({class:function(){return g.mustache(g.dot(e.lookup(".."),"classItem"))}},"\n        ",b.If(function(){return g.call(g.dot(e.lookup(".."),"displayImage"))},function(){return["\n          ",v.A({href:function(){return g.mustache(e.lookup("url"))},target:"_blank"},v.IMG({src:function(){return g.mustache(e.lookup("url"))},width:function(){return g.mustache(g.dot(e.lookup(".."),"displaySize"))}})),"\n        "]},function(){return["\n          ",b.Unless(function(){return g.call(g.dot(e.lookup(".."),"deleteHide"))},function(){return v.Raw('<a class="float-end badge bg-danger js-delete">effacer</a>')}),"\n          ",v.A({href:function(){return g.mustache(e.lookup("url"))},target:"_blank"},b.View("lookup:filename",function(){return g.mustache(e.lookup("filename"))})),"\n        "]}),"\n      "),"\n    "]}),"\n  "]},function(){return"error file not found\n  "})});r.__checkName("dfmFilesDisplayId");r["dfmFilesDisplayId"]=new r("Template.dfmFilesDisplayId",function(){var e=this;return b.If(function(){return g.dataMustache(e.lookup("notEquals"),e.lookup("display"),e.lookup("undefined"))},function(){return["\n    ",g.With(function(){return g.call(e.lookup("file"))},function(){return["\n      ",b.If(function(){return g.call(g.dot(e.lookup(".."),"nolink"))},function(){return["\n        ",b.View("lookup:eval",function(){return g.mustache(e.lookup("eval"),g.dot(e.lookup(".."),"display"))}),"\n      "]},function(){return["\n        ",v.A({href:function(){return g.mustache(e.lookup("link"))},target:"_blank",class:function(){return g.mustache(g.dot(e.lookup(".."),"class"))}},b.View("lookup:eval",function(){return g.mustache(e.lookup("eval"),g.dot(e.lookup(".."),"display"))})),"\n      "]}),"\n  "]},function(){return["\n    ",b.If(function(){return g.call(e.lookup("noImage"))},function(){return["\n      ",v.DIV({class:"position-relative"},"\n        ",v.DIV({class:"position-absolute text-center w-100 bold p-2"},b.View("lookup:alt",function(){return g.mustache(e.lookup("alt"))})),"\n        ",v.IMG({src:function(){return g.mustache(e.lookup("noImage"))},class:function(){return g.mustache(e.lookup("class"))},alt:function(){return g.mustache(e.lookup("alt"))}}),"\n      "),"\n    "]}),"\n    "]}),"\n  "]},function(){return["\n    ",g.With(function(){return g.call(e.lookup("file"))},function(){return["\n      ",b.If(function(){return g.call(g.dot(e.lookup(".."),"nolink"))},function(){return"\n\n      "},function(){return["\n        ",b.If(function(){return g.call(e.lookup("isImage"))},function(){return["\n          ",v.A({href:function(){return g.mustache(e.lookup("link"))},target:"_blank"},v.IMG({src:function(){return g.mustache(e.lookup("selectVersion"),g.dot(e.lookup(".."),"version"))},alt:function(){return g.mustache(e.lookup("name"))},class:function(){return g.mustache(g.dot(e.lookup(".."),"class"))}})),"\n        "]},function(){return["\n          ",v.A({href:function(){return g.mustache(e.lookup("link"))},target:"_blank"},v.Raw('<span class="material-symbols-outlined text-muted">description</span>')),v.Raw("<br>\n          "),v.DIV({class:"lead bold"},b.View("lookup:ext",function(){return g.mustache(e.lookup("ext"))})),"\n        "]}),"\n      "]}),"\n  "]},function(){return["\n    ",b.If(function(){return g.call(e.lookup("noImage"))},function(){return["\n      ",v.DIV({class:"position-relative"},"\n        ",v.DIV({class:"position-absolute text-center w-100 bold p-2"},b.View("lookup:alt",function(){return g.mustache(e.lookup("alt"))})),"\n        ",v.IMG({src:function(){return g.mustache(e.lookup("noImage"))},class:function(){return g.mustache(e.lookup("class"))},alt:function(){return g.mustache(e.lookup("alt"))}}),"\n      "),"\n    "]}),"\n    "]}),"\n  "]})})},
161"display.js":function(t,n,i){var o;i.link("../../lib/collections.js",{DfmFiles:function(e){o=e}},0);i.link("./display.html");r.dfmFilesDisplayMultiple.onCreated(function(){var e=this;this.autorun(function(){var t=r.currentData();if(null==t?void 0:t.sourceId)e.subscribe("dfmFilesBySourceId",t.sourceId)})});r.dfmFilesDisplayOne.onCreated(function(){var e=this;this.autorun(function(){var t=r.currentData();if((null==t?void 0:t.subscribe)===false)return;if(null==t?void 0:t.fileId)e.subscribe("dfmFilesByIds",[t.fileId])})});r.dfmFilesDisplayOne.helpers({getFile:function(){return o.findOne(this.fileId)},getFileOne:function(){if("string"==typeof this.fileOne)return o.findOne(this.fileOne);return o.findOne(this.fileOne._id)},file:function(){if(!this.id)return null;return o.findOne(this.id)},selectVersion:function(e){if(_.isEmpty(e))e="thumbnail";return this.link(e)},getLink:function(e){return this.link("original","/")}});r.dfmFilesDisplayOne.events({"click .js-delete":function(){var t=this;dfm.confirm("effacer ce fichier ?",function(n){if(!n)return;e.callAsync("dfm.files.remove",t.fileOne._id).catch(function(e){dfm.toastError(e)})})}})}}},lib:{
161"collections.js":function(e,t,n){n.export({DfmFiles:function(){return r},DfmYoutubeDownloads:function(){return o}});var r=new i.Collection("dfm_files");var o=new i.Collection("dfm_youtube_downloads")}}},"google-storage":{client:{
161"google-file-version.html":function(e,t,n){n.link("./template.google-file-version.js",{"*":"*+"})},
161"template.google-file-version.js":function(){r.__checkName("googleFileVersion");r["googleFileVersion"]=new r("Template.googleFileVersion",function(){var e=this;return b.If(function(){return g.dataMustache(e.lookup("and"),g.dataMustache(e.lookup("subsReady"),"subVersion"),e.lookup("url"))},function(){return["\n    ",v.IMG({src:function(){return g.mustache(e.lookup("getUrl"))},style:function(){return b.If(function(){return g.call(e.lookup("displayWidth"))},function(){return["width:",b.View("lookup:displayWidth",function(){return g.mustache(e.lookup("displayWidth"))}),"px"]},function(){return b.If(function(){return g.call(e.lookup("width"))},function(){return["width:",b.View("lookup:width",function(){return g.mustache(e.lookup("width"))}),"px"]})})}}),"\n  "]})})},
161"google-file-version.js":function(t,n,i){var o;i.link("meteor/davidfm:core/api/files/lib/collections.js",{DfmFiles:function(e){o=e}},0);i.link("./google-file-version.html");r.googleFileVersion.onCreated(function(){var e=this;this.autorun(function(){var t;if(!(null==(t=r.currentData())?void 0:t.url))return;e.subVersion=e.subscribe("dfmFiles.googleStorage.versionsByUrl",r.currentData().url,{})})});r.googleFileVersion.onRendered(function(){});r.googleFileVersion.onDestroyed(function(){});r.googleFileVersion.helpers({getUrl:function(){if(!this.url)return"";if(!this.url.startsWith("https://storage.googleapis.com/"))return this.url;if(this.width){var t=o.findOne({originalUrl:this.url,type:"version",width:this.width});if(t)return t.url;var n=o.findOne({url:this.url,original:true});if(!n)return this.url;if("uploaded"===n.status)e.callAsync("dfm.googleStorage.resize",{url:this.url,width:this.width})}return this.url}});r.googleFileVersion.events({})},
161"main.js":function(e,t,n){n.link("./google-file-version.js");n.link("../lib/routes.js")},admin:{
161"edit.html":function(e,t,n){n.link("./template.edit.js",{"*":"*+"})},
161"template.edit.js":function(){r.__checkName("adminGoogleFileEdit");r["adminGoogleFileEdit"]=new r("Template.adminGoogleFileEdit",function(){var e=this;return v.DIV({id:"google-files-edit",class:"container-fluid"},v.Raw("\n\n    <h1>Google File Edit</h1>\n\n    "),b._TemplateWith(function(){return g.call(e.lookup("breadcrumbLinks"))},function(){return g.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n    ",v.TABLE({class:"table table-hover mt-5"},"\n      ",v.THEAD("\n        ",v.TR(v.Raw("\n          <th></th>\n          <th>filename</th>\n          <th>source</th>\n          <th>size</th>\n          <th>date</th>\n        ")),"\n      "),"\n      ",v.TBODY("\n        ",v.TR("\n          ",v.TD(b.If(function(){return g.call(e.lookup("isImage"))},function(){return v.A({href:function(){return g.mustache(e.lookup("url"))},target:"_blank"},b._TemplateWith(function(){return{url:g.call(e.lookup("url")),width:g.call(100)}},function(){return g.include(e.lookupTemplate("googleFileVersion"))}))},function(){return"not an image"})),"\n          ",v.TD(v.A({href:function(){return g.mustache(e.lookup("url"))},target:"_blank"},b.View("lookup:filename",function(){return g.mustache(e.lookup("filename"))}))),"\n          ",v.TD(b.View("lookup:meta.source",function(){return g.mustache(g.dot(e.lookup("meta"),"source"))})),"\n          ",v.TD(b.If(function(){return g.call(e.lookup("size"))},function(){return b.View("lookup:humanFileSize",function(){return g.mustache(e.lookup("humanFileSize"),e.lookup("size"))})})),"\n          ",v.TD(b.If(function(){return g.call(e.lookup("insertAt"))},function(){return b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),e.lookup("insertAt"),"shortFullTime2")})})),"\n          ",b.Unless(function(){return g.dataMustache(e.lookup("equals"),g.dot(e.lookup(".."),"delete"),false)},function(){return v.Raw('\n            <td class="text-end"><a href="" class="badge bg-danger js-file-remove" title="delete"><span class="material-symbols-outlined">delete</span></a></td>\n          ')}),"\n        "),"\n      "),"\n    "),"\n\n    ",b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n      ",v.DIV({class:"card only-webmaster"},"\n        ",v.DIV({class:"card-body"},"\n          ",g.include(e.lookupTemplate("onlyWebmaster")),"\n          ",v.PRE("\n          ",b.View("lookup:JSONstringifyPre",function(){return g.mustache(e.lookup("JSONstringifyPre"),e.lookup("."))}),"\n          "),"\n        "),"\n      "),"\n    "]}),v.Raw('\n\n    <h2 class="mt-5">versions</h2>\n\n    <input name="width" class="form-control mt-2 mb-2" placeholder="create new size, enter a width">\n\n    '),v.TABLE({class:"table table-hover"},"\n      ",v.THEAD("\n        ",v.TR(v.Raw('\n          <th width="100">width</th>\n          <th></th>\n          <th></th>\n        ')),"\n      "),"\n      ",v.TBODY("\n        ",b.Each(function(){return g.call(e.lookup("getVersions"))},function(){return["\n          ",v.TR("\n            ",v.TD(b.View("lookup:width",function(){return g.mustache(e.lookup("width"))})),"\n            ",v.TD("\n              ",b.If(function(){return g.call(e.lookup("isImage"))},function(){return v.A({href:function(){return g.mustache(e.lookup("url"))},target:"_blank"},b._TemplateWith(function(){return{url:g.call(e.lookup("url")),width:g.call(e.lookup("width"))}},function(){return g.include(e.lookupTemplate("googleFileVersion"))}))},function(){return"not an image"}),"\n\n                ",b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n                  ",v.DIV({class:"card only-webmaster"},"\n                    ",v.DIV({class:"card-body"},"\n                      ",g.include(e.lookupTemplate("onlyWebmaster")),"\n                      ",v.PRE("\n                      ",b.View("lookup:JSONstringifyPre",function(){return g.mustache(e.lookup("JSONstringifyPre"),e.lookup("."))}),"\n                      "),"\n                    "),"\n                  "),"\n                "]}),"\n\n            "),"\n            ",b.Unless(function(){return g.dataMustache(e.lookup("equals"),g.dot(e.lookup(".."),"delete"),false)},function(){return v.Raw('\n              <td class="text-end"><a href="" class="badge bg-danger js-file-version-remove" title="delete"><span class="material-symbols-outlined">delete</span></a></td>\n            ')}),"\n          "),"\n        "]}),"\n      "),"\n    "),"\n\n  ")}
161)},
161"edit.js":function(t,n,i){var o;i.link("meteor/davidfm:core/api/files/lib/collections.js",{DfmFiles:function(e){o=e}},0);i.link("../google-file-version.js");i.link("../../../breadcrumb/client/main.js");i.link("./edit.html");r.adminGoogleFileEdit.onCreated(function(){var e=this;this.autorun(function(){var t;if(!(null==(t=r.currentData())?void 0:t.url))return;e.subVersion=e.subscribe("dfmFiles.googleStorage.versionsByUrl",r.currentData().url,{})})});r.adminGoogleFileEdit.onRendered(function(){});r.adminGoogleFileEdit.onDestroyed(function(){});r.adminGoogleFileEdit.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:a.path("home"),class:"",title:'<span class="material-symbols-outlined">cottage</span>'},{link:a.path("adminGoogleFilesList"),title:"Google Files"},{title:"edit"}])},isImage:function(){return this.mimeType&&this.mimeType.startsWith("image/")},getVersions:function(){return o.find({originalUrl:this.url,type:"version"})}});r.adminGoogleFileEdit.events({'change [name="width"]':function(t,n){var r=t.currentTarget.value.trim();if(!r)return;r=parseInt(r);if(!r)return;var i=n.data.url;t.currentTarget.value="";e.callAsync("dfm.googleStorage.resize",{url:i,width:r})},"click .js-file-remove":function(t){t.preventDefault();var n=this;dfm.confirm("delete this file ?",function(t){if(!t)return;e.callAsync("dfm.googleStorage.remove",n._id).then(function(e){a.go("adminGoogleFilesList")}).catch(function(e){dfm.toastError(e)})},t.shiftKey)},"click .js-file-version-remove":function(t){t.preventDefault();var n=this;dfm.confirm("delete this file ?",function(t){if(!t)return;e.callAsync("dfm.googleStorage.removeOneVersion",n._id).then(function(e){a.go("adminGoogleFilesList")}).catch(function(e){dfm.toastError(e)})},t.shiftKey)}})},
161"list.html":function(e,t,n){n.link("./template.list.js",{"*":"*+"})},
161"template.list.js":function(){r.__checkName("adminGoogleFilesList");r["adminGoogleFilesList"]=new r("Template.adminGoogleFilesList",function(){var e=this;return v.DIV({id:"google-files-list",class:"container-fluid"},v.Raw("\n    <h1>Google Files</h1>\n\n    "),b._TemplateWith(function(){return g.call(e.lookup("breadcrumbLinks"))},function(){return g.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n    \n\n    ",g.include(e.lookupTemplate("dfmGoogleStorageUploadForm")),"\n\n    ",v.DIV({class:"row"},v.Raw('\n      <div class="col"><input name="search" class="form-control" placeholder="search"></div>\n      '),v.DIV({class:"col"},v.INPUT({name:"limit",class:"form-control",placeholder:"limit",value:function(){return g.mustache(e.lookup("getLimit"))}})),"\n    "),"\n\n    ",v.TABLE({class:"table table-hover mt-5"},"\n      ",v.THEAD("\n        ",v.TR(v.Raw("\n          <th></th>\n          "),v.TH(b._TemplateWith(function(){return{name:g.call("adminGoogleFilesList"),orderBy:g.call("filename"),title:g.call("filename")}},function(){return g.include(e.lookupTemplate("orderBy"))})),v.Raw("\n          <th>source</th>\n          "),v.TH(b._TemplateWith(function(){return{name:g.call("adminGoogleFilesList"),orderBy:g.call("size"),title:g.call("size")}},function(){return g.include(e.lookupTemplate("orderBy"))})),"\n          ",v.TH(b._TemplateWith(function(){return{name:g.call("adminGoogleFilesList"),orderBy:g.call("insertAt"),title:g.call("date"),default:g.call(true)}},function(){return g.include(e.lookupTemplate("orderBy"))})),v.Raw("\n          <th></th>\n        ")),"\n      "),"\n      ",v.TBODY("\n        ",b.Each(function(){return g.call(e.lookup("getGoogleFiles"))},function(){return["\n          ",v.TR({title:function(){return g.mustache(e.lookup("JSONstringify"),e.lookup("."))}},"\n            ",v.TD(b.If(function(){return g.call(e.lookup("getLimit"))},function(){return b.If(function(){return g.call(e.lookup("isImage"))},function(){return v.A({href:function(){return g.mustache(e.lookup("url"))},target:"_blank"},b._TemplateWith(function(){return{url:g.call(e.lookup("url")),width:g.call(100)}},function(){return g.include(e.lookupTemplate("googleFileVersion"))}))},function(){return"not an image"})})),"\n            ",v.TD(v.A({href:function(){return g.mustache(e.lookup("url"))},target:"_blank"},b.View("lookup:filename",function(){return g.mustache(e.lookup("filename"))}))),"\n            ",v.TD(b.View("lookup:meta.source",function(){return g.mustache(g.dot(e.lookup("meta"),"source"))})),"\n            ",v.TD(b.If(function(){return g.call(e.lookup("size"))},function(){return b.View("lookup:humanFileSize",function(){return g.mustache(e.lookup("humanFileSize"),e.lookup("size"))})})),"\n            ",v.TD(b.If(function(){return g.call(e.lookup("insertAt"))},function(){return b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),e.lookup("insertAt"),"shortFullTime2")})})),"\n            ",b.Unless(function(){return g.dataMustache(e.lookup("equals"),g.dot(e.lookup(".."),"delete"),false)},function(){return["\n              ",v.TD({class:"text-end"},v.A({href:function(){return g.mustache(e.lookup("pathFor"),"adminGoogleFileEdit",g.kw({fileId:e.lookup("_id")}))},class:"badge bg-warning"},v.Raw('<span class="material-symbols-outlined">edit</span>')),v.Raw(' <a href="" class="badge bg-danger js-file-remove" title="delete"><span class="material-symbols-outlined">delete</span></a>')),"\n            "]}),"\n          "),"\n        "]},function(){return["\n          ",v.TR(v.Raw('\n            <td colspan="5" class="text-center">No files</td>\n          ')),"\n        "]}),"\n      "),"\n    "),"\n\n    ",b.Unless(function(){return g.call(e.lookup("getLimit"))},function(){return[v.Raw("\n      <h2>only online</h2>\n      "),v.TABLE({class:"table table-hover mt-5"},"\n        ",v.THEAD("\n          ",v.TR(v.Raw("\n            <th></th>\n            <th>path + filename</th>\n            <th>saved</th>\n          ")),"\n        "),"\n        ",v.TBODY("\n          ",b.Each(function(){return g.call(e.lookup("getGoogleFilesOnline"))},function(){return["\n            ",v.TR(v.Raw("\n              <td></td>\n              "),v.TD(v.A({href:function(){return g.mustache(e.lookup("url"))},target:"_blank"},b.View("lookup:filename",function(){return g.mustache(e.lookup("filename"))}))),"\n              ",v.TD(b.View("lookup:isSaved",function(){return g.mustache(e.lookup("isSaved"))})),"\n            "),"\n          "]},function(){return["\n            ",v.TR(v.Raw('\n              <td colspan="3" class="text-center">No files</td>\n            ')),"\n          "]}),"\n        "),"\n      "),v.Raw('\n      <a href="" class="js-next-online">next</a>\n    ')]}),"\n  ")})},
161"list.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);i.link("meteor/davidfm:core/api/google-storage/client/uploadForm/upload.js");var s;i.link("../../../files/lib/collections.js",{DfmFiles:function(e){s=e}},1);i.link("../google-file-version.js");i.link("../../../breadcrumb/client/main.js");i.link("./list.html");var l=new o({});var u=new o(50);var c=new o({});var f="adminGoogleFilesList";r.adminGoogleFilesList.onCreated(function(){this.files=new o([]);this.nextOnline=new o(void 0);this.currentUpload=new o(false);app.globalSearch.clear();this.autorun(function(){var e={};var t=app.globalSearch.get();if("string"==typeof t)e.$or=[{filename:{$regex:t,$options:"i"}}];l.set(e)});this.autorun(function(){var e={};var t=Session.get("sortBy_"+f);var n=Session.get("sortOrder_"+f);if("filename"===t)e["filename"]=-n;else e[t]=n;c.set(e)});this.autorun(function(){var t={limit:u.get(),sort:c.get()};e.subscribe("admin.dfmFiles.googleStorage.all",l.get(),t,{onReady:function(){log("subscribe files ok")},onError:function(e){log(e)}})})});r.adminGoogleFilesList.onRendered(function(){var t=this;this.autorun(function(){if(u.get())return;var n=t;e.callAsync("dfm.googleStorage.object.list").then(function(t){n.nextOnline.set(t[1]);var r=t[0].map(function(e){return{filename:e.name,mimeType:e.metadata.contentType,url:"https://storage.googleapis.com/"+e.bucket.name+"/"+e.name,size:e.metadata.size}});n.files.set(r);r.forEach(function(t){var n=s.findOne({url:t.url});if(!n)e.callAsync("dfm.googleStorage.addFromBucket",t).catch(function(e){dfm.toastError(e)})})}).catch(function(e){dfm.toastError(e)})})});r.adminGoogleFilesList.onDestroyed(function(){});r.adminGoogleFilesList.helpers({getLimit:function(){return u.get()},breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:a.path("home"),class:"",title:'<span class="material-symbols-outlined">cottage</span>'},{title:"Google Files"}])},isImage:function(){return this.mimeType&&this.mimeType.startsWith("image/")},isSaved:function(){var e=s.findOne({url:this.url});if(e)return"saved"},getGoogleFiles:function(){var e={type:"googleStorage",original:true};var t={sort:c.get()};var n=app.globalSearch.get();if("string"==typeof n)e.filename={$regex:n,$options:"i"};return s.find(e,t)},getGoogleFilesOnline:function(){return r.instance().files.get()}});r.adminGoogleFilesList.events({'keyup [name="search"]':function(e){e.preventDefault();var t=e.target.value;app.globalSearch.set(t)},'change [name="limit"]':function(e){e.preventDefault();var t=parseInt(e.target.value);if(isNaN(t))return;var n=u.get();if(t-n>100)return;log(t);u.set(t)},"click .js-file-remove":function(t){t.preventDefault();var n=this;dfm.confirm("delete this file ?",function(t){if(!t)return;e.callAsync("dfm.googleStorage.remove",n._id)},t.shiftKey)},"click .js-next-online":function(t){t.preventDefault();var n=r.instance();var i=n.nextOnline.get();if(!i)return;log(i);e.callAsync("dfm.googleStorage.object.list",i).then(function(t){log(t);n.nextOnline.set(t[1]);var r=t[0].map(function(e){return{filename:e.name,mimeType:e.metadata.contentType,url:"https://storage.googleapis.com/"+e.bucket.name+"/"+e.name,size:e.metadata.size}});n.files.set(r);log(n.files.get());r.forEach(function(t){var n=s.findOne({url:t.url});if(!n)e.callAsync("dfm.googleStorage.addFromBucket",t).catch(function(e){dfm.toastError(e)})})}).catch(function(e){dfm.toastError(e)})}})}},uploadForm:{
161"upload.html":function(e,t,n){n.link("./template.upload.js",{"*":"*+"})},
161"template.upload.js":function(){r.__checkName("dfmGoogleStorageUploadForm");r["dfmGoogleStorageUploadForm"]=new r("Template.dfmGoogleStorageUploadForm",function(){var e=this;return v.DIV({class:"mb-3 dfm-file-upload"},"\n    ",v.LABEL({class:"mb-2"},b._TemplateWith(function(){return{c:g.call("upload")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n    ",b.If(function(){return g.call(e.lookup("isUploading"))},function(){return["\n      Uploading ",v.B(b.View("lookup:uploadFilename",function(){return g.mustache(e.lookup("uploadFilename"))})),":\n      ",v.SPAN({id:"progress"},b.View("lookup:uploadProgress",function(){return g.mustache(e.lookup("uploadProgress"))}),"%"),"\n    "]},function(){return v.Raw('\n      <input name="dfm-file" type="file" class="fileInput form-control" multiple="">\n    ')}),"\n  ")})},
161"upload.js":function(t,n,r){r.link("./upload.html");var i;r.link("meteor/templating",{Template:function(e){i=e}},0);var o;r.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},1);function a(e,t,n,r,i,o,a){try{var s=e[o](a);var l=s.value}catch(e){n(e);return}if(s.done)t(l);else d.resolve(l).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new d(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)})}}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),"function"==typeof m&&(a[m.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,r&&(i=2&s[0]?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[2&s[0],i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;r=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}function u(e){var t="function"==typeof m&&m.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}i.dfmGoogleStorageUploadForm.onCreated(function(){this.uploadProgress=new o(0);this.isUploading=new o(false);this.uploadFilename=new o("")});i.dfmGoogleStorageUploadForm.helpers({isUploading:function(){return i.instance().isUploading.get()},uploadProgress:function(){return i.instance().uploadProgress.get()},uploadFilename:function(){return i.instance().uploadFilename.get()}});i.dfmGoogleStorageUploadForm.events({"change .fileInput":function(t,n){return s(function(){var r,i,o,a;return l(this,function(s){switch(s.label){case 0:r=function(r){var i,a,s,u,c,f,m,p;return l(this,function(l){switch(l.label){case 0:i=t.currentTarget.files[r];a={};if(o){a.sourceId=o;a.source=a.sourceId.split("_")[0]}n.isUploading.set(true);n.uploadProgress.set(0);n.uploadFilename.set(i.name);l.label=1;case 1:l.trys.push([1,5,,6]);return[4,e.callAsync("dfm.googleStorage.getSignedUploadUrl",{filename:i.name,mimeType:i.type,meta:a})];case 2:u=l.sent(),c=u.signedUrl,f=u.fileId;return[4,new d(function(e,t){var r=new XMLHttpRequest;r.upload.addEventListener("progress",function(e){if(e.lengthComputable)n.uploadProgress.set(Math.round(e.loaded/e.total*100))});r.addEventListener("load",function(){if(r.status>=200&&r.status<300)e();else t(new Error("Upload failed (HTTP ".concat(r.status,")")))});r.addEventListener("error",function(){return t(new Error("Network error during upload"))});r.open("PUT",c);r.setRequestHeader("Content-Type",i.type||"application/octet-stream");r.send(i)})];case 3:l.sent();return[4,e.callAsync("dfm.googleStorage.confirmUpload",{fileId:f,size:i.size})];case 4:m=l.sent();if(null==(s=n.data)?void 0:s.callback)n.data.callback(m);return[3,6];case 5:p=l.sent();dfm.toastError("Error during upload: ".concat(p.reason||p.message));return[3,6];case 6:n.isUploading.set(false);return[2]}})};o=null==(i=n.data)?void 0:i.sourceId;a=0;s.label=1;case 1:if(!(a<t.currentTarget.files.length))return[3,4];return[5,u(r(a))];case 2:s.sent();s.label=3;case 3:a++;return[3,1];case 4:return[2]}})})()}})}}},lib:{
161"routes.js":function(t,n,r){var i;r.link("../../files/lib/collections.js",{DfmFiles:function(e){i=e}},0);a.route("/admin/google/files",{name:"adminGoogleFilesList",layoutTemplate:"adminLayout",onBeforeAction:function(){r.link("../client/admin/list.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin())a.go("/");this.next()}});a.route("/admin/google/files/:fileId",{name:"adminGoogleFileEdit",layoutTemplate:"adminLayout",waitOn:function(){return[e.subscribe("admin.dfmFiles.googleStorage.oneById",this.params.fileId)]},onBeforeAction:function(){r.link("../client/admin/edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin())a.go("/");this.next()},data:function(){return i.findOne(this.params.fileId)}})}}},impersonate:{client:{
161"lib.js":function(t,n,i){i.export({DfmImpersonate:function(){return s}});var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);var a;i.link("meteor/tracker",{Tracker:function(e){a=e}},1);var s={_user:null,_token:null,_active:new o(false),do:function(t,n){var r={toUser:t};if(s._user){r.fromUser=s._user;r.token=s._token}e.callAsync("dfm.impersonate",r).then(function(t){if(!s._user){s._user=t.fromUser;s._token=t.token}s._active.set(t.toUser);e.connection.setUserId(t.toUser);if("function"==typeof n)n(null,t)}).catch(function(e){dfm.toastError(e);if("function"==typeof n)n(e)})},undo:function(e){s.do(s._user,function(t,n){if(!t){s._active.set(false);s._user=null;s._token=null}if("function"==typeof e)e(t,n&&n.toUser)})}};a.autorun(function(){if(e.userId())return;s._active.set(false);s._user=null;s._token=null});r.body.events({"click [data-impersonate]":function(e,t){e.preventDefault();var n=$(e.currentTarget).attr("data-impersonate");s.do(n)},"click [data-unimpersonate]":function(e,t){e.preventDefault();s.undo()}});r.registerHelper("isImpersonating",function(){return s._active.get()})},back:{
161"impersonateLogs.html":function(e,t,n){n.link("./template.impersonateLogs.js",{"*":"*+"})},
161"template.impersonateLogs.js":function(){r.__checkName("webmasterImpersonateLogs");r["webmasterImpersonateLogs"]=new r("Template.webmasterImpersonateLogs",function(){var e=this;return[v.Raw("<h1>Impersonate</h1>\n\n    <h4>En cours</h4>\n    "),b.Each(function(){return g.call(e.lookup("impersonateLogs"))},function(){return["\n        ",v.DIV(b.View("lookup:getUserFullname",function(){return g.mustache(e.lookup("getUserFullname"),e.lookup("fromUser"))})," (",b.View("lookup:fromUser",function(){return g.mustache(e.lookup("fromUser"))}),v.Raw(") &gt; "),b.View("lookup:getUserFullname",function(){return g.mustache(e.lookup("getUserFullname"),e.lookup("toUser"))})," (",b.View("lookup:toUser",function(){return g.mustache(e.lookup("toUser"))}),")"),"\n    "]},function(){return v.Raw('\n        <div class="text-muted">Aucune impersonation en cours</div>\n    ')}),v.Raw('\n\n    <h4 class="mt-4">Historique</h4>\n    '),b.Each(function(){return g.call(e.lookup("impersonateHistory"))},function(){return["\n        ",v.DIV(b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),e.lookup("date"))})," — ",b.View("lookup:fromName",function(){return g.mustache(e.lookup("fromName"))})," (",b.View("lookup:fromUser",function(){return g.mustache(e.lookup("fromUser"))}),v.Raw(") &gt; "),b.View("lookup:toName",function(){return g.mustache(e.lookup("toName"))})," (",b.View("lookup:toUser",function(){return g.mustache(e.lookup("toUser"))}),")"),"\n    "]},function(){return v.Raw('\n        <div class="text-muted">Aucun historique</div>\n    ')})]})},
161"impersonateLogs.js":function(e,t,n){var i,o;n.link("../../lib/collections.js",{DfmImpersonateLogs:function(e){i=e},DfmImpersonateHistory:function(e){o=e}},0);n.link("./impersonateLogs.html");r.webmasterImpersonateLogs.onCreated(function(){this.subscribe("dfmImpersonateHistory")});r.webmasterImpersonateLogs.onRendered(function(){});r.webmasterImpersonateLogs.helpers({impersonateLogs:function(){return i.find({},{sort:{date:-1}})},impersonateHistory:function(){return o.find({},{sort:{date:-1}})}});r.webmasterImpersonateLogs.events({})}}},lib:{
161"collections.js":function(e,t,n){n.export({DfmImpersonateLogs:function(){return i},DfmImpersonateHistory:function(){return o}});var r;n.link("meteor/mongo",{Mongo:function(e){r=e}},0);var i=new r.Collection("impersonate_logs");var o=new r.Collection("dfm_impersonate_history")}}},instances:{client:{
161"main.js":function(e,t,n){n.link("../lib/collections.js");n.link("../lib/metricsHistory.js")}},lib:{
161"collections.js":function(e,t,n){n.export({DfmInstances:function(){return r}});var r=new i.Collection("dfm_instances")},
161"metricsHistory.js":function(e,t,n){n.export({DfmMetricsHistory:function(){return r}});var r=new i.Collection("dfm_metrics_history")}}},languages:{client:{
161"helpers.js":function(e,t,n){var i;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){i=e}},0);function o(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}r.registerHelper("dfmLanguagesGetCurrent",function(){return dfm.languages.getCurrent()});r.registerHelper("dfmLanguagesGetPrimaryCode",function(){var e;return(null==(e=i.findOne({primary:true}))?void 0:e.code)||"fr"});r.registerHelper("getLanguages",function(){return i.find({},{sort:{rank:1}})});r.registerHelper("getLanguageFromCode",function(e){return dfm.getLanguageFromCode(e)});dfm.getLanguageFromCode=function(e){var t;return null==(t=i.findOne({code:e}))?void 0:t.text};r.registerHelper("getMyLanguage",function(){return dfm.languages.getCurrent()});r.registerHelper("getMyLanguageObj",function(){var e=dfm.languages.getCurrent();return i.findOne({code:e},{sort:{rank:1}})});r.registerHelper("trans",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dfm.languages.getCurrent();if((void 0===t?"undefined":o(t))==="object")t=dfm.languages.getCurrent();return dfm.trans(e,{lng:t})});r.registerHelper("codeToText",function(e){return dfm.languages.codeToText(e)});r.registerHelper("lngPathFor",function(e,t){return dfm.lngPathFor(e,t?t.hash:"")});r.registerHelper("lngPath",function(e){return dfm.lngPath(e)});r.registerHelper("dfmInlineTranslation",function(){return dfm.languages.inlineTranslation.get()});dfm.lngPathFor=function(e,t){t.lng=dfm.languages.getCurrent();return a.path(e,t)};dfm.lngPath=function(e){return"/"+dfm.languages.getCurrent()+"/"+e};dfm.lngRouterGo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a.go(dfm.lngPathFor(e,t))}},
161"main.js":function(e,t,n){n.link("../lib/collections.js");n.link("../lib/class.js");n.link("../lib/helpers.js");n.link("./helpers.js");n.link("./trans.js")},
161"trans.html":function(e,t,n){n.link("./template.trans.js",{"*":"*+"})},
161"template.trans.js":function(){r.__checkName("trans");r["trans"]=new r("Template.trans",function(){var e=this;return b.If(function(){return g.call(e.lookup("dfmInlineTranslation"))},function(){return["\n        ",v.SPAN({class:"dfm-linline-translation"},v.Raw('\n            <a class="btn btn-transalion-edit js-edit"><span class="material-symbols-outlined">edit</span></a>\n            '),v.SPAN("\n                ",b.If(function(){return g.call(e.lookup("html"))},function(){return["\n                    ",b.View("lookup:getTrans",function(){return g.makeRaw(g.mustache(e.lookup("getTrans")))}),"\n                "]},function(){return["\n                    ",b.View("lookup:getTrans",function(){return g.mustache(e.lookup("getTrans"))}),"\n                "]}),"\n            "),"\n        "),"\n    "]},function(){return["\n        ",b.If(function(){return g.call(e.lookup("html"))},function(){return["\n            ",b.View("lookup:getTrans",function(){return g.makeRaw(g.mustache(e.lookup("getTrans")))}),"\n        "]},function(){return["\n            ",b.View("lookup:getTrans",function(){return g.mustache(e.lookup("getTrans"))}),"\n        "]}),"\n        ",b.If(function(){return g.call(e.lookup("isMissingTranslation"))},function(){return["\n            ",v.A({class:"btn btn-sm btn-translation-add js-add-translation","data-code":function(){return g.mustache(e.lookup("c"))}},v.Raw('<span class="material-symbols-outlined" style="font-size: 16px; vertical-align: middle;">add_circle</span>')),"\n        "]}),"\n    "]})});r.__checkName("dfmInlineTranslation");r["dfmInlineTranslation"]=new r("Template.dfmInlineTranslation",function(){var e=this;return b.If(function(){return g.call(e.lookup("dfmInlineTranslation"))},function(){return["\n        ",b.If(function(){return g.call(e.lookup("editing"))},function(){return["\n            ",v.SPAN({class:"dfm-inline-translation-edit"},"\n                ",v.INPUT({name:"translation",type:"text",class:"form-control",value:function(){return g.mustache(e.lookup("getTrans"))}}),v.Raw('\n                <a class="btn btn-transalion-save js-save"><span class="material-symbols-outlined">save</span></a>\n                \x3c!-- <a class="btn btn-transalion-cancel js-cancel"><span class="material-symbols-outlined">cancel</span></a> --\x3e\n                <a class="btn btn-transalion-done js-done"><span class="material-symbols-outlined">done</span></a>\n            ')),"\n        "]}),"\n    "]})})},
161"trans.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);var a;i.link("../lib/collections.js",{DfmTranslations:function(e){a=e}},1);i.link("./trans.html");var s=new o(false);r.trans.onCreated(function(){});r.trans.onRendered(function(){});r.trans.helpers({getTrans:function(){return dfm.trans(this.c,{capitalize:this.capitalize})},isMissingTranslation:function(){if(!dfm.isSuperAdmin())return false;var e=dfm.languages.getPrimary();var t=a.findOne({code:this.c,lng:e});return!t}});r.trans.events({"click .js-edit":function(e,t){e.preventDefault();e.stopPropagation();if(s.get()===this.c)s.set(false);else s.set(this.c)},"click .js-add-translation":function(t,n){t.preventDefault();t.stopPropagation();var r=this.c;var i=dfm.languages.getPrimary();e.callAsync("dfm.translations.update",{code:r,lng:i,value:"",translatedBy:"manual"}).then(function(e){var t="/admin/translations?filter=".concat(encodeURIComponent(r));dfm.toastInfo({title:(null==e?void 0:e.skipped)?"Translation already exists":"Translation code added",message:'<a href="'.concat(t,'" target="_blank" style="color: white;"><span class="material-symbols-outlined" style="vertical-align: middle; font-size: 18px;">translate</span> Edit translation</a>'),autohide:false})}).catch(function(e){return dfm.toastError(e)})}});r.dfmInlineTranslation.onCreated(function(){});r.dfmInlineTranslation.onRendered(function(){});r.dfmInlineTranslation.onDestroyed(function(){});r.dfmInlineTranslation.helpers({editing:function(){return s.get()},getTrans:function(){return dfm.trans(s.get(),{capitalize:this.capitalize})}});r.dfmInlineTranslation.events({"click [name=translation]":function(e,t){e.preventDefault();e.stopPropagation()},"change [name=translation]":function(e,t){e.preventDefault();e.stopPropagation()},"click .js-cancel":function(e,t){e.preventDefault();e.stopPropagation();s.set(false)},"click .js-save":function(t,n){t.preventDefault();t.stopPropagation();var r=n.$("[name=translation]").val();e.callAsync("dfm.translations.update",{code:s.get(),lng:dfm.languages.getCurrent(),value:r,translatedBy:"manual",allowEmpty:true}).catch(function(e){dfm.toastError(e)});s.set(false)},"click .js-done":function(e,t){e.preventDefault();e.stopPropagation();s.set(false);dfm.languages.toggleInlineTranslation()}})},admin:{
161"language-edit.html":function(e,t,n){n.link("./template.language-edit.js",{"*":"*+"})},
161"template.language-edit.js":function(){r.__checkName("adminLanguageEdit");r["adminLanguageEdit"]=new r("Template.adminLanguageEdit",function(){var e=this;return[v.Raw("<h1>Language Edit</h1>\n\n    "),b._TemplateWith(function(){return g.call(e.lookup("breadcrumbLinks"))},function(){return g.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n    ",v.FORM("\n        ",v.DIV({class:"mb-3"},v.Raw("\n            <label>Code</label>\n            "),v.INPUT({name:"code",class:"form-control",placeholder:"code",value:function(){return g.mustache(e.lookup("code"))}}),"\n        "),"\n\n        ",v.DIV({class:"mb-3"},v.Raw("\n            <label>BCP 47</label>\n            "),v.INPUT({name:"bcp47",class:"form-control",placeholder:"bcp47",value:function(){return g.mustache(e.lookup("bcp47"))}}),"\n        "),"\n\n        ",v.DIV({class:"mb-3"},v.Raw("\n            <label>ISO 639-1</label>\n            "),v.INPUT({name:"iso639_1",class:"form-control",placeholder:"iso639_1",value:function(){return g.mustache(e.lookup("iso639_1"))}}),"\n        "),"\n\n        ",v.DIV({class:"mb-3"},v.Raw("\n            <label>ISO 639-3</label>\n            "),v.INPUT({name:"iso639_3",class:"form-control",placeholder:"iso639_3",value:function(){return g.mustache(e.lookup("iso639_3"))}}),"\n        "),"\n\n        ",v.DIV({class:"mb-3"},v.Raw("\n            <label>text</label>\n            "),v.INPUT({name:"text",class:"form-control",placeholder:"text",value:function(){return g.mustache(e.lookup("text"))}}),"\n        "),"\n\n        ",v.DIV({class:"mb-3"},v.Raw("\n            <label>flag</label>\n            "),v.INPUT({name:"flag",class:"form-control",placeholder:"flag",value:function(){return g.mustache(e.lookup("flag"))}}),"\n        "),v.Raw('\n\n        <div>\n            <button class="btn btn-primary" type="submit">Save</button>\n        </div>\n    '))]})},
161"language-edit.js":function(t,n,i){i.link("../../../breadcrumb/client/main.js");i.link("./language-edit.html");r.adminLanguageEdit.onCreated(function(){});r.adminLanguageEdit.onRendered(function(){});r.adminLanguageEdit.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:a.path("home"),class:"",title:'<span class="material-symbols-outlined">cottage</span>'},{link:a.path("adminDashboard"),class:"",title:"Admin"},{link:a.path("adminLanguages"),class:"",title:"Languages"},{title:"Language Edit"}])}});r.adminLanguageEdit.events({submit:function(t){t.preventDefault();var n=dfm.serialize(t.currentTarget);n.flag=n.flag.split("?")[0];e.callAsync("dfm.languages.update",this._id,n).then(function(){a.go("adminLanguages")}).catch(function(e){dfm.toastError(e)})}})},
161"languages.html":function(e,t,n){n.link("./template.languages.js",{"*":"*+"})},
161"template.languages.js":function(){r.__checkName("adminLanguages");r["adminLanguages"]=new r("Template.adminLanguages",function(){var e=this;return v.DIV({id:"webmaster-languages",class:"container-fluid"},v.Raw("\n        <h1>Languages</h1>\n\n        "),b._TemplateWith(function(){return g.call(e.lookup("breadcrumbLinks"))},function(){return g.include(e.lookupTemplate("dfmBreadcrumb"))}),v.Raw('\n\n        <div class=""><a href="https://fr.wikipedia.org/wiki/%C3%89tiquette_d%27identification_de_langues_IETF" target="_blank">BPC-47</a></div>\n        <div class=""><a href="https://fr.wikipedia.org/wiki/Liste_des_codes_ISO_639-1" target="_blank">ISO 639-1</a></div>\n        <div class="mb-4"><a href="https://www.andiamo.co.uk/resources/iso-language-codes/" target="_blank">www.andiamo.co.uk/resources/iso-language-codes</a> (code + region)</div>\n\n        <form id="language-add" class="mb-3">\n            <div class="row">\n                <div class="col">\n                    <input name="code" class="form-control" placeholder="code">\n                </div>\n                <div class="col">\n                    <button class="btn btn-primary" type="submit">add a language</button>\n                </div>\n            </div>\n\n        </form>\n\n        '),v.DIV({class:"card mt-5"},v.Raw('\n            <div class="card-header bg-primary text-white"> Languages <a class="clickable js-sort-alphabetically">sort alphabetically</a></div>\n            '),v.DIV({class:"card-body"},"\n                ",v.TABLE({class:"table table-hover"},"\n                    ",v.THEAD("\n                        ",v.TR(v.Raw("\n                            <th>#</th>\n                            <th>code</th>\n                            <th>detected?</th>\n                            \n                            <th>text to translate</th>\n                            <th>flag</th>\n                            <th>primary</th>\n                            <th>interface</th>\n                            <th></th>\n                        ")),"\n                    "),"\n                    ",v.TBODY({class:"sortable"},"\n                        ",b.Each(function(){return g.call(e.lookup("getLanguages"))},function(){return["\n                            ",v.TR({title:function(){return g.mustache(e.lookup("JSONstringify"),e.lookup("."))},"data-id":function(){return g.mustache(e.lookup("_id"))}},"\n                                ",v.TD({class:"text-muted"},b.View("lookup:rowNumber",function(){return g.mustache(e.lookup("rowNumber"),e.lookup("@index"))})),"\n                                ",v.TD(b.View("lookup:code",function(){return g.mustache(e.lookup("code"))})),"\n                                ",v.TD(b.View("lookup:languageNames",function(){return g.mustache(e.lookup("languageNames"))})),"\n                                \n                                ",v.TD(b.View("lookup:text",function(){return g.mustache(e.lookup("text"))})),"\n                                ",v.TD(v.IMG({src:function(){return g.mustache(e.lookup("flag"))},width:"20"})," ",b.View("lookup:flag",function(){return g.mustache(e.lookup("flag"))})),"\n                                ",v.TD(b.If(function(){return g.call(e.lookup("primary"))},function(){return v.Raw('<span class="material-symbols-outlined">done</span>')},function(){return v.Raw('<a class="js-set-primary"><span class="material-symbols-outlined">close</span></a>')})),"\n                                ",v.TD({class:"text-center"},v.A({class:"clickable js-set-interface"},b.If(function(){return g.call(e.lookup("interface"))},function(){return v.Raw('<span class="material-symbols-outlined bg-success text-white">done</span>')},function(){return v.Raw('<span class="material-symbols-outlined">close</span>')}))),"\n                                ",v.TD({class:"text-end"}," ",v.A({href:function(){return g.mustache(e.lookup("pathFor"),"adminLanguageEdit")},class:"badge bg-warning js-edit"},v.Raw('<span class="material-symbols-outlined">edit</span>')),v.Raw(' <a class="badge bg-danger js-delete"><span class="material-symbols-outlined">delete</span></a>')),"\n                            "),"\n                        "]}),"\n                    "),"\n                "),"\n            "),"\n        "),"\n\n    ")})},
161"languages.js":function(t,n,i){var o;i.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){o=e}},0);i.link("../../../breadcrumb/client/main.js");i.link("./languages.html");r.adminLanguages.onCreated(function(){});r.adminLanguages.onRendered(function(){dfm.sortable(".sortable",{update:function(t){var n=$(t).children();var r=[];n.each(function(e,t){r.push($(t).data("id"))});e.callAsync("dfm.languages.setRanks",r).catch(function(e){dfm.toastError(e.message)})}})});r.adminLanguages.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:a.path("home"),class:"",title:'<span class="material-symbols-outlined">cottage</span>'},{link:a.path("adminDashboard"),class:"",title:"Admin"},{title:"Languages"}])},rowNumber:function(e){return e+1},languageNames:function(){var e=new Intl.DisplayNames(["en"],{type:"language"});return e.of(this.code)}});r.adminLanguages.events({"submit #language-add":function(t){t.preventDefault();var n=dfm.serialize(t.currentTarget);e.callAsync("dfm.languages.insert",n).then(function(){t.currentTarget.reset()}).catch(function(e){dfm.toastError(e.message)})},"click .js-set-primary":function(t){t.preventDefault();e.callAsync("dfm.languages.setPrimary",this._id).catch(function(e){dfm.toastError(e.message)})},"click .js-set-interface":function(t){t.preventDefault();var n=!this.interface;e.callAsync("dfm.languages.update",this._id,{interface:n}).then(function(e){dfm.toastSuccess("Language updated")}).catch(function(e){dfm.toastError(e.message)})},"click .js-delete":function(t){t.preventDefault();var n=this;dfm.confirm("remove this language?",function(t){if(!t)return;e.callAsync("dfm.languages.removeOne",n._id).catch(function(e){dfm.toastError(e.message)})})},"click .js-sort-alphabetically":function(t){var n=o.find({},{sort:{code:1}}).fetch();n.forEach(function(t,n){e.callAsync("dfm.languages.update",t._id,{rank:n}).catch(function(e){dfm.toastError(e.message)})})}})},
161"translations.html":function(e,t,n){n.link("./template.translations.js",{"*":"*+"})},
161"template.translations.js":function(){r.__checkName("webmasterTranslations");r["webmasterTranslations"]=new r("Template.webmasterTranslations",function(){var e=this;return v.DIV({id:"webmaster-translations",class:"container-fluid"},v.Raw("\n        <h1>Translations</h1>\n        "),b._TemplateWith(function(){return g.call(e.lookup("breadcrumbLinks"))},function(){return g.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n        ",v.DIV({class:"float-end"},"\n            ",b.If(function(){return g.call(e.lookup("dfmInlineTranslation"))},function(){return["\n                ",v.A({class:"btn btn-sm btn-success js-inline-translation"},b._TemplateWith(function(){return{c:g.call("inlineTranslation")}},function(){return g.include(e.lookupTemplate("trans"))}),v.Raw(' <span class="material-symbols-outlined">done</span>')),"\n            "]},function(){return["\n                ",v.A({class:"btn btn-sm btn-warning text-dark js-inline-translation"},b._TemplateWith(function(){return{c:g.call("inlineTranslation")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n            "]}),v.Raw('\n            <a class="btn btn-sm btn-primary js-export">export...</a> <a class="btn btn-sm btn-warning js-import">import...</a>\n        ')),"\n        ",v.DIV({class:"row g-3 align-items-center"},"\n            ",v.DIV({class:"col-auto"},"\n                ",b.If(function(){return g.call(e.lookup("showTrad"))},function(){return v.Raw('\n                    <a class="btn btn-primary js-toggle-trads" data-show="false">hide all translations</a>\n                ')},function(){return v.Raw('\n                    <a class="btn btn-primary js-toggle-trads" data-show="true">show all translations</a>\n                ')}),"\n            "),"\n            ",v.DIV({class:"col-auto"},"\n                ",v.A({class:function(){return["btn btn-",g.mustache(e.lookup("equalsReturn"),e.lookup("onlyVoid"),true,"success","primary")," js-toggle-only-voids"]},"data-show":"true"},"only voids"),"\n            "),v.Raw('\n            <div class="col-auto">\n            </div>\n            '),b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n                ",v.DIV({class:"col-auto only-webmaster"},"\n                    ",v.A({class:function(){return["btn btn-",g.mustache(e.lookup("equalsReturn"),e.lookup("browse"),true,"success","primary")," js-browse-toggle"]},"data-show":"true"},g.include(e.lookupTemplate("onlyWebmaster"))," browse toggle"),"\n                    /admin/translations?filter=micro\n                "),v.Raw('\n                <div class="col-auto only-webmaster">\n                    <form id="trans-add"><input name="code" placeholder="add code"></form>\n                </div>\n            ')]}),"\n        "),v.Raw('\n\n        <div>\n            <input name="filter" class="form-control" placeholder="Type a text to filter by code or primary translation">\n        </div>\n\n        '),b.If(function(){return g.call(e.lookup("showImport"))},function(){return["\n            ",v.DIV({id:"import",class:"mt-2"},v.Raw("\n                <h2>Import</h2>\n                "),v.TEXTAREA({rows:"10",class:"form-control"}),"\n            "),"\n        "]}),"\n        ",b.If(function(){return g.call(e.lookup("showExport"))},function(){return["\n            ",v.DIV({id:"export",class:"mt-2"},v.Raw("\n                <h2>Export</h2>\n                "),v.TEXTAREA({rows:"10",class:"form-control",value:function(){return g.mustache(e.lookup("export"))}}),"\n            "),"\n        "]}),v.Raw('\n\n        <div class="mt-5">\n            <a class="btn btn-primary js-translate-all-except">translate all except</a>\n        </div>\n\n        '),v.TABLE({class:" mt-2 table table-hover"},"\n            ",v.THEAD("\n                ",v.TR(v.Raw('\n                    <th width="20"></th>\n                    <th>code</th>\n                    <th></th>\n                    '),b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return v.Raw("\n                        <th></th>\n                    ")}),v.Raw('\n                    <th>html</th>\n                    <th width="50"></th>\n                ')),"\n            "),"\n            ",v.TBODY("\n                ",b.Each(function(){return g.call(e.lookup("getTranslations"))},function(){return["\n                    ",b.If(function(){return g.call(e.lookup("showTrad"))},function(){return["\n                        ",g.include(e.lookupTemplate("webmasterTranslationsOne")),"\n                    "]},function(){return["\n                        ",v.TR({class:function(){return["translations-line ",g.mustache(e.lookup("equalsReturn"),e.lookup("voids"),true,"translation-void")]}},v.Raw('\n                            <td><input type="checkbox" class="js-checkbox-line"></td>\n                            '),v.TD(v.A({class:"clickable js-toggle-trad"}
161,b.View("lookup:code",function(){return g.mustache(e.lookup("code"))}))),"\n                            ",b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n                                ",v.TD(g.include(e.lookupTemplate("onlyWebmaster")),v.A({href:function(){return["/admin/translations?filter=",g.mustache(e.lookup("code"))]}},"filter")),"\n                            "]}),"\n                            ",v.TD(v.SPAN({class:function(){return["badge ",g.mustache(e.lookup("doneState"))]}},b.View("lookup:doneNb",function(){return g.mustache(e.lookup("doneNb"))})," / ",b.View("lookup:languagesCount",function(){return g.mustache(e.lookup("languagesCount"))}))),"\n                            ",v.TD(b.View("lookup:isHtml",function(){return g.mustache(e.lookup("isHtml"))})),v.Raw('\n                            <td class="text-end"><a class="btn btn-xs btn-danger js-delete"><span class="material-symbols-outlined">delete</span></a></td>\n                        ')),"\n                    "]}),"\n                "]}),"\n            "),"\n        "),"\n    ")});r.__checkName("webmasterTranslationsOne");r["webmasterTranslationsOne"]=new r("Template.webmasterTranslationsOne",function(){var e=this;return b.If(function(){return g.dataMustache(e.lookup("subsReady"),"translations")},function(){return["\n        ",v.TR({class:function(){return["translations-line ",g.mustache(e.lookup("equalsReturn"),e.lookup("voids"),true,"translation-void")]}},v.Raw("\n            <td></td>\n            "),v.TD(v.A({class:"clickable js-toggle-trad"},b.View("lookup:code",function(){return g.mustache(e.lookup("code"))})),"\n                ",v.DIV(v.INPUT({name:"code",id:"code-edit",class:"form-control",value:function(){return g.mustache(e.lookup("code"))}})),"\n            "),"\n            ",b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return["\n                ",v.TD(g.include(e.lookupTemplate("onlyWebmaster")),v.A({href:function(){return["/admin/translations?filter=",g.mustache(e.lookup("code"))]}},"filter")),"\n            "]}),"\n            ",v.TD(v.SPAN({class:function(){return["badge ",g.mustache(e.lookup("doneState"))]}},b.View("lookup:doneNb",function(){return g.mustache(e.lookup("doneNb"))})," / ",b.View("lookup:languagesCount",function(){return g.mustache(e.lookup("languagesCount"))}))),"\n            ",v.TD(b.If(function(){return g.call(e.lookup("isWebmaster"))},function(){return v.A({class:"clickable js-toggle-html"},b.View("lookup:isHtml",function(){return g.mustache(e.lookup("isHtml"))}))},function(){return b.View("lookup:html",function(){return g.mustache(e.lookup("html"))})})),v.Raw('\n            <td class="text-end"><a class="btn btn-xs btn-danger js-delete"><span class="material-symbols-outlined">delete</span></a></td>\n        ')),"\n        ",v.TR("\n            ",v.TD({colspan:"6"},"\n                ",v.DIV({class:"row"},v.Raw('\n                    <div class="col-2"></div>\n                    '),v.DIV({class:"col-10"},b.If(function(){return g.call(e.lookup("getPrimaryTranslation"))},function(){return v.Raw('<a class="btn btn-xs btn-primary js-translate-all-this-code" title="google">translate all this code</a> ')},function(){return v.Raw(' <span class="badge bg-danger">default missing</span>')})),"\n                "),"\n                ",b.Each(function(){return g.call(e.lookup("getLanguagesInterface"))},function(){return["\n                    ",g.With(function(){return g.dataMustache(e.lookup("getTranslation"),g.dot(e.lookup(".."),"code"),g.dot(e.lookup("."),"code"))},function(){return["\n                        ",v.DIV({class:"row mb-1 align-items-center"},"\n                            ",v.DIV({class:"col-1"},"\n                                ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("dfmLanguagesGetPrimaryCode"),g.dot(e.lookup(".."),"code"))},function(){return"\n                                    \n                                "},function(){return v.Raw('\n                                    <a class="btn btn-xs btn-warning js-google-translate">google</a>\n                                ')}),"\n                            "),"\n                            ",v.DIV({class:"col-1"},"\n                                ",v.LABEL({for:function(){return[g.mustache(e.lookup("c
161ode")),"_",g.mustache(e.lookup("lng"))]},class:"col-form-label"},b.View("lookup:lng",function(){return g.mustache(e.lookup("lng"))})),"\n                            "),"\n                            ",v.DIV({class:"col-9"},"\n                                ",v.INPUT({type:"text",id:function(){return[g.mustache(e.lookup("code")),"_",g.mustache(e.lookup("lng"))]},class:"translation form-control",value:function(){return g.mustache(e.lookup("value"))}}),"\n                            "),"\n                            ",v.DIV({class:"col-1"},"\n\n                                ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("translatedBy"),"manual")},function(){return v.Raw('\n                                    <span class="badge bg-success text-white">manual</span>\n                                ')},function(){return["\n                                    ",v.SPAN({class:"badge bg-warning text-dark"},b.View("lookup:translatedBy",function(){return g.mustache(e.lookup("translatedBy"))})),"\n                                "]}),"\n                            "),"\n                        "),"\n                    "]}),"\n                "]}),"\n            "),"\n        "),"\n    "]},function(){return["\n        ",v.TR(v.Raw('\n            <td colspan="5" class="text-center">loading...</td>\n        ')),"\n    "]})})},
161"translations.js":function(t,n,i){var o,s;i.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){o=e},DfmTranslations:function(e){s=e}},0);i.link("../../../breadcrumb/client/main.js");i.link("./translations.html");function l(e,t,n,r,i,o,a){try{var s=e[o](a);var l=s.value}catch(e){n(e);return}if(s.done)t(l);else d.resolve(l).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new d(function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)})}}function c(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),"function"==typeof m&&(a[m.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,r&&(i=2&s[0]?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[2&s[0],i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;r=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}var f=new ReactiveVar(false);var p=new ReactiveVar(false);var h=new ReactiveVar(false);var b=new ReactiveVar(void 0);var g=new ReactiveVar([]);var v=new ReactiveVar(void 0);var y=new ReactiveVar(false);r.webmasterTranslations.onCreated(function(){return u(function(){var e,t;return c(this,function(n){switch(n.label){case 0:b.set([]);this.subscribe("dfmTranslationsPrimary");e=v.set;t={};return[4,dfm.languages.getPrimaryAsync()];case 1:e.apply(v,[(t.lng=n.sent(),t)]);b.set(o.find({interface:true},{sort:{rank:1}}).fetch());return[2]}})}).call(this)});r.webmasterTranslations.onRendered(function(){return u(function(){var e,t,n,r;return c(this,function(i){switch(i.label){case 0:e=dfm.getQueryParam("filter");if(!e)return[3,2];$("[name=filter]").val(e);t=v.set;n={};r={};return[4,dfm.languages.getPrimaryAsync()];case 1:t.apply(v,[(n.$or=[(r.lng=i.sent(),r.code={$regex:e,$options:"i"},r),{lng:dfm.languages.getCurrent(),value:{$regex:e,$options:"i"}}],n)]);i.label=2;case 2:return[2]}})})()});r.webmasterTranslations.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:a.path("home"),class:"",title:'<span class="material-symbols-outlined">cottage</span>'},{title:"Translations"}])},languagesCount:function(){return b.get().length},getTranslations:function(){return s.find(v.get(),{sort:{code:1}})},doneState:function(){var e=b.get().length;if(this.doneNb)if(this.doneNb<e)this.doneState="bg-warning text-dark";else this.doneState="bg-success";else{this.doneState="bg-danger";this.voids=true}return this.doneState},showTrad:function(){return f.get()===this._id||true===f.get()},showExport:function(){return p.get()},showImport:function(){return h.get()},export:function(){var e=s.find({},{fields:{createdAt:0}}).map(function(e){delete e._id;return e});return JSON.stringify(e,null,"	")},onlyVoid:function(){return y.get()},browse:function(){return dfm.languages.isBrowsingTranslationsToInsert()},isEditing:function(){return Session.get("transEdit")===this._id},isHtml:function(){return this.html?"html":"text"}});r.webmasterTranslations.events({"change .translation":function(t){var n=$(t.currentTarget).val()||"";e.callAsync("dfm.translations.update",{code:this.code,lng:this.lng,value:n,translatedBy:"manual",allowEmpty:true}).then(function(){dfm.toastSuccess("Translation updated")}).catch(function(e){dfm.logError(JSON.stringify(e))})},"keyup [name=filter]":function(e){return u(function(){var t,n,r;return c(this,function(i){switch(i.label){case 0:t=$(e.currentTarget).val();n=v.set;r={};return[4,dfm.languages.getPrimaryAsync()];case 1:n.apply(v,[(r.lng=i.sent(),r.$or=[{code:{$regex:t,$options:"i"}},{value:{$regex:t,$options:"i"}}],r)]);return[2]}})})()},"click .js-edit":function(e){e.preventDefault();if(!dfm.isWebmaster())return;Session.set("transEdit",this._id)},"blur #code-edit":function(t){var n=$(t.currentTarget).val().trim();e.callAsync("dfm.translations.codeUpdate",this._id,n).then(function(e){dfm.toastSuccess("Translation code updated");Session.set("transEdit",null);window.location.href=a.path(a.current().route.getName(),{},{query:{filter:n}})}).catch(function(e){dfm.logError(JSON.stringify(e))})},"click .js-delete":function(t){t.preventDefault();var n=this;dfm.confirm("delete this line?",function(t){if(!t)return;e.callAsync("dfm.translations.remove",n.code).then(function(){dfm.toastSuccess("Translation deleted")}
161).catch(function(e){dfm.logError(JSON.stringify(e))})})},"click .js-toggle-trads":function(e){e.preventDefault();var t=e.currentTarget.dataset.show;if("true"===t)dfm.confirm("toggle all translations? it can take a long time...",function(e){if(!e)return;f.set(true)},e.shiftKey);else f.set(false)},"click .js-toggle-trad":function(e){e.preventDefault();f.set(f.get()===this._id?false:this._id)},"click .js-export":function(e){e.preventDefault();p.set(!p.get())},"click .js-import":function(e){e.preventDefault();h.set(!h.get())},"change #import textarea":function(t){var n=$(t.currentTarget).val();console.log(n);e.callAsync("dfm.translations.import",n).then(function(){dfm.toastSuccess("Translations imported")}).catch(function(e){dfm.logError(JSON.stringify(e))})},"click .js-reset":function(t){t.preventDefault();e.callAsync("dfm.translations.resetDisplayed").then(function(){dfm.toastSuccess("Translations reset")}).catch(function(e){dfm.logError(JSON.stringify(e))})},"click .js-toggle-only-voids":function(e){e.preventDefault();y.set(!y.get());if(y.get())$(".translations-line:not(.translation-void)").hide();else $(".translations-line").show()},"click .js-browse-toggle":function(e){e.preventDefault();dfm.languages.toggleBrowsingTranslationsToInsert()},"click .js-inline-translation":function(e,t){e.preventDefault();e.stopPropagation();dfm.languages.toggleInlineTranslation()},"submit #trans-add":function(t){t.preventDefault();var n=$(t.currentTarget).find("[name=code]").val();e.callAsync("dfm.translations.insert",{code:n}).then(function(e){dfm.toastSuccess("Translation added");$("[name=filter]").val(n).trigger("keyup")}).catch(function(e){dfm.logError(JSON.stringify(e))})},"click .js-translate-all-except":function(t){t.preventDefault();dfm.confirm("translate all words except checked?",function(t){if(!t)return;var n=dfm.toastWarning("Wait...");log(g.get());e.callAsync("translateAllExcept",g.get()).then(function(e){dfm.toastSuccess("All words translated in this language");dfm.toastRemove(n)}).catch(function(e){dfm.logError(JSON.stringify(e))})})},"click .js-checkbox-line":function(e){var t=e.currentTarget.checked;log(t,this.code);var n=g.get();if(t)n.push(this.code);else n.splice(n.indexOf(this.code),1);g.set(n)}});r.webmasterTranslationsOne.onCreated(function(){this.translations=this.subscribe("dfmTranslationsByCode",this.data.code)});r.webmasterTranslationsOne.onRendered(function(){});r.webmasterTranslationsOne.onDestroyed(function(){});r.webmasterTranslationsOne.helpers({getLanguagesInterface:function(){return b.get()},getTranslation:function(e,t){var n=s.findOne({code:e,lng:t});return{code:e,lng:t,value:null==n?void 0:n.value,translatedBy:null==n?void 0:n.translatedBy}},getPrimaryTranslation:function(){var e;return null==(e=s.findOne({code:this.code,lng:dfm.languages.getPrimary()}))?void 0:e.value},languagesCount:function(){return b.get().length},doneState:function(){var e=b.get().length;if(this.doneNb)if(this.doneNb<e)this.doneState="bg-warning text-dark";else this.doneState="bg-success";else{this.doneState="bg-danger";this.voids=true}return this.doneState},isHtml:function(){return this.html?"html":"text"}});r.webmasterTranslationsOne.events({"click .js-google-translate":function(t){var n;t.preventDefault();t.currentTarget.classList.toggle("disabled");var r=dfm.toastWarning("Wait...");var i=this.lng;var o=null==(n=s.findOne({code:this.code,lng:dfm.languages.getPrimary()}))?void 0:n.value;if(!o)return dfm.toastError("no primary text to translate");var a=this.code;e.callAsync("googleTranslate.translate",{text:o,target:i}).then(function(n){e.callAsync("dfm.translations.update",{code:a,lng:i,value:n,translatedBy:"google"}).then(function(){dfm.toastSuccess("Translation updated by google translate");dfm.toastRemove(r);t.currentTarget.classList.toggle("disabled")}).catch(function(e){dfm.logError(JSON.stringify(e))})})},"click .js-translate-all-this-code":function(t){var n;t.preventDefault();t.currentTarget.classList.toggle("disabled");var r=dfm.toastWarning("Wait...");console.log(this);var i=this.code;var a=o.find({interface:true}).fetch();var l=dfm.languages.getPrimary();var u=null==(n=s.findOne({code:i,lng:l}))?void 0:n.value;a.forEach(function(n,o){var s=n.code;if(i&&s!==l)e.callAsync("googleTranslate.translate",{text:u,target:s}).then(function(n){e.callAsync("dfm.translations.update",{code:i,lng:s,value:n,translatedBy:"google"}).then(function(){if(o===a.length-1){dfm.toastSuccess("Translation updated by google translate");dfm.toastRemove(r);t.currentTarget.classList.toggle("disabled")}}).catch(function(e){dfm.logError(JSON.stringify(e))})})})},"click .js-google-all-this-code":function(t){return u(function(){var n,r,i,a,l,u;return c(this,function(c){switch(c.label){case 0:t.preventDefault();t.currentTarget.classList.toggle("disabled");r=dfm.toastWarning("Wait...");i=this.code;a=o.find({interface:true}).fetch();return[4,dfm.languages.getPrimaryAsync()];case 1:l=c.sent();u=null==(n=s.findOne({code:i,lng:l}))?void 0:n.value;a.forEach(function(n,o){var s=n.code;if(i&&s!==l)e.callAsync("googleTranslate.translate",{text:u,target:s}).then(function(n){e.callAsync("dfm.translations.update",{code:i,lng:s,value:n,translatedBy:"google"}).then(function(){if(o===a.length-1){dfm.toastSuccess("Translation updated by google translate");dfm.toastRemove(r);t.currentTarget.classList.toggle("disabled")}}).catch(function(e){dfm.logError(JSON.stringify(e))})})});return[2]}})}).call(this)},"click .js-toggle-html":function(t){t.preventDefault();e.callAsync("dfm.translations.toggleHtml",{code:this.code,html:this.html}).then(function(e){dfm.toastSuccess("Translation updated")}
161).catch(function(e){dfm.toastError(JSON.stringify(e))})}})}}},lib:{
161"class.js":function(t,n,r){var i;r.link("./collections.js",{DfmLanguages:function(e){i=e}},0);var o;r.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},1);function a(e,t,n,r,i,o,a){try{var s=e[o](a);var l=s.value}catch(e){n(e);return}if(s.done)t(l);else d.resolve(l).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new d(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)})}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function c(e,t,n){if(t)u(e.prototype,t);if(n)u(e,n);return e}function f(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),"function"==typeof m&&(a[m.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,r&&(i=2&s[0]?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[2&s[0],i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;r=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}var p=function(){"use strict";function t(){l(this,t);this.defaultLanguage="fr";this.currentLanguage=new o(null);this.inlineTranslation=new o(false);this.rvIsBrowsingTranslationsToInsert=new o(false);this.initializeDefaultLanguage()}c(t,[{key:"initializeDefaultLanguage",value:function(){return s(function(){var e;return f(this,function(t){switch(t.label){case 0:return[4,this.getDefaultAsync()];case 1:e=t.sent();this.currentLanguage.set(e);return[2]}})}).call(this)}},{key:"getCurrent",value:function(){return this.currentLanguage.get()}},{key:"setCurrent",value:function(e){return s(function(){var t,n;return f(this,function(r){switch(r.label){case 0:if(e.includes("-"))e=e.split("-")[0];return[4,i.findOneAsync({code:e})];case 1:t=r.sent();if(!t)return[3,2];this.currentLanguage.set(e);return[3,4];case 2:return[4,i.findOneAsync({primary:true})];case 3:n=r.sent();if(n)this.currentLanguage.set(n.code);else this.currentLanguage.set(this.defaultLanguage);r.label=4;case 4:return[2]}})}).call(this)}},{key:"getAll",value:function(){return i.find({}).fetch()}},{key:"getAllAsync",value:function(){return s(function(){return f(this,function(e){switch(e.label){case 0:return[4,i.find({}).fetchAsync()];case 1:return[2,e.sent()]}})})()}},{key:"getAsync",value:function(e){return s(function(){return f(this,function(t){switch(t.label){case 0:return[4,i.findOneAsync({code:e})];case 1:return[2,t.sent()]}})})()}},{key:"getAllActiveAsync",value:function(){return s(function(){return f(this,function(e){switch(e.label){case 0:return[4,i.find({active:true}).fetchAsync()];case 1:return[2,e.sent()]}})})()}},{key:"getDefault",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.navigatorLanguage,n=void 0===t?true:t;var r;var i=this.getPrimary();var o=(n?null==(r=navigator.language)?void 0:r.split("-")[0]:i)||i;var a=this.getAll();if(-1===dfm.indexOf(a,o,"code"))return this.getPrimary();return o}},{key:"getDefaultAsync",value:function(){return s(function(){var t,n,r,i,o,a,s;var l=arguments;return f(this,function(u){switch(u.label){case 0:t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.navigatorLanguage,r=void 0===n?true:n;return[4,this.getPrimaryAsync()];case 1:o=u.sent();a=e.isClient?(r?null==(i=navigator.language)?void 0:i.split("-")[0]:o)||o:o;return[4,this.getAllAsync()];case 2:s=u.sent();if(-1!==dfm.indexOf(s,a,"code"))return[3,4];return[4,this.getPrimaryAsync()];case 3:return[2,u.sent()];case 4:return[2,a];case 5:return[2]}})}).apply(this,arguments)}},{key:"getPrimary",value:function(){var e=i.findOne({primary:true});return(null==e?void 0:e.code)||this.defaultLanguage}},{key:"getPrimaryAsync",value:function(){return s(function(){var e;return f(this,function(t){switch(t.label){case 0:return[4,i.findOneAsync({primary:true})];case 1:e=t.sent();return[2,(null==e?void 0:e.code)||this.defaultLanguage]}})}).call(this)}},{key:"toggleInlineTranslation",value:function(){this.inlineTranslation.set(!this.inl
161ineTranslation.get())}},{key:"toggleBrowsingTranslationsToInsert",value:function(){this.rvIsBrowsingTranslationsToInsert.set(!this.rvIsBrowsingTranslationsToInsert.get())}},{key:"isBrowsingTranslationsToInsert",value:function(){return this.rvIsBrowsingTranslationsToInsert.get()}},{key:"getMyLanguageAsync",value:function(){return s(function(){var t,n;return f(this,function(r){switch(r.label){case 0:return[4,e.users.findOneAsync(e.userId())];case 1:n=r.sent();return[2,null==n?void 0:null==(t=n.profile)?void 0:t.language]}})})()}},{key:"getUserLanguage",value:function(t){var n;if(!t)return;if("string"==typeof t)t=e.users.findOne(t);if(!t)return;return null==(n=t.profile)?void 0:n.language}},{key:"getUserLanguageAsync",value:function(t){return s(function(){var n;return f(this,function(r){switch(r.label){case 0:if(!t)return[2,void 0];if("string"!=typeof t)return[3,2];return[4,e.users.findOneAsync(t)];case 1:t=r.sent();r.label=2;case 2:if(!t)return[2,void 0];return[2,null==(n=t.profile)?void 0:n.language]}})})()}},{key:"codeToText",value:function(e){return s(function(){var t;return f(this,function(n){switch(n.label){case 0:return[4,this.getAsync(e)];case 1:return[2,(null==(t=n.sent())?void 0:t.text)||e]}})}).call(this)}}]);return t}();globalThis.dfm=globalThis.dfm||{};dfm.languages=new p},
161"collections.js":function(e,t,n){n.export({DfmLanguages:function(){return r},DfmTranslations:function(){return o}});var r=new i.Collection("dfm_languages");var o=new i.Collection("dfm_translations")},
161"helpers.js":function(t,n,r){var i,o;r.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){i=e},DfmTranslations:function(e){o=e}},0);function a(e,t,n,r,i,o,a){try{var s=e[o](a);var l=s.value}catch(e){n(e);return}if(s.done)t(l);else d.resolve(l).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new d(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)})}}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),"function"==typeof m&&(a[m.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,r&&(i=2&s[0]?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[2&s[0],i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;r=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}globalThis.dfm=globalThis.dfm||{};dfm.trans=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.capitalize,a=void 0===r?false:r,s=n.lng,l=void 0===s?void 0:s,u=n.html,c=void 0===u?false:u,f=n.variables,d=void 0===f?{}:f;if(!t)return;if("number"==typeof t)t+="";if(!l){var m;if(e.isClient)l=dfm.languages.getCurrent();if(e.isServer)l=(null==(m=i.findOne({primary:true}))?void 0:m.code)||"fr"}var p;if(e.isClient&&dfm.languages.isBrowsingTranslationsToInsert()){p=o.findOne({code:t,lng:dfm.languages.getPrimary()});if(!p)e.callAsync("dfm.translations.insert",{code:t,html:c})}if(e.isServer){p=o.findOne({code:t,lng:dfm.languages.getPrimary()});if(!p)e.callAsync("dfm.translations.insert",{code:t,html:c})}var h=o.findOne({code:t,lng:l});if(null==h?void 0:h.value)t=h.value;else{var b=i.findOne({primary:true});if(b){h=o.findOne({code:t,lng:b.code});if(null==h?void 0:h.value)t=h.value}}if(a)t=t.charAt(0).toUpperCase()+t.slice(1);if(d)for(var g in d)t=t.replace("{{".concat(g,"}}"),d[g]);if(c)t=t.replace(/(\bhttps?:\/\/[^\s]+)/g,'<a href="$1" target="_blank">$1</a>');return t};dfm.transAsync=function(t){return s(function(t){var n,r,a,s,u,c,f,d,m,p,h,b,g,v,y,w,k;var x=arguments;return l(this,function(l){switch(l.label){case 0:n=x.length>1&&void 0!==x[1]?x[1]:{},r=n.capitalize,a=void 0===r?false:r,s=n.lng,u=void 0===s?void 0:s,c=n.html,f=void 0===c?false:c,d=n.variables,m=void 0===d?{}:d;if(!t)return[2];if("number"==typeof t)t+="";if(!!u)return[3,2];if(e.isClient)u=dfm.languages.getCurrent();if(!e.isServer)return[3,2];return[4,i.findOneAsync({primary:true})];case 1:u=(null==(p=l.sent())?void 0:p.code)||"fr";l.label=2;case 2:if(!(e.isClient&&dfm.languages.isBrowsingTranslationsToInsert()))return[3,5];b=o.findOneAsync;g={code:t};return[4,dfm.languages.getPrimaryAsync()];case 3:return[4,b.apply(o,[(g.lng=l.sent(),g)])];case 4:h=l.sent();if(!h)e.callAsync("dfm.translations.insert",{code:t,html:f});l.label=5;case 5:if(!e.isServer)return[3,8];v=o.findOneAsync;y={code:t};return[4,dfm.languages.getPrimaryAsync()];case 6:return[4,v.apply(o,[(y.lng=l.sent(),y)])];case 7:h=l.sent();if(!h)e.callAsync("dfm.translations.insert",{code:t,html:f});l.label=8;case 8:return[4,o.findOneAsync({code:t,lng:u})];case 9:w=l.sent();if(!(null==w?void 0:w.value))return[3,10];t=w.value;return[3,13];case 10:return[4,i.findOneAsync({primary:true})];case 11:k=l.sent();if(!k)return[3,13];return[4,o.findOneAsync({code:t,lng:k.code})];case 12:w=l.sent();if(null==w?void 0:w.value)t=w.value;l.label=13;case 13:if(a)t=t.charAt(0).toUpperCase()+t.slice(1);if(m)for(var T in m)t=t.replace("{{".concat(T,"}}"),m[T]);if(f)t=t.replace(/(\bhttps?:\/\/[^\s]+)/g,'<a href="$1" target="_blank">$1</a>');return[2,t]}})}).apply(this,arguments)}}}},logs:{client:{
161"error-capture.js":function(){function e(e,t){if(null!=t&&void 0!==m&&t[m.hasInstance])return!!t[m.hasInstance](e);return e instanceof t}window.onerror=function(e,t,n,r,i){dfm.log({messages:[e],tags:["error","uncaught","window.onerror"],details:{source:t,lineno:n,colno:r,stack:null==i?void 0:i.stack}})};window.onunhandledrejection=function(t){var n=t.reason;var r=e(n,Error)?n.message:String(n);dfm.log({messages:[r],tags:["error","uncaught","unhandledRejection"],details:{stack:e(n,Error)?n.stack:void 0}})}},
161"main.js":function(e,t,n){n.link("../lib/collections.js");n.link("./error-capture.js")},admin:{
161"logs.html":function(e,t,n){n.link("./template.logs.js",{"*":"*+"})},
161"template.logs.js":function(){r.__checkName("webmasterLogs");r["webmasterLogs"]=new r("Template.webmasterLogs",function(){var e=this;return v.DIV({id:"webmaster-logs",class:"container-fluid"},v.Raw("\n    <h1>Logs</h1>\n    "),b._TemplateWith(function(){return g.call(e.lookup("breadcrumbLinks"))},function(){return g.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n    ",v.FORM({id:"form-filter",class:"mb-5 card"},v.Raw('\n      <div class="card-header">Filters</div>\n      '),v.DIV({class:"card-body"},"\n        ",v.DIV({class:"mb-3"},"\n          ",v.INPUT({class:"form-control",name:"query",placeholder:"query",value:function(){return g.mustache(e.lookup("getFilterQuery"))}}),"\n        "),"\n        ",v.DIV({class:"mb-3"},"\n          ",v.INPUT({class:"form-control",name:"options",placeholder:"options",value:function(){return g.mustache(e.lookup("getFilterOptions"))}}),"\n        "),v.Raw('\n        <div class="float-end">\n          <button type="button" class="btn btn-sm btn-danger js-remove-with-filter">remove with this filter</button>\n          <button type="button" class="btn btn-sm btn-danger js-remove-with-filter-except-one">except one</button>\n        </div>\n        <button class="btn btn-sm btn-primary">filter</button>\n        <button type="button" class="btn btn-sm btn-primary js-regex">regex</button>\n        <button type="button" class="btn btn-sm btn-light js-reset">reset</button>\n        <button type="button" class="btn btn-sm btn-warning js-warning">warning</button>\n        <button type="button" class="btn btn-sm btn-danger js-error">error</button>\n      ')),"\n    "),"\n    ",v.DIV({class:"card mb-4"},v.Raw('\n      <div class="card-header d-flex justify-content-between align-items-center">\n        <span>Ignored Patterns <small class="text-muted">(regex applied on error messages)</small></span>\n        <button type="button" class="btn btn-sm btn-success js-toggle-ignored-patterns">\n          <span class="material-symbols-outlined" style="font-size:18px;vertical-align:middle">settings</span>\n        </button>\n      </div>\n      '),v.DIV({class:"card-body js-ignored-patterns-body",style:"display:none"},v.Raw('\n        <form class="js-add-pattern mb-3">\n          <div class="input-group">\n            <input class="form-control form-control-sm" name="pattern" placeholder="regex pattern, ex: ^404: /robots\\.txt" required="">\n            <input class="form-control form-control-sm" name="description" placeholder="description (optional)" style="max-width:250px">\n            <button class="btn btn-sm btn-primary">Add</button>\n          </div>\n        </form>\n        '),v.TABLE({class:"table table-sm table-hover mb-3"},"\n          ",v.THEAD("\n            ",v.TR(v.Raw('\n              <th>Pattern</th>\n              <th>Description</th>\n              <th width="80">Active</th>\n              <th width="60"></th>\n            ')),"\n          "),"\n          ",v.TBODY("\n            ",b.Each(function(){return g.call(e.lookup("getIgnoredPatterns"))},function(){return["\n              ",v.TR("\n                ",v.TD(v.CODE(b.View("lookup:pattern",function(){return g.mustache(e.lookup("pattern"))}))),"\n                ",v.TD({class:"text-muted"},b.View("lookup:description",function(){return g.mustache(e.lookup("description"))})),"\n                ",v.TD("\n                  ",v.INPUT({type:"checkbox",class:"js-toggle-pattern-active",checked:function(){return g.mustache(e.lookup("activeChecked"))},"data-id":function(){return g.mustache(e.lookup("_id"))}}),"\n                "),"\n                ",v.TD("\n                  ",v.A({class:"btn btn-sm btn-danger js-delete-pattern","data-id":function(){return g.mustache(e.lookup("_id"))}},v.Raw('<span class="material-symbols-outlined" style="font-size:18px">delete</span>')),"\n                "),"\n              "),"\n            "]}),"\n          "),"\n        "),"\n        ",v.DIV({class:"border-top pt-3"},v.Raw('\n          <div class="d-flex gap-2 mb-2">\n            <button type="button" class="btn btn-sm btn-outline-secondary js-export-patterns">Export</button>\n            <button type="button" class="btn btn-sm btn-outline-primary js-import-patterns">Import</button>\n          </div>\n          '),v.TEXTAREA({class:"form-control form-control-sm js-patterns-textarea",rows:"4",placeholder:"Export/Import JSON",style:"display:none;font-family:monospace;font-size:12px"}),"\n        "),"\n      "),"\n    "),"\n\n    ",v.TABLE({class:"table table-hover"},"\n      ",v.THEAD("\n        ",v.TR(v.Raw('\n          <th width="240">Date</th>\n          <th>Messages</th>\n          <th width="140">connectionId</th>\n          <th width="300" class="text-end">Tags</th>\n          <th width="80"></th>\n        ')),"\n      "),"\n      ",v.TBODY("\n        ",b.Each(function(){return g.call(e.lookup("getLogs"))},function(){return["\n          ",v.TR({title:function(){return g.mustache(e.lookup("JSONstringify"),e.lookup("."))},class:function(){return g.mustache(e.lookup("lineClass"))}},"\n            ",v.TD({class:"text-muted"},"\n              ",b.View("lookup:formatDate",function(){return g.mustache(e.lookup("formatDate"),g.dot(e.lookup("created"),"at"),"full")}),v.Raw("<br>\n              "),b.If(function(){return g.call(g.dot(e.lookup("details"),"ipAddr"))},function(){return["\n                ",v.DIV(b.View("lookup:detail
161s.ipAddr",function(){return g.mustache(g.dot(e.lookup("details"),"ipAddr"))})),"\n              "]}),"\n            "),"\n            ",v.TD({class:"messages"},"\n              ",g.With(function(){return g.call(e.lookup("messages"))},function(){return["\n                ",b.Each(function(){return g.call(e.lookup("."))},function(){return[b.View("lookup:.",function(){return g.mustache(e.lookup("."))}),v.Raw("<br>")]}),"\n              "]}),"\n              ",b.If(function(){return g.call(g.dot(e.lookup("details"),"route","absolute"))},function(){return["\n                ",v.DIV(v.A({href:function(){return g.mustache(g.dot(e.lookup("details"),"route","absolute"))}},b.View("lookup:details.route.absolute",function(){return g.mustache(g.dot(e.lookup("details"),"route","absolute"))}))),"\n              "]}),"\n              ",b.If(function(){return g.call(g.dot(e.lookup("details"),"userAgent"))},function(){return["\n                ",v.DIV({title:function(){return g.mustache(g.dot(e.lookup("details"),"userAgent"))}},g.With(function(){return g.dataMustache(e.lookup("humanUserAgent"),g.dot(e.lookup("details"),"userAgent"))},function(){return[v.A({class:"badge bg-primary js-filter-ua clickable","data-reg":function(){return g.mustache(e.lookup("osRegex"))}},b.View("lookup:os",function(){return g.mustache(e.lookup("os"))}))," ",v.A({class:"badge bg-primary js-filter-ua clickable","data-reg":function(){return g.mustache(e.lookup("browserRegex"))}},b.View("lookup:browser",function(){return g.mustache(e.lookup("browser"))}))]})),"\n              "]}),"\n            "),"\n            ",v.TD(v.A({class:"badge bg-primary js-filter-connectionId clickable"},b.View("lookup:details.connectionId",function(){return g.mustache(g.dot(e.lookup("details"),"connectionId"))}))),"\n            ",v.TD("\n              ",b.If(function(){return g.dataMustache(e.lookup("count"),e.lookup("tags"))},function(){return["\n                ",v.DIV({class:"text-end"},b.Each(function(){return{_sequence:g.call(e.lookup("tags")),_variable:"tag"}},function(){return v.A({class:"js-filter-tag clickable","data-tag":function(){return g.mustache(g.dot(e.lookup("tag"),"tag"))}},b.If(function(){return g.dataMustache(e.lookup("equals"),g.dot(e.lookup("tag"),"tag"),"error")},function(){return v.SPAN({class:"badge bg-danger"},b.View("lookup:tag.tag",function(){return g.mustache(g.dot(e.lookup("tag"),"tag"))}))},function(){return v.SPAN({class:"badge bg-primary"},b.View("lookup:tag.tag",function(){return g.mustache(g.dot(e.lookup("tag"),"tag"))}))})," ")})),"\n              "]}),"\n            "),v.Raw('\n            <td>\n              <a class="btn btn-sm btn-danger js-delete"><span class="material-symbols-outlined">delete</span></a>\n            </td>\n          ')),"\n        "]}),"\n      "),"\n    "),"\n  ")})},
161"logs.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);var s,l;i.link("../../lib/collections.js",{DfmLogs:function(e){s=e},DfmLogIgnoredPatterns:function(e){l=e}},1);i.link("../../../breadcrumb/client/breadcrumb.js");i.link("./logs.html");i.link("./logs.less");function u(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){if(Array.isArray(e))return u(e)}function f(e){if(void 0!==m&&null!=e[m.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return c(e)||f(e)||b(e)||p()}function b(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}var g=new o([]);var v=new o({});var y=new o({});var w=new o({sort:{"created.at":-1},limit:50});r.webmasterLogs.onCreated(function(){var e=dfm.getQueryParam("tags");if(e){g.set([e]);var t=v.get();t.tags={$all:[e]};y.set(t)}var n=this;this.subscribe("dfm.logIgnoredPatterns");this.autorun(function(){n.subscribe("dfm.logs.forWebmaster",y.get(),w.get())})});r.webmasterLogs.onRendered(function(){});r.webmasterLogs.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:a.path("home"),class:"",title:'<span class="material-symbols-outlined">cottage</span>'},{title:"Logs"}])},getFilterQuery:function(){return JSON.stringify(y.get())},getFilterOptions:function(){return JSON.stringify(w.get())},getLogs:function(){var e=y.get();return s.find(e,w.get())},messages:function(){var e;return(null==(e=this.messages)?void 0:e.length)?this.messages:false},count:function(e){return null==e?void 0:e.length},lineClass:function(){var e;var t=(null==(e=this.tags)?void 0:e.map(function(e){return"string"==typeof e?e:e.tag}))||[];if(t.includes("url"))return"line-url";if(t.includes("error"))return"line-danger";if(t.includes("warning"))return"line-warning";if(t.includes("success"))return"line-success"},getIgnoredPatterns:function(){return l.find({},{sort:{"created.at":-1}})},activeChecked:function(){return this.active?"checked":""}});r.webmasterLogs.events({"click .js-regex":function(e,t){e.preventDefault();var n=$("[name=query]").val();console.log(n);g.set([]);v.set({messages:{$regex:n,$options:"i"}});y.set(v.get())},"click .js-filter-tag":function(e,t){e.preventDefault();var n=g.get();var r=t.$(e.currentTarget).data("tag");n=n.includes(r)?n.filter(function(e){return e!==r}):h(n).concat([r]);g.set(n);var i=v.get();if(n.length)i["tags.tag"]={$all:n};else if(i["tags.tag"])delete i["tags.tag"];y.set(i)},"click .js-filter-connectionId":function(e,t){e.preventDefault();g.set([]);v.set({"details.connectionId":this.details.connectionId});y.set(v.get())},"click .js-filter-ua":function(e,t){e.preventDefault();var n=$(e.currentTarget).data("reg");console.log(n);var r=g.get();var i={"details.userAgent":{$regex:n}};if(r.length)i.tags={$all:r};else if(i["tags.tag"])delete i["tags.tag"];y.set(i)},"click .js-reset":function(e,t){e.preventDefault();v.set({});g.set([]);y.set({});w.set({sort:{"created.at":-1},limit:50})},"click .js-warning":function(e,t){e.preventDefault();v.set({"tags.tag":"warning"});y.set({"tags.tag":"warning"});w.set({sort:{"created.at":-1},limit:50})},"click .js-error":function(e,t){e.preventDefault();v.set({"tags.tag":"error"});y.set({"tags.tag":"error"});w.set({sort:{"created.at":-1},limit:50})},"submit #form-filter ":function(e,t){e.preventDefault();var n=t.$(e.currentTarget).serializeJSON();v.set(JSON.parse(n.query));w.set(JSON.parse(n.options));y.set(JSON.parse(n.query))},"click .js-delete":function(t,n){t.preventDefault();e.callAsync("dfm.logs.remove",this._id).catch(function(e){dfm.toastError(e)})},"click .js-remove-with-filter":function(t,n){t.preventDefault();dfm.confirm("sure?",function(t){if(!t)return;var n=v.get();
161e.callAsync("dfm.logs.removeWithFilter",n).then(function(){v.set({});g.set([]);y.set({})}).catch(function(e){dfm.toastError(e)})})},"click .js-remove-with-filter-except-one":function(t,n){t.preventDefault();dfm.confirm("sure?",function(t){if(!t)return;var n=v.get();e.callAsync("dfm.logs.removeWithFilterExceptOne",n).catch(function(e){dfm.toastError(e)})})},"click .js-toggle-ignored-patterns":function(e,t){e.preventDefault();t.$(".js-ignored-patterns-body").slideToggle(200)},"submit .js-add-pattern":function(t,n){t.preventDefault();var r=n.$("[name=pattern]").val().trim();var i=n.$("[name=description]").val().trim();if(!r)return;try{new RegExp(r)}catch(e){return dfm.toastError("Invalid regex: "+e.message)}e.callAsync("dfm.logIgnoredPatterns.insert",r,i).then(function(){n.$("[name=pattern]").val("");n.$("[name=description]").val("");dfm.toastSuccess("Pattern added")}).catch(function(e){return dfm.toastError(e)})},"change .js-toggle-pattern-active":function(t,n){var r=$(t.currentTarget).data("id");var i=t.currentTarget.checked;e.callAsync("dfm.logIgnoredPatterns.update",r,{active:i}).catch(function(e){return dfm.toastError(e)})},"click .js-delete-pattern":function(t,n){t.preventDefault();var r=$(t.currentTarget).data("id");dfm.confirm("Delete this pattern?",function(t){if(!t)return;e.callAsync("dfm.logIgnoredPatterns.remove",r).catch(function(e){return dfm.toastError(e)})},t.shiftKey)},"click .js-export-patterns":function(e,t){e.preventDefault();var n=l.find({}).fetch().map(function(e){var t=e.pattern,n=e.description,r=e.active;return{pattern:t,description:n,active:r}});var r=t.$(".js-patterns-textarea");r.val(JSON.stringify(n,null,2)).slideDown(200).select()},"click .js-import-patterns":function(t,n){t.preventDefault();var r=n.$(".js-patterns-textarea");if(!r.is(":visible"))return void r.slideDown(200).attr("placeholder","Paste JSON here then click Import again").focus();var i;try{i=JSON.parse(r.val())}catch(e){return dfm.toastError("Invalid JSON")}if(!Array.isArray(i))return dfm.toastError("Expected a JSON array");var o=i.map(function(t){if(!t.pattern)return;return e.callAsync("dfm.logIgnoredPatterns.insert",t.pattern,t.description||"")});d.all(o.filter(Boolean)).then(function(){dfm.toastSuccess(i.length+" patterns imported");r.val("").slideUp(200)}).catch(function(e){return dfm.toastError(e)})}})},
161"logs.less":function(e,t,n){n.exports=e("meteor/modules").addStyles("#webmaster-logs .messages{max-width:0;overflow-x:auto}#webmaster-logs .badge{color:#fff}#webmaster-logs .line-danger{background-color:var(--bs-danger);color:#fff}#webmaster-logs .line-danger .text-muted{color:#fff!important}#webmaster-logs .line-warning{background-color:var(--bs-warning)}#webmaster-logs .line-success{background-color:var(--bs-success);color:#fff}#webmaster-logs .line-success .text-muted{color:#fff!important}#webmaster-logs .line-info{background-color:var(--bs-info);color:#fff}#webmaster-logs .line-info .text-muted{color:#fff!important}#webmaster-logs .line-url{background-color:var(--bs-gray-100)}")}}},lib:{
161"collections.js":function(e,t,n){n.export({DfmLogs:function(){return i},DfmLogIgnoredPatterns:function(){return o}});var r;n.link("meteor/mongo",{Mongo:function(e){r=e}},0);var i=new r.Collection("dfm_logs");var o=new r.Collection("dfm_log_ignored_patterns")}}},messages:{client:{
161"main.js":function(e,t,n){n.link("../lib/collections.js");n.link("./ui/front.js")},ui:{
161"back.html":function(e,t,n){n.link("./template.back.js",{"*":"*+"})},
161"template.back.js":function(){r.__checkName("webmasterMessagesBack");r["webmasterMessagesBack"]=new r("Template.webmasterMessagesBack",function(){var e=this;return v.DIV({id:"webmaster-message"},v.Raw('\n    <h1><span class="material-symbols-outlined">announcement</span> Messages</h1>\n\n    '),b._TemplateWith(function(){return g.call(e.lookup("breadcrumbLinks"))},function(){return g.include(e.lookupTemplate("dfmBreadcrumb"))}),v.Raw('\n\n    <button class="btn btn-primary mt-5 js-add"><span class="material-symbols-outlined">notifications</span> Add a message</button>\n    '),v.DIV("\n      ",b.Each(function(){return g.call(e.lookup("messages"))},function(){return["\n        ",g.include(e.lookupTemplate("webmasterMessageBack")),"\n      "]}),"\n    "),"\n  ")});r.__checkName("webmasterMessageBack");r["webmasterMessageBack"]=new r("Template.webmasterMessageBack",function(){var e=this;return v.FORM("\n\n    ",v.DIV({class:function(){return["card bg-light float-start my-2 me-4 p-2 type-",g.mustache(e.lookup("type"))]}},"\n\n      ",v.DIV({class:"card-title"},"\n        ",v.DIV({class:"icon text-primary"},"\n          ",b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("type"),"alert")},function(){return v.Raw('\n            <span class="material-symbols-outlined">notifications</span>\n          ')},function(){return v.Raw('\n            <span class="material-symbols-outlined">message</span>\n          ')}),"\n        "),"\n\n        ",v.DIV({class:"mt-3"},v.Raw('\n          <label class="form-label">Title</label>\n          '),v.INPUT({value:function(){return g.mustache(e.lookup("title"))},name:"title",class:"form-control js-change-text"}),"\n        "),"\n      "),"\n\n      ",v.DIV({class:"mt-2 message"},v.Raw('\n        <label class="form-label">Message</label>\n        '),v.TEXTAREA({name:"message",class:"form-control js-change-text",rows:"10",value:function(){return g.mustache(e.lookup("message"))}}),"\n      "),"\n\n      ",v.DIV({class:"mt-4 options"},v.Raw('\n        <label class="form-label">Type</label>\n        '),v.DIV("\n          ",v.LABEL(v.INPUT(v.Attrs({type:"radio",name:"type",value:"alert",class:"js-change-type"},function(){return g.attrMustache(e.lookup("isRadioChecked"),"type","alert")}))," Alert"),"\n          ",v.LABEL(v.INPUT(v.Attrs({type:"radio",name:"type",value:"message",class:"js-change-type"},function(){return g.attrMustache(e.lookup("isRadioChecked"),"type","message")}))," Message"),"\n        "),"\n      "),"\n\n      ",v.DIV({class:"mt-4 checkbox"},"\n        ",v.LABEL(v.INPUT(v.Attrs({type:"checkbox",name:"autoCloseOnStartup",value:"1",class:"js-change-autoCloseOnStartup"},function(){return g.attrMustache(e.lookup("equalsReturn"),e.lookup("autoCloseOnStartup"),true,"checked")}))," Auto close on startup"),"\n      "),"\n\n      ",v.DIV({class:"mt-4 checkbox"},"\n        ",v.LABEL(v.INPUT(v.Attrs({type:"checkbox",name:"disableOnClose",value:"1",class:"js-change-disableOnClose"},function(){return g.attrMustache(e.lookup("equalsReturn"),e.lookup("disableOnClose"),true,"checked")}))," disable on close"),"\n      "),"\n\n      ",v.DIV({class:"mt-4"},v.Raw('\n        <label for="" class="form-label">Target</label>\n        '),v.SELECT({name:"target",class:"form-control js-target"},"\n          ",v.OPTION(v.Attrs({value:"all"},function(){return g.attrMustache(e.lookup("isSelectedOption"),"all",e.lookup("target"))}),"all"),"\n          ",v.OPTION(v.Attrs({value:"admin"},function(){return g.attrMustache(e.lookup("isSelectedOption"),"admin",e.lookup("target"))}),"admin"),"\n          ",v.OPTION(v.Attrs({value:"superAdmin"},function(){return g.attrMustache(e.lookup("isSelectedOption"),"superAdmin",e.lookup("target"))}),"superAdmin"),"\n          ",v.OPTION(v.Attrs({value:"webmaster"},function(){return g.attrMustache(e.lookup("isSelectedOption"),"webmaster",e.lookup("target"))}),"webmaster"),"\n        "),"\n      "),"\n\n      ",v.DIV({class:"mt-4"},v.Raw('\n        <label for="" class="form-label">Id (unique)</label>\n        '),v.INPUT({name:"id",value:function(){return g.mustache(e.lookup("id"))},class:"form-control",placeholder:"id"}),"\n      "),"\n\n      ",v.DIV({class:"mt-4 buttons"},v.Raw('\n        <button class="btn btn-danger js-delete float-end"><span class="material-symbols-outlined">delete</span></button>\n        '),b.If(function(){return g.call(e.lookup("active"))},function(){return v.Raw('\n          <button class="btn btn-danger js-set"><span class="material-symbols-outlined">notifications_off</span> Unset</button>\n        ')},function(){return v.Raw('\n          <button class="btn btn-primary js-set"><span class="material-symbols-outlined">notifications</span> Set</button>\n        ')}),"\n      "),"\n\n    "),"\n\n  ")}
161)},
161"back.js":function(t,n,i){var o;i.link("../../lib/collections",{DfmWebmasterMessages:function(e){o=e}},0);i.link("../../../breadcrumb/client/main.js");i.link("./back.less");i.link("./back.html");r.webmasterMessagesBack.onCreated(function(){});r.webmasterMessagesBack.onRendered(function(){});r.webmasterMessagesBack.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:a.path("home"),class:"",title:'<span class="material-symbols-outlined">cottage</span>'},{link:a.path("adminDashboard"),class:"",title:"Admin"},{link:a.path("webmasterDashboard"),class:"",title:"Webmaster"},{class:"",title:"Messages"}])},messages:function(){return o.find()},checked:function(e){return this.type===e?"checked":""}});r.webmasterMessagesBack.events({"click .js-add":function(){e.callAsync("webmasterMessagesInsert")}});r.webmasterMessageBack.events({"click .js-set":function(t,n){t.preventDefault();e.callAsync("webmasterMessagesUpdate",this._id,{active:!this.active})},"click .js-delete":function(t,n){t.preventDefault();var r=this;dfm.confirm("delete this message?",function(t){if(!t)return;e.callAsync("webmasterMessagesRemove",r._id)})},"change .js-target":function(t,n){var r=t.currentTarget.value;e.callAsync("webmasterMessagesUpdate",this._id,{target:r}).then(function(){dfm.toast("updated")})},"change .js-change-type":function(t,n){var r=n.$("[name=type]:checked").val();e.callAsync("webmasterMessagesUpdate",this._id,{type:r}).then(function(){dfm.toast("updated")})},"change .js-change-text":function(t,n){var r=n.$("[name=title]").val();var i=n.$("[name=message]").val();e.callAsync("webmasterMessagesUpdate",this._id,{title:r,message:i}).then(function(){dfm.toast("updated")})},"click .js-change-autoCloseOnStartup":function(t,n){t.preventDefault();var r=n.$(t.currentTarget).prop("checked");e.callAsync("webmasterMessagesUpdate",this._id,{autoCloseOnStartup:r})},"click .js-change-disableOnClose":function(t,n){t.preventDefault();var r=n.$(t.currentTarget).prop("checked");e.callAsync("webmasterMessagesUpdate",this._id,{disableOnClose:r})},"change input[name=id]":function(t,n){var r=n.$("[name=id]").val();e.callAsync("webmasterMessagesUpdate",this._id,{id:r}).then(function(){dfm.toast("updated")})}})},
161"back.less":function(e,t,n){n.exports=e("meteor/modules").addStyles("#webmaster-message .type-alert .card-title .material-symbols-outlined{color:#dc3545}")},
161"front.html":function(e,t,n){n.link("./template.front.js",{"*":"*+"})},
161"template.front.js":function(){r.__checkName("dfmMessages");r["dfmMessages"]=new r("Template.dfmMessages",function(){var e=this;return[g.include(e.lookupTemplate("dfmWebmasterMessages")),"\n  ",g.include(e.lookupTemplate("dfmToast")),"\n  ",g.include(e.lookupTemplate("dfmConnectionIssue")),"\n  ",g.include(e.lookupTemplate("dfmInlineTranslation"))]});r.__checkName("dfmWebmasterMessages");r["dfmWebmasterMessages"]=new r("Template.dfmWebmasterMessages",function(){var e=this;return v.DIV({id:"dfm-webmaster-messages",class:"toast-container position-fixed bottom-0 start-0 p-3",draggable:"true"},"\n    ",b.Each(function(){return g.call(e.lookup("messages"))},function(){return["\n      ",g.include(e.lookupTemplate("dfmWebmasterMessage")),"\n    "]}),"\n  ")});r.__checkName("dfmWebmasterMessage");r["dfmWebmasterMessage"]=new r("Template.dfmWebmasterMessage",function(){var e=this;return v.DIV({class:function(){return["toast ",g.mustache(e.lookup("getTheme"))]},role:"alert","aria-live":"assertive","aria-atomic":"true"},"\n    ",b.If(function(){return g.call(e.lookup("title"))},function(){return["\n      ",v.DIV({class:"toast-header"},"\n        ",b.If(function(){return g.call(e.lookup("img"))},function(){return v.Raw('<img src="..." class="rounded me-2" alt="...">')}),"\n        ",v.STRONG({class:"me-auto"},b.View("lookup:title",function(){return g.mustache(e.lookup("title"))})),v.Raw('\n        <small class="text-muted"></small>\n        <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>\n      ')),"\n    "]}),"\n    ",b.If(function(){return g.call(e.lookup("message"))},function(){return["\n      ",v.DIV({class:"toast-body"},"\n        ",b.View("lookup:message",function(){return g.makeRaw(g.mustache(e.lookup("message")))}),"\n      "),"\n    "]}),"\n  ")})},
161"front.js":function(t,n,i){var o;i.link("../../lib/collections",{DfmWebmasterMessages:function(e){o=e}},0);i.link("./front.html");i.link("./front.less");r.dfmWebmasterMessages.onCreated(function(){});r.dfmWebmasterMessages.helpers({messages:function(){return o.find({active:true,appName:dfm.getAppName()})}});r.dfmWebmasterMessage.onRendered(function(){var t=this.$(".toast")[0];var n=this.data;var r=new bootstrap.Toast(t,{animation:true,autohide:false,delay:3e3});r.show();t.addEventListener("hidden.bs.toast",function(){if(n.disableOnClose)e.callAsync("webmasterMessagesUpdate",n._id,{active:false})})});r.dfmWebmasterMessage.helpers({getTheme:function(){if("message"===this.type)return"text-white bg-success";return"text-white bg-danger"}})},
161"front.less":function(e,t,n){n.exports=e("meteor/modules").addStyles("#dfm-webmaster-messages .toast{border:none;border-radius:.6rem;box-shadow:0 .6rem 1.6rem rgba(0,0,0,.35);font-size:1.05rem;max-width:calc(100vw - 2rem);overflow:hidden;width:400px}#dfm-webmaster-messages .toast-header{background-color:rgba(0,0,0,.15);border-bottom:1px solid hsla(0,0%,100%,.25);color:inherit;padding:.7rem 1rem}#dfm-webmaster-messages .toast-header strong{font-size:1.2rem;font-weight:700}#dfm-webmaster-messages .toast-header .btn-close{filter:invert(1) grayscale(100%) brightness(200%);opacity:.9}#dfm-webmaster-messages .toast-body{font-size:1.05rem;line-height:1.55;padding:1rem}#dfm-webmaster-messages .toast-body small{font-size:.95rem}")}}},lib:{
161"collections.js":function(e,t,n){n.export({DfmWebmasterMessages:function(){return r}});var r=new i.Collection("dfm_webmaster_messages")}}},notifications:{client:{
161"main.js":function(e,t,n){n.link("../slack/lib/helpers.js")},admin:{
161"notifications.html":function(e,t,n){n.link("./template.notifications.js",{"*":"*+"})},
161"template.notifications.js":function(){r.__checkName("webmasterNotifications");r["webmasterNotifications"]=new r("Template.webmasterNotifications",function(){var e=this;return[v.Raw('<h1><span class="material-symbols-outlined">campaign</span> Notifications</h1>\n    <h2 class="mt-5">Mails</h2>\n    \x3c!-- Envoyer un mail test \xe0 une address grace \xe0 un formulaire bootstrap v5 inline--\x3e\n    '),v.FORM({id:"send-mail-test",class:"row g-3"},"\n        ",v.DIV({class:"col-auto"},v.Raw('\n            <label for="mailTest" class="visually-hidden">Email</label>\n            '),v.INPUT({type:"email",class:"form-control",id:"inputMailTest",placeholder:"Email",value:function(){return b.If(function(){return g.call(e.lookup("currentUser"))},function(){return b.View("lookup:currentUser.emails.0.address",function(){return g.mustache(g.dot(e.lookup("currentUser"),"emails","0","address"))})})}}),"\n        "),v.Raw('\n        <div class="col-auto">\n            <button type="submit" class="btn btn-primary mb-3">Send mail test</button>\n        </div>\n    ')),v.Raw('\n    <h2 class="mt-5">Slack</h2>\n    <div><a href="https://api.slack.com/apps/" target="_blank">Slack API Apps</a></div>\n    <div class="mt-4">tests</div>\n    <div><a class="clickable js-get-slack-auth-test">auth test</a> </div>\n    <pre id="result-slack-auth-test"></pre>\n    <div><a class="clickable js-get-slack-message-test">message test</a> </div>\n    <pre id="result-slack-message-test"></pre>\n    <div><a class="clickable js-slack-post-message">message test to default channel</a> </div>\n    <pre id="result-slack-post-message"></pre>\n    <div><a class="clickable js-get-slack-channels-list">get channels list</a> </div>\n    <pre id="result-slack-channels-list"></pre>\n    <div><a class="clickable js-get-slack-users-list">get users list</a> </div>\n    <pre id="result-slack-users-list"></pre>')]})},
161"notifications.js":function(t,n,i){i.link("./notifications.html");r.webmasterNotifications.onCreated(function(){});r.webmasterNotifications.onRendered(function(){});r.webmasterNotifications.onDestroyed(function(){});r.webmasterNotifications.helpers({});r.webmasterNotifications.events({"click .js-get-slack-auth-test":function(t,n){t.preventDefault();e.callAsync("dfm.notifications.slack.authTest").then(function(e){n.$("pre#result-slack-auth-test").text(JSON.stringify(e.data,null,2))}).catch(function(e){dfm.toastError(e.message)})},"click .js-get-slack-message-test":function(t,n){t.preventDefault();e.callAsync("dfm.notifications.slack.chatMeMessage").then(function(e){n.$("pre#result-slack-message-test").text(JSON.stringify(e.data,null,2))}).catch(function(e){dfm.toastError(e.message)})},"click .js-slack-post-message":function(e,t){e.preventDefault();dfm.logErrorToSlack({text:"juste un test!"},function(e,n){if(e)dfm.toastError(e.message);else t.$("pre#result-slack-post-message").text(JSON.stringify(null==n?void 0:n.data,null,2))})},"click .js-get-slack-channels-list":function(t,n){t.preventDefault();e.callAsync("dfm.notifications.slack.conversations.list").then(function(e){n.$("pre#result-slack-channels-list").text(JSON.stringify(e.data,null,2))}).catch(function(e){dfm.toastError(e.message)})},"click .js-get-slack-users-list":function(t,n){t.preventDefault();e.callAsync("dfm.notifications.slack.getUsersList").then(function(e){n.$("pre#result-slack-users-list").text(JSON.stringify(e.data,null,2))}).catch(function(e){dfm.toastError(e.message)})},"submit #send-mail-test":function(t,n){t.preventDefault();var r=n.$("#inputMailTest").val();e.callAsync("dfm.notifications.mails.sendEmailTest",r).then(function(){dfm.toastSuccess("Email sent to "+r)}).catch(function(e){dfm.toastError(e.message)})}})}}},slack:{lib:{
161"helpers.js":function(){globalThis.dfm=globalThis.dfm||{};dfm.logErrorToSlack=function(t,n){var r=t.channel,i=t.text;t.error;n=e.isClient?n||function(e,t){if(e)dfm.toastError(e.message)}:n||function(){};e.callAsync("dfm.notifications.slack.chat.postMessage",{channel:r,text:"['ERROR'] "+i}).then(function(e){n(null,e)}).catch(function(e){n(e)});dfm.logError(i)};dfm.logToSlack=function(t,n){var r=t.channel,i=t.text;n=e.isClient?n||function(e,t){if(e)dfm.toastError(e.message)}:n||function(){};e.callAsync("dfm.notifications.slack.chat.postMessage",{channel:r,text:i}).then(function(e){n(null,e)}).catch(function(e){n(e)})}}}}},"order-by":{client:{
161"main.js":function(e,t,n){n.link("./order-by.js")},
161"order-by.html":function(e,t,n){n.link("./template.order-by.js",{"*":"*+"})},
161"template.order-by.js":function(){r.__checkName("orderBy");r["orderBy"]=new r("Template.orderBy",function(){var e=this;return b.If(function(){return g.call(e.lookup("name"))},function(){return["\n        ",v.A({class:"js-sort-by text-nowrap text-primary cursor-pointer"},"\n            ",b.View("lookup:title",function(){return g.mustache(e.lookup("title"))})," ",b.If(function(){return g.call(e.lookup("sortBy"))},function(){return v.SPAN({class:"dfm-sort-by"},b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("sortOrder"),1)},function(){return v.Raw('<span class="material-symbols-outlined">keyboard_arrow_up</span>')},function(){return v.Raw('<span class="material-symbols-outlined">keyboard_arrow_down</span>')}))}),"\n        "),"\n    "]},function(){return["\n        ",b.View("lookup:title",function(){return g.mustache(e.lookup("title"))})," ",b.If(function(){return g.call(e.lookup("sortBy"))},function(){return v.SPAN({class:"dfm-sort-by"},b.If(function(){return g.dataMustache(e.lookup("equals"),e.lookup("sortOrder"),1)},function(){return v.Raw('<span class="material-symbols-outlined">keyboard_arrow_up</span>')},function(){return v.Raw('<span class="material-symbols-outlined">keyboard_arrow_down</span>')}))}),"\n    "]})})},
161"order-by.js":function(e,t,n){n.link("./order-by.html");r.orderBy.onCreated(function(){var e;if(null==(e=this.data)?void 0:e.default){Session.set("sortBy_"+this.data.name,this.data.orderBy);Session.set("sortOrder_"+this.data.name,this.data.inversed?1:-1)}});r.orderBy.onRendered(function(){});r.orderBy.helpers({sortBy:function(){return Session.get("sortBy_"+this.name)===this.orderBy},sortOrder:function(){return this.inversed?-Session.get("sortOrder_"+this.name):Session.get("sortOrder_"+this.name)}});r.orderBy.events({"click .js-sort-by":function(e){e.preventDefault();if(Session.get("sortBy_"+this.name)===this.orderBy)Session.set("sortOrder_"+this.name,-1*Session.get("sortOrder_"+this.name));else Session.set("sortOrder_"+this.name,this.inversed?1:-1);if(!Session.get("sortOrder_"+this.name))Session.set("sortOrder_"+this.name,-1);Session.set("sortBy_"+this.name,this.orderBy)}})}}},permissions:{client:{
161"has-permission.js":function(e,t,n){var r;n.link("meteor/meteor",{Meteor:function(e){r=e}},0);var i,o,a;n.link("../lib/collections.js",{PermissionGroups:function(e){i=e},UserGroups:function(e){o=e},UserPermissions:function(e){a=e}},1);var s,l;n.link("../lib/scope.js",{permissionScopeKey:function(e){s=e},scopeGrantMatches:function(e){l=e}},2);globalThis.dfm=globalThis.dfm||{};dfm.hasPermission=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.userId();if(!n||!e)return false;var u=s(t);var c=a.find({userId:n,key:e}).fetch();if(c.some(function(e){return l(e.scopeKey||"global",u)}))return true;var f=o.find({userId:n},{fields:{groupId:1}}).fetch();if(f.length){var d=f.map(function(e){return e.groupId});var p=i.find({_id:{$in:d}},{fields:{permissions:1}}).fetch();var h=true,b=false,g=void 0;try{for(var v=p[m.iterator](),y;!(h=(y=v.next()).done);h=true){var w=y.value;var k=w.permissions||[];if(k.some(function(t){return t.key===e&&l(t.scopeKey||"global",u)}))return true}}catch(e){b=true;g=e}finally{try{if(!h&&null!=v.return)v.return()}finally{if(b)throw g}}}var x=dfm.permissions&&dfm.permissions.get(e);if(x&&"function"==typeof x.resolve)return!!x.resolve(n,t);return false}},
161"helpers.js":function(e,t,n){var r;n.link("meteor/templating",{Template:function(e){r=e}},0);function i(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){if(Array.isArray(e))return e}function a(e,t){var n=null==e?null:void 0!==m&&e[m.iterator]||e["@@iterator"];if(null==n)return;var r=[];var i=true;var o=false;var a,s;try{for(n=n.call(e);!(i=(a=n.next()).done);i=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){o=true;s=e}finally{try{if(!i&&null!=n["return"])n["return"]()}finally{if(o)throw s}}return r}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){return o(e)||a(e,t)||u(e,t)||s()}function u(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}r.registerHelper("hasPermission",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length&&t[t.length-1]&&void 0!==t[t.length-1].hash)t=t.slice(0,-1);var r=l(t,2),i=r[0],o=r[1];return dfm.hasPermission(i,o)});dfm.canManagePermissions=function(e){return!!(dfm.isWebmaster(e)||dfm.hasPermission("permissions.manage",void 0,e))};r.registerHelper("canManagePermissions",function(){return dfm.canManagePermissions()})},
161"main.js":function(e,t,n){n.link("../lib/collections.js");n.link("./registry.js");n.link("./register-core.js");n.link("./has-permission.js");n.link("./subscribe.js");n.link("./helpers.js")},
161"register-core.js":function(){globalThis.dfm=globalThis.dfm||{};dfm.permissions.register("permissions.manage",{label:"Manage permissions (groups, grants, memberships)",scopes:["global"],resolve:function(e){return!!dfm.isWebmaster(e)}})},
161"registry.js":function(e,t,n){var r;n.link("../lib/make-registry.js",{makePermissionsRegistry:function(e){r=e}},0);globalThis.dfm=globalThis.dfm||{};dfm.permissions=dfm.permissions||r()},
161"subscribe.js":function(e,t,n){var r;n.link("meteor/meteor",{Meteor:function(e){r=e}},0);var i;n.link("meteor/tracker",{Tracker:function(e){i=e}},1);var o=null;r.startup(function(){i.autorun(function(){if(r.userId())o=r.subscribe("dfmMyPermissions")})});dfm.permissionsReady=function(){if(!r.userId())return true;return!!(o&&o.ready())}}},lib:{
161"collections.js":function(e,t,n){n.export({PermissionGroups:function(){return i},UserGroups:function(){return o},UserPermissions:function(){return a}});var r;n.link("meteor/mongo",{Mongo:function(e){r=e}},0);var i=new r.Collection("app_groups");var o=new r.Collection("app_user_groups");var a=new r.Collection("app_user_permissions")},
161"make-registry.js":function(e,t,n){n.export({makePermissionsRegistry:function(){return f}});function r(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){if(Array.isArray(e))return e}function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function a(e,t){var n=null==e?null:void 0!==m&&e[m.iterator]||e["@@iterator"];if(null==n)return;var r=[];var i=true;var o=false;var a,s;try{for(n=n.call(e);!(i=(a=n.next()).done);i=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){o=true;s=e}finally{try{if(!i&&null!=n["return"])n["return"]()}finally{if(o)throw s}}return r}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function u(e,t){return i(e)||a(e,t)||c(e,t)||s()}function c(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}function f(){var e=new p;var t=new p;return{register:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"string"!=typeof t)throw new Error("dfm.permissions.register: key (string) required");e.set(t,{key:t,label:n.label||t,scopes:n.scopes||["global"],resolve:n.resolve});return this},registerScopeType:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"string"!=typeof e)throw new Error("dfm.permissions.registerScopeType: type (string) required");t.set(e,{label:n.label,picker:n.picker});return this},get:function(t){return e.get(t)},list:function(){return Array.from(e.values())},scopeType:function(e){return t.get(e)},listScopeTypes:function(){return Array.from(t.entries()).map(function(e){var t=u(e,2),n=t[0],r=t[1];return l({type:n},r)})},_permissions:e,_scopeTypes:t}}},
161"scope.js":function(e,t,n){n.export({permissionScopeKey:function(){return r},scopeGrantMatches:function(){return i}});function r(e){if(!e||!e.type||!e.id)return"global";return e.type+":"+e.id}function i(e,t){return"global"===e||e===t}}}},seo:{client:{
161"seo.js":function(e,t,n){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function o(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}var a=function(){"use strict";function e(){r(this,e)}o(e,[{key:"set",value:function(e){if(e.title)document.title=e.title;var t=document.getElementsByTagName("head")[0];if(!t)return;if(e.meta)Object.keys(e.meta).forEach(function(n){if(!e.meta[n])return;t.querySelectorAll("meta").forEach(function(e){if(e.getAttribute("name")===n)e.remove()});var r=document.createElement("meta");r.setAttribute("name",n);r.setAttribute("content",e.meta[n]);t.appendChild(r)});if(e.hreflang){t.querySelectorAll("link").forEach(function(e){if("alternate"===e.getAttribute("rel"))e.remove()});e.hreflang.forEach(function(e){var n=document.createElement("link");n.setAttribute("rel","alternate");n.setAttribute("href",e.href);n.setAttribute("hreflang",e.hreflang);t.appendChild(n)})}if(e.additionalTags){var n=-1!==t.innerHTML.indexOf(e.additionalTags);if(!n)$("head").append(e.additionalTags)}}}]);return e}();n.exportDefault(a)}}},serialize:{client:{
161"main.js":function(e,t,n){n.link("./serialize.js")},
161"serialize.js":function(){function e(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function r(e){if(void 0!==m&&null!=e[m.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(e,t){var n=null==e?null:void 0!==m&&e[m.iterator]||e["@@iterator"];if(null==n)return;var r=[];var i=true;var o=false;var a,s;try{for(n=n.call(e);!(i=(a=n.next()).done);i=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){o=true;s=e}finally{try{if(!i&&null!=n["return"])n["return"]()}finally{if(o)throw s}}return r}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};var i=Object.keys(r);if("function"==typeof Object.getOwnPropertySymbols)i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}));i.forEach(function(t){n(e,t,r[t])})}return e}function s(e,n){return t(e)||i(e,n)||c(e,n)||o()}function l(e){return t(e)||r(e)||c(e)||o()}function u(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}function c(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor)r=t.constructor.name;if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}globalThis.dfm=globalThis.dfm||{};function f(e){var t=e.split("[");t=t.map(function(e){return e.replace(/\]/g,"")});if(""===t[0])t.shift();return t}var d=function(e){return null!==e&&(void 0===e?"undefined":u(e))==="object"&&!Array.isArray(e)};var p=function(e){return/^\d+$/.test(e)};function h(e,t,n,r){if(!t||0===t.length)return;var i=t[0];if(1===t.length){if(""===i)e.push(n);else e[i]=n;return}var o=t[1];var a=t.slice(1);if(""===i){var s=e.length-1;var l=e[s];i=(d(l)||Array.isArray(l))&&void 0===b(l,a)?s:s+1}if(""===o){if(void 0===e[i]||!Array.isArray(e[i]))e[i]=[]}else if(r.useIntKeysAsArrayIndex&&p(o)){if(void 0===e[i]||!Array.isArray(e[i]))e[i]=[]}else if(void 0===e[i]||!d(e[i]))e[i]={};h(e[i],a,n,r)}function b(e,t){if(null==e)return e;if(!t||0===t.length)return e;var n=l(t),r=n[0],i=n.slice(1);if(""===r)return;return b(e[r],i)}dfm.serialize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"FORM"!==e.nodeName)return;var n=a({useIntKeysAsArrayIndex:false},t);var r={};var i=function(e,t){var n=e.match(/^(.+?):(boolean|number|string)$/);if(!n)return{key:e,value:t};var r=s(n,3),i=r[1],o=r[2];switch(o){case"boolean":if("boolean"==typeof t)return{key:i,value:t};return{key:i,value:"true"===t||"1"===t};case"number":return{key:i,value:""===t?null:Number(t)};case"string":return{key:i,value:String(t)};default:return{key:i,value:t}}};var o=function(e,t){var o=i(e,t),a=o.key,s=o.value;var l=f(a);if(0===l.length)return;h(r,l,s,n)};var l=true,u=false,c=void 0;try{for(var d=Array.from(e.elements)[m.iterator](),p;!(l=(p=d.next()).done);l=true){var b=p.value;if(b.name&&!b.disabled){var g=b.name,v=b.type,y=b.value;switch(b.nodeName){case"INPUT":switch(v){case"checkbox":if(b.checked)o(g,"on"!==y||b.hasAttribute("value")?y:true);else if(!Object.prototype.hasOwnProperty.call(r,g))o(g,false);break;case"radio":if(b.checked)o(g,y);break;case"file":if(b.files&&b.files.length>0)o(g,b.files);break;case"submit":case"reset":case"button":case"image":break;default:o(g,y);break}break;case"TEXTAREA":o(g,y);break;case"SELECT":if("select-multiple"===v){var w=Array.from(b.options).filter(function(e){return e.selected}).map(function(e){return e.value});if(g.endsWith("[]"))if(0===w.length)o(g.slice(0,-2),[]);else{var k=true,x=false,T=void 0;try{for(var A=w[m.iterator](),j;!(k=(j=A.next()).done);k=true){var I=j.value;o(g,I)}}catch(e){x=true;T=e}finally{try{if(!k&&null!=A.return)A.return()}finally{if(x)throw T}}}else o(g,w)}else o(g,y);break}}}}catch(e){u=true;c=e}finally{try{if(!l&&null!=d.return)d.return()}finally{if(u)throw c}}return r}}}},settings:{client:{
161"helpers.js":function(){r.registerHelper("dfmGetSettings",function(e){var t=e.hash,n=t.sourceId,r=t.key;return dfm.getSettings(n,r)});r.registerHelper("dfmGetSettingsValue",function(e){var t=e.hash,n=t.sourceId,r=t.key,i=t.path;return dfm.getSettingsValue(n,r,i)})},
161"main.js":function(e,t,n){n.link("../lib/helpers.js");n.link("./helpers.js")},admin:{
161"settings-row.html":function(e,t,n){n.link("./template.settings-row.js",{"*":"*+"})},
161"template.settings-row.js":function(){r.__checkName("dfmSettingsRow");r["dfmSettingsRow"]=new r("Template.dfmSettingsRow",function(){var e=this;return v.TR({title:function(){return g.mustache(e.lookup("JSONstringify"),e.lookup("details"))}},"\n    ",v.TD({class:"text-center"},"\n      ",v.INPUT(v.Attrs({name:"public",class:"form-check-input",type:"checkbox",form:function(){return["settings_",g.mustache(e.lookup("_id"))]}},function(){return g.attrMustache(e.lookup("isChecked"),e.lookup("public"))})),"\n    "),"\n    ",v.TD({class:"text-center"},"\n      ",v.INPUT(v.Attrs({name:"admin",class:"form-check-input",type:"checkbox",form:function(){return["settings_",g.mustache(e.lookup("_id"))]}},function(){return g.attrMustache(e.lookup("isChecked"),e.lookup("admin"))})),"\n    "),"\n    ",v.TD("\n      ",v.INPUT({name:"sourceId",class:"form-control js-update",value:function(){return g.mustache(e.lookup("sourceId"))},form:function(){return["settings_",g.mustache(e.lookup("_id"))]}}),"\n    "),"\n    ",v.TD("\n      ",v.INPUT({name:"key",class:"form-control js-update",value:function(){return g.mustache(e.lookup("key"))},form:function(){return["settings_",g.mustache(e.lookup("_id"))]}}),"\n    "),"\n    ",v.TD("\n      ",b.If(function(){return g.call(e.lookup("isJsonString"))},function(){return["\n        ",v.DIV({class:"json-editor-container"},v.Raw("\n          \x3c!-- Vue simplifi\xe9e --\x3e\n          "),v.DIV({class:"json-simple-view"},"\n            ",b.Each(function(){return g.call(e.lookup("jsonFields"))},function(){return["\n              ",b._TemplateWith(function(){return g.dataMustache(e.lookup("extendContext"),g.kw({settingId:g.dot(e.lookup(".."),"_id")}))},function(){return g.include(e.lookupTemplate("jsonField"))}),"\n            "]}),"\n          "),v.Raw("\n\n          \x3c!-- Textarea (cach\xe9e par d\xe9faut) --\x3e\n          "),v.TEXTAREA({class:"form-control js-update json-textarea",name:"value",form:function(){return["settings_",g.mustache(e.lookup("_id"))]},style:"display: none;",value:function(){return g.mustache(e.lookup("value"))}}),v.Raw('\n\n          \x3c!-- Bouton toggle --\x3e\n          <button type="button" class="btn btn-sm btn-outline-secondary json-toggle" title="Basculer mode d\'\xe9dition">\n            <span class="material-symbols-outlined">edit</span>\n          </button>\n        ')),"\n      "]},function(){return["\n        ",v.TEXTAREA({class:"form-control js-update",name:"value",form:function(){return["settings_",g.mustache(e.lookup("_id"))]},value:function(){return g.mustache(e.lookup("value"))}}),"\n      "]}),"\n    "),"\n    ",v.TD(b.View("lookup:type",function(){return g.mustache(e.lookup("type"))})),v.Raw('\n    <td>\n      <a class="btn btn-sm btn-warning js-duplicate">\n        <span class="material-symbols-outlined">content_copy</span>\n      </a>\n      <a class="btn btn-sm btn-danger js-delete">\n        <span class="material-symbols-outlined">delete</span>\n      </a>\n    </td>\n  '))});r.__checkName("jsonField");r["jsonField"]=new r("Template.jsonField",function(){var e=this;return b.If(function(){return g.call(e.lookup("error"))},function(){return["\n    ",v.DIV({class:"alert alert-danger small"},b.View("lookup:error",function(){return g.mustache(e.lookup("error"))})),"\n  "]},function(){return b.If(function(){return g.call(e.lookup("isNested"))},function(){return[v.Raw("\n    \x3c!-- Objet imbriqu\xe9 --\x3e\n    "),v.DIV({class:"mb-2 border rounded p-2 bg-light"},"\n      ",v.DIV({class:"d-flex justify-content-between align-items-center mb-1"},"\n        ",v.SMALL({class:"fw-bold text-muted"},b.View("lookup:key",function(){return g.mustache(e.lookup("key"))})," (objet)"),"\n        ",v.BUTTON({type:"button",class:"btn btn-xs btn-outline-secondary toggle-nested","data-target":function(){return["nested-",g.mustache(e.lookup("settingId")),"-",g.mustache(e.lookup("key"))]}},v.Raw('\n          <span class="material-symbols-outlined" style="font-size: 12px;">expand_less</span>\n        ')),"\n      "),"\n      ",v.DIV({id:function(){return["nested-",g.mustache(e.lookup("settingId")),"-",g.mustache(e.lookup("key"))]},class:"nested-content"},"\n        ",b.Each(function(){return g.call(e.lookup("children"))},function(){return["\n          ",b._TemplateWith(function(){return g.dataMustache(e.lookup("extendContext"),g.kw({settingId:g.dot(e.lookup(".."),"settingId")}))},function(){return g.include(e.lookupTemplate("jsonField"))}),"\n        "]}),"\n      "),"\n    "),"\n  "]},function(){return b.If(function(){return g.call(e.lookup("isComplex"))},function(){return[v.Raw("\n    \x3c!-- Tableau ou valeur complexe --\x3e\n    "),v.DIV({class:"mb-2"},"\n      ",v.LABEL({class:"form-label small"},b.View("lookup:key",function(){return g.mustache(e.lookup("key"))})," (",b.View("lookup:type",function(){return g.mustache(e.lookup("type"))}),"):"),"\n      ",v.DIV({class:"form-control form-control-sm bg-secondary text-light"},"\n        ",v.SMALL(b.If(function(){return g.call(e.lookup("isArray"))},function(){return["Tableau (",b.View("lookup:value.length",function(){return g.mustache(g.dot(e.lookup("value"),"length"))})," \xe9l\xe9ments)"]},function(){return b.View("lookup:value",function(){return g.mustache(e.lookup("value"))})})),"\n      "),"\n      ",v.SMALL({class:"text-muted"},"\xc9diter en mode texte pour les ",b.View("lookup:type",function(){return g.mustache(e.lookup("type"))}),"s"),"\n    "),"\n  "]},function(){return[v.Raw("\n    \x3c!-- Champ \xe9ditable --\x3e\n    "),v.DIV({class:"mb-2"},"\n      ",v.LABEL({class:"form-label small"},b.View("lookup:key",function(){return g.mustache(e.lookup("key"))}),":"),"\n      ",b.If(function(){return g.call(e.lookup("isBoolean"))},function(){return["\n        ",v.DIV({class:"form-check"},"\n          ",v.INPUT(v.Attrs({class:"form-check-input json-field js-update",type:"checkbox","data-
161path":function(){return g.mustache(e.lookup("path"))},"data-setting-id":function(){return g.mustache(e.lookup("settingId"))},form:function(){return["settings_",g.mustache(e.lookup("settingId"))]}},function(){return g.attrMustache(e.lookup("isChecked"),e.lookup("value"))})),"\n          ",v.LABEL({class:"form-check-label"},b.View("lookup:value",function(){return g.mustache(e.lookup("value"))})),"\n        "),"\n      "]},function(){return b.If(function(){return g.call(e.lookup("isNumber"))},function(){return["\n        ",v.INPUT({type:"number",class:"form-control form-control-sm json-field js-update","data-path":function(){return g.mustache(e.lookup("path"))},"data-setting-id":function(){return g.mustache(e.lookup("settingId"))},value:function(){return g.mustache(e.lookup("value"))},form:function(){return["settings_",g.mustache(e.lookup("settingId"))]}}),"\n      "]},function(){return["\n        ",v.INPUT({type:"text",class:"form-control form-control-sm json-field js-update","data-path":function(){return g.mustache(e.lookup("path"))},"data-setting-id":function(){return g.mustache(e.lookup("settingId"))},value:function(){return g.mustache(e.lookup("value"))},form:function(){return["settings_",g.mustache(e.lookup("settingId"))]}}),"\n      "]})}),"\n    "),"\n  "]})})})})},
161"settings-row.js":function(t,n,i){i.link("./settings-row.html");function o(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){if(Array.isArray(e))return e}function s(e,t){var n=null==e?null:void 0!==m&&e[m.iterator]||e["@@iterator"];if(null==n)return;var r=[];var i=true;var o=false;var a,s;try{for(n=n.call(e);!(i=(a=n.next()).done);i=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){o=true;s=e}finally{try{if(!i&&null!=n["return"])n["return"]()}finally{if(o)throw s}}return r}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){return a(e)||s(e,t)||f(e,t)||l()}function c(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}function f(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var n=[];if((void 0===e?"undefined":c(e))!=="object"||null===e||Array.isArray(e))return[{key:t||"value",value:e,type:Array.isArray(e)?"array":void 0===e?"undefined":c(e),path:t,isComplex:Array.isArray(e)||(void 0===e?"undefined":c(e))==="object",isArray:Array.isArray(e)}];Object.entries(e).forEach(function(e){var r=u(e,2),i=r[0],o=r[1];var a=t?"".concat(t,".").concat(i):i;if((void 0===o?"undefined":c(o))!=="object"||null===o||Array.isArray(o))n.push({key:i,value:o,type:Array.isArray(o)?"array":void 0===o?"undefined":c(o),path:a,isComplex:Array.isArray(o),isArray:Array.isArray(o),isBoolean:"boolean"==typeof o,isNumber:"number"==typeof o});else n.push({key:i,type:"object",path:a,isNested:true,children:d(o,a)})});return n}function p(e,t,n){var r=t.split(".");var i=e;for(var o=0;o<r.length-1;o++){var a=r[o];if(!i[a]||"object"!==c(i[a]))i[a]={};i=i[a]}i[r[r.length-1]]=n}r.dfmSettingsRow.helpers({isJsonString:function(){return"jsonString"===this.type},jsonFields:function(){if("jsonString"!==this.type)return[];try{var e=JSON.parse(this.value||"{}");return d(e)}catch(e){return[{error:"JSON invalide: "+e.message}]}}});r.dfmSettingsRow.events({"blur .js-update, change .form-check-input":function(t,n){t.preventDefault();var r=t.currentTarget.dataset.settingId||this._id;if(!r)return void console.error("Impossible de trouver l'ID du setting");if(t.currentTarget.classList.contains("json-field")){var i=t.currentTarget.dataset.path;var o="checkbox"===t.currentTarget.type?t.currentTarget.checked:"number"===t.currentTarget.type?parseFloat(t.currentTarget.value)||0:t.currentTarget.value;var a={};try{a=JSON.parse(n.find('textarea[name="value"]').value||"{}")}catch(e){a={}}p(a,i,o);var s=n.find('textarea[name="value"]');s.value=JSON.stringify(a,null,2);console.log("JSON mis \xe0 jour pour",r)}console.log("SAVE EVENT TRIGGERED for ".concat(r),{eventType:t.type,target:t.currentTarget,isAutoSync:t.currentTarget._isAutoSync,value:t.currentTarget.value});var l=!!(t.currentTarget._suppressToast||t.currentTarget._isAutoSync);var u=document.querySelector("#settings_"+r);var c=dfm.serialize(u);console.log("Saving to database for ".concat(r,":"),c);e.callAsync("dfm.settings.update",r,c).then(function(){console.log("Successfully saved ".concat(r," to database"));if(!l)dfm.toastSuccess(c.sourceId+" "+c.key+" : updated")}).catch(function(e){console.error("Error saving ".concat(r," to database:"),e);dfm.toastError(e)})},"click .js-duplicate":function(t,n){t.preventDefault();e.callAsync("dfm.settings.duplicate",this._id).then(function(){return dfm.toastSuccess("duplicated")}).catch(function(e){return dfm.toastError(e)})},"click .js-delete":function(t,n){var r=this;t.preventDefault();dfm.confirm("sure?",function(t){if(t)e.callAsync("dfm.settings.remove",r._id).then(function(){return dfm.toastSuccess("deleted")}).catch(function(e){return dfm.toastError(e)})})},"blur .json-field":function(e,t){var n=e.currentTarget;var r=n.dataset.path;if(!r)return;var i="checkbox"===n.type?n.checked:"number"===n.type?parseFloat(n.value)||0:n.value;var o={};try{o=JSON.parse(t.find('textarea[name="value"]').value||"{}")}catch(e){o={}}p(o,r,i);var a=t.find('textarea[name="value"]');a.value=JSON.stringify(o,null,2);console.log("\uD83D\uDD04 JSON synchronis\xe9:",a.value)},"click .json-toggle":function(e,t){e.preventDefault();var n=t.find(".json-simple-view");var r=t.find(".json-textarea");var i=e.currentTarget;if("none"===n.style.display){n.style.display="block";r.style.display="none";i.innerHTML='<span class="material-symbols-outlined">edit</span>'}else{n.style.display="none";r.style.display="block";i.innerHTML='<span class="material-symbols-outlined">visibility</span>'}}})},
161"settings.html":function(e,t,n){n.link("./template.settings.js",{"*":"*+"})},
161"template.settings.js":function(){r.__checkName("dfmSettings");r["dfmSettings"]=new r("Template.dfmSettings",function(){var e=this;return v.DIV({id:"dfm-settings",class:"container-fluid"},v.Raw('\n        <h1>Settings</h1>\n        <form id="form-setting-add" class="mb-5 card">\n            <div class="card-header">Settings add</div>\n            <div class="card-body">\n                <div class="row mb-3">\n                    <div class="col"><input class="form-control js-setting-sourceId" name="sourceId" placeholder="sourceId"></div>\n                    <div class="col"><input class="form-control js-setting-key" name="key" placeholder="key"></div>\n                    <div class="col"><input class="form-control" name="value" placeholder="value"></div>\n                    <div class="col"><button class="btn btn-sm btn-primary">add</button></div>\n                </div>\n                <div class="text-end">\n                    <button type="button" class="btn btn-sm btn-danger js-remove-with-filter">remove with this filter</button>\n                    <button type="button" class="btn btn-sm btn-danger js-remove-with-filter-except-one">except one</button>\n                </div>\n            </div>\n        </form>\n\n        <div class="mb-4">\n            <a class="clickable btn btn-sm btn-primary js-forceAllTextareaMode">All to textarea mode</a>\n        </div>\n\n        '),v.TABLE({class:"table table-hover"},"\n            ",v.THEAD("\n                ",v.TR(v.Raw('\n                    <th width="65">autoPublish</th>\n                    <th width="65">onlyAdmin</th>\n                    <th>sourceId</th>\n                    <th>key</th>\n                    <th>value</th>\n                    <th width="150">type</th>\n                    <th width="100"></th>\n                ')),"\n            "),"\n            ",v.TBODY("\n                ",b.Each(function(){return g.call(e.lookup("getSettings"))},function(){return["\n                    ",g.include(e.lookupTemplate("dfmSettingsRow")),"\n                "]}),"\n            "),"\n        "),"\n        ",b.Each(function(){return g.call(e.lookup("getSettings"))},function(){return["\n            ",v.FORM({id:function(){return["settings_",g.mustache(e.lookup("_id"))]}}),"\n        "]}),"\n    ")})},
161"settings.js":function(t,n,i){var o;i.link("meteor/davidfm:core/api/settings/lib/collections.js",{DfmSettings:function(e){o=e}},0);i.link("./settings-row.js");i.link("./settings.less");i.link("./settings.html");function a(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}var s=new ReactiveVar("");r.dfmSettings.onCreated(function(){this.subscribe("adminDfmSettings")});r.dfmSettings.onRendered(function(){});r.dfmSettings.generateSimpleView=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";e.innerHTML="";if((void 0===t?"undefined":a(t))==="object"&&null!==t&&!Array.isArray(t))Object.keys(t).forEach(function(o){var s=t[o];var l=i?"".concat(i,".").concat(o):o;var u=document.createElement("div");u.className="mb-3";if("boolean"==typeof s)u.innerHTML='\n                    <label class="form-label small">'.concat(o,':</label>\n                    <div class="form-check">\n                        <input class="form-check-input json-simple-input" type="checkbox" \n                               id="checkbox-').concat(n,"-").concat(l.replace(/\./g,"-"),'"\n                               data-target="').concat(n,'" data-path="').concat(l,'" \n                               ').concat(s?"checked":"",'>\n                        <label class="form-check-label" for="checkbox-').concat(n,"-").concat(l.replace(/\./g,"-"),'">\n                            <span class="json-checkbox-label" data-path="').concat(l,'">').concat(s,"</span>\n                        </label>\n                    </div>\n                ");else if("string"==typeof s)u.innerHTML='\n                    <label class="form-label small">'.concat(o,':</label>\n                    <input type="text" class="form-control form-control-sm json-simple-input" \n                           data-target="').concat(n,'" data-path="').concat(l,'" value="').concat(s,'">\n                ');else if("number"==typeof s)u.innerHTML='\n                    <label class="form-label small">'.concat(o,':</label>\n                    <input type="number" class="form-control form-control-sm json-simple-input" \n                           data-target="').concat(n,'" data-path="').concat(l,'" value="').concat(s,'">\n                ');else if(Array.isArray(s))u.innerHTML='\n                    <label class="form-label small">'.concat(o,' (tableau):</label>\n                    <div class="border rounded p-2 bg-light">\n                        <small><strong>Tableau:</strong> ').concat(JSON.stringify(s,null,2),'</small>\n                        <div class="mt-1">\n                            <small class="text-muted">Les tableaux doivent \xeatre \xe9dit\xe9s en mode texte</small>\n                        </div>\n                    </div>\n                ');else if((void 0===s?"undefined":a(s))==="object"&&null!==s){var c=document.createElement("div");c.className="nested-object border rounded p-2 bg-light mt-1";var f=document.createElement("div");f.className="d-flex justify-content-between align-items-center mb-2";f.innerHTML='\n                    <label class="form-label small mb-0 fw-bold">'.concat(o,' (objet):</label>\n                    <button type="button" class="btn btn-xs btn-outline-secondary toggle-nested" \n                            data-target="nested-').concat(n,"-").concat(l.replace(/\./g,"-"),'">\n                        <span class="material-symbols-outlined" style="font-size: 14px;">expand_less</span>\n                    </button>\n                ');var d=document.createElement("div");d.id="nested-".concat(n,"-").concat(l.replace(/\./g,"-"));d.className="nested-content";r.dfmSettings.generateSimpleView(d,s,n,l);c.appendChild(f);c.appendChild(d);u.appendChild(c)}else u.innerHTML='\n                    <label class="form-label small">'.concat(o,':</label>\n                    <div class="form-control form-control-sm bg-secondary text-light">\n                        <small>').concat(null===s?"null":void 0===s?"undefined":String(s),"</small>\n                    </div>\n                ");e.appendChild(u)})};r.dfmSettings.helpers({getSettings:function(){return o.find({key:{$regex:s.get(),$options:"i"}},{sort:{updateAt:-1,sourceId:1,key:1}})}});r.dfmSettings.events({"keyup .js-setting-key":function(e,t){var n=e.currentTarget.value;s.set(n)},"submit #form-setting-add":function(t,n){t.preventDefault();var r=dfm.serialize(t.currentTarget);e.callAsync("dfm.settings.insert",r).then(function(){dfm.toastSuccess("added");$("#form-setting-add [name=key]").val("");$("#form-setting-add [name=value]").val("");$("#form-setting-add [name=sourceId]").val("")}
161).catch(function(e){dfm.toastError(e)})},"click .js-remove-with-filter":function(t,n){t.preventDefault();var r=document.querySelector("#form-setting-add");var i=dfm.serialize(r);dfm.confirm("Supprimer tous les \xe9l\xe9ments correspondant \xe0 ce filtre ?",function(t){if(t)e.callAsync("dfm.settings.removeWithFilter",i).then(function(){dfm.toastSuccess("Elements supprim\xe9s")}).catch(function(e){dfm.toastError(e)})})},"click .js-remove-with-filter-except-one":function(t,n){t.preventDefault();var r=document.querySelector("#form-setting-add");var i=dfm.serialize(r);dfm.confirm("Supprimer tous les \xe9l\xe9ments correspondant \xe0 ce filtre sauf un ?",function(t){if(t)e.callAsync("dfm.settings.removeWithFilterExceptOne",i).then(function(){dfm.toastSuccess("Elements supprim\xe9s (un conserv\xe9)")}).catch(function(e){dfm.toastError(e)})})},"click .js-forceAllTextareaMode":function(e,t){e.preventDefault()}})},
161"settings.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".json-editor-container{min-height:100px;position:relative}.json-simple-view{background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:.375rem;max-height:300px;overflow-y:auto;padding:10px}.json-toggle{position:absolute;right:5px;top:5px;z-index:10}.json-field{font-size:.875rem}.json-simple-view .form-label{color:#495057;font-weight:600;margin-bottom:2px}.nested-content{border-left:2px solid #dee2e6;padding-left:10px}.toggle-nested{padding:2px 4px}")}}},lib:{
161"collections.js":function(e,t,n){n.export({DfmSettings:function(){return r}});var r=new i.Collection("dfm_settings")},
161"helpers.js":function(e,t,n){var r;n.link("./collections.js",{DfmSettings:function(e){r=e}},0);function i(e,t,n,r,i,o,a){try{var s=e[o](a);var l=s.value}catch(e){n(e);return}if(s.done)t(l);else d.resolve(l).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new d(function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)})}}function a(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),"function"==typeof m&&(a[m.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,r&&(i=2&s[0]?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[2&s[0],i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;r=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}globalThis.dfm=globalThis.dfm||{};dfm.getSettings=function(e,t){if(!e||!t)return{};var n=r.findOne({sourceId:e,key:t})||{};var i=n.value||{};if("string"==typeof i&&""!==i.trim())try{i=JSON.parse(i)}catch(e){}return i};dfm.getSettingsAsync=function(e,t){return o(function(){var n,i;return a(this,function(o){switch(o.label){case 0:if(!e||!t)return[2,{}];return[4,r.findOneAsync({sourceId:e,key:t})];case 1:n=o.sent()||{};i=n.value||{};if("string"==typeof i&&""!==i.trim())try{i=JSON.parse(i)}catch(e){}return[2,i]}})})()};dfm.getSettingsValue=function(e,t,n){var r=dfm.getSettings(e,t);if(!r||!n)return;return n.split(".").reduce(function(e,t){return e&&void 0!==e[t]?e[t]:void 0},r)};dfm.getSettingsValueAsync=function(e,t,n){return o(function(){var r;return a(this,function(i){switch(i.label){case 0:return[4,dfm.getSettingsAsync(e,t)];case 1:r=i.sent();if(!r||!n)return[2,void 0];return[2,n.split(".").reduce(function(e,t){return e&&void 0!==e[t]?e[t]:void 0},r)]}})})()}}}},"shared-login":{client:{
161"main.js":function(e,t,n){var r;n.link("meteor/meteor",{Meteor:function(e){r=e}},0);var i;n.link("meteor/accounts-base",{Accounts:function(e){i=e}},1);var o;n.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},2);function a(e,t,n,r,i,o,a){try{var s=e[o](a);var l=s.value}catch(e){n(e);return}if(s.done)t(l);else d.resolve(l).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new d(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)})}}function l(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}function u(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),"function"==typeof m&&(a[m.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,r&&(i=2&s[0]?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[2&s[0],i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;r=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}function c(e){var t="function"==typeof m&&m.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var f="/_dfm/shared-login/";var p=new o(false);dfm.sharedLogin={enabled:function(){var e,t,n;return(null==(n=r.settings)?void 0:null==(t=n.public)?void 0:null==(e=t.sharedLogin)?void 0:e.enabled)===true},pending:function(){return p.get()}};var h=[1500,4e3];function b(e){return s(function(e){var t,n,r,i;var o=arguments;return u(this,function(a){switch(a.label){case 0:t=function(t){var r,i;return u(this,function(o){switch(o.label){case 0:r=void 0;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,fetch(f+e,{method:"POST",credentials:"same-origin",headers:Object.assign({"X-Dfm-Shared-Login":"1"},n)})];case 2:r=o.sent();if(r.status<500)return[2,{v:r}];return[3,4];case 3:i=o.sent();if(t>=h.length)throw i;return[3,4];case 4:if(t>=h.length)return[2,{v:r}];return[4,new d(function(e){return setTimeout(e,h[t])})];case 5:o.sent();return[2]}})};n=o.length>1&&void 0!==o[1]?o[1]:{};r=0;a.label=1;case 1:return[5,c(t(r))];case 2:i=a.sent();if("object"===l(i))return[2,i.v];a.label=3;case 3:r++;return[3,1];case 4:return[2]}})}).apply(this,arguments)}if(dfm.sharedLogin.enabled()){if(!i._storedLoginToken()){var g;p.set(true);null==(g=i._setLoggingIn)||g.call(i,true);b("session").then(function(e){return 200===e.status?e.json():null}).then(function(e){return new d(function(t){if(!(null==e?void 0:e.token))return t();r.loginWithToken(e.token,function(){return t()})})}).catch(function(){}).finally(function(){var e;if(!r.userId())null==(e=i._setLoggingIn)||e.call(i,false);p.set(false)})}i.onLogin(function(){var e=i._storedLoginToken();if(e)b("link",{Authorization:"Bearer "+e}).catch(function(){})});i.onLogout(function(){b("logout").catch(function(){})})}}}},sortable:{client:{
161"main.js":function(e,t,n){n.link("./sortable.less");n.link("./sortable.js")},
161"sortable.js":function(){function e(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(t){if(Array.isArray(t))return e(t)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function o(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}function a(e){if(void 0!==m&&null!=e[m.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return n(e)||a(e)||u(e)||s()}function u(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor)r=t.constructor.name;if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}t.dfm=dfm||{};var c=function(){"use strict";function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e);this.el=document.querySelector(t);this.update=n.update||function(){};this.ready=n.ready||function(){};this.handle=n.handle||null;this.delay=n.delay||100;this.getDragAfterElementBinded=this.getDragAfterElement.bind(this);this.dragOverHandlerBinded=this.dragOverHandler.bind(this);this.dragEndHandlerBinded=this.dragEndHandler.bind(this);this.mouseUpHandlerBinded=this.mouseUpHandler.bind(this);this.timeMove=null;this.initialize()}o(e,[{key:"initialize",value:function(){var e=this;var t=this.el.children;var n=true,r=false,i=void 0;try{var o,a=function(){var t=l.value;if(o.handle){var n=t.querySelector(o.handle);if(n)n.addEventListener("mousedown",function(n){t.draggable=true;e.dragStartHandler(t);document.addEventListener("mouseup",e.mouseUpHandlerBinded)})}else{t.draggable=true;t.addEventListener("dragstart",function(n){e.dragStartHandler(t)})}t.classList.add("draggable")};for(var s=t[m.iterator](),l;!(n=(l=s.next()).done);n=true)o=this,a()}catch(e){r=true;i=e}finally{try{if(!n&&null!=s.return)s.return()}finally{if(r)throw i}}this.el.addEventListener("dragover",this.dragOverHandlerBinded);this.el.addEventListener("dragend",this.dragEndHandlerBinded);this.ready(this.el)}},{key:"mouseUpHandler",value:function(){var e=this.el.children;var t=true,n=false,r=void 0;try{for(var i=e[m.iterator](),o;!(t=(o=i.next()).done);t=true){var a=o.value;a.draggable=false;a.classList.remove("dragging")}}catch(e){n=true;r=e}finally{try{if(!t&&null!=i.return)i.return()}finally{if(n)throw r}}document.removeEventListener("mouseup",this.mouseUpHandlerBinded)}},{key:"destroySortable",value:function(){this.el.removeEventListener("dragover",this.dragOverHandlerBinded);this.el.removeEventListener("dragend",this.dragEndHandlerBinded)}},{key:"dragStartHandler",value:function(e){if(e.classList.contains("draggable"))e.classList.add("dragging")}},{key:"dragOverHandler",value:function(e){e.preventDefault();if(Date.now()-this.timeMove<this.delay)return;this.timeMove=Date.now();var t=this.getDragAfterElementBinded(this.el,e.clientY);var n=this.el.querySelector(".dragging");if(!n)return;if(null==t)this.el.appendChild(n);else this.el.insertBefore(n,t.element)}},{key:"dragEndHandler",value:function(e){e.target.classList.remove("dragging");this.update(this.el)}},{key:"getDragAfterElement",value:function(e,t){var n=l(e.querySelectorAll(".draggable:not(.dragging)"));return n.reduce(function(e,n){var r=n.getBoundingClientRect();var i=t-r.top-r.height/2;if(i<0&&i>e.offset)return{offset:i,element:n};return e},{offset:-1/0})}},{key:"destroy",value:function(){this.destroySortable()}},{key:"reset",value:function(){this.destroy();this.initialize()}}]);return e}();dfm.sortable=function(e,t){return new c(e,t)}},
161"sortable.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".sortable .dragging{opacity:.1}.sortable .handle{cursor:grab}")}}},"template-extension":{client:{
161"main.js":function(e,t,n){n.link("./replace.js")},
161"replace.js":function(){r.prototype.replaces=function(e){var t=this;function n(e){if("string"==typeof e)e=r[e];if(!e)return;e.renderFunction=t.renderFunction}if(Array.isArray(e))return void e.forEach(n);n(e)}}}},toast:{client:{
161"helpers.js":function(e,t,n){var i;n.link("../lib/collections.js",{DfmToast:function(e){i=e}},0);var o;n.link("../../settings/lib/collections.js",{DfmSettings:function(e){o=e}},1);function a(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}globalThis.dfm=globalThis.dfm||{};r.registerHelper("getDfmToast",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=(null==e?void 0:e.hash)?null==e?void 0:e.hash:{};var t={};var n={};if(e.place)t.place=e.place;return i.find(t,n)});dfm.toast=function(e){if((void 0===e?"undefined":a(e))!=="object")e={message:e+""};e.message=e.message+"";if(e.console)log(e.message);if(!e.type)e.type="info";var t=o.findOne({sourceId:"toast",key:e.type});if(t){var n=JSON.parse(t.value);if(n){if(void 0===e.autohide&&n.autohide)e.autohide=n.autohide;if(void 0===e.delay&&n.delay)e.delay=n.delay;if(void 0===e.class&&n.class)e.class=n.class;if(void 0===e.place&&n.place)e.place=n.place}}if(void 0===e.autohide)e.autohide=false;if(!e.title){e.autohide=true;if(void 0===e.delay)e.delay=3e3}if(void 0===e.place)e.place="bottom-start";return i.insert({title:e.title,message:e.message,type:e.type,autohide:e.autohide,delay:e.delay,class:e.class||"",place:e.place,btnRefresh:e.btnRefresh||false})};dfm.toastInfo=function(e){if(!e)return dfm.toastError("Error toast");if("string"==typeof e)e={message:e};dfm.log(e.message);if(!e.title)e.title="Info";e.type="info";return dfm.toast(e)};dfm.toastSuccess=function(e){if(!e)return dfm.toastError("Error toast");if("string"==typeof e)e={message:e};dfm.logSuccess(e.message);if(!e.title)e.title="Success";e.type="success";return dfm.toast(e)};dfm.toastWarning=function(e){if(!e)return dfm.toastError("Error toast");if((void 0===e?"undefined":a(e))!=="object")e={message:e+""};dfm.logWarning(e.message);if(!e.title&&false!==e.header)e.title="Warning";e.type="warning";return dfm.toast(e)};dfm.toastError=function(e){if(!e)return dfm.toastError("Error toast");if((void 0===e?"undefined":a(e))!=="object")e={message:e+""};if(false!==e.logError)dfm.logError(e.message);if(!e.title)e.title="Error";e.type="error";return dfm.toast(e)};dfm.toastRemove=function(e){return i.remove(e)}},
161"main.js":function(e,t,n){n.link("../lib/collections.js");n.link("./helpers.js");n.link("./ui/toast.js");n.link("./ui/toast.less")},ui:{
161"toast.html":function(e,t,n){n.link("./template.toast.js",{"*":"*+"})},
161"template.toast.js":function(){r.__checkName("dfmToast");r["dfmToast"]=new r("Template.dfmToast",function(){var e=this;return[v.DIV({class:"toast-container bottom-start"},"\n    ",b.Each(function(){return g.dataMustache(e.lookup("getDfmToast"),g.kw({place:"bottom-start"}))},function(){return["\n      ",g.include(e.lookupTemplate("dfmToastOne")),"\n    "]}),"\n  "),"\n  ",v.DIV({class:"toast-container bottom-end"},"\n    ",b.Each(function(){return g.dataMustache(e.lookup("getDfmToast"),g.kw({place:"bottom-end"}))},function(){return["\n      ",g.include(e.lookupTemplate("dfmToastOne")),"\n    "]}),"\n  ")]});r.__checkName("dfmToastOne");r["dfmToastOne"]=new r("Template.dfmToastOne",function(){var e=this;return v.DIV({id:function(){return["dfm-toast-one-",g.mustache(e.lookup("_id"))]},class:function(){return["toast ",g.mustache(e.lookup("getTypeTheme"))," ",g.mustache(e.lookup("class"))]}},"\n    ",b.If(function(){return g.call(e.lookup("title"))},function(){return["\n      ",v.DIV({class:function(){return["toast-header ",g.mustache(e.lookup("type"))]}},"\n        ",b.If(function(){return g.call(e.lookup("img"))},function(){return v.Raw('\n          <img src="..." class="rounded me-2" alt="...">\n        ')}),"\n        ",v.STRONG({class:"me-auto"},b.View("lookup:title",function(){return g.mustache(e.lookup("title"))})),v.Raw('\n        <small class="text-muted"></small>\n        <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>\n      ')),"\n    "]}),"\n    ",b.If(function(){return g.call(e.lookup("message"))},function(){return["\n      ",v.DIV({class:"toast-body"},"\n        ",b.View("lookup:message",function(){return g.makeRaw(g.mustache(e.lookup("message")))}),"\n      "),"\n    "]}),"\n    ",b.If(function(){return g.call(e.lookup("btnRefresh"))},function(){return["\n      ",v.DIV({class:"toast-btn text-center p-1"},"\n        ",v.A({class:"btn btn-primary js-refresh"},b._TemplateWith(function(){return{c:g.call("refreshThePage")}},function(){return g.include(e.lookupTemplate("trans"))})),"\n      "),"\n    "]}),"\n  ")})},
161"toast.js":function(e,t,n){var i;n.link("../../lib/collections.js",{DfmToast:function(e){i=e}},0);n.link("./toast.html");r.dfmToast.onCreated(function(){});r.dfmToast.onRendered(function(){});r.dfmToast.helpers({});r.dfmToast.events({});r.dfmToastOne.onRendered(function(){var e=this;var t=this.$(".toast")[0];var n={animation:true,autohide:true,delay:3e3};if(false===this.data.autohide)n.autohide=false;if(this.data.delay)n.delay=this.data.delay;var r=new bootstrap.Toast(t,n);r.show();t.addEventListener("hidden.bs.toast",function(){i.remove(e.data._id)})});r.dfmToastOne.helpers({getTypeTheme:function(){if("success"===this.type)return"text-white bg-success";if("warning"===this.type)return"text-dark bg-warning";if("error"===this.type)return"text-white bg-danger";return"text-white bg-primary"},btnRefresh:function(){if(true===this.btnRefresh)return"btn btn-sm btn-primary";return""}});r.dfmToastOne.events({"click .js-refresh":function(e,t){e.preventDefault();location.reload();t.$(".js-refresh").addClass("disabled").text("Refreshing...")}})},
161"toast.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".toast-container{position:fixed;z-index:1000000}.toast-container.bottom-start{bottom:10px;left:10px}.toast-container.bottom-end{bottom:10px;right:10px}.toast-container .toast-center{left:50%;position:fixed;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.toast-container .toast-bottom-right{bottom:5%;position:fixed;right:5%}")}}},lib:{
161"collections.js":function(e,t,n){n.export({DfmToast:function(){return i}});var r;n.link("meteor/mongo",{Mongo:function(e){r=e}},0);var i=new r.Collection("dfm_toast",{connection:null})}}},tooltip:{client:{
161"class.js":function(e,n,r){var i;r.link("@popperjs/core",{createPopper:function(e){i=e}},0);function o(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){if(Array.isArray(e))return o(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function u(e,t,n){if(t)l(e.prototype,t);if(n)l(e,n);return e}function c(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function f(e){if(void 0!==m&&null!=e[m.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){c(e,t,n[t])})}return e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function b(e,t){t=null!=t?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else h(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}function g(e){return a(e)||f(e)||v(e)||d()}function v(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}var y=function(){"use strict";function e(){s(this,e);this.popperInstances=[];this.tooltips=[];this.showEvents=["mouseenter","focus"];this.hideEvents=["mouseleave","blur"];this.simple=false}u(e,[{key:"add",value:function(){var e=this;var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,r=t.str,o=t.placement,a=void 0===o?"top":o,s=t.someClass,l=void 0===s?"":s,u=t.simple,c=void 0===u?false:u;this.simple=c;this.remove(n);var f=$("[data-tooltiphelper="+n+"]").next()[0];if(!f)return;this.create(n,r,l);var d={placement:a};if(!this.simple)d.modifiers=[{name:"offset",options:{offset:[0,8]}}];this.popperInstances[n]=i(f,this.tooltips[n],d);this.showEvents.forEach(function(t){if(!f)return;f.addEventListener(t,function(t){e.show(n)})});this.hideEvents.forEach(function(t){f.addEventListener(t,function(t){e.hide(n)})})}},{key:"create",value:function(e,t,n){var r=this;this.tooltips[e]=document.createElement("div");this.tooltips[e].id="dfm-tooltip-"+e;this.tooltips[e].classList.add("dfm-tooltip");if(n)n.split(" ").forEach(function(t){r.tooltips[e].classList.add(t)});this.tooltips[e].setAttribute("role","tooltip");if(this.simple)this.tooltips[e].innerHTML=" "+t;else this.tooltips[e].innerHTML=" "+t+' <div id="arrow" data-popper-arrow></div>';document.body.appendChild(this.tooltips[e])}},{key:"show",value:function(e){if(this.popperInstances[e]){this.tooltips[e].setAttribute("data-show","");this.popperInstances[e].setOptions(function(e){return b(p({},e),{modifiers:g(e.modifiers).concat([{name:"eventListeners",enabled:true}])})});this.popperInstances[e].update()}}},{key:"hide",value:function(e){if(this.popperInstances[e]){this.tooltips[e].removeAttribute("data-show");this.popperInstances[e].setOptions(function(e){return b(p({},e),{modifiers:g(e.modifiers).concat([{name:"eventListeners",enabled:false}])})})}}},{key:"remove",value:function(e){if(this.popperInstances[e]){this.popperInstances[e].destroy();$("#dfm-tooltip-"+e).remove()}}}]);return e}();t.dfm=t.dfm||{};dfm.tooltip=new y},
161"main.js":function(e,t,n){n.link("./class.js");n.link("./tooltip.js");n.link("./tooltip.less")},
161"tooltip.html":function(e,t,n){n.link("./template.tooltip.js",{"*":"*+"})},
161"template.tooltip.js":function(){r.__checkName("dfmTooltips");r["dfmTooltips"]=new r("Template.dfmTooltips",function(){return v.Raw('<div id="dfm-tooltips-container"></div>')});r.__checkName("dfmTooltip");r["dfmTooltip"]=new r("Template.dfmTooltip",function(){return v.Raw('<span style="display:none"></span>')})},
161"tooltip.js":function(e,t,n){var i;n.link("meteor/random",{Random:function(e){i=e}},0);n.link("./tooltip.html");r.dfmTooltip.onCreated(function(){});r.dfmTooltip.onRendered(function(){if(dfm.isMobile())return;var e=this;e.tooltipId=i.id();e.firstNode.setAttribute("data-tooltiphelper",e.tooltipId);var t=e.data;if(t.simple){var n=e.firstNode.nextElementSibling;n.setAttribute("title",t.str);return}dfm.tooltip.add({id:e.tooltipId,str:t.str,placement:t.placement,someClass:t.class,simple:t.simple});if(t.reactive)this.autorun(function(){var t=r.currentData();dfm.tooltip.add({id:e.tooltipId,str:t.str,placement:t.placement,simple:t.simple})})});r.dfmTooltip.onDestroyed(function(){dfm.tooltip.remove(this.tooltipId)});r.dfmTooltip.helpers({});r.dfmTooltip.events({})},
161"tooltip.less":function(e,t,n){n.exports=e("meteor/modules").addStyles('.dfm-tooltip{background:#fff;border-radius:4px;color:#643045;display:none;font-size:13px;font-weight:700;padding:5px 10px}.dfm-tooltip[data-show]{display:block;z-index:1000000}#arrow,#arrow:before{background:inherit;height:8px;position:absolute;width:8px}#arrow{visibility:hidden}#arrow:before{content:"";transform:rotate(45deg);visibility:visible}.dfm-tooltip[data-popper-placement^=top]>#arrow{bottom:-4px}.dfm-tooltip[data-popper-placement^=bottom]>#arrow{top:-4px}.dfm-tooltip[data-popper-placement^=left]>#arrow{right:-4px}.dfm-tooltip[data-popper-placement^=right]>#arrow{left:-4px}')}}},"ui-css":{client:{
161"inject.js":function(e,t,n){var r;n.link("meteor/meteor",{Meteor:function(e){r=e}},0);var i;n.link("meteor/tracker",{Tracker:function(e){i=e}},1);var o;n.link("../../settings/lib/collections.js",{DfmSettings:function(e){o=e}},2);r.startup(function(){var e=document.createElement("style");e.id="dfm-ui-css";e.setAttribute("data-source","davidfm:core/api/ui-css");document.head.appendChild(e);i.autorun(function(){var t=o.find({sourceId:"ui-css"},{sort:{key:1}}).fetch();var n=t.map(function(e){return"string"==typeof e.value?e.value:""}).filter(Boolean).join("\n\n");if(e.textContent!==n)e.textContent=n})})}}},"user-search":{client:{
161"dfm-user-search.html":function(e,t,n){n.link("./template.dfm-user-search.js",{"*":"*+"})},
161"template.dfm-user-search.js":function(){r.__checkName("dfmUserSearch");r["dfmUserSearch"]=new r("Template.dfmUserSearch",function(){var e=this;return v.DIV({class:"dfm-user-search"},"\n        ",b.Unless(function(){return g.dataMustache(e.lookup("equals"),e.lookup("filterByRole"),false)},function(){return["\n            ",v.DIV({class:"mb-3"},"\n                filter by role ",b.Each(function(){return g.call(e.lookup("dfmGetAllRoles"))},function(){return[" ",v.A({class:function(){return["badge ",g.mustache(e.lookup("isFilterByThisRole"))," js-filter-by-role"]}}," ",b.View("lookup:_id",function(){return g.mustache(e.lookup("_id"))}))]}),"\n            "),"\n        "]}),v.Raw('\n\n        <div class="mb-3">\n            <input class="form-control js-filter" placeholder="search user by name or email">\n        </div>\n\n        '),b.Unless(function(){return g.call(e.lookup("onlyFilter"))},function(){return["\n            ",v.DIV({class:"result mb-3"},"\n                ",g.With(function(){return g.call(e.lookup("user"))},function(){return["\n                    ",v.SPAN({class:function(){return["js-dfm-user-search-result ",g.mustache(e.lookup("countClass"))]},"data-userid":function(){return g.mustache(g.dot(e.lookup("result"),"_id"))}},b.If(function(){return g.call(e.lookup("result"))},function(){return[b.View("lookup:getUserFullname",function(){return g.mustache(e.lookup("getUserFullname"),e.lookup("result"))})," ",b.View("lookup:getUserEmail",function(){return g.mustache(e.lookup("getUserEmail"),e.lookup("result"))})]}))," ",b.If(function(){return g.call(e.lookup("count"))},function(){return v.SPAN({class:"count"},"count : ",b.View("lookup:count",function(){return g.mustache(e.lookup("count"))}))}),"\n                "]}),"\n            "),"\n        "]}),"\n    ")})},
161"dfm-user-search.js":function(t,n,i){var o;i.link("meteor/reactive-dict",{ReactiveDict:function(e){o=e}},0);i.link("./dfm-user-search.html");function a(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}dfm.userSearch=new o;dfm.userSearchReset=function(){dfm.userSearch.set("query",{});dfm.userSearch.set("role",false);dfm.userSearch.set("user",false)};r.dfmUserSearch.onCreated(function(){var e;dfm.userSearchReset();var t=null==(e=this.data)?void 0:e.forceRole;if(t)if(Array.isArray(t))dfm.userSearch.set("forcedRole",t);else dfm.userSearch.set("forcedRole",[t])});r.dfmUserSearch.onRendered(function(){});r.dfmUserSearch.helpers({user:function(){return dfm.userSearch.get("user")},countClass:function(){var e=dfm.userSearch.get("user");var t=e&&(void 0===e?"undefined":a(e))==="object"&&"count"in e?Number(e.count||0):0;if(!t)return"count-zero";if(1===t)return"count-one";if(t>1)return"count-multiple"},isFilterByThisRole:function(){var e=dfm.userSearch.get("role");var t=Array.isArray(e)?e:[];if(!t.length||!t.includes(this._id))return"bg-secondary text-light";if(t.includes("webmaster"))return"bg-secondary text-light";if(t.includes("superAdmin"))return"bg-danger text-light";if(t.includes("admin"))return"bg-danger text-light";if(t.includes("host"))return"bg-success text-light";if(t.includes("interpreter"))return"bg-warning text-dark";return"bg-secondary text-light"}});r.dfmUserSearch.events({"keyup .js-filter":function(t){var n=this;var r=$(t.currentTarget).val();if(r){dfm.userSearch.set("searchText",r);if(!this.onlyFilter){var i=dfm.userSearch.get("forcedRole");var o=dfm.userSearch.get("role");var a=i||o||false;e.callAsync("dfm.user.search",{searchText:r,roles:a}).then(function(e){e.userSearchContext=n.context;dfm.userSearch.set("user",e)}).catch(function(e){dfm.toastError(e)})}}else dfm.userSearchReset()},"click .js-filter-by-role":function(e){e.preventDefault();var t=dfm.userSearch.get("role");var n=Array.isArray(t)?t:[];if(n.length&&n.includes(this._id))dfm.userSearch.set("role",false);else dfm.userSearch.set("role",[this._id])}})}}},userAgent:{client:{
161"main.js":function(t,n,i){var o;i.link("meteor/reactive-var",{ReactiveVar:function(e){o=e}},0);var a;i.link("meteor/ddp-client",{DDP:function(e){a=e}},1);var s;i.link("meteor/tracker",{Tracker:function(e){s=e}},2);globalThis.dfm=globalThis.dfm||{};dfm.isMobile=function(e){var t=false;(function(e){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))t=true})(e||navigator.userAgent||navigator.vendor||window.opera);return t};dfm.isDesktop=function(e){return!dfm.isMobile(e)};dfm.isIphone=function(e){var t;var n=null==(t=e||navigator.userAgent||window.opera)?void 0:t.toLowerCase();return(null==n?void 0:n.indexOf("iphone"))>-1};dfm.isAndroid=function(e){var t;var n=null==(t=e||navigator.userAgent||window.opera)?void 0:t.toLowerCase();if(/windows phone/i.test(n))return false;return(null==n?void 0:n.indexOf("android"))>-1};dfm.isSafari=function(e){var t;var n=null==(t=e||navigator.userAgent||window.opera)?void 0:t.toLowerCase();return(null==n?void 0:n.indexOf("safari"))>-1&&-1===n.indexOf("chrome")&&-1===n.indexOf("crios")};dfm.isChromium=function(e){var t;var n=null==(t=e||navigator.userAgent||window.opera)?void 0:t.toLowerCase();return(null==n?void 0:n.indexOf("chrome"))>-1};dfm.isChromiumIOS=function(e){var t;var n=null==(t=e||navigator.userAgent||window.opera)?void 0:t.toLowerCase();return(null==n?void 0:n.indexOf("crios"))>-1};dfm.isFirefox=function(e){return"Firefox"===dfm.core.humanUserAgent(e).browser};dfm.isBot=function(e){var t;var n=null==(t=e||navigator.userAgent||window.opera)?void 0:t.toLowerCase();return/bot|crawler|spider|crawling/i.test(n)};dfm.isWebApp=function(){var e;if(null==(e=window.navigator)?void 0:e.standalone)return true;if(window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches)return true;return false};dfm.core.humanUserAgent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){var e;return null==(e=navigator)?void 0:e.userAgent}();if(!e)return false;var t={};if(e.indexOf("MicroMessenger")>-1){t.browser="WeChat";t.browserVersion=e.split("MicroMessenger/")[1].split(/[ (]/)[0];t.browserRegex="MicroMessenger"}else if(e.indexOf("CriOS")>-1){t.browser="Chrome";t.browserRegex="CriOS"}else if(e.indexOf("SamsungBrowser")>-1){t.browser="SamsungBrowser";t.browserVersion=e.split("SamsungBrowser/")[1].split(" ")[0];t.browserRegex="SamsungBrowser"}else if(e.indexOf("MiuiBrowser")>-1){t.browser="MiuiBrowser";t.browserVersion=e.split("MiuiBrowser/")[1].split(" ")[0];t.browserRegex="MiuiBrowser"}else if(e.indexOf("YaBrowser")>-1){t.browser="YaBrowser";t.browserVersion=e.split("YaBrowser/")[1].split(" ")[0];t.browserRegex="YaBrowser"}else if(e.indexOf("FxiOS")>-1){t.browser="Firefox";t.browserVersion=e.split("FxiOS/")[1].split(" ")[0];t.browserRegex="FxiOS"}else if(e.indexOf("Opera")>-1){t.browser="Opera";t.browserRegex="Opera"}else if(e.indexOf("OPR")>-1){t.browser="Opera";t.browserRegex="OPR"}else if(e.indexOf("EdgiOS")>-1){var n;t.browser="Edge";t.browserVersion=(null==(n=e.split("EdgiOS/")[1])?void 0:n.split(" ")[0])||"Unknown";t.browserRegex="EdgiOS"}else if(e.indexOf("Edg")>-1){t.browser="Edge";var r=e.split("Chrome/")[1];t.browserVersion=r?r.split(" ")[0]:"Unknown";t.browserRegex="Edg"}else if(e.indexOf("HeadlessChrome")>-1){t.browser="HeadlessChrome";t.browserVersion=e.split("HeadlessChrome/")[1].split(" ")[0];t.browserRegex="HeadlessChrome";t.headless=true}else if(e.indexOf("Chrome")>-1){t.browser="Chrome";t.browserVersion=e.split("Chrome/")[1].split(" ")[0];t.browserRegex="Chrome"}else if(e.indexOf("Safari")>-1){var i;t.browser="Safari";t.browserVersion=(null==(i=e.split("Version/")[1])?void 0:i.split(" ")[0])||"Unknown";t.browserRegex="Safari"}else if(e.indexOf("Firefox")>-1){t.browser="Firefox";t.browserVersion=e.split("Firefox/")[1].split(" ")[0];t.browserRegex="Firefox"}else{t.browser="Unknown";t.browserVersion="Unknown"}if(e.indexOf("Windows NT 10.0")>-1){t.os="Windows 10+";t.platform="Windows";t.platformVersion="10+";t.osRegex="Windows NT 10.0"}if(e.indexOf("Windows NT 6.3")>-1){t.os="Windows 8.1";t.platform="Windows";t.platformVersion="8.1";t.osRegex="Windows NT 6.3"}if(e.indexOf("Windows NT 6.2")>-1){t.os="Windows 8";t.platform="Windows";t.platformVersion="8";t.osRegex="Windows NT 6.2"}if(e.indexOf("Windows NT 6.1")>-1){t.os="Windows 7";t.platform="Windows";t.platformVersion="7";t.osRegex="Windows NT 6.1"}if(e.indexOf("Windows NT 6.0")>-1){t.os="Windows Vista";t.platform="Windows";t.platformVersion="Vista";t.osRegex="Windows NT 6.0"}if(e.indexOf("Windows NT 5.1")>-1){t.os="Windows XP";t.platform="Windows";t.platformVersion="XP";t.osRegex="Windows NT 5.1"}if(e.indexOf("Windows NT 5.0")>-1){t.os="Windows 2000";t.platform="Windows";t.platformVersion="2000";t.osRegex="Windows NT 5.0"}if(e.indexOf("Mac")>-1){t.os="Mac/macOS";t.platform="Mac/macOS";t.platformVersion="";t.osRegex="Mac"}if(e.indexOf("iPhone")>-1){var o;t.os="iPhone/iOS";t.platform="iPhone/iOS";var a=null==(o=e.split("CPU iPhone OS ")[1])?void 0:o.split(" like Mac")[0];var s=e.match(/Version\/(\d+(?:\.\d+)*)/);if(s){var l=parseInt(s[1].split(".")[0],10);var u=a?parseInt(a.split("_")[0],10):0;if(l>u)a=s[1].replace(/\./g,"_")}t.platformVersion=a;t.osRegex="iPhone"}if(e.indexOf("X11")>-1){t.os="UNIX";t.platform="UNIX";t.platformVersion="";t.osRegex="X11"}if(e.indexOf("Linux")>-1){t.os="Linux";t.platform="Linux";t.platformVersion="";t.osRegex="Linux"}if(e.indexOf("Android")>-1){t.os="Android";t.platform="Android";t.platformVersion="";t.osRegex="Android"}if(e.indexOf("CrOS")>-1){t.os="Chromebook";t.platform="Chromebook";t.platformVersion="";t.osRegex="CrOS"}if(e.indexOf("minotauro")>-1){t.os="Minotauro";t.platform="Minotauro";t.platformVersion="";t.osRegex="minotauro"}return t};dfm.ua={userAgent:false,userAgentData:false,net:{mobile:dfm.isMobile(),mobileFrom:"dfm.isMobile()",webApp:dfm.isWebApp(),webAppFrom:"dfm.isWebApp()"}};var l=navigator.userAgentData;if(l)dfm.ua.userAgentData={brands:l.brands,browser:d(l.brands),browserVersion:m(l.brands),isChromium:p(l.brands),isChrome:h(l.brands),mobile:l.mobile,platform:l.platform};var u=navigator.userAgent;if(u)dfm.ua.userAgent={brut:navigator.userAgent,humanUserAgent:dfm.core.humanUserAgent(u)};if(u){dfm.ua.net.platformStr="";
161if(dfm.ua.userAgent.humanUserAgent.platform){dfm.ua.net.platform=dfm.ua.userAgent.humanUserAgent.platform;dfm.ua.net.platformStr+=dfm.ua.net.platform}if(dfm.ua.userAgent.humanUserAgent.platformVersion){dfm.ua.net.platformVersion=dfm.ua.userAgent.humanUserAgent.platformVersion;dfm.ua.net.platformStr+=" "+dfm.ua.net.platformVersion}dfm.ua.net.browserStr="";if(dfm.ua.userAgent.humanUserAgent.browser){dfm.ua.net.browser=dfm.ua.userAgent.humanUserAgent.browser;dfm.ua.net.browserStr+=dfm.ua.net.browser}if(dfm.ua.userAgent.humanUserAgent.browserVersion){dfm.ua.net.browserVersion=dfm.ua.userAgent.humanUserAgent.browserVersion;dfm.ua.net.browserStr+=" "+dfm.ua.net.browserVersion}}if(l){dfm.ua.net.browserStr="";if(dfm.ua.userAgentData.browser){dfm.ua.net.browser=dfm.ua.userAgentData.browser;dfm.ua.net.browserStr+=dfm.ua.userAgentData.browser}if(dfm.ua.userAgentData.browserVersion||dfm.ua.net.browserVersion){dfm.ua.net.browserVersion=dfm.ua.net.browserVersion||dfm.ua.userAgentData.browserVersion;dfm.ua.net.browserStr+=" "+dfm.ua.net.browserVersion}if(void 0!==dfm.ua.userAgentData.mobile){dfm.ua.net.mobile=dfm.ua.userAgentData.mobile;dfm.ua.net.mobileFrom="navigator.userAgentData.mobile"}}if(u&&u.indexOf("HeadlessChrome")>-1){dfm.ua.net.headless=true;if(dfm.ua.net.browserStr&&-1===dfm.ua.net.browserStr.indexOf("Headless"))dfm.ua.net.browserStr="Headless "+dfm.ua.net.browserStr}var c=new o(null);var f=function(t){e.callAsync("dfm.connection.update",t,{userAgentData:{lowEntropyValues:dfm.ua.userAgentData},ua:dfm.ua,connection:dfm.connectionStats()})};a.onReconnect(function(t){var n=e.setInterval(function(){if(t._lastSessionId){c.set(t._lastSessionId);f(t._lastSessionId);e.clearInterval(n)}},500)});s.autorun(function(t){var n=e.connection._lastSessionId||c.get();if(n){t.stop();f(n)}});s.autorun(function(t){if(e.userId()){t.stop();e.callAsync("dfm.accounts.updatePrivateInfos",{userAgentData:{highEntropyValues:l},ua:dfm.ua,connection:dfm.connectionStats()})}});function d(e){var t=e.filter(function(e){if("Chromium"===e.brand)return true;if("Google Chrome"===e.brand)return true;if("Safari"===e.brand)return true;if("Firefox"===e.brand)return true;if("Opera"===e.brand)return true;if("Microsoft Edge"===e.brand)return true;if("IE"===e.brand)return true;if("Yandex"===e.brand)return true;if("Vivaldi"===e.brand)return true;if("Samsung Internet"===e.brand)return true;if("Baidu"===e.brand)return true;if("UCBrowser"===e.brand)return true;if("QQBrowser"===e.brand)return true;if("QQ"===e.brand)return true;return false}).map(function(e){return e.brand}).join(" ");return t}function m(e){var t=e.filter(function(e){if("Chromium"===e.brand)return true;if("Google Chrome"===e.brand)return true;if("Safari"===e.brand)return true;if("Firefox"===e.brand)return true;if("Opera"===e.brand)return true;if("Edge"===e.brand)return true;if("IE"===e.brand)return true;if("Yandex"===e.brand)return true;if("Vivaldi"===e.brand)return true;if("Samsung Internet"===e.brand)return true;if("Baidu"===e.brand)return true;if("UCBrowser"===e.brand)return true;if("QQBrowser"===e.brand)return true;if("QQ"===e.brand)return true;return false}).map(function(e){return e.version}).filter(function(e,t,n){return n.indexOf(e)===t}).join(" ");return t}function p(e){return dfm.indexOf(e,"Chromium","brand")>-1}function h(e){return dfm.indexOf(e,"Google Chrome","brand")>-1}r.registerHelper("isMobile",function(){return dfm.isMobile()});r.registerHelper("isDesktop",function(){return dfm.isDesktop()});dfm.core.humanUserAgentData=function(e){var t={};if(e.highEntropyValues){t.os=e.highEntropyValues.platform;t.platformVersion=e.highEntropyValues.platformVersion;t.mobile=e.highEntropyValues.mobile;t.brands=e.highEntropyValues.brands;if("Windows"===e.highEntropyValues.platform){var n=parseInt(e.highEntropyValues.platformVersion.split(".")[0]);if(n>=13)t.osVersion="11";else if(n>0)t.osVersion="10";else t.osVersion="<10"}}else if(e.lowEntropyValues){t.os=e.lowEntropyValues.platform;t.platformVersion="";t.mobile=e.lowEntropyValues.mobile;t.brands=e.lowEntropyValues.brands;t.osVersion=""}return t}}}},userStatus:{client:{
161"main.js":function(e,t,n){n.link("./user-status.js")},
161"user-status.js":function(){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function r(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}var i=function(){"use strict";function n(e){t(this,n);this.status=e;this.idleHandle=null}r(n,[{key:"setStatus",value:function(t){if(!["online","idle"].includes(t))return log("error");if(this.status!==t){this.status=t;e.callAsync("dfm.userStatus.set",t)}}},{key:"getStatus",value:function(){return this.status}},{key:"online",value:function(){var e=this;this.setStatus("online");if(this.idleHandle)clearTimeout(this.idleHandle);this.idleHandle=setTimeout(function(){e.setStatus("idle");e.idleHandle=null},6e4)}},{key:"idle",value:function(){this.setStatus("idle")}}]);return n}();dfm.userStatus=new i(true);e.startup(function(){window.addEventListener("click",function(){return dfm.userStatus.online()});window.addEventListener("keydown",function(){return dfm.userStatus.online()});window.onblur=function(e){dfm.userStatus.idle()};window.onFocus=function(e){dfm.userStatus.online()};if(e.isCordova){document.addEventListener("pause",dfm.userStatus.idle());document.addEventListener("resume",dfm.userStatus.online())}})}}},users:{client:{
161"templates-helpers.html":function(e,t,n){n.link("./template.templates-helpers.js",{"*":"*+"})},
161"template.templates-helpers.js":function(){r.__checkName("dfmUserFullname");r["dfmUserFullname"]=new r("Template.dfmUserFullname",function(){var e=this;return b.If(function(){return g.dataMustache(e.lookup("and"),e.lookup("isAdmin"),e.lookup("linkAdminUserProfile"))},function(){return["\n        ",v.A({href:function(){return g.mustache(e.lookup("pathFor"),"adminUser",g.kw({userId:e.lookup("userId")}))},class:"position-relative",target:"_blank"},"\n            ",v.SPAN({class:function(){return g.mustache(e.lookup("getUserStatusClass"),g.kw({userId:e.lookup("userId")}))}},b.View("lookup:userFullname",function(){return g.mustache(e.lookup("userFullname"))})),"\n        "),"\n    "]},function(){return["\n        ",v.SPAN({class:function(){return g.mustache(e.lookup("getUserStatusClass"),g.kw({userId:e.lookup("userId")}))}},b.View("lookup:userFullname",function(){return g.mustache(e.lookup("userFullname"))})),"\n    "]})})},
161"templates-helpers.js":function(e,t,n){n.link("./templates-helpers.html");r.dfmUserFullname.onCreated(function(){if(this.data.subscribe)this.subscribe("dfmAdminUser",this.data.userId)});r.dfmUserFullname.onRendered(function(){});r.dfmUserFullname.helpers({userFullname:function(){return this.userFullname||dfm.getUserFullname(this.userId)}});r.dfmUserFullname.events({})}}}},lib:{
161"check.js":function(e,t,n){var r;n.link("meteor/check",{check:function(e){r=e}},0);globalThis.check=r},
161"routes.js":function(t,n,r){var i;r.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){i=e}},0);a.route("/webmaster/dashboard",{name:"webmasterDashboard",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../client/templates/webmaster/dashboard/dashboard.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()}});a.route("/webmaster/roles",{name:"webmasterRoles",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../client/templates/webmaster/roles.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Roles"}})}});a.route("/webmaster/permissions",{name:"webmasterPermissions",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../client/templates/webmaster/permissions.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(dfm.permissionsReady&&!dfm.permissionsReady())return this.next();if(!dfm.canManagePermissions())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Permissions"}})}});a.route("/webmaster/groups",{name:"webmasterGroups",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../client/templates/webmaster/groups.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(dfm.permissionsReady&&!dfm.permissionsReady())return this.next();if(!dfm.canManagePermissions())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Groups"}})}});a.route("/webmaster/users",{name:"webmasterUsers",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../client/templates/webmaster/users.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Users"}})}});a.route("/webmaster/users/:userId",{name:"webmasterUsersEdit",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../client/templates/webmaster/users-edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},waitOn:function(){return[e.subscribe("dfmWebmasterUser",this.params.userId)]},data:function(){return e.users.findOne(this.params.userId)},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Users Edit"}})}});a.route("/webmaster/messages",{name:"webmasterMessages",template:"webmasterMessagesBack",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../api/messages/client/ui/back.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},waitOn:function(){return[e.subscribe("dfmWebmasterMessagesBack")]},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Messages"}})}});a.route("/webmaster/notifications",{name:"webmasterNotifications",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../api/notifications/client/admin/notifications.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Notifications"}})}});a.route("/webmaster/logs",{name:"webmasterLogs",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../api/logs/client/admin/logs.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Logs"}})}});a.route("/webmaster/settings",{name:"dfmSettings",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../api/settings/client/admin/settings.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Settings"}})}});a.route("/webmaster/files",{name:"webmasterFiles",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../api/files/client/admin/files.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Files"}})}});a.route("/webmaster/impersonate-logs",{name:"webmasterImpersonateLogs",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../api/impersonate/client/back/impersonateLogs.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Impersonate Logs"}})}});a.route("/super-admin/languages",{name:"adminLanguages",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../api/languages/client/admin/languages.js");if(!dfm.isSuperAdmin())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Admin | Languages"}})}});a.route("/super-admin/languages/:_id",{name:"adminLanguageEdit",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../api/languages/client/admin/language-edit.js");if(!dfm.isSuperAdmin())a.go("/");this.next()},data:function(){return i.findOne(this.params._id)},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Admin | Language"}})}});a.route("/webmaster/translations",{name:"webmasterTranslations",layoutTemplate:"webmasterLayout",onBeforeAction:function(){r.link("../api/languages/client/admin/translations.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Translations"}})}});a.route("/webmaster/crons",{name:"dfmAdminCron",layoutTemplate:"webmasterLayout",waitOn:function(){return[e.subscribe("dfmCrons")]},onBeforeAction:function(){r.link("../api/cron/client/cron.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isWebmaster())a.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Webmaster | Crons"}})}});if(e.isClient)e.startup(function(){var e=a.routes.some(function(e){return 0===String(e._path||"").indexOf("/reset-password")});if(e)return;a.route("/reset-password/:paramToken",{name:"dfmResetPassword",template:"dfmAuthReset",onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:dfm.trans("resetYourPassword")}})}})})},helpers:{
161"accounts.js":function(e,t,n){var r;n.link("meteor/meteor",{Meteor:function(e){r=e}},0);var i;n.link("../../api/accounts/lib/collections",{default:function(e){i=e}},1);var o;n.link("meteor/roles",{Roles:function(e){o=e}},2);function a(e,t,n,r,i,o,a){try{var s=e[o](a);var l=s.value}catch(e){n(e);return}if(s.done)t(l);else d.resolve(l).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new d(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)})}}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),"function"==typeof m&&(a[m.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,r&&(i=2&s[0]?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[2&s[0],i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;r=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}globalThis.dfm=globalThis.dfm||{};dfm.usersLimitPublish=100;dfm.isWebmaster=function(e){try{e=e||r.userId()}catch(e){}if(r.isClient)return e&&o.userIsInRole(e,["webmaster"])&&!Session.get("hideOnlyAdminThings")&&!Session.get("hideOnlySuperAdminThings")&&!Session.get("hideOnlyWebmasterThings");return e&&o.userIsInRole(e,["webmaster"])};dfm.isWebmasterAsync=function(e){return s(function(){var t,n;return l(this,function(i){switch(i.label){case 0:try{e=e||r.userId()}catch(e){}if(!r.isClient)return[3,3];t=e;if(!t)return[3,2];return[4,o.userIsInRoleAsync(e,["webmaster"])];case 1:t=i.sent();i.label=2;case 2:return[2,t&&!Session.get("hideOnlyAdminThings")&&!Session.get("hideOnlySuperAdminThings")&&!Session.get("hideOnlyWebmasterThings")];case 3:n=e;if(!n)return[3,5];return[4,o.userIsInRoleAsync(e,["webmaster"])];case 4:n=i.sent();i.label=5;case 5:return[2,n];case 6:return[2]}})})()};dfm.isSuperAdmin=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.userId();if(r.isClient)return e&&o.userIsInRole(e,["webmaster","superAdmin"])&&!Session.get("hideOnlyAdminThings")&&!Session.get("hideOnlySuperAdminThings");return e&&o.userIsInRole(e,["webmaster","superAdmin"])};dfm.isSuperAdminAsync=function(){return s(function(){var e,t,n;var i=arguments;return l(this,function(a){switch(a.label){case 0:e=i.length>0&&void 0!==i[0]?i[0]:r.userId();if(!r.isClient)return[3,3];t=e;if(!t)return[3,2];return[4,o.userIsInRoleAsync(e,["webmaster","superAdmin"])];case 1:t=a.sent();a.label=2;case 2:return[2,t&&!Session.get("hideOnlyAdminThings")&&!Session.get("hideOnlySuperAdminThings")];case 3:n=e;if(!n)return[3,5];return[4,o.userIsInRoleAsync(e,["webmaster","superAdmin"])];case 4:n=a.sent();a.label=5;case 5:return[2,n];case 6:return[2]}})}).apply(this,arguments)};dfm.isAdmin=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.userId();if(r.isClient)return e&&o.userIsInRole(e,["webmaster","superAdmin","admin"])&&!Session.get("hideOnlyAdminThings");return e&&o.userIsInRole(e,["webmaster","superAdmin","admin"])};dfm.isAdminAsync=function(){return s(function(){var e,t,n;var i=arguments;return l(this,function(a){switch(a.label){case 0:e=i.length>0&&void 0!==i[0]?i[0]:r.userId();if(!r.isClient)return[3,3];t=e;if(!t)return[3,2];return[4,o.userIsInRoleAsync(e,["webmaster","superAdmin","admin"])];case 1:t=a.sent();a.label=2;case 2:return[2,t&&!Session.get("hideOnlyAdminThings")];case 3:n=e;if(!n)return[3,5];return[4,o.userIsInRoleAsync(e,["webmaster","superAdmin","admin"])];case 4:n=a.sent();a.label=5;case 5:return[2,n];case 6:return[2]}})}).apply(this,arguments)};dfm.isAnonymous=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.userId();var t,n;if("string"!=typeof e)return null==e?void 0:null==(n=e.services)?void 0:null==(t=n.anonymous)?void 0:t.anonymous;var i,o,a;return null==(a=r.users.findOne(e))?void 0:null==(o=a.services)?void 0:null==(i=o.anonymous)?void 0:i.anonymous};dfm.isAnonymousAsync=function(e){return s(function(){var t,n,i,o,a;return l(this,function(s){switch(s.label){case 0:if(!e)return[2,false];if("string"!=typeof e)return[2,!!(null==e?void 0:null==(n=e.services)?void 0:null==(t=n.anonymous)?void 0:t.anonymous)];return[4,r.users.findOneAsync(e,{fields:{"services.anonymous":1}})];case 1:a=s.sent();return[2,!!(null==a?void 0:null==(o=a.services)?void 0:null==(i=o.anonymous)?void 0:i.anonymous)]}})})()};dfm.getUser=function(e){if(!e)return;return"string"==typeof e?r.users.findOne(e):e};dfm.getUserAsync=function(e){return s(function(){var t;return l(this,function(n){switch(n.label){case 0:if(!e)return[2,void 0];if("string"!=typeof e)return[3,2];return[4,r.users.findOneAsync(e)];case 1:t=n.sent();return[3,3];case 2:t=e;n.label=3;case 3:return[2,t]}})})()};dfm.getUsername=function(e){var t=r.users.findOne(e);if(!t)return"userNotFound";var n=t.username;if(n)return n;var i=dfm.getUserEmail(e);return i.substring(0,i.indexOf("@"))};dfm.getUsernameAsync=function(e){return s(function(){var t,n,i;return l(this,function(o){switch(o.label){case 0:return[4,r.users.findOneAsync(e)];case 1:t=o.sent();if(!t)return[2,"userNotFound"];n=t.username;if(n)return[2,n];return[4,dfm.getUserEmailAsync(e)];case 2:i=o.sent();return[2,i.substring(0,i.indexOf("@"))]}})})()};dfm.getUserFullname=function(e){var t=dfm.getUser(e);if(!t)return"not found!";var n=dfm.getUserFirstName(t);var r=dfm.getUserLastName(t);if(!n&&!r)return"anonymous";return n+" "+r};dfm.getUserFullnameAsync=function(e){return s(function(){var t,n,r;return l(this,function(i){switch(i.label){case 0:return[4,dfm.getUserAsync(e)];case 1:t=i.sent();if(!t)return[2,"not found!"];return[4,dfm.getUserFirstNameAsync(t)];case 2:n=i.sent();return[4,dfm.getUserLastNameAsync(t)];case 3:r=i.sent();if(!n&&!r)return[2,"anonymous"];return[2,n+" "+r]}})})()};dfm.getUserFirstName=function(e){var t,n,r;var i=dfm.getUser(e);if(!i)return"not found!";if(null==(t=i.profile)?void 0:t.firstName)return i.profile.firstName[0].toUpperCase()+i.profile.firstName.substring(1);if(null==(r=i.services)?void 0:null==(n=r.google)?void 0:n.given_name)return i.services.google.given_name;return""};dfm.getUserFirstNameAsync=function(e){return s(function(){var t,n,r,i;return l(this,function(o){switch(o.label){case 0:return[4,dfm.getUserAsync(e)];case 1:i=o.sent();if(!i)return[2,"not found!"];if(null==(t=i.profile)?void 0:t.firstName)return[2,i.profile.firstName[0].toUpperCase()+i.profile.firstName.substring(1)];if(null==(r=i.services)?void 0:null==(n=r.google)?void 0:n.given_name)return[2,i.services.google.given_name];return[2,""]}})})()};dfm.getUserLastName=function(e){var t,n,r;var i=dfm.getUser(e);if(!i)return"not found!";if(null==(t=i.profile)?void 0:t.lastName)return i.profile.lastName.toUpperCase();if(null==(r=i.services)?void 0:null==(n=r.google)?void 0:n.family_name)return i.services.google.family_name;return""};dfm.getUserLastNameAsync=function(e){return s(function(){var t,n,r,i;return l(this,function(o){switch(o.label){case 0:return[4,dfm.getUserAsync(e)];case 1:i=o.sent();if(!i)return[2,"not found!"];if(null==(t=i.profile)?void 0:t.lastName)return[2,i.profile.lastName.toUpperCase()];if(null==(r=i.services)?void 0:null==(n=r.google)?void 0:n.family_name)return[2,i.services.google.family_name];return[2,""]}})})()};dfm.getUserByEmail=function(e){if(!e)return;if(r.isClient)return r.users.findOne({"emails.0.address":e});return u.findUserByEmail(e)};dfm.getUserByEmailAsync=function(e){return s(function(){return l(this,function(t){switch(t.label){case 0:if(!e)return[2,void 0];if(!r.isClient)return[3,2];return[4,r.users.findOneAsync({"emails.0.address":e})];case 1:return[2,t.sent()];case 2:return[2,u.findUserByEmail(e)];case 3:return[2]}})})()};dfm.getUserEmail=function(e){var t,n,r,i,o;var a=dfm.getUser(e);if(!a)return"";if(null==(n=a.emails)?void 0:null==(t=n[0])?void 0:t.address)return a.emails[0].address;if(null==(r=a.services)?void 0:r.google)return a.services.google.email;if(null==(i=a.services)?void 0:i.facebook)return a.services.facebook.email;if(null==(o=a.services)?void 0:o.linkedin)return a.services.linkedin.emailAddress;return""};dfm.getUserEmailAsync=function(e){return s(function(){var t,n,r,i,o,a,s,u,c;return l(this,function(l){switch(l.label){case 0:return[4,dfm.getUserAsync(e)];case 1:c=l.sent();if(!c)return[2,""];return[2,(null==(n=c.emails)?void 0:null==(t=n[0])?void 0:t.address)||(null==(i=c.services)?void 0:null==(r=i.google)?void 0:r.email)||(null==(a=c.services)?void 0:null==(o=a.facebook)?void 0:o.email)||(null==(u=c.services)?void 0:null==(s=u.linkedin)?void 0:s.emailAddress)||""]}})})()};dfm.getUserAvatar=function(e){var t;var n=dfm.getUser(e);if(!n)return"";
161if(dfm.isAnonymous(n))return"/packages/davidfm_core/assets/img/spy-g.png";return null==(t=n.profile)?void 0:t.avatar};dfm.getUserAvatarAsync=function(e){return s(function(){var t,n;return l(this,function(r){switch(r.label){case 0:return[4,dfm.getUserAsync(e)];case 1:n=r.sent();if(!n)return[2,""];if(dfm.isAnonymous(n))return[2,"/packages/davidfm_core/assets/img/spy-g.png"];return[2,null==(t=n.profile)?void 0:t.avatar]}})})()};dfm.getUserStatusClass=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.uId,n=void 0===t?"":t,r=e.showOffile,i=void 0===r?false:r;var o=dfm.getUserStatus(n);if("idle"===o)return"badge bg-warning text-dark";if("online"===o)return"badge bg-success";if("offline"===o)return i?"badge bg-danger":"";return""};dfm.getUserStatus=function(e){var t,n,r,i,o,a;var s=dfm.getUser(e);if(!s)return;if((null==(n=s.dfm)?void 0:null==(t=n.userStatus)?void 0:t.online)===false)return"offline";if(null==(i=s.dfm)?void 0:null==(r=i.userStatus)?void 0:r.idle)return"idle";if(null==(a=s.dfm)?void 0:null==(o=a.userStatus)?void 0:o.online)return"online"};dfm.isUserOnline=function(e){var t,n;var r=dfm.getUser(e);if(!r)return;return null==(n=r.dfm)?void 0:null==(t=n.userStatus)?void 0:t.online};dfm.isUserOnlineAsync=function(e){return s(function(){var t,n,r;return l(this,function(i){switch(i.label){case 0:return[4,dfm.getUserAsync(e)];case 1:r=i.sent();if(!r)return[2,void 0];return[2,null==(n=r.dfm)?void 0:null==(t=n.userStatus)?void 0:t.online]}})})()};dfm.hasUserConnectionActive=function(e){return i.findOne({"custom.userId":e})};dfm.hasUserConnectionActiveAsync=function(e){return s(function(){return l(this,function(t){switch(t.label){case 0:return[4,i.findOneAsync({"custom.userId":e})];case 1:return[2,t.sent()]}})})()}},
161"core.js":function(e,t,n){var r;n.link("meteor/meteor",{Meteor:function(e){r=e}},0);n.link("./times.js");function i(e,t){if(null!=t&&void 0!==m&&t[m.hasInstance])return!!t[m.hasInstance](e);return e instanceof t}function o(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}var s,l,u,c,f,d;globalThis.dfm=globalThis.dfm||{};dfm.core=dfm.core||{};dfm.coreVersion="0.1.49";dfm.appName=(null==(l=r.settings)?void 0:null==(s=l.public)?void 0:s.appName)?r.settings.public.appName:r.absoluteUrl();dfm.appUrl=(null==(c=r.settings)?void 0:null==(u=c.public)?void 0:u.appUrl)?r.settings.public.appUrl:r.absoluteUrl();var p=(null==(d=r.settings)?void 0:null==(f=d.public)?void 0:f.locaLtUrl)||"noUrl";dfm.instancePingTimeout=6e4;dfm.isLocalhost=function(){var e=r.absoluteUrl();if(e===p)return true;return"http://localhost"===e.slice(0,16)||"http://192.168"===e.slice(0,14)||"http://monserveurlocal.com:3000"===e.slice(0,31)};dfm.getAppName=function(){var e,t;var n=null==(t=r.settings)?void 0:null==(e=t.public)?void 0:e.appName;if(r.isClient)return n?n:r.absoluteUrl();return n?n:"noAppName"};dfm.arrayObjectIndexOf=function(e,t,n){return dfm.indexOf(e,t,n)};dfm.indexOf=function(e,t,n){if(!e)return dfm.logError("Call of dfm.indexOf of undefined");if((void 0===e?"undefined":o(e))!=="object")return dfm.logError("Call of orbiter.core.arrayObjectIndexOf without array");if(n)if(i(t,Date)){if("string"==typeof n){var r=n;n=function(e){if(i(e[r],Date))return e[r].getTime();return e[r]}}return e.map(n).indexOf(t.getTime())}else{if("string"==typeof n){var a=n;n=function(e){return e[a]}}return e.map(n).indexOf(t)}if(i(t,Date))return e.map(function(e){if(i(e,Date))return e.getTime();return e}).indexOf(t.getTime());return e.indexOf(t)};dfm.nl2br=function(e,t){var n=t?"<br/>":"<br>";return(e+"").replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1"+n+"$2")};dfm.markdown2html=function(e){function t(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}var n=e;var r=[];n=n.replace(RegExp("```([^`]*?)```","gs"),function(e){r.push(e);return"%%CODE_BLOCK_"+(r.length-1)+"%%"});var i=[];n=n.replace(/`([^`]*?)`/g,function(e,t){i.push(t);return"%%INLINE_CODE_"+(i.length-1)+"%%"});n=n.replace(/^### (.*?)$/gm,"<h3>$1</h3>");n=n.replace(/^## (.*?)$/gm,"<h2>$1</h2>");n=n.replace(/^# (.*?)$/gm,"<h1>$1</h1>");n=n.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>");n=n.replace(/\*(.*?)\*/g,"<em>$1</em>");n=n.replace(/~~(.*?)~~/g,"<del>$1</del>");n=n.replace(/\[(.*?)\]\((.*?)\)/g,'<a href="$2">$1</a>');n=n.replace(/!\[(.*?)\]\((.*?)\)/g,'<img src="$2" alt="$1">');n=n.replace(/^\s*[\*\-\+]\s+(.*?)$/gm,"<li>$1</li>");n=n.replace(/(<li>.*?<\/li>)(?:\n|$)+(?=<li>)/g,"$1");n=n.replace(/(<li>.*?<\/li>)(?:\n|$)+/g,"<ul>$1</ul>");n=n.replace(/^\s*\d+\.\s+(.*?)$/gm,"<li>$1</li>");n=n.replace(/(<li>.*?<\/li>)(?:\n|$)+(?=<li>)/g,"$1");n=n.replace(/(<li>.*?<\/li>)(?:\n|$)+/g,"<ol>$1</ol>");n=n.replace(/^(?!<[a-z])(.*?)$/gm,function(e,t){if(""===t.trim())return"";return"<p>"+t+"</p>"});n=n.replace(/^\> (.*?)$/gm,"<blockquote>$1</blockquote>");n=n.replace(/^(\-{3,}|\*{3,})$/gm,"<hr>");n=n.replace(/%%CODE_BLOCK_(\d+)%%/g,function(e,n){var i=r[parseInt(n)].replace(/```(?:(\w+))?\n([\s\S]*?)```/g,function(e,n,r){n=n||"";return'<pre><code class="language-'+n+'">'+t(r.trim())+"</code></pre>"});return i});n=n.replace(/%%INLINE_CODE_(\d+)%%/g,function(e,n){return"<code>"+t(i[parseInt(n)])+"</code>"});return n};dfm.IsJsonString=function(e){try{JSON.parse(e)}catch(e){return false}return true};dfm.twoDigits=function(e){return("0"+e).slice(-2)};dfm.throwError=function(e){if("string"==typeof e)e={message:e};var t=e.message,n=e.tags,i=void 0===n?[]:n,o=e.details,a=void 0===o?{}:o,s=e.user,l=e.error,u=void 0===l?500:l,c=e.options,f=void 0===c?{slack:{icon:"error"}}:c;if(r.isClient)dfm.toastError(t);else{i.push("throwError");Object.assign(a,{exception:t});dfm.logError({message:t,tags:i,details:a,user:s,options:f})}throw new r.Error(u,t)};dfm.log=function(e){if("boolean"==typeof e)e=JSON.stringify(e);if("string"==typeof e)e={messages:[e]};if(!e.messages)e.messages=[];if(e.message){if("object"===o(e.message))e.message=JSON.stringify(e.message);e.messages.push(e.message);delete e["message"]}if(e.m){if("object"===o(e.m))e.m=JSON.stringify(e.m);e.messages.push(e.m);delete e["m"]}if(!e.details)e.details={};if(!e.tags)e.tags=[];if(e.tag)e.tags.push(e.tag);if(e.t)e.tags.push(e.t);if(r.isClient){var t;
161if(e.console||e.c)e.messages.forEach(function(t){if(e.tags.includes("error"))logDanger(t);else console.log(t)});if(e.alert||e.a)e.messages.forEach(function(e){return dfm.toastError(e)});if(e.toast||e.t)e.messages.forEach(function(e){return dfm.toast(e)});var n=a?a.current():null;e.details.route={};e.details.route.request=null==n?void 0:n.request;if(e.url)e.details.route.absolute=e.url;e.details.userAgent=null==(t=navigator)?void 0:t.userAgent;e.details.ua=dfm.ua;e.details._status=r.status().status;e.details.connectionId=r.connection._lastSessionId;e.tags.push("client");if(dfm.isLocalhost())e.details.localhost=true}else{if(e.console||e.c)e.messages.forEach(function(e){return console.log(e)});e.tags.push("server")}r.callAsync("dfm.logs.insert",e)};dfm.logC=function(e){dfm.log({m:e,c:true})};dfm.logSuccess=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e)e={messages:[e]};if(!e.tags)e.tags=[];e.tags.push("success");e.console=true;return dfm.log(e)};dfm.logWarning=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e)e={messages:[e]};if(!e.tags)e.tags=[];e.tags.push("warning");e.console=true;return dfm.log(e)};dfm.logError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e)e={messages:[e]};if(!e.tags)e.tags=[];e.tags.push("error");e.console=true;return dfm.log(e)};dfm.logErrorC=function(e){if(dfm.isWebmaster())dfm.alert("logErrorC depreciated");if("string"==typeof e)e={messages:[e]};dfm.logError(e)};dfm.core.humanFileSize=function(e,t){if(!e)return e;var n=t?1e3:1024;if(Math.abs(e)<n)return e+" B";var r=t?["KB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];var i=-1;do{e/=n;++i}while(Math.abs(e)>=n&&i<r.length-1);return e.toFixed(1)+" "+r[i]};dfm.formatFileSize=function(e){return dfm.core.humanFileSize(e,true)};dfm.folderDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;var t=e.getFullYear();var n=("0"+(e.getMonth()+1)).slice(-2);var r=("0"+e.getDate()).slice(-2);var i=("0"+e.getHours()).slice(-2);var o=("0"+e.getMinutes()).slice(-2);var a=("0"+e.getSeconds()).slice(-2);return"".concat(t).concat(n).concat(r).concat(i).concat(o).concat(a)};dfm.validateEmail=function(e){return/(.+)@(.+){2,}\.(.+){2,}/.test(e)};String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)};dfm.isMeteorConnected=function(){if(Session.get(SHOW_CONNECTION_ISSUE_KEY))return r.status().connected;return true};dfm.areArraysEqual=function(e,t){if(e.length!==t.length)return false;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return false;return true}},
161"log.js":function(){globalThis.log=console.log;globalThis.logInfo=function(e,t){t?log("\uD83D\uDCA1 "+e,t):log("\uD83D\uDCA1 "+e)};globalThis.logWarning=function(e,t){t?log("⚠️ "+e,t):log("⚠️ "+e)};globalThis.logWarn=globalThis.logWarning;globalThis.logSuccess=function(e,t){t?log("✅ "+e,t):log("✅ "+e)};globalThis.logDebug=function(e,t){t?log("\uD83D\uDD0D "+e,t):log("\uD83D\uDD0D "+e)};globalThis.logError=function(e,t){t?log("❌ "+e,t):log("❌ "+e)};globalThis.logDanger=function(e,t){t?log("❌ "+e,t):log("❌ "+e)}},
161"main.js":function(e,t,n){n.link("./log.js");n.link("./core.js");n.link("./accounts.js")},
161"times.js":function(){function t(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e){if(Array.isArray(e))return e}function r(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function i(e,t){if(null!=t&&void 0!==m&&t[m.hasInstance])return!!t[m.hasInstance](e);return e instanceof t}function o(e,t){var n=null==e?null:void 0!==m&&e[m.iterator]||e["@@iterator"];if(null==n)return;var r=[];var i=true;var o=false;var a,s;try{for(n=n.call(e);!(i=(a=n.next()).done);i=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){o=true;s=e}finally{try{if(!i&&null!=n["return"])n["return"]()}finally{if(o)throw s}}return r}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var i=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));i.forEach(function(t){r(e,t,n[t])})}return e}function l(e,t){return n(e)||o(e,t)||c(e,t)||a()}function u(e){return e&&void 0!==m&&e.constructor===m?"symbol":typeof e}function c(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor)r=e.constructor.name;if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}globalThis.dfm=globalThis.dfm||{};function f(e){if(!e||"string"!=typeof e)return null;var t={ws:{weekday:"short"},wl:{weekday:"long"},dn:{day:"numeric"},dd:{day:"2-digit"},Mn:{month:"numeric"},Md:{month:"2-digit"},Ms:{month:"short"},Ml:{month:"long"},yn:{year:"numeric"},yd:{year:"2-digit"},hn:{hour:"numeric"},hd:{hour:"2-digit"},mn:{minute:"numeric"},md:{minute:"2-digit"},sn:{second:"numeric"},sd:{second:"2-digit"}};var n=e.split("_");var r={};n.forEach(function(e){if(t[e])r=s({},r,t[e])});return Object.keys(r).length>0?r:null}var d=[["year",31536e6],["quarter",80352e5],["month",26784e5],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]];var p={hm:"hn_mn",hms:"hn_mn_sn",vshort:"dn_Mn",short:"dn_Mn_yn",short2:"dd_Mn_yn",shortFullTime2:"dd_Md_yn_hn_mn",shortFullTime3:"dd_Md_yn_hn_mn_sn",tinyFull:"dd_Md_yd_hn_mn_sn",tinyFull2:"dd_Md_yd_hn_mn",medium:"dn_Ml_yn",medium2:"dd_Ml_yn",medium3:"dd_Ml_yd",medium4:"dn_Ml_yn_hn_mn",wldnml:"wl_dn_Ml",mediumWeekday:"wl_dn_Ml_yn",long:"wl_dn_Ml_yn_hn_mn",wldnmlynhnnn:"wl_dn_Ml_yn_hn_mn",full:"wl_dn_Ml_yn_hn_mn_sn",full2:"wl_dd_Ml_yn_hn_mn_sn"};function h(e){if(!e)return null;if("now"===e)return new Date;if("number"==typeof e)return new Date(e);if(i(e,Date))return e;var t=new Date(e);return isNaN(t)?null:t}function b(t){var n,r,i;return t||(null==(r=dfm.languages)?void 0:null==(n=r.getCurrent)?void 0:n.call(r))||e.isClient&&(null==(i=navigator.language)?void 0:i.split("-")[0])||"fr"}function g(e,t){var n=e.getFullYear();var r=String(e.getMonth()+1).padStart(2,"0");var i=String(e.getDate()).padStart(2,"0");var o=String(e.getHours()).padStart(2,"0");var a=String(e.getMinutes()).padStart(2,"0");if("inputDate"===t)return"".concat(n,"-").concat(r,"-").concat(i);return"".concat(n,"-").concat(r,"-").concat(i,"T").concat(o,":").concat(a)}function v(e,t){var n=new Intl.RelativeTimeFormat(t,{numeric:"auto"});var r=e-new Date;var i=Math.abs(r);var o=true,a=false,s=void 0;try{for(var u=d[m.iterator](),c;!(o=(c=u.next()).done);o=true){var f=l(c.value,2),p=f[0],h=f[1];if(i>
161=h)return n.format(Math.round(r/h),p)}}catch(e){a=true;s=e}finally{try{if(!o&&null!=u.return)u.return()}finally{if(a)throw s}}return n.format(0,"second")}function y(e){var t=p[e]||e;return f(t)}dfm.dateFormatIsNative=function(e){if(!e)return true;if(["utc","gmt","iso","inputDate","inputDateTime","input","ago"].includes(e))return true;return null!=y(e)};dfm.formatDate=function(e,t,n){try{var r,o,a,l;if((void 0===e?"undefined":u(e))!=="object"||i(e,Date)){r=e;o=t||"shortFullTime2";a=n;l={}}else{var c,d,m;c=e,r=c.date,d=c.format,o=void 0===d?"shortFullTime2":d,a=c.lang,m=c.options,l=void 0===m?{}:m}var p=h(r);if(!p||isNaN(p))return"";if(["utc","gmt","iso"].includes(o))return p.toISOString();if(["inputDate","inputDateTime","input"].includes(o))return g(p,o);var w=b(a);if("ago"===o)return v(p,w);if("string"==typeof l)try{l=JSON.parse(l)}catch(e){l={}}var k=y(o)||f("dd_Md_yn_hn_mn");var x=s({},k,l);return new Intl.DateTimeFormat(w,x).format(p)}catch(e){console.error("formatDate error:",e);return"invalid date"}};dfm.textToDate=function(e){return new Date(e)};dfm.isDate=function(e){return e&&i(e,Date)&&!isNaN(e.valueOf())};dfm.convertTZ=function(e,t){return new Date(("string"==typeof e?new Date(e):e).toLocaleString("en-US",{timeZone:t}))};dfm.secondsToTime=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{readable:false,text:false};if(!e)return"00";if(!t.format)t.format={days:1,hours:1,minutes:1,seconds:1};var n={days:void 0,hours:void 0,minutes:void 0,seconds:void 0};var r=Math.floor(e/86400);if(r>-1){if(r>0)n.days=r;var i=Math.floor(e/3600%24);if(i>-1){if(r>0||i>0)n.hours=dfm.twoDigits(i);var o=Math.floor(e/60%60);if(o>-1){if(r>0||i>0||o>0)n.minutes=dfm.twoDigits(o);var a=Math.floor(e%60);if(a>-1)n.seconds=dfm.twoDigits(a)}}}if(t.readable){var s="";if(n.days)s+=n.days+(t.text?" days, ":":");if(n.hours)s+=n.hours+(t.text?" hours, ":":");if(n.minutes)s+=n.minutes+(t.text?" minutes, ":":");if((1===t.format.seconds||2===t.format.seconds&&!s)&&n.seconds)s+=n.seconds+(t.text?" seconds":"");return s}return n}}}},node_modules:{"javascript-time-ago":{
161"package.json":function(e,t,n){n.exports={name:"javascript-time-ago",version:"2.3.9",main:"index.commonjs.js",module:"index.js"}},
161"index.commonjs.js":function(e,t,n){"use strict";t=n.exports=e("./commonjs/TimeAgo").default;t["default"]=e("./commonjs/TimeAgo").default;var r=e("./commonjs/locale");t.intlDateTimeFormatSupported=r.intlDateTimeFormatSupported;t.intlDateTimeFormatSupportedLocale=r.intlDateTimeFormatSupportedLocale},commonjs:{
161"TimeAgo.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isStyleObject=R;t.default=void 0;var n=d(e("relative-time-format"));var r=d(e("./cache"));var i=d(e("./locale"));var o=d(e("./steps/getStep"));var a=d(e("./steps/getStepDenominator"));var s=d(e("./steps/getTimeToNextUpdate"));var l=e("./LocaleDataStore");var u=d(e("./style/roundMinute"));var c=d(e("./style/getStyleByName"));var f=e("./round");function d(e){return e&&e.__esModule?e:{default:e}}function p(e){p="function"==typeof m&&"symbol"==typeof m.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof m&&e.constructor===m&&e!==m.prototype?"symbol":typeof e};return p(e)}function h(e,t){return v(e)||g(e,t)||b()}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function g(e,t){var n=[];var r=true;var i=false;var o=void 0;try{for(var a=e[m.iterator](),s;!(r=(s=a.next()).done);r=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){i=true;o=e}finally{try{if(!r&&null!=a["return"])a["return"]()}finally{if(i)throw o}}return n}function v(e){if(Array.isArray(e))return e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function k(e,t,n){if(t)w(e.prototype,t);if(n)w(e,n);return e}var x=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.polyfill;y(this,e);if("string"==typeof t)t=[t];this.locale=(0,i.default)(t.concat(e.getDefaultLocale()),l.getLocaleData);if("undefined"!=typeof Intl){if(Intl.NumberFormat)this.numberFormat=new Intl.NumberFormat(this.locale)}if(false===a){this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat;this.IntlPluralRules=Intl.PluralRules}else{this.IntlRelativeTimeFormat=n.default;this.IntlPluralRules=n.default.PluralRules}this.relativeTimeFormatCache=new r.default;this.pluralRulesCache=new r.default}k(e,[{key:"format",value:function(e,t,n){if(!n)if(t&&!P(t)){n=t;t=void 0}else n={};if(!t)t=u.default;if("string"==typeof t)t=(0,c.default)(t);var r=j(e);var i=this.getLabels(t.flavour||t.labels),a=i.labels,f=i.labelsType;var d;if(void 0!==t.now)d=t.now;if(void 0===d&&void 0!==n.now)d=n.now;if(void 0===d)d=Date.now();var m=(d-r)/1e3;var p=n.future||m<0;var b=D(a,(0,l.getLocaleData)(this.locale).now,(0,l.getLocaleData)(this.locale).long,p);if(t.custom){var g=t.custom({now:d,date:new Date(r),time:r,elapsed:m,locale:this.locale});if(void 0!==g)return g}var v=S(t.units,a,b);var y=n.round||t.round;var w=(0,o.default)(t.gradation||t.steps||u.default.steps,m,{now:d,units:v,round:y,future:p,getNextStep:true}),k=h(w,3),x=k[0],T=k[1],A=k[2];var I=this.formatDateForStep(r,T,m,{labels:a,labelsType:f,nowLabel:b,now:d,future:p,round:y})||"";if(n.getTimeToNextUpdate){var O=(0,s.default)(r,T,{nextStep:A,prevStep:x,now:d,future:p,round:y});return[I,O]}return I}},{key:"formatDateForStep",value:function(e,t,n,r){var i=this;var o=r.labels,s=r.labelsType,l=r.nowLabel,u=r.now,c=r.future,d=r.round;if(!t)return;if(t.format)return t.format(e,this.locale,{formatAs:function(e,t){return i.formatValue(t,e,{labels:o,future:c})},now:u,future:c});var m=t.unit||t.formatAs;if(!m)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(t)));if("now"===m)return l;var p=Math.abs(n)/(0,a.default)(t);if(t.granularity)p=(0,f.getRoundFunction)(d)(p/t.granularity)*t.granularity;var h=-1*Math.sign(n)*(0,f.getRoundFunction)(d)(p);if(0===h)h=c?0:-0;switch(s){case"long":case"short":case"narrow":return this.getFormatter(s).format(h,m);default:return this.formatValue(h,m,{labels:o,future:c})}}},{key:"formatValue",value:function(e,t,n){var r=n.labels,i=n.future;return this.getFormattingRule(r,t,e,{future:i}).replace("{0}",this.formatNumber(Math.abs(e)))}},{key:"getFormattingRule",value:function(e,t,n,r){var i=r.future;this.locale;e=e[t];if("string"==typeof e)return e;var o=0===n?i?"future":"past":n<0?"past":"future";var a=e[o]||e;if("string"==typeof a)return a;var s=this.getPluralRules().select(Math.abs(n));return a[s]||a.other}},{key:"formatNumber",value:function(e){return this.numberFormat?this.numberFormat.format(e):String(e)}},{key:"getFormatter",value:function(e){return this.relativeTimeFormatCache.get(this.locale,e)||this.relativeTimeFormatCache.put(this.locale,e,new this.IntlRelativeTimeFormat(this.locale,{style:e}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("string"==typeof e)e=[e];e=e.map(function(e){switch(e){case"tiny":case"mini-time":return"mini";default:return e}});e=e.concat("long");var t=(0,l.getLocaleData)(this.locale);for(var n=e,r=Array.isArray(n),i=0,n=r?n:n[m.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{i=n.next();if(i.done)break;o=i.value}var a=o;if(t[a])return{labelsType:a,labels:t[a]}}}}]);return e}();t.default=x;var T="en";x.getDefaultLocale=function(){return T};x.setDefaultLocale=function(e){return T=e};x.addDefaultLocale=function(e){if(A)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");A=true;x.setDefaultLocale(e.locale);x.addLocale(e)};var A;x.addLocale=function(e){(0,l.addLocaleData)(e);n.default.addLocale(e)};x.locale=x.addLocale;x.addLabels=function(e,t,n){var r=(0,l.getLocaleData)(e);if(!r){(0,l.addLocaleData)({locale:e});r=(0,l.getLocaleData)(e)}r[t]=n};function j(e){if(e.constructor===Date||I(e))return e.getTime();if("number"==typeof e)return e;throw new Error("Unsupported relative time formatter input: ".concat(p(e),", ").concat(e))}function I(e){return"object"===p(e)&&"function"==typeof e.getTime}function S(e,t,n){var r=Object.keys(t);if(n)r.push("now");if(e)r=e.filter(function(e){return"now"===e||r.indexOf(e)>=0});return r}function D(e,t,n,r){var i=e.now||t&&t.now;if(i){if("string"==typeof i)return i;if(r)return i.future;return i.past}if(n&&n.second&&n.second.current)return n.second.current}var O={}.constructor;function E(e){return void 0!==p(e)&&null!==e&&e.constructor===O}function P(e){return"string"==typeof e||R(e)}function R(e){return E(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||"string"==typeof e.flavour||Array.isArray(e.labels)||"string"==typeof e.labels||Array.isArray(e.units)||"function"==typeof e.custom)}},
161"cache.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;function n(e){n="function"==typeof m&&"symbol"==typeof m.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof m&&e.constructor===m&&e!==m.prototype?"symbol":typeof e};return n(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function o(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}function a(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}var s=function(){function e(){r(this,e);a(this,"cache",{})}o(e,[{key:"get",value:function(){var e=this.cache;for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];for(var o=0;o<r.length;o++){var a=r[o];if("object"!==n(e))return;e=e[a]}return e}},{key:"put",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t.pop();var o=t.pop();var a=this.cache;for(var s=0;s<t.length;s++){var l=t[s];if("object"!==n(a[l]))a[l]={};a=a[l]}return a[o]=i}}]);return e}();t.default=s},
161"locale.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=r;t.intlDateTimeFormatSupportedLocale=i;t.intlDateTimeFormatSupported=o;function n(e){n="function"==typeof m&&"symbol"==typeof m.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof m&&e.constructor===m&&e!==m.prototype?"symbol":typeof e};return n(e)}function r(e,t){for(var n=e,r=Array.isArray(n),i=0,n=r?n:n[m.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{i=n.next();if(i.done)break;o=i.value}var a=o;if(t(a))return a;var s=a.split("-");while(s.length>1){s.pop();a=s.join("-");if(t(a))return a}}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function i(e){if(o())return Intl.DateTimeFormat.supportedLocalesOf(e)[0]}function o(){var e=("undefined"==typeof Intl?"undefined":n(Intl))==="object";return e&&"function"==typeof Intl.DateTimeFormat}},steps:{
161"getStep.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=l;var n=o(e("./getStepDenominator"));var r=o(e("./getStepMinTime"));var i=e("../round");function o(e){return e&&e.__esModule?e:{default:e}}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){s(e,t,n[t])})}return e}function s(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function l(e,t,n){var r=n.now,i=n.future,o=n.round,a=n.units,s=n.getNextStep;e=f(e,a);var l=u(e,t,{now:r,future:i,round:o});if(s){if(l){var c=e[e.indexOf(l)-1];var d=e[e.indexOf(l)+1];return[c,l,d]}return[void 0,void 0,e[0]]}return l}function u(e,t,r){var o=r.now,a=r.future,s=r.round;if(0===e.length)return;var l=c(e,t,{now:o,future:a||t<0,round:s});if(-1===l)return;var u=e[l];if(u.granularity){var f=(0,i.getRoundFunction)(s)(Math.abs(t)/(0,n.default)(u)/u.granularity)*u.granularity;if(0===f&&l>0)return e[l-1]}return u}function c(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;var o=(0,r.default)(e[i],a({prevStep:e[i-1],timestamp:n.now-1e3*t},n));if(void 0===o)return i-1;if(Math.abs(t)<o)return i-1;if(i===e.length-1)return i;return c(e,t,n,i+1)}function f(e,t){return e.filter(function(e){var n=e.unit,r=e.formatAs;n=n||r;if(n)return t.indexOf(n)>=0;return true})}},
161"getStepDenominator.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=r;var n=e("./units");function r(e){if(void 0!==e.factor)return e.factor;return(0,n.getSecondsInUnit)(e.unit||e.formatAs)||1}},
161"units.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSecondsInUnit=l;t.year=t.month=t.week=t.day=t.hour=t.minute=void 0;var n=60;t.minute=n;var r=60*n;t.hour=r;var i=24*r;t.day=i;var o=7*i;t.week=o;var a=30.44*i;t.month=a;var s=365.2425*i;t.year=s;function l(e){switch(e){case"second":return 1;case"minute":return n;case"hour":return r;case"day":return i;case"week":return o;case"month":return a;case"year":return s}}},
161"getStepMinTime.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=o;var n=e("./units");var r=e("../round");function i(e){i="function"==typeof m&&"symbol"==typeof m.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof m&&e.constructor===m&&e!==m.prototype?"symbol":typeof e};return i(e)}function o(e,t){var n=t.prevStep,r=t.timestamp,o=t.now,s=t.future,l=t.round;var u;if(n){if(n.id||n.unit)u=e["threshold_for_".concat(n.id||n.unit)]}if(void 0===u){if(void 0!==e.threshold){u=e.threshold;if("function"==typeof u)u=u(o,s)}}if(void 0===u)u=e.minTime;if("object"===i(u))u=n&&n.id&&void 0!==u[n.id]?u[n.id]:u.default;if("function"==typeof u)u=u(r,{future:s,getMinTimeForUnit:function(e,t){return a(e,t||n&&n.formatAs,{round:l})}});if(void 0===u){if(e.test)u=e.test(r,{now:o,future:s})?0:0x1fffffffffffff}if(void 0===u)if(n){if(e.formatAs&&n.formatAs)u=a(e.formatAs,n.formatAs,{round:l})}else u=0;if(void 0===u)console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2));return u}function a(e,t,i){var o=i.round;var a=(0,n.getSecondsInUnit)(e);var s;s="now"===t?(0,n.getSecondsInUnit)(e):(0,n.getSecondsInUnit)(t);if(void 0!==a&&void 0!==s)return a-s*(1-(0,r.getDiffRatioToNextRoundedNumber)(o))}},
161"getTimeToNextUpdate.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=l;t.getStepChangesAt=u;t.getTimeToStepChange=c;t.INFINITY=void 0;var n=o(e("./getTimeToNextUpdateForUnit"));var r=o(e("./getStepMinTime"));var i=e("../round");function o(e){return e&&e.__esModule?e:{default:e}}var a=31536e6;var s=1e3*a;t.INFINITY=s;function l(e,t,r){var o=r.prevStep,a=r.nextStep,s=r.now,l=r.future,u=r.round;var f=e.getTime?e.getTime():e;var d=function(e){return(0,n.default)(e,f,{now:s,round:u})};var m=c(l?t:a,f,{future:l,now:s,round:u,prevStep:l?o:t});if(void 0===m)return;var p;if(t){if(t.getTimeToNextUpdate)p=t.getTimeToNextUpdate(f,{getTimeToNextUpdateForUnit:d,getRoundFunction:i.getRoundFunction,now:s,future:l,round:u});if(void 0===p){var h=t.unit||t.formatAs;if(h)p=d(h)}}if(void 0===p)return m;return Math.min(p,m)}function u(e,t,n){var i=n.now,o=n.future,a=n.round,l=n.prevStep;var u=(0,r.default)(e,{timestamp:t,now:i,future:o,round:a,prevStep:l});if(void 0===u)return;if(o)return t-1e3*u+1;if(0===u&&t===i)return s;return t+1e3*u}function c(e,t,n){var r=n.now,i=n.future,o=n.round,a=n.prevStep;if(e){var l=u(e,t,{now:r,future:i,round:o,prevStep:a});if(void 0===l)return;return l-r}if(i)return t-r+1;return s}},
161"getTimeToNextUpdateForUnit.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=i;var n=e("./units");var r=e("../round");function i(e,t,i){var s=i.now,l=i.round;if(!(0,n.getSecondsInUnit)(e))return;var u=1e3*(0,n.getSecondsInUnit)(e);var c=t>s;var f=Math.abs(t-s);var d=(0,r.getRoundFunction)(l)(f/u)*u;if(c)if(d>0)return f-d+a(l,u);else return f-d+1;return-(f-d)+o(l,u)}function o(e,t){return(0,r.getDiffRatioToNextRoundedNumber)(e)*t}function a(e,t){return(1-(0,r.getDiffRatioToNextRoundedNumber)(e))*t+1}},
161"round.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}];t.default=n},
161"approximate.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=e("./units");var r=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:n.minute,unit:"minute"},{threshold:2.5*n.minute,granularity:5,factor:n.minute,unit:"minute"},{threshold:22.5*n.minute,factor:.5*n.hour,unit:"half-hour"},{threshold:42.5*n.minute,threshold_for_minute:52.5*n.minute,factor:n.hour,unit:"hour"},{threshold:20.5/24*n.day,factor:n.day,unit:"day"},{threshold:5.5*n.day,factor:n.week,unit:"week"},{threshold:3.5*n.week,factor:n.month,unit:"month"},{threshold:10.5*n.month,factor:n.year,unit:"year"}];t.default=r},
161"index.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"approximate",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"convenient",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"round",{enumerable:true,get:function(){return r.default}});Object.defineProperty(t,"canonical",{enumerable:true,get:function(){return r.default}});Object.defineProperty(t,"minute",{enumerable:true,get:function(){return i.minute}});Object.defineProperty(t,"hour",{enumerable:true,get:function(){return i.hour}});Object.defineProperty(t,"day",{enumerable:true,get:function(){return i.day}});Object.defineProperty(t,"week",{enumerable:true,get:function(){return i.week}});Object.defineProperty(t,"month",{enumerable:true,get:function(){return i.month}});Object.defineProperty(t,"year",{enumerable:true,get:function(){return i.year}});Object.defineProperty(t,"getDate",{enumerable:true,get:function(){return o.getDate}});var n=a(e("./approximate"));var r=a(e("./round"));var i=e("./units");var o=e("./helpers");function a(e){return e&&e.__esModule?e:{default:e}}},
161"helpers.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDate=n;function n(e){return e instanceof Date?e:new Date(e)}},
161"renameLegacyProperties.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=o;function n(e){n="function"==typeof m&&"symbol"==typeof m.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof m&&e.constructor===m&&e!==m.prototype?"symbol":typeof e};return n(e)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){i(e,t,n[t])})}return e}function i(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function o(e){var t=r({},e);if(void 0!==t.minTime){if("object"===n(t.minTime)){var i=Object.keys(t.minTime);for(var o=0;o<i.length;o++){var a=i[o];if("default"===a)t.threshold=t.minTime.default;else t["threshold_for_".concat(a)]=t.minTime[a]}}else t.threshold=t.minTime;delete t.minTime}if(t.formatAs){t.unit=t.formatAs;delete t.formatAs}return t}}},
161"round.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRoundFunction=n;t.getDiffRatioToNextRoundedNumber=r;function n(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function r(e){switch(e){case"floor":return 1;default:return .5}}},
161"LocaleDataStore.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLocaleData=r;t.addLocaleData=i;var n={};function r(e){return n[e]}function i(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");n[e.locale]=e}},style:{
161"roundMinute.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("./round"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}var a=i({},n.default,{steps:n.default.steps.filter(function(e){return"second"!==e.formatAs})});t.default=a},
161"round.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("../steps/round"));function r(e){return e&&e.__esModule?e:{default:e}}var i={steps:n.default,labels:"long"};t.default=i},
161"getStyleByName.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=b;var n=h(e("./round"));var r=h(e("./roundMinute"));var i=h(e("./approximate"));var o=h(e("./approximateTime"));var a=h(e("./twitter"));var s=h(e("./twitterNow"));var l=h(e("./twitterMinute"));var u=h(e("./twitterMinuteNow"));var c=h(e("./twitterFirstMinute"));var f=h(e("./mini"));var d=h(e("./miniNow"));var m=h(e("./miniMinute"));var p=h(e("./miniMinuteNow"));function h(e){return e&&e.__esModule?e:{default:e}}function b(e){switch(e){case"default":case"round":return n.default;case"round-minute":return r.default;case"approximate":return i.default;case"time":case"approximate-time":return o.default;case"mini":return f.default;case"mini-now":return d.default;case"mini-minute":return m.default;case"mini-minute-now":return p.default;case"twitter":return a.default;case"twitter-now":return s.default;case"twitter-minute":return l.default;case"twitter-minute-now":return u.default;case"twitter-first-minute":return c.default;default:return i.default}}},
161"approximate.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("../steps/approximate"));function r(e){return e&&e.__esModule?e:{default:e}}var i={gradation:n.default,flavour:"long",units:["now","minute","hour","day","week","month","year"]};t.default=i},
161"approximateTime.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("../steps/approximate"));function r(e){return e&&e.__esModule?e:{default:e}}var i={gradation:n.default,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};t.default=i},
161"twitter.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=e("../steps");var r=e("../locale");i(e("./renameLegacyProperties"));function i(e){return e&&e.__esModule?e:{default:e}}var o=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}];var a={};var s={minTime:function(e,t){t.future;var n=t.getMinTimeForUnit;return n("day")},format:function(e,t){if(!a[t])a[t]={};if(!a[t].dayMonth)a[t].dayMonth=new Intl.DateTimeFormat(t,{month:"short",day:"numeric"});return a[t].dayMonth.format((0,n.getDate)(e))}};var l={minTime:function(e,t){var n=t.future;if(n){var r=new Date(new Date(e).getFullYear(),0).getTime()-1;return(e-r)/1e3}var i=new Date(new Date(e).getFullYear()+1,0).getTime();return(i-e)/1e3},format:function(e,t){if(!a[t])a[t]={};if(!a[t].dayMonthYear)a[t].dayMonthYear=new Intl.DateTimeFormat(t,{year:"numeric",month:"short",day:"numeric"});return a[t].dayMonthYear.format((0,n.getDate)(e))}};if((0,r.intlDateTimeFormatSupported)())o.push(s,l);else o.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});var u={steps:o,labels:["mini","short-time","narrow","short"]};t.default=u},
161"renameLegacyProperties.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=a;var n=r(e("../steps/renameLegacyProperties"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function a(e){var t=i({},e);if(t.steps){t.gradation=t.steps.map(n.default);delete t.steps}if(t.labels){t.flavour=t.labels;delete t.labels}return t}},
161"twitterNow.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("./twitter"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}var a=i({},n.default,{steps:[{formatAs:"now"}].concat(n.default.steps)});t.default=a},
161"twitterMinute.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("./twitter"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}var a=i({},n.default,{steps:n.default.steps.filter(function(e){return"second"!==e.formatAs})});t.default=a},
161"twitterMinuteNow.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("./twitterMinute"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}var a=i({},n.default,{steps:[{formatAs:"now"}].concat(n.default.steps)});t.default=a},
161"twitterFirstMinute.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=e("../steps/units");var r=i(e("./twitter"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){a(e,t,n[t])})}return e}function a(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}var s=o({},r.default,{steps:r.default.steps.filter(function(e){return"second"!==e.formatAs}).map(function(e){return"minute"===e.formatAs?o({},e,{minTime:n.minute}):e})});t.default=s},
161"mini.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};t.default=n},
161"miniNow.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("./mini"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}var a=i({},n.default,{steps:[{formatAs:"now"}].concat(n.default.steps)});t.default=a},
161"miniMinute.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("./mini"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}var a=i({},n.default,{steps:n.default.steps.filter(function(e){return"second"!==e.formatAs})});t.default=a},
161"miniMinuteNow.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(e("./miniMinute"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}var a=i({},n.default,{steps:[{formatAs:"now"}].concat(n.default.steps)});t.default=a}}},locale:{
161"en.json":function(e,t,n){n.exports={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}}}}},"relative-time-format":{
161"package.json":function(e,t,n){n.exports={name:"relative-time-format",version:"1.1.12",main:"index.cjs",module:"index.js"}},
161"index.cjs":function(e,t,n){"use strict";t=n.exports=e("./commonjs/RelativeTimeFormat.js").default;t["default"]=e("./commonjs/RelativeTimeFormat.js").default},commonjs:{
161"RelativeTimeFormat.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=t.UNITS=void 0;var n=e("./LocaleDataStore.js");var r=o(e("./resolveLocale.js"));var i=o(e("./PluralRules.js"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof m&&"symbol"==typeof m.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof m&&e.constructor===m&&e!==m.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return b(e)||h(e,t)||d(e,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"==typeof e)return p(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){var n=null==e?null:void 0!==m&&e[m.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}}function b(e){if(Array.isArray(e))return e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function w(e){var t=k(e,"string");return"symbol"==a(t)?t:t+""}function k(e,t){if("object"!=a(e)||!e)return e;var n=e[m.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var x=t.UNITS=["second","minute","hour","day","week","month","quarter","year"];var T=["auto","always"];var A=["long","short","narrow"];var j=["lookup","best fit"];var I=t["default"]=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(this,e);var a=o.numeric,s=o.style,l=o.localeMatcher;this.numeric="always";this.style="long";this.localeMatcher="lookup";if(void 0!==a){if(T.indexOf(a)<0)throw new RangeError('Invalid "numeric" option: '.concat(a));this.numeric=a}if(void 0!==s){if(A.indexOf(s)<0)throw new RangeError('Invalid "style" option: '.concat(s));this.style=s}if(void 0!==l){if(j.indexOf(l)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(l));this.localeMatcher=l}if("string"==typeof t)t=[t];t.push((0,n.getDefaultLocale)());this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0];if(!this.locale)throw new Error("Unsupported locale");if(i["default"].supportedLocalesOf(this.locale).length>0)this.pluralRules=new i["default"](this.locale);else console.warn('"'.concat(this.locale,'" locale is not supported'));if("undefined"!=typeof Intl&&Intl.NumberFormat){this.numberFormat=new Intl.NumberFormat(this.locale);this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem}else this.numberingSystem="latn";this.locale=(0,r["default"])(this.locale,{localeMatcher:this.localeMatcher})}y(e,[{key:"format",value:function(){var e=L(arguments),t=c(e,2),n=t[0],r=t[1];return this.getRule(n,r).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"formatToParts",value:function(){var e=L(arguments),t=c(e,2),n=t[0],r=t[1];var i=this.getRule(n,r);var o=i.indexOf("{0}");if(o<0)return[{type:"literal",value:i}];var a=[];if(o>0)a.push({type:"literal",value:i.slice(0,o)});a=a.concat(this.formatNumberToParts(Math.abs(n)).map(function(e){return l(l({},e),{},{unit:r})}));if(o+3<i.length-1)a.push({type:"literal",value:i.slice(o+3)});return a}},{key:"getRule",value:function(e,t){var r=(0,n.getLocaleData)(this.locale)[this.style][t];if("string"==typeof r)return r;if("auto"===this.numeric){if(-2===e||-1===e){var i=r["previous".concat(-1===e?"":"-"+Math.abs(e))];if(i)return i}else if(1===e||2===e){var o=r["next".concat(1===e?"":"-"+Math.abs(e))];if(o)return o}else if(0===e){if(r.current)return r.current}}var a=r[R(e)?"past":"future"];if("string"==typeof a)return a;var s=this.pluralRules&&this.pluralRules.select(Math.abs(e))||"other";return a[s]||a.other}},{key:"formatNumber",value:function(e){return this.numberFormat?this.numberFormat.format(e):String(e)}},{key:"formatNumberToParts",value:function(e){return this.numberFormat&&this.numberFormat.formatToParts?this.numberFormat.formatToParts(e):[{type:"integer",value:this.formatNumber(e)}]}},{key:"resolvedOptions",value:function(){return{locale:this.locale,style:this.style,numeric:this.numeric,numberingSystem:this.numberingSystem}}}]);return e}();I.supportedLocalesOf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e)e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(e){return(0,r["default"])(e,t)})};I.addLocale=n.addLocaleData;I.addDefaultLocale=function(e){(0,n.addLocaleData)(e);(0,n.setDefaultLocale)(e.locale)};I.setDefaultLocale=n.setDefaultLocale;I.getDefaultLocale=n.getDefaultLocale;I.PluralRules=i["default"];var S='Invalid "unit" argument';function D(e){if("symbol"===a(e))throw new TypeError(S);if("string"!=typeof e)throw new RangeError("".concat(S,": ").concat(e));if("s"===e[e.length-1])e=e.slice(0,e.length-1);if(x.indexOf(e)<0)throw new RangeError("".concat(S,": ").concat(e));return e}var O='Invalid "number" argument';function E(e){e=Number(e);if(Number.isFinite){if(!Number.isFinite(e))throw new RangeError("".concat(O,": ").concat(e))}return e}function P(e){return 1/e===-1/0}function R(e){return e<0||0===e&&P(e)}function L(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[E(e[0]),D(e[1])]}},
161"LocaleDataStore.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addLocaleData=l;t.getDefaultLocale=o;t.getLocaleData=s;t.resolveLocale=u;t.setDefaultLocale=a;var n="en";var r={};var i={};function o(){return n}function a(e){n=e}function s(e){return r[e]}function l(e){if(!e)throw new Error("No locale data passed");r[e.locale]=e;i[e.locale.toLowerCase()]=e.locale}function u(e){if(r[e])return e;if(i[e.toLowerCase()])return i[e.toLowerCase()]}},
161"resolveLocale.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=r;t.resolveLocaleLookup=i;var n=e("./LocaleDataStore.js");function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n=t.localeMatcher||"lookup";switch(n){case"lookup":return i(e);case"best fit":return i(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function i(e){var t=(0,n.resolveLocale)(e);if(t)return t;var r=e.split("-");while(e.length>1){r.pop();e=r.join("-");var i=(0,n.resolveLocale)(e);if(i)return i}}},
161"PluralRules.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=i(e("./PluralRuleFunctions.js"));var r=i(e("./getPluralRulesLocale.js"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof m&&"symbol"==typeof m.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof m&&e.constructor===m&&e!==m.prototype?"symbol":typeof e},o(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=c(e,"string");return"symbol"==o(t)?t:t+""}function c(e,t){if("object"!=o(e)||!e)return e;var n=e[m.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}t["default"]=function(){function e(t,i){a(this,e);var o=e.supportedLocalesOf(t);if(0===o.length)throw new RangeError("Unsupported locale: "+t);if(i&&"cardinal"!==i.type)throw new RangeError('Only "cardinal" "type" is supported');this.$=n["default"][(0,r["default"])(o[0])]}l(e,[{key:"select",value:function(e){return this.$(e)}}],[{key:"supportedLocalesOf",value:function(e){if("string"==typeof e)e=[e];return e.filter(function(e){return n["default"][(0,r["default"])(e)]})}}]);return e}()},
161"PluralRuleFunctions.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n={af:function(e){return 1==e?"one":"other"},ak:function(e){return 0==e||1==e?"one":"other"},am:function(e){return e>=0&&e<=1?"one":"other"},ar:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ast:function(e){var t=String(e).split("."),n=!t[1];return 1==e&&n?"one":"other"},be:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return 1==r&&11!=i?"one":r>=2&&r<=4&&(i<12||i>14)?"few":n&&0==r||r>=5&&r<=9||i>=11&&i<=14?"many":"other"},blo:function(e){return 0==e?"zero":1==e?"one":"other"},br:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2),o=n&&t[0].slice(-6);return 1==r&&11!=i&&71!=i&&91!=i?"one":2==r&&12!=i&&72!=i&&92!=i?"two":(3==r||4==r||9==r)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&n&&0==o?"many":"other"},bs:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-1),a=n.slice(-2),s=r.slice(-1),l=r.slice(-2);return i&&1==o&&11!=a||1==s&&11!=l?"one":i&&o>=2&&o<=4&&(a<12||a>14)||s>=2&&s<=4&&(l<12||l>14)?"few":"other"},ca:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-6);return 1==e&&i?"one":!t&&0!=r&&0==o&&i||t>5?"many":"other"},ceb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-1),a=r.slice(-1);return i&&(1==n||2==n||3==n)||i&&4!=o&&6!=o&&9!=o||!i&&4!=a&&6!=a&&9!=a?"one":"other"},cs:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return 1==e&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},cy:function(e){return 0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e){var t=String(e).split("."),n=t[0],r=Number(t[0])==e;return 1!=e&&(r||0!=n&&1!=n)?"other":"one"},dsb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-2),a=r.slice(-2);return i&&1==o||1==a?"one":i&&2==o||2==a?"two":i&&(3==o||4==o)||3==a||4==a?"few":"other"},dz:function(e){return"other"},es:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-6);return 1==e?"one":!t&&0!=r&&0==o&&i||t>5?"many":"other"},ff:function(e){return e>=0&&e<2?"one":"other"},fr:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-6);return e>=0&&e<2?"one":!t&&0!=r&&0==o&&i||t>5?"many":"other"},ga:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e?"one":2==e?"two":n&&e>=3&&e<=6?"few":n&&e>=7&&e<=10?"many":"other"},gd:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},he:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return 1==n&&r||0==n&&!r?"one":2==n&&r?"two":"other"},is:function(e){var t=String(e).split("."),n=t[0],r=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==e,o=n.slice(-1),a=n.slice(-2);return i&&1==o&&11!=a||r%10==1&&r%100!=11?"one":"other"},lt:function(e){var t=String(e).split("."),n=t[1]||"",r=Number(t[0])==e,i=r&&t[0].slice(-1),o=r&&t[0].slice(-2);return 1==i&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":0!=n?"many":"other"},lv:function(e){var t=String(e).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==e,o=i&&t[0].slice(-1),a=i&&t[0].slice(-2),s=n.slice(-2),l=n.slice(-1);return i&&0==o||a>=11&&a<=19||2==r&&s>=11&&s<=19?"zero":1==o&&11!=a||2==r&&1==l&&11!=s||2!=r&&1==l?"one":"other"},mk:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-1),a=n.slice(-2),s=r.slice(-1),l=r.slice(-2);return i&&1==o&&11!=a||1==s&&11!=l?"one":"other"},mt:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-2);return 1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},pl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-1),o=n.slice(-2);return 1==e&&r?"one":r&&i>=2&&i<=4&&(o<12||o>14)?"few":r&&1!=n&&(0==i||1==i)||r&&i>=5&&i<=9||r&&o>=12&&o<=14?"many":"other"},pt:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-6);
161return 0==r||1==r?"one":!t&&0!=r&&0==o&&i||t>5?"many":"other"},ro:function(e){var t=String(e).split("."),n=!t[1],r=Number(t[0])==e,i=r&&t[0].slice(-2);return 1==e&&n?"one":!n||0==e||1!=e&&i>=1&&i<=19?"few":"other"},ru:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-1),o=n.slice(-2);return r&&1==i&&11!=o?"one":r&&i>=2&&i<=4&&(o<12||o>14)?"few":r&&0==i||r&&i>=5&&i<=9||r&&o>=11&&o<=14?"many":"other"},se:function(e){return 1==e?"one":2==e?"two":"other"},si:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"";return 0==e||1==e||0==n&&1==r?"one":"other"},sl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-2);return r&&1==i?"one":r&&2==i?"two":r&&(3==i||4==i)||!r?"few":"other"}};n.as=n.am;n.az=n.af;n.bal=n.af;n.bg=n.af;n.bn=n.am;n.brx=n.af;n.ce=n.af;n.chr=n.af;n.csw=n.ak;n.cv=n.blo;n.de=n.ast;n.doi=n.am;n.ee=n.af;n.el=n.af;n.en=n.ast;n.eo=n.af;n.et=n.ast;n.eu=n.af;n.fa=n.am;n.fi=n.ast;n.fil=n.ceb;n.fo=n.af;n.fur=n.af;n.fy=n.ast;n.gl=n.ast;n.gu=n.am;n.ha=n.af;n.hi=n.am;n.hr=n.bs;n.hsb=n.dsb;n.hu=n.af;n.hy=n.ff;n.ia=n.ast;n.id=n.dz;n.ie=n.ast;n.ig=n.dz;n.ii=n.dz;n.it=n.ca;n.ja=n.dz;n.jgo=n.af;n.jv=n.dz;n.ka=n.af;n.kea=n.dz;n.kk=n.af;n.kl=n.af;n.km=n.dz;n.kn=n.am;n.ko=n.dz;n.kok=n.am;n.ks=n.af;n.ksh=n.blo;n.ku=n.af;n.ky=n.af;n.lb=n.af;n.lkt=n.dz;n.lld=n.ca;n.lo=n.dz;n.ml=n.af;n.mn=n.af;n.mr=n.af;n.ms=n.dz;n.my=n.dz;n.nb=n.af;n.ne=n.af;n.nl=n.ast;n.nn=n.af;n.no=n.af;n.nqo=n.dz;n.nso=n.ak;n.om=n.af;n.or=n.af;n.pa=n.ak;n.pcm=n.am;n.ps=n.af;n.rm=n.af;n.sah=n.dz;n.sc=n.ast;n.scn=n.ca;n.sd=n.af;n.sk=n.cs;n.so=n.af;n.sq=n.af;n.sr=n.bs;n.su=n.dz;n.sv=n.ast;n.sw=n.ast;n.syr=n.af;n.ta=n.af;n.te=n.af;n.th=n.dz;n.ti=n.ak;n.tk=n.af;n.tn=n.af;n.to=n.dz;n.tr=n.af;n.ug=n.af;n.uk=n.ru;n.ur=n.ast;n.uz=n.af;n.vec=n.ca;n.vi=n.dz;n.wae=n.af;n.wo=n.dz;n.xh=n.af;n.yi=n.ast;n.yo=n.dz;n.yue=n.dz;n.zh=n.dz;n.zu=n.am;t["default"]=n},
161"getPluralRulesLocale.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=n;function n(e){if("pt-PT"===e)return e;return i(e)}var r=/^([a-z0-9]+)/i;function i(e){var t=e.match(r);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}}}},"@popperjs":{core:{
161"package.json":function(e,t,n){n.exports={name:"@popperjs/core",version:"2.11.5",main:"dist/cjs/popper.js",module:"lib/index.js"}},dist:{cjs:{
161"popper.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function r(e){var t=n(e).Element;return e instanceof t||e instanceof Element}function i(e){var t=n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o(e){if("undefined"==typeof ShadowRoot)return false;var t=n(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var a=Math.max;var s=Math.min;var l=Math.round;function u(e,t){if(void 0===t)t=false;var n=e.getBoundingClientRect();var r=1;var o=1;if(i(e)&&t){var a=e.offsetHeight;var s=e.offsetWidth;if(s>0)r=l(n.width)/s||1;if(a>0)o=l(n.height)/a||1}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function c(e){var t=n(e);var r=t.pageXOffset;var i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function f(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m(e){if(e===n(e)||!i(e))return c(e);return f(e)}function b(e){return e?(e.nodeName||"").toLowerCase():null}function g(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function v(e){return u(g(e)).left+c(e).scrollLeft}function y(e){return n(e).getComputedStyle(e)}function w(e){var t=y(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function k(e){var t=e.getBoundingClientRect();var n=l(t.width)/e.offsetWidth||1;var r=l(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function x(e,t,n){if(void 0===n)n=false;var r=i(t);var o=i(t)&&k(t);var a=g(t);var s=u(e,o);var l={scrollLeft:0,scrollTop:0};var c={x:0,y:0};if(r||!r&&!n){if("body"!==b(t)||w(a))l=m(t);if(i(t)){c=u(t,true);c.x+=t.clientLeft;c.y+=t.clientTop}else if(a)c.x=v(a)}return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function T(e){var t=u(e);var n=e.offsetWidth;var r=e.offsetHeight;if(Math.abs(t.width-n)<=1)n=t.width;if(Math.abs(t.height-r)<=1)r=t.height;return{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function A(e){if("html"===b(e))return e;return e.assignedSlot||e.parentNode||(o(e)?e.host:null)||g(e)}function j(e){if(["html","body","#document"].indexOf(b(e))>=0)return e.ownerDocument.body;if(i(e)&&w(e))return e;return j(A(e))}function I(e,t){var r;if(void 0===t)t=[];var i=j(e);var o=i===(null==(r=e.ownerDocument)?void 0:r.body);var a=n(i);var s=o?[a].concat(a.visualViewport||[],w(i)?i:[]):i;var l=t.concat(s);return o?l:l.concat(I(A(s)))}function S(e){return["table","td","th"].indexOf(b(e))>=0}function D(e){if(!i(e)||"fixed"===y(e).position)return null;return e.offsetParent}function O(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");var n=-1!==navigator.userAgent.indexOf("Trident");if(n&&i(e)){var r=y(e);if("fixed"===r.position)return null}var a=A(e);if(o(a))a=a.host;while(i(a)&&["html","body"].indexOf(b(a))<0){var s=y(a);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return a;a=a.parentNode}return null}function E(e){var t=n(e);var r=D(e);while(r&&S(r)&&"static"===y(r).position)r=D(r);if(r&&("html"===b(r)||"body"===b(r)&&"static"===y(r).position))return t;return r||O(e)||t}var P="top";var R="bottom";var L="right";var C="left";var M="auto";var N=[P,R,L,C];var V="start";var U="end";var B="clippingParents";var F="viewport";var H="popper";var W="reference";var G=N.reduce(function(e,t){return e.concat([t+"-"+V,t+"-"+U])},[]);var q=[].concat(N,[M]).reduce(function(e,t){return e.concat([t,t+"-"+V,t+"-"+U])},[]);var z="beforeRead";var J="read";var Y="afterRead";var X="beforeMain";var K="main";var Q="afterMain";var Z="beforeWrite";var ee="write";var et="afterWrite";var en=[z,J,Y,X,K,Q,Z,ee,et];function er(e){var t=new p;var n=new h;var r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name);var o=[].concat(e.requires||[],e.requiresIfExists||[]);o.forEach(function(e){if(!n.has(e)){var r=t.get(e);if(r)i(r)}});r.push(e)}e.forEach(function(e){if(!n.has(e.name))i(e)});return r}function ei(e){var t=er(e);return en.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function eo(e){var t;return function(){if(!t)t=new d(function(n){d.resolve().then(function(){t=void 0;n(e())})});return t}}function ea(e){return e.split("-")[0]}function es(e){var t=e.reduce(function(e,t){var n=e[t.name];e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t;return e},{});return Object.keys(t).map(function(e){return t[e]})}function el(e){var t=n(e);var r=g(e);
161var i=t.visualViewport;var o=r.clientWidth;var a=r.clientHeight;var s=0;var l=0;if(i){o=i.width;a=i.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){s=i.offsetLeft;l=i.offsetTop}}return{width:o,height:a,x:s+v(e),y:l}}function eu(e){var t;var n=g(e);var r=c(e);var i=null==(t=e.ownerDocument)?void 0:t.body;var o=a(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var s=a(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var l=-r.scrollLeft+v(e);var u=-r.scrollTop;if("rtl"===y(i||n).direction)l+=a(n.clientWidth,i?i.clientWidth:0)-o;return{width:o,height:s,x:l,y:u}}function ec(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return true;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return true;r=r.parentNode||r.host}while(r)}return false}function ef(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ed(e){var t=u(e);t.top=t.top+e.clientTop;t.left=t.left+e.clientLeft;t.bottom=t.top+e.clientHeight;t.right=t.left+e.clientWidth;t.width=e.clientWidth;t.height=e.clientHeight;t.x=t.left;t.y=t.top;return t}function em(e,t){return t===F?ef(el(e)):r(t)?ed(t):ef(eu(g(e)))}function ep(e){var t=I(A(e));var n=["absolute","fixed"].indexOf(y(e).position)>=0;var o=n&&i(e)?E(e):e;if(!r(o))return[];return t.filter(function(e){return r(e)&&ec(e,o)&&"body"!==b(e)})}function eh(e,t,n){var r="clippingParents"===t?ep(e):[].concat(t);var i=[].concat(r,[n]);var o=i[0];var l=i.reduce(function(t,n){var r=em(e,n);t.top=a(r.top,t.top);t.right=s(r.right,t.right);t.bottom=s(r.bottom,t.bottom);t.left=a(r.left,t.left);return t},em(e,o));l.width=l.right-l.left;l.height=l.bottom-l.top;l.x=l.left;l.y=l.top;return l}function eb(e){return e.split("-")[1]}function eg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ev(e){var t=e.reference,n=e.element,r=e.placement;var i=r?ea(r):null;var o=r?eb(r):null;var a=t.x+t.width/2-n.width/2;var s=t.y+t.height/2-n.height/2;var l;switch(i){case P:l={x:a,y:t.y-n.height};break;case R:l={x:a,y:t.y+t.height};break;case L:l={x:t.x+t.width,y:s};break;case C:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?eg(i):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case V:l[u]=l[u]-(t[c]/2-n[c]/2);break;case U:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function ey(){return{top:0,right:0,bottom:0,left:0}}function ew(e){return Object.assign({},ey(),e)}function ek(e,t){return t.reduce(function(t,n){t[n]=e;return t},{})}function ex(e,t){if(void 0===t)t={};var n=t,i=n.placement,o=void 0===i?e.placement:i,a=n.boundary,s=void 0===a?B:a,l=n.rootBoundary,c=void 0===l?F:l,f=n.elementContext,d=void 0===f?H:f,m=n.altBoundary,p=void 0===m?false:m,h=n.padding,b=void 0===h?0:h;var v=ew("number"!=typeof b?b:ek(b,N));var y=d===H?W:H;var w=e.rects.popper;var k=e.elements[p?y:d];var x=eh(r(k)?k:k.contextElement||g(e.elements.popper),s,c);var T=u(e.elements.reference);var A=ev({reference:T,element:w,strategy:"absolute",placement:o});var j=ef(Object.assign({},w,A));var I=d===H?j:T;var S={top:x.top-I.top+v.top,bottom:I.bottom-x.bottom+v.bottom,left:x.left-I.left+v.left,right:I.right-x.right+v.right};var D=e.modifiersData.offset;if(d===H&&D){var O=D[o];Object.keys(S).forEach(function(e){var t=[L,R].indexOf(e)>=0?1:-1;var n=[P,R].indexOf(e)>=0?"y":"x";S[e]+=O[n]*t})}return S}var eT={placement:"bottom",modifiers:[],strategy:"absolute"};function eA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function ej(e){if(void 0===e)e={};var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?eT:o;return function(e,t,n){if(void 0===n)n=a;var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},eT,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}};var s=[];var l=false;var u={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;f();o.options=Object.assign({},a,o.options,s);o.scrollParents={reference:r(e)?I(e):e.contextElement?I(e.contextElement):[],popper:I(t)};var l=ei(es([].concat(i,o.options.modifiers)));o.orderedModifiers=l.filter(function(e){return e.enabled});c();
161return u.update()},forceUpdate:function(){if(l)return;var e=o.elements,t=e.reference,n=e.popper;if(!eA(t,n))return;o.rects={reference:x(t,E(n),"fixed"===o.options.strategy),popper:T(n)};o.reset=false;o.placement=o.options.placement;o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<o.orderedModifiers.length;r++){if(true===o.reset){o.reset=false;r=-1;continue}var i=o.orderedModifiers[r],a=i.fn,s=i.options,c=void 0===s?{}:s,f=i.name;if("function"==typeof a)o=a({state:o,options:c,name:f,instance:u})||o}},update:eo(function(){return new d(function(e){u.forceUpdate();e(o)})}),destroy:function(){f();l=true}};if(!eA(e,t))return u;u.setOptions(n).then(function(e){if(!l&&n.onFirstUpdate)n.onFirstUpdate(e)});function c(){o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var a=i({state:o,name:t,instance:u,options:r});var l=function(){};s.push(a||l)}})}function f(){s.forEach(function(e){return e()});s=[]}return u}}var eI={passive:true};function eS(e){var t=e.state,r=e.instance,i=e.options;var o=i.scroll,a=void 0===o?true:o,s=i.resize,l=void 0===s?true:s;var u=n(t.elements.popper);var c=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(a)c.forEach(function(e){e.addEventListener("scroll",r.update,eI)});if(l)u.addEventListener("resize",r.update,eI);return function(){if(a)c.forEach(function(e){e.removeEventListener("scroll",r.update,eI)});if(l)u.removeEventListener("resize",r.update,eI)}}var eD={name:"eventListeners",enabled:true,phase:"write",fn:function(){},effect:eS,data:{}};function eO(e){var t=e.state,n=e.name;t.modifiersData[n]=ev({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var eE={name:"popperOffsets",enabled:true,phase:"read",fn:eO,data:{}};var eP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eR(e){var t=e.x,n=e.y;var r=window;var i=r.devicePixelRatio||1;return{x:l(t*i)/i||0,y:l(n*i)/i||0}}function e_(e){var t;var r=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed;var m=s.x,p=void 0===m?0:m,h=s.y,b=void 0===h?0:h;var v="function"==typeof f?f({x:p,y:b}):{x:p,y:b};p=v.x;b=v.y;var w=s.hasOwnProperty("x");var k=s.hasOwnProperty("y");var x=C;var T=P;var A=window;if(c){var j=E(r);var I="clientHeight";var S="clientWidth";if(j===n(r)){j=g(r);if("static"!==y(j).position&&"absolute"===l){I="scrollHeight";S="scrollWidth"}}if(o===P||(o===C||o===L)&&a===U){T=R;var D=d&&j===A&&A.visualViewport?A.visualViewport.height:j[I];b-=D-i.height;b*=u?1:-1}if(o===C||(o===P||o===R)&&a===U){x=L;var O=d&&j===A&&A.visualViewport?A.visualViewport.width:j[S];p-=O-i.width;p*=u?1:-1}}var M=Object.assign({position:l},c&&eP);var N=true===f?eR({x:p,y:b}):{x:p,y:b};p=N.x;b=N.y;if(u){var V;return Object.assign({},M,(V={},V[T]=k?"0":"",V[x]=w?"0":"",V.transform=(A.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",V))}return Object.assign({},M,(t={},t[T]=k?b+"px":"",t[x]=w?p+"px":"",t.transform="",t))}function eL(e){var t=e.state,n=e.options;var r=n.gpuAcceleration,i=void 0===r?true:r,o=n.adaptive,a=void 0===o?true:o,s=n.roundOffsets,l=void 0===s?true:s;var u={placement:ea(t.placement),variation:eb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};if(null!=t.modifiersData.popperOffsets)t.styles.popper=Object.assign({},t.styles.popper,e_(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})));if(null!=t.modifiersData.arrow)t.styles.arrow=Object.assign({},t.styles.arrow,e_(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:l})));t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var eC={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:eL,data:{}};function eM(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{};var r=t.attributes[e]||{};var o=t.elements[e];if(!i(o)||!b(o))return;Object.assign(o.style,n);Object.keys(r).forEach(function(e){var t=r[e];if(false===t)o.removeAttribute(e);else o.setAttribute(e,true===t?"":t)})})}function eN(e){var t=e.state;
161var n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper);t.styles=n;if(t.elements.arrow)Object.assign(t.elements.arrow.style,n.arrow);return function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e];var o=t.attributes[e]||{};var a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]);var s=a.reduce(function(e,t){e[t]="";return e},{});if(!i(r)||!b(r))return;Object.assign(r.style,s);Object.keys(o).forEach(function(e){r.removeAttribute(e)})})}}var eV={name:"applyStyles",enabled:true,phase:"write",fn:eM,effect:eN,requires:["computeStyles"]};function eU(e,t,n){var r=ea(e);var i=[C,P].indexOf(r)>=0?-1:1;var o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];a=a||0;s=(s||0)*i;return[C,L].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function eB(e){var t=e.state,n=e.options,r=e.name;var i=n.offset,o=void 0===i?[0,0]:i;var a=q.reduce(function(e,n){e[n]=eU(n,t.rects,o);return e},{});var s=a[t.placement],l=s.x,u=s.y;if(null!=t.modifiersData.popperOffsets){t.modifiersData.popperOffsets.x+=l;t.modifiersData.popperOffsets.y+=u}t.modifiersData[r]=a}var eF={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:eB};var eH={left:"right",right:"left",bottom:"top",top:"bottom"};function eW(e){return e.replace(/left|right|bottom|top/g,function(e){return eH[e]})}var eG={start:"end",end:"start"};function eq(e){return e.replace(/start|end/g,function(e){return eG[e]})}function ez(e,t){if(void 0===t)t={};var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?q:l;var c=eb(r);var f=c?s?G:G.filter(function(e){return eb(e)===c}):N;var d=f.filter(function(e){return u.indexOf(e)>=0});if(0===d.length)d=f;var m=d.reduce(function(t,n){t[n]=ex(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[ea(n)];return t},{});return Object.keys(m).sort(function(e,t){return m[e]-m[t]})}function e$(e){if(ea(e)===M)return[];var t=eW(e);return[eq(e),t,eq(t)]}function eJ(e){var t=e.state,n=e.options,r=e.name;if(t.modifiersData[r]._skip)return;var i=n.mainAxis,o=void 0===i?true:i,a=n.altAxis,s=void 0===a?true:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,m=n.flipVariations,h=void 0===m?true:m,b=n.allowedAutoPlacements;var g=t.options.placement;var v=ea(g);var y=v===g;var w=l||(y||!h?[eW(g)]:e$(g));var k=[g].concat(w).reduce(function(e,n){return e.concat(ea(n)===M?ez(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:b}):n)},[]);var x=t.rects.reference;var T=t.rects.popper;var A=new p;var j=true;var I=k[0];for(var S=0;S<k.length;S++){var D=k[S];var O=ea(D);var E=eb(D)===V;var N=[P,R].indexOf(O)>=0;var U=N?"width":"height";var B=ex(t,{placement:D,boundary:c,rootBoundary:f,altBoundary:d,padding:u});var F=N?E?L:C:E?R:P;if(x[U]>T[U])F=eW(F);var H=eW(F);var W=[];if(o)W.push(B[O]<=0);if(s)W.push(B[F]<=0,B[H]<=0);if(W.every(function(e){return e})){I=D;j=false;break}A.set(D,W)}if(j){var G=h?3:1;var q=function(e){var t=k.find(function(t){var n=A.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t){I=t;return"break"}};for(var z=G;z>0;z--){var J=q(z);if("break"===J)break}}if(t.placement!==I){t.modifiersData[r]._skip=true;t.placement=I;t.reset=true}}var eY={name:"flip",enabled:true,phase:"main",fn:eJ,requiresIfExists:["offset"],data:{_skip:false}};function eX(e){return"x"===e?"y":"x"}function eK(e,t,n){return a(e,s(t,n))}function eQ(e,t,n){var r=eK(e,t,n);return r>n?n:r}function eZ(e){var t=e.state,n=e.options,r=e.name;var i=n.mainAxis,o=void 0===i?true:i,l=n.altAxis,u=void 0===l?false:l,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,m=n.padding,p=n.tether,h=void 0===p?true:p,b=n.tetherOffset,g=void 0===b?0:b;var v=ex(t,{boundary:c,rootBoundary:f,padding:m,altBoundary:d});var y=ea(t.placement);var w=eb(t.placement);var k=!w;var x=eg(y);var A=eX(x);var j=t.modifiersData.popperOffsets;var I=t.rects.reference;var S=t.rects.popper;var D="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g;var O="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D);var M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null;var N={x:0,y:0};if(!j)return;if(o){var U;var B="y"===x?P:C;var F="y"===x?R:L;var H="y"===x?"height":"width";var W=j[x];var G=W+v[B];var q=W-v[F];var z=h?-S[H]/2:0;var J=w===V?I[H]:S[H];var Y=w===V?-S[H]:-I[H];var X=t.elements.arrow;var K=h&&X?T(X):{width:0,height:0};var Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:e
161y();var Z=Q[B];var ee=Q[F];var et=eK(0,I[H],K[H]);var en=k?I[H]/2-z-et-Z-O.mainAxis:J-et-Z-O.mainAxis;var er=k?-I[H]/2+z+et+ee+O.mainAxis:Y+et+ee+O.mainAxis;var ei=t.elements.arrow&&E(t.elements.arrow);var eo=ei?"y"===x?ei.clientTop||0:ei.clientLeft||0:0;var es=null!=(U=null==M?void 0:M[x])?U:0;var el=W+en-es-eo;var eu=W+er-es;var ec=eK(h?s(G,el):G,W,h?a(q,eu):q);j[x]=ec;N[x]=ec-W}if(u){var ef;var ed="x"===x?P:C;var em="x"===x?R:L;var ep=j[A];var eh="y"===A?"height":"width";var ev=ep+v[ed];var ew=ep-v[em];var ek=-1!==[P,C].indexOf(y);var eT=null!=(ef=null==M?void 0:M[A])?ef:0;var eA=ek?ev:ep-I[eh]-S[eh]-eT+O.altAxis;var ej=ek?ep+I[eh]+S[eh]-eT-O.altAxis:ew;var eI=h&&ek?eQ(eA,ep,ej):eK(h?eA:ev,ep,h?ej:ew);j[A]=eI;N[A]=eI-ep}t.modifiersData[r]=N}var e0={name:"preventOverflow",enabled:true,phase:"main",fn:eZ,requiresIfExists:["offset"]};var e1=function(e,t){e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e;return ew("number"!=typeof e?e:ek(e,N))};function e2(e){var t;var n=e.state,r=e.name,i=e.options;var o=n.elements.arrow;var a=n.modifiersData.popperOffsets;var s=ea(n.placement);var l=eg(s);var u=[C,L].indexOf(s)>=0;var c=u?"height":"width";if(!o||!a)return;var f=e1(i.padding,n);var d=T(o);var m="y"===l?P:C;var p="y"===l?R:L;var h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c];var b=a[l]-n.rects.reference[l];var g=E(o);var v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0;var y=h/2-b/2;var w=f[m];var k=v-d[c]-f[p];var x=v/2-d[c]/2+y;var A=eK(w,x,k);var j=l;n.modifiersData[r]=(t={},t[j]=A,t.centerOffset=A-x,t)}function e5(e){var t=e.state,n=e.options;var r=n.element,i=void 0===r?"[data-popper-arrow]":r;if(null==i)return;if("string"==typeof i){i=t.elements.popper.querySelector(i);if(!i)return}if(!ec(t.elements.popper,i))return;t.elements.arrow=i}var e3={name:"arrow",enabled:true,phase:"main",fn:e2,effect:e5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function e4(e,t,n){if(void 0===n)n={x:0,y:0};return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function e9(e){return[P,L,R,C].some(function(t){return e[t]>=0})}function e6(e){var t=e.state,n=e.name;var r=t.rects.reference;var i=t.rects.popper;var o=t.modifiersData.preventOverflow;var a=ex(t,{elementContext:"reference"});var s=ex(t,{altBoundary:true});var l=e4(a,r);var u=e4(s,i,o);var c=e9(l);var f=e9(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var e7={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:e6};var e8=[eD,eE,eC,eV];var te=ej({defaultModifiers:e8});var tt=[eD,eE,eC,eV,eF,eY,e0,e3,e7];var tn=ej({defaultModifiers:tt});t.applyStyles=eV;t.arrow=e3;t.computeStyles=eC;t.createPopper=tn;t.createPopperLite=te;t.defaultModifiers=tt;t.detectOverflow=ex;t.eventListeners=eD;t.flip=eY;t.hide=e7;t.offset=eF;t.popperGenerator=ej;t.popperOffsets=eE;t.preventOverflow=e0}}}}},contactjs:{
161"package.json":function(e,t,n){n.exports={name:"contactjs",version:"2.1.7",main:"dist/index.js",module:"dist/contact.js"}},dist:{
vendor: 33,367 bytes, line 161
161"index.js":function(e,t,n){function r(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}let i;var o;r(n.exports,"Direction",()=>i),r(n.exports,"Directions",()=>a),r(n.exports,"GestureState",()=>s),r(n.exports,"PointerManagerState",()=>u),r(n.exports,"PointerListenerState",()=>f),r(n.exports,"PointerState",()=>g),r(n.exports,"Geometry",()=>b),r(n.exports,"PointerListener",()=>N),r(n.exports,"GestureEvent",()=>T),r(n.exports,"Tap",()=>I),r(n.exports,"Press",()=>S),r(n.exports,"Pan",()=>D),r(n.exports,"TwoFingerPan",()=>L),r(n.exports,"Pinch",()=>P),r(n.exports,"Rotate",()=>R),(o=i||(i={})).None="0",o.Left="left",o.Right="right",o.Up="up",o.Down="down";const a=Object.freeze({Horizontal:[i.Left,i.Right],Vertical:[i.Up,i.Down],All:[i.Left,i.Right,i.Up,i.Down,i.None]});let s;var l;let u;var c;let f;var d;(l=s||(s={})).Inactive="inactive",l.Active="active",l.Blocked="blocked",(c=u||(u={})).NoPointer="nopointer",c.SinglePointer="singlepointer",c.DualPointer="dualpointer",(d=f||(f={})).NoActiveGesture="noactivegesture",d.ActiveGesture="activegesture";class m{constructor(e,t){this.x=e,this.y=t}}class p{constructor(e,t){this.startPoint=e,this.endPoint=t,this.direction=i.None,this.deltaX=this.endPoint.x-this.startPoint.x,this.deltaY=this.endPoint.y-this.startPoint.y,this.x=this.deltaX,this.y=this.deltaY,this.vectorLength=Math.sqrt(Math.pow(this.deltaX,2)+Math.pow(this.deltaY,2)),Math.abs(this.deltaX)>Math.abs(this.deltaY)?this.startPoint.x<this.endPoint.x?this.direction=i.Right:this.startPoint.x>this.endPoint.x&&(this.direction=i.Left):this.startPoint.y<this.endPoint.y?this.direction=i.Down:this.startPoint.y>this.endPoint.y&&(this.direction=i.Up)}}class b{static getVector(e,t){const n=new m(e.clientX,e.clientY),r=new m(t.clientX,t.clientY);return new p(n,r)}static getSpeed(e,t,n){let r=0;const i=(n-t)/1e3;return null!=e&&0!=i&&(r=e.vectorLength/i),r}static calculateRotationAngle(e,t){const n=new p(e.startPoint,t.startPoint),r=new p(e.endPoint,t.endPoint),i=new m(0,0),o=new p(n.startPoint,i),a=this.translatePoint(n.endPoint,o),s=new p(r.startPoint,i),l=this.translatePoint(r.endPoint,s),u=-1*this.calcAngleRad(a),c=l.x*Math.cos(u)-l.y*Math.sin(u),f=Math.round(l.x*Math.sin(u)+l.y*Math.cos(u));return 180*Math.atan2(f,c)/Math.PI}static calculateVectorAngle(e,t){let n=0;if(e.vectorLength>0&&t.vectorLength>0){const r=(e.x*t.x+e.y*t.y)/(e.vectorLength*t.vectorLength),i=Math.acos(r);n=this.rad2deg(i)}return n}static translatePoint(e,t){const n=e.x+t.x,r=e.y+t.y;return new m(n,r)}static calcAngleDegrees(e){let t=180*Math.atan2(e.y,e.x)/Math.PI;return t<0&&(t=360+t),t}static calcAngleRad(e){let t=Math.atan2(e.y,e.x);return t<0&&(t=2*Math.PI+t),t}static deg2rad(e){return Math.PI/180*e}static rad2deg(e){return e/(Math.PI/180)}static getCenter(e,t){const n=(e.x+t.x)/2,r=(e.y+t.y)/2;return new m(n,r)}static getCenterMovementVector(e,t){const n=this.getCenter(e.startPoint,t.startPoint),r=this.getCenter(e.endPoint,t.endPoint);return new p(n,r)}static calculateDistanceChange(e,t){const n=new p(e.startPoint,t.startPoint);return new p(e.endPoint,t.endPoint).vectorLength-n.vectorLength}static calculateAbsoluteDistanceChange(e,t){const n=this.calculateDistanceChange(e,t);return Math.abs(n)}static calculateRelativeDistanceChange(e,t){const n=new p(e.startPoint,t.startPoint);return new p(e.endPoint,t.endPoint).vectorLength/n.vectorLength}}let g;var v;(v=g||(g={})).Active="active",v.Removed="removed",v.Canceled="canceled";class y{constructor(e,t){this.options={DEBUG:!1,...t},this.DEBUG=this.options.DEBUG;const n=(new Date).getTime();this.pointerId=e.pointerId,this.vectorTimespan=this.options.vectorTimespan??100,this.initialPointerEvent=e,this.currentPointerEvent=e,this.recognizedEvents=[e],this.state=g.Active;const r=b.getVector(e,e),i={global:{startX:this.initialPointerEvent.clientX,startY:this.initialPointerEvent.clientY,vector:r,deltaX:0,deltaY:0,startTimestampUTC:n,startTimestamp:this.initialPointerEvent.timeStamp,currentTimestamp:this.initialPointerEvent.timeStamp,endTimestamp:null,maximumSpeed:0,currentSpeed:0,distance:0,maximumDistance:0,averageSpeed:0,finalSpeed:0,traveledDistance:0,hasBeenMoved:!1,duration:0},live:{duration:0,speed:0,vector:r,distance:0,isMoving:!1}};this.parameters=i}getTarget(){return this.initialPointerEvent.target}reset(){}onIdle(){const e=(new Date).getTime()-this.parameters.global.startTimestampUTC;this.parameters.global.duration=e}onPointerMove(e){this.parameters.global.hasBeenMoved=!0,this.parameters.live.isMoving=!0,this.update(e)}onPointerUp(e){this.parameters.global.finalSpeed=this.parameters.live.speed,this.parameters.live.speed=0,this.parameters.live.isMoving=!1,this.state=g.Removed,this.parameters.global.endTimestamp=e.timeStamp,this.update(e),!0===this.DEBUG&&console.log(`[PointerInput] pointerdown ended. pointerdown duration: ${this.parameters.global.duration}ms`)}onPointerLeave(e){this.onPointerUp(e)}onPointerCancel(e){this.update(e),this.parameters.live.speed=0,this.state=g.Canceled,this.parameters.live.isMoving=!1,this.parameters.global.endTimestamp=e.timeStamp,!0===this.DEBUG&&console.log(`[PointerInput] canceled, pointerdown duration:${this.parameters.global.duration}ms`)}update(e){this.currentPointerEvent=e,this.recognizedEvents.push(e);const t=this.getTimedPointerEvents(),n=b.getVector(t[0],t[1]);this.parameters.live.vector=n,this.parameters.live.distance=n.vectorLength,this.parameters.live.speed=b.getSpeed(n,t[0].timeStamp,t[1].timeStamp),this.parameters.live.speed>this.parameters.global.maximumSpeed&&(this.parameters.global.maximumSpeed=this.parameters.live.speed),this.parameters.global.currentTimestamp=e.timeStamp,this.parameters.global.duration=e.timeStamp-this.parameters.global.startTimestamp,this.parameters.global.deltaX=n.endPoint.x-this.parameters.global.startX,this.parameters.global.deltaY=n.endPoint.y-this.parameters.global.startY;const r=b.getVector(this.initialPointerEvent,this.currentPointerEvent);this.parameters.global.vector=r,this.parameters.global.distance=r.vectorLength,r.vectorLength>this.parameters.global.maximumDistance&&(this.parameters.global.maximumDistance=r.vectorLength),!0===this.DEBUG&&(console.log(`[PointerInput] current speed: ${this.parameters.live.speed}px/s`),console.log(`[PointerInput] pointerdown duration: ${this.parameters.global.duration}ms`),console.log(`[PointerInput] live vector length within vectorTimespan: ${this.parameters.live.vector.vectorLength}px`))}getTimedPointerEvents(){let e=this.initialPointerEvent;const t=this.recognizedEvents[this.recognizedEvents.length-1];let n=this.recognizedEvents.length-1,r=0;const i=t.timeStamp;for(;r<this.vectorTimespan&&(n-=1,!(n<0));)e=this.recognizedEvents[n],r=i-e.timeStamp;const o=[e,t];return this.recognizedEvents=this.recognizedEvents.slice(-20),o}}class w{constructor(e){this.pointer=e,this.parameters=e.parameters}getTarget(){return this.pointer.initialPointerEvent.target}getCurrentPointerEvent(){return this.pointer.currentPointerEvent}getCurrentDirection(){return this.parameters.live.vector.direction}onIdle(){}onPointerMove(e){}onPointerUp(e){}onPointerLeave(e){}onPointerCancel(e){}}const k=globalThis.window;let x;x=k?.CustomEvent?k.CustomEvent:class extends Event{constructor(e,t){super(e,t),this.detail=t?.detail}initCustomEvent(){throw new Error("Unsupported deprecated method")}};class T extends x{}class A{constructor(e,t){this.state=s.Inactive,this.validPointerManagerState=null,this.validPointerInputConstructor=w,this.domElement=e,this.initialPointerEvent=null,this.initialParameters=null,this.activeStateParameters=null,this.options={bubbles:!0,blocks:[],supportedDirections:[],supportedButtons:[],DEBUG:!1,...t},this.DEBUG=this.options.DEBUG}getEmptyGestureParameters(){return{global:{min:{},max:{},boolean:{}},live:{min:{},max:{},boolean:{}}}}getGestureParameters(){let e;if(this.state==s.Active?(e=this.activeStateParameters,1==this.DEBUG&&(console.log(`[${this.eventBaseName}] validating using activeStateParameters`),console.log(e))):(1==this.DEBUG&&console.log(`[${this.eventBaseName}] validating using initialParameters`),e=this.initialParameters),null==e)throw new Error("[Gesture] no gesture parameters found. Do not call .getGestureParameters on abstract class Gesture");return e}validateGestureParameters(e){const t=this.getGestureParameters();let n,r=!0;for(n in t){const i=t[n],o=e.parameters[n];let a;for(a in i){const e=i[a];let t;for(t in e){const i=e[t],s=o[t];if(1==this.DEBUG&&console.log(`[${this.eventBaseName}] validating ${n} ${a}: required: ${i}, pointer: ${s}`),"boolean"==typeof i&&"boolean"==typeof s?r=this.validateBooleanParameter(i,s):"number"==typeof i&&"number"==typeof s&&(r=this.validateMinMaxParameter(i,s,a)),0==r)return 1==this.DEBUG&&console.log(`[${this.eventBaseName}] invalidated `),!1}}}return!0}validateBooleanParameter(e,t){return null==e||(e==t?(1==this.DEBUG&&console.log(`validated: required value: ${e}, current value: ${t}`),!0):(1==this.DEBUG&&console.log(`dismissing ${this.eventBaseName}: required value: ${e}, current value: ${t}`),!1))}validateMinMaxParameter(e,t,n){if("min"==n){if(t>=e)return!0}else if("max"==n&&t<=e)return!0;return!1}validateDirection(e){const t=e.getCurrentDirection();return!(this.options.supportedDirections.length&&!this.options.supportedDirections.includes(t))||(1==this.DEBUG&&console.log(`[Gestures] dismissing ${this.eventBaseName}: supported directions: ${this.options.supportedDirections}, current direction: ${t}`),!1)}validateGestureState(){return this.state!=s.Blocked}validatePointerManagerState(e){return e.state==this.validPointerManagerState||(1==this.DEBUG&&console.log(`[Gesture] PointerManagerState invalidated ${this.eventBaseName}: ${e.state}`),!1)}validatePointerInputConstructor(e){return e instanceof this.validPointerInputConstructor||(1==this.DEBUG&&console.log(`[Gesture] PointerInputConstructor invalidated ${this.eventBaseName}: ${this.validPointerInputConstructor}`),!1)}validate(e){let t=this.validateGestureState();1==t&&(t=this.validatePointerManagerState(e));const n=e.activePointerInput;return 1==t&&null!=n&&(t=this.validatePointerInputConstructor(n),1==t&&(t=this.validateDirection(n)),1==t&&(t=this.validateGestureParameters(n))),t}recognize(e){const t=this.validate(e);1==t&&this.state==s.Inactive&&this.onStart(e),1==t&&this.state==s.Active?(null==this.initialPointerEvent&&this.setInitialPointerEvent(e),this.emit(e)):this.state==s.Active&&0==t?this.onEnd(e):1==this.DEBUG&&console.log(`not firing event ${this.eventBaseName}. No SinglePointerInput found`)}getPointerInput(e){if(1==e.hasPointersOnSurface()&&e.activePointerInput instanceof this.validPointerInputConstructor)return e.activePointerInput;if(e.lastRemovedPointer instanceof y){const t=e.getlastRemovedPointerInput();if(t instanceof this.validPointerInputConstructor)return t}return null}setInitialPointerEvent(e){const t=this.getPointerInput(e);if(t instanceof this.validPointerInputConstructor){const e=t.getCurrentPointerEvent();this.initialPointerEvent=e}}emit(e,t){t=t||this.eventBaseName,!0===this.DEBUG&&console.log(`[Gestures] detected and firing event ${t}`);const n=this.getPointerInput(e);if(null!=n){const r=n.getTarget();if(r instanceof EventTarget){const o=this.getEventData(n,e),a={detail:o,bubbles:this.options.bubbles};!0===this.DEBUG&&console.log(a);const s=new T(t,a);1==a.bubbles?r.dispatchEvent(s):this.domElement.dispatchEvent(s);const l=o.live.direction;if(1==!!this.options.supportedDirections&&l!=i.None&&(t==this.eventBaseName||"swipe"==t))for(let e=0;e<this.options.supportedDirections.length;e++){const n=this.options.supportedDirections[e];if(n==l){const e=t+n;1==this.DEBUG&&console.log(`[Gestures] detected and firing event ${e}`);const i=new T(e,a);1==a.bubbles?r.dispatchEvent(i):this.domElement.dispatchEvent(i)}}}}}onStart(e){this.blockGestures(),this.state=s.Active,this.setInitialPointerEvent(e);const t=`${this.eventBaseName}start`;this.emit(e,t)}onEnd(e){this.unblockGestures(),1==this.DEBUG&&console.log(`[${this.eventBaseName}] ended. Setting ${this.eventBaseName}.state = ${s.Inactive}`),this.state=s.Inactive;const t=`${this.eventBaseName}end`;this.emit(e,t)}onTouchStart(e){}onTouchMove(e){}onTouchEnd(e){}onTouchCancel(e){}block(e){-1==this.options.blocks.indexOf(e)&&this.options.blocks.push(e)}unblock(e){-1!=this.options.blocks.indexOf(e)&&this.options.blocks.splice(this.options.blocks.indexOf(e),1)}blockGestures(){for(let e=0;e<this.options.blocks.length;e++){const t=this.options.blocks[e];t.state==s.Inactive&&(0==this.DEBUG&&console.log(`[Gesture] blocking ${t.eventBaseName}`),t.state=s.Blocked)}}unblockGestures(){for(let e=0;e<this.options.blocks.length;e++)this.options.blocks[e].state=s.Inactive}getEventData(e,t){throw new Error("Gesture subclasses require a getEventData method()")}}class j extends A{constructor(e,t){super(e,t),this.initialPointerEvent=null,this.validPointerManagerState=u.SinglePointer;const n=this.getEmptyGestureParameters();this.initialParameters={...n},this.activeStateParameters=JSON.parse(JSON.stringify({...n}))}getEventData(e,t){const n=e.parameters.live,r=e.parameters.live;let i=n.vector,o=n.duration;if(null!=this.initialPointerEvent){const t=new m(this.initialPointerEvent.clientX,this.initialPointerEvent.clientY),n=new m(e.pointer.currentPointerEvent.clientX,e.pointer.currentPointerEvent.clientY);i=new p(t,n),o=e.pointer.currentPointerEvent.timeStamp-this.initialPointerEvent.timeStamp}return{recognizer:this,global:{deltaX:i.x,deltaY:i.y,distance:i.vectorLength,speedX:i.x/o,speedY:i.y/o,speed:i.vectorLength/o,direction:i.direction,scale:1,rotation:0,center:{x:n.vector.endPoint.x,y:n.vector.endPoint.y},srcEvent:e.pointer.currentPointerEvent},live:{deltaX:r.vector.x,deltaY:r.vector.y,distance:r.vector.vectorLength,speedX:r.vector.x/e.pointer.vectorTimespan,speedY:r.vector.y/e.pointer.vectorTimespan,speed:r.speed,direction:r.vector.direction,scale:1,rotation:0,center:{x:r.vector.endPoint.x,y:r.vector.endPoint.y},srcEvent:e.pointer.currentPointerEvent},pointerManager:t}}validateButton(e){if(this.options.supportedButtons.length>0){const t=e.activePointerInput,n=e.lastRemovedPointer;let r=null;if(null!=t?r=t.getCurrentPointerEvent():null!=n&&(r=n.currentPointerEvent),null!=r&&"mouse"==r.pointerType&&-1==this.options.supportedButtons.indexOf(r.buttons))return 1==this.DEBUG&&console.log(`dismissing ${this.eventBaseName}: supportedButtons: ${this.options.supportedButtons.toString()}, poinerEvent.buttons: ${r.buttons}`),!1}return!0}validate(e){let t=this.validateButton(e);return 1==t&&(t=super.validate(e)),t}}class I extends j{constructor(e,t){super(e,t),this.validPointerManagerState=u.NoPointer,this.eventBaseName="tap";let n=499,r=30,i=30;t&&("maxDuration"in t&&(n=t.maxDuration),"maxDistance"in t&&(r=t.maxDistance,i=t.maxDistance)),this.initialParameters.global.max.duration=n,this.initialParameters.live.max.distance=r,this.initialParameters.global.max.distance=i}validateButton(e){if(this.options.supportedButtons.length>0){const t=e.lastRemovedPointer;if(null!=t){const e=t.currentPointerEvent;if("mouse"==e.pointerType&&-1==this.options.supportedButtons.indexOf(e.button))return 1==this.DEBUG&&console.log(`dismissing ${this.eventBaseName}: supportedButtons: ${this.options.supportedButtons.toString()}, poinerEvent.button: ${e.button}`),!1}}return!0}validate(e){let t=this.validateGestureState();if(1==t&&(t=this.validatePointerManagerState(e)),1==t&&(t=this.validateButton(e)),!0===t){if(1!=e.lastInputSessionPointerCount)return!1;{const n=e.getlastRemovedPointerInput();t=n instanceof w&&this.validateGestureParameters(n)}}return t}onStart(e){this.setInitialPointerEvent(e),this.emit(e)}}class S extends j{static minDuration=500;constructor(e,t){super(e,t),this.eventBaseName="press";let n=500,r=10,i=20;t&&("minDuration"in t&&(n=t.minDuration),"maxDistance"in t&&(i=t.maxDistance,r=t.maxDistance)),this.initialParameters.global.min.duration=n,this.initialParameters.global.max.distance=r,this.initialParameters.global.max.maximumDistance=i,this.hasBeenEmitted=!1}recognize(e){const t=this.validate(e),n=this.getPointerInput(e),r=this.initialParameters.global.min.duration||S.minDuration;if(n instanceof w)if(1==t&&0==this.hasBeenEmitted)this.setInitialPointerEvent(e),this.emit(e),this.hasBeenEmitted=!0,this.state=s.Active,this.blockGestures();else if(0==t&&1==this.hasBeenEmitted)this.onEnd(e),this.state=s.Inactive,this.hasBeenEmitted=!1;else{const e=n.parameters.global.duration;1==this.hasBeenEmitted&&e<=r&&(this.hasBeenEmitted=!1)}null==n&&(this.hasBeenEmitted=!1)}}class D extends j{constructor(e,t){super(e,t),this.validPointerManagerState=u.SinglePointer,this.eventBaseName="pan",this.initialParameters.global.min.duration=0,this.initialParameters.live.min.distance=10,this.initialParameters.global.boolean.hasBeenMoved=!0,this.swipeFinalSpeed=600,this.isSwipe=!1,this.options.supportedDirections=t?.supportedDirections??a.All,this.initialSupportedDirections=this.options.supportedDirections}validate(e){this.state==s.Active&&(this.options.supportedDirections=a.All);return super.validate(e)}onStart(e){this.isSwipe=!1,super.onStart(e)}onEnd(e){const t=e.getlastRemovedPointerInput();t instanceof w&&(this.swipeFinalSpeed<t.parameters.global.finalSpeed&&t.parameters.live.vector.direction!=i.None?(this.isSwipe=!0,this.emit(e,"swipe")):1==this.DEBUG&&(t.parameters.global.finalSpeed<this.swipeFinalSpeed?console.log(`[Pan] dismissing swipe. Final speed: ${t.parameters.global.finalSpeed} < ${this.swipeFinalSpeed}`):console.log(`[Pan] dismissing swipe. Direction: ${t.parameters.live.vector.direction}`))),super.onEnd(e),this.options.supportedDirections=this.initialSupportedDirections}onTouchMove(e){this.state==s.Active&&(1==this.DEBUG&&console.log("[Pan] preventing touchmove default"),e.preventDefault(),e.stopPropagation())}}class O{constructor(e,t){this.pointerIds=new h([e.pointerId,t.pointerId]),this.startTimestamp=(new Date).getTime(),this.pointerMap={},this.pointerMap[e.pointerId]=e,this.pointerMap[t.pointerId]=t,this.pointer_1=e,this.pointer_2=t,this.initialPointerEvent=e.initialPointerEvent,this.currentPointerEvent=e.initialPointerEvent;const n=this.pointer_1.parameters.global.vector,r=this.pointer_2.parameters.global.vector,i={duration:0,center:b.getCenter(n.startPoint,r.startPoint),centerHasBeenMoved:!1,centerMovementDistance:0,centerMovementVector:b.getCenterMovementVector(n,r),absolutePointerDistanceChange:0,relativePointerDistanceChange:0,rotationAngle:0,absoluteRotationAngle:0,vectorAngle:0,absoluteVectorAngle:0},o=this.pointer_1.parameters.live.vector,a=this.pointer_2.parameters.live.vector,s={global:i,live:{center:b.getCenter(o.startPoint,a.startPoint),centerIsMoving:!1,centerMovementDistance:0,centerMovementVector:b.getCenterMovementVector(o,a),absolutePointerDistanceChange:0,relativePointerDistanceChange:0,rotationAngle:0,absoluteRotationAngle:0,vectorAngle:0,absoluteVectorAngle:0}};this.parameters=s}removePointer(e){if(e==this.pointer_1.pointerId)return this.pointer_2;if(e==this.pointer_2.pointerId)return this.pointer_1;throw new Error(`[DualPointerInput] cannot remove Pointer #${e}. The pointer is not part of this DualPointerInput`)}getTarget(){return this.initialPointerEvent.target}update(e){e instanceof PointerEvent&&(this.currentPointerEvent=e);const t=(new Date).getTime();this.parameters.global.duration=t-this.startTimestamp;const n=this.pointer_1.parameters.global.vector,r=this.pointer_2.parameters.global.vector,i=b.getCenter(n.startPoint,r.startPoint),o=b.getCenterMovementVector(n,r),a=b.calculateAbsoluteDistanceChange(n,r),s=b.calculateRelativeDistanceChange(n,r),l=b.calculateRotationAngle(n,r),u=b.calculateVectorAngle(n,r);this.parameters.global.center=i,this.parameters.global.centerMovementVector=o,this.parameters.global.centerMovementDistance=o.vectorLength,this.parameters.global.absolutePointerDistanceChange=a,this.parameters.global.relativePointerDistanceChange=s,this.parameters.global.rotationAngle=l,this.parameters.global.absoluteRotationAngle=Math.abs(l),this.parameters.global.vectorAngle=u,this.parameters.global.absoluteVectorAngle=Math.abs(u);const c=this.pointer_1.parameters.live.vector,f=this.pointer_2.parameters.live.vector,d=b.getCenter(c.startPoint,f.startPoint),m=b.getCenterMovementVector(c,f),p=b.calculateAbsoluteDistanceChange(c,f),h=b.calculateRelativeDistanceChange(c,f),g=b.calculateRotationAngle(c,f),v=b.calculateVectorAngle(c,f);m.vectorLength>0?(this.parameters.live.centerIsMoving=!0,this.parameters.global.centerHasBeenMoved=!0):this.parameters.live.centerIsMoving=!1,this.parameters.live.center=d,this.parameters.live.centerMovementDistance=m.vectorLength,this.parameters.live.centerMovementVector=m,this.parameters.live.absolutePointerDistanceChange=p,this.parameters.live.relativePointerDistanceChange=h,this.parameters.live.rotationAngle=g,this.parameters.live.absoluteRotationAngle=Math.abs(g),this.parameters.live.vectorAngle=v,this.parameters.live.absoluteVectorAngle=Math.abs(v)}onPointerMove(e){this.update(e)}onPointerUp(e){this.update(e)}onPointerLeave(e){this.update(e)}onPointerCancel(e){this.update(e)}onIdle(){this.update()}getCurrentDirection(){return this.parameters.live.centerMovementVector.direction}getCurrentPointerEvent(){return this.currentPointerEvent}}class E extends A{constructor(e,t){super(e,t),this.initialPointerEvent_1=null,this.initialPointerEvent_2=null,this.validPointerManagerState=u.DualPointer,this.validPointerInputConstructor=O;const n=this.getEmptyGestureParameters();this.initialParameters={...n},this.activeStateParameters=JSON.parse(JSON.stringify({...n}))}getEventData(e,t){const n=e.parameters.global,r=e.parameters.live;return{recognizer:this,global:{deltaX:n.centerMovementVector.x,deltaY:n.centerMovementVector.y,distance:n.centerMovementDistance,speedX:n.centerMovementVector.x/n.duration,speedY:n.centerMovementVector.y/n.duration,speed:n.centerMovementVector.vectorLength/n.duration,direction:n.centerMovementVector.direction,scale:n.relativePointerDistanceChange,rotation:n.rotationAngle,center:n.center,srcEvent:e.currentPointerEvent},live:{deltaX:r.centerMovementVector.x,deltaY:r.centerMovementVector.y,distance:r.centerMovementDistance,speedX:r.centerMovementVector.x/n.duration,speedY:r.centerMovementVector.y/n.duration,speed:r.centerMovementVector.vectorLength/n.duration,direction:r.centerMovementVector.direction,scale:r.relativePointerDistanceChange,rotation:r.rotationAngle,center:{x:r.centerMovementVector.startPoint.x,y:r.centerMovementVector.startPoint.y},srcEvent:e.currentPointerEvent},pointerManager:t}}}class P extends E{constructor(e,t){super(e,t),this.eventBaseName="pinch",this.initialParameters.live.min.centerMovementDistance=0,this.initialParameters.live.max.centerMovementDistance=50,this.initialParameters.live.min.absolutePointerDistanceChange=5,this.initialParameters.live.max.absoluteRotationAngle=20,this.initialParameters.live.min.absoluteVectorAngle=10}}class R extends E{constructor(e,t){super(e,t),this.eventBaseName="rotate",this.initialParameters.live.min.centerMovementDistance=0,this.initialParameters.live.max.centerMovementDistance=50,this.initialParameters.live.max.absolutePointerDistanceChange=50,this.initialParameters.live.min.absoluteRotationAngle=5,this.activeStateParameters.live.min.absoluteRotationAngle=0}}class L extends E{constructor(e,t){super(e,t),this.eventBaseName="twofingerpan",this.initialParameters.live.min.centerMovementDistance=10,this.initialParameters.live.max.absolutePointerDistanceChange=50,this.initialParameters.live.max.absoluteVectorAngle=150,this.activeStateParameters.live.min.centerMovementDistance=0}}class C{constructor(e){e=e||{},this.options={DEBUG:!1,...e},this.DEBUG=this.options.DEBUG,this.state=u.NoPointer,this.activePointerInput=null,this.lastRemovedPointer=null,this.lastInputSessionPointerCount=0,this.pointerAllocation={},this.unusedPointers={},this.onSurfacePointers={}}addPointer(e){1==this.DEBUG&&console.log(`[PointerManager] adding Pointer #${e.pointerId.toString()}`);const t={DEBUG:this.DEBUG},n=new y(e,t);this.onSurfacePointers[n.pointerId]=n,null==this.activePointerInput?this.setActiveSinglePointerInput(n):this.activePointerInput instanceof w?this.setActiveDualPointerInput(this.activePointerInput.pointer,n):this.activePointerInput instanceof O&&(this.unusedPointers[n.pointerId]=n),this.lastInputSessionPointerCount=this.currentPointerCount()}removePointer(e){1==this.DEBUG&&(console.log(`[PointerManager] starting to remove Pointer #${e}`),console.log(`[PointerManager] state: ${this.state}`));const t=this.onSurfacePointers[e];if(this.lastRemovedPointer=t,delete this.onSurfacePointers[e],e in this.unusedPointers&&delete this.unusedPointers[e],this.activePointerInput instanceof O){if(this.activePointerInput.pointerIds.has(e)){1==this.DEBUG&&console.log(`[PointerManager] removing Pointer #${e} from DualPointerInput`);const t=this.activePointerInput.removePointer(e);this.activePointerInput=null;const n=this.getUnusedPointer();n instanceof y?this.setActiveDualPointerInput(t,n):this.setActiveSinglePointerInput(t)}}else if(this.activePointerInput instanceof w){if(1==this.DEBUG&&console.log(`[PointerManager] removing Pointer #${e} from SinglePointerInput`),this.activePointerInput=null,this.state=u.NoPointer,Object.keys(this.unusedPointers).length>0)throw this.unusedPointers={},new Error("[PointerManager] found unused Pointers although there should not be any");if(Object.keys(this.onSurfacePointers).length>0)throw this.onSurfacePointers={},new Error("[PointerManager] found onSurfacePointers although there should not be any")}1==this.DEBUG&&console.log(`[PointerManager] state: ${this.state}`)}setActiveSinglePointerInput(e){e.reset();const t=new w(e);this.activePointerInput=t,this.pointerAllocation[e.pointerId]=t,delete this.unusedPointers[e.pointerId],this.state=u.SinglePointer,1==this.DEBUG&&console.log(`[PointerManager] state: ${this.state}`)}setActiveDualPointerInput(e,t){e.reset(),t.reset();const n=new O(e,t);this.activePointerInput=n,this.pointerAllocation[e.pointerId]=n,this.pointerAllocation[t.pointerId]=n,delete this.unusedPointers[e.pointerId],delete this.unusedPointers[t.pointerId],this.state=u.DualPointer,1==this.DEBUG&&console.log(`[PointerManager] state: ${this.state}`)}hasPointersOnSurface(){return Object.keys(this.onSurfacePointers).length>0}currentPointerCount(){return Object.keys(this.onSurfacePointers).length}getUnusedPointer(){if(Object.keys(this.unusedPointers).length>0)return Object.values(this.unusedPointers)[0];return null}getPointerFromId(e){return e in this.onSurfacePointers?this.onSurfacePointers[e]:null}getlastRemovedPointerInput(){return this.lastRemovedPointer instanceof y?this.pointerAllocation[this.lastRemovedPointer.pointerId]:null}onIdle(){for(const e in this.onSurfacePointers)this.onSurfacePointers[e].onIdle();this.activePointerInput?.onIdle()}onPointerMove(e){const t=this.getPointerFromId(e.pointerId);t instanceof y&&t.onPointerMove(e),this.activePointerInput?.onPointerMove(e)}onPointerUp(e){1==this.DEBUG&&console.log("[PointerManager] pointerup detected");const t=this.getPointerFromId(e.pointerId);t instanceof y&&t.onPointerUp(e),this.activePointerInput?.onPointerUp(e),this.removePointer(e.pointerId)}onPointerCancel(e){1==this.DEBUG&&console.log("[PointerManager] pointercancel detected");const t=this.getPointerFromId(e.pointerId);t instanceof y&&t.onPointerCancel(e),this.activePointerInput?.onPointerCancel(e),this.removePointer(e.pointerId)}}const M=[I,S,D,P,R,L];class N{constructor(e,t){this.state=f.NoActiveGesture,this.activeGestures=[],this.hadActiveGestureDuringCurrentContact=!1,this.gestureEventHandlers={},this.lastRecognitionTimestamp=null,this.idleRecognitionIntervalId=null,this.pointerEventHandlers={},this.touchEventHandlers={},t=t||{},this.options={DEBUG:!1,DEBUG_GESTURES:!1,DEBUG_POINTERMANAGER:!1,bubbles:!0,handleTouchEvents:!0,consecutiveGestures:!0,simultaneousGestures:!0,supportedGestures:[],...t},this.DEBUG=this.options.DEBUG;const n=(t.supportedGestures??M).map(t=>{if("function"==typeof t){const n={bubbles:this.options.bubbles,DEBUG:this.options.DEBUG_GESTURES};return new t(e,n)}if("object"==typeof t)return t;throw new Error("unsupported gesture type: "+typeof t)});this.supportedGestures=n,this.domElement=e;const r={DEBUG:this.options.DEBUG_POINTERMANAGER};this.pointerManager=new C(r),this.addPointerEventListeners(),this.addTouchEventListeners()}addPointerEventListeners(){const e=this.domElement,t=this.onPointerDown.bind(this),n=this.onPointerMove.bind(this),r=this.onPointerUp.bind(this),i=this.onPointerCancel.bind(this);e.addEventListener("pointerdown",t,{passive:!0}),e.addEventListener("pointermove",n,{passive:!0}),e.addEventListener("pointerup",r,{passive:!0}),e.addEventListener("pointercancel",i,{passive:!0}),this.pointerEventHandlers={pointerdown:t,pointermove:n,pointerup:r,pointercancel:i}}onPointerDown(e){1==this.DEBUG&&console.log("[PointerListener] pointerdown event detected"),(e.target||this.domElement).setPointerCapture(e.pointerId),this.pointerManager.addPointer(e),this.options.pointerdown?.(e,this),null!=this.idleRecognitionIntervalId&&this.clearIdleRecognitionInterval(),this.idleRecognitionIntervalId=setInterval(()=>{this.onIdle()},100)}onPointerMove(e){1==this.pointerManager.hasPointersOnSurface()&&(this.pointerManager.onPointerMove(e),this.recognizeGestures(),this.options.pointermove?.(e,this))}onPointerUp(e){1==this.DEBUG&&console.log("[PointerListener] pointerup event detected"),this.domElement.releasePointerCapture(e.pointerId),1==this.pointerManager.hasPointersOnSurface()&&(this.pointerManager.onPointerUp(e),this.recognizeGestures(),this.options.pointerup?.(e,this)),this.clearIdleRecognitionInterval()}onPointerCancel(e){this.domElement.releasePointerCapture(e.pointerId),1==this.DEBUG&&console.log("[PointerListener] pointercancel detected"),this.pointerManager.onPointerCancel(e),this.recognizeGestures(),this.clearIdleRecognitionInterval(),this.options.pointercancel?.(e,this)}removePointerEventListeners(){for(const e in this.pointerEventHandlers){const t=this.pointerEventHandlers[e];this.domElement.removeEventListener(e,t)}}addTouchEventListeners(){if(1==this.options.handleTouchEvents){const e=this.onTouchMove.bind(this);this.domElement.addEventListener("touchmove",e),this.touchEventHandlers.touchmove=e}}removeTouchEventListeners(){for(const e in this.touchEventHandlers){const t=this.touchEventHandlers[e];this.domElement.removeEventListener(e,t)}}onTouchMove(e){for(let t=0;t<this.supportedGestures.length;t++)this.supportedGestures[t].onTouchMove(e)}onIdle(){if(0==this.pointerManager.hasPointersOnSurface())this.clearIdleRecognitionInterval();else{const e=(new Date).getTime();let t=null;null!=this.lastRecognitionTimestamp&&(t=e-this.lastRecognitionTimestamp),(null==t||t>100)&&(this.pointerManager.onIdle(),1==this.DEBUG&&console.log("[PointerListener] onIdle - running idle recognition"),this.recognizeGestures())}}clearIdleRecognitionInterval(){null!=this.idleRecognitionIntervalId&&(clearInterval(this.idleRecognitionIntervalId),this.idleRecognitionIntervalId=null)}recognizeGestures(){this.lastRecognitionTimestamp=(new Date).getTime();let e=this.supportedGestures;0==this.options.simultaneousGestures&&this.state==f.ActiveGesture||0==this.options.consecutiveGestures&&this.state==f.ActiveGesture?e=[this.activeGestures[0]]:0==this.options.consecutiveGestures&&this.state==f.NoActiveGesture&&1==this.hadActiveGestureDuringCurrentContact&&1==this.pointerManager.hasPointersOnSurface()&&(e=[]);for(let t=0;t<e.length;t++){const n=e[t];if(n.recognize(this.pointerManager),this.updateActiveGestures(n),0==this.options.simultaneousGestures&&this.state==f.ActiveGesture)break}1==this.DEBUG&&console.log(`[PointerListener] hadActiveGestureDuringCurrentContact: ${this.hadActiveGestureDuringCurrentContact}`),0==this.pointerManager.hasPointersOnSurface()&&(this.hadActiveGestureDuringCurrentContact=!1)}updateActiveGestures(e){if(e.state==s.Active)this.hadActiveGestureDuringCurrentContact=!0,this.activeGestures.indexOf(e)<0&&this.activeGestures.push(e);else{const t=this.activeGestures.indexOf(e);t>=0&&this.activeGestures.splice(t,1)}this.activeGestures.length>0?this.state=f.ActiveGesture:this.state=f.NoActiveGesture}parseEventsString(e){return e.trim().split(/\s+/g)}on(e,t){const n=this.parseEventsString(e);for(let e=0;e<n.length;e++){const r=n[e];r in this.gestureEventHandlers||(this.gestureEventHandlers[r]=[]),-1==this.gestureEventHandlers[r].indexOf(t)&&this.gestureEventHandlers[r].push(t),this.domElement.addEventListener(r,t,{capture:!1,passive:!0})}}off(e,t){const n=this.parseEventsString(e);1==this.DEBUG&&(console.log(`[PointerListener] turning off events: ${e}`),console.log(this.gestureEventHandlers));for(let e=0;e<n.length;e++){const r=n[e];if(r in this.gestureEventHandlers){const e=this.gestureEventHandlers[r],n=e.indexOf(t);1==this.DEBUG&&console.log(`[PointerListener] turning off ${r}. Index on handlerList: ${n}`),n>=0&&(e.splice(n,1),this.gestureEventHandlers[r]=e),this.domElement.removeEventListener(r,t,!1)}}}destroy(){for(const e in this.gestureEventHandlers){const t=this.gestureEventHandlers[e];for(let n=0;n<t.length;n++){const r=t[n];this.domElement.removeEventListener(e,r)}delete this.gestureEventHandlers[e]}this.removePointerEventListeners(),this.removeTouchEventListeners()}}}}},"jquery-serializejson":{
161"package.json":function(e,t,n){n.exports={name:"jquery-serializejson",version:"3.2.1",main:"jquery.serializejson.js"}},
161"jquery.serializejson.js":function(e,t,n){(function(r){if("function"==typeof define&&define.amd)define(["jquery"],r);else if("object"==typeof t){var i=e("jquery");n.exports=r(i)}else r(window.jQuery||window.Zepto||window.$)})(function(e){"use strict";var t=/\r?\n/g;var n=/^(?:submit|button|image|reset|file)$/i;var r=/^(?:input|select|textarea|keygen)/i;var i=/^(?:checkbox|radio)$/i;e.fn.serializeJSON=function(t){var n=e.serializeJSON;var r=this;var i=n.setupOpts(t);var o=e.extend({},i.defaultTypes,i.customTypes);var a=n.serializeArray(r,i);var s={};e.each(a,function(t,r){var a=r.name;var l=e(r.el).attr("data-value-type");if(!l&&!i.disableColonTypes){var u=n.splitType(r.name);a=u[0];l=u[1]}if("skip"===l)return;if(!l)l=i.defaultType;var c=n.applyTypeFunc(r.name,r.value,l,r.el,o);if(!c&&n.shouldSkipFalsy(r.name,a,l,r.el,i))return;var f=n.splitInputNameIntoKeysArray(a);n.deepSet(s,f,c,i)});return s};e.serializeJSON={defaultOptions:{},defaultBaseOptions:{checkboxUncheckedValue:void 0,useIntKeysAsArrayIndex:false,skipFalsyValuesForTypes:[],skipFalsyValuesForFields:[],disableColonTypes:false,customTypes:{},defaultTypes:{string:function(e){return String(e)},number:function(e){return Number(e)},boolean:function(e){var t=["false","null","undefined","","0"];return -1===t.indexOf(e)},null:function(e){var t=["false","null","undefined","","0"];return -1===t.indexOf(e)?e:null},array:function(e){return JSON.parse(e)},object:function(e){return JSON.parse(e)},skip:null},defaultType:"string"},setupOpts:function(t){if(null==t)t={};var n=e.serializeJSON;var r=["checkboxUncheckedValue","useIntKeysAsArrayIndex","skipFalsyValuesForTypes","skipFalsyValuesForFields","disableColonTypes","customTypes","defaultTypes","defaultType"];for(var i in t)if(-1===r.indexOf(i))throw new Error("serializeJSON ERROR: invalid option '"+i+"'. Please use one of "+r.join(", "));return e.extend({},n.defaultBaseOptions,n.defaultOptions,t)},serializeArray:function(o,a){if(null==a)a={};var s=e.serializeJSON;return o.map(function(){var t=e.prop(this,"elements");return t?e.makeArray(t):this}).filter(function(){var t=e(this);var o=this.type;return this.name&&!t.is(":disabled")&&r.test(this.nodeName)&&!n.test(o)&&(this.checked||!i.test(o)||null!=s.getCheckboxUncheckedValue(t,a))}).map(function(n,r){var o=e(this);var l=o.val();var c=this.type;if(null==l)return null;if(i.test(c)&&!this.checked)l=s.getCheckboxUncheckedValue(o,a);if(u(l))return e.map(l,function(e){return{name:r.name,value:e.replace(t,"\r\n"),el:r}});return{name:r.name,value:l.replace(t,"\r\n"),el:r}}).get()},getCheckboxUncheckedValue:function(e,t){var n=e.attr("data-unchecked-value");if(null==n)n=t.checkboxUncheckedValue;return n},applyTypeFunc:function(e,t,n,r,i){var a=i[n];if(!a)throw new Error("serializeJSON ERROR: Invalid type "+n+" found in input name '"+e+"', please use one of "+o(i).join(", "));return a(t,r)},splitType:function(e){var t=e.split(":");if(!(t.length>1))return[e,""];var n=t.pop();return[t.join(":"),n]},shouldSkipFalsy:function(t,n,r,i,o){var a=e(i).attr("data-skip-falsy");if(null!=a)return"false"!==a;var s=o.skipFalsyValuesForFields;if(s&&(-1!==s.indexOf(n)||-1!==s.indexOf(t)))return true;var l=o.skipFalsyValuesForTypes;if(l&&-1!==l.indexOf(r))return true;return false},splitInputNameIntoKeysArray:function(t){var n=t.split("[");n=e.map(n,function(e){return e.replace(/\]/g,"")});if(""===n[0])n.shift();return n},deepSet:function(t,n,r,i){if(null==i)i={};var o=e.serializeJSON;if(s(t))throw new Error("ArgumentError: param 'o' expected to be an object or array, found undefined");if(!n||0===n.length)throw new Error("ArgumentError: param 'keys' expected to be an array with least one element");var c=n[0];if(1===n.length){if(""===c)t.push(r);else t[c]=r;return}var f=n[1];var d=n.slice(1);if(""===c){var m=t.length-1;var p=t[m];c=a(p)&&s(o.deepGet(p,d))?m:m+1}if(""===f){if(s(t[c])||!u(t[c]))t[c]=[]}else if(i.useIntKeysAsArrayIndex&&l(f)){if(s(t[c])||!u(t[c]))t[c]=[]}else if(s(t[c])||!a(t[c]))t[c]={};o.deepSet(t[c],d,r,i)},deepGet:function(t,n){var r=e.serializeJSON;if(s(t)||s(n)||0===n.length||!a(t)&&!u(t))return t;var i=n[0];if(""===i)return;if(1===n.length)return t[i];var o=n.slice(1);return r.deepGet(t[i],o)}};var o=function(e){if(Object.keys)return Object.keys(e);var t,n=[];for(t in e)n.push(t);return n};var a=function(e){return e===Object(e)};var s=function(e){return void 0===e};var l=function(e){return/^[0-9]+$/.test(String(e))};var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}})}},jquery:{
161"package.json":function(e,t,n){n.exports={name:"jquery",version:"3.6.0",main:"dist/jquery.js"}},dist:{
161"jquery.js":function(e,t,n){(function(e,t){"use strict";if("object"==typeof n&&"object"==typeof n.exports)n.exports=e.document?t(e,true):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)};else t(e)})("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[];var r=Object.getPrototypeOf;var i=n.slice;var o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)};var a=n.push;var s=n.indexOf;var l={};var u=l.toString;var c=l.hasOwnProperty;var f=c.toString;var d=f.call(Object);var p={};var h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item};var b=function(e){return null!=e&&e===e.window};var g=e.document;var v={type:true,src:true,nonce:true,noModule:true};function y(e,t,n){n=n||g;var r,i,o=n.createElement("script");o.text=e;if(t)for(r in v){i=t[r]||t.getAttribute&&t.getAttribute(r);if(i)o.setAttribute(r,i)}n.head.appendChild(o).parentNode.removeChild(o)}function w(e){if(null==e)return e+"";return"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var k="3.6.0",x=function(e,t){return new x.fn.init(e,t)};x.fn=x.prototype={jquery:k,constructor:x,length:0,toArray:function(){return i.call(this)},get:function(e){if(null==e)return i.call(this);return e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);t.prevObject=this;return t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice};x.extend=x.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=false;if("boolean"==typeof a){u=a;a=arguments[s]||{};s++}if("object"!=typeof a&&!h(a))a={};if(s===l){a=this;s--}for(;s<l;s++)if(null!=(e=arguments[s]))for(t in e){r=e[t];if("__proto__"!==t&&a!==r){if(u&&r&&(x.isPlainObject(r)||(i=Array.isArray(r)))){n=a[t];o=i&&!Array.isArray(n)?[]:i||x.isPlainObject(n)?n:{};i=false;a[t]=x.extend(u,o,r)}else if(void 0!==r)a[t]=r}}return a};x.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:true,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;if(!e||"[object Object]"!==u.call(e))return false;t=r(e);if(!t)return true;n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&f.call(n)===d},isEmptyObject:function(e){var t;for(t in e)return false;return true},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(T(e)){n=e.length;for(;r<n&&false!==t.call(e[r],r,e[r]);r++);}else for(r in e)if(false===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];if(null!=e)if(T(Object(e)))x.merge(n,"string"==typeof e?[e]:e);else a.call(n,e);return n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){var n=+t.length,r=0,i=e.length;for(;r<n;r++)e[i++]=t[r];e.length=i;return e},grep:function(e,t,n){var r,i=[],o=0,a=e.length,s=!n;for(;o<a;o++){r=!t(e[o],o);if(r!==s)i.push(e[o])}return i},map:function(e,t,n){var r,i,a=0,s=[];if(T(e)){r=e.length;for(;a<r;a++){i=t(e[a],a,n);if(null!=i)s.push(i)}}else for(a in e){i=t(e[a],a,n);if(null!=i)s.push(i)}return o(s)},guid:1,support:p});if("function"==typeof m)x.fn[m.iterator]=n[m.iterator];x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function T(e){var t=!!e&&"length"in e&&e.length,n=w(e);if(h(e)||b(e))return false;return"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}var A=function(e){var t,n,r,i,o,a,s,l,u,c,f,d,m,p,h,b,g,v,y,w="sizzle"+ +new Date,k=e.document,x=0,T=0,A=ec(),j=ec(),I=ec(),S=ec(),D=function(e,t){if(e===t)f=true;return 0},O={}.hasOwnProperty,E=[],P=E.pop,R=E.push,L=E.push,C=E.slice,M=function(e,t){var n=0,r=e.length;for(;n<r;n++)if(e[n]===t)return n;return -1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",V="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}"+V+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\["+V+"*("+U+")(?:"+V+"*([*^$|!~]?=)"+V+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+V+"*\\]",F=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",H=new RegExp(V+"+","g"),W=new RegExp("^"+V+"+|((?:^|[^\\\\])(?:\\\\.)*)"+V+"+$","g"),G=new RegExp("^"+V+"*,"+V+"*"),q=new RegExp("^"+V+"*([>+~]|"+V+")"+V+"*"),z=new RegExp(V+"|>"),J=new RegExp(F),Y=new RegExp("^"+U+"$"),X={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+V+"*(even|odd|(([+-]|)(\\d*)n|)"+V+"*(?:([+-]|)"+V+"*(\\d+)|))"+V+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+V+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+V+"*((?:-\\d)?\\d*)"+V+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,en=/[+~]/,er=new RegExp("\\\\[\\da-fA-F]{1,6}"+V+"?|\\\\([^\\r\\n\\f])","g"),ei=function(e,t){var n="0x"+e.slice(1)-65536;return t?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},eo=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ea=function(e,t){if(t){if("\0"===e)return"�";return e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" "}return"\\"+e},es=function(){d()},el=ex(function(e){return true===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});
161try{L.apply(E=C.call(k.childNodes),k.childNodes);E[k.childNodes.length].nodeType}catch(e){L={apply:E.length?function(e,t){R.apply(e,C.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function eu(e,t,r,i){var o,s,u,c,f,p,g,v=t&&t.ownerDocument,k=t?t.nodeType:9;r=r||[];if("string"!=typeof e||!e||1!==k&&9!==k&&11!==k)return r;if(!i){d(t);t=t||m;if(h){if(11!==k&&(f=et.exec(e))){if(o=f[1]){if(9===k){if(!(u=t.getElementById(o)))return r;else if(u.id===o){r.push(u);return r}}else if(v&&(u=v.getElementById(o))&&y(t,u)&&u.id===o){r.push(u);return r}}else if(f[2]){L.apply(r,t.getElementsByTagName(e));return r}else if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName){L.apply(r,t.getElementsByClassName(o));return r}}if(n.qsa&&!S[e+" "]&&(!b||!b.test(e))&&(1!==k||"object"!==t.nodeName.toLowerCase())){g=e;v=t;if(1===k&&(z.test(e)||q.test(e))){v=en.test(e)&&ey(t.parentNode)||t;if(v!==t||!n.scope)if(c=t.getAttribute("id"))c=c.replace(eo,ea);else t.setAttribute("id",c=w);p=a(e);s=p.length;while(s--)p[s]=(c?"#"+c:":scope")+" "+ek(p[s]);g=p.join(",")}try{L.apply(r,v.querySelectorAll(g));return r}catch(t){S(e,true)}finally{if(c===w)t.removeAttribute("id")}}}}return l(e.replace(W,"$1"),t,r,i)}function ec(){var e=[];function t(n,i){if(e.push(n+" ")>r.cacheLength)delete t[e.shift()];return t[n+" "]=i}return t}function ef(e){e[w]=true;return e}function ed(e){var t=m.createElement("fieldset");try{return!!e(t)}catch(e){return false}finally{if(t.parentNode)t.parentNode.removeChild(t);t=null}}function em(e,t){var n=e.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function ep(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n){while(n=n.nextSibling)if(n===t)return -1}return e?1:-1}function eh(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function eb(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function eg(e){return function(t){if("form"in t){if(t.parentNode&&false===t.disabled){if("label"in t)if("label"in t.parentNode)return t.parentNode.disabled===e;else return t.disabled===e;return t.isDisabled===e||!e!==t.isDisabled&&el(t)===e}return t.disabled===e}if("label"in t)return t.disabled===e;return false}}function ev(e){return ef(function(t){t*=1;return ef(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)if(n[i=o[a]])n[i]=!(r[i]=n[i])})})}function ey(e){return e&&void 0!==e.getElementsByTagName&&e}n=eu.support={};o=eu.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")};d=eu.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:k;if(a==m||9!==a.nodeType||!a.documentElement)return m;m=a;p=m.documentElement;h=!o(m);if(k!=m&&(i=m.defaultView)&&i.top!==i){if(i.addEventListener)i.addEventListener("unload",es,false);else if(i.attachEvent)i.attachEvent("onunload",es)}n.scope=ed(function(e){p.appendChild(e).appendChild(m.createElement("div"));return void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length});n.attributes=ed(function(e){e.className="i";return!e.getAttribute("className")});n.getElementsByTagName=ed(function(e){e.appendChild(m.createComment(""));return!e.getElementsByTagName("*").length});n.getElementsByClassName=ee.test(m.getElementsByClassName);n.getById=ed(function(e){p.appendChild(e).id=w;return!m.getElementsByName||!m.getElementsByName(w).length});if(n.getById){r.filter["ID"]=function(e){var t=e.replace(er,ei);return function(e){return e.getAttribute("id")===t}};r.find["ID"]=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}}else{r.filter["ID"]=function(e){var t=e.replace(er,ei);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}};r.find["ID"]=function(e,t){if(void 0!==t.getElementById&&h){var n,r,i,o=t.getElementById(e);if(o){n=o.getAttributeNode("id");if(n&&n.value===e)return[o];i=t.getElementsByName(e);r=0;while(o=i[r++]){n=o.getAttributeNode("id");if(n&&n.value===e)return[o]}}return[]}}}r.find["TAG"]=n.getElementsByTagName?function(e,t){if(void 0!==t.getElementsByTagName)return t.getElementsByTagName(e);
161if(n.qsa)return t.querySelectorAll(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])if(1===n.nodeType)r.push(n);return r}return o};r.find["CLASS"]=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)};g=[];b=[];if(n.qsa=ee.test(m.querySelectorAll)){ed(function(e){var t;p.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>";if(e.querySelectorAll("[msallowcapture^='']").length)b.push("[*^$]="+V+"*(?:''|\"\")");if(!e.querySelectorAll("[selected]").length)b.push("\\["+V+"*(?:value|"+N+")");if(!e.querySelectorAll("[id~="+w+"-]").length)b.push("~=");t=m.createElement("input");t.setAttribute("name","");e.appendChild(t);if(!e.querySelectorAll("[name='']").length)b.push("\\["+V+"*name"+V+"*="+V+"*(?:''|\"\")");if(!e.querySelectorAll(":checked").length)b.push(":checked");if(!e.querySelectorAll("a#"+w+"+*").length)b.push(".#.+[+~]");e.querySelectorAll("\\\f");b.push("[\\r\\n\\f]")});ed(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=m.createElement("input");t.setAttribute("type","hidden");e.appendChild(t).setAttribute("name","D");if(e.querySelectorAll("[name=d]").length)b.push("name"+V+"*[*^$|!~]?=");if(2!==e.querySelectorAll(":enabled").length)b.push(":enabled",":disabled");p.appendChild(e).disabled=true;if(2!==e.querySelectorAll(":disabled").length)b.push(":enabled",":disabled");e.querySelectorAll("*,:x");b.push(",.*:")})}if(n.matchesSelector=ee.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))ed(function(e){n.disconnectedMatch=v.call(e,"*");v.call(e,"[s!='']:x");g.push("!=",F)});b=b.length&&new RegExp(b.join("|"));g=g.length&&new RegExp(g.join("|"));t=ee.test(p.compareDocumentPosition);y=t||ee.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&1===r.nodeType&&(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t){while(t=t.parentNode)if(t===e)return true}return false};D=t?function(e,t){if(e===t){f=true;return 0}var r=!e.compareDocumentPosition-!t.compareDocumentPosition;if(r)return r;r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1;if(1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r){if(e==m||e.ownerDocument==k&&y(k,e))return -1;if(t==m||t.ownerDocument==k&&y(k,t))return 1;return c?M(c,e)-M(c,t):0}return 4&r?-1:1}:function(e,t){if(e===t){f=true;return 0}var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==m?-1:t==m?1:i?-1:o?1:c?M(c,e)-M(c,t):0;if(i===o)return ep(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?ep(a[r],s[r]):a[r]==k?-1:s[r]==k?1:0};return m};eu.matches=function(e,t){return eu(e,null,null,t)};eu.matchesSelector=function(e,t){d(e);if(n.matchesSelector&&h&&!S[t+" "]&&(!g||!g.test(t))&&(!b||!b.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){S(t,true)}return eu(t,m,null,[e]).length>0};eu.contains=function(e,t){if((e.ownerDocument||e)!=m)d(e);return y(e,t)};eu.attr=function(e,t){if((e.ownerDocument||e)!=m)d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&O.call(r.attrHandle,t.toLowerCase())?i(e,t,!h):void 0;return void 0!==o?o:n.attributes||!h?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null};eu.escape=function(e){return(e+"").replace(eo,ea)};eu.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};eu.uniqueSort=function(e){var t,r=[],i=0,o=0;f=!n.detectDuplicates;c=!n.sortStable&&e.slice(0);e.sort(D);if(f){while(t=e[o++])if(t===e[o])i=r.push(o);while(i--)e.splice(r[i],1)}c=null;return e};i=eu.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o)if("string"==typeof e.textContent)return e.textContent;else for(e=e.firstChild;e;e=e.nextSibling)n+=i(e);
161else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=i(t);return n};r=eu.selectors={cacheLength:50,createPseudo:ef,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(er,ei);e[3]=(e[3]||e[4]||e[5]||"").replace(er,ei);if("~="===e[2])e[3]=" "+e[3]+" ";return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if("nth"===e[1].slice(0,3)){if(!e[3])eu.error(e[0]);e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3]));e[5]=+(e[7]+e[8]||"odd"===e[3])}else if(e[3])eu.error(e[0]);return e},PSEUDO:function(e){var t,n=!e[6]&&e[2];if(X["CHILD"].test(e[0]))return null;if(e[3])e[2]=e[4]||e[5]||"";else if(n&&J.test(n)&&(t=a(n,true))&&(t=n.indexOf(")",n.length-t)-n.length)){e[0]=e[0].slice(0,t);e[2]=n.slice(0,t)}return e.slice(0,3)}},filter:{TAG:function(e){var t=e.replace(er,ei).toLowerCase();return"*"===e?function(){return true}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=new RegExp("(^|"+V+")"+e+"("+V+"|$)"),A(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=eu.attr(r,e);if(null==i)return"!="===t;if(!t)return true;i+="";return"="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":false}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,m,p,h=o!==a?"nextSibling":"previousSibling",b=t.parentNode,g=s&&t.nodeName.toLowerCase(),v=!l&&!s,y=false;if(b){if(o){while(h){d=t;while(d=d[h])if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return false;p=h="only"===e&&!p&&"nextSibling"}return true}p=[a?b.firstChild:b.lastChild];if(a&&v){d=b;f=d[w]||(d[w]={});c=f[d.uniqueID]||(f[d.uniqueID]={});u=c[e]||[];m=u[0]===x&&u[1];y=m&&u[2];d=m&&b.childNodes[m];while(d=++m&&d&&d[h]||(y=m=0)||p.pop())if(1===d.nodeType&&++y&&d===t){c[e]=[x,m,y];break}}else{if(v){d=t;f=d[w]||(d[w]={});c=f[d.uniqueID]||(f[d.uniqueID]={});u=c[e]||[];m=u[0]===x&&u[1];y=m}if(false===y){while(d=++m&&d&&d[h]||(y=m=0)||p.pop())if((s?d.nodeName.toLowerCase()===g:1===d.nodeType)&&++y){if(v){f=d[w]||(d[w]={});c=f[d.uniqueID]||(f[d.uniqueID]={});c[e]=[x,y]}if(d===t)break}}}y-=i;return y===r||y%r===0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||eu.error("unsupported pseudo: "+e);if(i[w])return i(t);if(i.length>1){n=[e,e,"",t];return r.setFilters.hasOwnProperty(e.toLowerCase())?ef(function(e,n){var r,o=i(e,t),a=o.length;while(a--){r=M(e,o[a]);e[r]=!(n[r]=o[a])}}):function(e){return i(e,0,n)}}return i}},pseudos:{not:ef(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[w]?ef(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)if(o=a[s])e[s]=!(t[s]=o)}):function(e,i,o){t[0]=e;r(t,null,o,n);t[0]=null;return!n.pop()}}),has:ef(function(e){return function(t){return eu(e,t).length>0}}),contains:ef(function(e){e=e.replace(er,ei);return function(t){return(t.textContent||i(t)).indexOf(e)>-1}}),lang:ef(function(e){if(!Y.test(e||""))eu.error("unsupported lang: "+e);e=e.replace(er,ei).toLowerCase();return function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang")){n=n.toLowerCase();return n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return false}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:eg(false),disabled:eg(true),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){if(e.parentNode)e.parentNode.selectedIndex;return true===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return false;return true},parent:function(e){return!r.pseudos["empty"](e)},header:function(e){return Z.test(e.nodeName)}
161,input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ev(function(){return[0]}),last:ev(function(e,t){return[t-1]}),eq:ev(function(e,t,n){return[n<0?n+t:n]}),even:ev(function(e,t){var n=0;for(;n<t;n+=2)e.push(n);return e}),odd:ev(function(e,t){var n=1;for(;n<t;n+=2)e.push(n);return e}),lt:ev(function(e,t,n){var r=n<0?n+t:n>t?t:n;for(;--r>=0;)e.push(r);return e}),gt:ev(function(e,t,n){var r=n<0?n+t:n;for(;++r<t;)e.push(r);return e})}};r.pseudos["nth"]=r.pseudos["eq"];for(t in{radio:true,checkbox:true,file:true,password:true,image:true})r.pseudos[t]=eh(t);for(t in{submit:true,reset:true})r.pseudos[t]=eb(t);function ew(){}ew.prototype=r.filters=r.pseudos;r.setFilters=new ew;a=eu.tokenize=function(e,t){var n,i,o,a,s,l,u,c=j[e+" "];if(c)return t?0:c.slice(0);s=e;l=[];u=r.preFilter;while(s){if(!n||(i=G.exec(s))){if(i)s=s.slice(i[0].length)||s;l.push(o=[])}n=false;if(i=q.exec(s)){n=i.shift();o.push({value:n,type:i[0].replace(W," ")});s=s.slice(n.length)}for(a in r.filter)if((i=X[a].exec(s))&&(!u[a]||(i=u[a](i)))){n=i.shift();o.push({value:n,type:a,matches:i});s=s.slice(n.length)}if(!n)break}return t?s.length:s?eu.error(e):j(e,l).slice(0)};function ek(e){var t=0,n=e.length,r="";for(;t<n;t++)r+=e[t].value;return r}function ex(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=T++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||a)return e(t,n,i);return false}:function(t,n,l){var u,c,f,d=[x,s];if(l){while(t=t[r])if(1===t.nodeType||a){if(e(t,n,l))return true}}else while(t=t[r])if(1===t.nodeType||a){f=t[w]||(t[w]={});c=f[t.uniqueID]||(f[t.uniqueID]={});if(i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[o])&&u[0]===x&&u[1]===s)return d[2]=u[2];c[o]=d;if(d[2]=e(t,n,l))return true}}return false}}function eT(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return false;return true}:e[0]}function eA(e,t,n){var r=0,i=t.length;for(;r<i;r++)eu(e,t[r],n);return n}function ej(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;s<l;s++)if(o=e[s]){if(!n||n(o,r,i)){a.push(o);if(u)t.push(s)}}return a}function eI(e,t,n,r,i,o){if(r&&!r[w])r=eI(r);if(i&&!i[w])i=eI(i,o);return ef(function(o,a,s,l){var u,c,f,d=[],m=[],p=a.length,h=o||eA(t||"*",s.nodeType?[s]:s,[]),b=e&&(o||!t)?ej(h,d,e,s,l):h,g=n?i||(o?e:p||r)?[]:a:b;if(n)n(b,g,s,l);if(r){u=ej(g,m);r(u,[],s,l);c=u.length;while(c--)if(f=u[c])g[m[c]]=!(b[m[c]]=f)}if(o){if(i||e){if(i){u=[];c=g.length;while(c--)if(f=g[c])u.push(b[c]=f);i(null,g=[],u,l)}c=g.length;while(c--)if((f=g[c])&&(u=i?M(o,f):d[c])>-1)o[u]=!(a[u]=f)}}else{g=ej(g===a?g.splice(p,g.length):g);if(i)i(null,a,g,l);else L.apply(a,g)}})}function eS(e){var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,c=ex(function(e){return e===t},s,true),f=ex(function(e){return M(t,e)>-1},s,true),d=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):f(e,n,r));t=null;return i}];for(;l<o;l++)if(n=r.relative[e[l].type])d=[ex(eT(d),n)];else{n=r.filter[e[l].type].apply(null,e[l].matches);if(n[w]){i=++l;for(;i<o&&!r.relative[e[i].type];i++);return eI(l>1&&eT(d),l>1&&ek(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<i&&eS(e.slice(l,i)),i<o&&eS(e=e.slice(i)),i<o&&ek(e))}d.push(n)}return eT(d)}function eD(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,l,c){var f,p,b,g=0,v="0",y=o&&[],w=[],k=u,T=o||i&&r.find["TAG"]("*",c),A=x+=null==k?1:Math.random()||.1,j=T.length;if(c)u=a==m||a||c;for(;v!==j&&null!=(f=T[v]);v++){if(i&&f){p=0;if(!a&&f.ownerDocument!=m){d(f);s=!h}while(b=e[p++])if(b(f,a||m,s)){l.push(f);break}if(c)x=A}if(n){if(f=!b&&f)g--;if(o)y.push(f)}}g+=v;if(n&&v!==g){p=0;while(b=t[p++])b(y,w,a,s);if(o){if(g>0){while(v--)if(!(y[v]||w[v]))w[v]=P.call(l)}w=ej(w)}L.apply(l,w);if(c&&!o&&w.length>0&&g+t.length>1)eu.uniqueSort(l)}if(c){x=A;u=k}return y};return n?ef(o):o}s=eu.compile=function(e,t){var n,r=[],i=[],o=I[e+" "];if(!o){if(!t)t=a(e);n=t.length;while(n--){o=eS(t[n]);if(o[w])r.push(o);else i.push(o)}o=I(e,eD(i,r));o.selector=e}return o};l=eu.select=function(e,t,n,i){var o,l,u,c,f,d="function"==typeof e&&e,m=!i&&a(e=d.selector||e);n=n||[];if(1===m.length){l=m[0]=m[0].slice(0);if(l.length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&h&&r.relative[l[1].type]){t=(r.find["ID"](u.matches[0].replace(er,ei),t)||[])[0];if(!t)return n;if(d)t=t.parentNode;e=e.slice(l.shift().value.length)}o=X["needsContext"].test(e)?0:l.length;while(o--){u=l[o];if(r.relative[c=u.type])break;
161if(f=r.find[c]){if(i=f(u.matches[0].replace(er,ei),en.test(l[0].type)&&ey(t.parentNode)||t)){l.splice(o,1);e=i.length&&ek(l);if(!e){L.apply(n,i);return n}break}}}}(d||s(e,m))(i,t,!h,n,!t||en.test(e)&&ey(t.parentNode)||t);return n};n.sortStable=w.split("").sort(D).join("")===w;n.detectDuplicates=!!f;d();n.sortDetached=ed(function(e){return 1&e.compareDocumentPosition(m.createElement("fieldset"))});if(!ed(function(e){e.innerHTML="<a href='#'></a>";return"#"===e.firstChild.getAttribute("href")}))em("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)});if(!n.attributes||!ed(function(e){e.innerHTML="<input/>";e.firstChild.setAttribute("value","");return""===e.firstChild.getAttribute("value")}))em("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue});if(!ed(function(e){return null==e.getAttribute("disabled")}))em(N,function(e,t,n){var r;if(!n)return true===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null});return eu}(e);x.find=A;x.expr=A.selectors;x.expr[":"]=x.expr.pseudos;x.uniqueSort=x.unique=A.uniqueSort;x.text=A.getText;x.isXMLDoc=A.isXML;x.contains=A.contains;x.escapeSelector=A.escape;var j=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r};var I=function(e,t){var n=[];for(;e;e=e.nextSibling)if(1===e.nodeType&&e!==t)n.push(e);return n};var S=x.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(e,t,n){if(h(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"!=typeof t)return x.grep(e,function(e){return s.call(t,e)>-1!==n});return x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];if(n)e=":not("+e+")";if(1===t.length&&1===r.nodeType)return x.find.matchesSelector(r,e)?[r]:[];return x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))};x.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<r;t++)if(x.contains(i[t],this))return true}));n=this.pushStack([]);for(t=0;t<r;t++)x.find(e,i[t],n);return r>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(E(this,e||[],false))},not:function(e){return this.pushStack(E(this,e||[],true))},is:function(e){return!!E(this,"string"==typeof e&&S.test(e)?x(e):e||[],false).length}});var P,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,L=x.fn.init=function(e,t,n){var r,i;if(!e)return this;n=n||P;if("string"==typeof e){r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e);if(r&&(r[1]||!t))if(r[1]){t=t instanceof x?t[0]:t;x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,true));if(O.test(r[1])&&x.isPlainObject(t))for(r in t)if(h(this[r]))this[r](t[r]);else this.attr(r,t[r]);return this}else{i=g.getElementById(r[2]);if(i){this[0]=i;this.length=1}return this}if(!t||t.jquery)return(t||n).find(e);return this.constructor(t).find(e)}if(e.nodeType){this[0]=e;this.length=1;return this}if(h(e))return void 0!==n.ready?n.ready(e):e(x);return x.makeArray(e,this)};L.prototype=x.fn;P=x(g);var C=/^(?:parents|prev(?:Until|All))/,M={children:true,contents:true,next:true,prev:true};x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;e<n;e++)if(x.contains(this,t[e]))return true})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&x(e);if(!S.test(e)){for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){o.push(n);break}}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(e){if(!e)return this[0]&&this[0].parentNode?this.first().prevAll().length:-1;if("string"==typeof e)return s.call(x(e),this[0]);return s.call(this,e.jquery?e[0]:e)},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function N(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return j(e,"parentNode")},parentsUntil:function(e,t,n){return j(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return j(e,"nextSibling")},prevAll:function(e){return j(e,"previousSibling")},nextUntil:function(e,t,n){return j(e,"nextSibling",n)},prevUntil:function(e,t,n){return j(e,"previousSibling",n)},siblings:function(e){return I((e.parentNode||{}).firstChild,e)},children:function(e){return I(e.firstChild)},contents:function(e){if(null!=e.contentDocument&&r(e.contentDocument))return e.contentDocument;if(D(e,"template"))e=e.content||e;
161return x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);if("Until"!==e.slice(-5))r=n;if(r&&"string"==typeof r)i=x.filter(r,i);if(this.length>1){if(!M[e])x.uniqueSort(i);if(C.test(e))i.reverse()}return this.pushStack(i)}});var V=/[^\x20\t\r\n\f]+/g;function U(e){var t={};x.each(e.match(V)||[],function(e,n){t[n]=true});return t}x.Callbacks=function(e){e="string"==typeof e?U(e):x.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){i=i||e.once;r=t=true;for(;a.length;s=-1){n=a.shift();while(++s<o.length)if(false===o[s].apply(n[0],n[1])&&e.stopOnFalse){s=o.length;n=false}}if(!e.memory)n=false;t=false;if(i)o=n?[]:""},u={add:function(){if(o){if(n&&!t){s=o.length-1;a.push(n)}(function t(n){x.each(n,function(n,r){if(h(r)){if(!e.unique||!u.has(r))o.push(r)}else if(r&&r.length&&"string"!==w(r))t(r)})})(arguments);if(n&&!t)l()}return this},remove:function(){x.each(arguments,function(e,t){var n;while((n=x.inArray(t,o,n))>-1){o.splice(n,1);if(n<=s)s--}});return this},has:function(e){return e?x.inArray(e,o)>-1:o.length>0},empty:function(){if(o)o=[];return this},disable:function(){i=a=[];o=n="";return this},disabled:function(){return!o},lock:function(){i=a=[];if(!n&&!t)o=n="";return this},locked:function(){return!!i},fireWith:function(e,n){if(!i){n=n||[];n=[e,n.slice?n.slice():n];a.push(n);if(!t)l()}return this},fire:function(){u.fireWith(this,arguments);return this},fired:function(){return!!r}};return u};function B(e){return e}function F(e){throw e}function H(e,t,n,r){var i;try{if(e&&h(i=e.promise))i.call(e).done(t).fail(n);else if(e&&h(i=e.then))i.call(e,t,n);else t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.extend({Deferred:function(t){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){o.done(arguments).fail(arguments);return this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(t){x.each(n,function(n,r){var i=h(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);if(e&&h(e.promise))e.promise().progress(t.notify).done(t.resolve).fail(t.reject);else t[r[0]+"With"](this,i?[e]:arguments)})});e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,l=arguments,u=function(){var e,u;if(t<o)return;e=r.apply(s,l);if(e===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then;if(h(u))if(i)u.call(e,a(o,n,B,i),a(o,n,F,i));else{o++;u.call(e,a(o,n,B,i),a(o,n,F,i),a(o,n,B,n.notifyWith))}else{if(r!==B){s=void 0;l=[e]}(i||n.resolveWith)(s,l)}},c=i?u:function(){try{u()}catch(e){if(x.Deferred.exceptionHook)x.Deferred.exceptionHook(e,c.stackTrace);if(t+1>=o){if(r!==F){s=void 0;l=[e]}n.rejectWith(s,l)}}};if(t)c();else{if(x.Deferred.getStackHook)c.stackTrace=x.Deferred.getStackHook();e.setTimeout(c)}}}return x.Deferred(function(e){n[0][3].add(a(0,e,h(i)?i:B,e.notifyWith));n[1][3].add(a(0,e,h(t)?t:B));n[2][3].add(a(0,e,h(r)?r:F))}).promise()},promise:function(e){return null!=e?x.extend(e,i):i}},o={};x.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add;if(s)a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock);a.add(t[3].fire);o[t[0]]=function(){o[t[0]+"With"](this===o?void 0:this,arguments);return this};o[t[0]+"With"]=a.fireWith});i.promise(o);if(t)t.call(o,o);return o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),a=x.Deferred(),s=function(e){return function(n){r[e]=this;o[e]=arguments.length>1?i.call(arguments):n;if(!--t)a.resolveWith(r,o)}};if(t<=1){H(e,a.done(s(n)).resolve,a.reject,!t);if("pending"===a.state()||h(o[n]&&o[n].then))return a.then()}while(n--)H(o[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,n){if(e.console&&e.console.warn&&t&&W.test(t.name))e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)};x.readyException=function(t){e.setTimeout(function(){throw t})};var G=x.Deferred();x.fn.ready=function(e){G.then(e).catch(function(e){x.readyException(e)});return this};x.extend({isReady:false,readyWait:1,ready:function(e){if(true===e?--x.readyWait:x.isReady)return;x.isReady=true;if(true!==e&&--x.readyWait>0)return;G.resolveWith(g,[x])}});x.ready.then=G.then;function q(){g.removeEventListener("DOMContentLoaded",q);e.removeEventListener("load",q);x.ready()}if("complete"!==g.readyState&&("loading"===g.readyState||g.documentElement.doScroll)){g.addEventListener("DOMContentLoaded",q);e.addEventListener("load",q)}else e.setTimeout(x.ready);var z=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;
161if("object"===w(n)){i=true;for(s in n)z(e,t,s,n[s],true,o,a)}else if(void 0!==r){i=true;if(!h(r))a=true;if(u)if(a){t.call(e,r);t=null}else{u=t;t=function(e,t,n){return u.call(x(e),n)}}if(t)for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)))}if(i)return e;if(u)return t.call(e);return l?t(e[0],n):o};var J=/^-ms-/,Y=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function K(e){return e.replace(J,"ms-").replace(Y,X)}var Q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Z(){this.expando=x.expando+Z.uid++}Z.uid=1;Z.prototype={cache:function(e){var t=e[this.expando];if(!t){t={};if(Q(e))if(e.nodeType)e[this.expando]=t;else Object.defineProperty(e,this.expando,{value:t,configurable:true})}return t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){if(void 0===t||t&&"string"==typeof t&&void 0===n)return this.get(e,t);this.set(e,t,n);return void 0!==n?n:t},remove:function(e,t){var n,r=e[this.expando];if(void 0===r)return;if(void 0!==t){if(Array.isArray(t))t=t.map(K);else{t=K(t);t=t in r?[t]:t.match(V)||[]}n=t.length;while(n--)delete r[t[n]]}if(void 0===t||x.isEmptyObject(r))if(e.nodeType)e[this.expando]=void 0;else delete e[this.expando]},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var ee=new Z;var et=new Z;var en=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,er=/[A-Z]/g;function ei(e){if("true"===e)return true;if("false"===e)return false;if("null"===e)return null;if(e===+e+"")return+e;if(en.test(e))return JSON.parse(e);return e}function eo(e,t,n){var r;if(void 0===n&&1===e.nodeType){r="data-"+t.replace(er,"-$&").toLowerCase();n=e.getAttribute(r);if("string"==typeof n){try{n=ei(n)}catch(e){}et.set(e,t,n)}else n=void 0}return n}x.extend({hasData:function(e){return et.hasData(e)||ee.hasData(e)},data:function(e,t,n){return et.access(e,t,n)},removeData:function(e,t){et.remove(e,t)},_data:function(e,t,n){return ee.access(e,t,n)},_removeData:function(e,t){ee.remove(e,t)}});x.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length){i=et.get(o);if(1===o.nodeType&&!ee.get(o,"hasDataAttrs")){n=a.length;while(n--)if(a[n]){r=a[n].name;if(0===r.indexOf("data-")){r=K(r.slice(5));eo(o,r,i[r])}}ee.set(o,"hasDataAttrs",true)}}return i}if("object"==typeof e)return this.each(function(){et.set(this,e)});return z(this,function(t){var n;if(o&&void 0===t){n=et.get(o,e);
161if(void 0!==n)return n;n=eo(o,e);if(void 0!==n)return n;return}this.each(function(){et.set(this,e,t)})},null,t,arguments.length>1,null,true)},removeData:function(e){return this.each(function(){et.remove(this,e)})}});x.extend({queue:function(e,t,n){var r;if(e){t=(t||"fx")+"queue";r=ee.get(e,t);if(n)if(!r||Array.isArray(n))r=ee.access(e,t,x.makeArray(n));else r.push(n);return r||[]}},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};if("inprogress"===i){i=n.shift();r--}if(i){if("fx"===t)n.unshift("inprogress");delete o.stop;i.call(e,a,o)}if(!r&&o)o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ee.get(e,n)||ee.access(e,n,{empty:x.Callbacks("once memory").add(function(){ee.remove(e,[t+"queue",n])})})}});x.fn.extend({queue:function(e,t){var n=2;if("string"!=typeof e){t=e;e="fx";n--}if(arguments.length<n)return x.queue(this[0],e);return void 0===t?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e);if("fx"===e&&"inprogress"!==n[0])x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,a=this.length,s=function(){if(!--r)i.resolveWith(o,[o])};if("string"!=typeof e){t=e;e=void 0}e=e||"fx";while(a--){n=ee.get(o[a],e+"queueHooks");if(n&&n.empty){r++;n.empty.add(s)}}s();return i.promise(t)}});var ea=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var es=new RegExp("^(?:([+-])=|)("+ea+")([a-z%]*)$","i");var el=["Top","Right","Bottom","Left"];var eu=g.documentElement;var ec=function(e){return x.contains(e.ownerDocument,e)},ef={composed:true};if(eu.getRootNode)ec=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(ef)===e.ownerDocument};var ed=function(e,t){e=t||e;return"none"===e.style.display||""===e.style.display&&ec(e)&&"none"===x.css(e,"display")};function em(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},l=s(),u=n&&n[3]||(x.cssNumber[t]?"":"px"),c=e.nodeType&&(x.cssNumber[t]||"px"!==u&&+l)&&es.exec(x.css(e,t));if(c&&c[3]!==u){l/=2;u=u||c[3];c=+l||1;while(a--){x.style(e,t,c+u);if((1-o)*(1-(o=s()/l||.5))<=0)a=0;c/=o}c*=2;x.style(e,t,c+u);n=n||[]}if(n){c=+c||+l||0;i=n[1]?c+(n[1]+1)*n[2]:+n[2];if(r){r.unit=u;r.start=c;r.end=i}}return i}var ep={};function eh(e){var t,n=e.ownerDocument,r=e.nodeName,i=ep[r];if(i)return i;t=n.body.appendChild(n.createElement(r));i=x.css(t,"display");t.parentNode.removeChild(t);if("none"===i)i="block";ep[r]=i;return i}function eb(e,t){var n,r,i=[],o=0,a=e.length;for(;o<a;o++){r=e[o];if(r.style){n=r.style.display;if(t){if("none"===n){i[o]=ee.get(r,"display")||null;if(!i[o])r.style.display=""}if(""===r.style.display&&ed(r))i[o]=eh(r)}else if("none"!==n){i[o]="none";ee.set(r,"display",n)}}}for(o=0;o<a;o++)if(null!=i[o])e[o].style.display=i[o];return e}x.fn.extend({show:function(){return eb(this,true)},hide:function(){return eb(this)},toggle:function(e){if("boolean"==typeof e)return e?this.show():this.hide();return this.each(function(){if(ed(this))x(this).show();else x(this).hide()})}});var eg=/^(?:checkbox|radio)$/i;var ev=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var ey=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=g.createDocumentFragment(),t=e.appendChild(g.createElement("div")),n=g.createElement("input");n.setAttribute("type","radio");n.setAttribute("checked","checked");n.setAttribute("name","t");t.appendChild(n);p.checkClone=t.cloneNode(true).cloneNode(true).lastChild.checked;t.innerHTML="<textarea>x</textarea>";p.noCloneChecked=!!t.cloneNode(true).lastChild.defaultValue;t.innerHTML="<option></option>";p.option=!!t.lastChild})();var ew={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ew.tbody=ew.tfoot=ew.colgroup=ew.caption=ew.thead;ew.th=ew.td;if(!p.option)ew.optgroup=ew.option=[1,"<select multiple='multiple'>","</select>"];function ek(e,t){var n;n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];
161if(void 0===t||t&&D(e,t))return x.merge([e],n);return n}function ex(e,t){var n=0,r=e.length;for(;n<r;n++)ee.set(e[n],"globalEval",!t||ee.get(t[n],"globalEval"))}var eT=/<|&#?\w+;/;function eA(e,t,n,r,i){var o,a,s,l,u,c,f=t.createDocumentFragment(),d=[],m=0,p=e.length;for(;m<p;m++){o=e[m];if(o||0===o)if("object"===w(o))x.merge(d,o.nodeType?[o]:o);else if(eT.test(o)){a=a||f.appendChild(t.createElement("div"));s=(ev.exec(o)||["",""])[1].toLowerCase();l=ew[s]||ew._default;a.innerHTML=l[1]+x.htmlPrefilter(o)+l[2];c=l[0];while(c--)a=a.lastChild;x.merge(d,a.childNodes);a=f.firstChild;a.textContent=""}else d.push(t.createTextNode(o))}f.textContent="";m=0;while(o=d[m++]){if(r&&x.inArray(o,r)>-1){if(i)i.push(o);continue}u=ec(o);a=ek(f.appendChild(o),"script");if(u)ex(a);if(n){c=0;while(o=a[c++])if(ey.test(o.type||""))n.push(o)}}return f}var ej=/^([^.]*)(?:\.(.+)|)/;function eI(){return true}function eS(){return false}function eD(e,t){return e===eO()===("focus"===t)}function eO(){try{return g.activeElement}catch(e){}}function eE(e,t,n,r,i,o){var a,s;if("object"==typeof t){if("string"!=typeof n){r=r||n;n=void 0}for(s in t)eE(e,s,n,r,t[s],o);return e}if(null==r&&null==i){i=n;r=n=void 0}else if(null==i)if("string"==typeof n){i=r;r=void 0}else{i=r;r=n;n=void 0}if(false===i)i=eS;else if(!i)return e;if(1===o){a=i;i=function(e){x().off(e);return a.apply(this,arguments)};i.guid=a.guid||(a.guid=x.guid++)}return e.each(function(){x.event.add(this,t,i,r,n)})}x.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,m,p,h,b=ee.get(e);if(!Q(e))return;if(n.handler){o=n;n=o.handler;i=o.selector}if(i)x.find.matchesSelector(eu,i);if(!n.guid)n.guid=x.guid++;if(!(l=b.events))l=b.events=Object.create(null);if(!(a=b.handle))a=b.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0};t=(t||"").match(V)||[""];u=t.length;while(u--){s=ej.exec(t[u])||[];m=h=s[1];p=(s[2]||"").split(".").sort();if(!m)continue;f=x.event.special[m]||{};m=(i?f.delegateType:f.bindType)||m;f=x.event.special[m]||{};c=x.extend({type:m,origType:h,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:p.join(".")},o);if(!(d=l[m])){d=l[m]=[];d.delegateCount=0;if(!f.setup||false===f.setup.call(e,r,p,a)){if(e.addEventListener)e.addEventListener(m,a)}}if(f.add){f.add.call(e,c);if(!c.handler.guid)c.handler.guid=n.guid}if(i)d.splice(d.delegateCount++,0,c);else d.push(c);x.event.global[m]=true}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,m,p,h,b=ee.hasData(e)&&ee.get(e);if(!b||!(l=b.events))return;t=(t||"").match(V)||[""];u=t.length;while(u--){s=ej.exec(t[u])||[];m=h=s[1];p=(s[2]||"").split(".").sort();if(!m){for(m in l)x.event.remove(e,m+t[u],n,r,true);continue}f=x.event.special[m]||{};m=(r?f.delegateType:f.bindType)||m;d=l[m]||[];s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)");a=o=d.length;while(o--){c=d[o];if((i||h===c.origType)&&(!n||n.guid===c.guid)&&(!s||s.test(c.namespace))&&(!r||r===c.selector||"**"===r&&c.selector)){d.splice(o,1);if(c.selector)d.delegateCount--;if(f.remove)f.remove.call(e,c)}}if(a&&!d.length){if(!f.teardown||false===f.teardown.call(e,p,b.handle))x.removeEvent(e,m,b.handle);delete l[m]}}if(x.isEmptyObject(l))ee.remove(e,"handle events")},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=x.event.fix(e),u=(ee.get(this,"events")||Object.create(null))[l.type]||[],c=x.event.special[l.type]||{};s[0]=l;for(t=1;t<arguments.length;t++)s[t]=arguments[t];l.delegateTarget=this;if(c.preDispatch&&false===c.preDispatch.call(this,l))return;a=x.event.handlers.call(this,l,u);t=0;while((i=a[t++])&&!l.isPropagationStopped()){l.currentTarget=i.elem;n=0;while((o=i.handlers[n++])&&!l.isImmediatePropagationStopped())if(!l.rnamespace||false===o.namespace||l.rnamespace.test(o.namespace)){l.handleObj=o;l.data=o.data;r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s);if(void 0!==r){if(false===(l.result=r)){l.preventDefault();l.stopPropagation()}}}}if(c.postDispatch)c.postDispatch.call(this,l);return l.result},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1)){for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&!("click"===e.type&&true===u.disabled)){o=[];a={};for(n=0;n<l;n++){r=t[n];i=r.selector+" ";
161if(void 0===a[i])a[i]=r.needsContext?x(i,this).index(u)>-1:x.find(i,this,null,[u]).length;if(a[i])o.push(r)}if(o.length)s.push({elem:u,handlers:o})}}u=this;if(l<t.length)s.push({elem:u,handlers:t.slice(l)});return s},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:true,configurable:true,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:true,configurable:true,writable:true,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:true},click:{setup:function(e){var t=this||e;if(eg.test(t.type)&&t.click&&D(t,"input"))eP(t,"click",eI);return false},trigger:function(e){var t=this||e;if(eg.test(t.type)&&t.click&&D(t,"input"))eP(t,"click");return true},_default:function(e){var t=e.target;return eg.test(t.type)&&t.click&&D(t,"input")&&ee.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){if(void 0!==e.result&&e.originalEvent)e.originalEvent.returnValue=e.result}}}};function eP(e,t,n){if(!n){if(void 0===ee.get(e,t))x.event.add(e,t,eI);return}ee.set(e,t,false);x.event.add(e,t,{namespace:false,handler:function(e){var r,o,a=ee.get(this,t);if(1&e.isTrigger&&this[t])if(a.length){if((x.event.special[t]||{}).delegateType)e.stopPropagation()}else{a=i.call(arguments);ee.set(this,t,a);r=n(this,t);this[t]();o=ee.get(this,t);if(a!==o||r)ee.set(this,t,false);else o={};if(a!==o){e.stopImmediatePropagation();e.preventDefault();return o&&o.value}}else if(a.length){ee.set(this,t,{value:x.event.trigger(x.extend(a[0],x.Event.prototype),a.slice(1),this)});e.stopImmediatePropagation()}}})}x.removeEvent=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n)};x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);if(e&&e.type){this.originalEvent=e;this.type=e.type;this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&false===e.returnValue?eI:eS;this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target;this.currentTarget=e.currentTarget;this.relatedTarget=e.relatedTarget}else this.type=e;if(t)x.extend(this,t);this.timeStamp=e&&e.timeStamp||Date.now();this[x.expando]=true};x.Event.prototype={constructor:x.Event,isDefaultPrevented:eS,isPropagationStopped:eS,isImmediatePropagationStopped:eS,isSimulated:false,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=eI;if(e&&!this.isSimulated)e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=eI;if(e&&!this.isSimulated)e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=eI;if(e&&!this.isSimulated)e.stopImmediatePropagation();this.stopPropagation()}};x.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,char:true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:true},x.event.addProp);x.each({focus:"focusin",blur:"focusout"},function(e,t){x.event.special[e]={setup:function(){eP(this,e,eD);return false},trigger:function(){eP(this,e);return true},_default:function(){return true},delegateType:t}});
161x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;if(!i||i!==r&&!x.contains(r,i)){e.type=o.origType;n=o.handler.apply(this,arguments);e.type=t}return n}}});x.fn.extend({on:function(e,t,n,r){return eE(this,e,t,n,r)},one:function(e,t,n,r){return eE(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj){r=e.handleObj;x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler);return this}if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}if(false===t||"function"==typeof t){n=t;t=void 0}if(false===n)n=eS;return this.each(function(){x.event.remove(this,e,n,t)})}});var eR=/<script|<style|<link/i,e_=/checked\s*(?:[^=]|=\s*.checked.)/i,eL=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function eC(e,t){if(D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr"))return x(e).children("tbody")[0]||e;return e}function eM(e){e.type=(null!==e.getAttribute("type"))+"/"+e.type;return e}function eN(e){if("true/"===(e.type||"").slice(0,5))e.type=e.type.slice(5);else e.removeAttribute("type");return e}function eV(e,t){var n,r,i,o,a,s,l;if(1!==t.nodeType)return;if(ee.hasData(e)){o=ee.get(e);l=o.events;if(l){ee.remove(t,"handle events");for(i in l)for(n=0,r=l[i].length;n<r;n++)x.event.add(t,i,l[i][n])}}if(et.hasData(e)){a=et.access(e);s=x.extend({},a);et.set(t,s)}}function eU(e,t){var n=t.nodeName.toLowerCase();if("input"===n&&eg.test(e.type))t.checked=e.checked;else if("input"===n||"textarea"===n)t.defaultValue=e.defaultValue}function eB(e,t,n,r){t=o(t);var i,a,s,l,u,c,f=0,d=e.length,m=d-1,b=t[0],g=h(b);if(g||d>1&&"string"==typeof b&&!p.checkClone&&e_.test(b))return e.each(function(i){var o=e.eq(i);if(g)t[0]=b.call(this,i,o.html());eB(o,t,n,r)});if(d){i=eA(t,e[0].ownerDocument,false,e,r);a=i.firstChild;if(1===i.childNodes.length)i=a;if(a||r){s=x.map(ek(i,"script"),eM);l=s.length;for(;f<d;f++){u=i;if(f!==m){u=x.clone(u,true,true);if(l)x.merge(s,ek(u,"script"))}n.call(e[f],u,f)}if(l){c=s[s.length-1].ownerDocument;x.map(s,eN);for(f=0;f<l;f++){u=s[f];if(ey.test(u.type||"")&&!ee.access(u,"globalEval")&&x.contains(c,u))if(u.src&&"module"!==(u.type||"").toLowerCase()){if(x._evalUrl&&!u.noModule)x._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c)}else y(u.textContent.replace(eL,""),u,c)}}}}return e}function eF(e,t,n){var r,i=t?x.filter(t,e):e,o=0;for(;null!=(r=i[o]);o++){if(!n&&1===r.nodeType)x.cleanData(ek(r));if(r.parentNode){if(n&&ec(r))ex(ek(r,"script"));r.parentNode.removeChild(r)}}return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(true),l=ec(e);if(!p.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!x.isXMLDoc(e)){a=ek(s);o=ek(e);for(r=0,i=o.length;r<i;r++)eU(o[r],a[r])}if(t)if(n){o=o||ek(e);a=a||ek(s);for(r=0,i=o.length;r<i;r++)eV(o[r],a[r])}else eV(e,s);a=ek(s,"script");if(a.length>0)ex(a,!l&&ek(e,"script"));return s},cleanData:function(e){var t,n,r,i=x.event.special,o=0;for(;void 0!==(n=e[o]);o++)if(Q(n)){if(t=n[ee.expando]){if(t.events)for(r in t.events)if(i[r])x.event.remove(n,r);else x.removeEvent(n,r,t.handle);n[ee.expando]=void 0}if(n[et.expando])n[et.expando]=void 0}}});x.fn.extend({detach:function(e){return eF(this,e,true)},remove:function(e){return eF(this,e)},text:function(e){return z(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){if(1===this.nodeType||11===this.nodeType||9===this.nodeType)this.textContent=e})},null,e,arguments.length)},append:function(){return eB(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eC(this,e);t.appendChild(e)}})},prepend:function(){return eB(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eC(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return eB(this,arguments,function(e){if(this.parentNode)this.parentNode.insertBefore(e,this)})},after:function(){return eB(this,arguments,function(e){if(this.parentNode)this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)if(1===e.nodeType){x.cleanData(ek(e,false));e.textContent=""}return this},clone:function(e,t){e=null==e?false:e;t=null==t?e:t;return this.map(function(){return x.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!eR.test(e)&&!ew[(ev.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++){t=this[n]||{};
161if(1===t.nodeType){x.cleanData(ek(t,false));t.innerHTML=e}}t=0}catch(e){}}if(t)this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return eB(this,arguments,function(t){var n=this.parentNode;if(x.inArray(this,e)<0){x.cleanData(ek(this));if(n)n.replaceChild(t,this)}},e)}});x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),o=i.length-1,s=0;for(;s<=o;s++){n=s===o?this:this.clone(true);x(i[s])[t](n);a.apply(r,n.get())}return this.pushStack(r)}});var eH=new RegExp("^("+ea+")(?!px)[a-z%]+$","i");var eW=function(t){var n=t.ownerDocument.defaultView;if(!n||!n.opener)n=e;return n.getComputedStyle(t)};var eG=function(e,t,n){var r,i,o={};for(i in t){o[i]=e.style[i];e.style[i]=t[i]}r=n.call(e);for(i in t)e.style[i]=o[i];return r};var eq=new RegExp(el.join("|"),"i");(function(){function t(){if(!c)return;u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";eu.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top;l=12===n(t.marginLeft);c.style.right="60%";a=36===n(t.right);i=36===n(t.width);c.style.position="absolute";o=12===n(c.offsetWidth/3);eu.removeChild(u);c=null}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,l,u=g.createElement("div"),c=g.createElement("div");if(!c.style)return;c.style.backgroundClip="content-box";c.cloneNode(true).style.backgroundClip="";p.clearCloneStyle="content-box"===c.style.backgroundClip;x.extend(p,{boxSizingReliable:function(){t();return i},pixelBoxStyles:function(){t();return a},pixelPosition:function(){t();return r},reliableMarginLeft:function(){t();return l},scrollboxSize:function(){t();return o},reliableTrDimensions:function(){var t,n,r,i;if(null==s){t=g.createElement("table");n=g.createElement("tr");r=g.createElement("div");t.style.cssText="position:absolute;left:-11111px;border-collapse:separate";n.style.cssText="border:1px solid";n.style.height="1px";r.style.height="9px";r.style.display="block";eu.appendChild(t).appendChild(n).appendChild(r);i=e.getComputedStyle(n);s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight;eu.removeChild(t)}return s}})})();function ez(e,t,n){var r,i,o,a,s=e.style;n=n||eW(e);if(n){a=n.getPropertyValue(t)||n[t];if(""===a&&!ec(e))a=x.style(e,t);if(!p.pixelBoxStyles()&&eH.test(a)&&eq.test(t)){r=s.width;i=s.minWidth;o=s.maxWidth;s.minWidth=s.maxWidth=s.width=a;a=n.width;s.width=r;s.minWidth=i;s.maxWidth=o}}return void 0!==a?a+"":a}function e$(e,t){return{get:function(){if(e())return void delete this.get;return(this.get=t).apply(this,arguments)}}}var eJ=["Webkit","Moz","ms"],eY=g.createElement("div").style,eX={};function eK(e){var t=e[0].toUpperCase()+e.slice(1),n=eJ.length;while(n--){e=eJ[n]+t;if(e in eY)return e}}function eQ(e){var t=x.cssProps[e]||eX[e];if(t)return t;if(e in eY)return e;return eX[e]=eK(e)||e}var eZ=/^(none|table(?!-c[ea]).+)/,e0=/^--/,e1={position:"absolute",visibility:"hidden",display:"block"},e2={letterSpacing:"0",fontWeight:"400"};function e5(e,t,n){var r=es.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function e3(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2){if("margin"===n)l+=x.css(e,n+el[a],true,i);if(r){if("content"===n)l-=x.css(e,"padding"+el[a],true,i);if("margin"!==n)l-=x.css(e,"border"+el[a]+"Width",true,i)}else{l+=x.css(e,"padding"+el[a],true,i);if("padding"!==n)l+=x.css(e,"border"+el[a]+"Width",true,i);else s+=x.css(e,"border"+el[a]+"Width",true,i)}}if(!r&&o>=0)l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0;return l}function e4(e,t,n){var r=eW(e),i=!p.boxSizingReliable()||n,o=i&&"border-box"===x.css(e,"boxSizing",false,r),a=o,s=ez(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(eH.test(s)){if(!n)return s;s="auto"}if((!p.boxSizingReliable()&&o||!p.reliableTrDimensions()&&D(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(e,"display",false,r))&&e.getClientRects().length){o="border-box"===x.css(e,"boxSizing",false,r);a=l in e;if(a)s=e[l]}s=parseFloat(s)||0;return s+e3(e,t,n||(o?"border":"content"),a,r,s)+"px"}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ez(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:true,columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{}
161,style:function(e,t,n,r){if(!e||3===e.nodeType||8===e.nodeType||!e.style)return;var i,o,a,s=K(t),l=e0.test(t),u=e.style;if(!l)t=eQ(s);a=x.cssHooks[t]||x.cssHooks[s];if(void 0!==n){o=typeof n;if("string"===o&&(i=es.exec(n))&&i[1]){n=em(e,t,i);o="number"}if(null==n||n!==n)return;if("number"===o&&!l)n+=i&&i[3]||(x.cssNumber[s]?"":"px");if(!p.clearCloneStyle&&""===n&&0===t.indexOf("background"))u[t]="inherit";if(!a||!("set"in a)||void 0!==(n=a.set(e,n,r)))if(l)u.setProperty(t,n);else u[t]=n}else{if(a&&"get"in a&&void 0!==(i=a.get(e,false,r)))return i;return u[t]}},css:function(e,t,n,r){var i,o,a,s=K(t),l=e0.test(t);if(!l)t=eQ(s);a=x.cssHooks[t]||x.cssHooks[s];if(a&&"get"in a)i=a.get(e,true,n);if(void 0===i)i=ez(e,t,r);if("normal"===i&&t in e2)i=e2[t];if(""===n||n){o=parseFloat(i);return true===n||isFinite(o)?o||0:i}return i}});x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!eZ.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?e4(e,t,r):eG(e,e1,function(){return e4(e,t,r)})},set:function(e,n,r){var i,o=eW(e),a=!p.scrollboxSize()&&"absolute"===o.position,s=a||r,l=s&&"border-box"===x.css(e,"boxSizing",false,o),u=r?e3(e,t,r,l,o):0;if(l&&a)u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-e3(e,t,"border",false,o)-.5);if(u&&(i=es.exec(n))&&"px"!==(i[3]||"px")){e.style[t]=n;n=x.css(e,t)}return e5(e,n,u)}}});x.cssHooks.marginLeft=e$(p.reliableMarginLeft,function(e,t){if(t)return(parseFloat(ez(e,"marginLeft"))||e.getBoundingClientRect().left-eG(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"});x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;r<4;r++)i[e+el[r]+t]=o[r]||o[r-2]||o[0];return i}};if("margin"!==e)x.cssHooks[e+t].set=e5});x.fn.extend({css:function(e,t){return z(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){r=eW(e);i=t.length;for(;a<i;a++)o[t[a]]=x.css(e,t[a],false,r);return o}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)}});function e9(e,t,n,r,i){return new e9.prototype.init(e,t,n,r,i)}x.Tween=e9;e9.prototype={constructor:e9,init:function(e,t,n,r,i,o){this.elem=e;this.prop=n;this.easing=i||x.easing._default;this.options=t;this.start=this.now=this.cur();this.end=r;this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=e9.propHooks[this.prop];return e&&e.get?e.get(this):e9.propHooks._default.get(this)},run:function(e){var t,n=e9.propHooks[this.prop];if(this.options.duration)this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration);else this.pos=t=e;this.now=(this.end-this.start)*t+this.start;if(this.options.step)this.options.step.call(this.elem,this.now,this);if(n&&n.set)n.set(this);else e9.propHooks._default.set(this);return this}};e9.prototype.init.prototype=e9.prototype;e9.propHooks={_default:{get:function(e){var t;if(1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop])return e.elem[e.prop];t=x.css(e.elem,e.prop,"");return t&&"auto"!==t?t:0},set:function(e){if(x.fx.step[e.prop])x.fx.step[e.prop](e);else if(1===e.elem.nodeType&&(x.cssHooks[e.prop]||null!=e.elem.style[eQ(e.prop)]))x.style(e.elem,e.prop,e.now+e.unit);else e.elem[e.prop]=e.now}}};e9.propHooks.scrollTop=e9.propHooks.scrollLeft={set:function(e){if(e.elem.nodeType&&e.elem.parentNode)e.elem[e.prop]=e.now}};x.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"};x.fx=e9.prototype.init;x.fx.step={};var e6,e7,e8=/^(?:toggle|show|hide)$/,te=/queueHooks$/;function tt(){if(e7){if(false===g.hidden&&e.requestAnimationFrame)e.requestAnimationFrame(tt);else e.setTimeout(tt,x.fx.interval);x.fx.tick()}}function tn(){e.setTimeout(function(){e6=void 0});return e6=Date.now()}function tr(e,t){var n,r=0,i={height:e};t=t?1:0;for(;r<4;r+=2-t){n=el[r];i["margin"+n]=i["padding"+n]=e}if(t)i.opacity=i.width=e;return i}function ti(e,t,n){var r,i=(ts.tweeners[t]||[]).concat(ts.tweeners["*"]),o=0,a=i.length;for(;o<a;o++)if(r=i[o].call(n,t,e))return r}function to(e,t,n){var r,i,o,a,s,l,u,c,f="width"in t||"height"in t,d=this,m={},p=e.style,h=e.nodeType&&ed(e),b=ee.get(e,"fxshow");if(!n.queue){a=x._queueHooks(e,"fx");
161if(null==a.unqueued){a.unqueued=0;s=a.empty.fire;a.empty.fire=function(){if(!a.unqueued)s()}}a.unqueued++;d.always(function(){d.always(function(){a.unqueued--;if(!x.queue(e,"fx").length)a.empty.fire()})})}for(r in t){i=t[r];if(e8.test(i)){delete t[r];o=o||"toggle"===i;if(i===(h?"hide":"show"))if("show"!==i||!b||void 0===b[r])continue;else h=true;m[r]=b&&b[r]||x.style(e,r)}}l=!x.isEmptyObject(t);if(!l&&x.isEmptyObject(m))return;if(f&&1===e.nodeType){n.overflow=[p.overflow,p.overflowX,p.overflowY];u=b&&b.display;if(null==u)u=ee.get(e,"display");c=x.css(e,"display");if("none"===c)if(u)c=u;else{eb([e],true);u=e.style.display||u;c=x.css(e,"display");eb([e])}if("inline"===c||"inline-block"===c&&null!=u){if("none"===x.css(e,"float")){if(!l){d.done(function(){p.display=u});if(null==u){c=p.display;u="none"===c?"":c}}p.display="inline-block"}}}if(n.overflow){p.overflow="hidden";d.always(function(){p.overflow=n.overflow[0];p.overflowX=n.overflow[1];p.overflowY=n.overflow[2]})}l=false;for(r in m){if(!l){if(b){if("hidden"in b)h=b.hidden}else b=ee.access(e,"fxshow",{display:u});if(o)b.hidden=!h;if(h)eb([e],true);d.done(function(){if(!h)eb([e]);ee.remove(e,"fxshow");for(r in m)x.style(e,r,m[r])})}l=ti(h?b[r]:0,r,d);if(!(r in b)){b[r]=l.start;if(h){l.end=l.start;l.start=0}}}}function ta(e,t){var n,r,i,o,a;for(n in e){r=K(n);i=t[r];o=e[n];if(Array.isArray(o)){i=o[1];o=e[n]=o[0]}if(n!==r){e[r]=o;delete e[n]}a=x.cssHooks[r];if(a&&"expand"in a){o=a.expand(o);delete e[r];for(n in o)if(!(n in e)){e[n]=o[n];t[n]=i}}else t[r]=i}}function ts(e,t,n){var r,i,o=0,a=ts.prefilters.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return false;var t=e6||tn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;a<l;a++)u.tweens[a].run(o);s.notifyWith(e,[u,o,n]);if(o<1&&l)return n;if(!l)s.notifyWith(e,[u,1,0]);s.resolveWith(e,[u]);return false},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(true,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:e6||tn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);u.tweens.push(r);return r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;i=true;for(;n<r;n++)u.tweens[n].run(1);if(t){s.notifyWith(e,[u,1,0]);s.resolveWith(e,[u,t])}else s.rejectWith(e,[u,t]);return this}}),c=u.props;ta(c,u.opts.specialEasing);for(;o<a;o++){r=ts.prefilters[o].call(u,e,c,u.opts);if(r){if(h(r.stop))x._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r);return r}}x.map(c,ti,u);if(h(u.opts.start))u.opts.start.call(e,u);u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always);x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue}));return u}x.Animation=x.extend(ts,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);em(n.elem,e,es.exec(t),n);return n}]},tweener:function(e,t){if(h(e)){t=e;e=["*"]}else e=e.match(V);var n,r=0,i=e.length;for(;r<i;r++){n=e[r];ts.tweeners[n]=ts.tweeners[n]||[];ts.tweeners[n].unshift(t)}},prefilters:[to],prefilter:function(e,t){if(t)ts.prefilters.unshift(e);else ts.prefilters.push(e)}});x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};if(x.fx.off)r.duration=0;else if("number"!=typeof r.duration)if(r.duration in x.fx.speeds)r.duration=x.fx.speeds[r.duration];else r.duration=x.fx.speeds._default;if(null==r.queue||true===r.queue)r.queue="fx";r.old=r.complete;r.complete=function(){if(h(r.old))r.old.call(this);if(r.queue)x.dequeue(this,r.queue)};return r};x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ed).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=ts(this,x.extend({},e),o);if(i||ee.get(this,"finish"))t.stop(true)};a.finish=a;return i||false===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop;t(n)};if("string"!=typeof e){n=t;t=e;e=void 0}if(t)this.queue(e||"fx",[]);return this.each(function(){var t=true,i=null!=e&&e+"queueHooks",o=x.timers,a=ee.get(this);if(i){if(a[i]&&a[i].stop)r(a[i])}else for(i in a)if(a[i]&&a[i].stop&&te.test(i))r(a[i]);for(i=o.length;i--;)if(o[i].elem===this&&(null==e||o[i].queue===e)){o[i].anim.stop(n);t=false;o.splice(i,1)}if(t||!n)x.dequeue(this,e)})},finish:function(e){if(false!==e)e=e||"fx";return this.each(function(){var t,n=ee.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;n.finish=true;x.queue(this,e,[]);if(i&&i.stop)i.stop.call(this,true);for(t=o.length;t--;)if(o[t].elem===this&&o[t].queue===e){o[t].anim.stop(true);o.splice(t,1)}for(t=0;t<a;t++)if(r[t]&&r[t].finish)r[t].finish.call(this);delete n.finish})}});x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(tr(t,true),e,r,i)}});x.each({slideDown:tr("show"),slideUp:tr("hide"),slideToggle:tr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}});x.timers=[];x.fx.tick=function(){var e,t=0,n=x.timers;e6=Date.now();for(;t<n.length;t++){e=n[t];if(!e()&&n[t]===e)n.splice(t--,1)}if(!n.length)x.fx.stop();e6=void 0};x.fx.timer=function(e){x.timers.push(e);x.fx.start()};x.fx.interval=13;x.fx.start=function(){if(e7)return;e7=true;tt()};x.fx.stop=function(){e7=null};x.fx.speeds={slow:600,fast:200,_default:400};x.fn.delay=function(t,n){t=x.fx?x.fx.speeds[t]||t:t;n=n||"fx";return this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})};(function(){var e=g.createElement("input"),t=g.createElement("select"),n=t.appendChild(g.createElement("option"));e.type="checkbox";p.checkOn=""!==e.value;p.optSelected=n.selected;e=g.createElement("input");e.value="t";e.type="radio";p.radioValue="t"===e.value})();var tl,tu=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return z(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}});
161x.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3===o||8===o||2===o)return;if(void 0===e.getAttribute)return x.prop(e,t,n);if(1!==o||!x.isXMLDoc(e))i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?tl:void 0);if(void 0!==n){if(null===n)return void x.removeAttr(e,t);if(i&&"set"in i&&void 0!==(r=i.set(e,n,t)))return r;e.setAttribute(t,n+"");return n}if(i&&"get"in i&&null!==(r=i.get(e,t)))return r;r=x.find.attr(e,t);return null==r?void 0:r},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;e.setAttribute("type",t);if(n)e.value=n;return t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(V);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}});tl={set:function(e,t,n){if(false===t)x.removeAttr(e,n);else e.setAttribute(n,n);return n}};x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=tu[t]||x.find.attr;tu[t]=function(e,t,r){var i,o,a=t.toLowerCase();if(!r){o=tu[a];tu[a]=i;i=null!=n(e,t,r)?a:null;tu[a]=o}return i}});var tc=/^(?:input|select|textarea|button)$/i,tf=/^(?:a|area)$/i;x.fn.extend({prop:function(e,t){return z(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}});x.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3===o||8===o||2===o)return;if(1!==o||!x.isXMLDoc(e)){t=x.propFix[t]||t;i=x.propHooks[t]}if(void 0!==n){if(i&&"set"in i&&void 0!==(r=i.set(e,n,t)))return r;return e[t]=n}if(i&&"get"in i&&null!==(r=i.get(e,t)))return r;return e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");if(t)return parseInt(t,10);if(tc.test(e.nodeName)||tf.test(e.nodeName)&&e.href)return 0;return -1}}},propFix:{for:"htmlFor",class:"className"}});if(!p.optSelected)x.propHooks.selected={get:function(e){var t=e.parentNode;if(t&&t.parentNode)t.parentNode.selectedIndex;return null},set:function(e){var t=e.parentNode;if(t){t.selectedIndex;if(t.parentNode)t.parentNode.selectedIndex}}};x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this});function td(e){var t=e.match(V)||[];return t.join(" ")}function tm(e){return e.getAttribute&&e.getAttribute("class")||""}function tp(e){if(Array.isArray(e))return e;if("string"==typeof e)return e.match(V)||[];return[]}x.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(h(e))return this.each(function(t){x(this).addClass(e.call(this,t,tm(this)))});t=tp(e);if(t.length)while(n=this[l++]){i=tm(n);r=1===n.nodeType&&" "+td(i)+" ";if(r){a=0;while(o=t[a++])if(r.indexOf(" "+o+" ")<0)r+=o+" ";s=td(r);if(i!==s)n.setAttribute("class",s)}}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(h(e))return this.each(function(t){x(this).removeClass(e.call(this,t,tm(this)))});if(!arguments.length)return this.attr("class","");t=tp(e);if(t.length)while(n=this[l++]){i=tm(n);r=1===n.nodeType&&" "+td(i)+" ";if(r){a=0;while(o=t[a++])while(r.indexOf(" "+o+" ")>-1)r=r.replace(" "+o+" "," ");s=td(r);if(i!==s)n.setAttribute("class",s)}}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);if("boolean"==typeof t&&r)return t?this.addClass(e):this.removeClass(e);if(h(e))return this.each(function(n){x(this).toggleClass(e.call(this,n,tm(this),t),t)});return this.each(function(){var t,i,o,a;if(r){i=0;o=x(this);a=tp(e);while(t=a[i++])if(o.hasClass(t))o.removeClass(t);else o.addClass(t)}else if(void 0===e||"boolean"===n){t=tm(this);if(t)ee.set(this,"__className__",t);if(this.setAttribute)this.setAttribute("class",t||false===e?"":ee.get(this,"__className__")||"")}})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&(" "+td(tm(n))+" ").indexOf(t)>-1)return true;return false}});var th=/\r/g;x.fn.extend({val:function(e){var t,n,r,i=this[0];if(!arguments.length){if(i){t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()];if(t&&"get"in t&&void 0!==(n=t.get(i,"value")))return n;n=i.value;if("string"==typeof n)return n.replace(th,"");return null==n?"":n}return}r=h(e);return this.each(function(n){var i;if(1!==this.nodeType)return;i=r?e.call(this,n,x(this).val()):e;if(null==i)i="";else if("number"==typeof i)i+="";else if(Array.isArray(i))i=x.map(i,function(e){return null==e?"":e+""});t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||void 0===t.set(this,i,"value"))this.value=i})}});x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:td(x.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;r=o<0?l:a?o:0;for(;r<l;r++){n=i[r];if((n.selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){t=x(n).val();if(a)return t;s.push(t)}}return s},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--){r=i[a];if(r.selected=x.inArray(x.valHooks.option.get(r),o)>-1)n=true}if(!n)e.selectedIndex=-1;return o}}}});x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}};if(!p.checkOn)x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value}});p.focusin="onfocusin"in e;var tb=/^(?:focusinfocus|focusoutblur)$/,tg=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,n,r,i){var o,a,s,l,u,f,d,m,p=[r||g],v=c.call(t,"type")?t.type:t,y=c.call(t,"namespace")?t.namespace.split("."):[];a=m=s=r=r||g;
161if(3===r.nodeType||8===r.nodeType)return;if(tb.test(v+x.event.triggered))return;if(v.indexOf(".")>-1){y=v.split(".");v=y.shift();y.sort()}u=v.indexOf(":")<0&&"on"+v;t=t[x.expando]?t:new x.Event(v,"object"==typeof t&&t);t.isTrigger=i?2:3;t.namespace=y.join(".");t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;t.result=void 0;if(!t.target)t.target=r;n=null==n?[t]:x.makeArray(n,[t]);d=x.event.special[v]||{};if(!i&&d.trigger&&false===d.trigger.apply(r,n))return;if(!i&&!d.noBubble&&!b(r)){l=d.delegateType||v;if(!tb.test(l+v))a=a.parentNode;for(;a;a=a.parentNode){p.push(a);s=a}if(s===(r.ownerDocument||g))p.push(s.defaultView||s.parentWindow||e)}o=0;while((a=p[o++])&&!t.isPropagationStopped()){m=a;t.type=o>1?l:d.bindType||v;f=(ee.get(a,"events")||Object.create(null))[t.type]&&ee.get(a,"handle");if(f)f.apply(a,n);f=u&&a[u];if(f&&f.apply&&Q(a)){t.result=f.apply(a,n);if(false===t.result)t.preventDefault()}}t.type=v;if(!i&&!t.isDefaultPrevented()){if((!d._default||false===d._default.apply(p.pop(),n))&&Q(r)){if(u&&h(r[v])&&!b(r)){s=r[u];if(s)r[u]=null;x.event.triggered=v;if(t.isPropagationStopped())m.addEventListener(v,tg);r[v]();if(t.isPropagationStopped())m.removeEventListener(v,tg);x.event.triggered=void 0;if(s)r[u]=s}}}return t.result},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:true});x.event.trigger(r,null,t)}});x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,true)}});if(!p.focusin)x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=ee.access(r,t);if(!i)r.addEventListener(e,n,true);ee.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=ee.access(r,t)-1;if(i)ee.access(r,t,i);else{r.removeEventListener(e,n,true);ee.remove(r,t)}}}});var tv=e.location;var ty={guid:Date.now()};var tw=/\?/;x.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=new e.DOMParser().parseFromString(t,"text/xml")}catch(e){}r=n&&n.getElementsByTagName("parsererror")[0];if(!n||r)x.error("Invalid XML: "+(r?x.map(r.childNodes,function(e){return e.textContent}).join("\n"):t));return n};var tk=/\[\]$/,tx=/\r?\n/g,tT=/^(?:submit|button|image|reset|file)$/i,tA=/^(?:input|select|textarea|keygen)/i;function tj(e,t,n,r){var i;if(Array.isArray(t))x.each(t,function(t,i){if(n||tk.test(e))r(e,i);else tj(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==w(t))r(e,t);else for(i in t)tj(e+"["+i+"]",t[i],n,r)}x.param=function(e,t){var n,r=[],i=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){i(this.name,this.value)});else for(n in e)tj(n,e[n],t,i);return r.join("&")};x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&tA.test(this.nodeName)&&!tT.test(e)&&(this.checked||!eg.test(e))}).map(function(e,t){var n=x(this).val();if(null==n)return null;if(Array.isArray(n))return x.map(n,function(e){return{name:t.name,value:e.replace(tx,"\r\n")}});return{name:t.name,value:n.replace(tx,"\r\n")}}).get()}});var tI=/%20/g,tS=/#.*$/,tD=/([?&])_=[^&]*/,tO=/^(.*?):[ \t]*([^\r\n]*)$/mg,tE=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,tP=/^(?:GET|HEAD)$/,tR=/^\/\//,t_={},tL={},tC="*/".concat("*"),tM=g.createElement("a");tM.href=tv.href;function tN(e){return function(t,n){if("string"!=typeof t){n=t;t="*"}var r,i=0,o=t.toLowerCase().match(V)||[];if(h(n))while(r=o[i++])if("+"===r[0]){r=r.slice(1)||"*";(e[r]=e[r]||[]).unshift(n)}else(e[r]=e[r]||[]).push(n)}}function tV(e,t,n,r){var i={},o=e===tL;function a(s){var l;i[s]=true;x.each(e[s]||[],function(e,s){var u=s(t,n,r);if("string"!=typeof u||o||i[u]){if(o)return!(l=u)}else{t.dataTypes.unshift(u);a(u);return false}});return l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function tU(e,t){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in t)if(void 0!==t[n])(i[n]?e:r||(r={}))[n]=t[n];if(r)x.extend(true,e,r);return e}function tB(e,t,n){var r,i,o,a,s=e.contents,l=e.dataTypes;while("*"===l[0]){l.shift();if(void 0===r)r=e.mimeType||t.getResponseHeader("Content-Type")}if(r){for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}if(!a)a=i}o=o||a}if(o){if(o!==l[0])l.unshift(o);return n[o]}}function tF(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o){if(e.responseFields[o])n[e.responseFields[o]]=t;if(!l&&r&&e.dataFilter)t=e.dataFilter(t,e.dataType);l=o;o=c.shift();if(o){if("*"===o)o=l;else if("*"!==l&&l!==o){a=u[l+" "+o]||u["* "+o];if(!a)for(i in u){s=i.split(" ");if(s[1]===o){a=u[l+" "+s[0]]||u["* "+s[0]];if(a){if(true===a)a=u[i];else if(true!==u[i]){o=s[0];c.unshift(s[1])}break}}}if(true!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}}}return{state:"success",data:t}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:tv.href,type:"GET",isLocal:tE.test(tv.protocol),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tC,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":true,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(e,t){return t?tU(tU(e,x.ajaxSettings),t):tU(x.ajaxSettings,e)},ajaxPrefilter:tN(t_),ajaxTransport:tN(tL),ajax:function(t,n){if("object"==typeof t){n=t;t=void 0}n=n||{};var r,i,o,a,s,l,u,c,f,d,m=x.ajaxSetup({},n),p=m.context||m,h=m.context&&(p.nodeType||p.jquery)?x(p):x.event,b=x.Deferred(),v=x.Callbacks("once memory"),y=m.statusCode||{},w={},k={},T="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a){a={};while(t=tO.exec(o))a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){if(null==u){e=k[e.toLowerCase()]=k[e.toLowerCase()]||e;w[e]=t}return this},overrideMimeType:function(e){if(null==u)m.mimeType=e;return this},statusCode:function(e){var t;if(e)if(u)A.always(e[A.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||T;if(r)r.abort(t);j(0,t);return this}};b.promise(A);m.url=((t||m.url||tv.href)+"").replace(tR,tv.protocol+"//");m.type=n.method||n.type||m.method||m.type;m.dataTypes=(m.dataType||"*").toLowerCase().match(V)||[""];if(null==m.crossDomain){l=g.createElement("a");try{l.href=m.url;l.href=l.href;m.crossDomain=tM.protocol+"//"+tM.host!==l.protocol+"//"+l.host}catch(e){m.crossDomain=true}}if(m.data&&m.processData&&"string"!=typeof m.data)m.data=x.param(m.data,m.traditional);tV(t_,m,n,A);if(u)return A;c=x.event&&m.global;if(c&&0===x.active++)x.event.trigger("ajaxStart");m.type=m.type.toUpperCase();m.hasContent=!tP.test(m.type);i=m.url.replace(tS,"");if(m.hasContent){if(m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded"))m.data=m.data.replace(tI,"+")}else{d=m.url.slice(i.length);if(m.data&&(m.processData||"string"==typeof m.data)){i+=(tw.test(i)?"&":"?")+m.data;delete m.data}if(false===m.cache){i=i.replace(tD,"$1");d=(tw.test(i)?"&":"?")+"_="+ty.guid+++d}m.url=i+d}if(m.ifModified){if(x.lastModified[i])A.setRequestHeader("If-Modified-Since",x.lastModified[i]);if(x.etag[i])A.setRequestHeader("If-None-Match",x.etag[i])}if(m.data&&m.hasContent&&false!==m.contentType||n.contentType)A.setRequestHeader("Content-Type",m.contentType);A.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+tC+"; q=0.01":""):m.accepts["*"]);for(f in m.headers)A.setRequestHeader(f,m.headers[f]);
161if(m.beforeSend&&(false===m.beforeSend.call(p,A,m)||u))return A.abort();T="abort";v.add(m.complete);A.done(m.success);A.fail(m.error);r=tV(tL,m,n,A);if(r){A.readyState=1;if(c)h.trigger("ajaxSend",[A,m]);if(u)return A;if(m.async&&m.timeout>0)s=e.setTimeout(function(){A.abort("timeout")},m.timeout);try{u=false;r.send(w,j)}catch(e){if(u)throw e;j(-1,e)}}else j(-1,"No Transport");function j(t,n,a,l){var f,d,g,w,k,T=n;if(u)return;u=true;if(s)e.clearTimeout(s);r=void 0;o=l||"";A.readyState=t>0?4:0;f=t>=200&&t<300||304===t;if(a)w=tB(m,A,a);if(!f&&x.inArray("script",m.dataTypes)>-1&&x.inArray("json",m.dataTypes)<0)m.converters["text script"]=function(){};w=tF(m,w,A,f);if(f){if(m.ifModified){k=A.getResponseHeader("Last-Modified");if(k)x.lastModified[i]=k;k=A.getResponseHeader("etag");if(k)x.etag[i]=k}if(204===t||"HEAD"===m.type)T="nocontent";else if(304===t)T="notmodified";else{T=w.state;d=w.data;g=w.error;f=!g}}else{g=T;if(t||!T){T="error";if(t<0)t=0}}A.status=t;A.statusText=(n||T)+"";if(f)b.resolveWith(p,[d,T,A]);else b.rejectWith(p,[A,T,g]);A.statusCode(y);y=void 0;if(c)h.trigger(f?"ajaxSuccess":"ajaxError",[A,m,f?d:g]);v.fireWith(p,[A,T]);if(c){h.trigger("ajaxComplete",[A,m]);if(!--x.active)x.event.trigger("ajaxStop")}}return A},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}});x.each(["get","post"],function(e,t){x[t]=function(e,n,r,i){if(h(n)){i=i||r;r=n;n=void 0}return x.ajax(x.extend({url:e,type:t,dataType:i,data:n,success:r},x.isPlainObject(e)&&e))}});x.ajaxPrefilter(function(e){var t;for(t in e.headers)if("content-type"===t.toLowerCase())e.contentType=e.headers[t]||""});x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:true,async:false,global:false,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})};x.fn.extend({wrapAll:function(e){var t;if(this[0]){if(h(e))e=e.call(this[0]);t=x(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode)t.insertBefore(this[0]);t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)}return this},wrapInner:function(e){if(h(e))return this.each(function(t){x(this).wrapInner(e.call(this,t))});return this.each(function(){var t=x(this),n=t.contents();if(n.length)n.wrapAll(e);else t.append(e)})},wrap:function(e){var t=h(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)});return this}});x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)};x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var tH={0:200,1223:204},tW=x.ajaxSettings.xhr();p.cors=!!tW&&"withCredentials"in tW;p.ajax=tW=!!tW;x.ajaxTransport(function(t){var n,r;if(p.cors||tW&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();s.open(t.type,t.url,t.async,t.username,t.password);if(t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];if(t.mimeType&&s.overrideMimeType)s.overrideMimeType(t.mimeType);if(!t.crossDomain&&!i["X-Requested-With"])i["X-Requested-With"]="XMLHttpRequest";for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){if(n){n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null;if("abort"===e)s.abort();else if("error"===e)"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText);else o(tH[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders())}}};s.onload=n();r=s.onerror=s.ontimeout=n("error");
161if(void 0!==s.onabort)s.onabort=r;else s.onreadystatechange=function(){if(4===s.readyState)e.setTimeout(function(){if(n)r()})};n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){if(n)n()}}});x.ajaxPrefilter(function(e){if(e.crossDomain)e.contents.script=false});x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){x.globalEval(e);return e}}});x.ajaxPrefilter("script",function(e){if(void 0===e.cache)e.cache=false;if(e.crossDomain)e.type="GET"});x.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,i){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove();n=null;if(e)i("error"===e.type?404:200,e.type)});g.head.appendChild(t[0])},abort:function(){if(n)n()}}}});var tG=[],tq=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tG.pop()||x.expando+"_"+ty.guid++;this[e]=true;return e}});x.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=false!==t.jsonp&&(tq.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tq.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0]){i=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback;if(s)t[s]=t[s].replace(tq,"$1"+i);else if(false!==t.jsonp)t.url+=(tw.test(t.url)?"&":"?")+t.jsonp+"="+i;t.converters["script json"]=function(){if(!a)x.error(i+" was not called");return a[0]};t.dataTypes[0]="json";o=e[i];e[i]=function(){a=arguments};r.always(function(){if(void 0===o)x(e).removeProp(i);else e[i]=o;if(t[i]){t.jsonpCallback=n.jsonpCallback;tG.push(i)}
161if(a&&h(o))o(a[0]);a=o=void 0});return"script"}});p.createHTMLDocument=function(){var e=g.implementation.createHTMLDocument("").body;e.innerHTML="<form></form><form></form>";return 2===e.childNodes.length}();x.parseHTML=function(e,t,n){if("string"!=typeof e)return[];if("boolean"==typeof t){n=t;t=false}var r,i,o;if(!t)if(p.createHTMLDocument){t=g.implementation.createHTMLDocument("");r=t.createElement("base");r.href=g.location.href;t.head.appendChild(r)}else t=g;i=O.exec(e);o=!n&&[];if(i)return[t.createElement(i[1])];i=eA([e],t,o);if(o&&o.length)x(o).remove();return x.merge([],i.childNodes)};x.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");if(s>-1){r=td(e.slice(s));e=e.slice(0,s)}if(h(t)){n=t;t=void 0}else if(t&&"object"==typeof t)i="POST";if(a.length>0)x.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments;a.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})});return this};x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length};x.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u,c=x.css(e,"position"),f=x(e),d={};if("static"===c)e.style.position="relative";s=f.offset();
161o=x.css(e,"top");l=x.css(e,"left");u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1;if(u){r=f.position();a=r.top;i=r.left}else{a=parseFloat(o)||0;i=parseFloat(l)||0}if(h(t))t=t.call(e,n,x.extend({},s));if(null!=t.top)d.top=t.top-s.top+a;if(null!=t.left)d.left=t.left-s.left+i;if("using"in t)t.using.call(e,d);else f.css(d)}};x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,r=this[0];if(!r)return;if(!r.getClientRects().length)return{top:0,left:0};t=r.getBoundingClientRect();n=r.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},position:function(){if(!this[0])return;var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset();n=r.ownerDocument;e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position"))e=e.parentNode;if(e&&e!==r&&1===e.nodeType){i=x(e).offset();i.top+=x.css(e,"borderTopWidth",true);i.left+=x.css(e,"borderLeftWidth",true)}}return{top:t.top-i.top-x.css(r,"marginTop",true),left:t.left-i.left-x.css(r,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===x.css(e,"position"))e=e.offsetParent;return e||eu})}});x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return z(this,function(e,r,i){var o;if(b(e))o=e;else if(9===e.nodeType)o=e.defaultView;if(void 0===i)return o?o[t]:e[r];if(o)o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset);else e[r]=i},e,r,arguments.length)}});x.each(["top","left"],function(e,t){x.cssHooks[t]=e$(p.pixelPosition,function(e,n){if(n){n=ez(e,t);return eH.test(n)?x(e).position()[t]+"px":n}})});x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){x.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(true===i||true===o?"margin":"border");return z(this,function(t,n,i){var o;if(b(t))return 0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e];if(9===t.nodeType){o=t.documentElement;return Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])}return void 0===i?x.css(t,n,s):x.style(t,n,i,s)},t,a?i:void 0,a)}})});x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}});x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var tz=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,r,o;if("string"==typeof t){n=e[t];t=e;e=n}if(!h(e))return;r=i.call(arguments,2);o=function(){return e.apply(t||this,r.concat(i.call(arguments)))};o.guid=e.guid=e.guid||x.guid++;return o};x.holdReady=function(e){if(e)x.readyWait++;else x.ready(true)};x.isArray=Array.isArray;x.parseJSON=JSON.parse;x.nodeName=D;x.isFunction=h;x.isWindow=b;x.camelCase=K;x.type=w;x.now=Date.now;x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))};x.trim=function(e){return null==e?"":(e+"").replace(tz,"")};if("function"==typeof define&&define.amd)define("jquery",[],function(){return x});var t$=e.jQuery,tJ=e.$;x.noConflict=function(t){if(e.$===x)e.$=tJ;if(t&&e.jQuery===x)e.jQuery=t$;return x};if(void 0===t)e.jQuery=e.$=x;return x})}}}}}}}},{extensions:[".js",".json",".html",".less"]});return{export:function(){return{Router:a}},require:y,eagerModulePaths:["/node_modules/meteor/davidfm:core/client/main.js"],mainModulePath:"/node_modules/meteor/davidfm:core/client/main.js"}});
162
163Package["core-runtime"].queue("ouispeak:brand",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var a=Package["templating-runtime"].Template;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var n=Package.blaze.Blaze;Package.blaze.UI;Package.blaze.Handlebars;var o=Package.spacebars.Spacebars;var t=Package.htmljs.HTML;var i=e({node_modules:{meteor:{"ouispeak:brand":{client:{
163"loading.js":function(e,a,n){var o;n.link("meteor/templating",{Template:function(e){o=e}},0);n.link("./loading.html");o.appLoading.helpers({osLoadingLabel:function(){if("undefined"!=typeof dfm&&dfm.trans)return dfm.trans("loading");return"Loading"}})},
163"loading.html":function(e,a,n){n.link("./template.loading.js",{"*":"*+"})},
163"template.loading.js":function(){a.__checkName("appLoading");a["appLoading"]=new a("Template.appLoading",function(){var e=this;return t.DIV({id:"app-loading"},"\n    ",t.SPAN({class:"app-loading__bubble",role:"status"},n.View("lookup:osLoadingLabel",function(){return o.mustache(e.lookup("osLoadingLabel"))})),"\n  ")})}}}}}},{extensions:[".js",".json",".less",".html"]});return{require:i,eagerModulePaths:["/node_modules/meteor/ouispeak:brand/client/loading.js"],mainModulePath:"/node_modules/meteor/ouispeak:brand/client/loading.js"}});
164
165Package["core-runtime"].queue("ouispeak:core",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t=Package["templating-runtime"].Template;Package.mongo.Mongo;Package.mongo.CollectionExtensions;Package["vlasky:galvanized-iron-router"].Iron;var n=Package["vlasky:galvanized-iron-router"].Router;Package["vlasky:galvanized-iron-router"].RouteController;var a=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var o=Package.promise.Promise;var r=Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var s=Package.blaze.Blaze;Package.blaze.UI;Package.blaze.Handlebars;var i=Package.spacebars.Spacebars;var c=Package.htmljs.HTML;var l=a({node_modules:{meteor:{"ouispeak:core":{client:{
165"main.js":function(e,n,a){a.link("../imports/lib/helpers.js");a.link("../imports/api/languages/lib/routes.js");a.link("./main.less");globalThis.app=globalThis.app||{};app.isOuispeakIo=function(){return"ouispeak.io"===dfm.getHostname()||dfm.isLocalhost()&&"ouispeak.io"===app.testHostname};t.registerHelper("isOuispeakIo",function(){return app.isOuispeakIo()});t.registerHelper("isSupport",function(e){if("string"!=typeof e)e=void 0;return OUispeak.isSupport(e)})},
165"main.less":function(e,t,n){n.exports=e("meteor/modules").addStyles(".toast-container.bottom-end{bottom:10px;right:100px}.toast-container.bottom-end.ouichat-open-docked{right:400px}")}},imports:{api:{languages:{client:{admin:{
165"languages.html":function(e,t,n){n.link("./template.languages.js",{"*":"*+"})},
165"template.languages.js":function(){t.__checkName("appAdminLanguages");t["appAdminLanguages"]=new t("Template.appAdminLanguages",function(){var e=this;return c.DIV({id:"admin-languages",class:"container-fluid"},c.Raw('\n        <h1>Languages</h1>\n\n        <div><a href="https://fr.wikipedia.org/wiki/%C3%89tiquette_d%27identification_de_langues_IETF" target="_blank">BCP-47</a></div>\n        <div><a href="https://fr.wikipedia.org/wiki/Liste_des_codes_ISO_639-1" target="_blank">ISO 639-1</a> <a href="https://fr.wikipedia.org/wiki/Liste_des_codes_ISO_639-3" target="_blank">ISO 639-3</a></div>\n        <div class="mb-4"><a href="https://www.andiamo.co.uk/resources/iso-language-codes/" target="_blank">www.andiamo.co.uk/resources/iso-language-codes</a> (code + region)</div>\n\n        <form id="language-add" class="mb-3">\n            <div class="row">\n                <div class="col">\n                    <input name="code" class="form-control" placeholder="code">\n                </div>\n                <div class="col">\n                    <button class="btn btn-primary" type="submit">add a language</button>\n                </div>\n            </div>\n        </form>\n        '),c.DIV({class:"card mt-5"},c.Raw('\n            <div class="card-header bg-primary text-white"> Languages <a class="ms-3 clickable btn btn-xs btn-secondary js-sort-alphabetically">sort alphabetically</a></div>\n            '),c.DIV({class:"card-body"},"\n                ",c.TABLE({class:"table table-bordered table-hover"},"\n                    ",c.THEAD({class:"sticky-header"},"\n                        ",c.TR(c.Raw('\n                            <th colspan="1"></th>\n                            <th colspan="1"></th>\n                            <th colspan="1"></th>\n                            <th colspan="4"></th>\n                            <th colspan="6"></th>\n                            <th colspan="2" class="text-center">interface</th>\n                            <th></th>\n                        ')),"\n                        ",c.TR(c.Raw('\n                            <th class="text-center">code</th>\n                            <th>ISO 639-1</th>\n                            <th>ISO 639-3</th>\n                            <th>BCP 47</th>\n                            <th>STT provider</th>\n                            <th>TTS provider</th>\n                            <th>BCP 47 Chirp3</th>\n                            <th>Chirp 3</th>\n                            <th>google font</th>\n                            <th width="130" class="text-center">direction</th>\n                            <th>detected?</th>\n                            <th>text to translate</th>\n                            <th>flag</th>\n                            <th>primary</th>\n                            <th class="text-center" title="conference, room, customer"><small>conference.ouispeak.io</small></th>\n                            <th class="text-center"><small>ouispeak.io</small></th>\n                            <th width="100"></th>\n                        ')),"\n                    "),"\n                    ",c.TBODY({class:"sortable"},"\n                        ",s.Each(function(){return i.call(e.lookup("getLanguages"))},function(){return["\n                            ",s.If(function(){return i.call(e.lookup("isEditingLanguage"))},function(){return["\n                                ",i.include(e.lookupTemplate("appAdminLanguagesEdit")),"\n                            "]},function(){return["\n                                ",c.TR({title:function(){return i.mustache(e.lookup("JSONstringify"),e.lookup("."))},"data-id":function(){return i.mustache(e.lookup("_id"))}},"\n                                    ",c.TD({class:"text-center"},s.View("lookup:code",function(){return i.mustache(e.lookup("code"))})),"\n                                    ",c.TD(s.View("lookup:iso639_1",function(){return i.mustache(e.lookup("iso639_1"))})),"\n                                    ",c.TD(s.View("lookup:iso639_3",function(){return i.mustache(e.lookup("iso639_3"))})),"\n                                    ",c.TD(s.View("lookup:bcp47",function(){return i.mustache(e.lookup("bcp47"))})),"\n                                    ",c.TD({class:"text-center"},s.View("lookup:sttProvider",function(){return i.mustache(e.lookup("sttProvider"))})),"\n                                    ",c.TD({class:"text-center"},s.View("lookup:ttsProvider",function(){return i.mustache(e.lookup("ttsProvider"))})),"\n                                    ",c.TD({style:function(){return i.mustache(e.lookup("chirp3Style"))}},s.View("lookup:bcp47Chirp3",function(){return i.mustache(e.lookup("bcp47Chirp3"))})),"\n                                    ",c.TD({class:"text-center",style:function(){return i.mustache(e.lookup("chirp3Style"))}},c.A({class:"clickable js-set-chirp3"},c.SPAN({class:"material-icons-outlined"},s.If(function(){return i.call(e.lookup("chirp3"))},function(){return c.Raw('<span class="material-icons-outlined bg-success text-white">done</span>')},function(){return c.Raw('<span class="material-icons-outlined">close</span>')})))),"\n                                    ",c.TD({class:"text-center"},c.A({href:function(){return["https://fonts.google.com/specimen/",i.mustache(e.lookup("googleFont"))]},target:"_blank",rel:"noreferrer"},s.View("lookup:googleFont",function(){return i.mustache(e.lookup("googleFont"))}))),"\n                                    ",c.TD({class:"text-center"},s.View("lookup:direction",function(){return i.mustache(e.lookup("direction"))})),"\n                                    ",c.TD(s.View("lookup:languageNames",function(){return i.mustache(e.lookup("languageNames"))})),"\n                                    ",c.TD(c.A({href:function(){return i.mustache(e.lookup("pathFor"),"adminTranslations",i.kw({query:i.dataMustache(e.lookup("c
165oncat"),"filter=",e.lookup("text"))}))}},s.View("lookup:text",function(){return i.mustache(e.lookup("text"))}))),"\n                                    ",c.TD(c.A({href:function(){return i.mustache(e.lookup("flag"))},target:"_blank"},s._TemplateWith(function(){return{url:i.call(e.lookup("flag")),width:i.call(100),displayWidth:i.call(40)}},function(){return i.include(e.lookupTemplate("googleFileVersion"))}))),"\n                                    ",c.TD({class:"text-center"},s.If(function(){return i.call(e.lookup("primary"))},function(){return c.Raw('<span class="material-icons-outlined bg-success text-white">done</span>')},function(){return c.Raw('<a href="" class="js-set-primary"><span class="material-icons-outlined">close</span></a>')})),"\n                                    ",c.TD({class:"text-center"},c.A({class:"clickable js-set-interface"},s.If(function(){return i.call(e.lookup("interface"))},function(){return c.Raw('<span class="material-icons-outlined bg-success text-white">done</span>')},function(){return c.Raw('<span class="material-icons-outlined">close</span>')}))),"\n                                    ",c.TD({class:"text-center"},c.A({class:"clickable js-set-interface-ouispeak"},c.SPAN({class:"material-icons-outlined"},s.If(function(){return i.call(e.lookup("interfaceOuispeak"))},function(){return c.Raw('<span class="material-icons-outlined bg-success text-white">done</span>')},function(){return c.Raw('<span class="material-icons-outlined">close</span>')})))),c.Raw('\n                                    <td class="text-end"> <a class="btn btn-icon btn-xs btn-warning text-white js-language-edit"><span class="material-icons-outlined">edit</span></a> <a href="" class="btn btn-icon btn-xs btn-danger text-white js-delete"><span class="material-icons-outlined">delete</span></a></td>\n                                ')),"\n                            "]}),"\n                        "]}),"\n                    "),"\n                "),"\n            "),"\n        "),"\n    ")});t.__checkName("appAdminLanguagesEdit");t["appAdminLanguagesEdit"]=new t("Template.appAdminLanguagesEdit",function(){var e=this;return c.TR({title:function(){return i.mustache(e.lookup("JSONstringify"),e.lookup("."))},"data-id":function(){return i.mustache(e.lookup("_id"))},class:"bg-warning text-dark"},"\n        ",c.TD({class:"text-center"},c.INPUT({name:"code",class:"form-control",placeholder:"code",value:function(){return i.mustache(e.lookup("code"))}})),"\n        ",c.TD(c.INPUT({name:"iso639_1",class:"form-control",placeholder:"iso639_1",value:function(){return i.mustache(e.lookup("iso639_1"))}})),"\n        ",c.TD(c.INPUT({name:"iso639_3",class:"form-control",placeholder:"iso639_3",value:function(){return i.mustache(e.lookup("iso639_3"))}})),"\n        ",c.TD(c.INPUT({name:"bcp47",class:"form-control",placeholder:"bcp47",value:function(){return i.mustache(e.lookup("bcp47"))}})),"\n        ",c.TD(c.SELECT({name:"sttProvider",class:"form-control"},c.Raw('\n                <option value="">-- default (global)</option>\n                '),c.OPTION(c.Attrs({value:"speechmatics"},function(){return i.attrMustache(e.lookup("isSelectedOption"),e.lookup("sttProvider"),"speechmatics")}),"Speechmatics"),"\n                ",c.OPTION(c.Attrs({value:"soniox"},function(){return i.attrMustache(e.lookup("isSelectedOption"),e.lookup("sttProvider"),"soniox")}),"Soniox"),"\n                ",c.OPTION(c.Attrs({value:"google"},function(){return i.attrMustache(e.lookup("isSelectedOption"),e.lookup("sttProvider"),"google")}),"Google"),"\n                ",c.OPTION(c.Attrs({value:"deepgram"},function(){return i.attrMustache(e.lookup("isSelectedOption"),e.lookup("sttProvider"),"deepgram")}),"Deepgram"),"\n                ",c.OPTION(c.Attrs({value:"azure"},function(){return i.attrMustache(e.lookup("isSelectedOption"),e.lookup("sttProvider"),"azure")}),"Azure"),"\n            "),"\n        "),"\n        ",c.TD(c.SELECT({name:"ttsProvider",class:"form-control"},c.Raw('\n                <option value="">-- choose TTS provider</option>\n                '),c.OPTION(c.Attrs({value:"google"},function(){return i.attrMustache(e.lookup("isSelectedOption"),e.lookup("ttsProvider"),"google")}),"Google"),"\n                ",c.OPTION(c.Attrs({value:"azure"},function(){return i.attrMustache(e.lookup("isSelectedOption"),e.lookup("ttsProvider"),"azure")}),"Azure"),"\n            "),"\n        "),"\n        ",c.TD(c.INPUT({name:"bcp47Chirp3",class:"form-control",placeholder:"bcp47Chirp3",value:function(){return i.mustache(e.lookup("bcp47Chirp3"))}})),c.Raw("\n        <td></td>\n        "),c.TD(c.INPUT({name:"googleFont",class:"form-control",placeholder:"googleFont",value:function(){return i.mustache(e.lookup("googleFont"))}})),"\n        ",c.TD("\n            ",c.SELECT({name:"direction",class:"form-control"},"\n                ",c.OPTION(c.Attrs({value:"ltr"},function(){return i.attrMustache(e.lookup("isSelectedOption"),e.lookup("direction"),"ltr")}),"left to right"),"\n                ",c.OPTION(c.Attrs({value:"rtl"},function(){return i.attrMustache(e.lookup("isSelectedOption"),e.lookup("direction"),"rtl")}),"right to left"),"\n            "),"\n        "),c.Raw("\n        <td></td>\n        "),c.TD(c.INPUT({name:"text",class:"form-control",placeholder:"text",value:function(){return i.mustache(e.lookup("text"))}})),"\n        ",c.TD(c.INPUT({name:"flag",class:"form-control",placeholder:"flag",value:function(){return i.mustache(e.lookup("flag"))}})),c.Raw('\n        <td class="text-center"></td>\n        <td class="text-center"></td>\n        <td class="text-center"></td>\n        <td class="text-end"> <a class="btn btn-icon btn-xs btn-primary text-white js-language-edit-save"><span class="material-icons-outlined">save</span></a></td>\n    '))})},
165"languages.js":function(a,o,r){var s;r.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){s=e}},0);r.link("meteor/davidfm:core/api/google-storage/client/google-file-version.js");r.link("./languages.html");t.appAdminLanguages.onCreated(function(){});t.appAdminLanguages.onRendered(function(){dfm.sortable(".sortable",{update:function(t){var n=$(t).children();var a=[];n.each(function(e,t){a.push($(t).data("id"))});e.callAsync("dfm.languages.setRanks",a).catch(function(e){dfm.toastError(e.message)})}});log("languages",s.find({}).fetch().map(function(e){return e.code}))});t.appAdminLanguages.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:n.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:n.path("admin"),class:"",title:"Admin"},{title:"Languages"}])},languageNames:function(){var e=new Intl.DisplayNames(["en"],{type:"language"});return e.of(this.code)},isEditingLanguage:function(){return Session.get("adminLanguages.editLanguageId")===this._id},chirp3Style:function(){if(this.ttsProvider&&"google"!==this.ttsProvider)return"opacity: 0.3";return""}});t.appAdminLanguages.events({"submit #language-add":function(t){t.preventDefault();var n=dfm.serialize(t.currentTarget);e.callAsync("dfm.languages.insert",n).then(function(){t.currentTarget.reset()}).catch(function(e){dfm.toastError(e.message)})},"click .js-language-edit":function(e){e.preventDefault();console.log(this);Session.set("adminLanguages.editLanguageId",this._id)},"click .js-set-primary":function(t){t.preventDefault();e.callAsync("dfm.languages.setPrimary",this._id).catch(function(e){dfm.toastError(e.message)})},"click .js-set-chirp3":function(t){t.preventDefault();var n=!this.chirp3;e.callAsync("dfm.languages.update",this._id,{chirp3:n}).catch(function(e){dfm.toastError(e.message)})},"click .js-set-interface":function(t){t.preventDefault();var n=!this.interface;e.callAsync("dfm.languages.update",this._id,{interface:n}).catch(function(e){dfm.toastError(e.message)})},"click .js-set-interface-ouispeak":function(t){t.preventDefault();var n=!this.interfaceOuispeak;e.callAsync("dfm.languages.update",this._id,{interfaceOuispeak:n}).catch(function(e){dfm.toastError(e.message)})},"click .js-delete":function(t){t.preventDefault();var n=this;dfm.confirm("remove this language?",function(t){if(!t)return;e.callAsync("dfm.languages.removeOne",n._id).catch(function(e){dfm.toastError(e.message)})})},"click .js-sort-alphabetically":function(t){var n=s.find({},{sort:{code:1}}).fetch();n.forEach(function(t,n){e.callAsync("dfm.languages.update",t._id,{rank:n}).catch(function(e){dfm.toastError(e.message)})})}});t.appAdminLanguagesEdit.onCreated(function(){});t.appAdminLanguagesEdit.onRendered(function(){});t.appAdminLanguagesEdit.onDestroyed(function(){});t.appAdminLanguagesEdit.helpers({});t.appAdminLanguagesEdit.events({"click .js-language-edit-save":function(t){t.preventDefault();var n=t.currentTarget.closest("tr");var a=n.dataset.id;var o=n.querySelectorAll("input, select");var r={};o.forEach(function(e){if(e.name)r[e.name]=e.value});e.callAsync("dfm.languages.update",a,r).then(function(){dfm.toastSuccess("Language updated");Session.set("adminLanguages.editLanguageId",null)}).catch(function(e){dfm.toastError(e.message)})}})}}},lib:{
165"routes.js":function(e,t,a){n.route("/admin/languages",{name:"appAdminLanguages",layoutTemplate:"adminLayout",onBeforeAction:function(){a.link("../client/admin/languages.js");if(!dfm.isWebmaster())n.go("/");this.next()},onAfterAction:function(){dfm.someUpdateAfterRoute({seo:{title:"Admin | Languages"}})}})}}}},lib:{
165"helpers.js":function(t,n,a){var s;a.link("meteor/roles",{Roles:function(e){s=e}},0);function i(e,t,n,a,r,s,i){try{var c=e[s](i);var l=c.value}catch(e){n(e);return}if(c.done)t(l);else o.resolve(l).then(a,r)}function c(e){return function(){var t=this,n=arguments;return new o(function(a,o){var r=e.apply(t,n);function s(e){i(r,a,o,s,c,"next",e)}function c(e){i(r,a,o,s,c,"throw",e)}s(void 0)})}}function l(e,t){var n,a,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i["throw"]=c(1),i["return"]=c(2),"function"==typeof r&&(i[r.iterator]=function(){return this}),i;function c(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,r[0]&&(s=0)),s)try{if(n=1,a&&(o=2&r[0]?a["return"]:r[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,r[1])).done)return o;if(a=0,o)r=[2&r[0],o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:s.label++;return{value:r[1],done:false};case 5:s.label++;a=r[1];r=[0];continue;case 7:r=s.ops.pop();s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1];o=r;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(r);break}if(o[2])s.ops.pop();s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e];a=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:true}}}globalThis.OUispeak=globalThis.OUispeak||{};OUispeak.isSupport=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.userId();
165return s.userIsInRole(t,["support"])};OUispeak.isSupportAsync=function(){return c(function(){var t;var n=arguments;return l(this,function(a){switch(a.label){case 0:t=n.length>0&&void 0!==n[0]?n[0]:e.userId();return[4,s.userIsInRoleAsync(t,["support"])];case 1:return[2,a.sent()]}})}).apply(this,arguments)}}}}}}}},{extensions:[".js",".json",".less",".html"]});return{require:l,eagerModulePaths:["/node_modules/meteor/ouispeak:core/client/main.js"],mainModulePath:"/node_modules/meteor/ouispeak:core/client/main.js"}});
166
167Package["core-runtime"].queue("oauth2",function(){return{}});
168
169Package["core-runtime"].queue("google-oauth",function(){Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var e=Package.oauth.OAuth;var o=Package["service-configuration"].ServiceConfiguration;var t=Package.random.Random;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var n;var a=r({node_modules:{meteor:{"google-oauth":{
169"google_client.js":function(r,n,a){var i;a.link("./namespace.js",{default:function(e){i=e}},0);var c=Object.prototype.hasOwnProperty;var l={response_type:1,client_id:1,scope:1,redirect_uri:1,state:1};i.requestCredential=function(r,n){if(n||"function"!=typeof r){if(!r)r={}}else{n=r;r={}}var a=o.configurations.findOne({service:"google"});if(!a){n&&n(new o.ConfigError);return}var i=t.secret();var s={email:1};var g=r.requestPermissions||["profile"];g.forEach(function(e){return s[e]=1});g=Object.keys(s);var u={};if(a.loginUrlParameters)Object.assign(u,a.loginUrlParameters);if(r.loginUrlParameters)Object.assign(u,r.loginUrlParameters);Object.keys(u).forEach(function(e){if(c.call(l,e))throw new Error("Google.requestCredential: Invalid loginUrlParameter: ".concat(e))});if(null!=r.requestOfflineToken)u.access_type=r.requestOfflineToken?"offline":"online";if(null!=r.prompt)u.prompt=r.prompt;else if(r.forceApprovalPrompt)u.prompt="consent";if(r.loginHint)u.login_hint=r.loginHint;var m=e._loginStyle("google",a,r);Object.assign(u,{response_type:"code",client_id:a.clientId,scope:g.join(" "),redirect_uri:e._redirectUri("google",a),state:e._stateParam(m,i,r.redirectUrl)});var p="https://accounts.google.com/o/oauth2/auth?"+Object.keys(u).map(function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(u[e]))}).join("&");e.launchLogin({loginService:"google",loginStyle:m,loginUrl:p,credentialRequestCompleteCallback:n,credentialToken:i,popupOptions:{height:600}})}},
169"namespace.js":function(e,o,t){n=t.exports;n.Google=n}}}}},{extensions:[".js",".json"]});return{export:function(){return{Google:n}},require:a,eagerModulePaths:["/node_modules/meteor/google-oauth/google_client.js","/node_modules/meteor/google-oauth/namespace.js"],mainModulePath:"/node_modules/meteor/google-oauth/namespace.js"}});
170
171Package["core-runtime"].queue("accounts-google",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var o=Package["accounts-base"].Accounts;var t=Package["google-oauth"].Google;var n=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;Package["ecmascript-runtime-client"].Map;Package["ecmascript-runtime-client"].Set;var r=n({node_modules:{meteor:{"accounts-google":{
171"notice.js":function(){if(Package["accounts-ui"]&&!Package["service-configuration"]&&!Object.prototype.hasOwnProperty.call(Package,"google-config-ui"))console.warn("Note: You're using accounts-ui and accounts-google,\nbut didn't install the configuration UI for the Google\nOAuth. You can install it with:\n\n    meteor add google-config-ui\n")},
171"google.js":function(){function n(e,o,t){if(o in e)Object.defineProperty(e,o,{value:t,enumerable:true,configurable:true,writable:true});else e[o]=t;return e}function r(e){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};var r=Object.keys(t);if("function"==typeof Object.getOwnPropertySymbols)r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}));r.forEach(function(o){n(e,o,t[o])})}return e}o.oauth.registerService("google");if(e.isClient){var i=function(n,i){if(!i&&"function"==typeof n){i=n;n=null}if(e.isCordova&&t.signIn)return void t.signIn(n,i);if("string"==typeof o._options.restrictCreationByEmailDomain){n=r({},n);n.loginUrlParameters=r({},n.loginUrlParameters);n.loginUrlParameters.hd=o._options.restrictCreationByEmailDomain}var a=o.oauth.credentialRequestCompleteHandler(i);t.requestCredential(n,a)};o.registerClientLoginFunction("google",i);e.loginWithGoogle=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.applyLoginFunction("google",t)}}else o.addAutopublishFields({forLoggedInUser:t.whitelistedFields.concat(["accessToken","expiresAt"]).map(function(e){return"services.google.".concat(e)}),forOtherUsers:t.whitelistedFields.filter(function(e){return"email"!==e&&"verified_email"!==e}).map(function(e){return"services.google.".concat(e)})})}}}}},{extensions:[".js",".json"]});return{require:r,eagerModulePaths:["/node_modules/meteor/accounts-google/notice.js","/node_modules/meteor/accounts-google/google.js"]}});
172
173Package["core-runtime"].queue("browser-policy-framing",function(){return{}});
174
175Package["core-runtime"].queue("meteorhacks:ssr",function(){return{}});
176
177Package["core-runtime"].queue("reywood:publish-composite",function(){return{}});
178
179Package["core-runtime"].queue("natestrauser:publish-performant-counts",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;var t;(function(){t={};t.collection=new e.Collection("counters-collection");t.get=function(e){var n=t.collection.findOne(e);if(n)return n.count;return 0}}).call(this);return{export:function(){return{Counter:t}}}});
180
181Package["core-runtime"].queue("hot-code-push",function(){return{}});
182
183Package["core-runtime"].queue("launch-screen",function(){var e;return{export:function(){return{LaunchScreen:e}}}});
184
185Package["core-runtime"].queue("autoupdate",function(){var e=Package.meteor.Meteor;Package.meteor.global;Package.meteor.meteorEnv;Package.tracker.Tracker;Package.tracker.Deps;var t=Package.retry.Retry;Package["ddp-client"].DDP;var r=Package.modules.meteorInstall;Package.modules.meteorBabelHelpers;var n=Package.promise.Promise;Package["ecmascript-runtime-client"].Symbol;var a=Package["ecmascript-runtime-client"].Map;var i=Package["ecmascript-runtime-client"].Set;var o;var s=r({node_modules:{meteor:{autoupdate:{
185"autoupdate_client.js":function(r,a,i){i.export({Autoupdate:function(){return c}});var o;i.link("./client_versions.js",{ClientVersions:function(e){o=e}},0);var s=e.isCordova?"web.cordova":e.isModern?"web.browser":"web.browser.legacy";var u=((__meteor_runtime_config__.autoupdate||{}).versions||{})[s]||{version:"unknown",versionRefreshable:"unknown",versionNonRefreshable:"unknown",assets:[]};var c={};var l=c._clientVersions=new o;e.connection.registerStoreClient("meteor_autoupdate_clientVersions",l.createStore());c.newClientAvailable=function(){return l.newClientAvailable(s,["versionRefreshable","versionNonRefreshable"],u)};var f=false;var v=new t({minCount:0,baseTimeout:3e4});var d=0;c._retrySubscription=function(){e.subscribe("meteor_autoupdate_clientVersions",{onError:function(t){e._debug("autoupdate subscription failed",t);d++;v.retryLater(d,function(){c._retrySubscription()})},onReady:function(){var t=n.resolve();function r(e){t.then(function(){return i(e)})}var a=l.watch(r);function i(t){if(t._id!==s)return;if(t.versionNonRefreshable!==u.versionNonRefreshable){if(a)a();if(Package.reload)Package.reload.Reload._reload();return}if(t.versionRefreshable!==u.versionRefreshable){var r=function(t,r){var n;t.onload=function(){f=true;if(!n){n=true;r()}};if(!f)var a=e.setInterval(function(){if(t.sheet){if(!n){n=true;r()}e.clearInterval(a)}},50)};var n=function(){if(o.length>0&&--c<1)o.splice(0).forEach(function(e){e.parentNode.removeChild(e)})};u.versionRefreshable=t.versionRefreshable;var i=t.assets||[];var o=[];Array.prototype.forEach.call(document.getElementsByTagName("link"),function(e){if("__meteor-css__"===e.className)o.push(e)});var c=i.length;if(i.length>0)i.forEach(function(t){var a=document.createElement("link");a.setAttribute("rel","stylesheet");a.setAttribute("type","text/css");a.setAttribute("class","__meteor-css__");a.setAttribute("href",t.url);r(a,function(){e.setTimeout(n,200)});var i=document.getElementsByTagName("head").item(0);i.appendChild(a)});else n()}}}})};c._retrySubscription()},
185"client_versions.js":function(e,t,r){r.export({ClientVersions:function(){return v}});var o;r.link("meteor/tracker",{Tracker:function(e){o=e}},0);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function c(e,t,r){if(t)u(e.prototype,t);if(r)u(e,r);return e}function l(e,t,r){if(t in e)Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true});else e[t]=r;return e}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};var n=Object.keys(r);if("function"==typeof Object.getOwnPropertySymbols)n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}));n.forEach(function(t){l(e,t,r[t])})}return e}var v=function(){"use strict";function e(){s(this,e);this._versions=new a;this._watchCallbacks=new i}c(e,[{key:"createStore",value:function(){var e=this;return{update:function(t){var r=t.id,n=t.msg,a=t.fields;if("added"===n||"changed"===n)e.set(r,a)}}}},{key:"hasVersions",value:function(){return this._versions.size>0}},{key:"get",value:function(e){return this._versions.get(e)}},{key:"set",value:function(e,t){var r=this._versions.get(e);var n=false;if(r)Object.assign(r,t);else{r=f({_id:e},t);n=true;this._versions.set(e,r)}this._watchCallbacks.forEach(function(e){var t=e.fn,a=e.filter;if(!a||a===r._id)t(r,n)})}},{key:"watch",value:function(e){var t=this;var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.skipInitial,i=r.filter;if(!a){var o=n.resolve();this._versions.forEach(function(t){if(!i||i===t._id)o.then(function(){return e(t,true)})})}var s={fn:e,filter:i};this._watchCallbacks.add(s);return function(){return t._watchCallbacks.delete(s)}}},{key:"newClientAvailable",value:function(e,t,r){function n(n){return n._id===e&&t.some(function(e){return n[e]!==r[e]})}var a=new o.Dependency;var i=this.get(e);a.depend();var s=this.watch(function(e){if(n(e)){a.changed();s()}},{skipInitial:true});return!!i&&n(i)}}]);return e}()}}}}},{extensions:[".js",".json"]});return{export:function(){return{Autoupdate:o}},require:s,eagerModulePaths:["/node_modules/meteor/autoupdate/autoupdate_client.js"],mainModulePath:"/node_modules/meteor/autoupdate/autoupdate_client.js"}});
186
187Mongo=Package.mongo.Mongo;CollectionExtensions=Package.mongo.CollectionExtensions;ReactiveVar=Package["reactive-var"].ReactiveVar;Tracker=Package.tracker.Tracker;Deps=Package.tracker.Deps;Roles=Package.roles.Roles;RolesCollection=Package.roles.RolesCollection;RoleAssignmentCollection=Package.roles.RoleAssignmentCollection;Router=Package["vlasky:galvanized-iron-router"].Router;Accounts=Package["accounts-base"].Accounts;AccountsTemplates=Package["useraccounts:core"].AccountsTemplates;T9n=Package["useraccounts:core"].T9n;ServiceConfiguration=Package["service-configuration"].ServiceConfiguration;Iron=Package["vlasky:galvanized-iron-router"].Iron;RouteController=Package["vlasky:galvanized-iron-router"].RouteController;Counter=Package["natestrauser:publish-performant-counts"].Counter;Meteor=Package.meteor.Meteor;global=Package.meteor.global;meteorEnv=Package.meteor.meteorEnv;WebApp=Package.webapp.WebApp;DDP=Package["ddp-client"].DDP;LaunchScreen=Package["launch-screen"].LaunchScreen;Blaze=Package.blaze.Blaze;UI=Package.blaze.UI;Handlebars=Package.blaze.Handlebars;Template=Package["templating-runtime"].Template;meteorInstall=Package.modules.meteorInstall;meteorBabelHelpers=Package.modules.meteorBabelHelpers;Promise=Package.promise.Promise;Google=Package["google-oauth"].Google;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;Spacebars=Package.spacebars.Spacebars;
188
189var require=meteorInstall({import:{api:{components:{client:{admin:{
189"components.html":function(e,t,n){n.link("./template.components.js",{"*":"*+"})},
189"template.components.js":function(){Template.__checkName("adminComponents");Template["adminComponents"]=new Template("Template.adminComponents",function(){var e=this;return[HTML.Raw('<h2>Menu</h2>\n    <p class="text-muted">Pages displayed in the navigation bar. Drag to reorder.</p>\n\n    '),HTML.DIV({class:"row mb-4"},"\n        ",HTML.DIV({class:"col-md-6"},"\n            ",HTML.DIV({id:"menu-sortable-list",class:"list-group"},"\n                ",Blaze.Each(function(){return Spacebars.call(e.lookup("menuPages"))},function(){return["\n                    ",HTML.DIV({class:"list-group-item d-flex align-items-center gap-2 js-menu-item","data-id":function(){return Spacebars.mustache(e.lookup("_id"))}},HTML.Raw('\n                        <span class="material-symbols-outlined js-drag-handle" style="cursor:grab; opacity:0.5">drag_indicator</span>\n                        '),HTML.SPAN({class:"flex-grow-1"},"\n                            ",HTML.STRONG(Blaze.View("lookup:menuDisplayTitle",function(){return Spacebars.mustache(e.lookup("menuDisplayTitle"))})),"\n                            ",HTML.SMALL({class:"text-muted ms-2"},Blaze.View("lookup:slug",function(){return Spacebars.mustache(e.lookup("slug"))})),"\n                        "),HTML.Raw('\n                        <a href="" class="btn btn-xs btn-outline-danger js-remove-from-menu" title="Remove from menu"><span class="material-symbols-outlined" style="font-size:18px">close</span></a>\n                    ')),"\n                "]},function(){return HTML.Raw('\n                    <div class="list-group-item text-muted">No pages in menu</div>\n                ')}),"\n            "),"\n        "),"\n        ",HTML.DIV({class:"col-md-6"},HTML.Raw("\n            <h6>Add a page to the menu</h6>\n            "),HTML.SELECT({class:"form-select js-add-to-menu"},HTML.Raw('\n                <option value="">-- Select a page --</option>\n                '),Blaze.Each(function(){return Spacebars.call(e.lookup("availablePages"))},function(){return["\n                    ",HTML.OPTION({value:function(){return Spacebars.mustache(e.lookup("_id"))}},Blaze.View("lookup:slug",function(){return Spacebars.mustache(e.lookup("slug"))})," ",Blaze.If(function(){return Spacebars.call(e.lookup("title"))},function(){return["(",Blaze.View("lookup:title",function(){return Spacebars.mustache(e.lookup("title"))}),")"]})),"\n                "]}),"\n            "),"\n        "),"\n    "),HTML.Raw('\n\n    <hr>\n\n    <h2>Components</h2>\n\n    <a href="" class="float-end btn-xs btn-ouispeak js-add-component">add a component</a>\n    '),HTML.TABLE({class:"table table-hover table-stripped"},"\n        ",HTML.THEAD("\n            ",HTML.TR(HTML.Raw('\n                <th>name</th>\n                <th>locale</th>\n                <th>createdAt</th>\n                <th width="100"></th>\n            ')),"\n        "),"\n        ",HTML.TBODY("\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("components"))},function(){return["\n                ",HTML.TR("\n                    ",HTML.TD(Blaze.View("lookup:name",function(){return Spacebars.mustache(e.lookup("name"))})),"\n                    ",HTML.TD(Blaze.View("lookup:locale",function(){return Spacebars.mustache(e.lookup("locale"))})),"\n                    ",HTML.TD(Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"))})),"\n                    ",HTML.TD("\n                        ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminComponentsEdit",Spacebars.kw({sourceId:e.lookup("_id"),lng:e.lookup("dfmLanguagesGetPrimaryCode")}))},class:"btn btn-xs btn-warning","data-id":function(){return Spacebars.mustache(e.lookup("id"))}},HTML.Raw('<span class="material-icons-outlined">edit</span>')),HTML.Raw('\n                        <a href="" class="btn btn-xs btn-danger js-delete-page"><span class="material-icons-outlined">delete</span></a>\n                    ')),"\n                "),"\n            "]}),"\n        "),"\n    ")]})},
189"edit.html":function(e,t,n){n.link("./template.edit.js",{"*":"*+"})},
189"template.edit.js":function(){Template.__checkName("adminComponentsEdit");Template["adminComponentsEdit"]=new Template("Template.adminComponentsEdit",function(){var e=this;return[HTML.Raw('<h1>Component Edit</h1>\n\n    \x3c!-- context : {source, page} --\x3e\n\n    <h2 class="mt-5">source</h2>\n    '),HTML.DIV({class:"mb-3"},HTML.Raw('\n        <label for="inputName" class="form-label">name</label>\n        '),HTML.INPUT({name:"name",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("source"),"name"))}}),HTML.Raw('\n        <div id="nameHelp" class="form-text"></div>\n    ')),"\n\n    ",HTML.DIV({class:"choose-language mb-5"},"\n        ",Blaze.Each(function(){return Spacebars.call(e.lookup("getSiteLanguages"))},function(){return["\n            ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),e.lookup("currentRouteName"),Spacebars.kw({sourceId:Spacebars.dot(e.lookup(".."),"source","_id"),lng:e.lookup("code")}))},class:function(){return["btn btn-xs ",Spacebars.mustache(e.lookup("lngStatus"),e.lookup("code"),Spacebars.dot(e.lookup(".."),"source","_id"))]}},Blaze.View("lookup:code",function(){return Spacebars.mustache(e.lookup("code"))})),"\n        "]}),"\n    "),"\n\n    ",HTML.FORM(HTML.Raw('\n        <div class="text-end">\n            <button type="submit" class="btn btn-primary">Save</button>\n        </div>\n        '),HTML.INPUT({name:"sourceId",type:"hidden",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("source"),"_id"))}}),"\n        ",HTML.INPUT({name:"locale",type:"hidden",value:function(){return Spacebars.mustache(e.lookup("locale"))}}),"\n\n        ",HTML.DIV({class:"mb-3"},HTML.Raw('\n            <label for="inpuContent" class="form-label">content</label>\n            '),HTML.TEXTAREA({name:"content",class:"form-control",id:"inpuContent",oninput:"auto_grow(this)",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("component"),"content"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),HTML.Raw('\n\n        <button type="submit" class="btn btn-primary">Save</button>\n    '))]})},
189"components.js":function(e,t,n){var a;n.link("../../lib/collections.js",{Components:function(e){a=e}},0);var o;n.link("/import/api/pages/lib/collections.js",{Pages:function(e){o=e}},1);n.link("./components.html");function r(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function s(e){if(Array.isArray(e))return r(e)}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return s(e)||l(e)||u(e)||i()}function u(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}var p=null;Template.adminComponents.onCreated(function(){});Template.adminComponents.onRendered(function(){this.autorun(function(){o.find({source:true,inMenu:true}).fetch();Tracker.afterFlush(function(){if(p)p.destroy();var e=document.querySelector("#menu-sortable-list");if(!e||!e.querySelector(".js-menu-item"))return;p=dfm.sortable("#menu-sortable-list",{handle:".js-drag-handle",update:function(){var e=document.querySelector("#menu-sortable-list");var t=c(e.querySelectorAll(".js-menu-item")).map(function(e){return e.dataset.id});Meteor.call("admin.pages.updateMenuOrder",t,function(e){if(e)dfm.toastError(e)})}})})})});Template.adminComponents.onDestroyed(function(){if(p){p.destroy();p=null}});Template.adminComponents.helpers({menuPages:function(){return o.find({source:true,inMenu:true},{sort:{menuOrder:1}})},menuDisplayTitle:function(){var e=o.findOne({sourceId:this._id,locale:dfm.languages.getCurrent()});return(null==e?void 0:e.menuTitle)||(null==e?void 0:e.title)||this.menuTitle||this.slug},availablePages:function(){return o.find({source:true,inMenu:{$ne:true}},{sort:{slug:1}})},components:function(){return a.find({source:true})}});Template.adminComponents.events({"change .js-add-to-menu":function(e,t){var n=e.target.value;if(!n)return;e.target.value="";Meteor.call("admin.pages.updateMenuFlag",n,true,void 0,function(e){if(e)dfm.toastError(e)})},"click .js-remove-from-menu":function(e){e.preventDefault();Meteor.call("admin.pages.updateMenuFlag",this._id,false,void 0,function(e){if(e)dfm.toastError(e)})},"click .js-add-component":function(e,t){e.preventDefault();Meteor.call("admin.components.add",function(e,t){if(e)dfm.toastError(e);else Router.go("adminComponentsEdit",{sourceId:t,locale:dfm.languages.getPrimary()})})},"click .js-delete-page":function(e,t){e.preventDefault();var n=this._id;Meteor.call("admin.components.remove",n,function(e,t){if(e)dfm.toastError(e)})}})},
189"edit.js":function(e,t,n){var a;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){a=e}},0);n.link("./edit.html");Template.adminComponentsEdit.onCreated(function(){});Template.adminComponentsEdit.onRendered(function(){log(this);o(document.querySelector("textarea#inpuContent"))});Template.adminComponentsEdit.onDestroyed(function(){});Template.adminComponentsEdit.helpers({locale:function(){return Router.current().params.lng},isLngActive:function(e){return e===Router.current().params.lng?"btn btn-primary":""},lngStatus:function(e){if(e===Router.current().params.lng)return"btn-primary btn-lg text-white";var t=a.findOne({code:e});if(null==t?void 0:t.interfaceOuispeak)return"btn-warning btn-sm opacity-50";return"border"},currentRouteName:function(){return Router.current().route.getName()}});Template.adminComponentsEdit.events({"change [name=name]":function(e,t){e.preventDefault();var n=$(e.currentTarget).val();var a=this.source._id;Meteor.call("admin.components.updateName",a,n,function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess("name updated")})},"submit form":function(e,t){e.preventDefault();log(e.currentTarget);var n=Router.current().params.lng;var a=dfm.serialize(e.currentTarget);Meteor.call("admin.components.update",this.source._id,n,a,function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess("Component updated")})}});function o(e){e.style.height="5px";e.style.height=e.scrollHeight+"px"}}},front:{
189"calendar-register.html":function(e,t,n){n.link("./template.calendar-register.js",{"*":"*+"})},
189"template.calendar-register.js":function(){Template.__checkName("calendarRegister");Template["calendarRegister"]=new Template("Template.calendarRegister",function(){var e=this;return HTML.DIV({class:"meetings-iframe-container","data-src":function(){return["https://customers.ouispeak.io/meetings/",Spacebars.mustache(e.lookup("link")),"?embed=true"]}})})},
189"component.html":function(e,t,n){n.link("./template.component.js",{"*":"*+"})},
189"template.component.js":function(){Template.__checkName("component");Template["component"]=new Template("Template.component",function(){var e=this;return Blaze.If(function(){return Spacebars.call(e.lookup("content"))},function(){return["\n    ",Blaze.View("lookup:content",function(){return Spacebars.makeRaw(Spacebars.mustache(e.lookup("content")))}),"\n    "]},function(){return["\n    ",Blaze.View("lookup:defaultContent",function(){return Spacebars.makeRaw(Spacebars.mustache(e.lookup("defaultContent")))}),"\n    "]})})},
189"contact-us.html":function(e,t,n){n.link("./template.contact-us.js",{"*":"*+"})},
189"template.contact-us.js":function(){Template.__checkName("contactUs");Template["contactUs"]=new Template("Template.contactUs",function(){var e=this;return HTML.SECTION({id:"tpl-contact-us"},"\n        ",HTML.DIV({class:"card-ouispeak"},"\n            ",HTML.H2(Blaze._TemplateWith(function(){return{c:Spacebars.call("contactUsTitle")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n            ",HTML.FORM({id:"contact-us-form",class:"text-start mt-5"},"\n                ",HTML.DIV({class:"mb-3"},"\n                    ",HTML.LABEL({for:"email",class:"contact-input-label"},Blaze._TemplateWith(function(){return{c:Spacebars.call("email")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})," *"),"\n                    ",HTML.INPUT({required:"",id:"email",name:"email",class:"form-control",type:"email",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"emailPlaceholder")}}),"\n                "),"\n                ",HTML.DIV({class:"mb-3"},"\n                    ",HTML.LABEL({for:"name",class:"contact-input-label"},Blaze._TemplateWith(function(){return{c:Spacebars.call("name")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})," *"),"\n                    ",HTML.INPUT({required:"",id:"name",name:"name",class:"form-control",type:"text",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"namePlaceholder")}}),"\n                "),"\n                ",HTML.DIV({class:"mb-3"},"\n                    ",HTML.LABEL({for:"company",class:"contact-input-label"},Blaze._TemplateWith(function(){return{c:Spacebars.call("companyName")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                    ",HTML.INPUT({id:"company",name:"company",class:"form-control",type:"text",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"companyNamePlaceholder")}}),"\n                "),"\n\n                ",HTML.DIV({class:"mb-3"},"\n                    ",HTML.LABEL({for:"phone",class:"contact-input-label"},Blaze._TemplateWith(function(){return{c:Spacebars.call("phoneNumber")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                    ",HTML.INPUT({id:"phone",type:"tel",name:"phone",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"phoneNumberPlaceholder")},class:"form-control",autocomplete:"off","data-intl-tel-input-id":"0"}),"\n                "),"\n\n                ",HTML.DIV({class:"mb-3"},"\n                    ",HTML.LABEL({for:"message",class:"contact-input-label"},Blaze._TemplateWith(function(){return{c:Spacebars.call("message")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                    ",HTML.TEXTAREA({id:"message",name:"message",class:"form-control",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"messagePlaceholder")}}),"\n                "),"\n\n                ",HTML.DIV({id:"submit-section"},HTML.Raw('\n                    <div style="display: none" class="dots-1"></div>\n                    '),HTML.BUTTON({class:"btn btn-ouispeak",type:"submit",id:"submit-btn"},Blaze._TemplateWith(function(){return{c:Spacebars.call("contactMe")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                "),"\n            "),"\n        "),"\n    ")})},
189"header-logos.html":function(e,t,n){n.link("./template.header-logos.js",{"*":"*+"})},
189"template.header-logos.js":function(){Template.__checkName("headerLogos");Template["headerLogos"]=new Template("Template.headerLogos",function(){var e=this;return HTML.SECTION({id:"header-logos",class:"logo-marquee-container pt-0 mt-0 card-intersection"},"\n    ",Blaze.Each(function(){return Spacebars.call(e.lookup("logoRows"))},function(){return["\n      ",HTML.DIV({class:function(){return["logo-marquee-row ",Spacebars.mustache(e.lookup("directionClass"),e.lookup("@index"))]},style:function(){return["--row-duration: ",Spacebars.mustache(e.lookup("duration")),"s;"]}},"\n        ",HTML.DIV({class:"logo-marquee-track"},"\n          ",Blaze.Each(function(){return Spacebars.call(e.lookup("logos"))},function(){return["\n            ",HTML.DIV({class:"logo-marquee-item"},"\n              ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("logo"))},class:"logo-marquee-img",alt:"customer logo"}),"\n            "),"\n          "]}),"\n          \n          ",Blaze.Each(function(){return Spacebars.call(e.lookup("logos"))},function(){return["\n            ",HTML.DIV({class:"logo-marquee-item"},"\n              ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("logo"))},class:"logo-marquee-img",alt:"customer logo"}),"\n            "),"\n          "]}),"\n        "),"\n      "),"\n    "]}),"\n  ")})},
189"testimonies.html":function(e,t,n){n.link("./template.testimonies.js",{"*":"*+"})},
189"template.testimonies.js":function(){Template.__checkName("testimonies");Template["testimonies"]=new Template("Template.testimonies",function(){var e=this;return HTML.SECTION({id:"testimonies",class:function(){return Spacebars.mustache(e.lookup("classValue"))}},"\n        ",HTML.DIV({class:"text-center"},"\n            ",HTML.H2(Blaze._TemplateWith(function(){return{c:Spacebars.call("theyTrustUs")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n        "),"\n\n        ",HTML.DIV({class:"row align-items-center"},"\n\n            ",HTML.DIV({class:"col-lg-5"},"\n                ",HTML.DIV({class:"carousel-logos-customers","data-carousel-round":"true","data-carousel-arrows":"false"},"\n                    ",HTML.DIV({class:"carousel-wrapper"},"\n                        ",Blaze.Each(function(){return Spacebars.call(e.lookup("customersLogosPage"))},function(){return["\n                        ",HTML.DIV({class:"carousel-slide"},"\n                            ",HTML.DIV({class:"grid-cols-3 card-ouispeak",style:"height:100%"},"\n                                ",Blaze.Each(function(){return Spacebars.dataMustache(e.lookup("customersLogos"),e.lookup("."))},function(){return["\n                                ",Blaze.If(function(){return Spacebars.call(e.lookup("url"))},function(){return["\n                                ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("url"))}},HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("logo"))},class:"img-fluid",alt:""})),"\n                                "]},function(){return["\n                                ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("logo"))},class:"img-fluid",alt:""}),"\n                                "]}),"\n                                "]}),"\n                            "),"\n                        "),"\n                        "]}),"\n                    "),"\n                "),"\n            "),"\n\n            ",HTML.DIV({class:"col-lg-7"},"\n                ",HTML.DIV({class:"carousel-ouispeak-testimonies","data-carousel-round":"true","data-carousel-arrows":"false"},"\n                    ",HTML.DIV({class:"carousel-wrapper"},"\n                        ",Blaze.Each(function(){return Spacebars.call(e.lookup("testimonies"))},function(){return["\n                        ",HTML.DIV({class:"carousel-slide"},"\n                            ",HTML.DIV({class:"grid justify-items-start"},"\n                                ",HTML.DIV({class:"card-ouispeak p-5"},"\n                                    ",HTML.DIV({class:"img-user"},"\n                                        ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("avatar"))},class:"",alt:""}),"\n                                    "),"\n                                    ",HTML.DIV({class:"testimony mt-5"},"\n                                        ",HTML.P(Blaze.View("lookup:testimony",function(){return Spacebars.mustache(e.lookup("testimony"))})),"\n                                        ",HTML.DIV({class:"d-flex justify-content-around align-items-center mt-5"},"\n                                            ",HTML.DIV({class:"user"},"\n                                                ",HTML.DIV({class:"name"},Blaze.View("lookup:who",function(){return Spacebars.mustache(e.lookup("who"))})),"\n                                                ",HTML.DIV({class:"function"},Blaze.View("lookup:function",function(){return Spacebars.mustache(e.lookup("function"))})),"\n                                            "),"\n                                            ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("companyLogo"))},class:"company-logo"}),"\n                                        "),"\n                                    "),"\n                                "),"\n                            "),"\n                        "),"\n                        "]}),"\n                    "),"\n                "),"\n            "),"\n\n        "),"\n    ")})},
189"calendar-register.js":function(e,t,n){n.link("./calendar-register.html");Template.calendarRegister.onCreated(function(){});Template.calendarRegister.onRendered(function(){});Template.calendarRegister.onDestroyed(function(){});Template.calendarRegister.helpers({});Template.calendarRegister.events({})},
189"component.js":function(e,t,n){var a;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){a=e}},0);var o;n.link("../../lib/collections",{Components:function(e){o=e}},1);n.link("./component.html");var r=new ReactiveVar(false);Template.component.onCreated(function(){var e=this;this.autorun(function(){e.subscribe("component",{name:e.data.name,locale:dfm.languages.getCurrent()});if(r)e.subscribe("component",{name:e.data.name,locale:dfm.languages.getPrimary()})})});var s=/^\/([a-z]{2}(?:-[a-z]{2})?)\/?$/i;Template.component.onRendered(function(){var e=this;this.autorun(function(){var t=a.find({interfaceOuispeak:true}).fetch().map(function(e){return e.code});o.findOne({name:e.data.name,locale:dfm.languages.getCurrent()});if(!t.length)return;Tracker.afterFlush(function(){if(!e.view.isRendered)return;e.findAll(".osv4-footer-lang a").forEach(function(e){var n;var a=null==(n=(e.getAttribute("href")||"").match(s))?void 0:n[1];e.style.display=a&&!t.includes(a)?"none":""})})})});Template.component.onDestroyed(function(){});Template.component.helpers({content:function(){var e;return null==(e=o.findOne({name:this.name,locale:dfm.languages.getCurrent()}))?void 0:e.content},defaultContent:function(){var e;r.set(true);return null==(e=o.findOne({name:this.name,locale:dfm.languages.getPrimary()}))?void 0:e.content}});Template.component.events({})},
189"contact-us.js":function(e,t,n){n.link("./contact-us.html");Template.contactUs.onCreated(function(){});Template.contactUs.onRendered(function(){});Template.contactUs.onDestroyed(function(){});Template.contactUs.helpers({});Template.contactUs.events({})},
189"header-logos.js":function(e,t,n){n.link("./header-logos.html");var a;n.link("../../../testimonies/lib/collections.js",{HeaderLogos:function(e){a=e}},0);function o(e,t){if(null==t||t>e.length)t=e.length;for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function r(e){if(Array.isArray(e))return o(e)}function s(e,t,n){if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var a=Object.keys(n);if("function"==typeof Object.getOwnPropertySymbols)a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}));a.forEach(function(t){s(e,t,n[t])})}return e}function u(e){return r(e)||l(e)||p(e)||i()}function p(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor)n=e.constructor.name;if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}var m={rows:2,duration:20,pauseOnHover:true};function d(){var e=Template.currentData()||{};return c({},m,e)}Template.headerLogos.onCreated(function(){});Template.headerLogos.onRendered(function(){var e=d();if(e.pauseOnHover)this.$(".logo-marquee-row").on("mouseenter",function(){$(this).addClass("paused")}).on("mouseleave",function(){$(this).removeClass("paused")})});Template.headerLogos.onDestroyed(function(){this.$(".logo-marquee-row").off("mouseenter mouseleave")});Template.headerLogos.helpers({logoRows:function(){var e=d();var t=a.find({},{sort:{createdAt:1}}).fetch();if(0===t.length)return[];var n=[];var o=e.rows||m.rows;var r=Math.ceil(t.length/o);for(var s=0;s<o;s++){var l=void 0;if(t.length<=o)l=t;else{var i=s*r;l=t.slice(i,i+r);if(l.length<r/2)l=u(l).concat(u(t.slice(0,r-l.length)))}n.push({index:s,logos:l,duration:e.duration+5*s})}return n},directionClass:function(e){return e%2===0?"marquee-left":"marquee-right"}});Template.headerLogos.events({})},
189"testimonies.js":function(e,t,n){n.link("./testimonies.html");var a;n.link("../../../testimonies/lib/collections.js",{CustomersLogos:function(e){a=e}},0);var o;n.link("../../../testimonies/lib/collections.js",{Testimonies:function(e){o=e}},1);Template.testimonies.onCreated(function(){});Template.testimonies.onRendered(function(){});Template.testimonies.onDestroyed(function(){});Template.testimonies.helpers({testimonies:function(){return o.find({locale:dfm.languages.getCurrent()},{sort:{createdAt:-1}})},customersLogosPage:function(){return[1,2,3]},customersLogos:function(e){var t=a.find().fetch();var n=t.length;var o=Math.round(n/9);var r={};for(var s=0;s<o;s++)r[s+1]=[t[9*s+0],t[9*s+1],t[9*s+2],t[9*s+3],t[9*s+4],t[9*s+5],t[9*s+6],t[9*s+7],t[9*s+8]];return r[e]}});Template.testimonies.events({})}},
189"helpers.js":function(e,t,n){var a;n.link("meteor/davidfm:core/api/carousel/client/carousel.js",{default:function(e){a=e}},0);var o;n.link("/import/api/pages/lib/collections.js",{Pages:function(e){o=e}},1);n.link("./front/header-logos.js");n.link("./front/testimonies.js");n.link("./front/contact-us.js");n.link("./front/calendar-register.js");if("undefined"==typeof app)global.app={};app.carouselInit=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};app.carouselsInstances.push(new a({selector:e,autoplay:true,autoplaySpeed:t.autoplaySpeed,infinite:true,dots:true,arrows:false,responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,infinite:true,dots:true,arrows:false}}]}))};app.headerLogosInit=function(){var e=document.querySelectorAll("headerLogos");if(e.length>0)for(var t=0;t<e.length;t++){var n=e[t];var a=parseInt(n.getAttribute("data-rows"))||2;var o=parseInt(n.getAttribute("data-duration"))||30;var r=document.createElement("div");n.parentNode.replaceChild(r,n);Blaze.renderWithData(Template.headerLogos,{rows:a,duration:o},r)}};app.testimoniesInit=function(){var e=document.querySelectorAll("testimonies");if(e.length>0)Meteor.subscribe("testimonies",{onReady:function(){log("testimonies ready");for(var t=0;t<e.length;t++){var n=e[t].classList;var a=Blaze.toHTMLWithData(Template.testimonies,{classValue:n.value});e[t].outerHTML=a}app.carouselInit(".carousel-ouispeak-testimonies");app.carouselInit(".carousel-logos-customers",{autoplaySpeed:2e3})}})};app.newsInit=function(){var e=document.querySelectorAll("news");if(e.length>0)Meteor.subscribe("news",{onReady:function(){var t=function(t){var n=e[t];var a=o.find({slug:{$regex:"/news/.",$options:"i"},locale:dfm.languages.getCurrent(),showedOnTheHomePage:true},{sort:{publicationDate:-1,createdAt:-1},limit:6}).fetch();var r=document.createElement("section");r.id="news";r.classList.add("text-center");r.classList.add("mb-5");var s="<h2>"+dfm.trans("ourNews")+'</h2><div class="grid"> ';a.forEach(function(e){s+='\n                                        <a class="post card-ouispeak" href="'.concat(e.url,'" target="_blank">\n                                            <div class="banner"><img class="w-100" src="').concat(e.bannerUrl,'" alt=""></div>\n                                            <div class="title">').concat(e.title,"</div>\n                                        </a>\n                                    ")});r.innerHTML=s+"</div>";n.replaceWith(r)};for(var n=0;n<e.length;n++)t(n)}})};app.contactUsFormInit=function(){Meteor.setTimeout(function(){var e=document.querySelectorAll("contact-us-form");for(var t=0;t<e.length;t++)e[t].outerHTML=Blaze.toHTML(Template.contactUs)},100)};app.calendarRegister=function(){Meteor.setTimeout(function(){var e=document.querySelectorAll("calendarRegister");for(var t=0;t<e.length;t++){var n=e[t].getAttribute("data-link")||"sales-conference/ouispeak-rdv";e[t].outerHTML=Blaze.toHTMLWithData(Template.calendarRegister,{link:n});$.getScript("https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js",function(){console.log("Script loaded");log("r2")})}},100)};app.accordionAutoHandle=null;app.accordionDestroy=function(){if(app.accordionAutoHandle){Meteor.clearInterval(app.accordionAutoHandle);app.accordionAutoHandle=null}};app.accordionInit=function(){var e=function(){var e=t[n];var o=e.getAttribute("data-loop");var r=e.querySelectorAll(".btn-accordion");var s=function(t){if(1!==a)Meteor.clearInterval(app.accordionAutoHandle);else a=0;if(!o&&t.classList.contains("active")){t.classList.remove("active");t.parentElement.parentElement.classList.remove("accordion-active");var n=t.getAttribute("data-accordion-id");var r=e.querySelector("#".concat(n));r.classList.remove("active")}else{var s;e.querySelectorAll(".accordion-active").forEach(function(e){e.classList.remove("accordion-active")});e.querySelectorAll(".btn-accordion").forEach(function(e){e.classList.remove("active")});e.querySelectorAll(".accordion-panel").forEach(function(e){e.classList.remove("active")});var l=null==(s=e.querySelector(".col-4"))?void 0:s.offsetHeight;if(l){var i=0;e.querySelectorAll(".accordion-panel").forEach(function(e){e.classList.add("active");i=Math.max(i,e.offsetHeight);e.classList.remove("active")});i=Math.max(i,l);e.style.height=i+"px"}t.classList.add("active");t.parentElement.parentElement.classList.add("accordion-active");var c=t.getAttribute("data-accordion-id");var u=e.querySelector("#".concat(c));u.classList.add("active")}};r.forEach(function(e){e.addEventListener("click",function(e){s(e.currentTarget)})});if(o){var l=1;app.accordionAutoHandle=Meteor.setInterval(function(){l+=1;if(l>r.length)l=1;a=1;var e=document.querySelector("[data-accordion-id=accordion-"+l+"]");if(e)s(e)},app.accordionLoopTime)}};var t=document.querySelectorAll(".accordion");var n,a;for(n=0;n<t.length;n++)e()};app.confFeaturesAccordionInit=function(){document.querySelectorAll(".conf-features-accordion")};app.playbtnInit=function(){var e=function(e){var n=t[e].getAttribute("data-id");var a=t[e].getAttribute("data-type");var o=document.getElementById(n);if("video"===a){var r=o.querySelectorAll("video")[0];t[e].addEventListener("click",function(e){o.style.display="block";r.play()});o.querySelector(".modal-close").addEventListener("click",function(e){e.preventDefault();o.style.display="none";r.pause()})}else{var s=o.querySelectorAll("iframe")[0];t[e].addEventListener("click",function(e){o.style.display="block";o.querySelectorAll("video");s.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")});o.querySelector(".modal-close").addEventListener("click",function(e){e.preventDefault();o.style.display="none";s.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")})}};var t=document.getElementsByClassName("playbtn");for(var n=0;n<t.length;n++)e(n)};app.intersectionsInit=function(){var e="IntersectionObserver"in window;if(e){var t=new IntersectionObserver(function(e){e.forEach(function(e){if(e.intersectionRatio>.01)e.target.classList.add("active")})},{root:null,rootMargin:"0px",threshold:.01});var n=document.querySelectorAll(".card-intersection");
189n.forEach(function(e){t.observe(e)})}};app.parallaxInit=function(){var e=-.1;var t=-150;var n=-100;var a=.1;var o=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};document.querySelectorAll(".parallax-wrapper").forEach(function(r){var s=r.getBoundingClientRect().top;if(o.init)s-=200;var l=s*e;var i=s*a;var c=r.querySelectorAll(".parallax-up");c.forEach(function(n){n.style.transform="translateY(".concat(-e+t-l,"px)")});var u=r.querySelectorAll(".parallax-down");u.forEach(function(e){e.style.transform="translateY(".concat(a-n-i,"px)")})})};o({init:true});document.addEventListener("scroll",function(){o()})};app.selectLanguagesInit=function(){var e=document.querySelectorAll("selectLanguages");if(e.length>0){var t=dfm.languages.getAll();var n=document.createElement("select");var a=document.createElement("option");a.value="";a.textContent="-- "+dfm.trans("choose");n.appendChild(a);t.forEach(function(e){var t=document.createElement("option");t.value=e.code;t.textContent=dfm.trans(e.text);if(e.code===dfm.languages.getCurrent())t.selected=true;n.appendChild(t)});for(var o=0;o<e.length;o++){var r=e[o].attributes;for(var s=0;s<r.length;s++)n.setAttribute(r[s].name,r[s].value);e[o].outerHTML=n.outerHTML}}}}},lib:{
189"collections.js":function(e,t,n){n.export({Components:function(){return a}});var a=new Mongo.Collection("o_components")}}},contact:{client:{admin:{
189"contacts.html":function(e,t,n){n.link("./template.contacts.js",{"*":"*+"})},
189"template.contacts.js":function(){Template.__checkName("adminContacts");Template["adminContacts"]=new Template("Template.adminContacts",function(){var e=this;return[HTML.Raw("<h1>Contacts</h1>\n\n    "),Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),HTML.Raw("\n\n    <p>All ouispeak admins should receive an email for a new contact</p>\n\n    "),HTML.TABLE({class:"mt-4 table table-hover table-stripped"},"\n        ",HTML.THEAD("\n            ",HTML.TR("\n                ",HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("contacts"),orderBy:Spacebars.call("name"),title:Spacebars.call("name")}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),"\n                ",HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("contacts"),orderBy:Spacebars.call("email"),title:Spacebars.call("email")}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),HTML.Raw("\n                <th>message</th>\n                <th>phone</th>\n                <th>company</th>\n                "),HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("contacts"),orderBy:Spacebars.call("createdAt"),title:Spacebars.call("date"),default:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),"\n                ",HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("contacts"),orderBy:Spacebars.call("read"),title:Spacebars.call("Read status")}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),HTML.Raw("\n                <th></th>\n            ")),"\n        "),"\n        ",HTML.TBODY("\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("contacts"))},function(){return["\n                ",HTML.TR({style:function(){return["background-color:",Spacebars.mustache(e.lookup("getRowColor"))]}},"\n                    ",HTML.TD(HTML.B(Blaze.View("lookup:name",function(){return Spacebars.mustache(e.lookup("name"))}))),"\n                    ",HTML.TD(HTML.A({href:function(){return["mailto:",Spacebars.mustache(e.lookup("email"))]},title:"Send a mail to this contact"},Blaze.View("lookup:email",function(){return Spacebars.mustache(e.lookup("email"))}))),"\n                    ",HTML.TD("\n                        ",Blaze.View("lookup:nl2br",function(){return Spacebars.makeRaw(Spacebars.mustache(e.lookup("nl2br"),e.lookup("message")))}),"\n                    "),"\n                    ",HTML.TD(Blaze.View("lookup:phone",function(){return Spacebars.mustache(e.lookup("phone"))})),"\n                    ",HTML.TD(Blaze.View("lookup:company",function(){return Spacebars.mustache(e.lookup("company"))})),"\n                    ",HTML.TD(Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"))})),"\n                    ",HTML.TD("\n                        ",Blaze._TemplateWith(function(){return{methodName:Spacebars.call("contactUs.toggleRead"),methodParams:Spacebars.call(e.lookup("_id")),value:Spacebars.call(e.lookup("read")),text:Spacebars.call("Read")}},function(){return Spacebars.include(e.lookupTemplate("dfmButtonSwitch"))}),"\n                    "),HTML.Raw('\n                    <td><button class="btn btn-xs btn-danger js-remove"><span class="material-icons-outlined">delete</span></button></td>\n                ')),"\n            "]}),"\n        "),"\n    ")]})},
189"contacts.js":function(e,t,n){var a;n.link("../../lib/collections.js",{ContactUs:function(e){a=e}},0);n.link("./contacts.html");n.link("meteor/davidfm:core/api/button-switch/client/main.js");var o="contacts";Template.adminContacts.onCreated(function(){this.subscribe("adminContactsUs")});Template.adminContacts.onRendered(function(){});Template.adminContacts.onDestroyed(function(){});Template.adminContacts.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{title:"Contacts"}])},contacts:function(){var e={};e[Session.get("sortBy_"+o)]=Session.get("sortOrder_"+o);if("name"===Session.get("sortBy_"+o))e[Session.get("sortBy_"+o)]=-Session.get("sortOrder_"+o);return a.find({},{sort:e})},getRowColor:function(){return this.read?"rgba(0,255,0,0.05)":"rgba(255,0,0,0.05)"}});Template.adminContacts.events({"click .js-remove":function(e){var t=this;dfm.confirm("warning, remove this permanently ?",function(e){if(!e)return;Meteor.call("contactUs.remove",t._id,function(e,t){if(e)dfm.toastError(e)})},e.shiftKey)}})}}},lib:{
189"collections.js":function(e,t,n){n.export({ContactUs:function(){return a}});var a=new Mongo.Collection("o_contact_us")}}},forms:{client:{admin:{
189"form.html":function(e,t,n){n.link("./template.form.js",{"*":"*+"})},
189"template.form.js":function(){Template.__checkName("adminForm");Template["adminForm"]=new Template("Template.adminForm",function(){var e=this;return[HTML.STYLE("\n        .form__row:nth-child(2n) {\n            background-color: rgba(0, 0, 0, 0.1)\n        }\n    "),"\n    ",HTML.H1(Blaze.View("lookup:title",function(){return Spacebars.mustache(e.lookup("title"))})),"\n\n    ",Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n    ",HTML.DIV({class:"mt-5"},"\n\n        ",HTML.DIV({class:"d-flex items-start justify-content-between mb-4"},"\n            ",HTML.DIV("\n                Submitted at : ",HTML.B(Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"))})),"\n            "),HTML.Raw('\n            <div class="float-right">\n                <button class="btn btn-lg btn-danger js-remove">Delete</button>\n            </div>\n\n        ')),"\n        ",Blaze._TemplateWith(function(){return{methodName:Spacebars.call("forms.toggleRead"),methodParams:Spacebars.call(e.lookup("_id")),value:Spacebars.call(e.lookup("read")),text:Spacebars.call("Read"),textOn:Spacebars.call("Already Read"),textOff:Spacebars.call("Not Read")}},function(){return Spacebars.include(e.lookupTemplate("dfmButtonSwitch"))}),"\n\n        ",HTML.DIV({class:"mt-5"},HTML.Raw('\n            <div class="row">\n                <h4 class="d-none d-lg-block col-lg-6">Question</h4>\n                <h4 class="d-none d-lg-block col-lg-6">Answer</h4>\n                <h4 class="d-lg-none">Questions/Answers</h4>\n            </div>\n            '),Blaze.Each(function(){return Spacebars.call(e.lookup("data"))},function(){return["\n                ",HTML.DIV({class:"form__row py-4 row"},"\n                    ",HTML.P({class:"col-lg-6"},Blaze.View("lookup:getLabelOrName",function(){return Spacebars.mustache(e.lookup("getLabelOrName"),e.lookup("."))})),"\n                    ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("isEmpty"),e.lookup("value"))},function(){return HTML.Raw('\n                        <p class="mt-1 col-lg-6 text-danger"><b>(undefined)</b></p>\n                    ')},function(){return["\n                        ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("isLink"),e.lookup("value"))},function(){return["\n                            ",HTML.P({class:"mt-1 col-lg-6"},HTML.B(HTML.A({href:function(){return Spacebars.mustache(e.lookup("value"))}},Blaze.View("lookup:value",function(){return Spacebars.mustache(e.lookup("value"))})))),"\n                        "]},function(){return["\n                            ",HTML.P({class:"mt-1 col-lg-6"},HTML.B(Blaze.View("lookup:value",function(){return Spacebars.mustache(e.lookup("value"))}))),"\n                        "]}),"\n                    "]}),"\n                "),"\n            "]}),"\n        "),"\n\n    ")]})},
189"forms.html":function(e,t,n){n.link("./template.forms.js",{"*":"*+"})},
189"template.forms.js":function(){Template.__checkName("adminForms");Template["adminForms"]=new Template("Template.adminForms",function(){var e=this;return[HTML.Raw("<h1>Forms</h1>\n\n  "),Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n  ",HTML.TABLE({class:"table table-hover table-stripped"},"\n    ",HTML.THEAD("\n      ",HTML.TR("\n        ",HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("forms"),orderBy:Spacebars.call("title"),title:Spacebars.call("title")}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),"\n        ",HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("forms"),orderBy:Spacebars.call("createdAt"),title:Spacebars.call("createdAt"),default:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),HTML.Raw("\n        <th>Data (3 first elements)</th>\n        "),HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("forms"),orderBy:Spacebars.call("read"),title:Spacebars.call("Read status")}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),HTML.Raw('\n        <th width="50"></th>\n      ')),"\n    "),"\n    ",HTML.TBODY("\n      ",Blaze.Each(function(){return Spacebars.call(e.lookup("forms"))},function(){return["\n        ",HTML.TR({style:function(){return["background-color:",Spacebars.mustache(e.lookup("getRowColor"),e.lookup("read"))]}},"\n          ",HTML.TD("\n            ",HTML.DIV(HTML.B(HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminForm",Spacebars.kw({id:e.lookup("_id")}))},"data-id":function(){return Spacebars.mustache(e.lookup("id"))}},Blaze.View("lookup:title",function(){return Spacebars.mustache(e.lookup("title"))})))),"\n            ",HTML.DIV(Blaze.View("lookup:route",function(){return Spacebars.mustache(e.lookup("route"))})),"\n          "),"\n          ",HTML.TD(Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"))})),"\n          ",HTML.TD("\n            ",Blaze.Each(function(){return Spacebars.dataMustache(e.lookup("dataFirstElements"),3)},function(){return["\n              ",HTML.P({class:"col-lg-6"},Blaze.View("lookup:getLabelOrName",function(){return Spacebars.mustache(e.lookup("getLabelOrName"),e.lookup("."))})," =\n                ",Blaze.If(function(){return Spacebars.call(e.lookup("value"))},function(){return["\n                  ",HTML.B(Blaze.View("lookup:value",function(){return Spacebars.mustache(e.lookup("value"))})),"\n                "]},function(){return HTML.Raw("\n                  <em>(undefined)</em>\n                ")}),"\n              "),"\n            "]}),"\n            ",HTML.P(HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminForm",Spacebars.kw({id:e.lookup("_id")}))},"data-id":function(){return Spacebars.mustache(e.lookup("id"))}},"Click to see more")),"\n          "),"\n          ",HTML.TD("\n          ",HTML.TD("\n            ",Blaze._TemplateWith(function(){return{methodName:Spacebars.call("forms.toggleRead"),methodParams:Spacebars.call(e.lookup("_id")),value:Spacebars.call(e.lookup("read")),text:Spacebars.call("Read")}},function(){return Spacebars.include(e.lookupTemplate("dfmButtonSwitch"))}),"\n          "),"\n          "),HTML.Raw('\n          <td><button class="btn btn-xs btn-danger js-remove"><span class="material-icons-outlined">delete</span></button></td>\n        ')),"\n      "]}),"\n    "),"\n  ")]})},
189"form.js":function(e,t,n){n.link("../../lib/collections.js",{Forms:function(e){}},0);n.link("./form.html");n.link("meteor/davidfm:core/api/button-switch/client/main.js");Template.adminForm.onCreated(function(){});Template.adminForm.onRendered(function(){});Template.adminForm.onDestroyed(function(){});Template.adminForm.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{link:Router.path("adminForms"),class:"",title:"Forms"},{title:"Form"}])},data:function(){var e=this;console.log("data",this.data);if(!this.data)return;return Object.keys(this.data).map(function(t){console.log(e.data[t]);return e.data[t]})},getLabelOrName:function(e){return e.label||e.name},isEmpty:function(e){return 0===Object.keys(e).length},toUpperCase:function(e){return e.toUpperCase()},isLink:function(e){return(null==e?void 0:e.startsWith("http://"))||(null==e?void 0:e.startsWith("https://"))}});Template.adminForm.events({"click .js-remove":function(e){var t=this;e.preventDefault();e.stopPropagation();dfm.confirm("Remove this?",function(e){if(!e)return;Meteor.call("forms.remove",t._id,function(e,t){if(e)dfm.toastError(e);else Router.go("/")})},e.shiftKey)}})},
189"forms.js":function(e,t,n){var a;n.link("../../lib/collections.js",{Forms:function(e){a=e}},0);n.link("./forms.html");n.link("meteor/davidfm:core/api/button-switch/client/main.js");var o="forms";var r=new ReactiveVar(false);Template.adminForms.onCreated(function(){this.subscribe("adminForms",{onReady:function(){r.set(true)}})});Template.adminForms.onRendered(function(){this.autorun(function(){if(!r.get())return;Meteor.setTimeout(function(){app.accordionInit()},1e3)})});Template.adminForms.onDestroyed(function(){});Template.adminForms.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{title:"Forms"}])},forms:function(){var e={};e[Session.get("sortBy_"+o)]=Session.get("sortOrder_"+o);if("title"===Session.get("sortBy_"+o))e[Session.get("sortBy_"+o)]=-Session.get("sortOrder_"+o);return a.find({},{sort:e})},data:function(){var e=this;if(!this.data)return;return Object.keys(this.data).map(function(t){return e.data[t]})},dataFirstElements:function(e){var t=this;if(!this.data)return;return Object.keys(this.data).map(function(e){return t.data[e]}).splice(0,e)},getLabelOrName:function(e){return e.label||e.name},isEmpty:function(e){return 0===Object.keys(e).length},toUpperCase:function(e){return e.toUpperCase()},isLink:function(e){return e.startsWith("http://")||e.startsWith("https://")},getRowColor:function(e){return e?"rgba(0,255,0,0.05)":"rgba(255,0,0,0.05)"}});Template.adminForms.events({"click .js-remove":function(e){var t=this;e.preventDefault();e.stopPropagation();dfm.confirm("remove this?",function(e){if(!e)return;Meteor.call("forms.remove",t._id,function(e,t){if(e)dfm.toastError(e)})},e.shiftKey)}})}}},lib:{
189"collections.js":function(e,t,n){n.export({Forms:function(){return a}});var a=new Mongo.Collection("o_forms")}}},history:{client:{admin:{
189"history.html":function(e,t,n){n.link("./template.history.js",{"*":"*+"})},
189"template.history.js":function(){Template.__checkName("adminHistory");Template["adminHistory"]=new Template("Template.adminHistory",function(){var e=this;return[HTML.Raw("<h1>History</h1>\n\n  "),Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n  ",HTML.DIV({class:"choose-language mb-3"},"\n    ",Blaze.Each(function(){return Spacebars.call(e.lookup("getSiteLanguages"))},function(){return["\n      ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),e.lookup("currentRouteName"),Spacebars.kw({sourceId:Spacebars.dot(e.lookup(".."),"source","_id"),lng:e.lookup("code")}))},class:function(){return["btn btn-xs ",Spacebars.mustache(e.lookup("lngStatus"),e.lookup("code"),Spacebars.dot(e.lookup(".."),"source","_id"))]}},Blaze.View("lookup:code",function(){return Spacebars.mustache(e.lookup("code"))})),"\n    "]}),"\n  "),"\n\n  ",HTML.DIV({class:"float-end"},"\n    ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("page"),"published"))},function(){return["\n      ",HTML.A({href:function(){return["/",Spacebars.mustache(Spacebars.dot(e.lookup("page"),"locale")),Spacebars.mustache(Spacebars.dot(e.lookup("page"),"slug"))]},class:"btn btn-xs btn-ouispeak",target:"_blank"},HTML.Raw('\n        <span class="material-icons-outlined">link</span>\n      ')),"\n    "]}),"\n  "),"\n\n  ",HTML.DIV("slug : ",Blaze.View("lookup:page.slug",function(){return Spacebars.mustache(Spacebars.dot(e.lookup("page"),"slug"))})),"\n  ",HTML.DIV("title : ",Blaze.View("lookup:page.title",function(){return Spacebars.mustache(Spacebars.dot(e.lookup("page"),"title"))})),"\n  ",HTML.TABLE({class:"table table-hover table-stripped"},"\n    ",HTML.THEAD("\n      ",HTML.TR(HTML.Raw('\n        <th width="120">number</th>\n        <th>Content</th>\n        <th><abbr title="Person who saved this history last">author</abbr></th>\n        <th width="200">createdAt</th>\n        <th width="300"></th>\n      ')),"\n    "),"\n    ",HTML.TBODY("\n      ",Blaze.Each(function(){return Spacebars.call(e.lookup("history"))},function(){return["\n        ",HTML.TR("\n          ",HTML.TD(Blaze.View("lookup:number",function(){return Spacebars.mustache(e.lookup("number"),e.lookup("@index"))})),"\n          ",HTML.TD(Blaze.View("lookup:sliceText",function(){return Spacebars.mustache(e.lookup("sliceText"),e.lookup("pageContent"),100)})),"\n          ",HTML.TD(Blaze._TemplateWith(function(){return{userId:Spacebars.call(e.lookup("createdBy")),subscribe:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("dfmUserFullname"))})),"\n          ",HTML.TD(Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"))})),"\n          ",HTML.TD({class:"text-end"},"\n            ",Blaze.If(function(){return Spacebars.call(e.lookup("published"))},function(){return HTML.Raw('\n              <button type="button" class="button-unpublish btn-md btn btn-success">Published</button>\n            ')},function(){return HTML.Raw('\n              <button type="button" class="button-publish btn-md btn btn-primary">Publish</button>\n            ')}),"\n            ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),e.lookup("getEditRouteName"),Spacebars.kw({sourceId:Spacebars.dot(e.lookup("page"),"sourceId"),lng:Spacebars.dot(e.lookup("page"),"locale"),query:e.lookup("getEditQuery")}))},class:"button-edit btn btn-md btn-warning","data-history-id":function(){return Spacebars.mustache(e.lookup("_id"))}},"Edit"),"\n            ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"try",Spacebars.kw({sourceId:e.lookup("_id"),lng:Spacebars.dot(e.lookup("page"),"locale"),query:"isHistory=true"}))},class:"button-try btn btn-md btn-info","data-history-id":function(){return Spacebars.mustache(e.lookup("_id"))}}," Try"),"\n            ",HTML.A({class:"btn btn-xs btn-danger js-remove","data-history-id":function(){return Spacebars.mustache(e.lookup("_id"))}},HTML.Raw('<span class="material-icons-outlined">delete</span>')),"\n          "),"\n        "),"\n      "]}),"\n    "),"\n  "),"\n  ",Blaze.If(function(){return Spacebars.call(e.lookup("isWebmaster"))},function(){return["\n    ",HTML.DIV({class:"mt-5"},"\n      ",Spacebars.include(e.lookupTemplate("onlyWebmaster")),"\n      ",HTML.PRE(Blaze.View("lookup:JSONstringifyPre",function(){return Spacebars.mustache(e.lookup("JSONstringifyPre"),e.lookup("."))})),"\n    "),"\n  "]})]})},
189"history.js":function(e,t,n){var a;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){a=e}},0);var o,r;n.link("../../../../api/pages/lib/collections.js",{Pages:function(e){o=e},PagesHistory:function(e){r=e}},1);n.link("meteor/davidfm:core/api/users/client/templates-helpers.js");n.link("./history.html");var s;var l=function(){var e=Router.current().route.getName();return"adminPagesHistory"===e?{path:"adminPages",title:"Pages"}:"adminBlogsHistory"===e?{path:"adminBlogs",title:"Blogs"}:"adminNewsHistory"===e?{path:"adminNews",title:"News"}:{path:"adminDocs",title:"Docs"}};Template.adminHistory.onCreated(function(){});Template.adminHistory.onRendered(function(){log(this)});Template.adminHistory.onDestroyed(function(){});Template.adminHistory.helpers({breadcrumbLinks:function(){var e=Router.current().route.getName();log(e.replace("History","Edit"));return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{link:Router.path(l().path),class:"",title:l().title},{link:Router.path(e.replace("History","Edit"),{sourceId:Router.current().params.sourceId,lng:Router.current().params.lng}),class:"",title:"Edit"},{title:"History"}])},history:function(){var e=Router.current().params;var t=r.find({"page.sourceId":e.sourceId,"page.locale":e.lng},{sort:{createdAt:-1}});s=t.count();historicNumber=s;return t},pageTitle:function(){var e;return(null==(e=o.findOne({pageId:this.page._id}))?void 0:e.title)||"to define"},pageContent:function(){return this.page.url||this.page.content},number:function(e){var t=Router.current().params;return r.find({"page.sourceId":t.sourceId,"page.locale":t.lng}).count()-e},sliceText:function(e,t){if(!e)return;var n="[...]";if(t<e.length-n.length)return e.slice(0,t)+n;return e},lngStatus:function(e,t){var n;log("lngStatus");var r=a.findOne({code:e});if(e===Router.current().params.lng)return"btn-primary btn-lg text-white";var s=null==(n=o.findOne({sourceId:t,locale:e,published:true}))?void 0:n.published;if(s)return"btn-success btn-sm text-white opacity-50";if(null==r?void 0:r.interfaceOuispeak)return"btn-warning btn-sm opacity-50";return"border"},currentRouteName:function(){return Router.current().route.getName()},getEditRouteName:function(){var e=Router.current().route.getName();return e.replace("History","Edit")},getEditQuery:function(){return"historyId=".concat(this._id)},isContentEmpty:function(){var e,t;return!(null==(e=this.page)?void 0:e.url)&&!(null==(t=this.page)?void 0:t.content)}});Template.adminHistory.events({"click .button-publish":function(e,t){Meteor.call("admin.pagesHistory.publish",{historyId:this._id,sourceId:this.page.sourceId,locale:this.page.locale},function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess({message:"published",autohide:true})})},"click .button-unpublish":function(e,t){Meteor.call("admin.pagesHistory.unpublish",{historyId:this._id,sourceId:this.page.sourceId,locale:this.page.locale},function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess({message:"unpublished",autohide:true})})},"mouseover .button-unpublish":function(e,t){var n=e.currentTarget;n.classList.add("btn-danger");n.textContent="Unpublish"},"mouseout .button-unpublish":function(e,t){var n=e.currentTarget;n.classList.remove("btn-danger");n.textContent="Published"},"click .js-remove":function(e){var t=this;dfm.confirm("Are you sure to remove this historic ?",function(e){if(!e)return;Meteor.call("admin.pagesHistory.remove",t._id,function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess({message:"removed",autohide:true})})},e.shiftKey)}})}}}},menu:{client:{admin:{
189"menu.html":function(e,t,n){n.link("./template.menu.js",{"*":"*+"})},
189"template.menu.js":function(){Template.__checkName("adminMenu");Template["adminMenu"]=new Template("Template.adminMenu",function(){var e=this;return HTML.DIV({class:"admin-menu container py-4"},"\n        ",Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),HTML.Raw('\n\n        <div class="d-flex justify-content-between align-items-center mb-3">\n            <h1 class="m-0">Navigation menu</h1>\n            <button class="btn btn-primary js-add-top"><span class="material-icons-outlined">add</span> Add entry</button>\n        </div>\n\n        <p class="text-muted">\n            Nav principale du site (collection <code>o_menu</code>). Les sous-entr\xe9es forment les dropdowns\n            et les cartes de m\xe9ga-menu. Lien : <code>page</code> = slug CMS (localis\xe9 automatiquement),\n            <code>url</code> = lien brut.\n        </p>\n\n        \n        '),HTML.DIV({class:"menu-langbar mb-4"},HTML.Raw('\n            <span class="menu-langbar-label">Langue \xe9dit\xe9e</span>\n            '),Blaze.Each(function(){return Spacebars.call(e.lookup("editableLanguages"))},function(){return["\n                ",HTML.BUTTON({type:"button",class:function(){return["btn btn-sm js-set-lang ",Spacebars.mustache(e.lookup("langBtnClass"))]},"data-lng":function(){return Spacebars.mustache(e.lookup("code"))}},Blaze.View("lookup:code",function(){return Spacebars.mustache(e.lookup("code"))})),"\n            "]}),"\n        "),"\n\n        ",Blaze.Each(function(){return Spacebars.call(e.lookup("topEntries"))},function(){return["\n            ",HTML.DIV({class:"menu-group mb-4"},"\n                ",Spacebars.include(e.lookupTemplate("menuEntryForm")),"\n\n                ",HTML.DIV({class:"menu-children"},"\n                    ",Blaze.Each(function(){return Spacebars.dataMustache(e.lookup("childrenOf"),e.lookup("."))},function(){return["\n                        ",Spacebars.include(e.lookupTemplate("menuEntryForm")),"\n                    "]}),"\n                    ",HTML.BUTTON({class:"btn btn-sm btn-outline-secondary js-add-child","data-
189parent":function(){return Spacebars.mustache(e.lookup("_id"))}},HTML.Raw('<span class="material-icons-outlined">subdirectory_arrow_right</span> Add sub-entry')),"\n                "),"\n            "),"\n        "]}),HTML.Raw('\n\n        \n        <h2 class="h4 mt-5">Call to action</h2>\n        <p class="text-muted">Bouton de la barre de nav, \xe0 droite. Une seule entr\xe9e est rendue (la premi\xe8re activ\xe9e).</p>\n        '),Blaze.Each(function(){return Spacebars.call(e.lookup("ctaEntries"))},function(){return["\n            ",HTML.DIV({class:"menu-group mb-3"},"\n                ",Spacebars.include(e.lookupTemplate("menuEntryForm")),"\n            "),"\n        "]},function(){return HTML.Raw('\n            <button class="btn btn-outline-primary js-add-cta"><span class="material-icons-outlined">add</span> Add the CTA button</button>\n        ')}),"\n    ")});Template.__checkName("menuEntryForm");Template["menuEntryForm"]=new Template("Template.menuEntryForm",function(){var e=this;return HTML.FORM({class:function(){return["menu-entry js-menu-form ",Spacebars.mustache(e.lookup("childClass"))]},"data-id":function(){return Spacebars.mustache(e.lookup("_id"))}},"\n        ",HTML.DIV({class:"menu-entry-row"},HTML.Raw('\n            <div class="reorder">\n                <button type="button" class="btn btn-sm js-move" data-dir="up" title="Move up">▲</button>\n                <button type="button" class="btn btn-sm js-move" data-dir="down" title="Move down">▼</button>\n            </div>\n\n            '),HTML.INPUT({type:"text",name:function(){return["label[",Spacebars.mustache(e.lookup("editLang")),"]"]},class:"form-control",placeholder:function(){return["Label ",Spacebars.mustache(e.lookup("editLangUpper"))]},value:function(){return Spacebars.mustache(e.lookup("labelForEditLang"))}}),"\n\n            ",HTML.SELECT({name:"type",class:"form-select"},"\n                ",Blaze.Each(function(){return Spacebars.call(e.lookup("typeOptions"))},function(){return["\n                    ",Blaze.If(function(){return Spacebars.call(e.lookup("isSelected"))},function(){return["\n                        ",HTML.OPTION({value:function(){return Spacebars.mustache(e.lookup("value"))},selected:""},Blaze.View("lookup:labelText",function(){return Spacebars.mustache(e.lookup("labelText"))})),"\n                    "]},function(){return["\n                        ",HTML.OPTION({value:function(){return Spacebars.mustache(e.lookup("value"))}},Blaze.View("lookup:labelText",function(){return Spacebars.mustache(e.lookup("labelText"))})),"\n                    "]}),"\n                "]}),"\n            "),"\n\n            ",HTML.INPUT({type:"text",name:"href",class:"form-control",placeholder:"# / slug / URL",value:function(){return Spacebars.mustache(e.lookup("href"))}}),"\n\n            ",HTML.LABEL({class:"enabled-toggle",title:"Enabled"},"\n                ",HTML.INPUT(HTML.Attrs({type:"checkbox",name:"enabled"},function(){return Spacebars.attrMustache(e.lookup("isChecked"),e.lookup("enabled"))})),"\n            "),HTML.Raw('\n\n            <button type="submit" class="btn btn-sm btn-success js-save" title="Save"><span class="material-icons-outlined">save</span></button>\n            <button type="button" class="btn btn-sm btn-danger js-delete" title="Delete"><span class="material-icons-outlined">delete</span></button>\n        ')),"\n\n        ",Blaze.If(function(){return Spacebars.call(e.lookup("isMegaParent"))},function(){return["\n            ",HTML.DIV({class:"menu-panel"},HTML.Raw('\n                <div class="menu-panel-title">Panneau de m\xe9ga-menu</div>\n\n                '),HTML.DIV({class:"menu-field-row"},"\n                    ",HTML.LABEL("Colonnes\n                        ",HTML.SELECT({name:"columns",class:"form-select form-select-sm"},"\n                            ",Blaze.Each(function(){return Spacebars.call(e.lookup("columnOptions"))},function(){return["\n                                ",Blaze.If(function(){return Spacebars.call(e.lookup("isSelected"))},function(){return["\n                                    ",HTML.OPTION({value:function(){return Spacebars.mustache(e.lookup("value"))},selected:""},Blaze.View("lookup:value",function(){return Spacebars.mustache(e.lookup("value"))})),"\n                                "]},function(){return["\n                                    ",HTML.OPTION({value:function(){return Spacebars.mustache(e.lookup("value"))}},Blaze.View("lookup:value",function(){return Spacebars.mustache(e.lookup("value"))})),"\n                                "]}),"\n                            "]}),"\n                        "),"\n                    "),"\n                    ",HTML.LABEL("Type de cartes\n                        ",HTML.SELECT({name:"cardVariant",class:"form-select form-select-sm"},"\n                            ",Blaze.Each(function(){return Spacebars.call(e.lookup("variantOptions"))},function(){return["\n                                ",Blaze.If(function(){return Spacebars.call(e.lookup("isSelected"))},function(){return["\n                                    ",HTML.OPTION({value:function(){return Spacebars.mustache(e.lookup("value"))},selected:""},Blaze.View("lookup:labelText",function(){return Spacebars.mustache(e.lookup("labelText"))})),"\n                                "]},function(){return["\n                                    ",HTML.OPTION({value:function(){return Spacebars.mustache(e.lookup("value"))}},Blaze.View("lookup:labelText",function(){return Spacebars.mustache(e.lookup("labelText"))})),"\n                                "]}),"\n                            "]}),"\n                        "),"\n                    "),"\n                "),"\n\n                ",HTML.DIV({class:"menu-field-row"},"\n                    ",HTML.LABEL({class:"grow"},"Titre du panneau\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["intro[title][",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("introTitle"))}}),"\n                    "),"\n                    ",HTML.LABEL({class:"grow"},"Sous-titre\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["intro[subtitle][",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("introSubtitle"))}}),"\n                    "),"\n                "),HTML.Raw('\n\n                <div class="menu-panel-title">Barre de bas de panneau</div>\n\n                '),HTML.DIV({class:"menu-field-row"},"\n                    ",HTML.LABEL({class:"grow"},"Accroche\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["footer[text][",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("footText"))}}),"\n                    "),"\n                    ",HTML.LABEL({class:"grow"},"Seconde ligne\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["footer[subtext][",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("footSubtext"))}}),"\n                    "),"\n                "),"\n\n                ",HTML.DIV({class:"menu-field-row"},"\n                    ",HTML.LABEL("Bouton\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["footer[ctaLabel][",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("footCtaLabel"))}}),"\n                    "),"\n                    ",HTML.LABEL({class:"grow"},"Lien du bouton\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:"footer[ctaHref]",value:function(){return Spacebars.mustache(e.lookup("footCtaHref"))}}),"\n                    "),"\n                "),"\n\n                ",HTML.DIV({class:"menu-field-row"}
189,"\n                    ",HTML.LABEL("Lien secondaire\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["footer[linkLabel][",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("footLinkLabel"))}}),"\n                    "),"\n                    ",HTML.LABEL({class:"grow"},"Cible\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:"footer[linkHref]",value:function(){return Spacebars.mustache(e.lookup("footLinkHref"))}}),"\n                    "),"\n                    ",HTML.LABEL("Ic\xf4ne\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:"footer[linkIcon]",value:function(){return Spacebars.mustache(e.lookup("footLinkIcon"))},placeholder:"ex. open_in_new"}),"\n                    "),"\n                "),"\n            "),"\n        "]}),"\n\n        ",Blaze.If(function(){return Spacebars.call(e.lookup("isMegaCard"))},function(){return["\n            ",HTML.DIV({class:"menu-panel"},HTML.Raw('\n                <div class="menu-panel-title">Carte</div>\n\n                '),HTML.DIV({class:"menu-field-row"},"\n                    ",Blaze.If(function(){return Spacebars.call(e.lookup("isMediaCard"))},function(){return["\n                        ",HTML.LABEL({class:"grow"},"Visuel (URL)\n                            ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:"image",value:function(){return Spacebars.mustache(e.lookup("image"))},placeholder:"https://storage.googleapis.com/…"}),"\n                        "),"\n                    "]},function(){return["\n                        ",HTML.LABEL("Ic\xf4ne\n                            \n                            ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:"icon",value:function(){return Spacebars.mustache(e.lookup("icon"))},placeholder:"mic"}),"\n                        "),"\n                        ",HTML.SPAN({class:"menu-icon-preview material-symbols-outlined"},Blaze.View("lookup:iconPreview",function(){return Spacebars.mustache(e.lookup("iconPreview"))})),"\n                    "]}),"\n                    ",HTML.LABEL({class:"grow"},"Badge\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["badge[",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("badgeText"))}}),"\n                    "),"\n                    ",HTML.LABEL({class:"menu-check"},"\n                        ",HTML.INPUT(HTML.Attrs({type:"checkbox",name:"highlighted"},function(){return Spacebars.attrMustache(e.lookup("isChecked"),e.lookup("highlighted"))}))," Mise en avant\n                    "),"\n                "),"\n\n                ",HTML.DIV({class:"menu-field-row"},"\n                    ",HTML.LABEL({class:"grow"},"Description\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["description[",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("descriptionText"))}}),"\n                    "),"\n                "),"\n\n                ",HTML.DIV({class:"menu-field-row"},"\n                    ",HTML.LABEL({class:"grow"},"Ligne d'appui (chiffres)\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["meta[",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("metaText"))},placeholder:"3 langues \xb7 5 jours"}),"\n                    "),"\n                    ",HTML.LABEL("Lien de carte\n                        ",HTML.INPUT({type:"text",class:"form-control form-control-sm",name:function(){return["ctaLabel[",Spacebars.mustache(e.lookup("editLang")),"]"]},value:function(){return Spacebars.mustache(e.lookup("ctaLabelText"))},placeholder:"Lire le cas"}),"\n                    "),"\n                "),"\n            "),"\n        "]}),"\n    ")})},
189"menu.js":function(e,t,n){var a;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){a=e}},0);var o;n.link("/import/api/menu/lib/collections.js",{Menu:function(e){o=e}},1);n.link("./menu.html");function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var s=new ReactiveVar(null);function l(){return s.get()||dfm.languages.getPrimary()||"en"}function i(e){if(!e||(void 0===e?"undefined":r(e))!=="object")return e||"";return e[l()]||""}Template.adminMenu.onCreated(function(){this.subscribe("adminMenu")});Template.adminMenu.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{title:"Menu"}])},editableLanguages:function(){return a.find({interfaceOuispeak:true},{sort:{rank:1}})},langBtnClass:function(){return this.code===l()?"btn-primary":"btn-outline-secondary"},topEntries:function(){return o.find({menu:"main",parentId:null},{sort:{order:1}})},childrenOf:function(e){return o.find({parentId:e._id},{sort:{order:1}}).fetch().map(function(t){return Object.assign({},t,{parentType:e.type,parentVariant:e.cardVariant||"icon"})})},ctaEntries:function(){return o.find({menu:"cta"},{sort:{order:1}})}});Template.adminMenu.events({"click .js-set-lang":function(e){e.preventDefault();s.set(e.currentTarget.dataset.lng)},"click .js-add-top":function(e){e.preventDefault();Meteor.call("admin.menu.add",null,"main",function(e){if(e)dfm.toastError(e)})},"click .js-add-child":function(e){e.preventDefault();var t=e.currentTarget.dataset.parent;Meteor.call("admin.menu.add",t,"main",function(e){if(e)dfm.toastError(e)})},"click .js-add-cta":function(e){e.preventDefault();Meteor.call("admin.menu.add",null,"cta",function(e){if(e)dfm.toastError(e)})}});Template.menuEntryForm.helpers({childClass:function(){return this.parentId?"is-child":""},editLang:function(){return l()},editLangUpper:function(){return l().toUpperCase()},typeOptions:function(){var e=this.type||"url";var t=[{value:"megamenu",labelText:"M\xe9ga-menu"},{value:"dropdown",labelText:"Dropdown"},{value:"page",labelText:"Page (slug)"},{value:"url",labelText:"URL"}];var n=this.parentId?t.filter(function(e){return"page"===e.value||"url"===e.value}):t;return n.map(function(t){return Object.assign({},t,{isSelected:e===t.value})})},columnOptions:function(){var e=String(this.columns||4);return["2","3","4"].map(function(t){return{value:t,isSelected:e===t}})},variantOptions:function(){var e=this.cardVariant||"icon";return[{value:"icon",labelText:"Ic\xf4ne",isSelected:"icon"===e},{value:"media",labelText:"Visuel",isSelected:"media"===e}]},isMegaParent:function(){return!this.parentId&&"megamenu"===this.type},isMegaCard:function(){return!!this.parentId&&"megamenu"===this.parentType},isMediaCard:function(){return"media"===this.parentVariant},iconPreview:function(){return this.icon||"mic"},labelForEditLang:function(){return i(this.label)},introTitle:function(){var e;return i(null==(e=this.intro)?void 0:e.title)},introSubtitle:function(){var e;return i(null==(e=this.intro)?void 0:e.subtitle)},footText:function(){var e;return i(null==(e=this.footer)?void 0:e.text)},footSubtext:function(){var e;return i(null==(e=this.footer)?void 0:e.subtext)},footCtaLabel:function(){var e;return i(null==(e=this.footer)?void 0:e.ctaLabel)},footCtaHref:function(){var e;return(null==(e=this.footer)?void 0:e.ctaHref)||""},footLinkLabel:function(){var e;return i(null==(e=this.footer)?void 0:e.linkLabel)},footLinkHref:function(){var e;return(null==(e=this.footer)?void 0:e.linkHref)||""},footLinkIcon:function(){var e;return(null==(e=this.footer)?void 0:e.linkIcon)||""},badgeText:function(){return i(this.badge)},descriptionText:function(){return i(this.description)},metaText:function(){return i(this.meta)},ctaLabelText:function(){return i(this.ctaLabel)}});Template.menuEntryForm.events({"submit .js-menu-form":function(e){e.preventDefault();var t=e.currentTarget.dataset.id;var n=dfm.serialize(e.currentTarget);Meteor.call("admin.menu.update",t,n,function(e){if(e)dfm.toastError(e);else dfm.toastSuccess("Menu entry saved")})},"click .js-delete":function(e){e.preventDefault();var t=this._id;dfm.confirm("Delete this entry (and its sub-entries)?",function(e){if(!e)return;Meteor.call("admin.menu.remove",t,function(e){if(e)dfm.toastError(e);else dfm.toastSuccess("Menu entry deleted")})},e.shiftKey)},"click .js-move":function(e){e.preventDefault();var t=e.currentTarget.dataset.dir;Meteor.call("admin.menu.move",this._id,t,function(e){if(e)dfm.toastError(e)})}})}}},lib:{
189"collections.js":function(e,t,n){n.export({Menu:function(){return a}});var a=new Mongo.Collection("o_menu")}}},newsletter:{client:{admin:{
189"newsletter.html":function(e,t,n){n.link("./template.newsletter.js",{"*":"*+"})},
189"template.newsletter.js":function(){Template.__checkName("adminNewsletter");Template["adminNewsletter"]=new Template("Template.adminNewsletter",function(){var e=this;return[HTML.Raw("<h1>Newsletter</h1>\n\n    <h2>Newsletter Subscribed Emails</h2>\n\n    "),HTML.TABLE({class:"subscriber-list table table-hover table-stripped mt-5 d-none"},HTML.Raw("\n        <thead>\n            <th>name</th>\n            <th>email</th>\n            <th>createdAt</th>\n        </thead>\n        "),HTML.TBODY("\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("subscribers"))},function(){return["\n                ",Spacebars.include(e.lookupTemplate("adminNewsletterUser")),"\n            "]}),"\n        "),"\n    ")]});Template.__checkName("adminNewsletterUser");Template["adminNewsletterUser"]=new Template("Template.adminNewsletterUser",function(){var e=this;return HTML.TR("\n        ",Spacebars.With(function(){return Spacebars.dataMustache(e.lookup("getUserByEmail"),e.lookup("email"))},function(){return["\n            ",HTML.TD(Blaze.View("lookup:getUserFullname",function(){return Spacebars.mustache(e.lookup("getUserFullname"),e.lookup("."))})),"\n            ",HTML.TD(Blaze.View("lookup:getUserEmail",function(){return Spacebars.mustache(e.lookup("getUserEmail"),e.lookup("."))})),"\n        "]},function(){return["\n            ",HTML.TD({colspan:"2"},Blaze.View("lookup:email",function(){return Spacebars.mustache(e.lookup("email"))})),"\n        "]}),"\n        ",HTML.TD(Blaze.View("lookup:createdAt",function(){return Spacebars.mustache(e.lookup("createdAt"))})),"\n    ")})},
189"newsletter.js":function(e,t,n){n.link("../../lib/collections.js");n.link("./newsletter.html");Template.adminNewsletter.onCreated(function(){this.subscribe("adminNewsletterSubscribed",{onReady:function(){document.querySelector(".subscriber-list").classList.remove("d-none")}})});Template.adminNewsletter.onRendered(function(){});Template.adminNewsletter.onDestroyed(function(){});Template.adminNewsletter.helpers({subscribers:function(){return NewsletterSubscribedEmails.find({},{sort:{createdAt:-1}})}});Template.adminNewsletter.events({});Template.adminNewsletterUser.onCreated(function(){this.subscribe("dfmAdminUserByEmail",this.email)});Template.adminNewsletterUser.onRendered(function(){});Template.adminNewsletterUser.onDestroyed(function(){});Template.adminNewsletterUser.helpers(function(){});Template.adminNewsletterUser.events(function(){})}}},lib:{
189"collections.js":function(){NewsletterSubscribedEmails=new Mongo.Collection("o_newsletter")}}},pages:{client:{admin:{
189"edit.html":function(e,t,n){n.link("./template.edit.js",{"*":"*+"})},
189"template.edit.js":function(){Template.__checkName("adminPagesEdit");Template["adminPagesEdit"]=new Template("Template.adminPagesEdit",function(){var e=this;return HTML.DIV({id:"admin-page-edit"},HTML.Raw("\n        <h1>Pages - Edit</h1>\n        "),Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),HTML.Raw("\n        \x3c!-- context : {source, page} --\x3e\n        "),HTML.DIV({class:"float-end"},"\n            ",Blaze.If(function(){return Spacebars.call(e.lookup("isNews"))},function(){return["\n                ",HTML.A({href:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("page"),"url"))},class:"btn btn-xs btn-ouispeak",target:"_blank"},"\n                    Display News\n                "),"\n            "]},function(){return[HTML.Raw('\n                <a class="btn btn-lg btn-warning me-2 js-duplicate-page"><span class="material-icons-outlined">content_copy</span></a>\n                '),HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"try",Spacebars.kw({sourceId:Spacebars.dot(e.lookup("history"),"_id"),lng:Spacebars.dot(e.lookup("history"),"page","locale"),query:"isHistory=true"}))},class:"btn btn-lg btn-info me-2",target:"_blank"},"Try"),"\n                ",HTML.A({href:function(){return["/",Spacebars.mustache(e.lookup("locale")),Spacebars.mustache(Spacebars.dot(e.lookup("source"),"slug"))]},class:"btn btn-sm btn-ouispeak",target:"_blank"},HTML.Raw('<span class="material-icons-outlined">link</span>')),"\n            "]}),"\n        "),HTML.Raw('\n\n        <h2 class="mt-5">source</h2>\n        '),HTML.DIV({class:function(){return["card p-4 mt-4 ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("source"),"allPublished"))},function(){return"pages-published bg-success text-light"})]}},"\n            ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                <label for="inputSlug" class="form-label">slug</label>\n                '),HTML.INPUT({name:"slug",type:"text",class:"form-control",id:"inputSlug","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("source"),"slug"))}}),HTML.Raw('\n                <div id="nameHelp" class="form-text"></div>\n            ')),"\n            ",HTML.DIV({class:"mb-3 form-check"},"\n                ",HTML.INPUT(HTML.Attrs({name:"published",type:"checkbox",class:"form-check-input",id:"inputPagesPublished"},function(){return Spacebars.attrMustache(e.lookup("isChecked"),Spacebars.dot(e.lookup("source"),"allPublished"))})),HTML.Raw('\n                <label class="form-check-label" for="inputPagesPublished">published</label>\n            ')),"\n            ",Blaze.If(function(){return Spacebars.call(e.lookup("isNews"))},function(){return["\n                ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                    <label for="inputPublicationDate" class="form-label">publication date <small>(news)</small></label>\n                    '),HTML.INPUT({name:"publicationDate",type:"date",class:"form-control",id:"inputPublicationDate","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(e.lookup("formatDate"),Spacebars.dot(e.lookup("source"),"publicationDate"),"inputDate")}}),HTML.Raw('\n                    <div id="publicationDateHelp" class="form-text"></div>\n                ')),"\n                ",HTML.DIV({class:"mb-3 form-check"},"\n                    ",HTML.INPUT(HTML.Attrs({name:"showedOnTheHomePage",type:"checkbox",class:"form-check-input",id:"inputShowHomepage"},function(){return Spacebars.attrMustache(e.lookup("isChecked"),Spacebars.dot(e.lookup("source"),"showedOnTheHomePage"))})),HTML.Raw('\n                    <label class="form-check-label" for="inputShowHomepage">showed on the homepage</label>\n                ')),"\n            "]}),"\n        "),HTML.Raw('\n\n        <h2 class="mt-5">page</h2>\n\n        '),HTML.DIV({class:"choose-language mb-3"},"\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("getSiteLanguages"))},function(){return["\n                ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),e.lookup("currentRouteName"),Spacebars.kw({sourceId:S
189pacebars.dot(e.lookup(".."),"source","_id"),lng:e.lookup("code")}))},class:function(){return Spacebars.mustache(e.lookup("lngStatus"),e.lookup("code"),Spacebars.dot(e.lookup(".."),"source","_id"))}},Blaze.View("lookup:code",function(){return Spacebars.mustache(e.lookup("code"))})),"\n            "]}),"\n        "),"\n\n        ",HTML.DIV({class:"mt-5 mb-1"},"\n            ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("page"),"updatedAt"))},function(){return["\n                updated at ",Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),Spacebars.dot(e.lookup("page"),"updatedAt"))}),"\n            "]},function(){return["\n                ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("page"),"createdAt"))},function(){return["\n                    created at ",Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),Spacebars.dot(e.lookup("page"),"createdAt"))}),"\n                "]}),"\n            "]}),"\n        "),"\n\n        ",Blaze.If(function(){return Spacebars.call(e.lookup("locale"))},function(){return["\n            ",HTML.DIV({id:"history"},"\n                ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),e.lookup("getHistoryRouteName"),Spacebars.kw({sourceId:Spacebars.dot(e.lookup("source"),"_id"),lng:e.lookup("locale")}))}},"history")," : ",Blaze.View("lookup:getHistoryCount",function(){return Spacebars.mustache(e.lookup("getHistoryCount"))}),"\n            "),"\n\n            ",HTML.FORM({id:"page-edit",class:function(){return["card p-4 mt-4 ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("history"),"published"))},function(){return"pages-published bg-success text-light"})]}},"\n\n                ",HTML.DIV({class:"d-inline-block position-sticky sticky-top text-end"},"\n\n\n                    ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("notEquals"),e.lookup("locale"),e.lookup("primaryLocale"))},function(){return["\n                        ",HTML.BUTTON({type:"button",class:"js-duplicate-from-primary btn-lg btn btn-info"},"Copy From ",Blaze.View("lookup:codeToText",function(){return Spacebars.mustache(e.lookup("codeToText"),e.lookup("primaryLocale"))})),"\n                    "]}),"\n\n                    ",Blaze.If(function(){return Spacebars.call(e.lookup("isPublished"))},function(){return HTML.Raw('\n                        <button type="button" class="button-unpublish btn-lg btn btn-success">Published</button>\n                    ')},function(){return["\n                        ",Blaze.Unless(function(){return Spacebars.call(e.lookup("isHistoryEmpty"))},function(){return HTML.Raw('\n                            <button type="button" class="button-publish btn-lg btn btn-warning">Publish</button>\n                        ')}),"\n                    "]}),HTML.Raw('\n\n                    <button type="submit" class="btn btn-ouispeak">save</button>\n\n                ')),"\n\n                ",HTML.INPUT({name:"sourceId",type:"hidden",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("source"),"_id"))}}),"\n                ",HTML.INPUT({name:"slug",type:"hidden",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("source"),"slug"))}}),"\n                ",HTML.INPUT({name:"locale",type:"hidden",value:function(){return Spacebars.mustache(e.lookup("locale"))}}),"\n\n                ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                    <label for="inputTitle" class="form-label">title</label>\n                    '),HTML.INPUT({name:"title",type:"text",class:"form-control",id:"inputTitle","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","title"))},placeholder:"title"}),HTML.Raw('\n                    <div id="nameHelp" class="form-text"></div>\n                ')),"\n\n                ",Blaze.If(function(){return Spacebars.call(e.lookup("isInMenu"))},function(){return["\n                    ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                        <label for="inputMenuTitle" class="form-label">menu title <small class="text-muted">(short label for navigation bar)</small></label>\n                        '),HTML.INPUT({name:"menuTitle",type:"text",class:"form-control",id:"inputMenuTitle",value:function(){return Spacebars.mustache(e.lookup("menuTitleValue"))},placeholder:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","title"))}}),"\n                    "),"\n                "]}),"\n\n                ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                    <label for="inputDescription" class="form-label">description</label>\n                    '),HTML.INPUT({name:"description",type:"text",class:"form-control",id:"inputDescription","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","description"))},placeholder:"description"}),HTML.Raw('\n                    <div id="nameHelp" class="form-text"></div>\n                ')),"\n\n                ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                    <label for="inputHead" class="form-label">additional head tags</label>\n                    '),HTML.TEXTAREA({name:"metaTags",class:"form-control",id:"inputHead",rows:"1",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","metaTags"))}}),HTML.Raw('\n                    <div id="nameHelp" class="form-text"></div>\n                ')),"\n\n                ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                    <label for="inputScript" class="form-label">script</label>\n                    '),HTML.TEXTAREA({name:"script",class:"form-control",id:"inputScript",rows:"7",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","script"))}}),HTML.Raw('\n                    <div id="nameHelp" class="form-text"></div>\n                ')),"\n\n                ",Blaze.If(function(){return Spacebars.call(e.lookup("isBlog"))},function(){return["\n                    ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                        <label for="inputBanner" class="form-label">banner url <small>(blog)</small></label>\n                        '),HTML.INPUT({name:"bannerUrl",type:"text",class:"form-control",id:"inputBanner","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","bannerUrl"))}}),HTML.Raw('\n                        <div id="bannerHelp" class="form-text"></div>\n                    ')),"\n                    ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                        <label for="inputBannerAlt" class="form-label">banner alt <small>(blog)</small></label>\n                        '),HTML.INPUT({name:"bannerAlt",type:"text",class:"form-control",id:"inputBannerAlt","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","bannerAlt"))},placeholder:"an alternate text for an image, if the image cannot be displayed."}),HTML.Raw('\n                        <div id="bannerAltHelp" class="form-text"></div>\n                    ')),"\n                "]}),"\n                ",Blaze.If(function(){return Spacebars.call(e.lookup("isNews"))},function(){return["\n                    ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                        <label for="inputBanner" class="form-label">banner url <small>(news)</small></label>\n                        '),HTML.INPUT({name:"bannerUrl",type:"text",class:"form-control",id:"inputBanner","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","bannerUrl"))}}),HTML.Raw('\n                        <div id="bannerHelp" class="form-text"></div>\n                    ')),"\n                    ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                        <label for="inputBannerAlt" class="form-label">banner alt <small>(news)</small></label>\n                        '),HTML.INPUT({name:"bannerAlt",type:"text",class:"form-control",id:"inputBannerAlt","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","bannerAlt"))},placeholder:"an alternate text for an image, if the image cannot be displayed."}),HTML.Raw('\n                        <div id="bannerAltHelp" class="form-text"></div>\n                    ')),"\n                    ",HTML.DIV({class:"mb-3"},HTML.Raw('\n                        <label for="inputUrl" class="form-label">url <small>(news)</small></label>\n                        '),HTML.INPUT({name:"url",type:"text",class:"form-control",id:"inputUrl","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("history"),"page","url"))}}),HTML.Raw('\n                        <div id="bannerHelp" class="form-text"></div>\n                    ')),"\n                "]},function(){return["\n\n                    ",HTML.DIV({class:"mt-5"},"\n                        ",HTML.SPAN({class:"p-3 rounded bg-light text-dark"},Blaze.View("lookup:codeToText",function(){return Spacebars.mustache(e.lookup("c
189odeToText"),e.lookup("locale"))})),"\n                    "),"\n\n                    ",HTML.DIV({class:"mt-5"},"content ",HTML.A({class:"clickable js-content-overview"},Blaze.If(function(){return Spacebars.call(e.lookup("editWithSumernote"))},function(){return"Code"},function(){return"Overview"}))),"\n\n                    ",HTML.DIV({class:"row"},"\n                        ",Blaze.If(function(){return Spacebars.call(e.lookup("editWithSumernote"))},function(){return[HTML.Raw("\n                            \x3c!-- summernote --\x3e\n                            "),Spacebars.include(e.lookupTemplate("adminPagesEditSummernote")),"\n                        "]},function(){return[HTML.Raw("\n                            \x3c!-- codeMirror --\x3e\n                            "),Spacebars.include(e.lookupTemplate("adminPagesEditCodeMirror")),"\n                        "]}),"\n                    "),"\n                "]}),HTML.Raw('\n                <button type="submit" class="btn btn-ouispeak">save</button>\n            ')),"\n            ",Blaze.If(function(){return Spacebars.call(e.lookup("isWebmaster"))},function(){return["\n                ",HTML.DIV({class:"card mt-5"},"\n                    ",HTML.DIV({class:"card-body",style:"background-color: #ffdada;"},"\n                        ",Spacebars.include(e.lookupTemplate("onlyWebmaster")),HTML.Raw('\n\n                        <div class="mt-5">locale</div>\n                        '),HTML.PRE(Blaze.View("lookup:JSONstringifyPre",function(){return Spacebars.mustache(e.lookup("JSONstringifyPre"),e.lookup("locale"))})),HTML.Raw('\n\n                        <div class="mt-5">source</div>\n                        '),HTML.PRE(Blaze.View("lookup:JSONstringifyPre",function(){return Spacebars.mustache(e.lookup("JSONstringifyPre"),e.lookup("source"))})),HTML.Raw('\n\n                        <div class="mt-5">lastest page published</div>\n                        '),HTML.PRE(Blaze.View("lookup:JSONstringifyPre",function(){return Spacebars.mustache(e.lookup("JSONstringifyPre"),e.lookup("page"))})),HTML.Raw('\n\n                        <div class="mt-5">latest history, celle qui est affich\xe9 dans l\'editeur</div>\n                        '),HTML.PRE(Blaze.View("lookup:JSONstringifyPre",function(){return Spacebars.mustache(e.lookup("JSONstringifyPre"),e.lookup("history"))})),"\n                    "),"\n                "),"\n            "]}),"\n        "]},function(){return"\n            choose a language\n        "}),"\n    ")});Template.__checkName("adminPagesEditSummernote");Template["adminPagesEditSummernote"]=new Template("Template.adminPagesEditSummernote",function(){var e=this;return HTML.DIV({class:"bg-light text-dark"},"\n        ",HTML.TEXTAREA({name:"content",id:"adminPagesEditSummernote",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("page"),"content"))}}),"\n    ")});Template.__checkName("adminPagesEditCodeMirror");Template["adminPagesEditCodeMirror"]=new Template("Template.adminPagesEditCodeMirror",function(){return HTML.Raw('<div id="content" class="mt-3 bg-light text-dark"></div>\n    <div id="content-no-text" class="mt-5 bg-light text-dark"></div>')})},
189"pages.html":function(e,t,n){n.link("./template.pages.js",{"*":"*+"})},
189"template.pages.js":function(){Template.__checkName("adminPages");Template["adminPages"]=new Template("Template.adminPages",function(){var e=this;return[HTML.H1(Blaze.View("lookup:pageName",function(){return Spacebars.mustache(e.lookup("pageName"))})),"\n  ",Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),HTML.Raw('\n  <a href="" class="float-end btn-xs btn-ouispeak js-add-page">add a page</a>\n\n  '),HTML.TABLE({class:"table table-hover table-stripped"},"\n    ",HTML.THEAD("\n      ",HTML.TR("\n        ",HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("pages"),orderBy:Spacebars.call("slug"),title:Spacebars.call("slug"),default:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),HTML.Raw("\n        <th>title</th>\n        <th>published</th>\n        "),HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("pages"),orderBy:Spacebars.call("publicationDate"),title:Spacebars.call("publicationDate")}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),"\n        ",HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("pages"),orderBy:Spacebars.call("updatedAt"),title:Spacebars.call("updatedAt")}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),"\n        ",HTML.TH(Blaze._TemplateWith(function(){return{name:Spacebars.call("pages"),orderBy:Spacebars.call("createdAt"),title:Spacebars.call("createdAt")}},function(){return Spacebars.include(e.lookupTemplate("orderBy"))})),HTML.Raw('\n        <th width="50"></th>\n        <th width="50"></th>\n      ')),"\n    "),"\n    ",HTML.TBODY("\n      ",Blaze.Each(function(){return Spacebars.call(e.lookup("pages"))},function(){return["\n        ",HTML.TR({class:function(){return Blaze.If(function(){return Spacebars.call(e.lookup("allPublished"))},function(){return"published"})}},"\n          ",HTML.TD("\n            ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("isPage"),"adminPages")},function(){return["\n              ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminPagesEdit",Spacebars.kw({sourceId:e.lookup("_id"),lng:e.lookup("dfmLanguagesGetPrimaryCode")}))},class:"d-block","data-id":function(){return Spacebars.mustache(e.lookup("id"))}},Blaze.View("lookup:slug",function(){return Spacebars.mustache(e.lookup("slug"))})),"\n            "]}),"\n            ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("isPage"),"adminBlogs")},function(){return["\n              ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminBlogsEdit",Spacebars.kw({sourceId:e.lookup("_id"),lng:e.lookup("dfmLanguagesGetPrimaryCode")}))},class:"d-block","data-id":function(){return Spacebars.mustache(e.lookup("id"))}},Blaze.View("lookup:slug",function(){return Spacebars.mustache(e.lookup("slug"))})),"\n            "]}),"\n            ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("isPage"),"adminNews")},function(){return["\n              ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminNewsEdit",Spacebars.kw({sourceId:e.lookup("_id"),lng:e.lookup("dfmLanguagesGetPrimaryCode")}))},class:"d-block","data-id":function(){return Spacebars.mustache(e.lookup("id"))}},Blaze.View("lookup:slug",function(){return Spacebars.mustache(e.lookup("slug"))})),"\n            "]}),"\n            ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("isPage"),"adminDocs")},function(){return["\n              ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminDocsEdit",Spacebars.kw({sourceId:e.lookup("_id"),lng:e.lookup("dfmLanguagesGetPrimaryCode")}))},class:"d-block","data-id":function(){return Spacebars.mustache(e.lookup("id"))}},Blaze.View("lookup:slug",function(){return Spacebars.mustache(e.lookup("slug"))})),"\n            "]}),"\n            ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("isPage"),"adminPagesForms")},function(){return["\n              ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminFormsEdit",Spacebars.kw({sourceId:e.lookup("_id"),lng:e.lookup("dfmLanguagesGetPrimaryCode")}))},class:"d-block","data-id":function(){return Spacebars.mustache(e.lookup("id"))}},Blaze.View("lookup:slug",function(){return Spacebars.mustache(e.lookup("slug"))})),"\n            "]}),"\n          "),"\n\n          ",HTML.TD(Blaze.View("lookup:title",function(){return Spacebars.mustache(e.lookup("title"))})),"\n          ",HTML.TD(Blaze.If(function(){return Spacebars.call(e.lookup("allPublished"))},function(){return[Blaze.View("lookup:howManyPublished",function(){return Spacebars.mustache(e.lookup("howManyPublished"))})," ",Blaze.If(function(){return Spacebars.call(e.lookup("showedOnTheHomePage"))},function(){return HTML.Raw('<span class="material-icons-outlined">home</span>')})]})),"\n          ",HTML.TD(Blaze.If(function(){return Spacebars.call(e.lookup("publicationDate"))},function(){return Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("publicationDate"),"short")})})),"\n          ",HTML.TD(Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("updatedAt"))})),"\n          ",HTML.TD(Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"))})),HTML.Raw('\n          <td>
189\n            <a href="" class="btn btn-xs btn-warning js-duplicate-page"><span class="material-icons-outlined">content_copy</span></a>\n          </td>\n          <td>\n            \n            <a href="" class="btn btn-xs btn-danger js-delete-page"><span class="material-icons-outlined">delete</span></a>\n          </td>\n        ')),"\n      "]}),"\n    "),"\n  ")]})},
189"edit.js":function(e,t,n){var a;n.link("/import/api/code-editor/client/code-editor-class.js",{default:function(e){a=e}},0);n.link("/import/api/compare/client/compare.js");var o;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){o=e}},1);var r,s;n.link("../../lib/collections.js",{Pages:function(e){r=e},PagesHistory:function(e){s=e}},2);n.link("./edit.html");n.link("./edit.less");var l;var i=new ReactiveVar(false);var c=function(){var e=Router.current().route.getName();return"adminPagesEdit"===e?{path:"adminPages",title:"Pages"}:"adminBlogsEdit"===e?{path:"adminBlogs",title:"Blogs"}:"adminNewsEdit"===e?{path:"adminNews",title:"News"}:"adminDocsEdit"===e?{path:"adminDocs",title:"Docs"}:{path:"adminPagesForms",title:"Forms"}};Template.adminPagesEdit.onCreated(function(){});Template.adminPagesEdit.onRendered(function(){});Template.adminPagesEdit.onDestroyed(function(){});Template.adminPagesEdit.helpers({primaryLocale:function(){return dfm.languages.getPrimary()},pagePrimary:function(){return r.findOne({sourceId:this.source._id,locale:dfm.languages.getPrimary()})},breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{link:Router.path(c().path),class:"",title:c().title},{title:"Edit"}])},currentRouteName:function(){return Router.current().route.getName()},getHistoryRouteName:function(){return Router.current().route.getName().replace("Edit","History")},lngStatus:function(e,t){var n;var a=o.findOne({code:e});var s="btn";if(e===Router.current().params.lng)s+=" btn-lg selected";var l=null==(n=r.findOne({sourceId:t,locale:e,published:true}))?void 0:n.published;if(l)s+=" btn-success text-white";if(null==a?void 0:a.interfaceOuispeak)s+=" btn-outline-success";return s},editWithSumernote:function(){return i.get()},getHistoryCount:function(){var e;return s.find({"page.sourceId":null==(e=this.page)?void 0:e.sourceId,"page.locale":this.locale}).count()},getLatestHistory:function(){var e,t;return s.findOne({pageId:null==(e=this.page)?void 0:e._id,"page.locale":null==(t=this.page)?void 0:t.locale},{sort:{createdAt:-1}})},isPublished:function(){var e;return null==(e=this.history)?void 0:e.published},isBlog:function(){var e;return null==(e=this.source.slug)?void 0:e.startsWith("/blogs/")},isNews:function(){var e;return null==(e=this.source.slug)?void 0:e.startsWith("/news/")},isContentEmpty:function(){var e,t;return!(null==(e=this.page)?void 0:e.url)&&!(null==(t=this.page)?void 0:t.content)},isHistoryEmpty:function(){return!this.history},isInMenu:function(){var e;return null==(e=this.source)?void 0:e.inMenu},menuTitleValue:function(){var e,t,n;return(null==(t=this.history)?void 0:null==(e=t.page)?void 0:e.menuTitle)||(null==(n=this.page)?void 0:n.menuTitle)||""}});Template.adminPagesEdit.events({"change [name=slug]":function(e,t){e.preventDefault();var n=e.currentTarget;var a=n.value;var o=this.source.slug;var r=this.source._id;Meteor.call("admin.pages.updateSlug",r,a,function(e,t){if(e){n.value=o;dfm.toastError(e)}else dfm.toastSuccess("Slug updated")})},"blur [name=publicationDate]":function(e,t){e.preventDefault();var n=$(e.currentTarget).val();var a=this.source._id;log(a,n);Meteor.call("admin.pages.updatePublicationDate",a,n,function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess("Publication date updated")})},"change #inputPagesPublished":function(e,t){e.preventDefault();var n=this.source._id;var a=$(e.currentTarget).is(":checked");Meteor.call("admin.pages.updatePublishedSource",n,a,function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess(a?"Pages published":"Pages unpublished")})},"change #source-published":function(e,t){e.preventDefault();var n=this.source._id;var a=$(e.currentTarget).is(":checked");Meteor.call("admin.pages.updatePublishedSource",n,a,function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess(a?"Pages published":"Pages unpublished")})},"change #inputShowHomepage":function(e,t){e.preventDefault();var n=this.source._id;var a=$(e.currentTarget).is(":checked");Meteor.call("admin.pages.updateShowedOnTheHomePage",n,a,function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess(a?"News showed on the homepage":"News hidden on the home page")})},"submit #page-edit":function(e,t){var n,a,o,r,s;e.preventDefault();var c=(null==(a=this.history)?void 0:null==(n=a.page)?void 0:n._id)||(null==(o=this.history)?void 0:o.pageId)||(null==(r=this.page)?void 0:r._id);var u=dfm.serialize(e.currentTarget);if(!i.get()&&l&&!(null==(s=this.source.slug)?void 0:s.startsWith("/news/")))u.content=l.getValue();log(u);Meteor.call("admin.pagesHistory.insert",{pageId:c,currentPage:u},function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess({message:"saved",autohide:true})})},"click .js-content-overview":function(e,t){e.preventDefault();if(i.get()){$("#adminPagesEditSummernote").summernote("destroy");i.set(false)}else i.set(true)},"click .js-undo":function(e,t){e.preventDefault();
189Meteor.call("admin.pages.undo",{pageId:this.page._id},function(e,t){})},"click .button-publish":function(e,t){Meteor.call("admin.pagesHistory.publish",{historyId:this.history._id,sourceId:this.source._id,locale:this.locale,slug:this.source.slug},function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess({message:"published",autohide:true})})},"click .button-unpublish":function(e,t){Meteor.call("admin.pagesHistory.unpublish",{historyId:this.history._id,sourceId:this.source._id,locale:this.locale,slug:this.source.slug},function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess({message:"unpublished",autohide:true})})},"mouseover .button-unpublish":function(e,t){var n=e.currentTarget;n.classList.add("btn-danger");n.textContent="Unpublish"},"mouseout .button-unpublish":function(e,t){var n=e.currentTarget;n.classList.remove("btn-danger");n.textContent="Published"},"click .js-duplicate-from-primary":function(e,t){var n=this;dfm.confirm("Are you sure to replace page's content with the primary language ?",function(e){if(!e)return;Meteor.call("admin.pages.duplicateFromPrimary",{sourceId:n.source._id,locale:n.locale},function(e,t){if(e)dfm.toastError(e);else{l.updateContent(t);dfm.toastSuccess({message:"duplicated",autohide:true})}})},e.shiftKey)},"click .js-duplicate-page":function(e,t){e.preventDefault();var n=this.source._id;Meteor.call("admin.pages.duplicate",n,function(e,t){if(e)dfm.toastError(e);else{dfm.toastSuccess({message:"Page duplicated",autohide:true});Router.go(Router.current().route.getName(),{sourceId:t,lng:dfm.languages.getPrimary()})}})}});Template.adminPagesEditSummernote.onCreated(function(){});Template.adminPagesEditSummernote.onRendered(function(){$("#adminPagesEditSummernote").summernote(app.summernoteOptions)});Template.adminPagesEditSummernote.onDestroyed(function(){});Template.adminPagesEditSummernote.helpers({});Template.adminPagesEditSummernote.events({});Template.adminPagesEditCodeMirror.onCreated(function(){});Template.adminPagesEditCodeMirror.onRendered(function(){var e,t;l=new a("content",{content:null==(t=this.data.history)?void 0:null==(e=t.page)?void 0:e.content});this.autorun(function(){var e=Template.currentData().history;log(e)})});Template.adminPagesEditCodeMirror.onDestroyed(function(){});Template.adminPagesEditCodeMirror.helpers({primaryLocale:function(){return dfm.languages.getPrimary()}});Template.adminPagesEditCodeMirror.events({keyup:function(e,t){e.preventDefault()}})},
189"edit.less":function(){},
189"pages.js":function(e,t,n){var a;n.link("/import/api/pages/lib/collections.js",{Pages:function(e){a=e},PagesHistory:function(e){}},0);n.link("./pages.html");var o="pages";function r(){var e=Router.current().route.getName();return"adminPages"===e?"Pages":"adminBlogs"===e?"Blogs":"adminNews"===e?"News":"adminDocs"===e?"Docs":"PagesForms"}Template.adminPages.onCreated(function(){});Template.adminPages.onRendered(function(){});Template.adminPages.onDestroyed(function(){});Template.adminPages.helpers({pageName:function(){return r()},breadcrumbLinks:function(){var e=r();console.log("title",e);return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{title:e}])},pages:function(){var e=Router.current().route.getName();var t={source:true};var n=null;if("adminPages"===e)n={slug:{$regex:"^(?!/blog)(?!/news)(?!/docs)(?!/forms)/*",$options:"i"}};if("adminBlogs"===e)n={slug:{$regex:"/blog/*",$options:"i"}};if("adminNews"===e)n={slug:{$regex:"/news/*",$options:"i"}};if("adminDocs"===e)n={slug:{$regex:"/docs/*",$options:"i"}};if("adminPagesForms"===e)n={slug:{$regex:"/forms/*",$options:"i"}};var r=app.globalSearch.get();if(r&&r.length>=2){var s={$regex:r,$options:"i"};var l={$or:[{slug:s},{title:s}]};if(n)t.$and=[n,l];else t.$or=l.$or}else if(n)t.slug=n.slug;var i={};i[Session.get("sortBy_"+o)]=Session.get("sortOrder_"+o);if("slug"===Session.get("sortBy_"+o))i[Session.get("sortBy_"+o)]=-Session.get("sortOrder_"+o);return a.find(t,{sort:i})},isPage:function(e){return Router.current().route.getName()===e},title:function(){var e,t;var n=null==(e=a.findOne({sourceId:this._id,locale:dfm.languages.getPrimary()}))?void 0:e.title;if(n)return n;return(null==(t=a.findOne({sourceId:this._id,title:{$exists:true}}))?void 0:t.title)||"to define"},howManyPublished:function(){return a.find({sourceId:this._id,published:true}).count()}});Template.adminPages.events({"click .js-add-page":function(e,t){e.preventDefault();var n="/";if("Pages"!==r())n+=r().toLowerCase()+"/";n+="to-define";Meteor.call("admin.pages.insert",{slug:n},function(e,t){if(e)dfm.toastError(e);else Router.go("adminPagesEdit",{sourceId:t,lng:dfm.languages.getPrimary()})})},"click .js-duplicate-page":function(e,t){e.preventDefault();var n=this._id;Meteor.call("admin.pages.duplicate",n,function(e,t){if(e)dfm.toastError(e)})},"click .js-delete-page":function(e,t){e.preventDefault();var n=this._id;dfm.confirm("Are you sure you want to delete this page?",function(e){if(e)Meteor.call("admin.pages.remove",n,function(e,t){if(e)dfm.toastError(e)})})}})}},front:{
189"page.html":function(e,t,n){n.link("./template.page.js",{"*":"*+"})},
189"template.page.js":function(){Template.__checkName("page");Template["page"]=new Template("Template.page",function(){var e=this;return[Blaze.View("lookup:getContent",function(){return Spacebars.makeRaw(Spacebars.mustache(e.lookup("getContent")))}),HTML.Raw('\n    <div id="script"></div>')]})},
189"page.js":function(e,t,n){n.link("./page.html");Template.page.onCreated(function(){});Template.page.onRendered(function(){app.testimoniesInit();Meteor.setTimeout(function(){app.carouselInit(".carousel-ouispeak",{autoplaySpeed:2e3})},100);app.headerLogosInit();app.newsInit();app.contactUsFormInit();app.calendarRegister();app.accordionInit();app.playbtnInit();app.intersectionsInit();app.parallaxInit();app.selectLanguagesInit();Array.from(document.querySelectorAll(".bs-carousel")).forEach(function(e){return new bootstrap.Carousel(e)});document.querySelectorAll(".active-on-rendered").forEach(function(e){e.classList.add("active")});window.prerenderReady=true});Template.page.onDestroyed(function(){app.carouselsInstances.forEach(function(e){e.carousels.forEach(function(e){e.destroy()})});app.accordionDestroy()});Template.page.helpers({getContent:function(){return this.content},isHomePage:function(){return"/"===this.slug}});Template.page.events({"click .js-event-form-add-date":function(e,t){e.preventDefault();var n=t.$(".js-forms-submit");var o=n.find(".form-date-template").first().clone();o.removeClass("form-date-template");o.addClass("form-date-one-day");o.removeClass("d-none");n.find("#form-date-template-wrapper").append(o);a()},"click .js-event-form-remove-date":function(e,t){e.preventDefault();var n=e.currentTarget.closest(".form-date-one-day");n.remove();a()}});function a(){var e=document.querySelectorAll(".form-date-one-day");e.forEach(function(e,t){var n=t+1;var a=e.querySelector(".js-event-form-date-day");if(a){var o=a.textContent;var r=o.replace(/\s*\d+$/,"").trim();var s;s=r?"".concat(r," ").concat(n):"".concat(n);a.textContent=s;a.setAttribute("for","inputDates"+n)}var l=e.querySelector(".input-date");if(l){var i="inputDates"+n;l.name=i;l.id=i;var c=e.querySelector('label[for="'.concat(l.getAttribute("id"),'"]'));if(c&&c!==a)c.setAttribute("for",i)}var u=[{selector:".input-date-morning-from",suffix:"TimeMorningFrom"},{selector:".input-date-morning-to",suffix:"TimeMorningTo"},{selector:".input-date-afternoon-from",suffix:"TimeAfternoonFrom"},{selector:".input-date-afternoon-to",suffix:"TimeAfternoonTo"}];u.forEach(function(t){var a=e.querySelector(t.selector);if(!a)return;var o=a.id;var r="inputDates"+n+t.suffix;a.name=r;a.id=r;var s=e.querySelector('label[for="'.concat(o,'"]'));if(s)s.setAttribute("for",r)})})}}}},lib:{
189"collections.js":function(e,t,n){n.export({Pages:function(){return a},PagesHistory:function(){return o}});var a=new Mongo.Collection("o_pages");var o=new Mongo.Collection("o_pages_history")}}},search:{client:{admin:{
189"search.html":function(e,t,n){n.link("./template.search.js",{"*":"*+"})},
189"template.search.js":function(){Template.__checkName("adminSearch");Template["adminSearch"]=new Template("Template.adminSearch",function(){var e=this;return[HTML.Raw("<h1>Search results</h1>\n  "),Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n  ",Blaze.If(function(){return Spacebars.call(e.lookup("isLoading"))},function(){return HTML.Raw('\n    <div class="text-center py-5">\n      <div class="spinner-border" role="status">\n        <span class="visually-hidden">Loading...</span>\n      </div>\n    </div>\n  ')},function(){return["\n    ",Blaze.If(function(){return Spacebars.call(e.lookup("hasResults"))},function(){return["\n      ",Spacebars.With(function(){return Spacebars.call(e.lookup("results"))},function(){return["\n        ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("pages"),"length"))},function(){return["\n          ",HTML.H3("Pages (",Blaze.View("lookup:pages.length",function(){return Spacebars.mustache(Spacebars.dot(e.lookup("pages"),"length"))}),")"),"\n          ",HTML.TABLE({class:"table table-hover table-stripped"},"\n            ",HTML.THEAD("\n              ",HTML.TR(HTML.Raw("\n                <th>slug</th>\n                <th>title</th>\n                <th>type</th>\n              ")),"\n            "),"\n            ",HTML.TBODY("\n              ",Blaze.Each(function(){return Spacebars.call(e.lookup("pages"))},function(){return["\n                ",HTML.TR("\n                  ",HTML.TD(HTML.A({href:function(){return Spacebars.mustache(e.lookup("editLink"))}},Blaze.View("lookup:slug",function(){return Spacebars.mustache(e.lookup("slug"))}))),"\n                  ",HTML.TD(Blaze.View("lookup:title",function(){return Spacebars.mustache(e.lookup("title"))})),"\n                  ",HTML.TD(Blaze.View("lookup:pageType",function(){return Spacebars.mustache(e.lookup("pageType"))})),"\n                "),"\n              "]}),"\n            "),"\n          "),"\n        "]}),"\n\n        ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("components"),"length"))},function(){return["\n          ",HTML.H3("Components (",Blaze.View("lookup:components.length",function(){return Spacebars.mustache(Spacebars.dot(e.lookup("components"),"length"))}),")"),"\n          ",HTML.TABLE({class:"table table-hover table-stripped"},"\n            ",HTML.THEAD("\n              ",HTML.TR(HTML.Raw("\n                <th>name</th>\n                <th>title</th>\n              ")),"\n            "),"\n            ",HTML.TBODY("\n              ",Blaze.Each(function(){return Spacebars.call(e.lookup("components"))},function(){return["\n                ",HTML.TR("\n                  ",HTML.TD(HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminComponentsEdit",Spacebars.kw({sourceId:e.lookup("_id"),lng:e.lookup("dfmLanguagesGetPrimaryCode")}))}},Blaze.View("lookup:name",function(){return Spacebars.mustache(e.lookup("name"))}))),"\n                  ",HTML.TD(Blaze.View("lookup:title",function(){return Spacebars.mustache(e.lookup("title"))})),"\n                "),"\n              "]}),"\n            "),"\n          "),"\n        "]}),"\n\n        ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("testimonies"),"length"))},function(){return["\n          ",HTML.H3("Testimonies (",Blaze.View("lookup:testimonies.length",function(){return Spacebars.mustache(Spacebars.dot(e.lookup("testimonies"),"length"))}),")"),"\n          ",HTML.TABLE({class:"table table-hover table-stripped"},"\n            ",HTML.THEAD("\n              ",HTML.TR(HTML.Raw("\n                <th>name</th>\n                <th>company</th>\n              ")),"\n            "),"\n            ",HTML.TBODY("\n              ",Blaze.Each(function(){return Spacebars.call(e.lookup("testimonies"))},function(){return["\n                ",HTML.TR("\n                  ",HTML.TD(HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminTestimoniesEdit",Spacebars.kw({sourceId:e.lookup("_id"),lng:e.lookup("dfmLanguagesGetPrimaryCode")}))}},Blaze.View("lookup:name",function(){return Spacebars.mustache(e.lookup("name"))}))),"\n                  ",HTML.TD(Blaze.View("lookup:company",function(){return Spacebars.mustache(e.lookup("c
189ompany"))})),"\n                "),"\n              "]}),"\n            "),"\n          "),"\n        "]}),"\n      "]}),"\n    "]},function(){return["\n      ",HTML.DIV({class:"alert alert-info"},"\n        ",Blaze.If(function(){return Spacebars.call(e.lookup("searchTerm"))},function(){return['\n          No results found for "',Blaze.View("lookup:searchTerm",function(){return Spacebars.mustache(e.lookup("searchTerm"))}),'"\n        ']},function(){return"\n          Enter at least 3 characters to search\n        "}),"\n      "),"\n    "]}),"\n  "]})]})},
189"search.js":function(e,t,n){n.link("./search.html");Template.adminSearch.onCreated(function(){var e=this;this.results=new ReactiveVar(null);this.isLoading=new ReactiveVar(false);this.autorun(function(){var t=app.search.get();if(t&&t.length>=3){e.isLoading.set(true);Meteor.call("admin.search",t,function(t,n){e.isLoading.set(false);if(t){dfm.toastError(t);e.results.set(null)}else e.results.set(n)})}else e.results.set(null)})});Template.adminSearch.onRendered(function(){});Template.adminSearch.onDestroyed(function(){});Template.adminSearch.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{title:"Search"}])},isLoading:function(){return Template.instance().isLoading.get()},results:function(){return Template.instance().results.get()},hasResults:function(){var e,t,n;var a=Template.instance().results.get();if(!a)return false;return(null==(e=a.pages)?void 0:e.length)>0||(null==(t=a.components)?void 0:t.length)>0||(null==(n=a.testimonies)?void 0:n.length)>0},searchTerm:function(){return app.search.get()},editLink:function(){var e=this.slug;var t=this._id;var n=dfm.languages.getPrimary();if(e.startsWith("/blog/"))return Router.path("adminBlogsEdit",{sourceId:t,lng:n});if(e.startsWith("/news/"))return Router.path("adminNewsEdit",{sourceId:t,lng:n});if(e.startsWith("/docs/"))return Router.path("adminDocsEdit",{sourceId:t,lng:n});if(e.startsWith("/forms/"))return Router.path("adminFormsEdit",{sourceId:t,lng:n});return Router.path("adminPagesEdit",{sourceId:t,lng:n})},pageType:function(){var e=this.slug;if(e.startsWith("/blog/"))return"Blog";if(e.startsWith("/news/"))return"News";if(e.startsWith("/docs/"))return"Docs";if(e.startsWith("/forms/"))return"Form";return"Page"}});Template.adminSearch.events({})}}}},testimonies:{client:{admin:{
189"customers-logo-edit.html":function(e,t,n){n.link("./template.customers-logo-edit.js",{"*":"*+"})},
189"template.customers-logo-edit.js":function(){Template.__checkName("adminCustomersLogoEdit");Template["adminCustomersLogoEdit"]=new Template("Template.adminCustomersLogoEdit",function(){var e=this;return[HTML.Raw("<h1>customers logo Edit</h1>\n\n    "),Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n    ",HTML.FORM("\n        ",HTML.DIV({style:"padding-left:50px;background-color: var(--color-blue)"},HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("logo"))},alt:"",width:"200"})),"\n        ",HTML.DIV({class:"mt-5 mb-3"},HTML.Raw('\n            <label for="inputName" class="form-label">logo</label>\n            '),HTML.INPUT({name:"logo",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(e.lookup("logo"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),"\n\n        ",HTML.DIV({class:"mb-3"},HTML.Raw('\n            <label for="inputName" class="form-label">url</label>\n            '),HTML.INPUT({name:"url",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(e.lookup("url"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),HTML.Raw('\n\n        <button type="submit" class="btn btn-primary">Save</button>\n    '))]})},
189"edit.html":function(e,t,n){n.link("./template.edit.js",{"*":"*+"})},
189"template.edit.js":function(){Template.__checkName("adminTestimoniesEdit");Template["adminTestimoniesEdit"]=new Template("Template.adminTestimoniesEdit",function(){var e=this;return[HTML.Raw("<h1>testimony Edit</h1>\n\n    "),Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n    ",HTML.DIV({class:"choose-language mb-5"},"\n        ",Blaze.Each(function(){return Spacebars.call(e.lookup("getSiteLanguages"))},function(){return["\n            ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),e.lookup("currentRouteName"),Spacebars.kw({sourceId:Spacebars.dot(e.lookup(".."),"source","_id"),lng:e.lookup("code")}))},class:function(){return["btn btn-xs ",Spacebars.mustache(e.lookup("lngStatus"),e.lookup("code"),Spacebars.dot(e.lookup(".."),"source","_id"))]}},Blaze.View("lookup:code",function(){return Spacebars.mustache(e.lookup("code"))})),"\n        "]}),"\n    "),"\n\n    ",HTML.FORM("\n        ",HTML.INPUT({name:"sourceId",type:"hidden",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("source"),"_id"))},disabled:""}),"\n\n        ",HTML.DIV({class:"mb-3"},HTML.Raw('\n            <label for="inputName" class="form-label">who</label>\n            '),HTML.INPUT({name:"who",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("source"),"who"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),"\n\n        ",HTML.DIV({class:"mb-3"},HTML.Raw('\n            <label for="inputName" class="form-label">avatar</label>\n            '),HTML.INPUT({name:"avatar",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("source"),"avatar"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),"\n\n        ",HTML.DIV({class:"mb-3"},HTML.Raw('\n            <label for="inputName" class="form-label">companyLogo</label>\n            '),HTML.INPUT({name:"companyLogo",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("source"),"companyLogo"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),"\n\n        ",HTML.DIV({class:"mb-3"},HTML.Raw('\n            <label for="inputName" class="form-label">language</label>\n            '),HTML.INPUT({name:"lng",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(e.lookup("lng"))},disabled:""}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),"\n\n        ",HTML.DIV({class:"mb-3"},HTML.Raw('\n            <label for="inputName" class="form-label">function</label>\n            '),HTML.INPUT({name:"function",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("testimony"),"function"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),"\n\n        ",HTML.DIV({class:"mb-3"},HTML.Raw('\n            <label for="inpuContent" class="form-label">testimony</label>\n            '),HTML.TEXTAREA({name:"testimony",class:"form-control",id:"inpuContent",rows:"10",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("testimony"),"testimony"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),HTML.Raw('\n\n        <button type="submit" class="btn btn-primary">Save</button>\n    '))]})},
189"header-logo-edit.html":function(e,t,n){n.link("./template.header-logo-edit.js",{"*":"*+"})},
189"template.header-logo-edit.js":function(){Template.__checkName("adminHeaderLogoEdit");Template["adminHeaderLogoEdit"]=new Template("Template.adminHeaderLogoEdit",function(){var e=this;return[HTML.Raw("<h1>header logo Edit</h1>\n\n    "),Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),"\n\n    ",HTML.FORM("\n        ",HTML.DIV({style:"padding-left:50px;background-color: var(--color-blue)"},HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("logo"))},alt:"",width:"250"})),"\n        ",HTML.DIV({class:"mt-5 mb-3"},HTML.Raw('\n            <label for="inputName" class="form-label">logo url (size 250x188)</label>\n            '),HTML.INPUT({name:"logo",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(e.lookup("logo"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),"\n\n        ",HTML.DIV({class:"mb-3"},HTML.Raw('\n            <label for="inputName" class="form-label">click url (optional)</label>\n            '),HTML.INPUT({name:"url",type:"text",class:"form-control",id:"inputName","aria-describedby":"nameHelp",value:function(){return Spacebars.mustache(e.lookup("url"))}}),HTML.Raw('\n            <div id="nameHelp" class="form-text"></div>\n        ')),HTML.Raw('\n\n        <button type="submit" class="btn btn-primary">Save</button>\n    '))]})},
189"testimonies.html":function(e,t,n){n.link("./template.testimonies.js",{"*":"*+"})},
189"template.testimonies.js":function(){Template.__checkName("adminTestimonies");Template["adminTestimonies"]=new Template("Template.adminTestimonies",function(){var e=this;return[HTML.Raw("<h1>testimonies</h1>\n    "),Blaze._TemplateWith(function(){return Spacebars.call(e.lookup("breadcrumbLinks"))},function(){return Spacebars.include(e.lookupTemplate("dfmBreadcrumb"))}),HTML.Raw('\n    <a href="" class="float-end btn-xs btn-ouispeak js-add-testimony">add a testimony</a>\n    '),HTML.TABLE({class:"table table-hover table-stripped"},"\n        ",HTML.THEAD("\n            ",HTML.TR(HTML.Raw('\n                <th width="50"></th>\n                <th>who</th>\n                <th>companyLogo</th>\n                <th>createdAt</th>\n                <th>updatedAt</th>\n                <th width="100"></th>\n            ')),"\n        "),"\n        ",HTML.TBODY("\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("testimonies"))},function(){return["\n                ",HTML.TR("\n                    ",HTML.TD(HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("avatar"))},alt:"",width:"50"})),"\n                    ",HTML.TD(Blaze.View("lookup:who",function(){return Spacebars.mustache(e.lookup("who"))})),"\n                    ",HTML.TD(HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("companyLogo"))},alt:"",width:"50"})),"\n                    ",HTML.TD({title:function(){return Spacebars.mustache(e.lookup("getUserFullname"),e.lookup("createdBy"))}},Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"))})),"\n                    ",HTML.TD({title:function(){return Spacebars.mustache(e.lookup("getUserFullname"),e.lookup("updatedBy"))}},Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("updatedAt"))})),"\n                    ",HTML.TD("\n                        ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminTestimoniesEdit",Spacebars.kw({sourceId:e.lookup("_id"),lng:e.lookup("dfmLanguagesGetPrimaryCode")}))},class:"btn btn-xs btn-warning","data-id":function(){return Spacebars.mustache(e.lookup("id"))}},HTML.Raw('<span class="material-icons-outlined">edit</span>')),HTML.Raw('\n                        <a href="" class="btn btn-xs btn-danger js-delete-page"><span class="material-icons-outlined">delete</span></a>\n                    ')),"\n                "),"\n            "]}),"\n        "),"\n    "),HTML.Raw('\n\n    <h2>Header logos</h2> <small>balise : &lt;headerLogos&gt;&lt;/headerLogos&gt;</small>\n    <a href="" class="float-end btn-xs btn-ouispeak js-add-header-logo">add a header logo</a>\n    '),HTML.TABLE({class:"table table-hover table-stripped"},"\n        ",HTML.THEAD("\n            ",HTML.TR(HTML.Raw('\n                <th></th>\n                <th></th>\n                <th>logo</th>\n                <th>url</th>\n                <th>createdAt</th>\n                <th>updatedAt</th>\n                <th width="100"></th>\n            ')),"\n        "),"\n        ",HTML.TBODY("\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("headerLogos"))},function(){return["\n                ",HTML.TR("\n                    ",HTML.TD(Blaze.View("lookup:getHeaderLogoIndex",function(){return Spacebars.makeRaw(Spacebars.mustache(e.lookup("getHeaderLogoIndex"),e.lookup("@index")))})),"\n                    ",HTML.TD({style:"background-color: var(--color-blue)"},HTML.A({href:"url"},HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("logo"))},alt:"",width:"50"}))),"\n                    ",HTML.TD(Blaze.View("lookup:logo",function(){return Spacebars.mustache(e.lookup("logo"))})),"\n                    ",HTML.TD(Blaze.View("lookup:url",function(){return Spacebars.mustache(e.lookup("url"))})),"\n                    ",HTML.TD({title:function(){return Spacebars.mustache(e.lookup("getUserFullname"),e.lookup("createdBy"))}},Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"))})),"\n                    ",HTML.TD({title:function(){return Spacebars.mustache(e.lookup("getUserFullname"),e.lookup("updatedBy"))}},Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("updatedAt"))})),"\n                    ",HTML.TD("\n                        ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminHeaderLogoEdit",Spacebars.kw({id:e.lookup("_id")}))},class:"btn btn-xs btn-warning","data-id":function(){return Spacebars.mustache(e.lookup("id"))}},HTML.Raw('<span class="material-icons-outlined">edit</span>')),HTML.Raw('\n                        <a href="" class="btn btn-xs btn-danger js-delete-header-logo"><span class="material-icons-outlined">delete</span></a>\n                    ')),"\n                "),"\n            "]}),"\n        "),"\n    "),HTML.Raw('\n\n    <h2>Customers logos</h2>\n    <a href="" class="float-end btn-xs btn-ouispeak js-add-customer-logo">add a customer logo</a>\n    '),HTML.TABLE({class:"table table-hover table-stripped"},"\n        ",HTML.THEAD("\n            ",HTML.TR(HTML.Raw('\n                <th></th>\n                <th></th>\n                <th>logo</th>\n                <th>url</th>\n                <th>createdAt</th>\n                <th>updatedAt</th>\n                <th width="100"></th>\n            ')),"\n        "),"\n        ",HTML.TBODY("\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("customersLogo"))},function(){return["\n                ",HTML.TR("\n                    ",HTML.TD(Blaze.View("lookup:getCustomersLogoIndex",function(){return Spacebars.makeRaw(Spacebars.mustache(e.lookup("getCustomersLogoIndex"),e.lookup("@index")))})),"\n                    ",HTML.TD({style:"background-color: var(--color-blue)"},HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("logo"))},alt:"",width:"50"})),"\n                    ",HTML.TD(Blaze.View("lookup:logo",function(){return Spacebars.mustache(e.lookup("logo"))})),"\n                    ",HTML.TD(Blaze.View("lookup:url",function(){return Spacebars.mustache(e.lookup("url"))})),"\n                    ",HTML.TD({title:function(){return Spacebars.mustache(e.lookup("getUserFullname"),e.lookup("createdBy"))}},Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"))})),"\n                    ",HTML.TD({title:function(){return Spacebars.mustache(e.lookup("getUserFullname"),e.lookup("updatedBy"))}},Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("updatedAt"))})),"\n                    ",HTML.TD("\n                        ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminCustomersLogoEdit",Spacebars.kw({id:e.lookup("_id")}))},class:"btn btn-xs btn-warning","data-id":function(){return Spacebars.mustache(e.lookup("id"))}},HTML.Raw('<span class="material-icons-outlined">edit</span>')),HTML.Raw('\n                        <a href="" class="btn btn-xs btn-danger js-delete-customer-logo"><span class="material-icons-outlined">delete</span></a>\n                    ')),"\n                "),"\n            "]}),"\n        "),"\n    ")]})},
189"customers-logo-edit.js":function(e,t,n){n.link("./customers-logo-edit.html");Template.adminCustomersLogoEdit.onCreated(function(){});Template.adminCustomersLogoEdit.onRendered(function(){});Template.adminCustomersLogoEdit.onDestroyed(function(){});Template.adminCustomersLogoEdit.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{link:Router.path("adminTestimonies"),class:"",title:"Testimonies"},{title:"Edit"}])},sourceId:function(){return Router.current().params.sourceId},lng:function(){return Router.current().params.lng},isLngActive:function(e){return e===Router.current().params.lng?"active":""}});Template.adminCustomersLogoEdit.events({"submit form":function(e,t){e.preventDefault();log(e.currentTarget);var n=Router.current().params.id;var a=dfm.serialize(e.currentTarget);Meteor.call("admin.customerslogos.update",n,a,function(e,t){log(t);if(e)dfm.toastError(e);else Router.go("adminTestimonies")})}})},
189"edit.js":function(e,t,n){var a;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){a=e}},0);n.link("./edit.html");Template.adminTestimoniesEdit.onCreated(function(){});Template.adminTestimoniesEdit.onRendered(function(){});Template.adminTestimoniesEdit.onDestroyed(function(){});Template.adminTestimoniesEdit.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{link:Router.path("adminTestimonies"),class:"",title:"Testimonies"},{title:"Edit"}])},sourceId:function(){return Router.current().params.sourceId},lng:function(){return Router.current().params.lng},isLngActive:function(e){return e===Router.current().params.lng?"active":""},lngStatus:function(e){if(e===Router.current().params.lng)return"btn-primary btn-lg text-white";var t=a.findOne({code:e});if(null==t?void 0:t.interfaceOuispeak)return"btn-warning btn-sm opacity-50";return"border"},currentRouteName:function(){return Router.current().route.getName()}});Template.adminTestimoniesEdit.events({"submit form":function(e,t){e.preventDefault();log(e.currentTarget);var n=Router.current().params.sourceId;var a=Router.current().params.lng;var o=dfm.serialize(e.currentTarget);Meteor.call("admin.testimonies.update",n,a,o,function(e,t){if(e)dfm.toastError(e);else{dfm.toastSuccess("Testimony updated");Router.go("adminTestimonies")}})}})},
189"header-logo-edit.js":function(e,t,n){n.link("./header-logo-edit.html");Template.adminHeaderLogoEdit.onCreated(function(){});Template.adminHeaderLogoEdit.onRendered(function(){});Template.adminHeaderLogoEdit.onDestroyed(function(){});Template.adminHeaderLogoEdit.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{link:Router.path("adminTestimonies"),class:"",title:"Testimonies"},{title:"Edit"}])}});Template.adminHeaderLogoEdit.events({"submit form":function(e,t){e.preventDefault();var n=Router.current().params.id;var a=dfm.serialize(e.currentTarget);Meteor.call("admin.headerlogos.update",n,a,function(e,t){log(t);if(e)dfm.toastError(e);else Router.go("adminTestimonies")})}})},
189"testimonies.js":function(e,t,n){var a,o,r;n.link("/import/api/testimonies/lib/collections.js",{CustomersLogos:function(e){a=e},Testimonies:function(e){o=e},HeaderLogos:function(e){r=e}},0);n.link("./testimonies.html");Template.adminTestimonies.onCreated(function(){});Template.adminTestimonies.onRendered(function(){});Template.adminTestimonies.onDestroyed(function(){});Template.adminTestimonies.helpers({breadcrumbLinks:function(){return dfm.buildBreadcrumb([{link:Router.path("home"),class:"",title:'<span class="material-icons-outlined">cottage</span>'},{link:Router.path("adminDashboard"),class:"",title:"Dashboard"},{title:"Testimonies"}])},testimonies:function(){return o.find({source:true})},customersLogo:function(){return a.find({source:true})},headerLogos:function(){log(r.find({}).fetch());return r.find({})},getCustomersLogoIndex:function(e){if(e>26)return'<span class="material-icons-outlined">more_horiz</span>';return e+1},getHeaderLogoIndex:function(e){if(e>26)return'<span class="material-icons-outlined">more_horiz</span>';return e+1}});Template.adminTestimonies.events({"click .js-add-testimony":function(e,t){e.preventDefault();Meteor.call("admin.testimonies.add",function(e,t){log(t);if(e)dfm.toastError(e);else Router.go("adminTestimoniesEdit",{sourceId:t,lng:dfm.languages.getPrimary()})})},"click .js-delete-page":function(e,t){var n=this;e.preventDefault();dfm.confirm("sure?",function(e){if(!e)return;var t=n._id;Meteor.call("admin.testimonies.remove",t,function(e,t){if(e)dfm.toastError(e)})},e.shiftKey)},"click .js-add-customer-logo":function(e,t){e.preventDefault();Meteor.call("admin.customerslogos.add",function(e,t){log(t);if(e)dfm.toastError(e);else Router.go("adminCustomersLogoEdit",{id:t})})},"click .js-delete-customer-logo":function(e,t){var n=this;e.preventDefault();dfm.confirm("sure?",function(e){if(!e)return;Meteor.call("admin.customerslogos.remove",n._id,function(e){if(e)dfm.toastError(e);else dfm.toastSuccess("Customer logo deleted")})},e.shiftKey)},"click .js-add-header-logo":function(e,t){e.preventDefault();Meteor.call("admin.headerlogos.add",function(e,t){if(e)dfm.toastError(e);else Router.go("adminHeaderLogoEdit",{id:t})})},"click .js-delete-header-logo":function(e,t){var n=this;e.preventDefault();dfm.confirm("sure?",function(e){if(!e)return;Meteor.call("admin.headerlogos.remove",n._id,function(e){if(e)dfm.toastError(e);else dfm.toastSuccess("Header logo deleted")})},e.shiftKey)}})}}},lib:{
189"collections.js":function(e,t,n){n.export({Testimonies:function(){return a},CustomersLogos:function(){return o},HeaderLogos:function(){return r}});var a=new Mongo.Collection("o_testimonies");var o=new Mongo.Collection("o_customers_logos");var r=new Mongo.Collection("o_header_logos")}}},admin:{dashboard:{
189"dashboard.html":function(e,t,n){n.link("./template.dashboard.js",{"*":"*+"})},
189"template.dashboard.js":function(){Template.__checkName("adminDashboard");Template["adminDashboard"]=new Template("Template.adminDashboard",function(){var e=this;return[HTML.Raw("<h1>Dashboard</h1>\n\n    "),Blaze.If(function(){return Spacebars.call(e.lookup("editingAdminMessage"))},function(){return["\n    ",Blaze._TemplateWith(function(){return{html:Spacebars.call(Spacebars.dot(e.lookup("adminsMessage"),"message"))}},function(){return Spacebars.include(e.lookupTemplate("adminDashboardAdminMessage"))}),"\n    "]},function(){return["\n    ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("adminsMessage"),"message"))},function(){return[HTML.Raw('\n    <div class="text-end"><small><a href="" class="js-admin-message-edit">click to edit message</a></small></div>\n    '),HTML.DIV({class:"admins-message"},Blaze.View("lookup:adminsMessage.message",function(){return Spacebars.makeRaw(Spacebars.mustache(Spacebars.dot(e.lookup("adminsMessage"),"message")))})),"\n    "]},function(){return HTML.Raw('\n    <div class="float-end"><small><a class="clickable js-admin-message-edit">click to put a message here</a></small></div>\n    ')}),"\n    "]})]});Template.__checkName("adminDashboardAdminMessage");Template["adminDashboardAdminMessage"]=new Template("Template.adminDashboardAdminMessage",function(){var e=this;return HTML.FORM(HTML.Raw("\n      <label>admin message</label>\n      "),HTML.TEXTAREA({name:"adminsMessageOuispeak",class:"form-control",rows:"1",value:function(){return Spacebars.mustache(e.lookup("html"))}}),HTML.Raw('\n      <button type="submit" class="mt-2 btn btn-primary">save</button>\n      <button type="button" class="mt-2 btn btn-light js-cancel">cancel</button>\n    '))})},
189"dashboard.js":function(e,t,n){var a;n.link("meteor/davidfm:core/api/settings/lib/collections.js",{DfmSettings:function(e){a=e}},0);n.link("./dashboard.html");Template.adminDashboard.onCreated(function(){});Template.adminDashboard.onRendered(function(){});Template.adminDashboard.onDestroyed(function(){});Template.adminDashboard.helpers({adminsMessage:function(){var e;var t=(null==(e=a.findOne({sourceId:"appSettings",key:"adminsMessageOuispeak"}))?void 0:e.value)||'{"type":"info","message":""}';return JSON.parse(t)},editingAdminMessage:function(){return Session.get("adminMessageEdit")}});Template.adminDashboard.events({"click .js-admin-message-edit":function(e,t){e.preventDefault();Session.set("adminMessageEdit",true)},"blur [name=adminMessage]":function(e,t){var n=document.querySelector("[name=adminsMessageOuispeak]").value;var o=a.findOne({sourceId:"appSettings",key:"adminsMessageOuispeak"});console.log(o,{type:"warning",message:n});Meteor.call("dfmSettingsUpdate",o._id,{value:JSON.stringify({type:"warning",message:n})},function(){Session.set("adminMessageEdit",false)})}});Template.adminDashboardAdminMessage.onCreated(function(){});Template.adminDashboardAdminMessage.onRendered(function(){$("[name=adminsMessageOuispeak]").summernote({toolbar:[["style",["bold","italic","underline","strikethrough","clear"]],["misc",["codeview"]]]})});Template.adminDashboardAdminMessage.onDestroyed(function(){});Template.adminDashboardAdminMessage.helpers({});Template.adminDashboardAdminMessage.events({"submit form":function(e,t){e.preventDefault();var n=dfm.serialize(e.currentTarget);var o=a.findOne({sourceId:"appSettings",key:"adminsMessageOuispeak"});console.log(o,{type:"warning",message:n.adminsMessageOuispeak});if("<p><br></p>"===n.adminsMessageOuispeak)n.adminsMessageOuispeak="";Meteor.call("dfmSettingsUpdate",o._id,{value:JSON.stringify({type:"warning",message:n.adminsMessageOuispeak})},function(){Session.set("adminMessageEdit",false)})},"click .js-cancel":function(){Session.set("adminMessageEdit",false)}})}},layout:{
189"layout.html":function(e,t,n){n.link("./template.layout.js",{"*":"*+"})},
189"template.layout.js":function(){Template.__checkName("adminLayout");Template["adminLayout"]=new Template("Template.adminLayout",function(){var e=this;return Blaze.If(function(){return Spacebars.call(e.lookup("isAdmin"))},function(){return["\n    ",HTML.DIV({id:"admin-layout"},"\n      ",Blaze.If(function(){return Spacebars.call(e.lookup("isLocalhost"))},function(){return HTML.Raw('<span class="d-block badge bg-warning text-dark position-fixed w-100" style="z-index:1300">localhost</span>')}),"\n      ",HTML.DIV({class:"container-fluid"},"\n        ",HTML.DIV({class:"row"},"\n          ",HTML.NAV({id:"sidebarMenu",class:function(){return["col-3 col-lg-2 sidebar ",Spacebars.mustache(e.lookup("isSidebarOpen"))]}},"\n            ",HTML.DIV({class:"position-sticky pt-3"},"\n              ",HTML.UL({class:"nav flex-column"},"\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call("home"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:"nav-item"},HTML.A({class:"nav-link","aria-current":"page",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"home")}},HTML.Raw('<span class="material-icons-outlined">home</span> home'))),HTML.Raw('\n                <li>\n                  <hr class="dropdown-divider">\n                </li>\n                '),Blaze._TemplateWith(function(){return{str:Spacebars.call("dashboard"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),"adminDashboard")]}},HTML.A({class:"nav-link","aria-current":"page",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminDashboard")}},HTML.Raw('<span class="material-icons-outlined">dashboard</span> Dashboard'))),HTML.Raw('\n                <li>\n                  <hr class="dropdown-divider">\n                </li>\n                '),Blaze._TemplateWith(function(){return{str:Spacebars.call("pages"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),Spacebars.kw({regex:"adminPages"}))]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminPages")}},HTML.Raw('<span class="material-icons-outlined">web</span> Pages'))),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),Spacebars.kw({regex:"adminMenu"}))]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminMenu")}},HTML.Raw('<span class="material-icons-outlined">menu</span> Menu'))),"\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call("blogs"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),Spacebars.kw({regex:"adminBlogs"}))]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminBlogs")}},HTML.Raw('<span class="material-icons-outlined">article</span> Blogs'))),"\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call("news"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),Spacebars.kw({regex:"adminNews"}))]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminNews")}},HTML.Raw('<span class="material-icons-outlined">newspaper</span> News'))),"\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call("docs"),placement:Sp
189acebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),Spacebars.kw({regex:"adminDocs"}))]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminDocs")}},HTML.Raw('<span class="material-icons-outlined">description</span> Docs'))),HTML.Raw('\n                <li>\n                  <hr class="dropdown-divider">\n                </li>\n                '),Blaze._TemplateWith(function(){return{str:Spacebars.call("components"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),Spacebars.kw({regex:"adminComponents"}))]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminComponents")}},HTML.Raw('<span class="material-icons-outlined">apps</span> Components'))),"\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call("testimonies"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),"adminTestimonies")]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminTestimonies")}},HTML.Raw('<span class="material-icons-outlined">rate_review</span> Testimonies'))),HTML.Raw('\n                <li>\n                  <hr class="dropdown-divider">\n                </li>\n                \n                '),Blaze._TemplateWith(function(){return{str:Spacebars.call("google files"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),"adminGoogleFilesList")]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminGoogleFilesList")}},HTML.Raw('<span class="material-icons-outlined">description</span> Google Files'))),"\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call("newsletter"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),"adminNewsletter")]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminNewsletter")}},HTML.Raw('<span class="material-icons-outlined">newspaper</span> Newsletter'))),"\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call("forms"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),"adminForms")]}},"\n                  ",HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminForms")}},HTML.Raw('\n                    <span class="material-icons-outlined">list_alt</span>\n                    Forms\n                    '),Spacebars.With(function(){return Spacebars.dataMustache(e.lookup("getCount"),"formsNotRead")},function(){return["\n                      ",HTML.SPAN({class:"badge-notification position-absolute m-1 badge rounded-pill bg-danger"},Blaze.View("lookup:.",function(){return Spacebars.mustache(e.lookup("."))})),"\n                    "]}),"\n                  "),"\n                "),"\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call("contacts"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),"adminContacts")]}},"\n                  ",HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminContacts")}
189},HTML.Raw('\n                    <span class="material-icons-outlined">contact_emergency</span>\n                    Contacts\n                    '),Spacebars.With(function(){return Spacebars.dataMustache(e.lookup("getCount"),"contactsNotRead")},function(){return["\n                      ",HTML.SPAN({class:"badge-notification position-absolute m-1 badge rounded-pill bg-danger"},Blaze.View("lookup:.",function(){return Spacebars.mustache(e.lookup("."))})),"\n                    "]}),"\n                  "),"\n                "),HTML.Raw('\n                <li>\n                  <hr class="dropdown-divider">\n                </li>\n                '),Blaze._TemplateWith(function(){return{str:Spacebars.call("translations"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),"adminTranslations")]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminTranslations")}},HTML.Raw('<span class="material-icons-outlined">translate</span> Translations'))),"\n              "),"\n              ",Blaze.If(function(){return Spacebars.call(e.lookup("isSuperAdmin"))},function(){return["\n                ",HTML.H6({class:"sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-3"},"\n                  ",HTML.SPAN(Spacebars.include(e.lookupTemplate("onlySuperAdmin"))," SuperAdmin"),"\n                "),"\n                ",HTML.UL({class:"nav flex-column mb-2"},"\n                  ",Blaze.If(function(){return Spacebars.call(e.lookup("isSuperAdmin"))},function(){return["\n                    ",Blaze._TemplateWith(function(){return{str:Spacebars.call("languages"),placement:Spacebars.call("right"),class:Spacebars.call("bg-dark text-light")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                    ",HTML.LI({class:function(){return["nav-item ",Spacebars.mustache(e.lookup("isActiveRoute"),"appAdminLanguages")]}},HTML.A({class:"nav-link",href:function(){return Spacebars.mustache(e.lookup("pathFor"),"appAdminLanguages")}},HTML.Raw('<span class="material-icons-outlined">language</span>\n                        Languages'))),"\n                  "]}),"\n                "),"\n              "]}),"\n              ",Blaze.If(function(){return Spacebars.call(e.lookup("isWebmaster"))},function(){return["\n                ",Spacebars.include(e.lookupTemplate("webmasterMenu")),"\n              "]}),"\n              ",Blaze.If(function(){return Spacebars.call(e.lookup("isWebmaster"))},function(){return["\n                ",HTML.UL({class:"nav flex-column mb-2"},"\n                  ",HTML.LI({class:"nav-item"},HTML.A({class:"nav-link"}
189,HTML.Raw(' <span class="material-icons-outlined">trending_up</span> '),Blaze.View("lookup:appVersion",function(){return Spacebars.mustache(e.lookup("appVersion"))}))),"\n                  \n                "),"\n              "]}),HTML.Raw("\n              \x3c!-- Sidebar Toggler (Sidebar) --\x3e\n              "),HTML.DIV({class:"text-center"},"\n                ",HTML.A({id:"sidebar-toggler",class:"clickable"},HTML.SPAN({class:"material-icons-outlined bg-primary text-light"},"chevron_",Blaze.If(function(){return Spacebars.call(e.lookup("isSidebarOpen"))},function(){return"left"},function(){return"right"}))),"\n              "),"\n            "),"\n          "),"\n          ",HTML.MAIN({class:function(){return Blaze.If(function(){return Spacebars.call(e.lookup("isSidebarOpen"))},function(){return"col-9 col-lg-10 px-md-4 sidebar-open"})}},"\n            ",HTML.DIV({id:"navbar-search-container",class:"py-2"},"\n              ",HTML.FORM({id:"navbar-search",class:"d-inline-block form-inline navbar-search"},"\n                ",HTML.DIV({class:"input-group"},"\n                  ",HTML.INPUT({name:"globalSearch",id:"globalSearch",type:"text",class:"form-control bg-light border-1 small",placeholder:"Search...","aria-label":"Search",autocomplete:"off",value:function(){return Spacebars.mustache(e.lookup("globalSearchValue"))}}),"\n                  ",HTML.DIV({class:"input-group-append"},HTML.Raw('\n                    <button type="submit" class="btn btn-primary"><span class="material-icons-outlined">search</span></button>\n                    '),HTML.A({class:function(){return["btn js-globalSearch-reset ",Blaze.Unless(function(){return Spacebars.call(e.lookup("globalSearchValue"))},function(){return"d-none"})]}},HTML.Raw('<span class="material-icons-outlined">close</span>')),"\n                  "),"\n                "),"\n              "),"\n            "),"\n            ",HTML.DIV({id:"page-admin"},"\n              ",Spacebars.include(e.lookupTemplate("yield")),"\n            "),"\n          "),"\n        "),"\n      "),"\n      ",HTML.FOOTER(HTML.Raw('\n        <a href="https://ouispeak.io/admin" class="active">ouispeak.io admin</a>\n        <a href="https://conference.ouispeak.io/admin">conference.ouispeak.io admin</a>\n        '),Blaze.If(function(){return Spacebars.call(e.lookup("isSuperAdmin"))},function(){return HTML.Raw('\n          <a href="https://replay.ouispeak.io" target="_blank">replay.ouispeak.io</a>\n          <a href="https://captions.ouispeak.io" target="_blank"> captions.ouispeak.io</a>\n          <a href="https://logs.ouispeak.io/logs" target="_blank">logs.ouispeak.io</a>\n          <a href="https://control.ouispeak.io" target="_blank"> control.ouispeak.io</a>\n        ')}),"\n      "),"\n      ",Spacebars.include(e.lookupTemplate("dfmMessages")),"\n      ",Spacebars.include(e.lookupTemplate("dfmBackToTop")),"\n    "),"\n  "]})})},
189"layout.js":function(e,t,n){n.link("meteor/davidfm:core/api/back-to-top/client/main.js");n.link("meteor/davidfm:core/api/breadcrumb/client/main.js");n.link("./layout.less");n.link("./layout.html");Template.adminLayout.onCreated(function(){this.subscribe("adminContactsNotRead"),this.subscribe("adminFormsNotRead")});Template.adminLayout.onRendered(function(){});Template.adminLayout.onDestroyed(function(){});Template.adminLayout.helpers({isSidebarOpen:function(){var e,t;return(null==(t=Meteor.user())?void 0:null==(e=t.profile)?void 0:e.sidebarOpen)?"sidebar-open":""},globalSearchValue:function(){return app.globalSearch.get()}});Template.adminLayout.events({"click #sidebar-toggler":function(){Meteor.users.update(Meteor.userId(),{$set:{"profile.sidebarOpen":!Meteor.user().profile.sidebarOpen}})},"keyup input[name=globalSearch]":function(e){var t=e.currentTarget.value;app.globalSearch.set(t||void 0);var n=document.querySelector(".js-globalSearch-reset");if(n)if(t&&t.length>0)n.classList.remove("d-none");else n.classList.add("d-none")},"click .js-globalSearch-reset":function(){app.globalSearch.clear()},"submit #navbar-search":function(e){e.preventDefault();var t=e.currentTarget.globalSearch.value;if(t&&t.length>=3){app.search.set(t);Router.go("adminSearch")}}})},
189"layout.less":function(){}}},blog:{client:{
189"blog-post.html":function(e,t,n){n.link("./template.blog-post.js",{"*":"*+"})},
189"template.blog-post.js":function(){Template.__checkName("blogPost");Template["blogPost"]=new Template("Template.blogPost",function(){var e=this;return HTML.DIV({id:"blog-post"},"\n        ",HTML.DIV({class:"container p-5"},"\n            ",HTML.H2({class:"text-center text-capitalize mt-5 mb-5"},HTML.A({href:function(){return Spacebars.mustache(e.lookup("lngPathFor"),"blog")}},"OUispeak BLOG")),"\n\n            ",HTML.DIV({class:"banner"},HTML.IMG({src:function(){return[Spacebars.mustache(e.lookup("bannerUrl")),"&w=1250"]},class:"rounded-ouispeak",alt:function(){return Spacebars.mustache(e.lookup("bannerAlt"))}})),"\n\n            ",HTML.DIV({class:"content"},"\n                ",Blaze.View("lookup:content",function(){return Spacebars.makeRaw(Spacebars.mustache(e.lookup("content")))}),"\n            "),"\n        "),"\n    ")})},
189"blog.html":function(e,t,n){n.link("./template.blog.js",{"*":"*+"})},
189"template.blog.js":function(){Template.__checkName("blog");Template["blog"]=new Template("Template.blog",function(){var e=this;return HTML.DIV({id:"blog",class:"container"},HTML.Raw('\n        <h1 class="text-center mb-5 text-capitalize">OUispeak BLOG</h1>\n        '),HTML.DIV({class:"grid"},"\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("blogs"))},function(){return["\n            ",HTML.A({class:"post card-ouispeak",href:function(){return["/",Spacebars.mustache(e.lookup("dfmLanguagesGetCurrent")),Spacebars.mustache(e.lookup("slug"))]}},"\n                ",HTML.DIV({class:"banner"},HTML.IMG({class:"w-100",src:function(){return[Spacebars.mustache(e.lookup("bannerUrl")),"&w=450"]},alt:function(){return Spacebars.mustache(e.lookup("bannerAlt"))}})),"\n                ",HTML.DIV({class:"title"},Blaze.View("lookup:title",function(){return Spacebars.mustache(e.lookup("title"))})),"\n                ",HTML.DIV({class:"date"},Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"),"medium")})),"\n            "),"\n            "]}),"\n        "),"\n    ")})},
189"blog-post.js":function(e,t,n){n.link("./blog-post.html");Template.blogPost.onCreated(function(){log(this)});Template.blogPost.onRendered(function(){window.prerenderReady=true});Template.blogPost.onDestroyed(function(){});Template.blogPost.helpers({});Template.blogPost.events({})},
189"blog.js":function(e,t,n){var a;n.link("/import/api/pages/lib/collections.js",{Pages:function(e){a=e}},0);n.link("./blog.html");Template.blog.onCreated(function(){});Template.blog.onRendered(function(){window.prerenderReady=true});Template.blog.onDestroyed(function(){});Template.blog.helpers({blogs:function(){var e=a.find({slug:{$regex:"/blog/*",$options:"i"},source:true},{sort:{createdAt:-1}}).map(function(e){var t=a.findOne({sourceId:e._id,locale:dfm.languages.getCurrent()});if(t)e=t;else{var n=a.findOne({sourceId:e._id,locale:dfm.languages.getPrimary({navigatorLanguage:false})});if(n)e=n}return e});return e},source:function(){log(this);log(a.findOne({_id:this.sourceId}));return a.findOne({_id:this.sourceId})}});Template.blog.events({})}}},compare:{client:{
189"compare.html":function(e,t,n){n.link("./template.compare.js",{"*":"*+"})},
189"template.compare.js":function(){Template.__checkName("htmlCompare");Template["htmlCompare"]=new Template("Template.htmlCompare",function(){return HTML.FORM(HTML.Raw("\n\n  <h3>Comparaison HTML</h3>\n  "),HTML.DIV({class:"row"},"\n    ",HTML.TEXTAREA({class:"code-editor code-editor-left col-6",value:"\n      <h1>Titre</h1>\n      <p>Some text</p>\n    "}),"\n    ",HTML.TEXTAREA({class:"code-editor code-editor-right col-6",value:"\n      <div>Une div</div>\n      <h1>Titre</h1>\n      <p>Another piece of text</p>\n    "}),"\n  "),HTML.Raw('\n\n  <h2>Liste des diff\xe9rences</h2>\n  <div class="code-editor-result-list row">\n    <ul class="code-editor-left-results col-6 text-danger">\n      \n    </ul>\n    <ul class="code-editor-right-results col-6 text-success">\n      \n    </ul>\n  </div>\n\n  <button type="submit" class="mt-2 btn btn-primary">save</button>\n  <button type="button" class="mt-2 btn btn-light js-cancel">cancel</button>\n'))})},
189"compare.js":function(e,t,n){n.link("jquery",{expr:function(e){}},0);n.link("./compare.html");var a=e("html-compare");Template.htmlCompare.onCreated(function(){});Template.htmlCompare.onRendered(function(){function e(e){var t=e.value.substr(0,e.selectionStart);var n=t.split("\n");return n.length}var t=document.querySelector(".code-editor-left");t.addEventListener("keyup",function(){var n=e(t);console.log("Ligne actuelle:",n)});var n=document.querySelector(".code-editor-left");var o=document.querySelector(".code-editor-right");n.value.trim();o.value.trim();var r=document.querySelector(".code-editor-right-results");var s=document.querySelector(".code-editor-left-results");var l=a.compare(n.value,o.value);if(l.different)l.changes.map(function(e){var t=document.createElement("li");t.textContent=e.message;t.textContent.replace(/>(.*?)</g,"><");if("Added"==e.message.split(":")[0])r.appendChild(t);else s.appendChild(t)});else console.log("No changes found.")});Template.htmlCompare.onDestroyed(function(){});Template.htmlCompare.helpers({});Template.htmlCompare.events({})}}},news:{client:{
189"news.html":function(e,t,n){n.link("./template.news.js",{"*":"*+"})},
189"template.news.js":function(){Template.__checkName("news");Template["news"]=new Template("Template.news",function(){var e=this;return[Blaze.View("lookup:content",function(){return Spacebars.makeRaw(Spacebars.mustache(e.lookup("content")))}),"\n\n    ",HTML.DIV({id:"news",class:"container"},"\n        ",HTML.DIV({class:"grid"},"\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("news"))},function(){return["\n            ",HTML.A({class:"post card-ouispeak",href:function(){return Spacebars.mustache(e.lookup("url"))},target:"_blank"},"\n                ",HTML.DIV({class:"banner"},HTML.IMG({class:"w-100 rounded-ouispeak",src:function(){return Spacebars.mustache(e.lookup("bannerUrl"))},alt:""})),"\n                ",HTML.DIV({class:"title"},Blaze.View("lookup:title",function(){return Spacebars.mustache(e.lookup("title"))})),"\n                ",HTML.DIV({class:"date"},Blaze.If(function(){return Spacebars.call(e.lookup("publicationDate"))},function(){return Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("publicationDate"),"short")})},function(){return Blaze.View("lookup:formatDate",function(){return Spacebars.mustache(e.lookup("formatDate"),e.lookup("createdAt"),"short")})})),"\n            "),"\n            "]}),"\n        "),"\n    ")]})},
189"news.js":function(e,t,n){var a;n.link("/import/api/pages/lib/collections.js",{Pages:function(e){a=e}},0);n.link("./news.html");Template.news.onCreated(function(){});Template.news.onRendered(function(){});Template.news.onDestroyed(function(){});Template.news.helpers({news:function(){return a.find({slug:{$regex:"^/news/"},locale:dfm.languages.getCurrent()},{sort:{publicationDate:-1,createdAt:-1}})}});Template.news.events({})}}},"mail-templates":{client:{admin:{
189"mail-templates.js":function(){}}}},"code-editor":{client:{
189"code-editor-class.js":function(e,t,n){var a,o;n.link("codemirror",{EditorView:function(e){a=e},basicSetup:function(e){o=e}},0);var r;n.link("@codemirror/merge",{MergeView:function(e){r=e}},1);var s;n.link("@codemirror/state",{EditorState:function(e){s=e}},2);var l;n.link("@codemirror/view",{keymap:function(e){l=e}},3);var i;n.link("@codemirror/lang-html",{htmlLanguage:function(e){i=e}},4);var c;n.link("@codemirror/commands",{indentWithTab:function(e){c=e}},5);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}function m(e,t,n){if(t)p(e.prototype,t);if(n)p(e,n);return e}var d=function(){"use strict";function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e);this.containerEl=document.getElementById(t);this.options=n;this.editable=false!==n.editable;this.editor=null;this.state=null;this.initialize()}m(e,[{key:"initialize",value:function(){var e=this;if(this.options.mergeView){this.editor=new r({a:{doc:this.options.mergeView.a.content,extensions:[o,i]},b:{doc:this.options.mergeView.b.content,extensions:[o,i,a.editable.of(false),s.readOnly.of(true)]},parent:this.containerEl});this.contentNoText=document.createElement("div");this.contentNoText.id="content-no-text";this.contentNoText.classList.add("mt-5","d-none");this.containerEl.appendChild(this.contentNoText);var t=this.htmlWithoutText(this.editor.a.state.doc.toString());var n=this.htmlWithoutText(this.editor.b.state.doc.toString());this.editorNoText=new r({a:{doc:t,extensions:[o,i]},b:{doc:n,extensions:[o,i,a.editable.of(false),s.readOnly.of(true)]},parent:this.contentNoText});var u=function(){var t=e.getDifferentLinesStructureOnly("content-no-text",false);e.displayDifferentLines("content",t,false)};window.addEventListener("keyup",function(){e.updateContentNoText.bind(e);u()})}else{this.state=s.create({doc:this.options.content,extensions:[o,i,l.of([c]),a.editable.of(this.editable)]});this.editor=new a({state:this.state,parent:this.containerEl})}}},{key:"updateContentNoText",value:function(){var e=this.htmlWithoutText(this.editor.a.state.doc.toString());this.editorNoText.a.dispatch({changes:{from:0,to:this.editorNoText.a.state.doc.length,insert:e}});var t=this.htmlWithoutText(this.editor.b.state.doc.toString());this.editorNoText.b.dispatch({changes:{from:0,to:this.editorNoText.b.state.doc.length,insert:t}})}},{key:"htmlWithoutText",value:function(e){return e.replace(/(>)[^<>]+?(?=<)/g,function(e,t){return t+e.slice(1).replace(/[^\n]/g,"")})}},{key:"getContainerTextContent",value:function(){return this.containerEl.textContent}},{key:"getDifferentLinesStructureOnly",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:false;var n=[];var a;a=t?document.getElementById(e).querySelectorAll(".cm-mergeViewEditor")[1]:document.getElementById(e).querySelectorAll(".cm-mergeViewEditor")[0];var o=a.querySelectorAll(".cm-line");for(var r=0;r<o.length;r++)if(o[r].classList.contains("cm-changedLine"))n[r]=true;else n[r]=false;return n}},{key:"displayDifferentLines",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:false;var a;a=n?document.getElementById(e).querySelectorAll(".cm-mergeViewEditor")[1]:document.getElementById(e).querySelectorAll(".cm-mergeViewEditor")[0];for(var o=0;o<t.length;o++)if(t[o])a.querySelectorAll(".cm-line")[o].classList.add("cm-changedLine");else if(a.querySelectorAll(".cm-line")[o].classList.contains("cm-changedLine"))a.querySelectorAll(".cm-line")[o].classList.remove("cm-changedLine")}},{key:"getValue",value:function(){if(this.options.mergeView)return this.editor.a.state.doc.toString();return this.editor.state.doc.toString()}},{key:"indentCode",value:function(){}},{key:"getEditor",value:function(){return this.editor}},{key:"isMergeView",value:function(){return this.options.mergeView}},{key:"updateContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:false;log(this.editor);if(t)this.editor.b.dispatch({changes:{from:0,to:this.editor.b.state.doc.length,insert:e}});else this.editor.dispatch({changes:{from:0,to:this.editor.viewState.state.doc.length,insert:e}})}}]);return e}();n.exportDefault(d)}}}
189,"form-manager":{
189"FormManager.js":function(e,t,n){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}function r(e,t,n){if(t)o(e.prototype,t);if(n)o(e,n);return e}var s=function(){"use strict";function e(t){a(this,e);this.element=t;this.valid=true;this.errorColor="#ff6666"}r(e,[{key:"findInputsAndCheck",value:function(){var e=this.element.querySelectorAll(".required");for(var t=0;t<e.length;t++){var n=e[t].querySelectorAll("input, select, textarea");var a=0;for(var o=0;o<n.length;o++){var r;if(""!==n[o].value&&"checkbox"!==n[o].type||(null==(r=n[o])?void 0:r.checked))a++}if(0===a)this.addErrorMessage(e[t],"formRequiredField")}}},{key:"addErrorMessage",value:function(e,t){var n=document.createElement("p");n.classList.add("error");n.style.color=this.errorColor;n.innerHTML=dfm.trans(t);e.appendChild(n);this.valid=false}},{key:"emailChecking",value:function(){log("emailChecking");var e=this.element.querySelectorAll(".email-validation");for(var t=0;t<e.length;t++)this.checkEmail(e[t])}},{key:"checkEmail",value:function(e){var t=e.querySelector("input");log("checkEmail",t.value);var n=new RegExp("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$");if(!n.test(t.value))this.addErrorMessage(e,"formEmailNotValid")}},{key:"linkChecking",value:function(){log("linkChecking");var e=this.element.querySelectorAll(".link-validation");for(var t=0;t<e.length;t++)this.checkLink(e[t])}},{key:"checkLink",value:function(e){var t=e.querySelector("input");log("checkLink",e.value);var n=new RegExp("^http(s)?://[a-z0-9-.]*[a-z0-9-/]*$");if(!n.test(t.value))this.addErrorMessage(e,"formLinkNotValid")}},{key:"checkIfOneSpecified",value:function(){var e,t=function(t){var a=n[t].querySelectorAll('input[type="radio"]:checked');var o=0;a.forEach(function(e){if(e.value.includes("Unspecified"))o++});if(o===a.length){var r=document.createElement("p");r.classList.add("error");r.style.color=e.errorColor;r.textContent=dfm.trans("formRequiredOneSpecifiedRadioButton");n[t].appendChild(r);e.valid=false}};var n=this.element.querySelectorAll(".check-if-one-specified");for(var a=0;a<n.length;a++)e=this,t(a)}},{key:"testIfErrorExists",value:function(){return!!this.element.querySelector(".error")}},{key:"testIfRequiredExists",value:function(){return!!this.element.querySelector(".required")}},{key:"testIfOneSpecifiedExists",value:function(){return!!this.element.querySelector(".check-if-one-specified")}},{key:"scrollUpToFirstError",value:function(){var e=this.element.querySelector(".error");window.scrollTo(0,e.offsetTop-100)}},{key:"removeErrors",value:function(){var e=this.element.querySelectorAll(".error");for(var t=0;t<e.length;t++)e[t].remove()}},{key:"isValid",value:function(){if(this.testIfErrorExists())this.removeErrors();this.emailChecking();if(this.testIfRequiredExists())this.findInputsAndCheck();if(this.testIfOneSpecifiedExists())this.checkIfOneSpecified();if(this.testIfErrorExists())this.scrollUpToFirstError();return this.valid}}]);return e}();n.exportDefault(s)}},"password-manager":{
189"PasswordManager.js":function(e,t,n){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}function r(e,t,n){if(t)o(e.prototype,t);if(n)o(e,n);return e}var s=function(){"use strict";function e(t){a(this,e);this.element=t;this.valid=true;this.errorColor="#ff6666"}r(e,[{key:"findPassword",value:function(){console.log("findPassword()");var e=this.element.querySelectorAll(".password-validation");for(var t=0;t<e.length;t++)console.log("---- PASSWORD FOUND")}},{key:"isValid",value:function(){this.findPassword()}}]);return e}();n.exportDefault(s)}}},ui:{shared:{
189"avatar.html":function(e,t,n){n.link("./template.avatar.js",{"*":"*+"})},
189"template.avatar.js":function(){Template.__checkName("avatar");Template["avatar"]=new Template("Template.avatar",function(){var e=this;return HTML.DIV({class:"avatar"},"\n        ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("getUserAvatar"),e.lookup("avatarUrl"))},class:"img-avatar",style:function(){return Spacebars.mustache(e.lookup("getSize"),e.lookup("."))}}),"\n        ",Blaze.If(function(){return Spacebars.call(e.lookup("edit"))},function(){return["\n            ",HTML.A({href:"",class:"profil-avatar-edit js-profil-avatar-edit"},HTML.SVG({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 text-white"},"\n                    ",HTML.PATH({d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}),"\n                "),"\n            "),"\n            ",HTML.DIV({id:"avatar-upload"},HTML.Raw('\n                <input name="profile.avatar" type="hidden">\n                '),Blaze._TemplateWith(function(){return{sourceId:Spacebars.call(Spacebars.dataMustache(e.lookup("concat"),"avatar_",e.lookup("_id"))),callback:Spacebars.call(e.lookup("uploadCallback"))}},function(){return Spacebars.include(e.lookupTemplate("dfmGoogleStorageUploadForm"))}),"\n            "),"\n        "]}),"\n\n        ",Blaze.If(function(){return Spacebars.call(e.lookup("languageFrom"))},function(){return["\n            ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("interpreteLanguagesDirection"),Spacebars.kw({userId:e.lookup("userId")}))},function(){return["\n                ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("isSelectedLanguageDirection"),Spacebars.dataMustache(e.lookup("interpreteLanguagesDirection"),Spacebars.kw({userId:e.lookup("userId")})),e.lookup("languageFrom"))},function(){return["\n                    ",Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),Spacebars.dataMustache(e.lookup("getLanguageFromCode"),e.lookup("languageTo")))),placement:Spacebars.call("left")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                    ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("getFlag"),e.lookup("languageTo"),Spacebars.kw({width:100}))},class:"flag left"}),"\n                    ",Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),Spacebars.dataMustache(e.lookup("getLanguageFromCode"),e.lookup("languageFrom")))),placement:Spacebars.call("right")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                    ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("getFlag"),e.lookup("languageFrom"),Spacebars.kw({width:100}))},class:"flag right"}),"\n                "]},function(){return["\n                    ",Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),Spacebars.dataMustache(e.lookup("getLanguageFromCode"),e.lookup("languageFrom")))),placement:Spacebars.call("left")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                    ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("getFlag"),e.lookup("languageFrom"),Spacebars.kw({width:100}))},class:"flag left"}),"\n                    ",Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),Spacebars.dataMustache(e.lookup("getLanguageFromCode"),e.lookup("languageTo")))),placement:Spacebars.call("right")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                    ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("getFlag"),e.lookup("languageTo"),Spacebars.kw({width:100}))},class:"flag right"}),"\n                "]}),"\n            "]},function(){return["\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),Spacebars.dataMustache(e.lookup("getLanguageFromCode"),e.lookup("languageFrom")))),placement:Spacebars.call("left")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("getFlag"),e.lookup("languageFrom"),Spacebars.kw({width:100}))},class:"flag left"}),"\n                ",Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),Spacebars.dataMustache(e.lookup("getLanguageFromCode"),e.lookup("languageTo")))),placement:Sp
189acebars.call("right")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n                ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("getFlag"),e.lookup("languageTo"),Spacebars.kw({width:100}))},class:"flag right"}),"\n            "]}),"\n        "]},function(){return["\n            ",Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),Spacebars.dataMustache(e.lookup("getLanguageFromCode"),e.lookup("language")))),placement:Spacebars.call("left"),reactive:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),"\n            ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("getFlag"),e.lookup("language"),Spacebars.kw({width:100}))},class:"flag left"}),"\n        "]}),"\n    ")})},
189"connection.html":function(e,t,n){n.link("./template.connection.js",{"*":"*+"})},
189"template.connection.js":function(){Template.__checkName("mainConnection");Template["mainConnection"]=new Template("Template.mainConnection",function(){var e=this;return HTML.DIV({id:"main-connection"},"\n        ",HTML.DIV({class:"main-connection-login-container"},Spacebars.include(e.lookupTemplate("connection"))),"\n    ")});Template.__checkName("connection");Template["connection"]=new Template("Template.connection",function(){var e=this;return HTML.DIV({id:"connection"},"\n        ",Blaze.Unless(function(){return Spacebars.call(e.lookup("currentUser"))},function(){return["\n            ",HTML.DIV({class:function(){return["at-form text-start mt-5 p-3 ",Spacebars.mustache(e.lookup("sizes"))]}},"\n                ",HTML.DIV({class:"title"},HTML.A({href:"",class:"js-show-signin btn-ouispeak"},Blaze._TemplateWith(function(){return{c:Spacebars.call("signinWithYourAccount"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))}))),"\n\n                ",HTML.FORM({id:"form-signin",class:"card-ouispeak text-light"},"\n                    ",HTML.FIELDSET("\n                        ",HTML.DIV({class:"at-input form-group"},"\n                            ",HTML.LABEL({class:"control-label",for:"email"},Blaze._TemplateWith(function(){return{c:Spacebars.call("email"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                            ",HTML.INPUT({type:"email",class:"form-control",id:"email",name:"email",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"pleaseEnterYourEmail")},autocapitalize:"none",autocorrect:"off",value:function(){return Spacebars.mustache(e.lookup("email"))},required:"required"}),"\n                            ",Blaze.If(function(){return Spacebars.call(e.lookup("emailExist"))},function(){return[HTML.SPAN({class:"badge bg-warning text-dark"},Blaze.View("lookup:trans",function(){return Spacebars.mustache(e.lookup("trans"),"WARN_emailExist")}))," ",HTML.A({href:"/forgot-password",class:""}," ",Blaze._TemplateWith(function(){return{c:Spacebars.call("forgottenPassword")}},function(){return Spacebars.include(e.lookupTemplate("trans"))}))]}),"\n                        "),"\n\n                        ",HTML.DIV({class:"at-input form-group mt-3"},"\n                            ",HTML.LABEL({class:"control-label",for:"at-field-password-signin"},Blaze._TemplateWith(function(){return{c:Spacebars.call("password"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                            ",HTML.INPUT({type:"password",class:"form-control",id:"at-field-password-signin",name:"password",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"password")},autocapitalize:"none",autocorrect:"off"}),HTML.Raw('\n\n                            <span class="glyphicon glyphicon-ok form-control-feedback"></span>\n\n                            <span class="help-block hide"></span>\n                        ')),"\n                    "),"\n\n                    ",HTML.DIV({class:"mt-4"},"\n                        ",HTML.A({href:"",id:"at-forgotPwd",class:"btn at-link at-pwd float-end js-show-forgot-password"},Blaze._TemplateWith(function(){return{c:Spacebars.call("forgotYourPassword"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                        ",HTML.BUTTON({type:"submit",id:"submit-signin",class:"btn btn-ouispeak"},HTML.Raw('<i class="fa fa-fw fa-sign-in"></i> '),Blaze._TemplateWith(function(){return{c:Spacebars.call("signin")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                    "),HTML.Raw("\n\n                    <hr>\n                    "),Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),"connectWithGoogle")),placement:Spacebars.call("auto")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),HTML.Raw('\n                    <a href="" class="js-signin-with-google"><img src="/packages/davidfm_core/assets/img/google_icon_130924.png" width="38"></a>\n                    '),Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),"connectWithLinkedin")),placement:Sp
189acebars.call("auto")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),HTML.Raw('\n                    <a href="" class="js-signin-with-linkedin"><img src="/packages/davidfm_core/assets/img/linkedin_icon_130888.png" width="38"></a>\n                    '),Blaze.If(function(){return Spacebars.call(e.lookup("eventAllowAnonymousAttendees"))},function(){return["\n                        ",Blaze._TemplateWith(function(){return{str:Spacebars.call(Spacebars.dataMustache(e.lookup("trans"),"connectAnonymous")),placement:Spacebars.call("auto")}},function(){return Spacebars.include(e.lookupTemplate("dfmTooltip"))}),HTML.Raw('\n                        <a href="" class="js-signin-anonymous"><img src="/packages/davidfm_core/assets/img/spy-g.png" width="38"></a>\n                    ')]}),"\n                "),"\n\n                ",HTML.DIV({id:"form-forgotPwd",class:"card-ouispeak",style:"display: none;"},"\n                    ",Spacebars.include(e.lookupTemplate("dfmAuthForgot")),"\n                "),"\n            "),"\n\n            ",HTML.DIV({class:"d-flex justify-content-center align-items-center text-uppercase"},Blaze._TemplateWith(function(){return{c:Spacebars.call("or")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n\n        "]}),"\n        ",HTML.DIV({class:""},"\n            ",HTML.DIV({id:"form",class:"text-start"},"\n                ",HTML.DIV({class:function(){return["at-form ",Spacebars.mustache(e.lookup("sizes"))]}},"\n                    ",Blaze.If(function(){return Spacebars.call(e.lookup("currentUser"))},function(){return["\n                        ",HTML.DIV({class:"title"},Blaze._TemplateWith(function(){return{c:Spacebars.call("join"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                    "]},function(){return["\n                        ",HTML.DIV({class:"title"},HTML.A({href:"",class:"js-show-register btn-ouispeak"},Blaze._TemplateWith(function(){return{c:Spacebars.call("join"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))}))),"\n                    "]}),"\n                    ",Spacebars.With(function(){return Spacebars.call(e.lookup("currentUserOrEmptyObj"))},function(){return["\n                        ",HTML.FORM({id:"form-join",class:"card-ouispeak text-light"},"\n                            ",HTML.FIELDSET("\n\n                                ",HTML.DIV({class:"form-group"},"\n                                    ",HTML.LABEL({class:"control-label",for:"at-field-firstName"},"\n                                        ",Blaze._TemplateWith(function(){return{c:Spacebars.call("firstName"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))})," *\n                                    "),"\n                                    ",HTML.INPUT({type:"text",name:"firstName",class:"form-control",id:"at-field-firstName",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"firstName")},autocapitalize:"none",autocorrect:"off",required:"required",value:function(){return Spacebars.mustache(e.lookup("firstName"))}}),HTML.Raw('\n\n                                    <span class="help-block hide"></span>\n                                ')),"\n\n                                ",HTML.DIV({class:"form-group mt-3"},"\n                                    ",HTML.LABEL({class:"control-label",for:"at-field-lastName"},"\n                                        ",Blaze._TemplateWith(function(){return{c:Spacebars.call("lastName"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))})," *\n                                    "),"\n                                    ",HTML.INPUT({type:"text",name:"lastName",class:"form-control",id:"at-field-lastName",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"lastName")},autocapitalize:"none",autocorrect:"off",required:"required",value:function(){return Spacebars.mustache(e.lookup("lastName"))}}
189),HTML.Raw('\n\n                                    <span class="help-block hide"></span>\n                                ')),"\n\n                                ",Blaze.Unless(function(){return Spacebars.call(e.lookup("currentUser"))},function(){return["\n                                    ",HTML.DIV({class:"form-group mt-3"},"\n                                        ",HTML.LABEL({class:"control-label",for:"email"},Blaze._TemplateWith(function(){return{c:Spacebars.call("email"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))})," *"),"\n                                        ",HTML.INPUT({type:"email",class:"form-control",id:"email",name:"email",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"pleaseEnterYourEmail")},autocapitalize:"none",autocorrect:"off",value:function(){return Spacebars.mustache(e.lookup("email"))},required:"required"}),"\n                                        ",Blaze.If(function(){return Spacebars.call(e.lookup("emailExist"))},function(){return[HTML.SPAN({class:"badge bg-warning text-dark"},Blaze.View("lookup:trans",function(){return Spacebars.mustache(e.lookup("trans"),"WARN_emailExist")}))," ",HTML.A({href:"/forgot-password",class:""}," ",Blaze._TemplateWith(function(){return{c:Spacebars.call("forgottenPassword")}},function(){return Spacebars.include(e.lookupTemplate("trans"))}))]}),"\n                                    "),"\n\n                                    ",HTML.DIV({class:"form-group mt-3"},"\n                                        ",HTML.LABEL({class:"control-label",for:"at-field-password"},Blaze._TemplateWith(function(){return{c:Spacebars.call("password"),capitalize:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("trans"))})," *"),"\n                                        ",HTML.INPUT({type:"password",class:"form-control",id:"at-field-password",name:"password",placeholder:function(){return Spacebars.mustache(e.lookup("trans"),"password")},autocapitalize:"none",autocorrect:"off"}),HTML.Raw('\n\n                                        <span class="glyphicon glyphicon-ok form-control-feedback"></span>\n\n                                        <span class="help-block hide"></span>\n                                    ')),"\n                                "]}),"\n\n                                ",Blaze._TemplateWith(function(){return Spacebars.dataMustache(e.lookup("extendContext"),Spacebars.kw({selectName:"language",selectText:e.lookup("getLanguageText")}))},function(){return Spacebars.include(e.lookupTemplate("selectLanguage"))}),"\n\n                                ",HTML.BUTTON({type:"submit",id:"submit-register",class:"btn btn-ouispeak mt-4 text-capitalize"},HTML.Raw('<i class="fa fa-fw fa-sign-in"></i> '),Blaze._TemplateWith(function(){return{c:Spacebars.call("signup")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n\n                                ",HTML.DIV({class:"mt-3 text-end"},"* ",Blaze.View("lookup:trans",function(){return Spacebars.mustache(e.lookup("trans"),"required")})),"\n                            "),"\n                        "),"\n                    "]}),"\n                "),"\n            "),"\n        "),"\n    ")});Template.__checkName("appForgotPwd");Template["appForgotPwd"]=new Template("Template.appForgotPwd",function(){return HTML.Raw('<div class="at-form">\n        <div class="at-title">\n            <h3>Reset your password</h3>\n        </div>\n        <div class="at-pwd-form">\n            <form role="form" id="at-pwd-form" novalidate="" action="#" method="POST">\n                <fieldset>\n                    <div class="at-input form-group has-feedback">\n                        <label class="control-label" for="at-field-email">\n                            Email\n                        </label>\n                        <input type="email" class="form-control" id="at-field-email" name="at-field-email" placeholder="Email" autocapitalize="none" autocorrect="off">\n\n                        <span class="help-block hide"></span>\n                    </div>\n\n                    <button type="submit" class="at-btn submit btn btn-lg btn-block btn-default" id="at-btn">\n                        Email Reset Link\n                    </button>\n                </fieldset>\n            </form>\n        </div>\n        <div class="at-signup-link">\n            <p>\n                Don\'t have an account?\n                <a id="at-signUp" class="at-link at-signup clickable">Register</a>\n\n            </p>\n        </div>\n    </div>')})},
189"profile.html":function(e,t,n){n.link("./template.profile.js",{"*":"*+"})},
189"template.profile.js":function(){Template.__checkName("profile");Template["profile"]=new Template("Template.profile",function(){var e=this;return Spacebars.With(function(){return Spacebars.call(e.lookup("currentUser"))},function(){return["\n    ",HTML.DIV({id:"profile",class:"container"},"\n      ",HTML.DIV({class:"row"},"\n        ",HTML.DIV({class:"col-md-10 offset-md-1 col-xxl-6 offset-xxl-3"},"\n\n          ",HTML.DIV({class:"at-form card-ouispeak text-light"},"\n\n            ",HTML.DIV({class:"at-title"},"\n              ",HTML.H3(Blaze._TemplateWith(function(){return{c:Spacebars.call("profile")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})," "),"\n            "),"\n\n            ",Spacebars.With(function(){return Spacebars.call(e.lookup("formErrors"))},function(){return["\n              ",HTML.DIV({class:"errors"},HTML.Raw("\n                <div>missing</div>\n                "),Blaze.Each(function(){return Spacebars.call(e.lookup("."))},function(){return["\n                  ",HTML.DIV(Blaze.View("lookup:.",function(){return Spacebars.mustache(e.lookup("."))})),"\n                "]}),"\n              "),"\n            "]}),"\n            ",HTML.DIV({class:"at-pwd-form"},"\n              ",HTML.FORM({role:"form",id:"at-pwd-form",novalidate:"",action:"#",method:"POST"},"\n                ",HTML.FIELDSET("\n\n                  ",HTML.DIV({class:"text-center"},"\n                    ",Blaze._TemplateWith(function(){return{userId:Spacebars.call(e.lookup("_id")),width:Spacebars.call(200),language:Spacebars.call(Spacebars.dataMustache(e.lookup("getUserLanguage"),e.lookup("_id"))),avatarUrl:Spacebars.call(Spacebars.dot(e.lookup("profile"),"avatar")),edit:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("avatar"))}),"\n                  "),"\n\n                  ",HTML.DIV({class:"mb-3 at-input form-group"},"\n                    ",HTML.LABEL({class:"control-label",for:"first-name"},Blaze._TemplateWith(function(){return{c:Spacebars.call("firstName")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                    ",HTML.INPUT({type:"text",class:"form-control",id:"first-name",name:"profile.firstName",placeholder:"first name",autocapitalize:"none",autocorrect:"off",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("profile"),"firstName"))}}),HTML.Raw('\n                    <span class="help-block hide"></span>\n                  ')),"\n\n                  ",HTML.DIV({class:"mb-3 at-input form-group"},"\n                    ",HTML.LABEL({class:"control-label",for:"first-name"},Blaze._TemplateWith(function(){return{c:Spacebars.call("lastName")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                    ",HTML.INPUT({type:"text",class:"form-control",id:"last-name",name:"profile.lastName",placeholder:"last name",autocapitalize:"none",autocorrect:"off",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("profile"),"lastName"))}}),HTML.Raw('\n                    <span class="help-block hide"></span>\n                  ')),"\n\n                  ",Blaze._TemplateWith(function(){return Spacebars.dataMustache(e.lookup("extendContext"),Spacebars.kw({selectText:Spacebars.dataMustache(e.lookup("trans"),"interfaceLanguage"),selectName:"profile.language"}))},function(){return Spacebars.include(e.lookupTemplate("selectLanguage"))}),"\n\n                  ",Blaze.If(function(){return Spacebars.call(e.lookup("isInterpreter"))},function(){return["\n                    ",Blaze.Each(function(){return Spacebars.call(Spacebars.dot(e.lookup("profile"),"translationPairs"))},function(){return[HTML.Raw("\n                      <hr>\n                      "),HTML.DIV({class:"row"},"\n                        ",HTML.DIV({class:"col-sm-6"},"\n                          ",HTML.DIV({class:"mb-3"},"\n                            ",HTML.LABEL("Language Interpreter ",Blaze.View("lookup:@index",function(){return Spacebars.mustache(e.lookup("@index"))})),"\n                            ",HTML.SELECT({name:"profile.translationPairs[][0]",class:"form-control"},HTML.Raw('\n                              <option value="">-- choose language</option>\n                              '),Blaze.Each(function(){return Spacebars.call(e.lookup("getLanguages"))},function(){return["\n                                ",Spacebars.With(function(){return{parent:Spacebars.call(e.lookup("..")),context:Spacebars.call(e.lookup("."))}},function(){return["\n                                  ",HTML.OPTION(HTML.Attrs({value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("c
189ontext"),"code"))}},function(){return Spacebars.attrMustache(e.lookup("isSelectedOption"),Spacebars.dot(e.lookup("parent"),"0"),Spacebars.dot(e.lookup("context"),"code"))}),Blaze._TemplateWith(function(){return{c:Spacebars.call(Spacebars.dot(e.lookup("context"),"text"))}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                                "]}),"\n                              "]}),"\n                            "),"\n                          "),"\n                        "),"\n                        ",HTML.DIV({class:"col-sm-6"},"\n                          ",HTML.DIV({class:"mb-3"},"\n                            ",HTML.LABEL("Language Interpreter ",Blaze.View("lookup:@index",function(){return Spacebars.mustache(e.lookup("@index"))})),"\n                            ",HTML.SELECT({name:"profile.translationPairs[][1]",class:"form-control"},HTML.Raw('\n                              <option value="">-- choose language</option>\n                              '),Blaze.Each(function(){return Spacebars.call(e.lookup("getLanguages"))},function(){return["\n                                ",Spacebars.With(function(){return{parent:Spacebars.call(e.lookup("..")),context:Spacebars.call(e.lookup("."))}},function(){return["\n                                  ",HTML.OPTION(HTML.Attrs({value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("context"),"code"))}},function(){return Spacebars.attrMustache(e.lookup("isSelectedOption"),Spacebars.dot(e.lookup("parent"),"1"),Spacebars.dot(e.lookup("context"),"code"))}),Blaze._TemplateWith(function(){return{c:Spacebars.call(Spacebars.dot(e.lookup("context"),"text"))}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                                "]}),"\n                              "]}),"\n                            "),"\n                          "),"\n                        "),"\n                      "),"\n                    "]}),HTML.Raw("\n                    <hr>\n                    "),HTML.DIV({class:"row"},"\n                      ",HTML.DIV({class:"col-sm-6"},"\n                        ",HTML.DIV({class:"mb-3"},HTML.Raw("\n                          <label>Language Interpreter new</label>\n                          "),HTML.SELECT({name:"profile.translationPairs[][0]",class:"form-control"},HTML.Raw('\n                            <option value="">-- choose language</option>\n                            '),Blaze.Each(function(){return Spacebars.call(e.lookup("getLanguages"))},function(){return["\n                              ",Spacebars.With(function(){return{parent:Spacebars.call(e.lookup("..")),context:Spacebars.call(e.lookup("."))}},function(){return["\n                                ",HTML.OPTION(HTML.Attrs({value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("context"),"code"))}},function(){return Spacebars.attrMustache(e.lookup("isSelectedOption"),Spacebars.dot(e.lookup("parent"),"0"),Spacebars.dot(e.lookup("context"),"code"))}),Blaze._TemplateWith(function(){return{c:Spacebars.call(Spacebars.dot(e.lookup("context"),"text"))}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                              "]}),"\n                            "]}),"\n                          "),"\n                        "),"\n                      "),"\n                      ",HTML.DIV({class:"col-sm-6"},"\n                        ",HTML.DIV({class:"mb-3"},HTML.Raw("\n                          <label>Language Interpreter new</label>\n                          "),HTML.SELECT({name:"profile.translationPairs[][1]",class:"form-control"},HTML.Raw('\n                            <option value="">-- choose language</option>\n                            '),Blaze.Each(function(){return Spacebars.call(e.lookup("getLanguages"))},function(){return["\n                              ",Spacebars.With(function(){return{parent:Spacebars.call(e.lookup("..")),context:Spacebars.call(e.lookup("."))}},function(){return["\n                                ",HTML.OPTION(HTML.Attrs({value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("c
189ontext"),"code"))}},function(){return Spacebars.attrMustache(e.lookup("isSelectedOption"),Spacebars.dot(e.lookup("parent"),"1"),Spacebars.dot(e.lookup("context"),"code"))}),Blaze._TemplateWith(function(){return{c:Spacebars.call(Spacebars.dot(e.lookup("context"),"text"))}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                              "]}),"\n                            "]}),"\n                          "),"\n                        "),"\n                      "),"\n                    "),HTML.Raw("\n                    <hr>\n                  ")]}),"\n\n                  ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("authServiceIs"),"password")},function(){return["\n                    ",HTML.DIV({class:"mb-3 at-input form-group"},"\n                      ",Blaze.Unless(function(){return Spacebars.call(Spacebars.dot(e.lookup("emails"),"0","address"))},function(){return HTML.SPAN({class:"badge bg-warning text-dark float-end"},Blaze._TemplateWith(function(){return{c:Spacebars.call("pleaseEnterYourEmail")}},function(){return Spacebars.include(e.lookupTemplate("trans"))}))}),"\n                      ",HTML.LABEL({class:"text-capitalize control-label",for:"email"},Blaze._TemplateWith(function(){return{c:Spacebars.call("email")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})," "),"\n                      ",HTML.INPUT({type:"email",class:"form-control",id:"email",name:"emails[][address]",placeholder:"Email",autocapitalize:"none",autocorrect:"off",value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("emails"),"0","address"))}}),HTML.Raw('\n                      <span class="help-block hide"></span>\n                    ')),"\n                  "]}),"\n\n                  ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("authServiceIs"),"google")},function(){return"\n                  "}),"\n\n                  ",HTML.BUTTON({type:"button",class:"submit btn btn-block btn-light text-dark float-end js-logout mt-3"},Blaze._TemplateWith(function(){return{c:Spacebars.call("logout")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                  ",HTML.BUTTON({type:"submit",class:"submit btn btn-primary me-3 mt-3"},Blaze._TemplateWith(function(){return{c:Spacebars.call("update")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),HTML.Raw('\n                  \x3c!-- <button type="button" class="at-btn submit btn btn-lg btn-block btn-secondary js-cancel" id="at-btn">{{> trans c=\'cancel\'}}</button> --\x3e\n                ')),"\n              "),"\n            "),"\n\n            ",Spacebars.include(e.lookupTemplate("linkWithGoogle")),"\n          "),"\n\n        "),"\n      "),"\n    "),"\n  "]})});Template.__checkName("linkWithGoogle");Template["linkWithGoogle"]=new Template("Template.linkWithGoogle",function(){var e=this;return[Blaze.If(function(){return Spacebars.dataMustache(e.lookup("authServiceIs"),"password")},function(){return[HTML.Raw("\n    <hr>\n    "),Blaze.If(function(){return Spacebars.dataMustache(e.lookup("authServiceIs"),"google")},function(){return["\n      ",HTML.DIV({class:"mb-1"},HTML.Raw('<img src="/packages/davidfm_core/assets/img/google_icon_130924.png" width="30"> '),HTML.BUTTON({class:"unlink-google btn btn-sm btn-block btn-warning"},Blaze.View("lookup:trans",function(){return Spacebars.mustache(e.lookup("trans"),"unlinkGoogleAccount")}))),"\n    "]},function(){return["\n      ",HTML.DIV({class:"mb-1"},HTML.Raw('<img src="/packages/davidfm_core/assets/img/google_icon_130924.png" width="30"> '),HTML.BUTTON({class:"link-google btn btn-sm btn-block btn-primary"},Blaze.View("lookup:trans",function(){return Spacebars.mustache(e.lookup("trans"),"linkGoogleAccount")}))),"\n    "]}),"\n    ",Blaze.If(function(){return Spacebars.dataMustache(e.lookup("authServiceIs"),"linkedin")},function(){return["\n      ",HTML.DIV({class:""},HTML.Raw('<img src="/packages/davidfm_core/assets/img/linkedin_icon_130888.png" width="30"> '),HTML.BUTTON({class:"unlink-linkedin btn btn-sm btn-block btn-warning"},Blaze.View("lookup:trans",function(){return Spacebars.mustache(e.lookup("trans"),"unlinkLinkedinAccount")}
189))),"\n    "]},function(){return["\n      ",HTML.DIV({class:""},HTML.Raw('<img src="/packages/davidfm_core/assets/img/linkedin_icon_130888.png" width="30"> '),HTML.BUTTON({class:"link-linkedin btn btn-sm btn-block btn-primary"},Blaze.View("lookup:trans",function(){return Spacebars.mustache(e.lookup("trans"),"linkLinkedinAccount")}))),"\n    "]}),"\n  "]}),HTML.Raw('\n\n\n\n  \x3c!-- <ul>\n    {{#each services}}\n      <li>{{this}}</li>\n    {{/each}}\n  </ul>\n\n  {{#if services}}\n    <h2>You can also unlink services from a user account.</h2>\n    <button class="unlink-google">Unlink Google account from current user</button>\n  {{/if}} --\x3e')]})},
189"reset-password.html":function(e,t,n){n.link("./template.reset-password.js",{"*":"*+"})},
189"template.reset-password.js":function(){Template.__checkName("appResetPwd");Template["appResetPwd"]=new Template("Template.appResetPwd",function(){var e=this;return[HTML.DIV({id:"connection"},"\n        ",HTML.DIV({id:"app-reset-pwd",class:"card-ouispeak text-white text-start card-ouispeak mt-5 p-3 col-md-8 offset-md-2 col-lg-6 offset-lg-3 col-xxl-4 offset-xxl-4"},"\n            ",Blaze._TemplateWith(function(){return{hideSignup:Spacebars.call(true)}},function(){return Spacebars.include(e.lookupTemplate("dfmAuthReset"))}),"\n        "),"\n    "),"\n    ",HTML.STYLE("\n        #connection .at-form {\n            color: var(--green);\n        }\n\n        #connection .at-form .at-title h3 {\n            font-weight: initial;\n        }\n\n        #connection .at-form .form-group {\n            margin-bottom: 10px;\n        }\n\n        #connection .at-form .control-label {\n            color: white;\n        }\n\n        #connection .at-form .btn.btn-default {\n            border-radius: 5px;\n            border-color: var(--color-blue);\n            background-color: var(--color-blue);\n            color: white;\n        }\n    ")]})},
189"selectLanguage.html":function(e,t,n){n.link("./template.selectLanguage.js",{"*":"*+"})},
189"template.selectLanguage.js":function(){Template.__checkName("selectLanguage");Template["selectLanguage"]=new Template("Template.selectLanguage",function(){var e=this;return Blaze.If(function(){return Spacebars.call(e.lookup("simple"))},function(){return["\n        ",HTML.SELECT({name:function(){return Spacebars.mustache(e.lookup("selectName"))},class:"form-control select-language",style:"width:100%;",form:function(){return Spacebars.mustache(e.lookup("formId"))}},"\n            ",HTML.OPTION({value:""},"-- ",Blaze._TemplateWith(function(){return{c:Spacebars.call("choose")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n            ",Blaze.Each(function(){return Spacebars.call(e.lookup("getLanguages"))},function(){return["\n                ",Spacebars.With(function(){return{parent:Spacebars.call(e.lookup("..")),context:Spacebars.call(e.lookup("."))}},function(){return["\n                    ",HTML.OPTION(HTML.Attrs({value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("context"),"code"))}},function(){return Spacebars.attrMustache(e.lookup("isSelectedOption"),e.lookup("getDefaultLanguage"),Spacebars.dot(e.lookup("context"),"code"))}),Blaze._TemplateWith(function(){return{c:Spacebars.call(Spacebars.dot(e.lookup("context"),"text"))}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                "]}),"\n            "]}),"\n        "),"\n    "]},function(){return["\n        ",HTML.DIV({class:"mt-3"},"\n            ",HTML.LABEL({class:"text-capitalize-first"},Blaze.View("lookup:selectText",function(){return Spacebars.mustache(e.lookup("selectText"))})),"\n            ",HTML.SELECT({name:function(){return Spacebars.mustache(e.lookup("selectName"))},class:"form-control select-language",style:"width:100%;"},"\n                ",HTML.OPTION({value:""},"-- ",Blaze._TemplateWith(function(){return{c:Spacebars.call("choose")}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                ",Blaze.Each(function(){return Spacebars.call(e.lookup("getLanguages"))},function(){return["\n                    ",Spacebars.With(function(){return{parent:Spacebars.call(e.lookup("..")),context:Spacebars.call(e.lookup("."))}},function(){return["\n                        ",HTML.OPTION(HTML.Attrs({value:function(){return Spacebars.mustache(Spacebars.dot(e.lookup("context"),"code"))}},function(){return Spacebars.attrMustache(e.lookup("isSelectedOption"),e.lookup("getDefaultLanguage"),Spacebars.dot(e.lookup("context"),"code"))}),Blaze._TemplateWith(function(){return{c:Spacebars.call(Spacebars.dot(e.lookup("context"),"text"))}},function(){return Spacebars.include(e.lookupTemplate("trans"))})),"\n                    "]}),"\n                "]}),"\n            "),"\n        "),"\n    "]})})},
189"avatar.js":function(e,t,n){n.link("meteor/davidfm:core/api/google-storage/client/uploadForm/upload.js");n.link("./avatar.html");Template.avatar.onCreated(function(){});Template.avatar.onRendered(function(){});Template.avatar.helpers({getSize:function(e){var t=e.width,n=void 0===t?32:t;if(n)return"width:"+n+"px;height:"+n+"px;"},uploadCallback:function(){return function(e){log(e);$("#profile .img-avatar").attr("src","/img/loading.png");$('[name="profile.avatar"]').val(e.url);$("#profile .img-avatar").attr("src",e.url);$("#at-pwd-form [type=submit]").removeClass("btn-default").addClass("btn-warning")}}});Template.avatar.events({"click .js-profil-avatar-edit":function(e){e.preventDefault();$("#avatar-upload .dfm-file-upload input").trigger("click")}})},
189"connection.js":function(e,t,n){n.link("./selectLanguage.js");n.link("./connection.less");n.link("./connection.html");var a=new ReactiveVar;var o=new ReactiveVar;var r=new ReactiveVar;Template.connection.onCreated(function(){var e;a.set(false);r.set(false);if(null==(e=this.data)?void 0:e.completeForm)this.subscribe("countries")});Template.connection.onRendered(function(){$("#at-field-country").select2({placeholder:"-- choose --"}).on("change",function(e){var t=$(e.currentTarget).val();a.set(t)});if(!Meteor.user())$("#form-signin").hide()});Template.connection.helpers({currentUserOrEmptyObj:function(){var e,t;return(null==(e=Meteor.user())?void 0:e.data)||(null==(t=Meteor.user())?void 0:t.profile)||{}},getCountryId:function(){return a.get()||this.country},getStateId:function(){return o.get()},emailExist:function(){return r.get()},sizes:function(){if("conferencesByEvent"===dfm.getRouteName()||"conferencesByRoom"===dfm.getRouteName())return"col-md-12 col-lg-10 col-xxl-8";return"col-md-8 offset-md-2 col-lg-6 offset-lg-3 col-xxl-4 offset-xxl-4"},getLanguageText:function(){return dfm.trans("language")+" *"},eventAllowAnonymousAttendees:function(){if(dfm.isMobile()&&this.allowAnonymousAttendeesOnMobile)return true;if(!dfm.isMobile()&&this.allowAnonymousAttendeesOnDesktop)return true;return false}});Template.connection.events({"click .js-show-signin":function(e){e.preventDefault();$("#form-forgotPwd").hide();$("#form-join").hide();$("#form-signin").show()},"click .js-show-register":function(e){e.preventDefault();$("#form-forgotPwd").hide();$("#form-signin").hide();$("#form-join").show()},"click .js-show-forgot-password":function(e){e.preventDefault();$("#form-signin").hide();$("#form-forgotPwd").show()},"click .js-signin-with-google":function(e){e.preventDefault();Meteor.loginWithGoogle({},function(e){if(e){console.log(e);if("User exist"===e.reason)dfm.toastError(dfm.trans(e.details))}})},"click .js-signin-with-linkedin":function(e){e.preventDefault();Meteor.loginWithLinkedin({},function(e){if(e){console.log(e);if("User exist"===e.reason)dfm.toastError(dfm.trans(e.details))}})},"click .js-signin-anonymous":function(e){e.preventDefault();AccountsAnonymous.login(function(e){if(e)console.log(e);else{app.modalContext.set("profile");app.openModal({closeMenu:false})}})},"submit #form-signin":function(e){e.preventDefault();$("#submit-signin").hide();var t=$(e.currentTarget).serializeJSON();var n=dfm.whereTogoAfter("",true);Meteor.loginWithPassword(t.email,t.password,function(e){if(e){dfm.logError(e.reason+" error loginWithPassword "+t.email+" , pas inscrit? mauvais email ou mdp?");dfm.toastError({message:dfm.trans("403_errorAccountsLoginForbidden"),class:"toast-center"});$("#submit-signin").show()}else if(n.includes("/room/"))Router.go(n)})},"submit #form-join":function(e){e.preventDefault();$("#submit-register").hide();var t=Router.current().params.eventId;var n=$(e.currentTarget).serializeJSON();var a=Router.current().route.getName();if("conferencesByEvent"===a){var o=Router.path("conferencesByEvent",{eventId:t});dfm.whereTogoAfter(o);n.link=o;n.eventId=t}if(!Meteor.user()){var r=new RegExp("^.+@.+..+");if(!r.test(n.email)){$("#submit-register").show();return dfm.toast(dfm.trans("WARN_bad_email"))}}var s=0;Object.keys(n).forEach(function(e){if("email"!==e&&!n[e]){s=1;dfm.toast(dfm.trans(e+"_Missing"))}});if(s)return void $("#submit-register").show();if(Meteor.user())return void Meteor.call("registerForTheEvent",{eventId:t,data:n});var l=dfm.whereTogoAfter("",true);return Meteor.call("userCreate",n,function(e,o){if(e){dfm.logError(e);if("bad"===e.error){if("password-missing"===e.reason){$("#submit-register").show();dfm.toastWarning(dfm.trans("WARN_passwordMissing"))}}if(403===e.error){if("emailExist"===e.reason){$("#submit-register").show();dfm.toastWarning(dfm.trans("WARN_emailExist"));dfm.logWarning("email: "+n.email)}}else{$("#submit-register").show();dfm.toastError(e)}}else{if("conferencesByEvent"===a)Meteor.call("registerForTheEvent",{eventId:t,userId:o});Meteor.loginWithPassword(n.email,n.password,function(e){if(e){dfm.logError("error loginWithPassword "+n.email+" not registered to "+t);dfm.toastError(e);$("#submit-register").show()}else if(l.includes("/room/"))Router.go(l)})}})}})},
189"connection.less":function(){},
189"profile.js":function(e,t,n){n.link("./selectLanguage.js");n.link("./profile.html");Template.profile.onRendered(function(){});Template.profile.helpers({});Template.profile.events({submit:function(e,t){e.preventDefault();var n=$(e.currentTarget).serializeJSON();if(n["profile.translationPairs"])for(var a=0;a<n["profile.translationPairs"].length;a++)if(n["profile.translationPairs"][a][0]&&n["profile.translationPairs"][a][1])n["profile.translationPairs"][a]=[n["profile.translationPairs"][a][0],n["profile.translationPairs"][a][1]];else{n["profile.translationPairs"].splice(a,1);a--}if(!n["profile.avatar"])delete n["profile.avatar"];Meteor.call("usersUpdateProfile",n,function(e){if(e){console.log(e);if("notAValidEmail"===e.error)dfm.toastError(dfm.trans("ERR_notAValidEmail"));else{console.log(e.error);dfm.toastError(dfm.trans(e.error))}}else dfm.toastSuccess(dfm.trans("saved"))})}});Template.linkWithGoogle.helpers({services:function(){var e=Meteor.user();if(e)return Object.keys(e.services)}});Template.linkWithGoogle.events({"click .link-google":function(e){e.preventDefault();Meteor.linkWithGoogle({},function(e){if(e)dfm.toastError({message:e.reason,class:"toast-center"});else dfm.toast(dfm.trans("youCanNowSigninWithGoogle"))})},"click .unlink-google":function(e){e.preventDefault();Meteor.call("_accounts/unlink/service","google")},"click .link-linkedin":function(e){e.preventDefault();Meteor.linkWithLinkedIn({},function(e){if(e)dfm.toastError({message:e.reason,class:"toast-center"});else dfm.toast(dfm.trans("youCanNowSigninWithLinkedin"))})},"click .unlink-linkedin":function(e){e.preventDefault();Meteor.call("_accounts/unlink/service","linkedin")}})},
189"reset-password.js":function(e,t,n){n.link("./reset-password.html")},
189"selectLanguage.js":function(e,t,n){var a;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){a=e}},0);n.link("./selectLanguage.html");Template.selectLanguage.onCreated(function(){});Template.selectLanguage.onRendered(function(){$(".select-language").select2({placeholder:dfm.trans("choose"),templateResult:function(e){var t;if("choose"===e.text)return e.text;return $("<span><img src='"+(null==(t=a.findOne({code:e.id}))?void 0:t.flag)+"?width=100' style='width: 20px;margin-bottom: 3px;'/> "+e.text+"</span>")},templateSelection:function(e){var t;if("choose"===e.text)return e.text;return $("<span><img src='"+(null==(t=a.findOne({code:e.id}))?void 0:t.flag)+"?width=100' style='width: 20px;margin-bottom: 3px;'/> "+e.text+"</span>")}})});Template.selectLanguage.helpers({getDefaultLanguage:function(){var e,t;if(this.parent.language)return this.parent.language;if(null==(t=this.parent)?void 0:null==(e=t.profile)?void 0:e.language)return this.parent.profile.language;return navigator.language?navigator.language.split("-")[0]:"fr"},getLanguages:function(){return a.find({code:{$ne:"fl"}},{sort:{rank:1}})},selectText:function(){return this.selectText||dfm.trans("language")}})}}},lib:{
189"routes.js":function(e,t,n){var a;n.link("@babel/runtime/regenerator",{default:function(e){a=e}},0);var o;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){o=e}},0);var r;n.link("meteor/davidfm:core/api/seo/client/seo.js",{default:function(e){r=e}},1);var s,l;n.link("../api/pages/lib/collections.js",{Pages:function(e){s=e},PagesHistory:function(e){l=e}},2);var i;n.link("../api/forms/lib/collections.js",{Forms:function(e){i=e}},3);var c,u,p;n.link("../api/testimonies/lib/collections.js",{CustomersLogos:function(e){c=e},Testimonies:function(e){u=e},HeaderLogos:function(e){p=e}},4);var m;n.link("../api/components/lib/collections.js",{Components:function(e){m=e}},5);var d=new r;Router.route("/_404",{name:"_404",where:"server"}).get(function(){function e(){var e;return a.async(function(t){while(1)switch(t.prev=t.next){case 0:this.response.writeHead(404,{"Content-Type":"text/html"});t.next=1;return a.awrap(Assets.getTextAsync("404.html"));case 1:e=t.sent;this.response.end(e);case 2:case"end":return t.stop()}},null,this,null,Promise)}return e}());var f=function(e){if("reset-password"===e.params.lng)return true;if("_404"===e.params.lng)return true;if(!e.params.lng){if("home"===e.route.getName()){dfm.lngRouterGo("home");return false}return true}var t=o.findOne({code:e.params.lng});if(!t){Router.go("/_404");return false}if(!t.interfaceOuispeak){var n=app.languages.preference()||dfm.languages.getPrimary();Router.go(e.url.replace("/"+e.params.lng,"/"+n));return false}var a=Tracker.nonreactive(function(){return dfm.languages.getCurrent()});if(a!==e.params.lng)dfm.languages.setCurrent(e.params.lng);return true};if(Meteor.isClient){Router.configure({layoutTemplate:"frontLayout",loadingTemplate:"appLoading",progressSpinner:false,progressDelay:200,waitOn:function(){return[Meteor.subscribe("allLanguages")]}});Router.onAfterAction(function(){$("html, body").animate({scrollTop:0},0);document.body.classList.remove("scroll-up");var e=app.languages.getInterfaceOuispeak();var t=[];e.forEach(function(e){var n=dfm.absoluteUrl()+e.code+dfm.getRoutePathRelative({removeLocale:true});t.push({hreflang:e.code,href:n})});d.set({hreflang:t});var n=window.location.toString().split("#")[1];if(n)Meteor.setTimeout(function(){$("html, body").animate({scrollTop:$("#"+n).offset().top-210},200)},200)});Router.onBeforeAction(function(){var e=Router.current().route.getName();if(Meteor.userId()&&["connection","dfmSigninAtForm","dfmSignupAtForm"].includes(e)){if(Meteor.userId()&&["appResetPwd"].includes(e))dfm.lngRouterGo("home")}this.next()});Router.onAfterAction(function(){})}Router.route("/reset-password/:paramToken",{name:"appResetPwd",onBeforeAction:function(){n.link("/import/ui/shared/reset-password.js");this.next()}});Router.route("/admin",{name:"adminDashboard",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/admin/dashboard/dashboard.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()}});Router.route("/admin/search",{name:"adminSearch",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/search/client/admin/search.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()}});Router.route("/admin/pages",{name:"adminPages",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/pages.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPages")]}});Router.route("/admin/blogs",{name:"adminBlogs",template:"adminPages",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/pages.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPages")]}});Router.route("/admin/news",{name:"adminNews",template:"adminPages",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/pages.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPages")]}});Router.route("/admin/docs",{name:"adminDocs",template:"adminPages",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/pages.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPages")]}});Router.route("/admin/pages-forms",{name:"adminPagesForms",template:"adminPages",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/pages.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPages")]}});Router.route("/admin/pages/edit/:sourceId/:lng?",{name:"adminPagesEdit",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){var e;
189var t=null==(e=this.params.query)?void 0:e.historyId;return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistories",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng},{historyId:t})]},data:function(){var e;var t=null==(e=this.params.query)?void 0:e.historyId;var n;n=t?l.findOne({_id:t}):l.findOne({"page.sourceId":this.params.sourceId,"page.locale":this.params.lng},{sort:{createdAt:-1}});return{locale:this.params.lng,source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng}),history:n}}});Router.route("/admin/blogs/edit/:sourceId/:lng?",{name:"adminBlogsEdit",template:"adminPagesEdit",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistories",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng})]},data:function(){var e;var t=null==(e=this.params.query)?void 0:e.historyId;var n;n=t?l.findOne({_id:t}):l.findOne({"page.sourceId":this.params.sourceId,"page.locale":this.params.lng},{sort:{createdAt:-1}});return{locale:this.params.lng,source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng}),history:n}}});Router.route("/admin/news/edit/:sourceId/:lng?",{name:"adminNewsEdit",template:"adminPagesEdit",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){log("t");return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistories",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng})]},data:function(){var e;var t=null==(e=this.params.query)?void 0:e.historyId;var n;n=t?l.findOne({_id:t}):l.findOne({"page.sourceId":this.params.sourceId,"page.locale":this.params.lng},{sort:{createdAt:-1}});return{locale:this.params.lng,source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng}),history:n}}});Router.route("/admin/docs/edit/:sourceId/:lng?",{name:"adminDocsEdit",template:"adminPagesEdit",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistories",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng})]},data:function(){var e;var t=null==(e=this.params.query)?void 0:e.historyId;var n;n=t?l.findOne({_id:t}):l.findOne({"page.sourceId":this.params.sourceId,"page.locale":this.params.lng},{sort:{createdAt:-1}});return{locale:this.params.lng,source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng}),history:n}}});Router.route("/admin/forms/edit/:sourceId/:lng?",{name:"adminFormsEdit",template:"adminPagesEdit",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/pages/client/admin/edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistories",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng})]},data:function(){var e;
189var t=null==(e=this.params.query)?void 0:e.historyId;var n;n=t?l.findOne({_id:t}):l.findOne({"page.sourceId":this.params.sourceId,"page.locale":this.params.lng},{sort:{createdAt:-1}});return{locale:this.params.lng,source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng}),history:n}}});Router.route("/admin/pages/history/:sourceId/:lng?",{name:"adminPagesHistory",template:"adminHistory",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/history/client/admin/history.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistory",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng})]},data:function(){return{source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng})}}});Router.route("/admin/blogs/history/:sourceId/:lng?",{name:"adminBlogsHistory",template:"adminHistory",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/history/client/admin/history.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistory",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng})]},data:function(){return{source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng})}}});Router.route("/admin/news/history/:sourceId/:lng?",{name:"adminNewsHistory",template:"adminHistory",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/history/client/admin/history.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistory",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng})]},data:function(){return{source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng})}}});Router.route("/admin/docs/history/:sourceId/:lng?",{name:"adminDocsHistory",template:"adminHistory",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/history/client/admin/history.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistory",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng})]},data:function(){return{source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng})}}});Router.route("/admin/forms/history/:sourceId/:lng?",{name:"adminFormsHistory",template:"adminHistory",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/history/client/admin/history.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminPage",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{sourceId:this.params.sourceId,locale:dfm.languages.getPrimary()},{_id:this.params.sourceId}]}),Meteor.subscribe("adminHistory",{"page.sourceId":this.params.sourceId,"page.locale":this.params.lng})]},data:function(){return{source:s.findOne({_id:this.params.sourceId}),page:s.findOne({sourceId:this.params.sourceId,locale:this.params.lng})}}});Router.route("/admin/components",{name:"adminComponents",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/components/client/admin/components.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("components"),Meteor.subscribe("adminMenuPages")]}});Router.route("/admin/components/:sourceId/:lng?",{name:"adminComponentsEdit",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/components/client/admin/edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("components",{}),Meteor.subscribe("component",{sourceId:this.params.sourceId,locale:this.params.lng})]},data:function(){return{source:m.findOne({_id:this.params.sourceId}),component:m.findOne({sourceId:this.params.sourceId,locale:this.params.lng})}}});Router.route("/admin/menu",{name:"adminMenu",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/menu/client/admin/menu.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("adminMenu")]}});Router.route("/admin/testimonies",{name:"adminTestimonies",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/testimonies/client/admin/testimonies.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("testimonies")]}});Router.route("/admin/testimonies/:sourceId/:lng?",{name:"adminTestimoniesEdit",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/testimonies/client/admin/edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[Meteor.subscribe("testimonies",{$or:[{sourceId:this.params.sourceId,locale:this.params.lng},{_id:this.params.sourceId}]})]},data:function(){return{source:u.findOne({_id:this.params.sourceId}),testimony:u.findOne({sourceId:this.params.sourceId,locale:this.params.lng})}}});Router.route("/admin/customers-logo/:id?",{name:"adminCustomersLogoEdit",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/testimonies/client/admin/customers-logo-edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},data:function(){return c.findOne({_id:this.params.id})}});Router.route("/admin/header-logo/:id?",{name:"adminHeaderLogoEdit",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/testimonies/client/admin/header-logo-edit.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},data:function(){return p.findOne({_id:this.params.id})}});Router.route("/admin/translations",{name:"adminTranslations",template:"webmasterTranslations",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("meteor/davidfm:core/api/languages/client/admin/translations.js");if(!dfm.isAdmin()&&!app.isInterpreter())Router.go("/");this.next()}});Router.route("/admin/mails",{name:"adminMailTemplates",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/mail-templates/client/admin/mail-templates.js");if(dfm.rolesReady&&!dfm.rolesReady())return this.next();if(!dfm.isAdmin()){dfm.toast("error","You are not allowed to access this page");Router.go("/")}this.next()},waitOn:function(){return[]}});Router.route("/admin/newsletter",{name:"adminNewsletter",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/newsletter/client/admin/newsletter.js");if(!dfm.isAdmin())Router.go("/");this.next()}});Router.route("/admin/forms",{name:"adminForms",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/forms/client/admin/forms.js");if(!dfm.isAdmin())Router.go("/");this.next()}});Router.route("/admin/form/:id",{name:"adminForm",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/forms/client/admin/form.js");if(!dfm.isAdmin())Router.go("/");this.next()},waitOn:function(){return[Meteor.subscribe("adminForm",{_id:this.params.id})]},data:function(){return i.findOne({_id:this.params.id})}});Router.route("/admin/contacts",{name:"adminContacts",layoutTemplate:"adminLayout",onBeforeAction:function(){n.link("../api/contact/client/admin/contacts.js");if(!dfm.isAdmin())Router.go("/");this.next()}});Router.route("/:lng/connection",{name:"connection",template:"mainConnection",onBeforeAction:function(){n.link("../ui/shared/connection.js");if(Meteor.userId())Router.go(dfm.whereTogoAfter());this.next()}});Router.route("/:lng/profile",{name:"profile",waitOn:function(){return[Meteor.subscribe("page",{slug:{$regex:"^/news"},locale:this.params.lng})]},onBeforeAction:function(){n.link("../ui/shared/profile.js");f(this);if(!Meteor.userId())Router.go("/");this.next()}});Router.route("/:lng/news",{name:"news",waitOn:function(){return[Meteor.subscribe("page",{slug:{$regex:"^/news"},locale:this.params.lng})]},onBeforeAction:function(){n.link("../api/news/client/news.js");f(this);this.next()},onAfterAction:function(){var e=s.findOne({slug:"/news",locale:this.params.lng});
189d.set({title:null==e?void 0:e.title,meta:{description:null==e?void 0:e.description},additionalTags:null==e?void 0:e.metaTags})},data:function(){var e=this.params.lng||dfm.languages.getPrimary();return s.findOne({slug:"/news",locale:e})}});Router.route("/:lng/blog",{name:"blog",onBeforeAction:function(){n.link("../api/blog/client/blog.js");f(this);this.next()},waitOn:function(){var e=this.params.lng||dfm.languages.getPrimary();return[Meteor.subscribe("blogs",{locale:e})]}});Router.route("/:lng/blog/:slug",{name:"blogPost",onBeforeAction:function(){n.link("../api/blog/client/blog-post.js");f(this);this.next()},waitOn:function(){var e;var t="/blog/"+this.params.slug;return[Meteor.subscribe("page",{slug:t,locale:this.params.lng},{try:(null==(e=this.params.query)?void 0:e.try)==="true"})]},data:function(){this.params.lng||dfm.languages.getPrimary();var e="/blog/"+this.params.slug;var t=s.findOne({slug:e,locale:this.params.lng,published:true});if(t)return t;return s.findOne({slug:e,locale:dfm.languages.getPrimary()})},onAfterAction:function(){var e="/blog/"+this.params.slug;var t=s.findOne({slug:e,locale:this.params.lng});d.set({title:null==t?void 0:t.title,meta:{description:null==t?void 0:t.description},additionalTags:null==t?void 0:t.metaTags})}});Router.route("home",{path:"/:lng?",template:"page",onBeforeAction:function(){var e=f(this);if(!e)return this.render("appNotFound");this.next()},waitOn:function(){var e;return[Meteor.subscribe("page",{slug:"/",locale:this.params.lng||dfm.languages.getPrimary()},{try:(null==(e=this.params.query)?void 0:e.try)==="true"})]},data:function(){var e=this.params.lng||dfm.languages.getPrimary();var t=s.findOne({slug:"/",locale:e});if(t)return t;return s.findOne({slug:"/",locale:dfm.languages.getPrimary()})},onAfterAction:function(){var e=s.findOne({slug:"/",locale:this.params.lng||dfm.languages.getPrimary()});d.set({title:null==e?void 0:e.title,meta:{description:null==e?void 0:e.description},additionalTags:null==e?void 0:e.metaTags})}});Router.route("/:lng/try/:sourceId",{name:"try",template:"page",waitOn:function(){var e,t;var n={isHistory:(null==(e=this.params.query)?void 0:e.isHistory)==="true"};if((null==(t=this.params.query)?void 0:t.isHistory)==="true")return[Meteor.subscribe("try",{_id:this.params.sourceId},n)];return[Meteor.subscribe("try",{sourceId:this.params.sourceId,locale:this.params.lng},n)]},data:function(){var e;if((null==(e=this.params.query)?void 0:e.isHistory)==="true"){var t;return null==(t=l.findOne({_id:this.params.sourceId}))?void 0:t.page}s.findOne({sourceId:this.params.sourceId,locale:this.params.lng})},onAfterAction:function(){var e="/"+this.params[0];var t=s.findOne({slug:e,locale:this.params.lng});d.set({title:null==t?void 0:t.title,meta:{description:null==t?void 0:t.description},additionalTags:null==t?void 0:t.metaTags})}});Router.route("page",{name:"page",path:"/:lng/(.*)",onBeforeAction:function(){var e=f(this);if(!e)return this.render("appNotFound");this.next()},waitOn:function(){var e;var t="/"+this.params[0];log(t,this.params.lng);var n={try:(null==(e=this.params.query)?void 0:e.try)==="true"};return[Meteor.subscribe("page",{slug:t,locale:this.params.lng},n)]},data:function(){var e=this.params.lng||dfm.languages.getPrimary();var t="/"+this.params[0];var n=s.findOne({slug:t,locale:e});log(n);if(n)return n;n=s.findOne({slug:t,locale:dfm.languages.getPrimary()});if(n)return n;n=s.findOne({slug:t,locale:dfm.languages.getPrimary({navigatorLanguage:false})});return n},onAfterAction:function(){var e="/"+this.params[0];var t=s.findOne({slug:e,locale:this.params.lng});d.set({title:null==t?void 0:t.title,meta:{description:null==t?void 0:t.description},additionalTags:null==t?void 0:t.metaTags})}})}}},client:{pages:{"home-v4":{
189"hero.html":function(e,t,n){n.link("./template.hero.js",{"*":"*+"})},
189"template.hero.js":function(){Template.__checkName("homeV4Hero");Template["homeV4Hero"]=new Template("Template.homeV4Hero",function(){return HTML.SECTION({id:"hero",class:"hero"},"\n        ",HTML.DIV({class:"container"},HTML.Raw('\n            <div class="hero-content">\n                <h1 class="hero-title">\n                    R\xe9unions et \xe9v\xe9nements multilingues sans fronti\xe8res\n                </h1>\n                <p class="hero-subtitle">\n                    Interpr\xe9tation \xe0 distance en direct avec l\'IA et des interpr\xe8tes humains.\n                    Connectez vos \xe9quipes, clients et partenaires dans leur langue.\n                </p>\n                <div class="hero-cta">\n                    <a href="#contact" class="btn btn-primary">Parlons-en</a>\n                    <a href="#demo" class="btn btn-secondary">Voir la d\xe9mo</a>\n                </div>\n            </div>\n            '),HTML.DIV({class:"hero-visual"},"\n                ",HTML.DIV({class:"hero-placeholder"},HTML.Raw("\n                    \x3c!-- Visual illustration will go here --\x3e\n                    "),HTML.SVG({viewBox:"0 0 400 300",class:"hero-graphic"},"\n                        ",HTML.DEFS("\n                            ",HTML.LINEARGRADIENT({id:"gradientBlue",x1:"0%",y1:"0%",x2:"100%",y2:"100%"},"\n                                ",HTML.STOP({offset:"0%",style:"stop-color:var(--os-electric-blue);stop-opacity:1"}),"\n                                ",HTML.STOP({offset:"100%",style:"stop-color:var(--os-vibrant-blue);stop-opacity:1"}),"\n                            "),"\n                        "),"\n                        ",HTML.Comment(" Placeholder circles representing global connectivity "),"\n                        ",HTML.CIRCLE({cx:"200",cy:"150",r:"120",fill:"none",stroke:"url(#gradientBlue)","stroke-width":"2",opacity:"0.3"}),"\n                        ",HTML.CIRCLE({cx:"200",cy:"150",r:"80",fill:"none",stroke:"url(#gradientBlue)","stroke-width":"2",opacity:"0.5"}),"\n                        ",HTML.CIRCLE({cx:"200",cy:"150",r:"40",fill:"url(#gradientBlue)",opacity:"0.8"}),"\n                    "),"\n                "),"\n            "),"\n        "),"\n    ")})},
189"home-v4.html":function(e,t,n){n.link("./template.home-v4.js",{"*":"*+"})},
189"template.home-v4.js":function(){Template.__checkName("homeV4");Template["homeV4"]=new Template("Template.homeV4",function(){var e=this;return HTML.DIV({id:"home-v4",class:"home-v4-page"},"\n        ",Spacebars.include(e.lookupTemplate("homeV4Hero")),HTML.Raw("\n        \x3c!-- Additional sections will be added here --\x3e\n    "))})},
189"hero.less":function(){},
189"home-v4.js":function(e,t,n){n.link("./hero.html");n.link("./hero.less");n.link("./home-v4.html");Template.homeV4.onCreated(function(){});Template.homeV4.onRendered(function(){});Template.homeV4.helpers({});Template.homeV4.events({})}}},layout:{
189"header.html":function(e,t,n){n.link("./template.header.js",{"*":"*+"})},
189"template.header.js":function(){Template.__checkName("frontHeader");Template["frontHeader"]=new Template("Template.frontHeader",function(){var e=this;return HTML.HEADER("\n        ",HTML.SECTION({id:"navbar"},"\n            ",HTML.DIV({class:"container"},"\n                \n                ",HTML.NAV({id:"main-navbar",class:"navbar navbar-expand-xl justify-content-between align-items-center"},"\n                    ",HTML.DIV({id:"main-navbar-left"},"\n                        ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("lngPathFor"),"home")},class:"os-navbar-logo",style:"z-index: 10000;"},HTML.Raw('\n                            <img src="/brand/logo-official.svg" class="logo" alt="OUI SPEAK">\n                        ')),"\n                    "),"\n                    ",HTML.UL({id:"main-navbar-center",class:"navbar-nav"},"\n                        ",Blaze.Each(function(){return Spacebars.call(e.lookup("navMenu"))},function(){return["\n                            ",Blaze.If(function(){return Spacebars.call(e.lookup("isMega"))},function(){return["\n                                ",HTML.LI({class:"nav-item os-has-megamenu"},"\n                                    ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("link"))},class:"os-nav-link"},"\n                                        ",HTML.SPAN(Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))})),"\n                                        ",HTML.SVG({class:"os-chevron",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},HTML.PATH({d:"M1 1l4 4 4-4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),"\n                                    "),"\n                                    \n                                    ",HTML.DIV({class:"os-megamenu"},"\n                                        ",HTML.DIV({class:function(){return Spacebars.mustache(e.lookup("panelClass"))}},"\n                                            ",Blaze.If(function(){return Spacebars.call(e.lookup("intro"))},function(){return["\n                                                ",HTML.DIV({class:"os-megamenu-head"},"\n                                                    ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("intro"),"title"))},function(){return HTML.DIV({class:"os-megamenu-title"},Blaze.View("lookup:intro.title",function(){return Spacebars.mustache(Spacebars.dot(e.lookup("intro"),"title"))}))}),"\n                                                    ",Blaze.If(function(){return Spacebars.call(Spacebars.dot(e.lookup("intro"),"subtitle"))},function(){return HTML.DIV({class:"os-megamenu-subtitle"},Blaze.View("lookup:intro.subtitle",function(){return Spacebars.mustache(Spacebars.dot(e.lookup("intro"),"subtitle"))}))}),"\n                                                "),"\n                                            "]}),"\n                                            ",HTML.DIV({class:"os-mega-grid"},"\n                                                ",Blaze.Each(function(){return Spacebars.call(e.lookup("children"))},function(){return["\n                                                    ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("link"))},class:function(){return Spacebars.mustache(e.lookup("cardClass"))}},"\n                                                        ",Blaze.If(function(){return Spacebars.call(e.lookup("isMedia"))},function(){return["\n                                                            ",HTML.DIV({class:"os-mega-card-media"},"\n                                                                ",HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("image"))},alt:"",loading:"lazy"}),"\n                                                                ",Blaze.If(function(){return Spacebars.call(e.lookup("badge"))},function(){return HTML.SPAN({class:"os-mega-badge"},Blaze.View("lookup:badge",function(){return Spacebars.mustache(e.lookup("badge"))}))}),"\n                                                            "),"\n                                                            ",HTML.DIV({class:"os-mega-card-body"},"\n                                                                ",HTML.DIV({class:"os-mega-card-title"},Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))})),"\n                                                                ",Blaze.If(function(){return Spacebars.call(e.lookup("description"))},function(){return HTML.DIV({class:"os-mega-card-desc"},Blaze.View("lookup:description",function(){return Spacebars.mustache(e.lookup("description"))}))}),"\n                                                                ",Blaze.If(function(){return Spacebars.call(e.lookup("meta"))},function(){return HTML.DIV({class:"os-mega-card-meta"},Blaze.View("lookup:meta",function(){return Spacebars.mustache(e.lookup("meta"))}))}),"\n                                                                ",Blaze.If(function(){return Spacebars.call(e.lookup("ctaLabel"))},function(){return HTML.SPAN({class:"os-mega-card-cta"},Blaze.View("lookup:ctaLabel",function(){return Spacebars.mustache(e.lookup("ctaLabel"))}))}),"\n                                                            "),"\n                                                        "]},function(){return["\n                                                            ",HTML.DIV({class:"os-mega-card-top"},"\n                                                                ",HTML.SPAN({class:"os-mega-icon"},HTML.SPAN({class:"material-symbols-outlined"},Blaze.View("lookup:icon",function(){return Spacebars.mustache(e.lookup("icon"))}))),"\n                                                                ",Blaze.If(function(){return Spacebars.call(e.lookup("badge"))},function(){return HTML.SPAN({class:"os-mega-badge"},Blaze.View("lookup:badge",function(){return Spacebars.mustache(e.lookup("badge"))}))}),"\n                                                            "),"\n                                                            ",HTML.DIV({class:"os-mega-card-title"},Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))})),"\n                                                            ",Blaze.If(function(){return Spacebars.call(e.lookup("description"))},function(){return HTML.DIV({class:"os-mega-card-desc"},Blaze.View("lookup:description",function(){return Spacebars.mustache(e.lookup("description"))}))}),"\n                                                            ",Blaze.If(function(){return Spacebars.call(e.lookup("meta"))},function(){return HTML.DIV({class:"os-mega-card-meta"},Blaze.View("lookup:meta",function(){return Spacebars.mustache(e.lookup("meta"))}))}),"\n                                                            ",Blaze.If(function(){return Spacebars.call(e.lookup("ctaLabel"))},function(){return HTML.SPAN({class:"os-mega-card-cta"},Blaze.View("lookup:ctaLabel",function(){return Spacebars.mustache(e.lookup("ctaLabel"))}))}),"\n                                                        "]}),"\n                                                    "),"\n                                                "]}),"\n                                            "),"\n                                            ",Spacebars.With(function(){return Spacebars.call(e.lookup("footer"))},function(){return["\n                                                ",HTML.DIV({class:function(){return Spacebars.mustache(e.lookup("footClass"))}},"\n                                                    ",HTML.DIV({class:"os-megamenu-foot-texts"},"\n                                                        ",Blaze.If(function(){return Spacebars.call(e.lookup("text"))},function(){return HTML.SPAN({class:"os-megamenu-foot-text"},Blaze.View("lookup:text",function(){return Spacebars.mustache(e.lookup("text"))}))}),"\n                                                        ",Blaze.If(function(){return Spacebars.call(e.lookup("subtext"))},function(){return HTML.SPAN({class:"os-megamenu-foot-subtext"},Blaze.View("lookup:subtext",function(){return Spacebars.mustache(e.lookup("subtext"))}))}),"\n                                                    "),"\n                                                    ",HTML.DIV({class:"os-megamenu-foot-actions"},"\n                                                        ",Blaze.If(function(){return Spacebars.call(e.lookup("ctaLabel"))},function(){return HTML.A({href:function(){return Spacebars.mustache(e.lookup("ctaHref"))},class:"os-megamenu-foot-cta"},Blaze.View("lookup:ctaLabel",function(){return Spacebars.mustache(e.lookup("ctaLabel"))}))}),"\n                                                        ",Blaze.If(function(){return Spacebars.call(e.lookup("linkLabel"))},function(){return["\n                                                            ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("linkHref"))},class:"os-megamenu-foot-link"},"\n                                                                ",HTML.SPAN(Blaze.View("lookup:linkLabel",function(){return Spacebars.mustache(e.lookup("linkLabel"))})),"\n                                                                ",Blaze.If(function(){return Spacebars.call(e.lookup("linkIcon"))},function(){return HTML.SPAN({class:"material-symbols-outlined"},Blaze.View("lookup:linkIcon",function(){return Spacebars.mustache(e.lookup("linkIcon"))}))}),"\n                                                            "),"\n                                                        "]}),"\n                                                    "),"\n                                                "),"\n                                            "]}),"\n                                        "),"\n                                    "),"\n                                "),"\n                            "]},function(){return["\n                                ",Blaze.If(function(){return Spacebars.call(e.lookup("hasChildren"))},function(){return["\n                                    ",HTML.LI({class:"nav-item os-has-dropdown"},"\n                                        ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("link"))},class:"os-nav-link"},"\n                                            ",HTML.SPAN(Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))})),"\n                                            ",HTML.SVG({class:"os-chevron",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},HTML.PATH({d:"M1 1l4 4 4-4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),"\n                                        "),"\n                                        ",HTML.UL({class:"os-dropdown"},"\n                                            ",Blaze.Each(function(){return Spacebars.call(e.lookup("children"))},function(){return["\n                                                ",HTML.LI(HTML.A({href:function(){return Spacebars.mustache(e.lookup("link"))},class:"os-dropdown-link"},Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))}))),"\n                                            "]}),"\n                                        "),"\n                                    "),"\n                                "]},function(){return["\n                                    ",HTML.LI({class:"nav-item"},"\n                                        ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("link"))},class:"os-nav-link"},HTML.SPAN(Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))}))),"\n                                    "),"\n                                "]}),"\n                            "]}),"\n                        "]}),"\n                    "),"\n                    ",HTML.DIV({id:"main-navbar-right",class:"navbar justify-content-end text-center"},HTML.Raw('\n                        \n                        <button type="button" class="os-burger js-os-burger" aria-label="Menu" aria-expanded="false" aria-controls="os-mobile-panel">
189\n                            <span class="os-burger-bar"></span>\n                            <span class="os-burger-bar"></span>\n                            <span class="os-burger-bar"></span>\n                        </button>\n                        \n                        '),Spacebars.With(function(){return Spacebars.call(e.lookup("navCta"))},function(){return["\n                            ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("link"))},class:"os-nav-cta"},Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))})),"\n                        "]}),"\n                        ",HTML.DIV({id:"language-choose",class:"d-inline-block flex flex-row align-items-center justify-content-center me-2"},"\n                            ",Spacebars.With(function(){return Spacebars.call(e.lookup("getMyLanguageObj"))},function(){return["\n                                ",HTML.A({href:"",class:"js-dfm-dropdown d-inline-block current","data-dfmdropdown":"language-choose-dropdown"},Blaze._TemplateWith(function(){return{url:Spacebars.call(Spacebars.dataMustache(e.lookup("getFlag"),e.lookup("code"))),width:Spacebars.call(100)}},function(){return Spacebars.include(e.lookupTemplate("googleFileVersion"))})),"\n                            "]}),"\n                            ",HTML.DIV({id:"language-choose-dropdown",class:"dfm-dropdown shadow border-radius p-2 mt-2"},"\n                                ",Blaze.Each(function(){return Spacebars.call(e.lookup("getInterfaceLanguages"))},function(){return["\n                                    ",HTML.DIV({class:"locale"},HTML.A({href:"",class:"js-set-my-language"},HTML.IMG({src:function(){return Spacebars.mustache(e.lookup("getFlag"),e.lookup("code"),Spacebars.kw({width:100}))},style:"width:40px"})," ",Blaze._TemplateWith(function(){return{c:Spacebars.call(Spacebars.dataMustache(e.lookup("getLanguageFromCode"),e.lookup("code")))}},function(){return Spacebars.include(e.lookupTemplate("trans"))}))),"\n                                "]}),"\n                            "),"\n                        "),"\n                        ",HTML.DIV({class:"d-inline-block"},"\n                            ",Blaze.If(function(){return Spacebars.call(e.lookup("currentUser"))},function(){return["\n                                ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("lngPathFor"),"connection")},class:"js-dfm-dropdown","data-dfmdropdown":"profile-dropdown"},"\n                                    ",HTML.SVG({fill:"white",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512",style:"enable-background:new 0 0 512 512;","xml:space":"preserve"},"\n                                        ",HTML.G("\n                                            ",HTML.G("\n                                                ",HTML.PATH({d:"M437.02,330.98c-27.883-27.882-61.071-48.523-97.281-61.018C378.521,243.251,404,198.548,404,148    C404,66.393,337.607,0,256,0S108,66.393,108,148c0,50.548,25.479,95.251,64.262,121.962    c-36.21,12.495-69.398,33.136-97.281,61.018C26.629,379.333,0,443.62,0,512h40c0-119.103,96.897-216,216-216s216,96.897,216,216    h40C512,443.62,485.371,379.333,437.02,330.98z M256,256c-59.551,0-108-48.448-108-108S196.449,40,256,40    c59.551,0,108,48.448,108,108S315.551,256,256,256z"}),"\n                                            "),"\n                                        "),"\n                                    "),"\n                                "),"\n                            "]},function(){return["\n                                ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("lngPathFor"),"connection")},class:"js-dfm-dropdown","data-dfmdropdown":"profile-dropdown",style:"padding-bottom: 3px;"},"\n                                    ",HTML.SVG({fill:"white",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512",style:"enable-background:new 0 0 512 512;","xml:space":"preserve"},"\n                                        ",HTML.G("\n                                            ",HTML.G("\n                                                ",HTML.PATH({d:"M437.02,330.98c-27.883-27.882-61.071-48.523-97.281-61.018C378.521,243.251,404,198.548,404,148    C404,66.393,337.607,0,256,0S108,66.393,108,148c0,50.548,25.479,95.251,64.262,121.962    c-36.21,12.495-69.398,33.136-97.281,61.018C26.629,379.333,0,443.62,0,512h40c0-119.103,96.897-216,216-216s216,96.897,216,216    h40C512,443.62,485.371,379.333,437.02,330.98z M256,256c-59.551,0-108-48.448-108-108S196.449,40,256,40    c59.551,0,108,48.448,108,108S315.551,256,256,256z"}),"\n                                            "),"\n                                        "),"\n                                    "),"\n                                "),"\n                            "]}),"\n                            ",HTML.DIV({id:"profile-dropdown",class:"dfm-dropdown shadow border-radius p-2 mt-2"},"\n                                ",Spacebars.With(function(){return Spacebars.call(e.lookup("currentUser"))},function(){return[HTML.Raw("\n                                    \x3c!-- {{getUserFullname _id}} --\x3e\n                                    "),HTML.DIV({class:"menu-line"},HTML.A({href:function(){return Spacebars.mustache(e.lookup("lngPathFor"),"profile")}},"Profile")),"\n                                    ",Blaze.If(function(){return Spacebars.call(e.lookup("isAdmin"))},function(){return["\n                                        ",HTML.DIV({class:"menu-line"},HTML.A({href:function(){return Spacebars.mustache(e.lookup("pathFor"),"adminDashboard")}},"Admin")),"\n                                    "]}),"\n                                    ",Blaze.If(function(){return Spacebars.call(e.lookup("isSuperAdmin"))},function(){return["\n                                        ",Spacebars.With(function(){return Spacebars.call(e.lookup("editPageUrl"))},function(){return["\n                                            ",HTML.DIV({class:"menu-line"},HTML.A({href:function(){return Spacebars.mustache(e.lookup("."))}},HTML.Raw('<span class="material-symbols-outlined" style="font-size:16px; vertical-align:middle; margin-right:4px">edit</span>Edit page'))),"\n                                        "]}),"\n                                    "]}),"\n                                    "]},function(){return["\n                                        ",HTML.DIV({class:"menu-line"},HTML.A({href:function(){return Spacebars.mustache(e.lookup("lngPathFor"),"connection")}},Blaze._TemplateWith(function(){return{c:Spacebars.call("signinRegister")}},function(){return Spacebars.include(e.lookupTemplate("trans"))}))),HTML.Raw('\n                                        \x3c!-- <a class=" block px-4 py-2 mt-2 text-sm font-medium bg-transparent md:mt-0 focus:outline-none" href="https://conference.ouispeak.io/"> Acc\xe8s Conf\xe9rences </a> --\x3e\n                                ')]}),"\n                            "),"\n                        "),"\n                    "),"\n                "),"\n            "),"\n\n            \n            ",HTML.DIV({id:"os-mobile-panel",class:"os-mobile-panel js-os-mobile-panel"},"\n                ",Spacebars.With(function(){return Spacebars.call(e.lookup("navCta"))},function(){return["\n                    ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("link"))},class:"os-mobile-cta js-os-nav-go"},Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))})),"\n                "]}),"\n                ",HTML.UL({class:"os-mobile-nav"},"\n                    ",Blaze.Each(function(){return Spacebars.call(e.lookup("navMenu"))},function(){return["\n                        ",Blaze.If(function(){return Spacebars.call(e.lookup("hasChildren"))},function(){return["\n                            ",HTML.LI({class:"os-mobile-item"},"\n                                \n                                ",HTML.BUTTON({type:"button",class:"os-mobile-link js-os-accordion","aria-expanded":"false"},"\n                                    ",HTML.SPAN(Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))})),"\n                                    ",HTML.SVG({class:"os-chevron",width:"12",height:"8",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},HTML.PATH({d:"M1 1l4 4 4-4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),"\n                                "),"\n                                ",HTML.DIV({class:"os-mobile-sub-wrap"},"\n                                    ",HTML.UL({class:"os-mobile-sub"},"\n                                        ",Blaze.Each(function(){return Spacebars.call(e.lookup("children"))},function(){return["\n                                            ",HTML.LI(HTML.A({href:function(){return Spacebars.mustache(e.lookup("link"))},class:"os-mobile-sublink js-os-nav-go"},Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))}))),"\n                                        "]}),"\n                                    "),"\n                                "),"\n                            "),"\n                        "]},function(){return["\n                            ",HTML.LI({class:"os-mobile-item"},"\n                                ",HTML.A({href:function(){return Spacebars.mustache(e.lookup("link"))},class:"os-mobile-link js-os-nav-go"},Blaze.View("lookup:label",function(){return Spacebars.mustache(e.lookup("label"))})),"\n                            "),"\n                        "]}),"\n                    "]}),"\n                "),"\n            "),"\n        "),"\n    ")})},
189"layout.html":function(e,t,n){n.link("./template.layout.js",{"*":"*+"})},
189"template.layout.js":function(){Template.__checkName("frontLayout");Template["frontLayout"]=new Template("Template.frontLayout",function(){var e=this;return HTML.DIV({id:"front",class:function(){return["theme-dark ",Spacebars.mustache(e.lookup("isDarkTheme"))," ",Spacebars.mustache(e.lookup("isOnBlogPostClass"))]}},"\n        ",Spacebars.include(e.lookupTemplate("frontHeader")),"\n        ",HTML.DIV({id:"main-content"},"\n            ",Spacebars.include(e.lookupTemplate("yield")),"\n        "),"\n        ",Blaze._TemplateWith(function(){return{name:Spacebars.call("footer")}},function(){return Spacebars.include(e.lookupTemplate("component"))}),"\n        ",Spacebars.include(e.lookupTemplate("dfmMessages")),"\n        ",Spacebars.include(e.lookupTemplate("dfmBackToTop")),"\n    ")})},
189"webmasterLayout.html":function(e,t,n){n.link("./template.webmasterLayout.js",{"*":"*+"})},
189"template.webmasterLayout.js":function(){Template.__checkName("webmasterLayoutReplace");Template["webmasterLayoutReplace"]=new Template("Template.webmasterLayoutReplace",function(){var e=this;return Spacebars.include(e.lookupTemplate("adminLayout"))})},
189"header.js":function(e,t,n){var a;n.link("meteor/reactive-var",{ReactiveVar:function(e){a=e}},0);var o;n.link("meteor/tracker",{Tracker:function(e){o=e}},1);var r;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){r=e}},2);var s;n.link("../../import/api/pages/lib/collections.js",{Pages:function(e){s=e}},3);var l;n.link("../../import/api/menu/lib/collections.js",{Menu:function(e){l=e}},4);n.link("./header.html");function i(e,t){if(!e)return"";if("string"==typeof e)return e;var n=dfm.languages.getPrimary();return e[t]||e[n]||Object.values(e).find(Boolean)||""}var c=new a("undefined"==typeof window?"":window.location.pathname);function u(){var e=window.location.pathname;if(e!==c.get())c.set(e)}function p(e){var t=document.querySelectorAll(".os-mega-card");if(!t.length)return;var n=false;t.forEach(function(t){if(m(t.getAttribute("href"),e))n=true});t.forEach(function(t){var a=m(t.getAttribute("href"),e);t.classList.toggle("is-current",a);var o=t.classList.contains("is-editorial");t.classList.toggle("is-highlighted",a||o&&!n)})}if(Meteor.isClient)Meteor.startup(function(){var e=function(e,t){var n=t[e];var a=history[n];history[n]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=a.apply(this,t);u();return o}};window.addEventListener("popstate",u);for(var t=0,n=["pushState","replaceState"];t<n.length;t++)e(t,n);o.autorun(function(){Router.current();u()});o.autorun(function(){var e=c.get();l.find({menu:"main"}).count();o.afterFlush(function(){return p(e)})});document.addEventListener("click",function(e){var t=e.target.closest&&e.target.closest(".os-megamenu a[href]");if(!t)return;var n=t.closest(".os-has-megamenu");if(!n)return;n.classList.add("is-dismissed");n.addEventListener("mouseleave",function(){return n.classList.remove("is-dismissed")},{once:true})},true)});function m(e,t){if(!e||!t)return false;var n=function(e){return e.replace(/\/+$/,"")||"/"};return n(e)===n(t)}function d(e){if(!e.href||"#"===e.href)return"#";if("url"===e.type)return e.href;return dfm.lngPath(e.href.replace(/^\//,""))}function f(e){if(!e||"#"===e)return"#";if(/^(https?:)?\/\//.test(e)||/^(mailto|tel):/i.test(e))return e;var t=e.replace(/^\/([a-z]{2}(?:-[a-z]{2})?)(?=\/)/i,function(e,t){return r.findOne({code:t.toLowerCase()})?"":e});return dfm.lngPath(t.replace(/^\//,""))}function h(e,t){var n=i(e,t);return n||null}function g(e,t){if(!e)return null;var n={text:h(e.text,t),subtext:h(e.subtext,t),ctaLabel:h(e.ctaLabel,t),ctaHref:f(e.ctaHref),linkLabel:h(e.linkLabel,t),linkHref:f(e.linkHref),linkIcon:e.linkIcon||""};if(!n.text&&!n.subtext&&!n.ctaLabel&&!n.linkLabel)return null;n.footClass=n.text||n.subtext?"os-megamenu-foot":"os-megamenu-foot is-spread";return n}var b=8;var T=9;function k(e){var t=e.querySelector(".os-megamenu");var n=e.closest("#main-navbar");if(!t||!n)return;t.style.left="0px";var a=t.offsetWidth;if(!a)return;var o=n.getBoundingClientRect();var r=e.getBoundingClientRect();var s=(r.width-a)/2;var l=o.left+b-r.left;var i=o.right-b-a-r.left;s=i<l?l:Math.min(Math.max(s,l),i);t.style.left="".concat(Math.round(s),"px");t.style.paddingTop="".concat(Math.round(o.bottom-r.bottom+T),"px")}Template.frontHeader.onCreated(function(){this.subscribe("menuPages");this.subscribe("menu")});Template.frontHeader.onDestroyed(function(){document.body.classList.remove("os-nav-locked")});Template.frontHeader.helpers({isHome:function(){return"home"===dfm.getRouteName()},isLanguageActive:function(e){if(dfm.languages.getCurrent()===e)return"active"},getInterfaceLanguages:function(){return r.find({code:{$ne:dfm.languages.getCurrent()},interfaceOuispeak:true},{sort:{rank:1}})},menuPages:function(){var e=dfm.languages.getCurrent();var t=s.find({source:true,inMenu:true},{sort:{menuOrder:1}}).fetch();return t.map(function(t){var n=s.findOne({sourceId:t._id,locale:e});var a=n?null:s.findOne({sourceId:t._id});var o=(null==n?void 0:n.menuTitle)||(null==n?void 0:n.title)||(null==a?void 0:a.menuTitle)||(null==a?void 0:a.title)||t.slug;var r=t.slug.replace(/^\//,"");return{slug:r,label:o}})},navMenu:function(){var e=dfm.languages.getCurrent();var t=l.find({menu:"main",parentId:null,enabled:{$ne:false}},{sort:{order:1}}).fetch();return t.map(function(t){var n="megamenu"===t.type;var a=n&&"media"===t.cardVariant;var o=Math.min(Math.max(parseInt(t.columns,10)||4,1),4);var r=l.find({parentId:t._id,enabled:{$ne:false}},{sort:{order:1}}).fetch();var s=r.map(function(t){return{label:i(t.label,e),link:d(t),icon:t.icon||"mic",image:t.image||"",description:h(t.description,e),meta:h(t.meta,e),badge:h(t.badge,e),highlighted:!!t.highlighted,ctaLabel:h(t.ctaLabel,e),isMedia:a,cardClass:["os-mega-card",a?"is-media":"is-icon",t.highlighted&&!a?"is-highlighted is-editorial":""].filter(
189Boolean).join(" ")}});return{label:i(t.label,e),link:d(t),hasChildren:s.length>0,isMega:n,isMedia:a,panelClass:"os-megamenu-inner is-cols-".concat(o).concat(a?" is-media":""),intro:n&&t.intro?{title:h(t.intro.title,e),subtitle:h(t.intro.subtitle,e)}:null,footer:n?g(t.footer,e):null,children:s}})},navCta:function(){var e=dfm.languages.getCurrent();var t=l.findOne({menu:"cta",enabled:{$ne:false}},{sort:{order:1}});if(!t)return null;var n=i(t.label,e);if(!n)return null;return{label:n,link:"page"===t.type?d(t):f(t.href)}},editPageUrl:function(){var e;var t=Router.current();if(!t)return null;var n=null==(e=t.route)?void 0:e.getName();if("page"!==n&&"home"!==n)return null;var a=t.data();if(!a||!a._id)return null;var o=a.source?a._id:a.sourceId;if(!o)return null;var r=a.locale||dfm.languages.getPrimary();var s=a.slug||"";var l=s.startsWith("/docs/")?"adminDocsEdit":"adminPagesEdit";return Router.path(l,{sourceId:o,lng:r})}});function v(e,t){var n=e.find(".js-os-mobile-panel");var a=e.find(".js-os-burger");if(!n||!a)return;n.classList.toggle("is-open",t);a.classList.toggle("is-open",t);a.setAttribute("aria-expanded",String(t));document.body.classList.toggle("os-nav-locked",t);if(!t)e.findAll(".os-mobile-item.is-open").forEach(function(e){var t;e.classList.remove("is-open");null==(t=e.querySelector(".js-os-accordion"))||t.setAttribute("aria-expanded","false")})}Template.frontHeader.events({"mouseover .os-has-megamenu":function(e){var t=e.currentTarget;if(e.relatedTarget&&t.contains(e.relatedTarget))return;k(t)},"click .js-os-burger":function(e,t){var n;var a=null==(n=t.find(".js-os-mobile-panel"))?void 0:n.classList.contains("is-open");v(t,!a)},"click .js-os-accordion":function(e,t){var n=e.currentTarget;var a=n.closest(".os-mobile-item");if(!a)return;var o=!a.classList.contains("is-open");a.classList.toggle("is-open",o);n.setAttribute("aria-expanded",String(o))},"click .js-os-nav-go":function(e,t){v(t,false)}})},
189"layout.js":function(e,t,n){n.link("../../import/api/pages/client/front/page.js");n.link("../../import/api/components/client/front/component.js");n.link("./header.js");n.link("./layout.html");var a;n.link("../../import/api/form-manager/FormManager.js",{default:function(e){a=e}},0);var o;n.link("../../import/api/password-manager/PasswordManager.js",{default:function(e){o=e}},1);var r;n.link("meteor/davidfm:core/api/files-local/lib/collections.js",{DfmFilesLocal:function(e){r=e}},2);Template.frontLayout.onCreated(function(){var e=this;this.subscribe("dfmTranslationsPrimary");this.autorun(function(){e.subscribe("dfmTranslationsBylng",dfm.languages.getCurrent())})});Template.frontLayout.onRendered(function(){var e=document.body;var t=0;document.addEventListener("scroll",function(){var n=window.scrollY;if(n<=0)document.querySelector("body").classList.remove("scroll-up");if(n>t&&!e.classList.contains("scroll-down")){e.classList.remove("scroll-up");e.classList.add("scroll-down")}if(n<t&&e.classList.contains("scroll-down")){e.classList.remove("scroll-down");e.classList.add("scroll-up")}t=n})});Template.frontLayout.onDestroyed(function(){});Template.frontLayout.helpers({isDarkTheme:function(){return app.isDarkTheme()},isOnBlogPostClass:function(){return"blogPost"===Router.current().route.getName()?"on-blog-post":""}});Template.frontLayout.events({click:function(e){if(!e.currentTarget.classList.contains("js-dfm-dropdown")&&!e.currentTarget.parentNode.classList.contains("js-dfm-dropdown"))$(".dfm-dropdown").hide()},'change [type="file"]':function(e){var t=function(e){var t=o[e];var s="form";var l={};if(s){l.sourceId=s;l.source=l.sourceId.split("_")[0]}l.uploadedAt=new Date;var i=r.insert({meta:l,file:t,chunkSize:"dynamic"},false);i.on("start",function(){log("upload start")});i.on("end",function(t,o){a.disabled=false;log("upload end");if(t)dfm.toastError("Error during upload: ".concat(t));else{log("upload googleStorage");Meteor.callAsync("dfm.googleStorage.upload",{fileId:o._id,mimeType:o["mime-type"],path:o.path,filename:o.name,size:o.size,ext:o.ext,meta:l}).then(function(t){log("--- file ---");log(t);null==t||t.fileId;var a=document.createElement("input");a.type="hidden";a.name=n.name+"_"+e;a.value=t.url;dfm.insertAfterElement(n,a)})}});i.start()};e.preventDefault();if("profile"===dfm.getRouteName())return;var n=e.currentTarget;var a=document.querySelector('button[type="submit"]');log("element.querySelector = ",a);a.disabled=true;var o=n.files;for(var s=0;s<o.length;s++)t(s)},"submit .js-forms-submit":function(e){e.preventDefault();function t(e,t){dfm.logError(e);if("bad"===e.error&&"password-missing"===e.reason)dfm.toastWarning(dfm.trans("WARN_passwordMissing"));else if(403===e.error&&"emailExist"===e.reason){dfm.toastWarning(dfm.trans("WARN_emailExist"));dfm.logWarning("email: "+t)}else dfm.toastError(e)}var n=e.currentTarget.querySelector('button[type="submit"]');n.disabled=true;try{var r,s,l;if(!dfm.isLocalhost()){var i=new a(e.currentTarget);if(!i.isValid()){n.disabled=false;return}}var c=new o(e.currentTarget);c.findPassword();null==(r=document.querySelector(".form-date-template"))||r.remove();var u=$(e.currentTarget).serializeJSON();var p={};Object.keys(u).forEach(function(e){p[e]={label:$('[for="'.concat(e,'"]')).text()||e,name:e,value:u[e]}});var m=dfm.getRoutePathRelative();var d=$(e.currentTarget).data("title");var f=$(e.currentTarget).data("redirect");var h=function(){Meteor.call("forms.insert",{route:m,formTitle:d,data:p},function(e,t){if(e){dfm.toastError(e);n.disabled=false}else{dfm.toastSuccess({message:dfm.trans("formSubmitted"),class:"toast-center"});if(f)Router.go(f)}})};if("become-a-ouispeaker"===d&&!Meteor.user()&&(null==(s=p.inputEmail)?void 0:s.value)&&(null==(l=p.inputPassword)?void 0:l.value)){var g,b,T,k,v,L;var S={email:p.inputEmail.value,password:p.inputPassword.value,firstName:null==(g=p.inputFirstName)?void 0:g.value,lastName:null==(b=p.inputLastName)?void 0:b.value,inputLanguageA:null==(T=p.inputLanguageA)?void 0:T.value,inputLanguageB:null==(k=p.inputLanguageB)?void 0:k.value,inputLanguageC:null==(v=p.inputLanguageC)?void 0:v.value,inputPlatform:null==(L=p.inputPlatform)?void 0:L.value};Meteor.call("userInterpreterCreate",S,function(e,a){if(e){var o;t(e,null==(o=p.inputEmail)?void 0:o.value);n.disabled=false}else Meteor.loginWithPassword(S.email,S.password,function(e){if(e){dfm.logError("error loginWithPassword "+S.email);dfm.toastError(e);n.disabled=false}else{delete p.inputPassword;h()}})})}else h()}catch(e){dfm.logError("Erreur lors du traitement du formulaire",e);dfm.toastError(e);n.disabled=false}},"click .js-dfm-dropdown":function(e,t){e.preventDefault();e.stopPropagation();var n=$(e.currentTarget).data("dfmdropdown");var a=$("#".concat(n));if("none"!==a.css("display"))a.hide();else{$(".dfm-dropdown").hide();a.show()}},"click .js-set-my-language":function(e,t){e.preventDefault();app.languages.choose(this.code);$("#language-choose-dropdown").hide()},"click .dropdown-close":function(e,t){$(".dfm-dropdown").hide()},"click #submit_newsletter":function(e){e.preventDefault();var t=$("#newsletter_email").val();if(t){$("#newsletter_email").val("");Meteor.call("newsletter.insert",t,function(e,t){if(e)dfm.toastError(e);else dfm.toastSuccess(dfm.trans("registered"))})}},"submit #contact-us-form":function(e){e.preventDefault();var t=dfm.serialize(e.currentTarget);log(t);$("#submit-btn").hide();Meteor.call("contactUs.insert",t,function(t,n){if(t)dfm.toastError(t);else{dfm.toastSuccess(dfm.trans("thanksForYourMessage"));e.currentTarget.reset();$("#submit-btn").show()}})}})},
189"webmasterLayout.js":function(e,t,n){n.link("./webmasterLayout.html");Template.webmasterLayoutReplace.replaces("webmasterLayout")}},lib:{
189"prerender-ready.js":function(e,t,n){var a;n.link("meteor/meteor",{Meteor:function(e){a=e}},0);window.prerenderReady=false;a.startup(function(){a.setTimeout(function(){window.prerenderReady=true},1500)})}},
189"form-guard.js":function(e,t,n){var a;n.link("meteor/reload",{Reload:function(e){a=e}},0);var o="form.js-forms-submit";var r=5e3;var s=false;var l=null;function i(e){var t=e.target;return!!(t&&"function"==typeof t.closest&&t.closest(o))}document.addEventListener("input",function(e){if(i(e))s=true},true);document.addEventListener("change",function(e){if(i(e))s=true},true);document.addEventListener("submit",function(e){if(i(e))s=false},true);function c(){if(!document.querySelector(o))s=false;return s}a._onMigrate("ouispeakForms",function(e){if(!c())return[true];log("[form-guard] rechargement report\xe9 : formulaire en cours de saisie");if(!l)l=setInterval(function(){if(c())return;clearInterval(l);l=null;e()},r);return[false]})},
189"helpers.js":function(e,t,n){var a;n.link("meteor/davidfm:core/api/settings/lib/collections.js",{DfmSettings:function(e){a=e}},0);var o;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){o=e}},1);var r;n.link("meteor/davidfm:core/api/accounts/lib/collections.js",{default:function(e){r=e}},2);globalThis.app=globalThis.app||{};app.version="1.0.1";app.accordionLoopTime=7e3;app.testHostname="ouispeak.io";app.globalSearch={value:new ReactiveVar(void 0),get:function(){return app.globalSearch.value.get()},set:function(e){app.globalSearch.value.set(e)},clear:function(){var e=document.querySelector("input[name=globalSearch]");if(e)e.value="";var t=document.querySelector(".js-globalSearch-reset");if(t)t.classList.add("d-none");app.globalSearch.value.set(void 0)}};app.search=new ReactiveVar(void 0);Template.registerHelper("getUserAvatar",function(e){if(!e)return"/img/users/no-avatar.png";if(e.includes("files.production.ouispeak.io/conference"))return e.replace("files.production.ouispeak.io","ouispeak-prod.imgix.net")+"?width=100";return e});Template.registerHelper("isOuispeakIo",function(){return app.isOuispeakIo()});Template.registerHelper("getInterfaceLanguages",function(){return o.find({interface:true})});Template.registerHelper("getSiteLanguages",function(){return o.find({interfaceOuispeak:true},{sort:{rank:1}})});Template.registerHelper("getLanguageFromCode",function(e){var t;return null==(t=o.findOne({code:e}))?void 0:t.text});Template.registerHelper("getFlag",function(e,t){var n;var a=o.findOne({code:e});if(!a)return"";if(null==t?void 0:null==(n=t.hash)?void 0:n.width){var r=a.flag.split("/");if("storage.googleapis.com"!==r[2])return a.flag;var s=r.pop();r.push("w-"+t.hash.width+"-"+s);return r.join("/")}return a.flag});Template.registerHelper("getUsersConnections",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=e.hash||{};var t=r.find();if(e.count)return t.count();return t});Template.registerHelper("getCount",function(e){if(e)return Counter.get(e)});app.summernoteOptions={followingToolbar:true,styleTags:["h1","h2","h3","h4"],toolbar:[["font",["style","fontname","fontsize"]],["style",["bold","italic","underline","strikethrough","clear"]],["color",["color"]],["para",["ul","ol","paragraph"]],["media",["link","picture","video","table","hr"]],["extra",["table"]],["misc",["fullscreen","codeview","undo","redo"]]],callbacks:{onChange:function(e,t){},onPaste:function(e){}}};app.isDarkTheme=function(){return a.findOne({sourceId:"theme",key:"dark",value:"true"})?"theme-dark":"theme-light"};var s=Meteor.subscribe("allLanguages");app.languages={getInterfaceOuispeak:function(){return o.find({interfaceOuispeak:true}).fetch()},choose:function(e){if(!e)return;if(Meteor.userId())Meteor.call("usersUpdateProfile",{"profile.language":e},function(e){if(e)dfm.toastError(e)});else app.languages.memoriser(e);dfm.languages.setCurrent(e);app.languages.allerVers(e)},_choixAnonyme:new ReactiveVar(function(){try{return localStorage.getItem("os-langue")||null}catch(e){return null}}()),memoriser:function(e){try{localStorage.setItem("os-langue",e)}catch(e){}app.languages._choixAnonyme.set(e)},preference:function(){if(!s.ready())return null;var e=app.languages.getInterfaceOuispeak();if(!e.length)return null;var t=Meteor.userId()?dfm.languages.getUserLanguage(Meteor.userId()):app.languages._choixAnonyme.get()||dfm.languages.getDefault();return e.some(function(e){return e.code===t})?t:dfm.languages.getPrimary()},codeDansUrl:function(){var e=window.location.pathname.split("/")[1];if(!e)return null;return o.findOne({code:e})?e:null},allerVers:function(e){var t=app.languages.codeDansUrl();if(!t)return void dfm.lngRouterGo("home");if(t===e)return;var n=window.location.pathname.replace("/"+t,"/"+e);Router.go(n+window.location.search+window.location.hash)}};app.carouselsInstances=[]},
189"main.js":function(e,t,n){n.link("./lib/prerender-ready.js");var a;n.link("meteor/davidfm:core/api/languages/lib/collections.js",{DfmLanguages:function(e){a=e}},0);n.link("meteor/davidfm:core/api/google-storage/client/main.js");n.link("./helpers.js");n.link("./form-guard.js");n.link("../import/api/components/client/helpers.js");n.link("./layout/layout.js");n.link("./layout/webmasterLayout.js");n.link("../import/ui/shared/avatar.js");n.link("../import/api/admin/layout/layout.js");n.link("../import/lib/routes.js");n.link("./pages/home-v4/home-v4.js");console.log("\n ██████╗ ██╗   ██╗██╗███████╗██████╗ ███████╗ █████╗ ██╗  ██╗\n██╔═══██╗██║   ██║██║██╔════╝██╔══██╗██╔════╝██╔══██╗██║ ██╔╝\n██║   ██║██║   ██║██║███████╗██████╔╝█████╗  ███████║█████╔╝ \n██║   ██║██║   ██║██║╚════██║██╔═══╝ ██╔══╝  ██╔══██║██╔═██╗ \n╚██████╔╝╚██████╔╝██║███████║██║     ███████╗██║  ██║██║  ██╗\n ╚═════╝  ╚═════╝ ╚═╝╚══════╝╚═╝     ╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝\n");Template.body.events({"click .js-logout":function(e){e.preventDefault();Router.go("/");Meteor.logout()}});var o;Tracker.autorun(function(){if(Meteor.userId()&&!Meteor.user())return;var e=app.languages.preference();if(!e)return;var t=void 0===o;var n=!t&&e!==o;o=e;if(t){if(!app.languages.codeDansUrl())dfm.languages.setCurrent(e);return}if(!n)return;Tracker.nonreactive(function(){dfm.languages.setCurrent(e);app.languages.allerVers(e)})});var r=new Set;var s=null;function l(e){var t=document.documentElement;if(!e){if(s)t.style.setProperty("--os-font-main",s);return}if(!/^[\w +]+$/.test(e))return void console.warn("[langues] googleFont ignor\xe9e, format inattendu : ".concat(e));if(!r.has(e)){r.add(e);var n=document.createElement("link");n.rel="stylesheet";n.href="https://fonts.googleapis.com/css2?family=".concat(e,"&display=swap");document.head.appendChild(n)}if(null===s)s=getComputedStyle(t).getPropertyValue("--os-font-main").trim();t.style.setProperty("--os-font-main","".concat(s,', "').concat(e.replace(/\+/g," "),'"'))}Tracker.autorun(function(){var e=dfm.languages.getCurrent();if(!e)return;var t=a.findOne({code:e});var n=document.documentElement;n.setAttribute("lang",e);n.setAttribute("dir",(null==t?void 0:t.direction)==="rtl"?"rtl":"ltr");l(null==t?void 0:t.googleFont)})}
189}},{extensions:[".js",".json",".html",".ts",".less"]});require("/client/main.js");
190

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.